mshtml: Updated Korean resource.
[wine/hacks.git] / configure
blobbf2f3c797037c80d572700866f8cd5fd6c02df03
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60a for Wine 0.9.17.
5 # Report bugs to <wine-devel@winehq.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
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 *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
48 rm -f conf$$.sh
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
59 # IFS
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
66 IFS=" "" $as_nl"
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85 as_myself=$0
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
100 # NLS nuisances.
101 for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 done
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
138 /^X\/\(\/\/\)$/{
139 s//\1/
142 /^X\/\(\/\).*/{
143 s//\1/
146 s/.*/./; q'`
148 # CDPATH.
149 $as_unset CDPATH
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
163 as_func_success () {
164 as_func_return 0
166 as_func_failure () {
167 as_func_return 1
169 as_func_ret_success () {
170 return 0
172 as_func_ret_failure () {
173 return 1
176 exitcode=0
177 if as_func_success; then
179 else
180 exitcode=1
181 echo as_func_success failed.
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 else
204 exitcode=1
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230 done
231 IFS=$as_save_IFS
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
253 _ASEOF
254 }; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
273 (as_func_return () {
274 (exit $1)
276 as_func_success () {
277 as_func_return 0
279 as_func_failure () {
280 as_func_return 1
282 as_func_ret_success () {
283 return 0
285 as_func_ret_failure () {
286 return 1
289 exitcode=0
290 if as_func_success; then
292 else
293 exitcode=1
294 echo as_func_success failed.
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 else
317 exitcode=1
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329 _ASEOF
330 }; then
331 break
336 done
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
363 (exit \$1)
365 as_func_success () {
366 as_func_return 0
368 as_func_failure () {
369 as_func_return 1
371 as_func_ret_success () {
372 return 0
374 as_func_ret_failure () {
375 return 1
378 exitcode=0
379 if as_func_success; then
381 else
382 exitcode=1
383 echo as_func_success failed.
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 else
406 exitcode=1
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
476 ECHO_N='-n';;
477 esac
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
529 rm -f conf$$.file
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 # Initializations.
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='Wine'
561 PACKAGE_TARNAME='wine'
562 PACKAGE_VERSION='0.9.17'
563 PACKAGE_STRING='Wine 0.9.17'
564 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 ac_unique_file="server/atom.c"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 build
641 build_cpu
642 build_vendor
643 build_os
644 host
645 host_cpu
646 host_vendor
647 host_os
648 WIN16_FILES
649 WIN16_INSTALL
650 SET_MAKE
652 CFLAGS
653 LDFLAGS
654 CPPFLAGS
655 ac_ct_CC
656 EXEEXT
657 OBJEXT
659 CXXFLAGS
660 ac_ct_CXX
661 CPPBIN
662 TOOLSDIR
663 XMKMF
665 X_CFLAGS
666 X_PRE_LIBS
667 X_LIBS
668 X_EXTRA_LIBS
670 LEXLIB
671 LEX_OUTPUT_ROOT
672 XLEX
673 BISON
675 ac_ct_AS
678 RANLIB
679 STRIP
680 WINDRES
681 LN_S
683 GREP
684 EGREP
685 LDCONFIG
686 INSTALL_PROGRAM
687 INSTALL_SCRIPT
688 INSTALL_DATA
689 LINT
690 LINTFLAGS
691 FONTFORGE
692 PKG_CONFIG
693 PRELINK
694 LIBPTHREAD
695 XLIB
696 XFILES
697 OPENGLFILES
698 GLU32FILES
699 OPENGL_LIBS
700 GLUT_LIBS
701 GLUT32FILES
702 NASLIBS
703 XML2LIBS
704 XML2INCL
705 XSLTLIBS
706 XSLTINCL
707 HALINCL
708 CURSESLIBS
709 sane_devel
710 SANELIBS
711 SANEINCL
712 gphoto2_devel
713 gphoto2port_devel
714 GPHOTO2LIBS
715 GPHOTO2INCL
716 ICULIBS
717 RESOLVLIBS
718 LCMSLIBS
719 LDAPLIBS
720 FREETYPELIBS
721 FREETYPEINCL
722 ft_devel
723 ft_devel2
724 FONTSSUBDIRS
725 ARTSCCONFIG
726 ARTSLIBS
727 ARTSINCL
728 ESDCONFIG
729 ESDLIBS
730 ESDINCL
731 ALSALIBS
732 AUDIOIOLIBS
733 EXTRACFLAGS
734 BUILTINFLAG
735 DLLEXT
736 DLLFLAGS
737 DLLIBS
738 LDSHARED
739 LDDLLFLAGS
740 LIBEXT
741 IMPLIBEXT
742 DLLTOOL
743 DLLWRAP
744 LDEXECFLAGS
745 LDEXERPATH
746 LDDLLRPATH
747 COREFOUNDATIONLIB
748 IOKITLIB
749 COREAUDIO
750 CROSSTEST
751 CROSSCC
752 CROSSWINDRES
753 LDPATH
754 CRTLIBS
755 SOCKETLIBS
756 MAIN_BINARY
757 EXTRA_BINARIES
759 LIBOBJS
760 LTLIBOBJS'
761 ac_subst_files='MAKE_RULES
762 MAKE_DLL_RULES
763 MAKE_IMPLIB_RULES
764 MAKE_TEST_RULES
765 MAKE_LIB_RULES
766 MAKE_PROG_RULES'
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
771 CFLAGS
772 LDFLAGS
773 CPPFLAGS
775 CXXFLAGS
777 XMKMF
778 CPP'
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
827 ac_prev=
828 ac_dashdash=
829 for ac_option
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
838 case $ac_option in
839 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *) ac_optarg=yes ;;
841 esac
843 # Accept the important Cygnus configure options, so we can diagnose typos.
845 case $ac_dashdash$ac_option in
847 ac_dashdash=yes ;;
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
866 --config-cache | -C)
867 cache_file=config.cache ;;
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
881 -disable-* | --disable-*)
882 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
885 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
886 { (exit 1); exit 1; }; }
887 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
888 eval enable_$ac_feature=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
900 -enable-* | --enable-*)
901 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
904 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905 { (exit 1); exit 1; }; }
906 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
907 eval enable_$ac_feature=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1097 -with-* | --with-*)
1098 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid package name: $ac_package" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_package=`echo $ac_package| sed 's/-/_/g'`
1104 eval with_$ac_package=\$ac_optarg ;;
1106 -without-* | --without-*)
1107 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_package=`echo $ac_package | sed 's/-/_/g'`
1113 eval with_$ac_package=no ;;
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1133 -*) { echo "$as_me: error: unrecognized option: $ac_option
1134 Try \`$0 --help' for more information." >&2
1135 { (exit 1); exit 1; }; }
1138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1143 { (exit 1); exit 1; }; }
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1148 # FIXME: should be removed in autoconf 3.0.
1149 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1155 esac
1156 done
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 { echo "$as_me: error: missing argument to $ac_option" >&2
1161 { (exit 1); exit 1; }; }
1164 # Be sure to have absolute directory names.
1165 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166 datadir sysconfdir sharedstatedir localstatedir includedir \
1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168 libdir localedir mandir
1170 eval ac_val=\$$ac_var
1171 case $ac_val in
1172 [\\/$]* | ?:[\\/]* ) continue;;
1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 esac
1175 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1176 { (exit 1); exit 1; }; }
1177 done
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1182 build=$build_alias
1183 host=$host_alias
1184 target=$target_alias
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1191 If a cross compiler is detected then cross compile mode will be used." >&2
1192 elif test "x$build_alias" != "x$host_alias"; then
1193 cross_compiling=yes
1197 ac_tool_prefix=
1198 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1200 test "$silent" = yes && exec 6>/dev/null
1203 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204 ac_ls_di=`ls -di .` &&
1205 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206 { echo "$as_me: error: Working directory cannot be determined" >&2
1207 { (exit 1); exit 1; }; }
1208 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209 { echo "$as_me: error: pwd does not report name of working directory" >&2
1210 { (exit 1); exit 1; }; }
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$0" ||
1218 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$0" : 'X\(//\)[^/]' \| \
1220 X"$0" : 'X\(//\)$' \| \
1221 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 echo X"$0" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1231 /^X\(\/\/\)$/{
1232 s//\1/
1235 /^X\(\/\).*/{
1236 s//\1/
1239 s/.*/./; q'`
1240 srcdir=$ac_confdir
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 srcdir=..
1244 else
1245 ac_srcdir_defaulted=no
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1250 { (exit 1); exit 1; }; }
1252 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 ac_abs_confdir=`(
1254 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1255 { (exit 1); exit 1; }; }
1256 pwd)`
1257 # When building in place, set srcdir=.
1258 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 srcdir=.
1261 # Remove unnecessary trailing slashes from srcdir.
1262 # Double slashes in file names in object file debugging info
1263 # mess up M-x gdb in Emacs.
1264 case $srcdir in
1265 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 esac
1267 for ac_var in $ac_precious_vars; do
1268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_env_${ac_var}_value=\$${ac_var}
1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272 done
1275 # Report the --help message.
1277 if test "$ac_init_help" = "long"; then
1278 # Omit some internal or obsolete options to make the list less imposing.
1279 # This message is too long to be a string in the A/UX 3.1 sh.
1280 cat <<_ACEOF
1281 \`configure' configures Wine 0.9.17 to adapt to many kinds of systems.
1283 Usage: $0 [OPTION]... [VAR=VALUE]...
1285 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286 VAR=VALUE. See below for descriptions of some of the useful variables.
1288 Defaults for the options are specified in brackets.
1290 Configuration:
1291 -h, --help display this help and exit
1292 --help=short display options specific to this package
1293 --help=recursive display the short help of all the included packages
1294 -V, --version display version information and exit
1295 -q, --quiet, --silent do not print \`checking...' messages
1296 --cache-file=FILE cache test results in FILE [disabled]
1297 -C, --config-cache alias for \`--cache-file=config.cache'
1298 -n, --no-create do not create output files
1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1301 Installation directories:
1302 --prefix=PREFIX install architecture-independent files in PREFIX
1303 [$ac_default_prefix]
1304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 [PREFIX]
1307 By default, \`make install' will install all the files in
1308 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310 for instance \`--prefix=\$HOME'.
1312 For better control, use the options below.
1314 Fine tuning of the installation directories:
1315 --bindir=DIR user executables [EPREFIX/bin]
1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1317 --libexecdir=DIR program executables [EPREFIX/libexec]
1318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321 --libdir=DIR object code libraries [EPREFIX/lib]
1322 --includedir=DIR C header files [PREFIX/include]
1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1329 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1330 --htmldir=DIR html documentation [DOCDIR]
1331 --dvidir=DIR dvi documentation [DOCDIR]
1332 --pdfdir=DIR pdf documentation [DOCDIR]
1333 --psdir=DIR ps documentation [DOCDIR]
1334 _ACEOF
1336 cat <<\_ACEOF
1338 X features:
1339 --x-includes=DIR X include files are in DIR
1340 --x-libraries=DIR X library files are in DIR
1342 System types:
1343 --build=BUILD configure for building on BUILD [guessed]
1344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1345 _ACEOF
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of Wine 0.9.17:";;
1351 esac
1352 cat <<\_ACEOF
1354 Optional Features:
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --disable-win16 do not include Win16 support
1358 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1359 binaries)
1361 Optional Packages:
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1364 --without-opengl do not use OpenGL
1365 --without-curses do not use curses
1366 --with-wine-tools=<dir> use Wine tools from directory <dir>
1367 --with-x use the X Window System
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1375 you have headers in a nonstandard directory <include dir>
1376 CXX C++ compiler command
1377 CXXFLAGS C++ compiler flags
1378 XMKMF Path to xmkmf, Makefile generator for X Window System
1379 CPP C preprocessor
1381 Use these variables to override the choices made by `configure' or to help
1382 it to find libraries and programs with nonstandard names/locations.
1384 Report bugs to <wine-devel@winehq.org>.
1385 _ACEOF
1386 ac_status=$?
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d "$ac_dir" || continue
1393 ac_builddir=.
1395 case "$ac_dir" in
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405 esac
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1411 case $srcdir in
1412 .) # We are building in place.
1413 ac_srcdir=.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 esac
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure" --help=recursive
1435 else
1436 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1439 done
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1444 cat <<\_ACEOF
1445 Wine configure 0.9.17
1446 generated by GNU Autoconf 2.60a
1448 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1449 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1450 This configure script is free software; the Free Software Foundation
1451 gives unlimited permission to copy, distribute and modify it.
1452 _ACEOF
1453 exit
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1459 It was created by Wine $as_me 0.9.17, which was
1460 generated by GNU Autoconf 2.60a. Invocation command line was
1462 $ $0 $@
1464 _ACEOF
1465 exec 5>>config.log
1467 cat <<_ASUNAME
1468 ## --------- ##
1469 ## Platform. ##
1470 ## --------- ##
1472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1481 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1484 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1485 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1489 _ASUNAME
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 echo "PATH: $as_dir"
1497 done
1498 IFS=$as_save_IFS
1500 } >&5
1502 cat >&5 <<_ACEOF
1505 ## ----------- ##
1506 ## Core tests. ##
1507 ## ----------- ##
1509 _ACEOF
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_configure_args=
1518 ac_configure_args0=
1519 ac_configure_args1=
1520 ac_must_keep_next=false
1521 for ac_pass in 1 2
1523 for ac_arg
1525 case $ac_arg in
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 continue ;;
1530 *\'*)
1531 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 esac
1533 case $ac_pass in
1534 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1536 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
1538 ac_must_keep_next=false # Got value, back to normal.
1539 else
1540 case $ac_arg in
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 esac
1549 -* ) ac_must_keep_next=true ;;
1550 esac
1552 ac_configure_args="$ac_configure_args '$ac_arg'"
1554 esac
1555 done
1556 done
1557 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1558 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1560 # When interrupted or exit'd, cleanup temporary files, and complete
1561 # config.log. We remove comments because anyway the quotes in there
1562 # would cause problems or look ugly.
1563 # WARNING: Use '\'' to represent an apostrophe within the trap.
1564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1565 trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
1568 echo
1570 cat <<\_ASBOX
1571 ## ---------------- ##
1572 ## Cache variables. ##
1573 ## ---------------- ##
1574 _ASBOX
1575 echo
1576 # The following way of writing the cache mishandles newlines in values,
1578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1579 eval ac_val=\$$ac_var
1580 case $ac_val in #(
1581 *${as_nl}*)
1582 case $ac_var in #(
1583 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1584 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585 esac
1586 case $ac_var in #(
1587 _ | IFS | as_nl) ;; #(
1588 *) $as_unset $ac_var ;;
1589 esac ;;
1590 esac
1591 done
1592 (set) 2>&1 |
1593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1594 *${as_nl}ac_space=\ *)
1595 sed -n \
1596 "s/'\''/'\''\\\\'\'''\''/g;
1597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 ;; #(
1600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1602 esac |
1603 sort
1605 echo
1607 cat <<\_ASBOX
1608 ## ----------------- ##
1609 ## Output variables. ##
1610 ## ----------------- ##
1611 _ASBOX
1612 echo
1613 for ac_var in $ac_subst_vars
1615 eval ac_val=\$$ac_var
1616 case $ac_val in
1617 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 esac
1619 echo "$ac_var='\''$ac_val'\''"
1620 done | sort
1621 echo
1623 if test -n "$ac_subst_files"; then
1624 cat <<\_ASBOX
1625 ## ------------------- ##
1626 ## File substitutions. ##
1627 ## ------------------- ##
1628 _ASBOX
1629 echo
1630 for ac_var in $ac_subst_files
1632 eval ac_val=\$$ac_var
1633 case $ac_val in
1634 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 esac
1636 echo "$ac_var='\''$ac_val'\''"
1637 done | sort
1638 echo
1641 if test -s confdefs.h; then
1642 cat <<\_ASBOX
1643 ## ----------- ##
1644 ## confdefs.h. ##
1645 ## ----------- ##
1646 _ASBOX
1647 echo
1648 cat confdefs.h
1649 echo
1651 test "$ac_signal" != 0 &&
1652 echo "$as_me: caught signal $ac_signal"
1653 echo "$as_me: exit $exit_status"
1654 } >&5
1655 rm -f core *.core core.conftest.* &&
1656 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1657 exit $exit_status
1659 for ac_signal in 1 2 13 15; do
1660 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1661 done
1662 ac_signal=0
1664 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1665 rm -f -r conftest* confdefs.h
1667 # Predefined preprocessor variables.
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_NAME "$PACKAGE_NAME"
1671 _ACEOF
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1676 _ACEOF
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1681 _ACEOF
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_STRING "$PACKAGE_STRING"
1686 _ACEOF
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1691 _ACEOF
1694 # Let the site file select an alternate cache file if it wants to.
1695 # Prefer explicitly selected file to automatically selected ones.
1696 if test -n "$CONFIG_SITE"; then
1697 set x "$CONFIG_SITE"
1698 elif test "x$prefix" != xNONE; then
1699 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1700 else
1701 set x "$ac_default_prefix/share/config.site" \
1702 "$ac_default_prefix/etc/config.site"
1704 shift
1705 for ac_site_file
1707 if test -r "$ac_site_file"; then
1708 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1709 echo "$as_me: loading site script $ac_site_file" >&6;}
1710 sed 's/^/| /' "$ac_site_file" >&5
1711 . "$ac_site_file"
1713 done
1715 if test -r "$cache_file"; then
1716 # Some versions of bash will fail to source /dev/null (special
1717 # files actually), so we avoid doing that.
1718 if test -f "$cache_file"; then
1719 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1720 echo "$as_me: loading cache $cache_file" >&6;}
1721 case $cache_file in
1722 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1723 *) . "./$cache_file";;
1724 esac
1726 else
1727 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1728 echo "$as_me: creating cache $cache_file" >&6;}
1729 >$cache_file
1732 # Check that the precious variables saved in the cache have kept the same
1733 # value.
1734 ac_cache_corrupted=false
1735 for ac_var in $ac_precious_vars; do
1736 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1737 eval ac_new_set=\$ac_env_${ac_var}_set
1738 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1739 eval ac_new_val=\$ac_env_${ac_var}_value
1740 case $ac_old_set,$ac_new_set in
1741 set,)
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,set)
1746 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1747 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1748 ac_cache_corrupted=: ;;
1749 ,);;
1751 if test "x$ac_old_val" != "x$ac_new_val"; then
1752 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1753 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1754 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1755 echo "$as_me: former value: $ac_old_val" >&2;}
1756 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1757 echo "$as_me: current value: $ac_new_val" >&2;}
1758 ac_cache_corrupted=:
1759 fi;;
1760 esac
1761 # Pass precious variables to config.status.
1762 if test "$ac_new_set" = set; then
1763 case $ac_new_val in
1764 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1765 *) ac_arg=$ac_var=$ac_new_val ;;
1766 esac
1767 case " $ac_configure_args " in
1768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1769 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1770 esac
1772 done
1773 if $ac_cache_corrupted; then
1774 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1775 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1776 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1777 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1778 { (exit 1); exit 1; }; }
1805 ac_ext=c
1806 ac_cpp='$CPP $CPPFLAGS'
1807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813 ac_config_headers="$ac_config_headers include/config.h"
1815 ac_aux_dir=
1816 for ac_dir in tools "$srcdir"/tools; do
1817 if test -f "$ac_dir/install-sh"; then
1818 ac_aux_dir=$ac_dir
1819 ac_install_sh="$ac_aux_dir/install-sh -c"
1820 break
1821 elif test -f "$ac_dir/install.sh"; then
1822 ac_aux_dir=$ac_dir
1823 ac_install_sh="$ac_aux_dir/install.sh -c"
1824 break
1825 elif test -f "$ac_dir/shtool"; then
1826 ac_aux_dir=$ac_dir
1827 ac_install_sh="$ac_aux_dir/shtool install -c"
1828 break
1830 done
1831 if test -z "$ac_aux_dir"; then
1832 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1833 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1834 { (exit 1); exit 1; }; }
1837 # These three variables are undocumented and unsupported,
1838 # and are intended to be withdrawn in a future Autoconf release.
1839 # They can cause serious problems if a builder's source tree is in a directory
1840 # whose full name contains unusual characters.
1841 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1842 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1843 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1848 # Check whether --enable-win16 was given.
1849 if test "${enable_win16+set}" = set; then
1850 enableval=$enable_win16;
1853 # Check whether --enable-win64 was given.
1854 if test "${enable_win64+set}" = set; then
1855 enableval=$enable_win64;
1860 # Check whether --with-opengl was given.
1861 if test "${with_opengl+set}" = set; then
1862 withval=$with_opengl;
1866 # Check whether --with-curses was given.
1867 if test "${with_curses+set}" = set; then
1868 withval=$with_curses;
1872 # Check whether --with-wine-tools was given.
1873 if test "${with_wine_tools+set}" = set; then
1874 withval=$with_wine_tools;
1878 # Make sure we can run config.sub.
1879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1880 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1881 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1882 { (exit 1); exit 1; }; }
1884 { echo "$as_me:$LINENO: checking build system type" >&5
1885 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1886 if test "${ac_cv_build+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889 ac_build_alias=$build_alias
1890 test "x$ac_build_alias" = x &&
1891 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1892 test "x$ac_build_alias" = x &&
1893 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1894 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1895 { (exit 1); exit 1; }; }
1896 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1897 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1898 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1899 { (exit 1); exit 1; }; }
1902 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1903 echo "${ECHO_T}$ac_cv_build" >&6; }
1904 case $ac_cv_build in
1905 *-*-*) ;;
1906 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1907 echo "$as_me: error: invalid value of canonical build" >&2;}
1908 { (exit 1); exit 1; }; };;
1909 esac
1910 build=$ac_cv_build
1911 ac_save_IFS=$IFS; IFS='-'
1912 set x $ac_cv_build
1913 shift
1914 build_cpu=$1
1915 build_vendor=$2
1916 shift; shift
1917 # Remember, the first character of IFS is used to create $*,
1918 # except with old shells:
1919 build_os=$*
1920 IFS=$ac_save_IFS
1921 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1924 { echo "$as_me:$LINENO: checking host system type" >&5
1925 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1926 if test "${ac_cv_host+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 if test "x$host_alias" = x; then
1930 ac_cv_host=$ac_cv_build
1931 else
1932 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1933 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1934 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1935 { (exit 1); exit 1; }; }
1939 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1940 echo "${ECHO_T}$ac_cv_host" >&6; }
1941 case $ac_cv_host in
1942 *-*-*) ;;
1943 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1944 echo "$as_me: error: invalid value of canonical host" >&2;}
1945 { (exit 1); exit 1; }; };;
1946 esac
1947 host=$ac_cv_host
1948 ac_save_IFS=$IFS; IFS='-'
1949 set x $ac_cv_host
1950 shift
1951 host_cpu=$1
1952 host_vendor=$2
1953 shift; shift
1954 # Remember, the first character of IFS is used to create $*,
1955 # except with old shells:
1956 host_os=$*
1957 IFS=$ac_save_IFS
1958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1961 case $host in
1962 x86_64*linux*)
1963 if test "x$enable_win64" != "xyes"
1964 then
1965 test -n "$CC" || CC="gcc -m32"
1966 test -n "$LD" || LD="ld -m elf_i386"
1967 test -n "$AS" || AS="as --32"
1968 host_cpu="i386"
1971 esac
1973 case $host_cpu in
1974 *i[3456789]86*)
1975 if test "x$enable_win16" != "xno"
1976 then
1977 enable_win16="yes"
1980 esac
1982 WIN16_FILES="\$(WIN16_FILES)"
1984 WIN16_INSTALL="\$(WIN16_INSTALL)"
1986 if test "x$enable_win16" != "xyes"
1987 then
1988 WIN16_FILES=""
1989 WIN16_INSTALL=""
1993 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1994 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1995 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1996 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 cat >conftest.make <<\_ACEOF
2000 SHELL = /bin/sh
2001 all:
2002 @echo '@@@%%%=$(MAKE)=@@@%%%'
2003 _ACEOF
2004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2005 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2006 *@@@%%%=?*=@@@%%%*)
2007 eval ac_cv_prog_make_${ac_make}_set=yes;;
2009 eval ac_cv_prog_make_${ac_make}_set=no;;
2010 esac
2011 rm -f conftest.make
2013 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2014 { echo "$as_me:$LINENO: result: yes" >&5
2015 echo "${ECHO_T}yes" >&6; }
2016 SET_MAKE=
2017 else
2018 { echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6; }
2020 SET_MAKE="MAKE=${MAKE-make}"
2023 ac_ext=c
2024 ac_cpp='$CPP $CPPFLAGS'
2025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028 if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2030 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2046 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2050 done
2051 done
2052 IFS=$as_save_IFS
2056 CC=$ac_cv_prog_CC
2057 if test -n "$CC"; then
2058 { echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6; }
2060 else
2061 { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2067 if test -z "$ac_cv_prog_CC"; then
2068 ac_ct_CC=$CC
2069 # Extract the first word of "gcc", so it can be a program name with args.
2070 set dummy gcc; ac_word=$2
2071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076 if test -n "$ac_ct_CC"; then
2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2086 ac_cv_prog_ac_ct_CC="gcc"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2090 done
2091 done
2092 IFS=$as_save_IFS
2096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097 if test -n "$ac_ct_CC"; then
2098 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099 echo "${ECHO_T}$ac_ct_CC" >&6; }
2100 else
2101 { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2105 if test "x$ac_ct_CC" = x; then
2106 CC=""
2107 else
2108 case $cross_compiling:$ac_tool_warned in
2109 yes:)
2110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111 whose name does not start with the host triplet. If you think this
2112 configuration is useful to you, please write to autoconf@gnu.org." >&5
2113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet. If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116 ac_tool_warned=yes ;;
2117 esac
2118 CC=$ac_ct_CC
2120 else
2121 CC="$ac_cv_prog_CC"
2124 if test -z "$CC"; then
2125 if test -n "$ac_tool_prefix"; then
2126 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2127 set dummy ${ac_tool_prefix}cc; ac_word=$2
2128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2130 if test "${ac_cv_prog_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2143 ac_cv_prog_CC="${ac_tool_prefix}cc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 break 2
2147 done
2148 done
2149 IFS=$as_save_IFS
2153 CC=$ac_cv_prog_CC
2154 if test -n "$CC"; then
2155 { echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6; }
2157 else
2158 { echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6; }
2165 if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 ac_prog_rejected=no
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2186 continue
2188 ac_cv_prog_CC="cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2192 done
2193 done
2194 IFS=$as_save_IFS
2196 if test $ac_prog_rejected = yes; then
2197 # We found a bogon in the path, so make sure we never use it.
2198 set dummy $ac_cv_prog_CC
2199 shift
2200 if test $# != 0; then
2201 # We chose a different compiler from the bogus one.
2202 # However, it has the same basename, so the bogon will be chosen
2203 # first if we set CC to just the basename; use the full file name.
2204 shift
2205 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2210 CC=$ac_cv_prog_CC
2211 if test -n "$CC"; then
2212 { echo "$as_me:$LINENO: result: $CC" >&5
2213 echo "${ECHO_T}$CC" >&6; }
2214 else
2215 { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2221 if test -z "$CC"; then
2222 if test -n "$ac_tool_prefix"; then
2223 for ac_prog in cl.exe
2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2246 done
2247 done
2248 IFS=$as_save_IFS
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254 { echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6; }
2256 else
2257 { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2262 test -n "$CC" && break
2263 done
2265 if test -z "$CC"; then
2266 ac_ct_CC=$CC
2267 for ac_prog in cl.exe
2269 # Extract the first word of "$ac_prog", so it can be a program name with args.
2270 set dummy $ac_prog; ac_word=$2
2271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276 if test -n "$ac_ct_CC"; then
2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_ac_ct_CC="$ac_prog"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
2290 done
2291 done
2292 IFS=$as_save_IFS
2296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297 if test -n "$ac_ct_CC"; then
2298 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299 echo "${ECHO_T}$ac_ct_CC" >&6; }
2300 else
2301 { echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6; }
2306 test -n "$ac_ct_CC" && break
2307 done
2309 if test "x$ac_ct_CC" = x; then
2310 CC=""
2311 else
2312 case $cross_compiling:$ac_tool_warned in
2313 yes:)
2314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet. If you think this
2316 configuration is useful to you, please write to autoconf@gnu.org." >&5
2317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2320 ac_tool_warned=yes ;;
2321 esac
2322 CC=$ac_ct_CC
2329 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: no acceptable C compiler found in \$PATH
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2335 # Provide some information about the compiler.
2336 echo "$as_me:$LINENO: checking for C compiler version" >&5
2337 ac_compiler=`set X $ac_compile; echo $2`
2338 { (ac_try="$ac_compiler --version >&5"
2339 case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342 esac
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_compiler --version >&5") 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }
2348 { (ac_try="$ac_compiler -v >&5"
2349 case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352 esac
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compiler -v >&5") 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }
2358 { (ac_try="$ac_compiler -V >&5"
2359 case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362 esac
2363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364 (eval "$ac_compiler -V >&5") 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2377 main ()
2381 return 0;
2383 _ACEOF
2384 ac_clean_files_save=$ac_clean_files
2385 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2386 # Try to create an executable without -o first, disregard a.out.
2387 # It will help us diagnose broken compilers, and finding out an intuition
2388 # of exeext.
2389 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2390 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2391 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2393 # List of possible output files, starting from the most likely.
2394 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2395 # only as a last resort. b.out is created by i960 compilers.
2396 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2398 # The IRIX 6 linker writes into existing files which may not be
2399 # executable, retaining their permissions. Remove them first so a
2400 # subsequent execution test works.
2401 ac_rmfiles=
2402 for ac_file in $ac_files
2404 case $ac_file in
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2407 esac
2408 done
2409 rm -f $ac_rmfiles
2411 if { (ac_try="$ac_link_default"
2412 case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_link_default") 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
2421 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2422 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2423 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2424 # so that the user can short-circuit this test for compilers unknown to
2425 # Autoconf.
2426 for ac_file in $ac_files
2428 test -f "$ac_file" || continue
2429 case $ac_file in
2430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2432 [ab].out )
2433 # We found the default executable, but exeext='' is most
2434 # certainly right.
2435 break;;
2436 *.* )
2437 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2438 then :; else
2439 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441 # We set ac_cv_exeext here because the later test for it is not
2442 # safe: cross compilers may not add the suffix if given an `-o'
2443 # argument, so we may need to know it at that point already.
2444 # Even if this section looks crufty: it has the advantage of
2445 # actually working.
2446 break;;
2448 break;;
2449 esac
2450 done
2451 test "$ac_cv_exeext" = no && ac_cv_exeext=
2453 else
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2457 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: C compiler cannot create executables
2460 See \`config.log' for more details." >&2;}
2461 { (exit 77); exit 77; }; }
2464 ac_exeext=$ac_cv_exeext
2465 { echo "$as_me:$LINENO: result: $ac_file" >&5
2466 echo "${ECHO_T}$ac_file" >&6; }
2468 # Check that the compiler produces executables we can run. If not, either
2469 # the compiler is broken, or we cross compile.
2470 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2471 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2472 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2473 # If not cross compiling, check that we can run a simple program.
2474 if test "$cross_compiling" != yes; then
2475 if { ac_try='./$ac_file'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479 esac
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2485 cross_compiling=no
2486 else
2487 if test "$cross_compiling" = maybe; then
2488 cross_compiling=yes
2489 else
2490 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2491 If you meant to cross compile, use \`--host'.
2492 See \`config.log' for more details." >&5
2493 echo "$as_me: error: cannot run C compiled programs.
2494 If you meant to cross compile, use \`--host'.
2495 See \`config.log' for more details." >&2;}
2496 { (exit 1); exit 1; }; }
2500 { echo "$as_me:$LINENO: result: yes" >&5
2501 echo "${ECHO_T}yes" >&6; }
2503 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2504 ac_clean_files=$ac_clean_files_save
2505 # Check that the compiler produces executables we can run. If not, either
2506 # the compiler is broken, or we cross compile.
2507 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2508 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2509 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2510 echo "${ECHO_T}$cross_compiling" >&6; }
2512 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2513 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2514 if { (ac_try="$ac_link"
2515 case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_link") 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; then
2524 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2525 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2526 # work properly (i.e., refer to `conftest.exe'), while it won't with
2527 # `rm'.
2528 for ac_file in conftest.exe conftest conftest.*; do
2529 test -f "$ac_file" || continue
2530 case $ac_file in
2531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2533 break;;
2534 * ) break;;
2535 esac
2536 done
2537 else
2538 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2541 See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
2545 rm -f conftest$ac_cv_exeext
2546 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2547 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2549 rm -f conftest.$ac_ext
2550 EXEEXT=$ac_cv_exeext
2551 ac_exeext=$EXEEXT
2552 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2553 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2554 if test "${ac_cv_objext+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h. */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2565 main ()
2569 return 0;
2571 _ACEOF
2572 rm -f conftest.o conftest.obj
2573 if { (ac_try="$ac_compile"
2574 case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; then
2583 for ac_file in conftest.o conftest.obj conftest.*; do
2584 test -f "$ac_file" || continue;
2585 case $ac_file in
2586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2587 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2588 break;;
2589 esac
2590 done
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2595 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2596 See \`config.log' for more details." >&5
2597 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2598 See \`config.log' for more details." >&2;}
2599 { (exit 1); exit 1; }; }
2602 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2604 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2605 echo "${ECHO_T}$ac_cv_objext" >&6; }
2606 OBJEXT=$ac_cv_objext
2607 ac_objext=$OBJEXT
2608 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2609 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2610 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h. */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2621 main ()
2623 #ifndef __GNUC__
2624 choke me
2625 #endif
2628 return 0;
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (ac_try="$ac_compile"
2633 case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636 esac
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_compile") 2>conftest.er1
2639 ac_status=$?
2640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2646 { (case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_try") 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
2656 { (case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_try") 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 ac_compiler_gnu=yes
2666 else
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2670 ac_compiler_gnu=no
2673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2677 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2678 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2679 GCC=`test $ac_compiler_gnu = yes && echo yes`
2680 ac_test_CFLAGS=${CFLAGS+set}
2681 ac_save_CFLAGS=$CFLAGS
2682 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2683 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_cc_g+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 ac_save_c_werror_flag=$ac_c_werror_flag
2688 ac_c_werror_flag=yes
2689 ac_cv_prog_cc_g=no
2690 CFLAGS="-g"
2691 cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h. */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2699 main ()
2703 return 0;
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (ac_try="$ac_compile"
2708 case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compile") 2>conftest.er1
2714 ac_status=$?
2715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 ac_cv_prog_cc_g=yes
2741 else
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2745 CFLAGS=""
2746 cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h. */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2754 main ()
2758 return 0;
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (ac_try="$ac_compile"
2763 case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766 esac
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compile") 2>conftest.er1
2769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2776 { (case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_try") 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789 esac
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_try") 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2796 else
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 ac_c_werror_flag=$ac_save_c_werror_flag
2801 CFLAGS="-g"
2802 cat >conftest.$ac_ext <<_ACEOF
2803 /* confdefs.h. */
2804 _ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h. */
2810 main ()
2814 return 0;
2816 _ACEOF
2817 rm -f conftest.$ac_objext
2818 if { (ac_try="$ac_compile"
2819 case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_compile") 2>conftest.er1
2825 ac_status=$?
2826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2832 { (case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_try") 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_try") 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 ac_cv_prog_cc_g=yes
2852 else
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_c_werror_flag=$ac_save_c_werror_flag
2868 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2869 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2870 if test "$ac_test_CFLAGS" = set; then
2871 CFLAGS=$ac_save_CFLAGS
2872 elif test $ac_cv_prog_cc_g = yes; then
2873 if test "$GCC" = yes; then
2874 CFLAGS="-g -O2"
2875 else
2876 CFLAGS="-g"
2878 else
2879 if test "$GCC" = yes; then
2880 CFLAGS="-O2"
2881 else
2882 CFLAGS=
2885 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2886 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2887 if test "${ac_cv_prog_cc_c89+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 ac_cv_prog_cc_c89=no
2891 ac_save_CC=$CC
2892 cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h. */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2898 #include <stdarg.h>
2899 #include <stdio.h>
2900 #include <sys/types.h>
2901 #include <sys/stat.h>
2902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2903 struct buf { int x; };
2904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2905 static char *e (p, i)
2906 char **p;
2907 int i;
2909 return p[i];
2911 static char *f (char * (*g) (char **, int), char **p, ...)
2913 char *s;
2914 va_list v;
2915 va_start (v,p);
2916 s = g (p, va_arg (v,int));
2917 va_end (v);
2918 return s;
2921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2922 function prototypes and stuff, but not '\xHH' hex character constants.
2923 These don't provoke an error unfortunately, instead are silently treated
2924 as 'x'. The following induces an error, until -std is added to get
2925 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2926 array size at least. It's necessary to write '\x00'==0 to get something
2927 that's true only with -std. */
2928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2931 inside strings and character constants. */
2932 #define FOO(x) 'x'
2933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2935 int test (int i, double x);
2936 struct s1 {int (*f) (int a);};
2937 struct s2 {int (*f) (double a);};
2938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2939 int argc;
2940 char **argv;
2942 main ()
2944 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2946 return 0;
2948 _ACEOF
2949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2950 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2952 CC="$ac_save_CC $ac_arg"
2953 rm -f conftest.$ac_objext
2954 if { (ac_try="$ac_compile"
2955 case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compile") 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
2967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2968 { (case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_try") 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; } &&
2977 { ac_try='test -s conftest.$ac_objext'
2978 { (case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_try") 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 ac_cv_prog_cc_c89=$ac_arg
2988 else
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2995 rm -f core conftest.err conftest.$ac_objext
2996 test "x$ac_cv_prog_cc_c89" != "xno" && break
2997 done
2998 rm -f conftest.$ac_ext
2999 CC=$ac_save_CC
3002 # AC_CACHE_VAL
3003 case "x$ac_cv_prog_cc_c89" in
3005 { echo "$as_me:$LINENO: result: none needed" >&5
3006 echo "${ECHO_T}none needed" >&6; } ;;
3007 xno)
3008 { echo "$as_me:$LINENO: result: unsupported" >&5
3009 echo "${ECHO_T}unsupported" >&6; } ;;
3011 CC="$CC $ac_cv_prog_cc_c89"
3012 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3013 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3014 esac
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_ext=cpp
3024 ac_cpp='$CXXCPP $CPPFLAGS'
3025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3028 if test -z "$CXX"; then
3029 if test -n "$CCC"; then
3030 CXX=$CCC
3031 else
3032 if test -n "$ac_tool_prefix"; then
3033 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3039 if test "${ac_cv_prog_CXX+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042 if test -n "$CXX"; then
3043 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3056 done
3057 done
3058 IFS=$as_save_IFS
3062 CXX=$ac_cv_prog_CXX
3063 if test -n "$CXX"; then
3064 { echo "$as_me:$LINENO: result: $CXX" >&5
3065 echo "${ECHO_T}$CXX" >&6; }
3066 else
3067 { echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6; }
3072 test -n "$CXX" && break
3073 done
3075 if test -z "$CXX"; then
3076 ac_ct_CXX=$CXX
3077 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080 set dummy $ac_prog; ac_word=$2
3081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3083 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 if test -n "$ac_ct_CXX"; then
3087 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 ac_cv_prog_ac_ct_CXX="$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3100 done
3101 done
3102 IFS=$as_save_IFS
3106 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3107 if test -n "$ac_ct_CXX"; then
3108 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3109 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3110 else
3111 { echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6; }
3116 test -n "$ac_ct_CXX" && break
3117 done
3119 if test "x$ac_ct_CXX" = x; then
3120 CXX="g++"
3121 else
3122 case $cross_compiling:$ac_tool_warned in
3123 yes:)
3124 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3125 whose name does not start with the host triplet. If you think this
3126 configuration is useful to you, please write to autoconf@gnu.org." >&5
3127 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3128 whose name does not start with the host triplet. If you think this
3129 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3130 ac_tool_warned=yes ;;
3131 esac
3132 CXX=$ac_ct_CXX
3138 # Provide some information about the compiler.
3139 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3140 ac_compiler=`set X $ac_compile; echo $2`
3141 { (ac_try="$ac_compiler --version >&5"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compiler --version >&5") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }
3151 { (ac_try="$ac_compiler -v >&5"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compiler -v >&5") 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }
3161 { (ac_try="$ac_compiler -V >&5"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compiler -V >&5") 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }
3172 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3173 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3174 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3185 main ()
3187 #ifndef __GNUC__
3188 choke me
3189 #endif
3192 return 0;
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } &&
3209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; } &&
3219 { ac_try='test -s conftest.$ac_objext'
3220 { (case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_try") 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_compiler_gnu=yes
3230 else
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 ac_compiler_gnu=no
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3241 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3242 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3243 GXX=`test $ac_compiler_gnu = yes && echo yes`
3244 ac_test_CXXFLAGS=${CXXFLAGS+set}
3245 ac_save_CXXFLAGS=$CXXFLAGS
3246 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3247 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_cxx_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3252 ac_cxx_werror_flag=yes
3253 ac_cv_prog_cxx_g=no
3254 CXXFLAGS="-g"
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3263 main ()
3267 return 0;
3269 _ACEOF
3270 rm -f conftest.$ac_objext
3271 if { (ac_try="$ac_compile"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>conftest.er1
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } &&
3284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3285 { (case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_try") 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; } &&
3294 { ac_try='test -s conftest.$ac_objext'
3295 { (case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_try") 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_prog_cxx_g=yes
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 CXXFLAGS=""
3310 cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h. */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3318 main ()
3322 return 0;
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_compile") 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_try") 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_try") 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3360 else
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3365 CXXFLAGS="-g"
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3374 main ()
3378 return 0;
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (ac_try="$ac_compile"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_compile") 2>conftest.er1
3389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } &&
3395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3396 { (case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_try") 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_try") 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 ac_cv_prog_cxx_g=yes
3416 else
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3432 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3433 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3434 if test "$ac_test_CXXFLAGS" = set; then
3435 CXXFLAGS=$ac_save_CXXFLAGS
3436 elif test $ac_cv_prog_cxx_g = yes; then
3437 if test "$GXX" = yes; then
3438 CXXFLAGS="-g -O2"
3439 else
3440 CXXFLAGS="-g"
3442 else
3443 if test "$GXX" = yes; then
3444 CXXFLAGS="-O2"
3445 else
3446 CXXFLAGS=
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3457 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3460 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 if test -n "$CPPBIN"; then
3464 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3477 done
3478 done
3479 IFS=$as_save_IFS
3483 CPPBIN=$ac_cv_prog_CPPBIN
3484 if test -n "$CPPBIN"; then
3485 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3486 echo "${ECHO_T}$CPPBIN" >&6; }
3487 else
3488 { echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6; }
3494 if test -z "$ac_cv_prog_CPPBIN"; then
3495 ac_ct_CPPBIN=$CPPBIN
3496 # Extract the first word of "cpp", so it can be a program name with args.
3497 set dummy cpp; ac_word=$2
3498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3500 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test -n "$ac_ct_CPPBIN"; then
3504 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_ac_ct_CPPBIN="cpp"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3519 IFS=$as_save_IFS
3523 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3524 if test -n "$ac_ct_CPPBIN"; then
3525 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3526 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3527 else
3528 { echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6; }
3532 if test "x$ac_ct_CPPBIN" = x; then
3533 CPPBIN="cpp"
3534 else
3535 case $cross_compiling:$ac_tool_warned in
3536 yes:)
3537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3538 whose name does not start with the host triplet. If you think this
3539 configuration is useful to you, please write to autoconf@gnu.org." >&5
3540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3541 whose name does not start with the host triplet. If you think this
3542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3543 ac_tool_warned=yes ;;
3544 esac
3545 CPPBIN=$ac_ct_CPPBIN
3547 else
3548 CPPBIN="$ac_cv_prog_CPPBIN"
3552 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3553 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3554 if test "${wine_cv_toolsdir+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 if test -z "$with_wine_tools"; then
3558 if test "$cross_compiling" = "yes"; then
3559 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3560 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3561 { (exit 1); exit 1; }; }
3562 else
3563 wine_cv_toolsdir="\$(TOPOBJDIR)"
3565 elif test -d "$with_wine_tools/tools/winebuild"; then
3566 case $with_wine_tools in
3567 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3568 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3569 esac
3570 else
3571 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3572 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3573 { (exit 1); exit 1; }; }
3576 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3577 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3578 TOOLSDIR=$wine_cv_toolsdir
3582 ac_ext=c
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3588 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3589 # On Suns, sometimes $CPP names a directory.
3590 if test -n "$CPP" && test -d "$CPP"; then
3591 CPP=
3593 if test -z "$CPP"; then
3594 if test "${ac_cv_prog_CPP+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 # Double quotes because CPP needs to be expanded
3598 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3600 ac_preproc_ok=false
3601 for ac_c_preproc_warn_flag in '' yes
3603 # Use a header file that comes with gcc, so configuring glibc
3604 # with a fresh cross-compiler works.
3605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3606 # <limits.h> exists even on freestanding compilers.
3607 # On the NeXT, cc -E runs the code through the compiler's parser,
3608 # not just through cpp. "Syntax error" is here to catch this case.
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615 #ifdef __STDC__
3616 # include <limits.h>
3617 #else
3618 # include <assert.h>
3619 #endif
3620 Syntax error
3621 _ACEOF
3622 if { (ac_try="$ac_cpp conftest.$ac_ext"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } >/dev/null; then
3635 if test -s conftest.err; then
3636 ac_cpp_err=$ac_c_preproc_warn_flag
3637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3638 else
3639 ac_cpp_err=
3641 else
3642 ac_cpp_err=yes
3644 if test -z "$ac_cpp_err"; then
3646 else
3647 echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3650 # Broken: fails on valid input.
3651 continue
3654 rm -f conftest.err conftest.$ac_ext
3656 # OK, works on sane cases. Now check whether nonexistent headers
3657 # can be detected and how.
3658 cat >conftest.$ac_ext <<_ACEOF
3659 /* confdefs.h. */
3660 _ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3664 #include <ac_nonexistent.h>
3665 _ACEOF
3666 if { (ac_try="$ac_cpp conftest.$ac_ext"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } >/dev/null; then
3679 if test -s conftest.err; then
3680 ac_cpp_err=$ac_c_preproc_warn_flag
3681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3682 else
3683 ac_cpp_err=
3685 else
3686 ac_cpp_err=yes
3688 if test -z "$ac_cpp_err"; then
3689 # Broken: success on invalid input.
3690 continue
3691 else
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3695 # Passes both tests.
3696 ac_preproc_ok=:
3697 break
3700 rm -f conftest.err conftest.$ac_ext
3702 done
3703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3704 rm -f conftest.err conftest.$ac_ext
3705 if $ac_preproc_ok; then
3706 break
3709 done
3710 ac_cv_prog_CPP=$CPP
3713 CPP=$ac_cv_prog_CPP
3714 else
3715 ac_cv_prog_CPP=$CPP
3717 { echo "$as_me:$LINENO: result: $CPP" >&5
3718 echo "${ECHO_T}$CPP" >&6; }
3719 ac_preproc_ok=false
3720 for ac_c_preproc_warn_flag in '' yes
3722 # Use a header file that comes with gcc, so configuring glibc
3723 # with a fresh cross-compiler works.
3724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3725 # <limits.h> exists even on freestanding compilers.
3726 # On the NeXT, cc -E runs the code through the compiler's parser,
3727 # not just through cpp. "Syntax error" is here to catch this case.
3728 cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h. */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3734 #ifdef __STDC__
3735 # include <limits.h>
3736 #else
3737 # include <assert.h>
3738 #endif
3739 Syntax error
3740 _ACEOF
3741 if { (ac_try="$ac_cpp conftest.$ac_ext"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3748 ac_status=$?
3749 grep -v '^ *+' conftest.er1 >conftest.err
3750 rm -f conftest.er1
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } >/dev/null; then
3754 if test -s conftest.err; then
3755 ac_cpp_err=$ac_c_preproc_warn_flag
3756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3757 else
3758 ac_cpp_err=
3760 else
3761 ac_cpp_err=yes
3763 if test -z "$ac_cpp_err"; then
3765 else
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3769 # Broken: fails on valid input.
3770 continue
3773 rm -f conftest.err conftest.$ac_ext
3775 # OK, works on sane cases. Now check whether nonexistent headers
3776 # can be detected and how.
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 #include <ac_nonexistent.h>
3784 _ACEOF
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3786 case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3792 ac_status=$?
3793 grep -v '^ *+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } >/dev/null; then
3798 if test -s conftest.err; then
3799 ac_cpp_err=$ac_c_preproc_warn_flag
3800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3801 else
3802 ac_cpp_err=
3804 else
3805 ac_cpp_err=yes
3807 if test -z "$ac_cpp_err"; then
3808 # Broken: success on invalid input.
3809 continue
3810 else
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 # Passes both tests.
3815 ac_preproc_ok=:
3816 break
3819 rm -f conftest.err conftest.$ac_ext
3821 done
3822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823 rm -f conftest.err conftest.$ac_ext
3824 if $ac_preproc_ok; then
3826 else
3827 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3828 See \`config.log' for more details." >&5
3829 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3830 See \`config.log' for more details." >&2;}
3831 { (exit 1); exit 1; }; }
3834 ac_ext=c
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 { echo "$as_me:$LINENO: checking for X" >&5
3842 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3845 # Check whether --with-x was given.
3846 if test "${with_x+set}" = set; then
3847 withval=$with_x;
3850 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3851 if test "x$with_x" = xno; then
3852 # The user explicitly disabled X.
3853 have_x=disabled
3854 else
3855 case $x_includes,$x_libraries in #(
3856 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3857 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3858 { (exit 1); exit 1; }; };; #(
3859 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862 # One or both of the vars are not set, and there is no cached value.
3863 ac_x_includes=no ac_x_libraries=no
3864 rm -f -r conftest.dir
3865 if mkdir conftest.dir; then
3866 cd conftest.dir
3867 cat >Imakefile <<'_ACEOF'
3868 incroot:
3869 @echo incroot='${INCROOT}'
3870 usrlibdir:
3871 @echo usrlibdir='${USRLIBDIR}'
3872 libdir:
3873 @echo libdir='${LIBDIR}'
3874 _ACEOF
3875 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3877 for ac_var in incroot usrlibdir libdir; do
3878 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3879 done
3880 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3881 for ac_extension in a so sl; do
3882 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3883 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3884 ac_im_usrlibdir=$ac_im_libdir; break
3886 done
3887 # Screen out bogus values from the imake configuration. They are
3888 # bogus both because they are the default anyway, and because
3889 # using them would break gcc on systems where it needs fixed includes.
3890 case $ac_im_incroot in
3891 /usr/include) ac_x_includes= ;;
3892 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3893 esac
3894 case $ac_im_usrlibdir in
3895 /usr/lib | /lib) ;;
3896 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3897 esac
3899 cd ..
3900 rm -f -r conftest.dir
3903 # Standard set of common directories for X headers.
3904 # Check X11 before X11Rn because it is often a symlink to the current release.
3905 ac_x_header_dirs='
3906 /usr/X11/include
3907 /usr/X11R6/include
3908 /usr/X11R5/include
3909 /usr/X11R4/include
3911 /usr/include/X11
3912 /usr/include/X11R6
3913 /usr/include/X11R5
3914 /usr/include/X11R4
3916 /usr/local/X11/include
3917 /usr/local/X11R6/include
3918 /usr/local/X11R5/include
3919 /usr/local/X11R4/include
3921 /usr/local/include/X11
3922 /usr/local/include/X11R6
3923 /usr/local/include/X11R5
3924 /usr/local/include/X11R4
3926 /usr/X386/include
3927 /usr/x386/include
3928 /usr/XFree86/include/X11
3930 /usr/include
3931 /usr/local/include
3932 /usr/unsupported/include
3933 /usr/athena/include
3934 /usr/local/x11r5/include
3935 /usr/lpp/Xamples/include
3937 /usr/openwin/include
3938 /usr/openwin/share/include'
3940 if test "$ac_x_includes" = no; then
3941 # Guess where to find include files, by looking for Xlib.h.
3942 # First, try using that file with no special directory specified.
3943 cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <X11/Xlib.h>
3950 _ACEOF
3951 if { (ac_try="$ac_cpp conftest.$ac_ext"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } >/dev/null; then
3964 if test -s conftest.err; then
3965 ac_cpp_err=$ac_c_preproc_warn_flag
3966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3967 else
3968 ac_cpp_err=
3970 else
3971 ac_cpp_err=yes
3973 if test -z "$ac_cpp_err"; then
3974 # We can compile using X headers with no special include directory.
3975 ac_x_includes=
3976 else
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 for ac_dir in $ac_x_header_dirs; do
3981 if test -r "$ac_dir/X11/Xlib.h"; then
3982 ac_x_includes=$ac_dir
3983 break
3985 done
3988 rm -f conftest.err conftest.$ac_ext
3989 fi # $ac_x_includes = no
3991 if test "$ac_x_libraries" = no; then
3992 # Check for the libraries.
3993 # See if we find them without any special options.
3994 # Don't add to $LIBS permanently.
3995 ac_save_LIBS=$LIBS
3996 LIBS="-lX11 $LIBS"
3997 cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h. */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003 #include <X11/Xlib.h>
4005 main ()
4007 XrmInitialize ()
4009 return 0;
4011 _ACEOF
4012 rm -f conftest.$ac_objext conftest$ac_exeext
4013 if { (ac_try="$ac_link"
4014 case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_link") 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030 esac
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_try") 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest$ac_exeext'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040 esac
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 LIBS=$ac_save_LIBS
4047 # We can link X programs with no special library path.
4048 ac_x_libraries=
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 LIBS=$ac_save_LIBS
4054 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4056 # Don't even attempt the hair of trying to link an X program!
4057 for ac_extension in a so sl; do
4058 if test -r "$ac_dir/libX11.$ac_extension"; then
4059 ac_x_libraries=$ac_dir
4060 break 2
4062 done
4063 done
4066 rm -f core conftest.err conftest.$ac_objext \
4067 conftest$ac_exeext conftest.$ac_ext
4068 fi # $ac_x_libraries = no
4070 case $ac_x_includes,$ac_x_libraries in #(
4071 no,* | *,no | *\'*)
4072 # Didn't find X, or a directory has "'" in its name.
4073 ac_cv_have_x="have_x=no";; #(
4075 # Record where we found X for the cache.
4076 ac_cv_have_x="have_x=yes\
4077 ac_x_includes='$ac_x_includes'\
4078 ac_x_libraries='$ac_x_libraries'"
4079 esac
4081 ;; #(
4082 *) have_x=yes;;
4083 esac
4084 eval "$ac_cv_have_x"
4085 fi # $with_x != no
4087 if test "$have_x" != yes; then
4088 { echo "$as_me:$LINENO: result: $have_x" >&5
4089 echo "${ECHO_T}$have_x" >&6; }
4090 no_x=yes
4091 else
4092 # If each of the values was on the command line, it overrides each guess.
4093 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4094 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4095 # Update the cache value to reflect the command line values.
4096 ac_cv_have_x="have_x=yes\
4097 ac_x_includes='$x_includes'\
4098 ac_x_libraries='$x_libraries'"
4099 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4100 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4103 if test "$no_x" = yes; then
4104 # Not all programs may use this symbol, but it does not hurt to define it.
4106 cat >>confdefs.h <<\_ACEOF
4107 #define X_DISPLAY_MISSING 1
4108 _ACEOF
4110 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4111 else
4112 if test -n "$x_includes"; then
4113 X_CFLAGS="$X_CFLAGS -I$x_includes"
4116 # It would also be nice to do this for all -L options, not just this one.
4117 if test -n "$x_libraries"; then
4118 X_LIBS="$X_LIBS -L$x_libraries"
4119 # For Solaris; some versions of Sun CC require a space after -R and
4120 # others require no space. Words are not sufficient . . . .
4121 case `(uname -sr) 2>/dev/null` in
4122 "SunOS 5"*)
4123 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4124 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4125 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4126 cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h. */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4134 main ()
4138 return 0;
4140 _ACEOF
4141 rm -f conftest.$ac_objext conftest$ac_exeext
4142 if { (ac_try="$ac_link"
4143 case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_link") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest$ac_exeext'
4166 { (case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169 esac
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_try") 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 ac_R_nospace=yes
4176 else
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 ac_R_nospace=no
4183 rm -f core conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4185 if test $ac_R_nospace = yes; then
4186 { echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6; }
4188 X_LIBS="$X_LIBS -R$x_libraries"
4189 else
4190 LIBS="$ac_xsave_LIBS -R $x_libraries"
4191 cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h. */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4199 main ()
4203 return 0;
4205 _ACEOF
4206 rm -f conftest.$ac_objext conftest$ac_exeext
4207 if { (ac_try="$ac_link"
4208 case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_link") 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224 esac
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_try") 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try='test -s conftest$ac_exeext'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_R_space=yes
4241 else
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 ac_R_space=no
4248 rm -f core conftest.err conftest.$ac_objext \
4249 conftest$ac_exeext conftest.$ac_ext
4250 if test $ac_R_space = yes; then
4251 { echo "$as_me:$LINENO: result: yes" >&5
4252 echo "${ECHO_T}yes" >&6; }
4253 X_LIBS="$X_LIBS -R $x_libraries"
4254 else
4255 { echo "$as_me:$LINENO: result: neither works" >&5
4256 echo "${ECHO_T}neither works" >&6; }
4259 LIBS=$ac_xsave_LIBS
4260 esac
4263 # Check for system-dependent libraries X programs must link with.
4264 # Do this before checking for the system-independent R6 libraries
4265 # (-lICE), since we may need -lsocket or whatever for X linking.
4267 if test "$ISC" = yes; then
4268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4269 else
4270 # Martyn Johnson says this is needed for Ultrix, if the X
4271 # libraries were built with DECnet support. And Karl Berry says
4272 # the Alpha needs dnet_stub (dnet does not exist).
4273 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4274 cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h. */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4281 /* Override any GCC internal prototype to avoid an error.
4282 Use char because int might match the return type of a GCC
4283 builtin and then its argument prototype would still apply. */
4284 #ifdef __cplusplus
4285 extern "C"
4286 #endif
4287 char XOpenDisplay ();
4289 main ()
4291 return XOpenDisplay ();
4293 return 0;
4295 _ACEOF
4296 rm -f conftest.$ac_objext conftest$ac_exeext
4297 if { (ac_try="$ac_link"
4298 case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_link") 2>conftest.er1
4304 ac_status=$?
4305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4311 { (case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_try") 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest$ac_exeext'
4321 { (case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_try") 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4331 else
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4335 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4336 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4337 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340 ac_check_lib_save_LIBS=$LIBS
4341 LIBS="-ldnet $LIBS"
4342 cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h. */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4349 /* Override any GCC internal prototype to avoid an error.
4350 Use char because int might match the return type of a GCC
4351 builtin and then its argument prototype would still apply. */
4352 #ifdef __cplusplus
4353 extern "C"
4354 #endif
4355 char dnet_ntoa ();
4357 main ()
4359 return dnet_ntoa ();
4361 return 0;
4363 _ACEOF
4364 rm -f conftest.$ac_objext conftest$ac_exeext
4365 if { (ac_try="$ac_link"
4366 case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_link") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } &&
4378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4379 { (case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_try") 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try='test -s conftest$ac_exeext'
4389 { (case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_try") 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 ac_cv_lib_dnet_dnet_ntoa=yes
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 ac_cv_lib_dnet_dnet_ntoa=no
4406 rm -f core conftest.err conftest.$ac_objext \
4407 conftest$ac_exeext conftest.$ac_ext
4408 LIBS=$ac_check_lib_save_LIBS
4410 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4411 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4412 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4413 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4416 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4417 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4418 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4419 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422 ac_check_lib_save_LIBS=$LIBS
4423 LIBS="-ldnet_stub $LIBS"
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h. */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4431 /* Override any GCC internal prototype to avoid an error.
4432 Use char because int might match the return type of a GCC
4433 builtin and then its argument prototype would still apply. */
4434 #ifdef __cplusplus
4435 extern "C"
4436 #endif
4437 char dnet_ntoa ();
4439 main ()
4441 return dnet_ntoa ();
4443 return 0;
4445 _ACEOF
4446 rm -f conftest.$ac_objext conftest$ac_exeext
4447 if { (ac_try="$ac_link"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_link") 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4461 { (case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464 esac
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_try") 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest$ac_exeext'
4471 { (case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_try") 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4480 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4481 else
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 ac_cv_lib_dnet_stub_dnet_ntoa=no
4488 rm -f core conftest.err conftest.$ac_objext \
4489 conftest$ac_exeext conftest.$ac_ext
4490 LIBS=$ac_check_lib_save_LIBS
4492 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4493 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4494 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4495 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4501 rm -f core conftest.err conftest.$ac_objext \
4502 conftest$ac_exeext conftest.$ac_ext
4503 LIBS="$ac_xsave_LIBS"
4505 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4506 # to get the SysV transport functions.
4507 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4508 # needs -lnsl.
4509 # The nsl library prevents programs from opening the X display
4510 # on Irix 5.2, according to T.E. Dickey.
4511 # The functions gethostbyname, getservbyname, and inet_addr are
4512 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4513 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4514 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4515 if test "${ac_cv_func_gethostbyname+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h. */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4526 #define gethostbyname innocuous_gethostbyname
4528 /* System header to define __stub macros and hopefully few prototypes,
4529 which can conflict with char gethostbyname (); below.
4530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 <limits.h> exists even on freestanding compilers. */
4533 #ifdef __STDC__
4534 # include <limits.h>
4535 #else
4536 # include <assert.h>
4537 #endif
4539 #undef gethostbyname
4541 /* Override any GCC internal prototype to avoid an error.
4542 Use char because int might match the return type of a GCC
4543 builtin and then its argument prototype would still apply. */
4544 #ifdef __cplusplus
4545 extern "C"
4546 #endif
4547 char gethostbyname ();
4548 /* The GNU C library defines this for functions which it implements
4549 to always fail with ENOSYS. Some functions are actually named
4550 something starting with __ and the normal name is an alias. */
4551 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4552 choke me
4553 #endif
4556 main ()
4558 return gethostbyname ();
4560 return 0;
4562 _ACEOF
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (ac_try="$ac_link"
4565 case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568 esac
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_link") 2>conftest.er1
4571 ac_status=$?
4572 grep -v '^ *+' conftest.er1 >conftest.err
4573 rm -f conftest.er1
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4578 { (case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581 esac
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_try") 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; } &&
4587 { ac_try='test -s conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_func_gethostbyname=yes
4598 else
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4602 ac_cv_func_gethostbyname=no
4605 rm -f core conftest.err conftest.$ac_objext \
4606 conftest$ac_exeext conftest.$ac_ext
4608 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4609 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4611 if test $ac_cv_func_gethostbyname = no; then
4612 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4613 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4614 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 ac_check_lib_save_LIBS=$LIBS
4618 LIBS="-lnsl $LIBS"
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4626 /* Override any GCC internal prototype to avoid an error.
4627 Use char because int might match the return type of a GCC
4628 builtin and then its argument prototype would still apply. */
4629 #ifdef __cplusplus
4630 extern "C"
4631 #endif
4632 char gethostbyname ();
4634 main ()
4636 return gethostbyname ();
4638 return 0;
4640 _ACEOF
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (ac_try="$ac_link"
4643 case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_link") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4656 { (case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_try") 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest$ac_exeext'
4666 { (case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_try") 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_lib_nsl_gethostbyname=yes
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ac_cv_lib_nsl_gethostbyname=no
4683 rm -f core conftest.err conftest.$ac_objext \
4684 conftest$ac_exeext conftest.$ac_ext
4685 LIBS=$ac_check_lib_save_LIBS
4687 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4688 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4689 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4693 if test $ac_cv_lib_nsl_gethostbyname = no; then
4694 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4695 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4696 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 ac_check_lib_save_LIBS=$LIBS
4700 LIBS="-lbsd $LIBS"
4701 cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h. */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4708 /* Override any GCC internal prototype to avoid an error.
4709 Use char because int might match the return type of a GCC
4710 builtin and then its argument prototype would still apply. */
4711 #ifdef __cplusplus
4712 extern "C"
4713 #endif
4714 char gethostbyname ();
4716 main ()
4718 return gethostbyname ();
4720 return 0;
4722 _ACEOF
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (ac_try="$ac_link"
4725 case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_link") 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4738 { (case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_try") 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest$ac_exeext'
4748 { (case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_try") 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 ac_cv_lib_bsd_gethostbyname=yes
4758 else
4759 echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 ac_cv_lib_bsd_gethostbyname=no
4765 rm -f core conftest.err conftest.$ac_objext \
4766 conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_check_lib_save_LIBS
4769 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4770 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4771 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4772 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4778 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4779 # socket/setsockopt and other routines are undefined under SCO ODT
4780 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4781 # on later versions), says Simon Leinen: it contains gethostby*
4782 # variants that don't use the name server (or something). -lsocket
4783 # must be given before -lnsl if both are needed. We assume that
4784 # if connect needs -lnsl, so does gethostbyname.
4785 { echo "$as_me:$LINENO: checking for connect" >&5
4786 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4787 if test "${ac_cv_func_connect+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4798 #define connect innocuous_connect
4800 /* System header to define __stub macros and hopefully few prototypes,
4801 which can conflict with char connect (); below.
4802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803 <limits.h> exists even on freestanding compilers. */
4805 #ifdef __STDC__
4806 # include <limits.h>
4807 #else
4808 # include <assert.h>
4809 #endif
4811 #undef connect
4813 /* Override any GCC internal prototype to avoid an error.
4814 Use char because int might match the return type of a GCC
4815 builtin and then its argument prototype would still apply. */
4816 #ifdef __cplusplus
4817 extern "C"
4818 #endif
4819 char connect ();
4820 /* The GNU C library defines this for functions which it implements
4821 to always fail with ENOSYS. Some functions are actually named
4822 something starting with __ and the normal name is an alias. */
4823 #if defined __stub_connect || defined __stub___connect
4824 choke me
4825 #endif
4828 main ()
4830 return connect ();
4832 return 0;
4834 _ACEOF
4835 rm -f conftest.$ac_objext conftest$ac_exeext
4836 if { (ac_try="$ac_link"
4837 case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840 esac
4841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842 (eval "$ac_link") 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4850 { (case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853 esac
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_try") 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try='test -s conftest$ac_exeext'
4860 { (case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863 esac
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_try") 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_cv_func_connect=yes
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4874 ac_cv_func_connect=no
4877 rm -f core conftest.err conftest.$ac_objext \
4878 conftest$ac_exeext conftest.$ac_ext
4880 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4881 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4883 if test $ac_cv_func_connect = no; then
4884 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4885 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4886 if test "${ac_cv_lib_socket_connect+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 ac_check_lib_save_LIBS=$LIBS
4890 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4898 /* Override any GCC internal prototype to avoid an error.
4899 Use char because int might match the return type of a GCC
4900 builtin and then its argument prototype would still apply. */
4901 #ifdef __cplusplus
4902 extern "C"
4903 #endif
4904 char connect ();
4906 main ()
4908 return connect ();
4910 return 0;
4912 _ACEOF
4913 rm -f conftest.$ac_objext conftest$ac_exeext
4914 if { (ac_try="$ac_link"
4915 case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_link") 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4928 { (case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931 esac
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_try") 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest$ac_exeext'
4938 { (case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_try") 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 ac_cv_lib_socket_connect=yes
4948 else
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4952 ac_cv_lib_socket_connect=no
4955 rm -f core conftest.err conftest.$ac_objext \
4956 conftest$ac_exeext conftest.$ac_ext
4957 LIBS=$ac_check_lib_save_LIBS
4959 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4960 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4961 if test $ac_cv_lib_socket_connect = yes; then
4962 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4967 # Guillermo Gomez says -lposix is necessary on A/UX.
4968 { echo "$as_me:$LINENO: checking for remove" >&5
4969 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4970 if test "${ac_cv_func_remove+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4981 #define remove innocuous_remove
4983 /* System header to define __stub macros and hopefully few prototypes,
4984 which can conflict with char remove (); below.
4985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 <limits.h> exists even on freestanding compilers. */
4988 #ifdef __STDC__
4989 # include <limits.h>
4990 #else
4991 # include <assert.h>
4992 #endif
4994 #undef remove
4996 /* Override any GCC internal prototype to avoid an error.
4997 Use char because int might match the return type of a GCC
4998 builtin and then its argument prototype would still apply. */
4999 #ifdef __cplusplus
5000 extern "C"
5001 #endif
5002 char remove ();
5003 /* The GNU C library defines this for functions which it implements
5004 to always fail with ENOSYS. Some functions are actually named
5005 something starting with __ and the normal name is an alias. */
5006 #if defined __stub_remove || defined __stub___remove
5007 choke me
5008 #endif
5011 main ()
5013 return remove ();
5015 return 0;
5017 _ACEOF
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (ac_try="$ac_link"
5020 case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023 esac
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_link") 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5033 { (case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_try") 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; } &&
5042 { ac_try='test -s conftest$ac_exeext'
5043 { (case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_try") 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_func_remove=yes
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 ac_cv_func_remove=no
5060 rm -f core conftest.err conftest.$ac_objext \
5061 conftest$ac_exeext conftest.$ac_ext
5063 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5064 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5066 if test $ac_cv_func_remove = no; then
5067 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5068 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5069 if test "${ac_cv_lib_posix_remove+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 ac_check_lib_save_LIBS=$LIBS
5073 LIBS="-lposix $LIBS"
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 /* Override any GCC internal prototype to avoid an error.
5082 Use char because int might match the return type of a GCC
5083 builtin and then its argument prototype would still apply. */
5084 #ifdef __cplusplus
5085 extern "C"
5086 #endif
5087 char remove ();
5089 main ()
5091 return remove ();
5093 return 0;
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (ac_try="$ac_link"
5098 case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_link") 2>conftest.er1
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5111 { (case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_try") 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; } &&
5120 { ac_try='test -s conftest$ac_exeext'
5121 { (case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_try") 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_lib_posix_remove=yes
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 ac_cv_lib_posix_remove=no
5138 rm -f core conftest.err conftest.$ac_objext \
5139 conftest$ac_exeext conftest.$ac_ext
5140 LIBS=$ac_check_lib_save_LIBS
5142 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5143 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5144 if test $ac_cv_lib_posix_remove = yes; then
5145 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5150 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5151 { echo "$as_me:$LINENO: checking for shmat" >&5
5152 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5153 if test "${ac_cv_func_shmat+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5164 #define shmat innocuous_shmat
5166 /* System header to define __stub macros and hopefully few prototypes,
5167 which can conflict with char shmat (); below.
5168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 <limits.h> exists even on freestanding compilers. */
5171 #ifdef __STDC__
5172 # include <limits.h>
5173 #else
5174 # include <assert.h>
5175 #endif
5177 #undef shmat
5179 /* Override any GCC internal prototype to avoid an error.
5180 Use char because int might match the return type of a GCC
5181 builtin and then its argument prototype would still apply. */
5182 #ifdef __cplusplus
5183 extern "C"
5184 #endif
5185 char shmat ();
5186 /* The GNU C library defines this for functions which it implements
5187 to always fail with ENOSYS. Some functions are actually named
5188 something starting with __ and the normal name is an alias. */
5189 #if defined __stub_shmat || defined __stub___shmat
5190 choke me
5191 #endif
5194 main ()
5196 return shmat ();
5198 return 0;
5200 _ACEOF
5201 rm -f conftest.$ac_objext conftest$ac_exeext
5202 if { (ac_try="$ac_link"
5203 case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5206 esac
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_link") 2>conftest.er1
5209 ac_status=$?
5210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } &&
5215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5216 { (case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219 esac
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_try") 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; } &&
5225 { ac_try='test -s conftest$ac_exeext'
5226 { (case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_try") 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 ac_cv_func_shmat=yes
5236 else
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 ac_cv_func_shmat=no
5243 rm -f core conftest.err conftest.$ac_objext \
5244 conftest$ac_exeext conftest.$ac_ext
5246 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5247 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5249 if test $ac_cv_func_shmat = no; then
5250 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5251 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5252 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 ac_check_lib_save_LIBS=$LIBS
5256 LIBS="-lipc $LIBS"
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h. */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5264 /* Override any GCC internal prototype to avoid an error.
5265 Use char because int might match the return type of a GCC
5266 builtin and then its argument prototype would still apply. */
5267 #ifdef __cplusplus
5268 extern "C"
5269 #endif
5270 char shmat ();
5272 main ()
5274 return shmat ();
5276 return 0;
5278 _ACEOF
5279 rm -f conftest.$ac_objext conftest$ac_exeext
5280 if { (ac_try="$ac_link"
5281 case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284 esac
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_link") 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294 { (case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_try") 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; } &&
5303 { ac_try='test -s conftest$ac_exeext'
5304 { (case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307 esac
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_try") 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_lib_ipc_shmat=yes
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_cv_lib_ipc_shmat=no
5321 rm -f core conftest.err conftest.$ac_objext \
5322 conftest$ac_exeext conftest.$ac_ext
5323 LIBS=$ac_check_lib_save_LIBS
5325 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5326 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5327 if test $ac_cv_lib_ipc_shmat = yes; then
5328 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5334 # Check for libraries that X11R6 Xt/Xaw programs need.
5335 ac_save_LDFLAGS=$LDFLAGS
5336 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5337 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5338 # check for ICE first), but we must link in the order -lSM -lICE or
5339 # we get undefined symbols. So assume we have SM if we have ICE.
5340 # These have to be linked with before -lX11, unlike the other
5341 # libraries we check for below, so use a different variable.
5342 # John Interrante, Karl Berry
5343 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5344 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5345 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348 ac_check_lib_save_LIBS=$LIBS
5349 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h. */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5357 /* Override any GCC internal prototype to avoid an error.
5358 Use char because int might match the return type of a GCC
5359 builtin and then its argument prototype would still apply. */
5360 #ifdef __cplusplus
5361 extern "C"
5362 #endif
5363 char IceConnectionNumber ();
5365 main ()
5367 return IceConnectionNumber ();
5369 return 0;
5371 _ACEOF
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (ac_try="$ac_link"
5374 case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_link") 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5387 { (case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_try") 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; } &&
5396 { ac_try='test -s conftest$ac_exeext'
5397 { (case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400 esac
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_try") 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_cv_lib_ICE_IceConnectionNumber=yes
5407 else
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 ac_cv_lib_ICE_IceConnectionNumber=no
5414 rm -f core conftest.err conftest.$ac_objext \
5415 conftest$ac_exeext conftest.$ac_ext
5416 LIBS=$ac_check_lib_save_LIBS
5418 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5419 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5420 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5421 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5424 LDFLAGS=$ac_save_LDFLAGS
5428 for ac_prog in flex lex
5430 # Extract the first word of "$ac_prog", so it can be a program name with args.
5431 set dummy $ac_prog; ac_word=$2
5432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5434 if test "${ac_cv_prog_LEX+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 if test -n "$LEX"; then
5438 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5447 ac_cv_prog_LEX="$ac_prog"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5451 done
5452 done
5453 IFS=$as_save_IFS
5457 LEX=$ac_cv_prog_LEX
5458 if test -n "$LEX"; then
5459 { echo "$as_me:$LINENO: result: $LEX" >&5
5460 echo "${ECHO_T}$LEX" >&6; }
5461 else
5462 { echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6; }
5467 test -n "$LEX" && break
5468 done
5469 test -n "$LEX" || LEX=":"
5471 if test -z "$LEXLIB"
5472 then
5473 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5474 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
5475 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478 ac_check_lib_save_LIBS=$LIBS
5479 LIBS="-lfl $LIBS"
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5487 /* Override any GCC internal prototype to avoid an error.
5488 Use char because int might match the return type of a GCC
5489 builtin and then its argument prototype would still apply. */
5490 #ifdef __cplusplus
5491 extern "C"
5492 #endif
5493 char yywrap ();
5495 main ()
5497 return yywrap ();
5499 return 0;
5501 _ACEOF
5502 rm -f conftest.$ac_objext conftest$ac_exeext
5503 if { (ac_try="$ac_link"
5504 case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_link") 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } &&
5516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5517 { (case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520 esac
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_try") 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; } &&
5526 { ac_try='test -s conftest$ac_exeext'
5527 { (case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_try") 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_cv_lib_fl_yywrap=yes
5537 else
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5541 ac_cv_lib_fl_yywrap=no
5544 rm -f core conftest.err conftest.$ac_objext \
5545 conftest$ac_exeext conftest.$ac_ext
5546 LIBS=$ac_check_lib_save_LIBS
5548 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5549 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
5550 if test $ac_cv_lib_fl_yywrap = yes; then
5551 LEXLIB="-lfl"
5552 else
5553 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5554 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
5555 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558 ac_check_lib_save_LIBS=$LIBS
5559 LIBS="-ll $LIBS"
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5567 /* Override any GCC internal prototype to avoid an error.
5568 Use char because int might match the return type of a GCC
5569 builtin and then its argument prototype would still apply. */
5570 #ifdef __cplusplus
5571 extern "C"
5572 #endif
5573 char yywrap ();
5575 main ()
5577 return yywrap ();
5579 return 0;
5581 _ACEOF
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (ac_try="$ac_link"
5584 case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_link") 2>conftest.er1
5590 ac_status=$?
5591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5597 { (case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_try") 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest$ac_exeext'
5607 { (case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610 esac
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_try") 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_lib_l_yywrap=yes
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 ac_cv_lib_l_yywrap=no
5624 rm -f core conftest.err conftest.$ac_objext \
5625 conftest$ac_exeext conftest.$ac_ext
5626 LIBS=$ac_check_lib_save_LIBS
5628 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5629 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
5630 if test $ac_cv_lib_l_yywrap = yes; then
5631 LEXLIB="-ll"
5638 if test "x$LEX" != "x:"; then
5639 { echo "$as_me:$LINENO: checking lex output file root" >&5
5640 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5641 if test "${ac_cv_prog_lex_root+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644 # The minimal lex program is just a single line: %%. But some broken lexes
5645 # (Solaris, I think it was) want two %% lines, so accommodate them.
5646 cat >conftest.l <<_ACEOF
5649 _ACEOF
5650 { (ac_try="$LEX conftest.l"
5651 case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654 esac
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$LEX conftest.l") 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }
5660 if test -f lex.yy.c; then
5661 ac_cv_prog_lex_root=lex.yy
5662 elif test -f lexyy.c; then
5663 ac_cv_prog_lex_root=lexyy
5664 else
5665 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5666 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5667 { (exit 1); exit 1; }; }
5670 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5671 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5672 rm -f conftest.l
5673 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5675 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5676 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5677 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680 # POSIX says lex can declare yytext either as a pointer or an array; the
5681 # default is implementation-dependent. Figure out which it is, since
5682 # not all implementations provide the %pointer and %array declarations.
5683 ac_cv_prog_lex_yytext_pointer=no
5684 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5685 ac_save_LIBS=$LIBS
5686 LIBS="$LIBS $LEXLIB"
5687 cat >conftest.$ac_ext <<_ACEOF
5688 `cat $LEX_OUTPUT_ROOT.c`
5689 _ACEOF
5690 rm -f conftest.$ac_objext conftest$ac_exeext
5691 if { (ac_try="$ac_link"
5692 case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_link") 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } &&
5704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5705 { (case "(($ac_try" in
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5708 esac
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_try") 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest$ac_exeext'
5715 { (case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 ac_cv_prog_lex_yytext_pointer=yes
5725 else
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5732 rm -f core conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
5734 LIBS=$ac_save_LIBS
5735 rm -f "${LEX_OUTPUT_ROOT}.c"
5738 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5739 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5740 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5742 cat >>confdefs.h <<\_ACEOF
5743 #define YYTEXT_POINTER 1
5744 _ACEOF
5750 for ac_prog in $LEX flex lex
5752 # Extract the first word of "$ac_prog", so it can be a program name with args.
5753 set dummy $ac_prog; ac_word=$2
5754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756 if test "${ac_cv_prog_XLEX+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759 if test -n "$XLEX"; then
5760 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_XLEX="$ac_prog"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5773 done
5774 done
5775 IFS=$as_save_IFS
5779 XLEX=$ac_cv_prog_XLEX
5780 if test -n "$XLEX"; then
5781 { echo "$as_me:$LINENO: result: $XLEX" >&5
5782 echo "${ECHO_T}$XLEX" >&6; }
5783 else
5784 { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5789 test -n "$XLEX" && break
5790 done
5791 test -n "$XLEX" || XLEX="none"
5793 if test "$XLEX" = "none"
5794 then
5795 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5796 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5797 { (exit 1); exit 1; }; }
5800 for ac_prog in bison
5802 # Extract the first word of "$ac_prog", so it can be a program name with args.
5803 set dummy $ac_prog; ac_word=$2
5804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5806 if test "${ac_cv_prog_BISON+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 if test -n "$BISON"; then
5810 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_prog_BISON="$ac_prog"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5823 done
5824 done
5825 IFS=$as_save_IFS
5829 BISON=$ac_cv_prog_BISON
5830 if test -n "$BISON"; then
5831 { echo "$as_me:$LINENO: result: $BISON" >&5
5832 echo "${ECHO_T}$BISON" >&6; }
5833 else
5834 { echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6; }
5839 test -n "$BISON" && break
5840 done
5841 test -n "$BISON" || BISON="none"
5843 if test "$BISON" = "none"
5844 then
5845 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5846 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5847 { (exit 1); exit 1; }; }
5850 if test -n "$ac_tool_prefix"; then
5851 for ac_prog in gas as
5853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5857 if test "${ac_cv_prog_AS+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860 if test -n "$AS"; then
5861 ac_cv_prog_AS="$AS" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5874 done
5875 done
5876 IFS=$as_save_IFS
5880 AS=$ac_cv_prog_AS
5881 if test -n "$AS"; then
5882 { echo "$as_me:$LINENO: result: $AS" >&5
5883 echo "${ECHO_T}$AS" >&6; }
5884 else
5885 { echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6; }
5890 test -n "$AS" && break
5891 done
5893 if test -z "$AS"; then
5894 ac_ct_AS=$AS
5895 for ac_prog in gas as
5897 # Extract the first word of "$ac_prog", so it can be a program name with args.
5898 set dummy $ac_prog; ac_word=$2
5899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5901 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 if test -n "$ac_ct_AS"; then
5905 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_prog_ac_ct_AS="$ac_prog"
5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5918 done
5919 done
5920 IFS=$as_save_IFS
5924 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5925 if test -n "$ac_ct_AS"; then
5926 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5927 echo "${ECHO_T}$ac_ct_AS" >&6; }
5928 else
5929 { echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6; }
5934 test -n "$ac_ct_AS" && break
5935 done
5937 if test "x$ac_ct_AS" = x; then
5938 AS="as"
5939 else
5940 case $cross_compiling:$ac_tool_warned in
5941 yes:)
5942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5943 whose name does not start with the host triplet. If you think this
5944 configuration is useful to you, please write to autoconf@gnu.org." >&5
5945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5946 whose name does not start with the host triplet. If you think this
5947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5948 ac_tool_warned=yes ;;
5949 esac
5950 AS=$ac_ct_AS
5954 if test -n "$ac_tool_prefix"; then
5955 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}ld; ac_word=$2
5957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5959 if test "${ac_cv_prog_LD+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962 if test -n "$LD"; then
5963 ac_cv_prog_LD="$LD" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_LD="${ac_tool_prefix}ld"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5976 done
5977 done
5978 IFS=$as_save_IFS
5982 LD=$ac_cv_prog_LD
5983 if test -n "$LD"; then
5984 { echo "$as_me:$LINENO: result: $LD" >&5
5985 echo "${ECHO_T}$LD" >&6; }
5986 else
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5993 if test -z "$ac_cv_prog_LD"; then
5994 ac_ct_LD=$LD
5995 # Extract the first word of "ld", so it can be a program name with args.
5996 set dummy ld; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 if test -n "$ac_ct_LD"; then
6003 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6012 ac_cv_prog_ac_ct_LD="ld"
6013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 break 2
6016 done
6017 done
6018 IFS=$as_save_IFS
6022 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6023 if test -n "$ac_ct_LD"; then
6024 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6025 echo "${ECHO_T}$ac_ct_LD" >&6; }
6026 else
6027 { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6031 if test "x$ac_ct_LD" = x; then
6032 LD="ld"
6033 else
6034 case $cross_compiling:$ac_tool_warned in
6035 yes:)
6036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6037 whose name does not start with the host triplet. If you think this
6038 configuration is useful to you, please write to autoconf@gnu.org." >&5
6039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6040 whose name does not start with the host triplet. If you think this
6041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6042 ac_tool_warned=yes ;;
6043 esac
6044 LD=$ac_ct_LD
6046 else
6047 LD="$ac_cv_prog_LD"
6050 if test -n "$ac_tool_prefix"; then
6051 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6052 set dummy ${ac_tool_prefix}ar; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_AR+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058 if test -n "$AR"; then
6059 ac_cv_prog_AR="$AR" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_AR="${ac_tool_prefix}ar"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6072 done
6073 done
6074 IFS=$as_save_IFS
6078 AR=$ac_cv_prog_AR
6079 if test -n "$AR"; then
6080 { echo "$as_me:$LINENO: result: $AR" >&5
6081 echo "${ECHO_T}$AR" >&6; }
6082 else
6083 { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6089 if test -z "$ac_cv_prog_AR"; then
6090 ac_ct_AR=$AR
6091 # Extract the first word of "ar", so it can be a program name with args.
6092 set dummy ar; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098 if test -n "$ac_ct_AR"; then
6099 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_ac_ct_AR="ar"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6112 done
6113 done
6114 IFS=$as_save_IFS
6118 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6119 if test -n "$ac_ct_AR"; then
6120 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6121 echo "${ECHO_T}$ac_ct_AR" >&6; }
6122 else
6123 { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6127 if test "x$ac_ct_AR" = x; then
6128 AR="ar"
6129 else
6130 case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133 whose name does not start with the host triplet. If you think this
6134 configuration is useful to you, please write to autoconf@gnu.org." >&5
6135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet. If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6138 ac_tool_warned=yes ;;
6139 esac
6140 AR=$ac_ct_AR
6142 else
6143 AR="$ac_cv_prog_AR"
6146 if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_RANLIB+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154 if test -n "$RANLIB"; then
6155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6168 done
6169 done
6170 IFS=$as_save_IFS
6174 RANLIB=$ac_cv_prog_RANLIB
6175 if test -n "$RANLIB"; then
6176 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6177 echo "${ECHO_T}$RANLIB" >&6; }
6178 else
6179 { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6185 if test -z "$ac_cv_prog_RANLIB"; then
6186 ac_ct_RANLIB=$RANLIB
6187 # Extract the first word of "ranlib", so it can be a program name with args.
6188 set dummy ranlib; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194 if test -n "$ac_ct_RANLIB"; then
6195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_ac_ct_RANLIB="ranlib"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6208 done
6209 done
6210 IFS=$as_save_IFS
6214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215 if test -n "$ac_ct_RANLIB"; then
6216 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6217 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6218 else
6219 { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6223 if test "x$ac_ct_RANLIB" = x; then
6224 RANLIB=":"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229 whose name does not start with the host triplet. If you think this
6230 configuration is useful to you, please write to autoconf@gnu.org." >&5
6231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet. If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236 RANLIB=$ac_ct_RANLIB
6238 else
6239 RANLIB="$ac_cv_prog_RANLIB"
6242 if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}strip; ac_word=$2
6245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247 if test "${ac_cv_prog_STRIP+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250 if test -n "$STRIP"; then
6251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6264 done
6265 done
6266 IFS=$as_save_IFS
6270 STRIP=$ac_cv_prog_STRIP
6271 if test -n "$STRIP"; then
6272 { echo "$as_me:$LINENO: result: $STRIP" >&5
6273 echo "${ECHO_T}$STRIP" >&6; }
6274 else
6275 { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6281 if test -z "$ac_cv_prog_STRIP"; then
6282 ac_ct_STRIP=$STRIP
6283 # Extract the first word of "strip", so it can be a program name with args.
6284 set dummy strip; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290 if test -n "$ac_ct_STRIP"; then
6291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_ac_ct_STRIP="strip"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6304 done
6305 done
6306 IFS=$as_save_IFS
6310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6311 if test -n "$ac_ct_STRIP"; then
6312 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6313 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6314 else
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6319 if test "x$ac_ct_STRIP" = x; then
6320 STRIP="strip"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323 yes:)
6324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet. If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&5
6327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6328 whose name does not start with the host triplet. If you think this
6329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6330 ac_tool_warned=yes ;;
6331 esac
6332 STRIP=$ac_ct_STRIP
6334 else
6335 STRIP="$ac_cv_prog_STRIP"
6338 if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6340 set dummy ${ac_tool_prefix}windres; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_prog_WINDRES+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346 if test -n "$WINDRES"; then
6347 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6360 done
6361 done
6362 IFS=$as_save_IFS
6366 WINDRES=$ac_cv_prog_WINDRES
6367 if test -n "$WINDRES"; then
6368 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6369 echo "${ECHO_T}$WINDRES" >&6; }
6370 else
6371 { echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6; }
6377 if test -z "$ac_cv_prog_WINDRES"; then
6378 ac_ct_WINDRES=$WINDRES
6379 # Extract the first word of "windres", so it can be a program name with args.
6380 set dummy windres; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 if test -n "$ac_ct_WINDRES"; then
6387 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_ac_ct_WINDRES="windres"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6400 done
6401 done
6402 IFS=$as_save_IFS
6406 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6407 if test -n "$ac_ct_WINDRES"; then
6408 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6409 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6410 else
6411 { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6415 if test "x$ac_ct_WINDRES" = x; then
6416 WINDRES="false"
6417 else
6418 case $cross_compiling:$ac_tool_warned in
6419 yes:)
6420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6421 whose name does not start with the host triplet. If you think this
6422 configuration is useful to you, please write to autoconf@gnu.org." >&5
6423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6424 whose name does not start with the host triplet. If you think this
6425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6426 ac_tool_warned=yes ;;
6427 esac
6428 WINDRES=$ac_ct_WINDRES
6430 else
6431 WINDRES="$ac_cv_prog_WINDRES"
6434 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6435 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6436 LN_S=$as_ln_s
6437 if test "$LN_S" = "ln -s"; then
6438 { echo "$as_me:$LINENO: result: yes" >&5
6439 echo "${ECHO_T}yes" >&6; }
6440 else
6441 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6442 echo "${ECHO_T}no, using $LN_S" >&6; }
6445 { echo "$as_me:$LINENO: checking whether ln works" >&5
6446 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
6447 rm -f conf$$ conf$$.file
6448 echo >conf$$.file
6449 if ln conf$$.file conf$$ 2>/dev/null; then
6450 LN=ln
6452 { echo "$as_me:$LINENO: result: yes" >&5
6453 echo "${ECHO_T}yes" >&6; }
6454 else
6455 LN="cp -p"
6457 { echo "$as_me:$LINENO: result: no, using $LN" >&5
6458 echo "${ECHO_T}no, using $LN" >&6; }
6460 rm -f conf$$ conf$$.file
6461 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6462 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6463 if test "${ac_cv_path_GREP+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466 # Extract the first word of "grep ggrep" to use in msg output
6467 if test -z "$GREP"; then
6468 set dummy grep ggrep; ac_prog_name=$2
6469 if test "${ac_cv_path_GREP+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472 ac_path_GREP_found=false
6473 # Loop through the user's path and test for each of PROGNAME-LIST
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_prog in grep ggrep; do
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6482 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6483 # Check for GNU ac_path_GREP and select it if it is found.
6484 # Check for GNU $ac_path_GREP
6485 case `"$ac_path_GREP" --version 2>&1` in
6486 *GNU*)
6487 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6489 ac_count=0
6490 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6491 while :
6493 cat "conftest.in" "conftest.in" >"conftest.tmp"
6494 mv "conftest.tmp" "conftest.in"
6495 cp "conftest.in" "conftest.nl"
6496 echo 'GREP' >> "conftest.nl"
6497 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6499 ac_count=`expr $ac_count + 1`
6500 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6501 # Best one so far, save it but keep looking for a better one
6502 ac_cv_path_GREP="$ac_path_GREP"
6503 ac_path_GREP_max=$ac_count
6505 # 10*(2^10) chars as input seems more than enough
6506 test $ac_count -gt 10 && break
6507 done
6508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6509 esac
6512 $ac_path_GREP_found && break 3
6513 done
6514 done
6516 done
6517 IFS=$as_save_IFS
6522 GREP="$ac_cv_path_GREP"
6523 if test -z "$GREP"; then
6524 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6525 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6526 { (exit 1); exit 1; }; }
6529 else
6530 ac_cv_path_GREP=$GREP
6535 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6536 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6537 GREP="$ac_cv_path_GREP"
6540 { echo "$as_me:$LINENO: checking for egrep" >&5
6541 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_EGREP+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6546 then ac_cv_path_EGREP="$GREP -E"
6547 else
6548 # Extract the first word of "egrep" to use in msg output
6549 if test -z "$EGREP"; then
6550 set dummy egrep; ac_prog_name=$2
6551 if test "${ac_cv_path_EGREP+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554 ac_path_EGREP_found=false
6555 # Loop through the user's path and test for each of PROGNAME-LIST
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_prog in egrep; do
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6564 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6565 # Check for GNU ac_path_EGREP and select it if it is found.
6566 # Check for GNU $ac_path_EGREP
6567 case `"$ac_path_EGREP" --version 2>&1` in
6568 *GNU*)
6569 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6571 ac_count=0
6572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6573 while :
6575 cat "conftest.in" "conftest.in" >"conftest.tmp"
6576 mv "conftest.tmp" "conftest.in"
6577 cp "conftest.in" "conftest.nl"
6578 echo 'EGREP' >> "conftest.nl"
6579 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6581 ac_count=`expr $ac_count + 1`
6582 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6583 # Best one so far, save it but keep looking for a better one
6584 ac_cv_path_EGREP="$ac_path_EGREP"
6585 ac_path_EGREP_max=$ac_count
6587 # 10*(2^10) chars as input seems more than enough
6588 test $ac_count -gt 10 && break
6589 done
6590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6591 esac
6594 $ac_path_EGREP_found && break 3
6595 done
6596 done
6598 done
6599 IFS=$as_save_IFS
6604 EGREP="$ac_cv_path_EGREP"
6605 if test -z "$EGREP"; then
6606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6608 { (exit 1); exit 1; }; }
6611 else
6612 ac_cv_path_EGREP=$EGREP
6618 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6619 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6620 EGREP="$ac_cv_path_EGREP"
6623 # Extract the first word of "ldconfig", so it can be a program name with args.
6624 set dummy ldconfig; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630 case $LDCONFIG in
6631 [\\/]* | ?:[\\/]*)
6632 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in /sbin /usr/sbin $PATH
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6646 done
6647 done
6648 IFS=$as_save_IFS
6650 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6652 esac
6654 LDCONFIG=$ac_cv_path_LDCONFIG
6655 if test -n "$LDCONFIG"; then
6656 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6657 echo "${ECHO_T}$LDCONFIG" >&6; }
6658 else
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6664 # Find a good install program. We prefer a C program (faster),
6665 # so one script is as good as another. But avoid the broken or
6666 # incompatible versions:
6667 # SysV /etc/install, /usr/sbin/install
6668 # SunOS /usr/etc/install
6669 # IRIX /sbin/install
6670 # AIX /bin/install
6671 # AmigaOS /C/install, which installs bootblocks on floppy discs
6672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6675 # OS/2's system install, which has a completely different semantic
6676 # ./install, which can be erroneously created by make from ./install.sh.
6677 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6678 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6679 if test -z "$INSTALL"; then
6680 if test "${ac_cv_path_install+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 # Account for people who put trailing slashes in PATH elements.
6689 case $as_dir/ in
6690 ./ | .// | /cC/* | \
6691 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6692 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6693 /usr/ucb/* ) ;;
6695 # OSF1 and SCO ODT 3.0 have their own names for install.
6696 # Don't use installbsd from OSF since it installs stuff as root
6697 # by default.
6698 for ac_prog in ginstall scoinst install; do
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6701 if test $ac_prog = install &&
6702 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6703 # AIX install. It has an incompatible calling convention.
6705 elif test $ac_prog = install &&
6706 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6707 # program-specific install script used by HP pwplus--don't use.
6709 else
6710 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6711 break 3
6714 done
6715 done
6717 esac
6718 done
6719 IFS=$as_save_IFS
6723 if test "${ac_cv_path_install+set}" = set; then
6724 INSTALL=$ac_cv_path_install
6725 else
6726 # As a last resort, use the slow shell script. Don't cache a
6727 # value for INSTALL within a source directory, because that will
6728 # break other packages using the cache if that directory is
6729 # removed, or if the value is a relative name.
6730 INSTALL=$ac_install_sh
6733 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6734 echo "${ECHO_T}$INSTALL" >&6; }
6736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6737 # It thinks the first close brace ends the variable substitution.
6738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6744 case "$INSTALL" in
6745 [\\/$]* | ?:[\\/]* ) ;;
6746 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6747 esac
6749 for ac_prog in lclint lint
6751 # Extract the first word of "$ac_prog", so it can be a program name with args.
6752 set dummy $ac_prog; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_prog_LINT+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 if test -n "$LINT"; then
6759 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_prog_LINT="$ac_prog"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6778 LINT=$ac_cv_prog_LINT
6779 if test -n "$LINT"; then
6780 { echo "$as_me:$LINENO: result: $LINT" >&5
6781 echo "${ECHO_T}$LINT" >&6; }
6782 else
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 test -n "$LINT" && break
6789 done
6791 if test "$LINT" = "lint"
6792 then
6793 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6798 for ac_prog in fontforge
6800 # Extract the first word of "$ac_prog", so it can be a program name with args.
6801 set dummy $ac_prog; ac_word=$2
6802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 if test -n "$FONTFORGE"; then
6808 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_FONTFORGE="$ac_prog"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6821 done
6822 done
6823 IFS=$as_save_IFS
6827 FONTFORGE=$ac_cv_prog_FONTFORGE
6828 if test -n "$FONTFORGE"; then
6829 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6830 echo "${ECHO_T}$FONTFORGE" >&6; }
6831 else
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6837 test -n "$FONTFORGE" && break
6838 done
6839 test -n "$FONTFORGE" || FONTFORGE="false"
6841 for ac_prog in pkg-config
6843 # Extract the first word of "$ac_prog", so it can be a program name with args.
6844 set dummy $ac_prog; ac_word=$2
6845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6847 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850 if test -n "$PKG_CONFIG"; then
6851 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_prog_PKG_CONFIG="$ac_prog"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6864 done
6865 done
6866 IFS=$as_save_IFS
6870 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6871 if test -n "$PKG_CONFIG"; then
6872 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6873 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6874 else
6875 { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6880 test -n "$PKG_CONFIG" && break
6881 done
6882 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6885 case $host_cpu in
6886 *i[3456789]86*)
6887 # Extract the first word of "prelink", so it can be a program name with args.
6888 set dummy prelink; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_path_PRELINK+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894 case $PRELINK in
6895 [\\/]* | ?:[\\/]*)
6896 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in /sbin /usr/sbin $PATH
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6910 done
6911 done
6912 IFS=$as_save_IFS
6914 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6916 esac
6918 PRELINK=$ac_cv_path_PRELINK
6919 if test -n "$PRELINK"; then
6920 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6921 echo "${ECHO_T}$PRELINK" >&6; }
6922 else
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6929 esac
6933 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6934 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6935 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938 ac_check_lib_save_LIBS=$LIBS
6939 LIBS="-li386 $LIBS"
6940 cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h. */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6947 /* Override any GCC internal prototype to avoid an error.
6948 Use char because int might match the return type of a GCC
6949 builtin and then its argument prototype would still apply. */
6950 #ifdef __cplusplus
6951 extern "C"
6952 #endif
6953 char i386_set_ldt ();
6955 main ()
6957 return i386_set_ldt ();
6959 return 0;
6961 _ACEOF
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (ac_try="$ac_link"
6964 case "(($ac_try" in
6965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966 *) ac_try_echo=$ac_try;;
6967 esac
6968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969 (eval "$ac_link") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6977 { (case "(($ac_try" in
6978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979 *) ac_try_echo=$ac_try;;
6980 esac
6981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982 (eval "$ac_try") 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try='test -s conftest$ac_exeext'
6987 { (case "(($ac_try" in
6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989 *) ac_try_echo=$ac_try;;
6990 esac
6991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6992 (eval "$ac_try") 2>&5
6993 ac_status=$?
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; }; then
6996 ac_cv_lib_i386_i386_set_ldt=yes
6997 else
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7001 ac_cv_lib_i386_i386_set_ldt=no
7004 rm -f core conftest.err conftest.$ac_objext \
7005 conftest$ac_exeext conftest.$ac_ext
7006 LIBS=$ac_check_lib_save_LIBS
7008 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
7009 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
7010 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
7011 cat >>confdefs.h <<_ACEOF
7012 #define HAVE_LIBI386 1
7013 _ACEOF
7015 LIBS="-li386 $LIBS"
7020 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7021 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
7022 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025 ac_check_lib_save_LIBS=$LIBS
7026 LIBS="-lossaudio $LIBS"
7027 cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h. */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7034 /* Override any GCC internal prototype to avoid an error.
7035 Use char because int might match the return type of a GCC
7036 builtin and then its argument prototype would still apply. */
7037 #ifdef __cplusplus
7038 extern "C"
7039 #endif
7040 char _oss_ioctl ();
7042 main ()
7044 return _oss_ioctl ();
7046 return 0;
7048 _ACEOF
7049 rm -f conftest.$ac_objext conftest$ac_exeext
7050 if { (ac_try="$ac_link"
7051 case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054 esac
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_link") 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7064 { (case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7067 esac
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_try") 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest$ac_exeext'
7074 { (case "(($ac_try" in
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7077 esac
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_try") 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_lib_ossaudio__oss_ioctl=yes
7084 else
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7088 ac_cv_lib_ossaudio__oss_ioctl=no
7091 rm -f core conftest.err conftest.$ac_objext \
7092 conftest$ac_exeext conftest.$ac_ext
7093 LIBS=$ac_check_lib_save_LIBS
7095 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7096 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7097 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
7098 cat >>confdefs.h <<_ACEOF
7099 #define HAVE_LIBOSSAUDIO 1
7100 _ACEOF
7102 LIBS="-lossaudio $LIBS"
7107 for ac_func in gethostbyname
7109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h. */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7123 #define $ac_func innocuous_$ac_func
7125 /* System header to define __stub macros and hopefully few prototypes,
7126 which can conflict with char $ac_func (); below.
7127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7128 <limits.h> exists even on freestanding compilers. */
7130 #ifdef __STDC__
7131 # include <limits.h>
7132 #else
7133 # include <assert.h>
7134 #endif
7136 #undef $ac_func
7138 /* Override any GCC internal prototype to avoid an error.
7139 Use char because int might match the return type of a GCC
7140 builtin and then its argument prototype would still apply. */
7141 #ifdef __cplusplus
7142 extern "C"
7143 #endif
7144 char $ac_func ();
7145 /* The GNU C library defines this for functions which it implements
7146 to always fail with ENOSYS. Some functions are actually named
7147 something starting with __ and the normal name is an alias. */
7148 #if defined __stub_$ac_func || defined __stub___$ac_func
7149 choke me
7150 #endif
7153 main ()
7155 return $ac_func ();
7157 return 0;
7159 _ACEOF
7160 rm -f conftest.$ac_objext conftest$ac_exeext
7161 if { (ac_try="$ac_link"
7162 case "(($ac_try" in
7163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7164 *) ac_try_echo=$ac_try;;
7165 esac
7166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7167 (eval "$ac_link") 2>conftest.er1
7168 ac_status=$?
7169 grep -v '^ *+' conftest.er1 >conftest.err
7170 rm -f conftest.er1
7171 cat conftest.err >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } &&
7174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7175 { (case "(($ac_try" in
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7178 esac
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_try") 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try='test -s conftest$ac_exeext'
7185 { (case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188 esac
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_try") 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 eval "$as_ac_var=yes"
7195 else
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 eval "$as_ac_var=no"
7202 rm -f core conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7205 ac_res=`eval echo '${'$as_ac_var'}'`
7206 { echo "$as_me:$LINENO: result: $ac_res" >&5
7207 echo "${ECHO_T}$ac_res" >&6; }
7208 if test `eval echo '${'$as_ac_var'}'` = yes; then
7209 cat >>confdefs.h <<_ACEOF
7210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7211 _ACEOF
7213 else
7215 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7216 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
7217 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220 ac_check_lib_save_LIBS=$LIBS
7221 LIBS="-lnsl $LIBS"
7222 cat >conftest.$ac_ext <<_ACEOF
7223 /* confdefs.h. */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7229 /* Override any GCC internal prototype to avoid an error.
7230 Use char because int might match the return type of a GCC
7231 builtin and then its argument prototype would still apply. */
7232 #ifdef __cplusplus
7233 extern "C"
7234 #endif
7235 char gethostbyname ();
7237 main ()
7239 return gethostbyname ();
7241 return 0;
7243 _ACEOF
7244 rm -f conftest.$ac_objext conftest$ac_exeext
7245 if { (ac_try="$ac_link"
7246 case "(($ac_try" in
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7249 esac
7250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_link") 2>conftest.er1
7252 ac_status=$?
7253 grep -v '^ *+' conftest.er1 >conftest.err
7254 rm -f conftest.er1
7255 cat conftest.err >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } &&
7258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7259 { (case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262 esac
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_try") 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; } &&
7268 { ac_try='test -s conftest$ac_exeext'
7269 { (case "(($ac_try" in
7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7272 esac
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274 (eval "$ac_try") 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 ac_cv_lib_nsl_gethostbyname=yes
7279 else
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7283 ac_cv_lib_nsl_gethostbyname=no
7286 rm -f core conftest.err conftest.$ac_objext \
7287 conftest$ac_exeext conftest.$ac_ext
7288 LIBS=$ac_check_lib_save_LIBS
7290 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7291 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
7292 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7293 cat >>confdefs.h <<_ACEOF
7294 #define HAVE_LIBNSL 1
7295 _ACEOF
7297 LIBS="-lnsl $LIBS"
7302 done
7305 for ac_func in connect
7307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h. */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7321 #define $ac_func innocuous_$ac_func
7323 /* System header to define __stub macros and hopefully few prototypes,
7324 which can conflict with char $ac_func (); below.
7325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7326 <limits.h> exists even on freestanding compilers. */
7328 #ifdef __STDC__
7329 # include <limits.h>
7330 #else
7331 # include <assert.h>
7332 #endif
7334 #undef $ac_func
7336 /* Override any GCC internal prototype to avoid an error.
7337 Use char because int might match the return type of a GCC
7338 builtin and then its argument prototype would still apply. */
7339 #ifdef __cplusplus
7340 extern "C"
7341 #endif
7342 char $ac_func ();
7343 /* The GNU C library defines this for functions which it implements
7344 to always fail with ENOSYS. Some functions are actually named
7345 something starting with __ and the normal name is an alias. */
7346 #if defined __stub_$ac_func || defined __stub___$ac_func
7347 choke me
7348 #endif
7351 main ()
7353 return $ac_func ();
7355 return 0;
7357 _ACEOF
7358 rm -f conftest.$ac_objext conftest$ac_exeext
7359 if { (ac_try="$ac_link"
7360 case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7363 esac
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_link") 2>conftest.er1
7366 ac_status=$?
7367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } &&
7372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7373 { (case "(($ac_try" in
7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375 *) ac_try_echo=$ac_try;;
7376 esac
7377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378 (eval "$ac_try") 2>&5
7379 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; } &&
7382 { ac_try='test -s conftest$ac_exeext'
7383 { (case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_try") 2>&5
7389 ac_status=$?
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 eval "$as_ac_var=yes"
7393 else
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7397 eval "$as_ac_var=no"
7400 rm -f core conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7403 ac_res=`eval echo '${'$as_ac_var'}'`
7404 { echo "$as_me:$LINENO: result: $ac_res" >&5
7405 echo "${ECHO_T}$ac_res" >&6; }
7406 if test `eval echo '${'$as_ac_var'}'` = yes; then
7407 cat >>confdefs.h <<_ACEOF
7408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7409 _ACEOF
7411 else
7413 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7414 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7415 if test "${ac_cv_lib_socket_connect+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418 ac_check_lib_save_LIBS=$LIBS
7419 LIBS="-lsocket $LIBS"
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h. */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7427 /* Override any GCC internal prototype to avoid an error.
7428 Use char because int might match the return type of a GCC
7429 builtin and then its argument prototype would still apply. */
7430 #ifdef __cplusplus
7431 extern "C"
7432 #endif
7433 char connect ();
7435 main ()
7437 return connect ();
7439 return 0;
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (ac_try="$ac_link"
7444 case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447 esac
7448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_link") 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7457 { (case "(($ac_try" in
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7460 esac
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_try") 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; } &&
7466 { ac_try='test -s conftest$ac_exeext'
7467 { (case "(($ac_try" in
7468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469 *) ac_try_echo=$ac_try;;
7470 esac
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472 (eval "$ac_try") 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_cv_lib_socket_connect=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 ac_cv_lib_socket_connect=no
7484 rm -f core conftest.err conftest.$ac_objext \
7485 conftest$ac_exeext conftest.$ac_ext
7486 LIBS=$ac_check_lib_save_LIBS
7488 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7489 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7490 if test $ac_cv_lib_socket_connect = yes; then
7491 cat >>confdefs.h <<_ACEOF
7492 #define HAVE_LIBSOCKET 1
7493 _ACEOF
7495 LIBS="-lsocket $LIBS"
7500 done
7503 for ac_func in inet_aton
7505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7506 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h. */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7519 #define $ac_func innocuous_$ac_func
7521 /* System header to define __stub macros and hopefully few prototypes,
7522 which can conflict with char $ac_func (); below.
7523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7524 <limits.h> exists even on freestanding compilers. */
7526 #ifdef __STDC__
7527 # include <limits.h>
7528 #else
7529 # include <assert.h>
7530 #endif
7532 #undef $ac_func
7534 /* Override any GCC internal prototype to avoid an error.
7535 Use char because int might match the return type of a GCC
7536 builtin and then its argument prototype would still apply. */
7537 #ifdef __cplusplus
7538 extern "C"
7539 #endif
7540 char $ac_func ();
7541 /* The GNU C library defines this for functions which it implements
7542 to always fail with ENOSYS. Some functions are actually named
7543 something starting with __ and the normal name is an alias. */
7544 #if defined __stub_$ac_func || defined __stub___$ac_func
7545 choke me
7546 #endif
7549 main ()
7551 return $ac_func ();
7553 return 0;
7555 _ACEOF
7556 rm -f conftest.$ac_objext conftest$ac_exeext
7557 if { (ac_try="$ac_link"
7558 case "(($ac_try" in
7559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560 *) ac_try_echo=$ac_try;;
7561 esac
7562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563 (eval "$ac_link") 2>conftest.er1
7564 ac_status=$?
7565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7571 { (case "(($ac_try" in
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7574 esac
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_try") 2>&5
7577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; } &&
7580 { ac_try='test -s conftest$ac_exeext'
7581 { (case "(($ac_try" in
7582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7583 *) ac_try_echo=$ac_try;;
7584 esac
7585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586 (eval "$ac_try") 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; }; then
7590 eval "$as_ac_var=yes"
7591 else
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 eval "$as_ac_var=no"
7598 rm -f core conftest.err conftest.$ac_objext \
7599 conftest$ac_exeext conftest.$ac_ext
7601 ac_res=`eval echo '${'$as_ac_var'}'`
7602 { echo "$as_me:$LINENO: result: $ac_res" >&5
7603 echo "${ECHO_T}$ac_res" >&6; }
7604 if test `eval echo '${'$as_ac_var'}'` = yes; then
7605 cat >>confdefs.h <<_ACEOF
7606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7607 _ACEOF
7609 else
7611 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
7612 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
7613 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616 ac_check_lib_save_LIBS=$LIBS
7617 LIBS="-lresolv $LIBS"
7618 cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h. */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7625 /* Override any GCC internal prototype to avoid an error.
7626 Use char because int might match the return type of a GCC
7627 builtin and then its argument prototype would still apply. */
7628 #ifdef __cplusplus
7629 extern "C"
7630 #endif
7631 char inet_aton ();
7633 main ()
7635 return inet_aton ();
7637 return 0;
7639 _ACEOF
7640 rm -f conftest.$ac_objext conftest$ac_exeext
7641 if { (ac_try="$ac_link"
7642 case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645 esac
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_link") 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7655 { (case "(($ac_try" in
7656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657 *) ac_try_echo=$ac_try;;
7658 esac
7659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7660 (eval "$ac_try") 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest$ac_exeext'
7665 { (case "(($ac_try" in
7666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667 *) ac_try_echo=$ac_try;;
7668 esac
7669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7670 (eval "$ac_try") 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 ac_cv_lib_resolv_inet_aton=yes
7675 else
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 ac_cv_lib_resolv_inet_aton=no
7682 rm -f core conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
7684 LIBS=$ac_check_lib_save_LIBS
7686 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
7687 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
7688 if test $ac_cv_lib_resolv_inet_aton = yes; then
7689 cat >>confdefs.h <<_ACEOF
7690 #define HAVE_LIBRESOLV 1
7691 _ACEOF
7693 LIBS="-lresolv $LIBS"
7698 done
7701 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7702 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
7703 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706 ac_check_lib_save_LIBS=$LIBS
7707 LIBS="-lxpg4 $LIBS"
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h. */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7715 /* Override any GCC internal prototype to avoid an error.
7716 Use char because int might match the return type of a GCC
7717 builtin and then its argument prototype would still apply. */
7718 #ifdef __cplusplus
7719 extern "C"
7720 #endif
7721 char _xpg4_setrunelocale ();
7723 main ()
7725 return _xpg4_setrunelocale ();
7727 return 0;
7729 _ACEOF
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (ac_try="$ac_link"
7732 case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735 esac
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_link") 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7745 { (case "(($ac_try" in
7746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7747 *) ac_try_echo=$ac_try;;
7748 esac
7749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7750 (eval "$ac_try") 2>&5
7751 ac_status=$?
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; } &&
7754 { ac_try='test -s conftest$ac_exeext'
7755 { (case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758 esac
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_try") 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7764 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
7765 else
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_cv_lib_xpg4__xpg4_setrunelocale=no
7772 rm -f core conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7774 LIBS=$ac_check_lib_save_LIBS
7776 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7777 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
7778 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
7779 cat >>confdefs.h <<_ACEOF
7780 #define HAVE_LIBXPG4 1
7781 _ACEOF
7783 LIBS="-lxpg4 $LIBS"
7788 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
7789 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
7790 if test "${ac_cv_lib_poll_poll+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793 ac_check_lib_save_LIBS=$LIBS
7794 LIBS="-lpoll $LIBS"
7795 cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h. */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7802 /* Override any GCC internal prototype to avoid an error.
7803 Use char because int might match the return type of a GCC
7804 builtin and then its argument prototype would still apply. */
7805 #ifdef __cplusplus
7806 extern "C"
7807 #endif
7808 char poll ();
7810 main ()
7812 return poll ();
7814 return 0;
7816 _ACEOF
7817 rm -f conftest.$ac_objext conftest$ac_exeext
7818 if { (ac_try="$ac_link"
7819 case "(($ac_try" in
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7822 esac
7823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_link") 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7832 { (case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835 esac
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_try") 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_try") 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 ac_cv_lib_poll_poll=yes
7852 else
7853 echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7856 ac_cv_lib_poll_poll=no
7859 rm -f core conftest.err conftest.$ac_objext \
7860 conftest$ac_exeext conftest.$ac_ext
7861 LIBS=$ac_check_lib_save_LIBS
7863 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
7864 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
7865 if test $ac_cv_lib_poll_poll = yes; then
7866 cat >>confdefs.h <<_ACEOF
7867 #define HAVE_LIBPOLL 1
7868 _ACEOF
7870 LIBS="-lpoll $LIBS"
7875 { echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
7876 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6; }
7877 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880 ac_check_lib_save_LIBS=$LIBS
7881 LIBS="-lresolv $LIBS"
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h. */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7889 /* Override any GCC internal prototype to avoid an error.
7890 Use char because int might match the return type of a GCC
7891 builtin and then its argument prototype would still apply. */
7892 #ifdef __cplusplus
7893 extern "C"
7894 #endif
7895 char res_9_init ();
7897 main ()
7899 return res_9_init ();
7901 return 0;
7903 _ACEOF
7904 rm -f conftest.$ac_objext conftest$ac_exeext
7905 if { (ac_try="$ac_link"
7906 case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7909 esac
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_link") 2>conftest.er1
7912 ac_status=$?
7913 grep -v '^ *+' conftest.er1 >conftest.err
7914 rm -f conftest.er1
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } &&
7918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7919 { (case "(($ac_try" in
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7922 esac
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_try") 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; } &&
7928 { ac_try='test -s conftest$ac_exeext'
7929 { (case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7932 esac
7933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_try") 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 ac_cv_lib_resolv_res_9_init=yes
7939 else
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 ac_cv_lib_resolv_res_9_init=no
7946 rm -f core conftest.err conftest.$ac_objext \
7947 conftest$ac_exeext conftest.$ac_ext
7948 LIBS=$ac_check_lib_save_LIBS
7950 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
7951 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6; }
7952 if test $ac_cv_lib_resolv_res_9_init = yes; then
7953 cat >>confdefs.h <<_ACEOF
7954 #define HAVE_LIBRESOLV 1
7955 _ACEOF
7957 LIBS="-lresolv $LIBS"
7961 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7962 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
7963 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 ac_check_lib_save_LIBS=$LIBS
7967 LIBS="-lpthread $LIBS"
7968 cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h. */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7975 /* Override any GCC internal prototype to avoid an error.
7976 Use char because int might match the return type of a GCC
7977 builtin and then its argument prototype would still apply. */
7978 #ifdef __cplusplus
7979 extern "C"
7980 #endif
7981 char pthread_create ();
7983 main ()
7985 return pthread_create ();
7987 return 0;
7989 _ACEOF
7990 rm -f conftest.$ac_objext conftest$ac_exeext
7991 if { (ac_try="$ac_link"
7992 case "(($ac_try" in
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7995 esac
7996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997 (eval "$ac_link") 2>conftest.er1
7998 ac_status=$?
7999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } &&
8004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8005 { (case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_try") 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018 esac
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_try") 2>&5
8021 ac_status=$?
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; }; then
8024 ac_cv_lib_pthread_pthread_create=yes
8025 else
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8029 ac_cv_lib_pthread_pthread_create=no
8032 rm -f core conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8034 LIBS=$ac_check_lib_save_LIBS
8036 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
8037 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
8038 if test $ac_cv_lib_pthread_pthread_create = yes; then
8039 LIBPTHREAD="-lpthread"
8044 XLIB=""
8046 XFILES=""
8048 OPENGLFILES=""
8050 GLU32FILES=""
8052 OPENGL_LIBS=""
8056 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8058 if test "${ac_cv_header_stdc+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061 cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h. */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 #include <stdlib.h>
8068 #include <stdarg.h>
8069 #include <string.h>
8070 #include <float.h>
8073 main ()
8077 return 0;
8079 _ACEOF
8080 rm -f conftest.$ac_objext
8081 if { (ac_try="$ac_compile"
8082 case "(($ac_try" in
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8085 esac
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8088 ac_status=$?
8089 grep -v '^ *+' conftest.er1 >conftest.err
8090 rm -f conftest.er1
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
8094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8095 { (case "(($ac_try" in
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8098 esac
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_try") 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; } &&
8104 { ac_try='test -s conftest.$ac_objext'
8105 { (case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108 esac
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_try") 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8114 ac_cv_header_stdc=yes
8115 else
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 ac_cv_header_stdc=no
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124 if test $ac_cv_header_stdc = yes; then
8125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h. */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 #include <string.h>
8134 _ACEOF
8135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8136 $EGREP "memchr" >/dev/null 2>&1; then
8138 else
8139 ac_cv_header_stdc=no
8141 rm -f conftest*
8145 if test $ac_cv_header_stdc = yes; then
8146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 #include <stdlib.h>
8155 _ACEOF
8156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8157 $EGREP "free" >/dev/null 2>&1; then
8159 else
8160 ac_cv_header_stdc=no
8162 rm -f conftest*
8166 if test $ac_cv_header_stdc = yes; then
8167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8168 if test "$cross_compiling" = yes; then
8170 else
8171 cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h. */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 #include <ctype.h>
8178 #include <stdlib.h>
8179 #if ((' ' & 0x0FF) == 0x020)
8180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8182 #else
8183 # define ISLOWER(c) \
8184 (('a' <= (c) && (c) <= 'i') \
8185 || ('j' <= (c) && (c) <= 'r') \
8186 || ('s' <= (c) && (c) <= 'z'))
8187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8188 #endif
8190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8192 main ()
8194 int i;
8195 for (i = 0; i < 256; i++)
8196 if (XOR (islower (i), ISLOWER (i))
8197 || toupper (i) != TOUPPER (i))
8198 return 2;
8199 return 0;
8201 _ACEOF
8202 rm -f conftest$ac_exeext
8203 if { (ac_try="$ac_link"
8204 case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_link") 2>&5
8210 ac_status=$?
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216 esac
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_try") 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; }; then
8223 else
8224 echo "$as_me: program exited with status $ac_status" >&5
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ( exit $ac_status )
8229 ac_cv_header_stdc=no
8231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8237 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8238 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8239 if test $ac_cv_header_stdc = yes; then
8241 cat >>confdefs.h <<\_ACEOF
8242 #define STDC_HEADERS 1
8243 _ACEOF
8247 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8258 inttypes.h stdint.h unistd.h
8260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8274 #include <$ac_header>
8275 _ACEOF
8276 rm -f conftest.$ac_objext
8277 if { (ac_try="$ac_compile"
8278 case "(($ac_try" in
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8281 esac
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_compile") 2>conftest.er1
8284 ac_status=$?
8285 grep -v '^ *+' conftest.er1 >conftest.err
8286 rm -f conftest.er1
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8291 { (case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_try") 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest.$ac_objext'
8301 { (case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304 esac
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_try") 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 eval "$as_ac_Header=yes"
8311 else
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 eval "$as_ac_Header=no"
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 ac_res=`eval echo '${'$as_ac_Header'}'`
8321 { echo "$as_me:$LINENO: result: $ac_res" >&5
8322 echo "${ECHO_T}$ac_res" >&6; }
8323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8324 cat >>confdefs.h <<_ACEOF
8325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8326 _ACEOF
8330 done
8439 for ac_header in \
8440 AudioUnit/AudioUnit.h \
8441 CoreAudio/CoreAudio.h \
8442 IOKit/IOKitLib.h \
8443 alsa/asoundlib.h \
8444 arpa/inet.h \
8445 arpa/nameser.h \
8446 asm/types.h \
8447 capi20.h \
8448 cups/cups.h \
8449 curses.h \
8450 direct.h \
8451 dlfcn.h \
8452 elf.h \
8453 float.h \
8454 fontconfig/fontconfig.h \
8455 getopt.h \
8456 gif_lib.h \
8457 ieeefp.h \
8458 io.h \
8459 jack/jack.h \
8460 jpeglib.h \
8461 lber.h \
8462 lcms.h \
8463 lcms/lcms.h \
8464 ldap.h \
8465 libaudioio.h \
8466 link.h \
8467 linux/cdrom.h \
8468 linux/compiler.h \
8469 linux/hdreg.h \
8470 linux/input.h \
8471 linux/ioctl.h \
8472 linux/joystick.h \
8473 linux/major.h \
8474 linux/param.h \
8475 linux/serial.h \
8476 linux/ucdrom.h \
8477 mach/machine.h \
8478 machine/cpu.h \
8479 machine/limits.h \
8480 machine/soundcard.h \
8481 mntent.h \
8482 ncurses.h \
8483 netdb.h \
8484 netinet/in.h \
8485 netinet/in_systm.h \
8486 netinet/tcp.h \
8487 netinet/tcp_fsm.h \
8488 openssl/err.h \
8489 openssl/ssl.h \
8490 poll.h \
8491 process.h \
8492 pthread.h \
8493 pwd.h \
8494 regex.h \
8495 sched.h \
8496 scsi/scsi.h \
8497 scsi/scsi_ioctl.h \
8498 scsi/sg.h \
8499 soundcard.h \
8500 stdint.h \
8501 strings.h \
8502 sys/asoundlib.h \
8503 sys/cdio.h \
8504 sys/elf32.h \
8505 sys/epoll.h \
8506 sys/errno.h \
8507 sys/exec_elf.h \
8508 sys/filio.h \
8509 sys/ioctl.h \
8510 sys/ipc.h \
8511 sys/limits.h \
8512 sys/link.h \
8513 sys/lwp.h \
8514 sys/mman.h \
8515 sys/modem.h \
8516 sys/msg.h \
8517 sys/mtio.h \
8518 sys/param.h \
8519 sys/poll.h \
8520 sys/prctl.h \
8521 sys/ptrace.h \
8522 sys/reg.h \
8523 sys/resource.h \
8524 sys/scsiio.h \
8525 sys/shm.h \
8526 sys/signal.h \
8527 sys/socket.h \
8528 sys/sockio.h \
8529 sys/soundcard.h \
8530 sys/statvfs.h \
8531 sys/strtio.h \
8532 sys/syscall.h \
8533 sys/sysctl.h \
8534 sys/time.h \
8535 sys/times.h \
8536 sys/uio.h \
8537 sys/un.h \
8538 sys/vm86.h \
8539 sys/wait.h \
8540 syscall.h \
8541 termios.h \
8542 unicode/ubidi.h \
8543 unistd.h \
8544 utime.h \
8545 valgrind/memcheck.h
8548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 ac_res=`eval echo '${'$as_ac_Header'}'`
8556 { echo "$as_me:$LINENO: result: $ac_res" >&5
8557 echo "${ECHO_T}$ac_res" >&6; }
8558 else
8559 # Is the header compilable?
8560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h. */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 $ac_includes_default
8569 #include <$ac_header>
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8573 case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586 { (case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8589 esac
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_try") 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest.$ac_objext'
8596 { (case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_try") 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 ac_header_compiler=yes
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 ac_header_compiler=no
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8615 echo "${ECHO_T}$ac_header_compiler" >&6; }
8617 # Is the header present?
8618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h. */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 #include <$ac_header>
8627 _ACEOF
8628 if { (ac_try="$ac_cpp conftest.$ac_ext"
8629 case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632 esac
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } >/dev/null; then
8641 if test -s conftest.err; then
8642 ac_cpp_err=$ac_c_preproc_warn_flag
8643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8644 else
8645 ac_cpp_err=
8647 else
8648 ac_cpp_err=yes
8650 if test -z "$ac_cpp_err"; then
8651 ac_header_preproc=yes
8652 else
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 ac_header_preproc=no
8659 rm -f conftest.err conftest.$ac_ext
8660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8661 echo "${ECHO_T}$ac_header_preproc" >&6; }
8663 # So? What about this header?
8664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8665 yes:no: )
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8670 ac_header_preproc=yes
8672 no:yes:* )
8673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8685 ( cat <<\_ASBOX
8686 ## ------------------------------------ ##
8687 ## Report this to wine-devel@winehq.org ##
8688 ## ------------------------------------ ##
8689 _ASBOX
8690 ) | sed "s/^/$as_me: WARNING: /" >&2
8692 esac
8693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698 eval "$as_ac_Header=\$ac_header_preproc"
8700 ac_res=`eval echo '${'$as_ac_Header'}'`
8701 { echo "$as_me:$LINENO: result: $ac_res" >&5
8702 echo "${ECHO_T}$ac_res" >&6; }
8705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8706 cat >>confdefs.h <<_ACEOF
8707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8708 _ACEOF
8712 done
8714 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8715 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
8716 if test "${ac_cv_header_stat_broken+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719 cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h. */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8725 #include <sys/types.h>
8726 #include <sys/stat.h>
8728 #if defined S_ISBLK && defined S_IFDIR
8729 # if S_ISBLK (S_IFDIR)
8730 You lose.
8731 # endif
8732 #endif
8734 #if defined S_ISBLK && defined S_IFCHR
8735 # if S_ISBLK (S_IFCHR)
8736 You lose.
8737 # endif
8738 #endif
8740 #if defined S_ISLNK && defined S_IFREG
8741 # if S_ISLNK (S_IFREG)
8742 You lose.
8743 # endif
8744 #endif
8746 #if defined S_ISSOCK && defined S_IFREG
8747 # if S_ISSOCK (S_IFREG)
8748 You lose.
8749 # endif
8750 #endif
8752 _ACEOF
8753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8754 $EGREP "You lose" >/dev/null 2>&1; then
8755 ac_cv_header_stat_broken=yes
8756 else
8757 ac_cv_header_stat_broken=no
8759 rm -f conftest*
8762 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8763 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
8764 if test $ac_cv_header_stat_broken = yes; then
8766 cat >>confdefs.h <<\_ACEOF
8767 #define STAT_MACROS_BROKEN 1
8768 _ACEOF
8778 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h. */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8792 #include <sys/types.h>
8793 #if HAVE_SYS_PARAM_H
8794 # include <sys/param.h>
8795 #endif
8797 #include <$ac_header>
8798 _ACEOF
8799 rm -f conftest.$ac_objext
8800 if { (ac_try="$ac_compile"
8801 case "(($ac_try" in
8802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803 *) ac_try_echo=$ac_try;;
8804 esac
8805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806 (eval "$ac_compile") 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } &&
8813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8814 { (case "(($ac_try" in
8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816 *) ac_try_echo=$ac_try;;
8817 esac
8818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819 (eval "$ac_try") 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; } &&
8823 { ac_try='test -s conftest.$ac_objext'
8824 { (case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827 esac
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_try") 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 eval "$as_ac_Header=yes"
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 eval "$as_ac_Header=no"
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843 ac_res=`eval echo '${'$as_ac_Header'}'`
8844 { echo "$as_me:$LINENO: result: $ac_res" >&5
8845 echo "${ECHO_T}$ac_res" >&6; }
8846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8847 cat >>confdefs.h <<_ACEOF
8848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8849 _ACEOF
8853 done
8862 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
8864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870 cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h. */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 #include <sys/types.h>
8877 #if HAVE_SYS_SOCKET_H
8878 # include <sys/socket.h>
8879 #endif
8881 #include <$ac_header>
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (ac_try="$ac_compile"
8885 case "(($ac_try" in
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8888 esac
8889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8890 (eval "$ac_compile") 2>conftest.er1
8891 ac_status=$?
8892 grep -v '^ *+' conftest.er1 >conftest.err
8893 rm -f conftest.er1
8894 cat conftest.err >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } &&
8897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8898 { (case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8901 esac
8902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_try") 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest.$ac_objext'
8908 { (case "(($ac_try" in
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8911 esac
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_try") 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 eval "$as_ac_Header=yes"
8918 else
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 eval "$as_ac_Header=no"
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927 ac_res=`eval echo '${'$as_ac_Header'}'`
8928 { echo "$as_me:$LINENO: result: $ac_res" >&5
8929 echo "${ECHO_T}$ac_res" >&6; }
8930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8931 cat >>confdefs.h <<_ACEOF
8932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8933 _ACEOF
8937 done
8941 for ac_header in resolv.h
8943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949 cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h. */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 #include <sys/types.h>
8956 #if HAVE_SYS_SOCKET_H
8957 # include <sys/socket.h>
8958 #endif
8959 #if HAVE_NETINET_IN_H
8960 # include <netinet/in.h>
8961 #endif
8962 #if HAVE_ARPA_NAMESER_H
8963 # include <arpa/nameser.h>
8964 #endif
8966 #include <$ac_header>
8967 _ACEOF
8968 rm -f conftest.$ac_objext
8969 if { (ac_try="$ac_compile"
8970 case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_compile") 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8983 { (case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8986 esac
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_try") 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; } &&
8992 { ac_try='test -s conftest.$ac_objext'
8993 { (case "(($ac_try" in
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8996 esac
8997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 (eval "$ac_try") 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 eval "$as_ac_Header=yes"
9003 else
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 eval "$as_ac_Header=no"
9010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012 ac_res=`eval echo '${'$as_ac_Header'}'`
9013 { echo "$as_me:$LINENO: result: $ac_res" >&5
9014 echo "${ECHO_T}$ac_res" >&6; }
9015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9016 cat >>confdefs.h <<_ACEOF
9017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9018 _ACEOF
9022 done
9026 for ac_header in ucontext.h
9028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034 cat >conftest.$ac_ext <<_ACEOF
9035 /* confdefs.h. */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9040 #include <signal.h>
9042 #include <$ac_header>
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (ac_try="$ac_compile"
9046 case "(($ac_try" in
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9049 esac
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_compile") 2>conftest.er1
9052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9059 { (case "(($ac_try" in
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9062 esac
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_try") 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try='test -s conftest.$ac_objext'
9069 { (case "(($ac_try" in
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9072 esac
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$ac_try") 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 eval "$as_ac_Header=yes"
9079 else
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9083 eval "$as_ac_Header=no"
9086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9088 ac_res=`eval echo '${'$as_ac_Header'}'`
9089 { echo "$as_me:$LINENO: result: $ac_res" >&5
9090 echo "${ECHO_T}$ac_res" >&6; }
9091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9092 cat >>confdefs.h <<_ACEOF
9093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9094 _ACEOF
9098 done
9103 for ac_header in linux/ipx.h linux/videodev.h
9105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111 cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h. */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 #ifdef HAVE_SYS_TIME_H
9118 #include <sys/time.h>
9119 #endif
9120 #include <sys/types.h>
9121 #ifdef HAVE_ASM_TYPES_H
9122 #include <asm/types.h>
9123 #endif
9125 #include <$ac_header>
9126 _ACEOF
9127 rm -f conftest.$ac_objext
9128 if { (ac_try="$ac_compile"
9129 case "(($ac_try" in
9130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131 *) ac_try_echo=$ac_try;;
9132 esac
9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134 (eval "$ac_compile") 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
9141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9142 { (case "(($ac_try" in
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9145 esac
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_try") 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest.$ac_objext'
9152 { (case "(($ac_try" in
9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 *) ac_try_echo=$ac_try;;
9155 esac
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157 (eval "$ac_try") 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 eval "$as_ac_Header=yes"
9162 else
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 eval "$as_ac_Header=no"
9169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171 ac_res=`eval echo '${'$as_ac_Header'}'`
9172 { echo "$as_me:$LINENO: result: $ac_res" >&5
9173 echo "${ECHO_T}$ac_res" >&6; }
9174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9175 cat >>confdefs.h <<_ACEOF
9176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9177 _ACEOF
9181 done
9185 for ac_header in linux/capi.h
9187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #define __user
9201 #include <$ac_header>
9202 _ACEOF
9203 rm -f conftest.$ac_objext
9204 if { (ac_try="$ac_compile"
9205 case "(($ac_try" in
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9208 esac
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_compile") 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9218 { (case "(($ac_try" in
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9221 esac
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_try") 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_try") 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237 eval "$as_ac_Header=yes"
9238 else
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9242 eval "$as_ac_Header=no"
9245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 ac_res=`eval echo '${'$as_ac_Header'}'`
9248 { echo "$as_me:$LINENO: result: $ac_res" >&5
9249 echo "${ECHO_T}$ac_res" >&6; }
9250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9251 cat >>confdefs.h <<_ACEOF
9252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9253 _ACEOF
9257 done
9261 if test "$have_x" = "yes"
9262 then
9263 XLIB="-lXext -lX11"
9264 ac_save_CPPFLAGS="$CPPFLAGS"
9265 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9277 for ac_header in X11/Xlib.h \
9278 X11/XKBlib.h \
9279 X11/Xutil.h \
9280 X11/extensions/shape.h \
9281 X11/extensions/XInput.h \
9282 X11/extensions/XShm.h \
9283 X11/extensions/Xrandr.h \
9284 X11/extensions/Xrender.h \
9285 X11/extensions/xf86dga.h \
9286 X11/extensions/xf86vmode.h
9288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 else
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 #ifdef HAVE_X11_XLIB_H
9301 # include <X11/Xlib.h>
9302 #endif
9303 #ifdef HAVE_X11_XUTIL_H
9304 # include <X11/Xutil.h>
9305 #endif
9307 #include <$ac_header>
9308 _ACEOF
9309 rm -f conftest.$ac_objext
9310 if { (ac_try="$ac_compile"
9311 case "(($ac_try" in
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9314 esac
9315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316 (eval "$ac_compile") 2>conftest.er1
9317 ac_status=$?
9318 grep -v '^ *+' conftest.er1 >conftest.err
9319 rm -f conftest.er1
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9324 { (case "(($ac_try" in
9325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326 *) ac_try_echo=$ac_try;;
9327 esac
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329 (eval "$ac_try") 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; } &&
9333 { ac_try='test -s conftest.$ac_objext'
9334 { (case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9337 esac
9338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339 (eval "$ac_try") 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 eval "$as_ac_Header=yes"
9344 else
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9348 eval "$as_ac_Header=no"
9351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353 ac_res=`eval echo '${'$as_ac_Header'}'`
9354 { echo "$as_me:$LINENO: result: $ac_res" >&5
9355 echo "${ECHO_T}$ac_res" >&6; }
9356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9357 cat >>confdefs.h <<_ACEOF
9358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9359 _ACEOF
9363 done
9366 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9367 then
9368 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9369 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
9370 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9373 ac_check_lib_save_LIBS=$LIBS
9374 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h. */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9382 /* Override any GCC internal prototype to avoid an error.
9383 Use char because int might match the return type of a GCC
9384 builtin and then its argument prototype would still apply. */
9385 #ifdef __cplusplus
9386 extern "C"
9387 #endif
9388 char XkbQueryExtension ();
9390 main ()
9392 return XkbQueryExtension ();
9394 return 0;
9396 _ACEOF
9397 rm -f conftest.$ac_objext conftest$ac_exeext
9398 if { (ac_try="$ac_link"
9399 case "(($ac_try" in
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9402 esac
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_link") 2>conftest.er1
9405 ac_status=$?
9406 grep -v '^ *+' conftest.er1 >conftest.err
9407 rm -f conftest.er1
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } &&
9411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9412 { (case "(($ac_try" in
9413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9414 *) ac_try_echo=$ac_try;;
9415 esac
9416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9417 (eval "$ac_try") 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest$ac_exeext'
9422 { (case "(($ac_try" in
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9425 esac
9426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427 (eval "$ac_try") 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9431 ac_cv_lib_X11_XkbQueryExtension=yes
9432 else
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9436 ac_cv_lib_X11_XkbQueryExtension=no
9439 rm -f core conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441 LIBS=$ac_check_lib_save_LIBS
9443 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9444 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9445 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
9447 cat >>confdefs.h <<\_ACEOF
9448 #define HAVE_XKB 1
9449 _ACEOF
9455 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9456 then
9457 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9458 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
9459 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 ac_check_lib_save_LIBS=$LIBS
9463 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9471 /* Override any GCC internal prototype to avoid an error.
9472 Use char because int might match the return type of a GCC
9473 builtin and then its argument prototype would still apply. */
9474 #ifdef __cplusplus
9475 extern "C"
9476 #endif
9477 char XShmQueryExtension ();
9479 main ()
9481 return XShmQueryExtension ();
9483 return 0;
9485 _ACEOF
9486 rm -f conftest.$ac_objext conftest$ac_exeext
9487 if { (ac_try="$ac_link"
9488 case "(($ac_try" in
9489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490 *) ac_try_echo=$ac_try;;
9491 esac
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493 (eval "$ac_link") 2>conftest.er1
9494 ac_status=$?
9495 grep -v '^ *+' conftest.er1 >conftest.err
9496 rm -f conftest.er1
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9501 { (case "(($ac_try" in
9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9504 esac
9505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9506 (eval "$ac_try") 2>&5
9507 ac_status=$?
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; } &&
9510 { ac_try='test -s conftest$ac_exeext'
9511 { (case "(($ac_try" in
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9514 esac
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_try") 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 ac_cv_lib_Xext_XShmQueryExtension=yes
9521 else
9522 echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9525 ac_cv_lib_Xext_XShmQueryExtension=no
9528 rm -f core conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9530 LIBS=$ac_check_lib_save_LIBS
9532 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9533 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9534 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
9536 cat >>confdefs.h <<\_ACEOF
9537 #define HAVE_LIBXXSHM 1
9538 _ACEOF
9544 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9545 then
9546 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9547 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9548 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 ac_check_lib_save_LIBS=$LIBS
9552 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h. */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9560 /* Override any GCC internal prototype to avoid an error.
9561 Use char because int might match the return type of a GCC
9562 builtin and then its argument prototype would still apply. */
9563 #ifdef __cplusplus
9564 extern "C"
9565 #endif
9566 char XShapeQueryExtension ();
9568 main ()
9570 return XShapeQueryExtension ();
9572 return 0;
9574 _ACEOF
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (ac_try="$ac_link"
9577 case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_link") 2>conftest.er1
9583 ac_status=$?
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
9589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9590 { (case "(($ac_try" in
9591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592 *) ac_try_echo=$ac_try;;
9593 esac
9594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595 (eval "$ac_try") 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; } &&
9599 { ac_try='test -s conftest$ac_exeext'
9600 { (case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_try") 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; }; then
9609 ac_cv_lib_Xext_XShapeQueryExtension=yes
9610 else
9611 echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9614 ac_cv_lib_Xext_XShapeQueryExtension=no
9617 rm -f core conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9619 LIBS=$ac_check_lib_save_LIBS
9621 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9622 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9623 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9625 cat >>confdefs.h <<\_ACEOF
9626 #define HAVE_LIBXSHAPE 1
9627 _ACEOF
9633 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
9634 then
9635 { echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
9636 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6; }
9637 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640 ac_check_lib_save_LIBS=$LIBS
9641 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9642 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h. */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9649 /* Override any GCC internal prototype to avoid an error.
9650 Use char because int might match the return type of a GCC
9651 builtin and then its argument prototype would still apply. */
9652 #ifdef __cplusplus
9653 extern "C"
9654 #endif
9655 char XDGAQueryExtension ();
9657 main ()
9659 return XDGAQueryExtension ();
9661 return 0;
9663 _ACEOF
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (ac_try="$ac_link"
9666 case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669 esac
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_link") 2>conftest.er1
9672 ac_status=$?
9673 grep -v '^ *+' conftest.er1 >conftest.err
9674 rm -f conftest.er1
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9679 { (case "(($ac_try" in
9680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681 *) ac_try_echo=$ac_try;;
9682 esac
9683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684 (eval "$ac_try") 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; } &&
9688 { ac_try='test -s conftest$ac_exeext'
9689 { (case "(($ac_try" in
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_try") 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9698 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
9699 else
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9703 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
9706 rm -f core conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9708 LIBS=$ac_check_lib_save_LIBS
9710 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
9711 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6; }
9712 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
9714 cat >>confdefs.h <<\_ACEOF
9715 #define HAVE_LIBXXF86DGA2 1
9716 _ACEOF
9718 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
9724 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9725 then
9726 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9727 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9728 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731 ac_check_lib_save_LIBS=$LIBS
9732 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9733 cat >conftest.$ac_ext <<_ACEOF
9734 /* confdefs.h. */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9740 /* Override any GCC internal prototype to avoid an error.
9741 Use char because int might match the return type of a GCC
9742 builtin and then its argument prototype would still apply. */
9743 #ifdef __cplusplus
9744 extern "C"
9745 #endif
9746 char XF86VidModeQueryExtension ();
9748 main ()
9750 return XF86VidModeQueryExtension ();
9752 return 0;
9754 _ACEOF
9755 rm -f conftest.$ac_objext conftest$ac_exeext
9756 if { (ac_try="$ac_link"
9757 case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_link") 2>conftest.er1
9763 ac_status=$?
9764 grep -v '^ *+' conftest.er1 >conftest.err
9765 rm -f conftest.er1
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9770 { (case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_try") 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; } &&
9779 { ac_try='test -s conftest$ac_exeext'
9780 { (case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_try") 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9789 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9790 else
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9794 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9797 rm -f core conftest.err conftest.$ac_objext \
9798 conftest$ac_exeext conftest.$ac_ext
9799 LIBS=$ac_check_lib_save_LIBS
9801 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9802 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9803 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9805 cat >>confdefs.h <<\_ACEOF
9806 #define HAVE_LIBXXF86VM 1
9807 _ACEOF
9809 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
9815 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9816 then
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 #include <X11/Xlib.h>
9824 #include <X11/extensions/Xrandr.h>
9826 main ()
9828 static typeof(XRRSetScreenConfigAndRate) * func;
9830 return 0;
9832 _ACEOF
9833 rm -f conftest.$ac_objext
9834 if { (ac_try="$ac_compile"
9835 case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_compile") 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } &&
9847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9848 { (case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851 esac
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_try") 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest.$ac_objext'
9858 { (case "(($ac_try" in
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9861 esac
9862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863 (eval "$ac_try") 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_LIBXRANDR 1
9870 _ACEOF
9872 else
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9882 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9883 then
9884 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9885 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9886 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889 ac_check_lib_save_LIBS=$LIBS
9890 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9901 #ifdef __cplusplus
9902 extern "C"
9903 #endif
9904 char XRenderSetPictureTransform ();
9906 main ()
9908 return XRenderSetPictureTransform ();
9910 return 0;
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (ac_try="$ac_link"
9915 case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_link") 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try='test -s conftest$ac_exeext'
9938 { (case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_try") 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9948 else
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9952 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9955 rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 LIBS=$ac_check_lib_save_LIBS
9959 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9960 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9961 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9965 _ACEOF
9971 if test "x$with_opengl" != "xno"
9972 then
9977 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
9979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h. */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 #ifdef HAVE_GL_GLX_H
9992 # include <GL/glx.h>
9993 #endif
9995 #include <$ac_header>
9996 _ACEOF
9997 rm -f conftest.$ac_objext
9998 if { (ac_try="$ac_compile"
9999 case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10002 esac
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_compile") 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10012 { (case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10015 esac
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_try") 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; } &&
10021 { ac_try='test -s conftest.$ac_objext'
10022 { (case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10025 esac
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_try") 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 eval "$as_ac_Header=yes"
10032 else
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10036 eval "$as_ac_Header=no"
10039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041 ac_res=`eval echo '${'$as_ac_Header'}'`
10042 { echo "$as_me:$LINENO: result: $ac_res" >&5
10043 echo "${ECHO_T}$ac_res" >&6; }
10044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10045 cat >>confdefs.h <<_ACEOF
10046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10047 _ACEOF
10051 done
10053 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
10054 then
10055 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
10056 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
10057 if test "${wine_cv_opengl_version_OK+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060 cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h. */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 #include <GL/gl.h>
10068 main ()
10070 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
10072 return 0;
10074 _ACEOF
10075 rm -f conftest.$ac_objext
10076 if { (ac_try="$ac_compile"
10077 case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_compile") 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090 { (case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10093 esac
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_try") 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; } &&
10099 { ac_try='test -s conftest.$ac_objext'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 wine_cv_opengl_version_OK="yes"
10110 else
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 wine_cv_opengl_version_OK="no"
10118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10121 { echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
10122 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; }
10124 if test "$wine_cv_opengl_version_OK" = "yes"
10125 then
10126 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
10127 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
10128 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 else
10131 ac_check_lib_save_LIBS=$LIBS
10132 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
10133 cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h. */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10140 /* Override any GCC internal prototype to avoid an error.
10141 Use char because int might match the return type of a GCC
10142 builtin and then its argument prototype would still apply. */
10143 #ifdef __cplusplus
10144 extern "C"
10145 #endif
10146 char glXCreateContext ();
10148 main ()
10150 return glXCreateContext ();
10152 return 0;
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_link") 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; } &&
10179 { ac_try='test -s conftest$ac_exeext'
10180 { (case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_try") 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_lib_GL_glXCreateContext=yes
10190 else
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_cv_lib_GL_glXCreateContext=no
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 LIBS=$ac_check_lib_save_LIBS
10201 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
10202 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
10203 if test $ac_cv_lib_GL_glXCreateContext = yes; then
10204 OPENGL_LIBS="-lGL"
10209 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
10210 then
10211 OPENGLFILES='$(OPENGLFILES)'
10213 cat >>confdefs.h <<\_ACEOF
10214 #define HAVE_OPENGL 1
10215 _ACEOF
10217 else
10218 if test -f /usr/X11R6/lib/libGL.a
10219 then
10220 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
10221 This prevents linking to OpenGL. Delete the file and restart configure." >&5
10222 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
10223 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
10224 { (exit 1); exit 1; }; }
10228 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10229 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
10230 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233 ac_check_lib_save_LIBS=$LIBS
10234 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
10235 $LIBS"
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h. */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10243 /* Override any GCC internal prototype to avoid an error.
10244 Use char because int might match the return type of a GCC
10245 builtin and then its argument prototype would still apply. */
10246 #ifdef __cplusplus
10247 extern "C"
10248 #endif
10249 char gluLookAt ();
10251 main ()
10253 return gluLookAt ();
10255 return 0;
10257 _ACEOF
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_link") 2>conftest.er1
10266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } &&
10272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10273 { (case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_try") 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; } &&
10282 { ac_try='test -s conftest$ac_exeext'
10283 { (case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_lib_GLU_gluLookAt=yes
10293 else
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 ac_cv_lib_GLU_gluLookAt=no
10300 rm -f core conftest.err conftest.$ac_objext \
10301 conftest$ac_exeext conftest.$ac_ext
10302 LIBS=$ac_check_lib_save_LIBS
10304 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10305 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
10306 if test $ac_cv_lib_GLU_gluLookAt = yes; then
10307 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
10308 GLU32FILES='$(GLU32FILES)'
10314 { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
10315 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
10316 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319 ac_check_lib_save_LIBS=$LIBS
10320 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
10321 cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h. */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10328 /* Override any GCC internal prototype to avoid an error.
10329 Use char because int might match the return type of a GCC
10330 builtin and then its argument prototype would still apply. */
10331 #ifdef __cplusplus
10332 extern "C"
10333 #endif
10334 char glutMainLoop ();
10336 main ()
10338 return glutMainLoop ();
10340 return 0;
10342 _ACEOF
10343 rm -f conftest.$ac_objext conftest$ac_exeext
10344 if { (ac_try="$ac_link"
10345 case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10348 esac
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_link") 2>conftest.er1
10351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
10353 rm -f conftest.er1
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10358 { (case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_try") 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; } &&
10367 { ac_try='test -s conftest$ac_exeext'
10368 { (case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10371 esac
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_try") 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 ac_cv_lib_glut_glutMainLoop=yes
10378 else
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10382 ac_cv_lib_glut_glutMainLoop=no
10385 rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
10387 LIBS=$ac_check_lib_save_LIBS
10389 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
10390 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
10391 if test $ac_cv_lib_glut_glutMainLoop = yes; then
10392 GLUT_LIBS="-lglut -lXmu -lXi"
10394 GLUT32FILES='$(GLUT32FILES)'
10401 NASLIBS=""
10404 for ac_header in audio/audiolib.h
10406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 ac_res=`eval echo '${'$as_ac_Header'}'`
10414 { echo "$as_me:$LINENO: result: $ac_res" >&5
10415 echo "${ECHO_T}$ac_res" >&6; }
10416 else
10417 # Is the header compilable?
10418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h. */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10427 #include <$ac_header>
10428 _ACEOF
10429 rm -f conftest.$ac_objext
10430 if { (ac_try="$ac_compile"
10431 case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10434 esac
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
10437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10444 { (case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_try") 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; } &&
10453 { ac_try='test -s conftest.$ac_objext'
10454 { (case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_try") 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_header_compiler=yes
10464 else
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 ac_header_compiler=no
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10473 echo "${ECHO_T}$ac_header_compiler" >&6; }
10475 # Is the header present?
10476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 #include <$ac_header>
10485 _ACEOF
10486 if { (ac_try="$ac_cpp conftest.$ac_ext"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10490 esac
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } >/dev/null; then
10499 if test -s conftest.err; then
10500 ac_cpp_err=$ac_c_preproc_warn_flag
10501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10502 else
10503 ac_cpp_err=
10505 else
10506 ac_cpp_err=yes
10508 if test -z "$ac_cpp_err"; then
10509 ac_header_preproc=yes
10510 else
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 ac_header_preproc=no
10517 rm -f conftest.err conftest.$ac_ext
10518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10519 echo "${ECHO_T}$ac_header_preproc" >&6; }
10521 # So? What about this header?
10522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10523 yes:no: )
10524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10528 ac_header_preproc=yes
10530 no:yes:* )
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10543 ( cat <<\_ASBOX
10544 ## ------------------------------------ ##
10545 ## Report this to wine-devel@winehq.org ##
10546 ## ------------------------------------ ##
10547 _ASBOX
10548 ) | sed "s/^/$as_me: WARNING: /" >&2
10550 esac
10551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556 eval "$as_ac_Header=\$ac_header_preproc"
10558 ac_res=`eval echo '${'$as_ac_Header'}'`
10559 { echo "$as_me:$LINENO: result: $ac_res" >&5
10560 echo "${ECHO_T}$ac_res" >&6; }
10563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10564 cat >>confdefs.h <<_ACEOF
10565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10566 _ACEOF
10568 for ac_header in audio/soundlib.h
10570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <audio/audiolib.h>
10584 #include <$ac_header>
10585 _ACEOF
10586 rm -f conftest.$ac_objext
10587 if { (ac_try="$ac_compile"
10588 case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591 esac
10592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10593 (eval "$ac_compile") 2>conftest.er1
10594 ac_status=$?
10595 grep -v '^ *+' conftest.er1 >conftest.err
10596 rm -f conftest.er1
10597 cat conftest.err >&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } &&
10600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10601 { (case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604 esac
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_try") 2>&5
10607 ac_status=$?
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); }; } &&
10610 { ac_try='test -s conftest.$ac_objext'
10611 { (case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614 esac
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_try") 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; }; then
10620 eval "$as_ac_Header=yes"
10621 else
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 eval "$as_ac_Header=no"
10628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10630 ac_res=`eval echo '${'$as_ac_Header'}'`
10631 { echo "$as_me:$LINENO: result: $ac_res" >&5
10632 echo "${ECHO_T}$ac_res" >&6; }
10633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10634 cat >>confdefs.h <<_ACEOF
10635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10636 _ACEOF
10640 done
10642 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10643 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
10644 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647 ac_check_lib_save_LIBS=$LIBS
10648 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10656 /* Override any GCC internal prototype to avoid an error.
10657 Use char because int might match the return type of a GCC
10658 builtin and then its argument prototype would still apply. */
10659 #ifdef __cplusplus
10660 extern "C"
10661 #endif
10662 char AuCreateFlow ();
10664 main ()
10666 return AuCreateFlow ();
10668 return 0;
10670 _ACEOF
10671 rm -f conftest.$ac_objext conftest$ac_exeext
10672 if { (ac_try="$ac_link"
10673 case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676 esac
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_link") 2>conftest.er1
10679 ac_status=$?
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
10685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10686 { (case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10689 esac
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_try") 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; } &&
10695 { ac_try='test -s conftest$ac_exeext'
10696 { (case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_try") 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_cv_lib_audio_AuCreateFlow=yes
10706 else
10707 echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10710 ac_cv_lib_audio_AuCreateFlow=no
10713 rm -f core conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10715 LIBS=$ac_check_lib_save_LIBS
10717 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10718 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10719 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10721 cat >>confdefs.h <<\_ACEOF
10722 #define HAVE_NAS 1
10723 _ACEOF
10725 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10730 done
10733 CPPFLAGS="$ac_save_CPPFLAGS"
10734 XFILES='$(XFILES)'
10735 else
10736 XLIB=""
10737 X_CFLAGS=""
10738 X_LIBS=""
10742 XML2LIBS=""
10744 XML2INCL=""
10746 XSLTLIBS=""
10748 XSLTINCL=""
10750 if test "$PKG_CONFIG" != "false"
10751 then
10752 ac_save_CPPFLAGS="$CPPFLAGS"
10753 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10754 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
10755 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10757 for ac_header in libxml/parser.h
10759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 ac_res=`eval echo '${'$as_ac_Header'}'`
10767 { echo "$as_me:$LINENO: result: $ac_res" >&5
10768 echo "${ECHO_T}$ac_res" >&6; }
10769 else
10770 # Is the header compilable?
10771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h. */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10779 $ac_includes_default
10780 #include <$ac_header>
10781 _ACEOF
10782 rm -f conftest.$ac_objext
10783 if { (ac_try="$ac_compile"
10784 case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10787 esac
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_compile") 2>conftest.er1
10790 ac_status=$?
10791 grep -v '^ *+' conftest.er1 >conftest.err
10792 rm -f conftest.er1
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } &&
10796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10797 { (case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_try") 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; } &&
10806 { ac_try='test -s conftest.$ac_objext'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 ac_header_compiler=yes
10817 else
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 ac_header_compiler=no
10824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10826 echo "${ECHO_T}$ac_header_compiler" >&6; }
10828 # Is the header present?
10829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h. */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 #include <$ac_header>
10838 _ACEOF
10839 if { (ac_try="$ac_cpp conftest.$ac_ext"
10840 case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10843 esac
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10846 ac_status=$?
10847 grep -v '^ *+' conftest.er1 >conftest.err
10848 rm -f conftest.er1
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } >/dev/null; then
10852 if test -s conftest.err; then
10853 ac_cpp_err=$ac_c_preproc_warn_flag
10854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10855 else
10856 ac_cpp_err=
10858 else
10859 ac_cpp_err=yes
10861 if test -z "$ac_cpp_err"; then
10862 ac_header_preproc=yes
10863 else
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 ac_header_preproc=no
10870 rm -f conftest.err conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10872 echo "${ECHO_T}$ac_header_preproc" >&6; }
10874 # So? What about this header?
10875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10876 yes:no: )
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10881 ac_header_preproc=yes
10883 no:yes:* )
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10896 ( cat <<\_ASBOX
10897 ## ------------------------------------ ##
10898 ## Report this to wine-devel@winehq.org ##
10899 ## ------------------------------------ ##
10900 _ASBOX
10901 ) | sed "s/^/$as_me: WARNING: /" >&2
10903 esac
10904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909 eval "$as_ac_Header=\$ac_header_preproc"
10911 ac_res=`eval echo '${'$as_ac_Header'}'`
10912 { echo "$as_me:$LINENO: result: $ac_res" >&5
10913 echo "${ECHO_T}$ac_res" >&6; }
10916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10917 cat >>confdefs.h <<_ACEOF
10918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10919 _ACEOF
10920 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10921 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
10922 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925 ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-lxml2 $ac_xml_libs $LIBS"
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h. */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10934 /* Override any GCC internal prototype to avoid an error.
10935 Use char because int might match the return type of a GCC
10936 builtin and then its argument prototype would still apply. */
10937 #ifdef __cplusplus
10938 extern "C"
10939 #endif
10940 char xmlParseMemory ();
10942 main ()
10944 return xmlParseMemory ();
10946 return 0;
10948 _ACEOF
10949 rm -f conftest.$ac_objext conftest$ac_exeext
10950 if { (ac_try="$ac_link"
10951 case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_link") 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } &&
10963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10964 { (case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10967 esac
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_try") 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try='test -s conftest$ac_exeext'
10974 { (case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977 esac
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_try") 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10983 ac_cv_lib_xml2_xmlParseMemory=yes
10984 else
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10988 ac_cv_lib_xml2_xmlParseMemory=no
10991 rm -f core conftest.err conftest.$ac_objext \
10992 conftest$ac_exeext conftest.$ac_ext
10993 LIBS=$ac_check_lib_save_LIBS
10995 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10996 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10997 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
10999 cat >>confdefs.h <<\_ACEOF
11000 #define HAVE_LIBXML2 1
11001 _ACEOF
11003 XML2LIBS="$ac_xml_libs"
11004 XML2INCL="$ac_xml_cflags"
11007 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
11008 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
11009 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 else
11012 ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-lxml2 $ac_xml_libs $LIBS"
11014 cat >conftest.$ac_ext <<_ACEOF
11015 /* confdefs.h. */
11016 _ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h. */
11021 /* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11024 #ifdef __cplusplus
11025 extern "C"
11026 #endif
11027 char xmlReadMemory ();
11029 main ()
11031 return xmlReadMemory ();
11033 return 0;
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_link") 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11054 esac
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_try") 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; } &&
11060 { ac_try='test -s conftest$ac_exeext'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 ac_cv_lib_xml2_xmlReadMemory=yes
11071 else
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 ac_cv_lib_xml2_xmlReadMemory=no
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080 LIBS=$ac_check_lib_save_LIBS
11082 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
11083 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
11084 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
11086 cat >>confdefs.h <<\_ACEOF
11087 #define HAVE_XMLREADMEMORY 1
11088 _ACEOF
11095 done
11097 CPPFLAGS="$ac_save_CPPFLAGS"
11098 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
11099 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
11100 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
11103 for ac_header in libxslt/pattern.h libxslt/transform.h
11105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 #ifdef HAVE_LIBXSLT_PATTERN_H
11118 # include <libxslt/pattern.h>
11119 #endif
11121 #include <$ac_header>
11122 _ACEOF
11123 rm -f conftest.$ac_objext
11124 if { (ac_try="$ac_compile"
11125 case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_compile") 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11138 { (case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11141 esac
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_try") 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; } &&
11147 { ac_try='test -s conftest.$ac_objext'
11148 { (case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_try") 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 eval "$as_ac_Header=yes"
11158 else
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11162 eval "$as_ac_Header=no"
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167 ac_res=`eval echo '${'$as_ac_Header'}'`
11168 { echo "$as_me:$LINENO: result: $ac_res" >&5
11169 echo "${ECHO_T}$ac_res" >&6; }
11170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11171 cat >>confdefs.h <<_ACEOF
11172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11173 _ACEOF
11174 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
11175 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
11176 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179 ac_check_lib_save_LIBS=$LIBS
11180 LIBS="-lxslt $ac_xslt_libs $LIBS"
11181 cat >conftest.$ac_ext <<_ACEOF
11182 /* confdefs.h. */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11188 /* Override any GCC internal prototype to avoid an error.
11189 Use char because int might match the return type of a GCC
11190 builtin and then its argument prototype would still apply. */
11191 #ifdef __cplusplus
11192 extern "C"
11193 #endif
11194 char xsltCompilePattern ();
11196 main ()
11198 return xsltCompilePattern ();
11200 return 0;
11202 _ACEOF
11203 rm -f conftest.$ac_objext conftest$ac_exeext
11204 if { (ac_try="$ac_link"
11205 case "(($ac_try" in
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207 *) ac_try_echo=$ac_try;;
11208 esac
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210 (eval "$ac_link") 2>conftest.er1
11211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11218 { (case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11221 esac
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223 (eval "$ac_try") 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; } &&
11227 { ac_try='test -s conftest$ac_exeext'
11228 { (case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11231 esac
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_try") 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_cv_lib_xslt_xsltCompilePattern=yes
11238 else
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11242 ac_cv_lib_xslt_xsltCompilePattern=no
11245 rm -f core conftest.err conftest.$ac_objext \
11246 conftest$ac_exeext conftest.$ac_ext
11247 LIBS=$ac_check_lib_save_LIBS
11249 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11250 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
11251 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11253 cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_LIBXSLT 1
11255 _ACEOF
11257 XSLTLIBS="$ac_xslt_libs"
11258 XSLTINCL="$ac_xslt_cflags"
11264 done
11266 CPPFLAGS="$ac_save_CPPFLAGS"
11269 HALINCL=""
11271 if test "$PKG_CONFIG" != "false"
11272 then
11273 ac_save_CPPFLAGS="$CPPFLAGS"
11274 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11275 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
11276 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11279 for ac_header in dbus/dbus.h hal/libhal.h
11281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 ac_res=`eval echo '${'$as_ac_Header'}'`
11289 { echo "$as_me:$LINENO: result: $ac_res" >&5
11290 echo "${ECHO_T}$ac_res" >&6; }
11291 else
11292 # Is the header compilable?
11293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h. */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 $ac_includes_default
11302 #include <$ac_header>
11303 _ACEOF
11304 rm -f conftest.$ac_objext
11305 if { (ac_try="$ac_compile"
11306 case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_compile") 2>conftest.er1
11312 ac_status=$?
11313 grep -v '^ *+' conftest.er1 >conftest.err
11314 rm -f conftest.er1
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } &&
11318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11319 { (case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_try") 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest.$ac_objext'
11329 { (case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_try") 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ac_header_compiler=yes
11339 else
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ac_header_compiler=no
11346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11348 echo "${ECHO_T}$ac_header_compiler" >&6; }
11350 # Is the header present?
11351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h. */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 #include <$ac_header>
11360 _ACEOF
11361 if { (ac_try="$ac_cpp conftest.$ac_ext"
11362 case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11368 ac_status=$?
11369 grep -v '^ *+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } >/dev/null; then
11374 if test -s conftest.err; then
11375 ac_cpp_err=$ac_c_preproc_warn_flag
11376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11377 else
11378 ac_cpp_err=
11380 else
11381 ac_cpp_err=yes
11383 if test -z "$ac_cpp_err"; then
11384 ac_header_preproc=yes
11385 else
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11389 ac_header_preproc=no
11392 rm -f conftest.err conftest.$ac_ext
11393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6; }
11396 # So? What about this header?
11397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11398 yes:no: )
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403 ac_header_preproc=yes
11405 no:yes:* )
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11413 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11418 ( cat <<\_ASBOX
11419 ## ------------------------------------ ##
11420 ## Report this to wine-devel@winehq.org ##
11421 ## ------------------------------------ ##
11422 _ASBOX
11423 ) | sed "s/^/$as_me: WARNING: /" >&2
11425 esac
11426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431 eval "$as_ac_Header=\$ac_header_preproc"
11433 ac_res=`eval echo '${'$as_ac_Header'}'`
11434 { echo "$as_me:$LINENO: result: $ac_res" >&5
11435 echo "${ECHO_T}$ac_res" >&6; }
11438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11439 cat >>confdefs.h <<_ACEOF
11440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11441 _ACEOF
11445 done
11447 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11448 then
11449 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
11450 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
11451 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454 ac_check_lib_save_LIBS=$LIBS
11455 LIBS="-lhal $LIBS"
11456 cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h. */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11463 /* Override any GCC internal prototype to avoid an error.
11464 Use char because int might match the return type of a GCC
11465 builtin and then its argument prototype would still apply. */
11466 #ifdef __cplusplus
11467 extern "C"
11468 #endif
11469 char libhal_ctx_new ();
11471 main ()
11473 return libhal_ctx_new ();
11475 return 0;
11477 _ACEOF
11478 rm -f conftest.$ac_objext conftest$ac_exeext
11479 if { (ac_try="$ac_link"
11480 case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11483 esac
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_link") 2>conftest.er1
11486 ac_status=$?
11487 grep -v '^ *+' conftest.er1 >conftest.err
11488 rm -f conftest.er1
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11493 { (case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11496 esac
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_try") 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; } &&
11502 { ac_try='test -s conftest$ac_exeext'
11503 { (case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11506 esac
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_try") 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_cv_lib_hal_libhal_ctx_new=yes
11513 else
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_cv_lib_hal_libhal_ctx_new=no
11520 rm -f core conftest.err conftest.$ac_objext \
11521 conftest$ac_exeext conftest.$ac_ext
11522 LIBS=$ac_check_lib_save_LIBS
11524 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
11525 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
11526 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
11527 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11528 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
11529 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 else
11532 ac_check_lib_save_LIBS=$LIBS
11533 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
11534 cat >conftest.$ac_ext <<_ACEOF
11535 /* confdefs.h. */
11536 _ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11541 /* Override any GCC internal prototype to avoid an error.
11542 Use char because int might match the return type of a GCC
11543 builtin and then its argument prototype would still apply. */
11544 #ifdef __cplusplus
11545 extern "C"
11546 #endif
11547 char dbus_connection_close ();
11549 main ()
11551 return dbus_connection_close ();
11553 return 0;
11555 _ACEOF
11556 rm -f conftest.$ac_objext conftest$ac_exeext
11557 if { (ac_try="$ac_link"
11558 case "(($ac_try" in
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11561 esac
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_link") 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11571 { (case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11574 esac
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_try") 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; } &&
11580 { ac_try='test -s conftest$ac_exeext'
11581 { (case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11584 esac
11585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586 (eval "$ac_try") 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 ac_cv_lib_dbus_1_dbus_connection_close=yes
11591 else
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 ac_cv_lib_dbus_1_dbus_connection_close=no
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11600 LIBS=$ac_check_lib_save_LIBS
11602 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11603 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
11604 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
11606 cat >>confdefs.h <<\_ACEOF
11607 #define HAVE_LIBHAL 1
11608 _ACEOF
11610 HALINCL="$ac_hal_cflags"
11616 CPPFLAGS="$ac_save_CPPFLAGS"
11619 CURSESLIBS=""
11620 if test "x$with_curses" != "xno"
11621 then
11622 if test "$ac_cv_header_ncurses_h" = "yes"
11623 then
11624 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
11625 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
11626 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629 ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-lncurses $LIBS"
11631 cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h. */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11638 /* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
11641 #ifdef __cplusplus
11642 extern "C"
11643 #endif
11644 char waddch ();
11646 main ()
11648 return waddch ();
11650 return 0;
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (ac_try="$ac_link"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_link") 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668 { (case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671 esac
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_try") 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } &&
11677 { ac_try='test -s conftest$ac_exeext'
11678 { (case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_cv_lib_ncurses_waddch=yes
11688 else
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 ac_cv_lib_ncurses_waddch=no
11695 rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11697 LIBS=$ac_check_lib_save_LIBS
11699 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
11700 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
11701 if test $ac_cv_lib_ncurses_waddch = yes; then
11703 cat >>confdefs.h <<\_ACEOF
11704 #define HAVE_LIBNCURSES 1
11705 _ACEOF
11707 CURSESLIBS="-lncurses"
11710 elif test "$ac_cv_header_curses_h" = "yes"
11711 then
11712 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11713 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
11714 if test "${ac_cv_lib_curses_waddch+set}" = set; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717 ac_check_lib_save_LIBS=$LIBS
11718 LIBS="-lcurses $LIBS"
11719 cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h. */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11726 /* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 char waddch ();
11734 main ()
11736 return waddch ();
11738 return 0;
11740 _ACEOF
11741 rm -f conftest.$ac_objext conftest$ac_exeext
11742 if { (ac_try="$ac_link"
11743 case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746 esac
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_link") 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11756 { (case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_try") 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest$ac_exeext'
11766 { (case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_try") 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 ac_cv_lib_curses_waddch=yes
11776 else
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11780 ac_cv_lib_curses_waddch=no
11783 rm -f core conftest.err conftest.$ac_objext \
11784 conftest$ac_exeext conftest.$ac_ext
11785 LIBS=$ac_check_lib_save_LIBS
11787 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11788 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
11789 if test $ac_cv_lib_curses_waddch = yes; then
11791 cat >>confdefs.h <<\_ACEOF
11792 #define HAVE_LIBCURSES 1
11793 _ACEOF
11795 CURSESLIBS="-lcurses"
11799 ac_save_LIBS="$LIBS"
11800 LIBS="$LIBS $CURSESLIBS"
11802 for ac_func in mousemask
11804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h. */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11818 #define $ac_func innocuous_$ac_func
11820 /* System header to define __stub macros and hopefully few prototypes,
11821 which can conflict with char $ac_func (); below.
11822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823 <limits.h> exists even on freestanding compilers. */
11825 #ifdef __STDC__
11826 # include <limits.h>
11827 #else
11828 # include <assert.h>
11829 #endif
11831 #undef $ac_func
11833 /* Override any GCC internal prototype to avoid an error.
11834 Use char because int might match the return type of a GCC
11835 builtin and then its argument prototype would still apply. */
11836 #ifdef __cplusplus
11837 extern "C"
11838 #endif
11839 char $ac_func ();
11840 /* The GNU C library defines this for functions which it implements
11841 to always fail with ENOSYS. Some functions are actually named
11842 something starting with __ and the normal name is an alias. */
11843 #if defined __stub_$ac_func || defined __stub___$ac_func
11844 choke me
11845 #endif
11848 main ()
11850 return $ac_func ();
11852 return 0;
11854 _ACEOF
11855 rm -f conftest.$ac_objext conftest$ac_exeext
11856 if { (ac_try="$ac_link"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860 esac
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_link") 2>conftest.er1
11863 ac_status=$?
11864 grep -v '^ *+' conftest.er1 >conftest.err
11865 rm -f conftest.er1
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11870 { (case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_try") 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; } &&
11879 { ac_try='test -s conftest$ac_exeext'
11880 { (case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11883 esac
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885 (eval "$ac_try") 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 eval "$as_ac_var=yes"
11890 else
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11894 eval "$as_ac_var=no"
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11900 ac_res=`eval echo '${'$as_ac_var'}'`
11901 { echo "$as_me:$LINENO: result: $ac_res" >&5
11902 echo "${ECHO_T}$ac_res" >&6; }
11903 if test `eval echo '${'$as_ac_var'}'` = yes; then
11904 cat >>confdefs.h <<_ACEOF
11905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11906 _ACEOF
11909 done
11911 LIBS="$ac_save_LIBS"
11915 # Extract the first word of "sane-config", so it can be a program name with args.
11916 set dummy sane-config; ac_word=$2
11917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11919 if test "${ac_cv_prog_sane_devel+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922 if test -n "$sane_devel"; then
11923 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11924 else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11932 ac_cv_prog_sane_devel="sane-config"
11933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 break 2
11936 done
11937 done
11938 IFS=$as_save_IFS
11940 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11943 sane_devel=$ac_cv_prog_sane_devel
11944 if test -n "$sane_devel"; then
11945 { echo "$as_me:$LINENO: result: $sane_devel" >&5
11946 echo "${ECHO_T}$sane_devel" >&6; }
11947 else
11948 { echo "$as_me:$LINENO: result: no" >&5
11949 echo "${ECHO_T}no" >&6; }
11953 SANELIBS=""
11955 SANEINCL=""
11957 if test "$sane_devel" != "no"
11958 then
11959 SANELIBS="`$sane_devel --libs`"
11960 SANEINCL="`$sane_devel --cflags`"
11961 ac_save_CPPFLAGS="$CPPFLAGS"
11962 ac_save_LIBS="$LIBS"
11963 CPPFLAGS="$CPPFLAGS $SANEINCL"
11964 LIBS="$LIBS $SANELIBS"
11965 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11966 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11967 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11968 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11972 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11973 else
11974 # Is the header compilable?
11975 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11976 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
11977 cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h. */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 $ac_includes_default
11984 #include <sane/sane.h>
11985 _ACEOF
11986 rm -f conftest.$ac_objext
11987 if { (ac_try="$ac_compile"
11988 case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_compile") 2>conftest.er1
11994 ac_status=$?
11995 grep -v '^ *+' conftest.er1 >conftest.err
11996 rm -f conftest.er1
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } &&
12000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12001 { (case "(($ac_try" in
12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12004 esac
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_try") 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest.$ac_objext'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014 esac
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_try") 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 ac_header_compiler=yes
12021 else
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 ac_header_compiler=no
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12030 echo "${ECHO_T}$ac_header_compiler" >&6; }
12032 # Is the header present?
12033 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
12034 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h. */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 #include <sane/sane.h>
12042 _ACEOF
12043 if { (ac_try="$ac_cpp conftest.$ac_ext"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } >/dev/null; then
12056 if test -s conftest.err; then
12057 ac_cpp_err=$ac_c_preproc_warn_flag
12058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12059 else
12060 ac_cpp_err=
12062 else
12063 ac_cpp_err=yes
12065 if test -z "$ac_cpp_err"; then
12066 ac_header_preproc=yes
12067 else
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 ac_header_preproc=no
12074 rm -f conftest.err conftest.$ac_ext
12075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12076 echo "${ECHO_T}$ac_header_preproc" >&6; }
12078 # So? What about this header?
12079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12080 yes:no: )
12081 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
12082 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
12084 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
12085 ac_header_preproc=yes
12087 no:yes:* )
12088 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
12089 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
12091 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
12093 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
12095 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
12096 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
12097 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
12098 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
12099 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
12100 ( cat <<\_ASBOX
12101 ## ------------------------------------ ##
12102 ## Report this to wine-devel@winehq.org ##
12103 ## ------------------------------------ ##
12104 _ASBOX
12105 ) | sed "s/^/$as_me: WARNING: /" >&2
12107 esac
12108 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
12109 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
12110 if test "${ac_cv_header_sane_sane_h+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113 ac_cv_header_sane_sane_h=$ac_header_preproc
12115 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
12116 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
12119 if test $ac_cv_header_sane_sane_h = yes; then
12120 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
12121 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
12122 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125 ac_check_lib_save_LIBS=$LIBS
12126 LIBS="-lsane $LIBS"
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h. */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12134 /* Override any GCC internal prototype to avoid an error.
12135 Use char because int might match the return type of a GCC
12136 builtin and then its argument prototype would still apply. */
12137 #ifdef __cplusplus
12138 extern "C"
12139 #endif
12140 char sane_open ();
12142 main ()
12144 return sane_open ();
12146 return 0;
12148 _ACEOF
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (ac_try="$ac_link"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_link") 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest$ac_exeext'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_cv_lib_sane_sane_open=yes
12184 else
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_cv_lib_sane_sane_open=no
12191 rm -f core conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12195 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
12196 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
12197 if test $ac_cv_lib_sane_sane_open = yes; then
12199 cat >>confdefs.h <<\_ACEOF
12200 #define HAVE_SANE 1
12201 _ACEOF
12203 else
12204 SANELIBS=""
12205 SANEINCL=""
12208 else
12209 SANELIBS=""
12210 SANEINCL=""
12214 LIBS="$ac_save_LIBS"
12215 CPPFLAGS="$ac_save_CPPFLAGS"
12218 # Extract the first word of "gphoto2-config", so it can be a program name with args.
12219 set dummy gphoto2-config; ac_word=$2
12220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12222 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225 if test -n "$gphoto2_devel"; then
12226 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12227 else
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12235 ac_cv_prog_gphoto2_devel="gphoto2-config"
12236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 break 2
12239 done
12240 done
12241 IFS=$as_save_IFS
12243 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12246 gphoto2_devel=$ac_cv_prog_gphoto2_devel
12247 if test -n "$gphoto2_devel"; then
12248 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12249 echo "${ECHO_T}$gphoto2_devel" >&6; }
12250 else
12251 { echo "$as_me:$LINENO: result: no" >&5
12252 echo "${ECHO_T}no" >&6; }
12256 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12257 set dummy gphoto2-port-config; ac_word=$2
12258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12260 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263 if test -n "$gphoto2port_devel"; then
12264 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12265 else
12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH
12269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
12271 for ac_exec_ext in '' $ac_executable_extensions; do
12272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12273 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12275 break 2
12277 done
12278 done
12279 IFS=$as_save_IFS
12281 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
12284 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12285 if test -n "$gphoto2port_devel"; then
12286 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12287 echo "${ECHO_T}$gphoto2port_devel" >&6; }
12288 else
12289 { echo "$as_me:$LINENO: result: no" >&5
12290 echo "${ECHO_T}no" >&6; }
12294 GPHOTO2LIBS=""
12296 GPHOTO2INCL=""
12298 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12299 then
12300 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12301 GPHOTO2LIBS=""
12302 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12304 case "$i" in
12305 -L/usr/lib|-L/usr/lib64) ;;
12306 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
12307 esac
12308 done
12309 ac_save_CPPFLAGS="$CPPFLAGS"
12310 ac_save_LIBS="$LIBS"
12311 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
12312 LIBS="$LIBS $GPHOTO2LIBS"
12313 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12314 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12315 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12316 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12320 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12321 else
12322 # Is the header compilable?
12323 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12324 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h. */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12331 $ac_includes_default
12332 #include <gphoto2-camera.h>
12333 _ACEOF
12334 rm -f conftest.$ac_objext
12335 if { (ac_try="$ac_compile"
12336 case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12339 esac
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_compile") 2>conftest.er1
12342 ac_status=$?
12343 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12349 { (case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12352 esac
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_try") 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try='test -s conftest.$ac_objext'
12359 { (case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_try") 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
12368 ac_header_compiler=yes
12369 else
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12373 ac_header_compiler=no
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12378 echo "${ECHO_T}$ac_header_compiler" >&6; }
12380 # Is the header present?
12381 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12382 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
12383 cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h. */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12389 #include <gphoto2-camera.h>
12390 _ACEOF
12391 if { (ac_try="$ac_cpp conftest.$ac_ext"
12392 case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395 esac
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } >/dev/null; then
12404 if test -s conftest.err; then
12405 ac_cpp_err=$ac_c_preproc_warn_flag
12406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12407 else
12408 ac_cpp_err=
12410 else
12411 ac_cpp_err=yes
12413 if test -z "$ac_cpp_err"; then
12414 ac_header_preproc=yes
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_header_preproc=no
12422 rm -f conftest.err conftest.$ac_ext
12423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12424 echo "${ECHO_T}$ac_header_preproc" >&6; }
12426 # So? What about this header?
12427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12428 yes:no: )
12429 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12430 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12431 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12432 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12433 ac_header_preproc=yes
12435 no:yes:* )
12436 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12437 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12438 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
12439 echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12441 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
12443 echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12445 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12447 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
12448 ( cat <<\_ASBOX
12449 ## ------------------------------------ ##
12450 ## Report this to wine-devel@winehq.org ##
12451 ## ------------------------------------ ##
12452 _ASBOX
12453 ) | sed "s/^/$as_me: WARNING: /" >&2
12455 esac
12456 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12457 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12458 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
12463 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12464 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12467 if test $ac_cv_header_gphoto2_camera_h = yes; then
12468 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12469 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
12470 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473 ac_check_lib_save_LIBS=$LIBS
12474 LIBS="-lgphoto2 $LIBS"
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h. */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12482 /* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
12485 #ifdef __cplusplus
12486 extern "C"
12487 #endif
12488 char gp_camera_new ();
12490 main ()
12492 return gp_camera_new ();
12494 return 0;
12496 _ACEOF
12497 rm -f conftest.$ac_objext conftest$ac_exeext
12498 if { (ac_try="$ac_link"
12499 case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12502 esac
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_link") 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12512 { (case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12515 esac
12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_try") 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; } &&
12521 { ac_try='test -s conftest$ac_exeext'
12522 { (case "(($ac_try" in
12523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524 *) ac_try_echo=$ac_try;;
12525 esac
12526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12527 (eval "$ac_try") 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
12531 ac_cv_lib_gphoto2_gp_camera_new=yes
12532 else
12533 echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12536 ac_cv_lib_gphoto2_gp_camera_new=no
12539 rm -f core conftest.err conftest.$ac_objext \
12540 conftest$ac_exeext conftest.$ac_ext
12541 LIBS=$ac_check_lib_save_LIBS
12543 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12544 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
12545 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
12547 cat >>confdefs.h <<\_ACEOF
12548 #define HAVE_GPHOTO2 1
12549 _ACEOF
12551 else
12552 GPHOTO2LIBS=""
12553 GPHOTO2INCL=""
12556 else
12557 GPHOTO2LIBS=""
12558 GPHOTO2INCL=""
12562 LIBS="$ac_save_LIBS"
12563 CPPFLAGS="$ac_save_CPPFLAGS"
12566 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
12567 then
12568 saved_libs="$LIBS"
12569 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
12571 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
12572 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
12573 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
12574 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
12575 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h. */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 #include <unicode/ubidi.h>
12584 main ()
12586 ubidi_open()
12588 return 0;
12590 _ACEOF
12591 rm -f conftest.$ac_objext conftest$ac_exeext
12592 if { (ac_try="$ac_link"
12593 case "(($ac_try" in
12594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12595 *) ac_try_echo=$ac_try;;
12596 esac
12597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12598 (eval "$ac_link") 2>conftest.er1
12599 ac_status=$?
12600 grep -v '^ *+' conftest.er1 >conftest.err
12601 rm -f conftest.er1
12602 cat conftest.err >&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } &&
12605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12606 { (case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12609 esac
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_try") 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } &&
12615 { ac_try='test -s conftest$ac_exeext'
12616 { (case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12619 esac
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621 (eval "$ac_try") 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12626 cat >>confdefs.h <<\_ACEOF
12627 #define HAVE_ICU 1
12628 _ACEOF
12630 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12632 { echo "$as_me:$LINENO: result: yes" >&5
12633 echo "${ECHO_T}yes" >&6; }
12634 else
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12638 { echo "$as_me:$LINENO: result: no" >&5
12639 echo "${ECHO_T}no" >&6; }
12642 rm -f core conftest.err conftest.$ac_objext \
12643 conftest$ac_exeext conftest.$ac_ext
12644 done
12645 LIBS="$saved_libs"
12648 RESOLVLIBS=""
12650 if test "$ac_cv_header_resolv_h" = "yes"
12651 then
12652 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12653 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
12654 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657 ac_check_lib_save_LIBS=$LIBS
12658 LIBS="-lresolv $LIBS"
12659 cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h. */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12666 /* Override any GCC internal prototype to avoid an error.
12667 Use char because int might match the return type of a GCC
12668 builtin and then its argument prototype would still apply. */
12669 #ifdef __cplusplus
12670 extern "C"
12671 #endif
12672 char res_query ();
12674 main ()
12676 return res_query ();
12678 return 0;
12680 _ACEOF
12681 rm -f conftest.$ac_objext conftest$ac_exeext
12682 if { (ac_try="$ac_link"
12683 case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12686 esac
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_link") 2>conftest.er1
12689 ac_status=$?
12690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } &&
12695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12696 { (case "(($ac_try" in
12697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12699 esac
12700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701 (eval "$ac_try") 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; } &&
12705 { ac_try='test -s conftest$ac_exeext'
12706 { (case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12709 esac
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711 (eval "$ac_try") 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 ac_cv_lib_resolv_res_query=yes
12716 else
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12720 ac_cv_lib_resolv_res_query=no
12723 rm -f core conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12727 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12728 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12729 if test $ac_cv_lib_resolv_res_query = yes; then
12731 cat >>confdefs.h <<\_ACEOF
12732 #define HAVE_RESOLV 1
12733 _ACEOF
12735 RESOLVLIBS="-lresolv"
12740 LCMSLIBS=""
12742 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12743 then
12744 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12745 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12746 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749 ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-llcms $LIBS"
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h. */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12761 #ifdef __cplusplus
12762 extern "C"
12763 #endif
12764 char cmsOpenProfileFromFile ();
12766 main ()
12768 return cmsOpenProfileFromFile ();
12770 return 0;
12772 _ACEOF
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (ac_try="$ac_link"
12775 case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_link") 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12788 { (case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12791 esac
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 (eval "$ac_try") 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; } &&
12797 { ac_try='test -s conftest$ac_exeext'
12798 { (case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12801 esac
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_try") 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12808 else
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817 LIBS=$ac_check_lib_save_LIBS
12819 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12820 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12821 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12823 cat >>confdefs.h <<\_ACEOF
12824 #define HAVE_LCMS 1
12825 _ACEOF
12827 LCMSLIBS="-llcms"
12832 LDAPLIBS=""
12834 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12835 then
12836 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12837 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12838 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841 ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h. */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12850 /* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 char ldap_initialize ();
12858 main ()
12860 return ldap_initialize ();
12862 return 0;
12864 _ACEOF
12865 rm -f conftest.$ac_objext conftest$ac_exeext
12866 if { (ac_try="$ac_link"
12867 case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_link") 2>conftest.er1
12873 ac_status=$?
12874 grep -v '^ *+' conftest.er1 >conftest.err
12875 rm -f conftest.er1
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12880 { (case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12883 esac
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_try") 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest$ac_exeext'
12890 { (case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12893 esac
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_try") 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 ac_cv_lib_ldap_r_ldap_initialize=yes
12900 else
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12904 ac_cv_lib_ldap_r_ldap_initialize=no
12907 rm -f core conftest.err conftest.$ac_objext \
12908 conftest$ac_exeext conftest.$ac_ext
12909 LIBS=$ac_check_lib_save_LIBS
12911 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12912 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12913 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12914 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12915 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12916 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919 ac_check_lib_save_LIBS=$LIBS
12920 LIBS="-llber $LIBPTHREAD $LIBS"
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h. */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12928 /* Override any GCC internal prototype to avoid an error.
12929 Use char because int might match the return type of a GCC
12930 builtin and then its argument prototype would still apply. */
12931 #ifdef __cplusplus
12932 extern "C"
12933 #endif
12934 char ber_init ();
12936 main ()
12938 return ber_init ();
12940 return 0;
12942 _ACEOF
12943 rm -f conftest.$ac_objext conftest$ac_exeext
12944 if { (ac_try="$ac_link"
12945 case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12948 esac
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_link") 2>conftest.er1
12951 ac_status=$?
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -f conftest.er1
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12958 { (case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961 esac
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_try") 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest$ac_exeext'
12968 { (case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 ac_cv_lib_lber_ber_init=yes
12978 else
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 ac_cv_lib_lber_ber_init=no
12985 rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12987 LIBS=$ac_check_lib_save_LIBS
12989 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12990 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12991 if test $ac_cv_lib_lber_ber_init = yes; then
12993 cat >>confdefs.h <<\_ACEOF
12994 #define HAVE_LDAP 1
12995 _ACEOF
12997 LDAPLIBS="-lldap_r -llber"
13002 ac_wine_check_funcs_save_LIBS="$LIBS"
13003 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13008 for ac_func in \
13009 ldap_count_references \
13010 ldap_first_reference \
13011 ldap_next_reference \
13012 ldap_parse_reference
13014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020 cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h. */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13028 #define $ac_func innocuous_$ac_func
13030 /* System header to define __stub macros and hopefully few prototypes,
13031 which can conflict with char $ac_func (); below.
13032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13033 <limits.h> exists even on freestanding compilers. */
13035 #ifdef __STDC__
13036 # include <limits.h>
13037 #else
13038 # include <assert.h>
13039 #endif
13041 #undef $ac_func
13043 /* Override any GCC internal prototype to avoid an error.
13044 Use char because int might match the return type of a GCC
13045 builtin and then its argument prototype would still apply. */
13046 #ifdef __cplusplus
13047 extern "C"
13048 #endif
13049 char $ac_func ();
13050 /* The GNU C library defines this for functions which it implements
13051 to always fail with ENOSYS. Some functions are actually named
13052 something starting with __ and the normal name is an alias. */
13053 #if defined __stub_$ac_func || defined __stub___$ac_func
13054 choke me
13055 #endif
13058 main ()
13060 return $ac_func ();
13062 return 0;
13064 _ACEOF
13065 rm -f conftest.$ac_objext conftest$ac_exeext
13066 if { (ac_try="$ac_link"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_link") 2>conftest.er1
13073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13080 { (case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_try") 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093 esac
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_try") 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099 eval "$as_ac_var=yes"
13100 else
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13104 eval "$as_ac_var=no"
13107 rm -f core conftest.err conftest.$ac_objext \
13108 conftest$ac_exeext conftest.$ac_ext
13110 ac_res=`eval echo '${'$as_ac_var'}'`
13111 { echo "$as_me:$LINENO: result: $ac_res" >&5
13112 echo "${ECHO_T}$ac_res" >&6; }
13113 if test `eval echo '${'$as_ac_var'}'` = yes; then
13114 cat >>confdefs.h <<_ACEOF
13115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13116 _ACEOF
13119 done
13121 LIBS="$ac_wine_check_funcs_save_LIBS"
13124 FREETYPELIBS=""
13126 FREETYPEINCL=""
13128 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
13129 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
13130 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 else
13133 ac_check_lib_save_LIBS=$LIBS
13134 LIBS="-lfreetype $X_LIBS $LIBS"
13135 cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h. */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13142 /* Override any GCC internal prototype to avoid an error.
13143 Use char because int might match the return type of a GCC
13144 builtin and then its argument prototype would still apply. */
13145 #ifdef __cplusplus
13146 extern "C"
13147 #endif
13148 char FT_Init_FreeType ();
13150 main ()
13152 return FT_Init_FreeType ();
13154 return 0;
13156 _ACEOF
13157 rm -f conftest.$ac_objext conftest$ac_exeext
13158 if { (ac_try="$ac_link"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_link") 2>conftest.er1
13165 ac_status=$?
13166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13172 { (case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175 esac
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_try") 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try='test -s conftest$ac_exeext'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13185 esac
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13191 ac_cv_lib_freetype_FT_Init_FreeType=yes
13192 else
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13196 ac_cv_lib_freetype_FT_Init_FreeType=no
13199 rm -f core conftest.err conftest.$ac_objext \
13200 conftest$ac_exeext conftest.$ac_ext
13201 LIBS=$ac_check_lib_save_LIBS
13203 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
13204 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
13205 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
13206 ft_lib=yes
13207 else
13208 ft_lib=no
13211 if test "$ft_lib" = "no"
13212 then
13213 wine_cv_msg_freetype=no
13214 else
13215 # Extract the first word of "freetype-config", so it can be a program name with args.
13216 set dummy freetype-config; ac_word=$2
13217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13219 if test "${ac_cv_prog_ft_devel+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 else
13222 if test -n "$ft_devel"; then
13223 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
13224 else
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13228 IFS=$as_save_IFS
13229 test -z "$as_dir" && as_dir=.
13230 for ac_exec_ext in '' $ac_executable_extensions; do
13231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13232 ac_cv_prog_ft_devel="freetype-config"
13233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13234 break 2
13236 done
13237 done
13238 IFS=$as_save_IFS
13240 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
13243 ft_devel=$ac_cv_prog_ft_devel
13244 if test -n "$ft_devel"; then
13245 { echo "$as_me:$LINENO: result: $ft_devel" >&5
13246 echo "${ECHO_T}$ft_devel" >&6; }
13247 else
13248 { echo "$as_me:$LINENO: result: no" >&5
13249 echo "${ECHO_T}no" >&6; }
13253 if test "$ft_devel" = "no"
13254 then
13255 # Extract the first word of "freetype2-config", so it can be a program name with args.
13256 set dummy freetype2-config; ac_word=$2
13257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13259 if test "${ac_cv_prog_ft_devel2+set}" = set; then
13260 echo $ECHO_N "(cached) $ECHO_C" >&6
13261 else
13262 if test -n "$ft_devel2"; then
13263 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
13264 else
13265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13266 for as_dir in $PATH
13268 IFS=$as_save_IFS
13269 test -z "$as_dir" && as_dir=.
13270 for ac_exec_ext in '' $ac_executable_extensions; do
13271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13272 ac_cv_prog_ft_devel2="freetype2-config"
13273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13274 break 2
13276 done
13277 done
13278 IFS=$as_save_IFS
13280 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
13283 ft_devel2=$ac_cv_prog_ft_devel2
13284 if test -n "$ft_devel2"; then
13285 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
13286 echo "${ECHO_T}$ft_devel2" >&6; }
13287 else
13288 { echo "$as_me:$LINENO: result: no" >&5
13289 echo "${ECHO_T}no" >&6; }
13293 if test "$ft_devel2" = "freetype2-config"
13294 then
13295 ft_devel=$ft_devel2
13298 if test "$ft_devel" = "no"
13299 then
13300 wine_cv_msg_freetype=yes
13301 else
13302 FREETYPELIBS=`$ft_devel --libs`
13303 FREETYPEINCL=`$ft_devel --cflags`
13304 ac_save_CPPFLAGS="$CPPFLAGS"
13305 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
13317 for ac_header in ft2build.h \
13318 freetype/freetype.h \
13319 freetype/ftglyph.h \
13320 freetype/tttables.h \
13321 freetype/ftnames.h \
13322 freetype/ftsnames.h \
13323 freetype/ttnameid.h \
13324 freetype/ftoutln.h \
13325 freetype/ftwinfnt.h \
13326 freetype/ftmodapi.h \
13327 freetype/internal/sfnt.h
13329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 else
13335 cat >conftest.$ac_ext <<_ACEOF
13336 /* confdefs.h. */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 #if HAVE_FT2BUILD_H
13342 #include <ft2build.h>
13343 #endif
13345 #include <$ac_header>
13346 _ACEOF
13347 rm -f conftest.$ac_objext
13348 if { (ac_try="$ac_compile"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13352 esac
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_compile") 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
13361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13362 { (case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13365 esac
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367 (eval "$ac_try") 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; } &&
13371 { ac_try='test -s conftest.$ac_objext'
13372 { (case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_try") 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 eval "$as_ac_Header=yes"
13382 else
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 eval "$as_ac_Header=no"
13389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391 ac_res=`eval echo '${'$as_ac_Header'}'`
13392 { echo "$as_me:$LINENO: result: $ac_res" >&5
13393 echo "${ECHO_T}$ac_res" >&6; }
13394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13395 cat >>confdefs.h <<_ACEOF
13396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13397 _ACEOF
13401 done
13403 cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h. */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 #include <ft2build.h>
13410 #include <freetype/fttrigon.h>
13411 _ACEOF
13412 if { (ac_try="$ac_cpp conftest.$ac_ext"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } >/dev/null; then
13425 if test -s conftest.err; then
13426 ac_cpp_err=$ac_c_preproc_warn_flag
13427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13428 else
13429 ac_cpp_err=
13431 else
13432 ac_cpp_err=yes
13434 if test -z "$ac_cpp_err"; then
13436 cat >>confdefs.h <<\_ACEOF
13437 #define HAVE_FREETYPE_FTTRIGON_H 1
13438 _ACEOF
13440 wine_cv_fttrigon=yes
13441 else
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13445 wine_cv_fttrigon=no
13448 rm -f conftest.err conftest.$ac_ext
13449 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13450 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
13451 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454 cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h. */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 #include <freetype/ftmodapi.h>
13462 typedef FT_TrueTypeEngineType ac__type_new_;
13464 main ()
13466 if ((ac__type_new_ *) 0)
13467 return 0;
13468 if (sizeof (ac__type_new_))
13469 return 0;
13471 return 0;
13473 _ACEOF
13474 rm -f conftest.$ac_objext
13475 if { (ac_try="$ac_compile"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_compile") 2>conftest.er1
13482 ac_status=$?
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13492 esac
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; } &&
13498 { ac_try='test -s conftest.$ac_objext'
13499 { (case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502 esac
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_try") 2>&5
13505 ac_status=$?
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13508 ac_cv_type_FT_TrueTypeEngineType=yes
13509 else
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13513 ac_cv_type_FT_TrueTypeEngineType=no
13516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13518 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13519 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
13520 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13522 cat >>confdefs.h <<_ACEOF
13523 #define HAVE_FT_TRUETYPEENGINETYPE 1
13524 _ACEOF
13529 ac_save_CFLAGS="$CFLAGS"
13530 CFLAGS="$CFLAGS $FREETYPELIBS"
13532 for ac_func in FT_Load_Sfnt_Table
13534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540 cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h. */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13548 #define $ac_func innocuous_$ac_func
13550 /* System header to define __stub macros and hopefully few prototypes,
13551 which can conflict with char $ac_func (); below.
13552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13553 <limits.h> exists even on freestanding compilers. */
13555 #ifdef __STDC__
13556 # include <limits.h>
13557 #else
13558 # include <assert.h>
13559 #endif
13561 #undef $ac_func
13563 /* Override any GCC internal prototype to avoid an error.
13564 Use char because int might match the return type of a GCC
13565 builtin and then its argument prototype would still apply. */
13566 #ifdef __cplusplus
13567 extern "C"
13568 #endif
13569 char $ac_func ();
13570 /* The GNU C library defines this for functions which it implements
13571 to always fail with ENOSYS. Some functions are actually named
13572 something starting with __ and the normal name is an alias. */
13573 #if defined __stub_$ac_func || defined __stub___$ac_func
13574 choke me
13575 #endif
13578 main ()
13580 return $ac_func ();
13582 return 0;
13584 _ACEOF
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (ac_try="$ac_link"
13587 case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13590 esac
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_link") 2>conftest.er1
13593 ac_status=$?
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13600 { (case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13603 esac
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_try") 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; } &&
13609 { ac_try='test -s conftest$ac_exeext'
13610 { (case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13613 esac
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_try") 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 eval "$as_ac_var=yes"
13620 else
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13624 eval "$as_ac_var=no"
13627 rm -f core conftest.err conftest.$ac_objext \
13628 conftest$ac_exeext conftest.$ac_ext
13630 ac_res=`eval echo '${'$as_ac_var'}'`
13631 { echo "$as_me:$LINENO: result: $ac_res" >&5
13632 echo "${ECHO_T}$ac_res" >&6; }
13633 if test `eval echo '${'$as_ac_var'}'` = yes; then
13634 cat >>confdefs.h <<_ACEOF
13635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13636 _ACEOF
13639 done
13641 CFLAGS="$ac_save_CFLAGS"
13642 CPPFLAGS="$ac_save_CPPFLAGS"
13643 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
13644 then
13646 cat >>confdefs.h <<\_ACEOF
13647 #define HAVE_FREETYPE 1
13648 _ACEOF
13650 wine_cv_msg_freetype=no
13651 else
13652 FREETYPELIBS=""
13653 FREETYPEINCL=""
13654 wine_cv_msg_freetype=yes
13659 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
13660 then
13661 FONTSSUBDIRS="fonts"
13665 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13666 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
13667 if test "${ac_cv_c_ppdev+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h. */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 #include <linux/ppdev.h>
13678 main ()
13680 ioctl (1,PPCLAIM,0)
13682 return 0;
13684 _ACEOF
13685 rm -f conftest.$ac_objext
13686 if { (ac_try="$ac_compile"
13687 case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690 esac
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_compile") 2>conftest.er1
13693 ac_status=$?
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest.$ac_objext'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713 esac
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_c_ppdev="yes"
13720 else
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ac_cv_c_ppdev="no"
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13731 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13732 if test "$ac_cv_c_ppdev" = "yes"
13733 then
13735 cat >>confdefs.h <<\_ACEOF
13736 #define HAVE_PPDEV 1
13737 _ACEOF
13741 { echo "$as_me:$LINENO: checking for va_copy" >&5
13742 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13743 if test "${ac_cv_c_va_copy+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 else
13746 cat >conftest.$ac_ext <<_ACEOF
13747 /* confdefs.h. */
13748 _ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13752 #include <stdarg.h>
13754 main ()
13756 va_list ap1, ap2;
13757 va_copy(ap1,ap2);
13760 return 0;
13762 _ACEOF
13763 rm -f conftest.$ac_objext conftest$ac_exeext
13764 if { (ac_try="$ac_link"
13765 case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13768 esac
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_link") 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; } &&
13787 { ac_try='test -s conftest$ac_exeext'
13788 { (case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13791 esac
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_try") 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 ac_cv_c_va_copy="yes"
13798 else
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ac_cv_c_va_copy="no"
13805 rm -f core conftest.err conftest.$ac_objext \
13806 conftest$ac_exeext conftest.$ac_ext
13809 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13810 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13811 if test "$ac_cv_c_va_copy" = "yes"
13812 then
13814 cat >>confdefs.h <<\_ACEOF
13815 #define HAVE_VA_COPY 1
13816 _ACEOF
13819 { echo "$as_me:$LINENO: checking for __va_copy" >&5
13820 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13821 if test "${ac_cv_c___va_copy+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824 cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h. */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 #include <stdarg.h>
13832 main ()
13834 va_list ap1, ap2;
13835 __va_copy(ap1,ap2);
13838 return 0;
13840 _ACEOF
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (ac_try="$ac_link"
13843 case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_link") 2>conftest.er1
13849 ac_status=$?
13850 grep -v '^ *+' conftest.er1 >conftest.err
13851 rm -f conftest.er1
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } &&
13855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13859 esac
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest$ac_exeext'
13866 { (case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_try") 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 ac_cv_c___va_copy="yes"
13876 else
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 ac_cv_c___va_copy="no"
13883 rm -f core conftest.err conftest.$ac_objext \
13884 conftest$ac_exeext conftest.$ac_ext
13887 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13888 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13889 if test "$ac_cv_c___va_copy" = "yes"
13890 then
13892 cat >>confdefs.h <<\_ACEOF
13893 #define HAVE___VA_COPY 1
13894 _ACEOF
13898 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13899 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13900 if test "${ac_cv_c_sigsetjmp+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903 cat >conftest.$ac_ext <<_ACEOF
13904 /* confdefs.h. */
13905 _ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13909 #include <setjmp.h>
13911 main ()
13913 sigjmp_buf buf;
13914 sigsetjmp( buf, 1 );
13915 siglongjmp( buf, 1 );
13917 return 0;
13919 _ACEOF
13920 rm -f conftest.$ac_objext conftest$ac_exeext
13921 if { (ac_try="$ac_link"
13922 case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13925 esac
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_link") 2>conftest.er1
13928 ac_status=$?
13929 grep -v '^ *+' conftest.er1 >conftest.err
13930 rm -f conftest.er1
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13935 { (case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13938 esac
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_try") 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; } &&
13944 { ac_try='test -s conftest$ac_exeext'
13945 { (case "(($ac_try" in
13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13948 esac
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_try") 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13954 ac_cv_c_sigsetjmp="yes"
13955 else
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 ac_cv_c_sigsetjmp="no"
13962 rm -f core conftest.err conftest.$ac_objext \
13963 conftest$ac_exeext conftest.$ac_ext
13966 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13967 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13968 if test "$ac_cv_c_sigsetjmp" = "yes"
13969 then
13971 cat >>confdefs.h <<\_ACEOF
13972 #define HAVE_SIGSETJMP 1
13973 _ACEOF
13977 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13978 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13979 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 #define _GNU_SOURCE
13989 #include <pthread.h>
13991 typedef pthread_rwlock_t ac__type_new_;
13993 main ()
13995 if ((ac__type_new_ *) 0)
13996 return 0;
13997 if (sizeof (ac__type_new_))
13998 return 0;
14000 return 0;
14002 _ACEOF
14003 rm -f conftest.$ac_objext
14004 if { (ac_try="$ac_compile"
14005 case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14008 esac
14009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_compile") 2>conftest.er1
14011 ac_status=$?
14012 grep -v '^ *+' conftest.er1 >conftest.err
14013 rm -f conftest.er1
14014 cat conftest.err >&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } &&
14017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14018 { (case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14021 esac
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_try") 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031 esac
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_try") 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_type_pthread_rwlock_t=yes
14038 else
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ac_cv_type_pthread_rwlock_t=no
14045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14047 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
14048 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
14049 if test $ac_cv_type_pthread_rwlock_t = yes; then
14051 cat >>confdefs.h <<_ACEOF
14052 #define HAVE_PTHREAD_RWLOCK_T 1
14053 _ACEOF
14057 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
14058 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
14059 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 else
14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h. */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14068 #define _GNU_SOURCE
14069 #include <pthread.h>
14071 typedef pthread_rwlockattr_t ac__type_new_;
14073 main ()
14075 if ((ac__type_new_ *) 0)
14076 return 0;
14077 if (sizeof (ac__type_new_))
14078 return 0;
14080 return 0;
14082 _ACEOF
14083 rm -f conftest.$ac_objext
14084 if { (ac_try="$ac_compile"
14085 case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14088 esac
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_compile") 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14098 { (case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101 esac
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_try") 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest.$ac_objext'
14108 { (case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_try") 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_cv_type_pthread_rwlockattr_t=yes
14118 else
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_cv_type_pthread_rwlockattr_t=no
14125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14127 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
14128 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
14129 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
14131 cat >>confdefs.h <<_ACEOF
14132 #define HAVE_PTHREAD_RWLOCKATTR_T 1
14133 _ACEOF
14139 ac_wine_check_funcs_save_LIBS="$LIBS"
14140 LIBS="$LIBS $LIBPTHREAD"
14144 for ac_func in \
14145 pthread_getattr_np \
14146 pthread_get_stackaddr_np \
14147 pthread_get_stacksize_np
14149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14154 else
14155 cat >conftest.$ac_ext <<_ACEOF
14156 /* confdefs.h. */
14157 _ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14163 #define $ac_func innocuous_$ac_func
14165 /* System header to define __stub macros and hopefully few prototypes,
14166 which can conflict with char $ac_func (); below.
14167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14168 <limits.h> exists even on freestanding compilers. */
14170 #ifdef __STDC__
14171 # include <limits.h>
14172 #else
14173 # include <assert.h>
14174 #endif
14176 #undef $ac_func
14178 /* Override any GCC internal prototype to avoid an error.
14179 Use char because int might match the return type of a GCC
14180 builtin and then its argument prototype would still apply. */
14181 #ifdef __cplusplus
14182 extern "C"
14183 #endif
14184 char $ac_func ();
14185 /* The GNU C library defines this for functions which it implements
14186 to always fail with ENOSYS. Some functions are actually named
14187 something starting with __ and the normal name is an alias. */
14188 #if defined __stub_$ac_func || defined __stub___$ac_func
14189 choke me
14190 #endif
14193 main ()
14195 return $ac_func ();
14197 return 0;
14199 _ACEOF
14200 rm -f conftest.$ac_objext conftest$ac_exeext
14201 if { (ac_try="$ac_link"
14202 case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_link") 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14215 { (case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_try") 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; } &&
14224 { ac_try='test -s conftest$ac_exeext'
14225 { (case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_try") 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 eval "$as_ac_var=yes"
14235 else
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 eval "$as_ac_var=no"
14242 rm -f core conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext conftest.$ac_ext
14245 ac_res=`eval echo '${'$as_ac_var'}'`
14246 { echo "$as_me:$LINENO: result: $ac_res" >&5
14247 echo "${ECHO_T}$ac_res" >&6; }
14248 if test `eval echo '${'$as_ac_var'}'` = yes; then
14249 cat >>confdefs.h <<_ACEOF
14250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14251 _ACEOF
14254 done
14256 LIBS="$ac_wine_check_funcs_save_LIBS"
14258 # Extract the first word of "artsc-config", so it can be a program name with args.
14259 set dummy artsc-config; ac_word=$2
14260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14262 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265 case $ARTSCCONFIG in
14266 [\\/]* | ?:[\\/]*)
14267 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
14270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14271 for as_dir in $PATH
14273 IFS=$as_save_IFS
14274 test -z "$as_dir" && as_dir=.
14275 for ac_exec_ext in '' $ac_executable_extensions; do
14276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14277 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
14278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14279 break 2
14281 done
14282 done
14283 IFS=$as_save_IFS
14286 esac
14288 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
14289 if test -n "$ARTSCCONFIG"; then
14290 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
14291 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
14292 else
14293 { echo "$as_me:$LINENO: result: no" >&5
14294 echo "${ECHO_T}no" >&6; }
14298 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
14299 then
14300 ARTSC_CFLAGS=""
14301 for i in `$ARTSCCONFIG --cflags`
14303 case "$i" in
14304 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
14305 esac
14306 done
14307 ARTSC_LIBS=""
14308 for i in `$ARTSCCONFIG --libs`
14310 case "$i" in
14311 -L/usr/lib|-L/usr/lib64) ;;
14312 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
14313 esac
14314 done
14315 save_CFLAGS="$CFLAGS"
14316 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
14317 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
14318 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
14319 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 else
14322 ac_check_lib_save_LIBS=$LIBS
14323 LIBS="-lartsc $ARTSC_LIBS $LIBS"
14324 cat >conftest.$ac_ext <<_ACEOF
14325 /* confdefs.h. */
14326 _ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14331 /* Override any GCC internal prototype to avoid an error.
14332 Use char because int might match the return type of a GCC
14333 builtin and then its argument prototype would still apply. */
14334 #ifdef __cplusplus
14335 extern "C"
14336 #endif
14337 char arts_init ();
14339 main ()
14341 return arts_init ();
14343 return 0;
14345 _ACEOF
14346 rm -f conftest.$ac_objext conftest$ac_exeext
14347 if { (ac_try="$ac_link"
14348 case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14351 esac
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_link") 2>conftest.er1
14354 ac_status=$?
14355 grep -v '^ *+' conftest.er1 >conftest.err
14356 rm -f conftest.er1
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14361 { (case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14364 esac
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_try") 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest$ac_exeext'
14371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_try") 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 ac_cv_lib_artsc_arts_init=yes
14381 else
14382 echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14385 ac_cv_lib_artsc_arts_init=no
14388 rm -f core conftest.err conftest.$ac_objext \
14389 conftest$ac_exeext conftest.$ac_ext
14390 LIBS=$ac_check_lib_save_LIBS
14392 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
14393 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
14394 if test $ac_cv_lib_artsc_arts_init = yes; then
14395 cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h. */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 #include <artsc.h>
14403 main ()
14405 arts_stream_t stream;
14407 return 0;
14409 _ACEOF
14410 rm -f conftest.$ac_objext
14411 if { (ac_try="$ac_compile"
14412 case "(($ac_try" in
14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414 *) ac_try_echo=$ac_try;;
14415 esac
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_compile") 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14425 { (case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14428 esac
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_try") 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; } &&
14434 { ac_try='test -s conftest.$ac_objext'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 ARTSLIBS=$ARTSC_LIBS
14446 ARTSINCL=$ARTSC_CFLAGS
14449 cat >>confdefs.h <<\_ACEOF
14450 #define HAVE_ARTS 1
14451 _ACEOF
14453 else
14454 echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14463 CFLAGS="$save_CFLAGS"
14466 # Extract the first word of "esd-config", so it can be a program name with args.
14467 set dummy esd-config; ac_word=$2
14468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14470 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 else
14473 case $ESDCONFIG in
14474 [\\/]* | ?:[\\/]*)
14475 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
14478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14479 for as_dir in $PATH
14481 IFS=$as_save_IFS
14482 test -z "$as_dir" && as_dir=.
14483 for ac_exec_ext in '' $ac_executable_extensions; do
14484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14485 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
14486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14487 break 2
14489 done
14490 done
14491 IFS=$as_save_IFS
14494 esac
14496 ESDCONFIG=$ac_cv_path_ESDCONFIG
14497 if test -n "$ESDCONFIG"; then
14498 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
14499 echo "${ECHO_T}$ESDCONFIG" >&6; }
14500 else
14501 { echo "$as_me:$LINENO: result: no" >&5
14502 echo "${ECHO_T}no" >&6; }
14506 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
14507 then
14508 ESD_CFLAGS=""
14509 for i in `$ESDCONFIG --cflags`
14511 case "$i" in
14512 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
14513 esac
14514 done
14515 ESD_LIBS=`$ESDCONFIG --libs`
14516 save_CFLAGS="$CFLAGS"
14517 CFLAGS="$CFLAGS $ESD_CFLAGS"
14518 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
14519 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
14520 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523 ac_check_lib_save_LIBS=$LIBS
14524 LIBS="-lesd $LIBS"
14525 cat >conftest.$ac_ext <<_ACEOF
14526 /* confdefs.h. */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14532 /* Override any GCC internal prototype to avoid an error.
14533 Use char because int might match the return type of a GCC
14534 builtin and then its argument prototype would still apply. */
14535 #ifdef __cplusplus
14536 extern "C"
14537 #endif
14538 char esd_open_sound ();
14540 main ()
14542 return esd_open_sound ();
14544 return 0;
14546 _ACEOF
14547 rm -f conftest.$ac_objext conftest$ac_exeext
14548 if { (ac_try="$ac_link"
14549 case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14552 esac
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_link") 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14562 { (case "(($ac_try" in
14563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14564 *) ac_try_echo=$ac_try;;
14565 esac
14566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14567 (eval "$ac_try") 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; } &&
14571 { ac_try='test -s conftest$ac_exeext'
14572 { (case "(($ac_try" in
14573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14575 esac
14576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577 (eval "$ac_try") 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 ac_cv_lib_esd_esd_open_sound=yes
14582 else
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 ac_cv_lib_esd_esd_open_sound=no
14589 rm -f core conftest.err conftest.$ac_objext \
14590 conftest$ac_exeext conftest.$ac_ext
14591 LIBS=$ac_check_lib_save_LIBS
14593 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14594 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
14595 if test $ac_cv_lib_esd_esd_open_sound = yes; then
14596 ESDLIBS=$ESD_LIBS
14598 ESDINCL=$ESD_CFLAGS
14601 cat >>confdefs.h <<\_ACEOF
14602 #define HAVE_ESD 1
14603 _ACEOF
14607 CFLAGS="$save_CFLAGS"
14610 ALSALIBS=""
14612 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
14613 then
14614 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14615 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
14616 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619 ac_check_lib_save_LIBS=$LIBS
14620 LIBS="-lasound $LIBS"
14621 cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h. */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14628 /* Override any GCC internal prototype to avoid an error.
14629 Use char because int might match the return type of a GCC
14630 builtin and then its argument prototype would still apply. */
14631 #ifdef __cplusplus
14632 extern "C"
14633 #endif
14634 char snd_pcm_hw_params_get_access ();
14636 main ()
14638 return snd_pcm_hw_params_get_access ();
14640 return 0;
14642 _ACEOF
14643 rm -f conftest.$ac_objext conftest$ac_exeext
14644 if { (ac_try="$ac_link"
14645 case "(($ac_try" in
14646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647 *) ac_try_echo=$ac_try;;
14648 esac
14649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650 (eval "$ac_link") 2>conftest.er1
14651 ac_status=$?
14652 grep -v '^ *+' conftest.er1 >conftest.err
14653 rm -f conftest.er1
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14658 { (case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14661 esac
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_try") 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; } &&
14667 { ac_try='test -s conftest$ac_exeext'
14668 { (case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_try") 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
14678 else
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
14685 rm -f core conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext conftest.$ac_ext
14687 LIBS=$ac_check_lib_save_LIBS
14689 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14690 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
14691 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14692 cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h. */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #ifdef HAVE_ALSA_ASOUNDLIB_H
14699 #include <alsa/asoundlib.h>
14700 #elif defined(HAVE_SYS_ASOUNDLIB_H)
14701 #include <sys/asoundlib.h>
14702 #endif
14704 main ()
14706 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14708 return 0;
14710 _ACEOF
14711 rm -f conftest.$ac_objext
14712 if { (ac_try="$ac_compile"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14716 esac
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_compile") 2>conftest.er1
14719 ac_status=$?
14720 grep -v '^ *+' conftest.er1 >conftest.err
14721 rm -f conftest.er1
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14726 { (case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_try") 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14739 esac
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_try") 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14746 cat >>confdefs.h <<\_ACEOF
14747 #define HAVE_ALSA 1
14748 _ACEOF
14750 ALSALIBS="-lasound"
14751 else
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764 AUDIOIOLIBS=""
14766 if test "$ac_cv_header_libaudioio_h" = "yes"
14767 then
14768 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14769 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14770 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773 ac_check_lib_save_LIBS=$LIBS
14774 LIBS="-laudioio $LIBS"
14775 cat >conftest.$ac_ext <<_ACEOF
14776 /* confdefs.h. */
14777 _ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14782 /* Override any GCC internal prototype to avoid an error.
14783 Use char because int might match the return type of a GCC
14784 builtin and then its argument prototype would still apply. */
14785 #ifdef __cplusplus
14786 extern "C"
14787 #endif
14788 char AudioIOGetVersion ();
14790 main ()
14792 return AudioIOGetVersion ();
14794 return 0;
14796 _ACEOF
14797 rm -f conftest.$ac_objext conftest$ac_exeext
14798 if { (ac_try="$ac_link"
14799 case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14802 esac
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_link") 2>conftest.er1
14805 ac_status=$?
14806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } &&
14811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14812 { (case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_try") 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; } &&
14821 { ac_try='test -s conftest$ac_exeext'
14822 { (case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14825 esac
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_try") 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_cv_lib_audioio_AudioIOGetVersion=yes
14832 else
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 ac_cv_lib_audioio_AudioIOGetVersion=no
14839 rm -f core conftest.err conftest.$ac_objext \
14840 conftest$ac_exeext conftest.$ac_ext
14841 LIBS=$ac_check_lib_save_LIBS
14843 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14844 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14845 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14846 AUDIOIOLIBS="-laudioio"
14848 cat >>confdefs.h <<\_ACEOF
14849 #define HAVE_LIBAUDIOIO 1
14850 _ACEOF
14857 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14858 then
14859 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14860 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
14861 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 else
14864 ac_check_lib_save_LIBS=$LIBS
14865 LIBS="-lcapi20 $LIBS"
14866 cat >conftest.$ac_ext <<_ACEOF
14867 /* confdefs.h. */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14873 /* Override any GCC internal prototype to avoid an error.
14874 Use char because int might match the return type of a GCC
14875 builtin and then its argument prototype would still apply. */
14876 #ifdef __cplusplus
14877 extern "C"
14878 #endif
14879 char capi20_register ();
14881 main ()
14883 return capi20_register ();
14885 return 0;
14887 _ACEOF
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (ac_try="$ac_link"
14890 case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893 esac
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_link") 2>conftest.er1
14896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
14902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14903 { (case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14906 esac
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_try") 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest$ac_exeext'
14913 { (case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14916 esac
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918 (eval "$ac_try") 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_cv_lib_capi20_capi20_register=yes
14923 else
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_cv_lib_capi20_capi20_register=no
14930 rm -f core conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14932 LIBS=$ac_check_lib_save_LIBS
14934 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14935 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
14936 if test $ac_cv_lib_capi20_capi20_register = yes; then
14938 cat >>confdefs.h <<\_ACEOF
14939 #define HAVE_CAPI4LINUX 1
14940 _ACEOF
14947 EXTRACFLAGS=""
14949 if test "x${GCC}" = "xyes"
14950 then
14951 EXTRACFLAGS="-Wall -pipe"
14953 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14954 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14955 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 else
14958 if test "$cross_compiling" = yes; then
14959 ac_cv_c_gcc_strength_bug="yes"
14960 else
14961 cat >conftest.$ac_ext <<_ACEOF
14962 /* confdefs.h. */
14963 _ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14968 int L[4] = {0,1,2,3};
14969 int main(void) {
14970 static int Array[3];
14971 unsigned int B = 3;
14972 int i;
14973 for(i=0; i<B; i++) Array[i] = i - 3;
14974 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14975 L[i] = 4;
14977 exit( Array[1] != -2 || L[2] != 3);
14979 _ACEOF
14980 rm -f conftest$ac_exeext
14981 if { (ac_try="$ac_link"
14982 case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_link") 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14991 { (case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14994 esac
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_try") 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; }; then
15000 ac_cv_c_gcc_strength_bug="no"
15001 else
15002 echo "$as_me: program exited with status $ac_status" >&5
15003 echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 ( exit $ac_status )
15007 ac_cv_c_gcc_strength_bug="yes"
15009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15014 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
15015 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
15016 if test "$ac_cv_c_gcc_strength_bug" = "yes"
15017 then
15018 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
15021 { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
15022 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; }
15023 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026 ac_wine_try_cflags_saved=$CFLAGS
15027 CFLAGS="$CFLAGS -fshort-wchar"
15028 cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h. */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15036 main ()
15040 return 0;
15042 _ACEOF
15043 rm -f conftest.$ac_objext conftest$ac_exeext
15044 if { (ac_try="$ac_link"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048 esac
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_link") 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15058 { (case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15061 esac
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_try") 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; } &&
15067 { ac_try='test -s conftest$ac_exeext'
15068 { (case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15071 esac
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_try") 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
15077 ac_cv_c_gcc_fshort_wchar="yes"
15078 else
15079 echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15082 ac_cv_c_gcc_fshort_wchar="no"
15085 rm -f core conftest.err conftest.$ac_objext \
15086 conftest$ac_exeext conftest.$ac_ext
15087 CFLAGS=$ac_wine_try_cflags_saved
15089 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
15090 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; }
15091 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
15092 then
15094 cat >>confdefs.h <<\_ACEOF
15095 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
15096 _ACEOF
15100 { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
15101 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; }
15102 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105 ac_wine_try_cflags_saved=$CFLAGS
15106 CFLAGS="$CFLAGS -fno-strict-aliasing"
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h. */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15115 main ()
15119 return 0;
15121 _ACEOF
15122 rm -f conftest.$ac_objext conftest$ac_exeext
15123 if { (ac_try="$ac_link"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127 esac
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_link") 2>conftest.er1
15130 ac_status=$?
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
15136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15137 { (case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15140 esac
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_try") 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } &&
15146 { ac_try='test -s conftest$ac_exeext'
15147 { (case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150 esac
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_try") 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156 ac_cv_c_gcc_no_strict_aliasing="yes"
15157 else
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 ac_cv_c_gcc_no_strict_aliasing="no"
15164 rm -f core conftest.err conftest.$ac_objext \
15165 conftest$ac_exeext conftest.$ac_ext
15166 CFLAGS=$ac_wine_try_cflags_saved
15168 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
15169 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; }
15170 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
15171 then
15172 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
15175 { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
15176 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; }
15177 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
15178 echo $ECHO_N "(cached) $ECHO_C" >&6
15179 else
15180 ac_wine_try_cflags_saved=$CFLAGS
15181 CFLAGS="$CFLAGS -gstabs+"
15182 cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h. */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15190 main ()
15194 return 0;
15196 _ACEOF
15197 rm -f conftest.$ac_objext conftest$ac_exeext
15198 if { (ac_try="$ac_link"
15199 case "(($ac_try" in
15200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201 *) ac_try_echo=$ac_try;;
15202 esac
15203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15204 (eval "$ac_link") 2>conftest.er1
15205 ac_status=$?
15206 grep -v '^ *+' conftest.er1 >conftest.err
15207 rm -f conftest.er1
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } &&
15211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15212 { (case "(($ac_try" in
15213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214 *) ac_try_echo=$ac_try;;
15215 esac
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217 (eval "$ac_try") 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; } &&
15221 { ac_try='test -s conftest$ac_exeext'
15222 { (case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_try") 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; }; then
15231 ac_cv_c_gcc_gstabs="yes"
15232 else
15233 echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15236 ac_cv_c_gcc_gstabs="no"
15239 rm -f core conftest.err conftest.$ac_objext \
15240 conftest$ac_exeext conftest.$ac_ext
15241 CFLAGS=$ac_wine_try_cflags_saved
15243 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
15244 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; }
15245 if test "$ac_cv_c_gcc_gstabs" = "yes"
15246 then
15247 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
15250 { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
15251 echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15252 if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 else
15255 ac_wine_try_cflags_saved=$CFLAGS
15256 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15257 cat >conftest.$ac_ext <<_ACEOF
15258 /* confdefs.h. */
15259 _ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h. */
15265 main ()
15269 return 0;
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_link") 2>conftest.er1
15280 ac_status=$?
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } &&
15286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15287 { (case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15290 esac
15291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_try") 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; } &&
15296 { ac_try='test -s conftest$ac_exeext'
15297 { (case "(($ac_try" in
15298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15300 esac
15301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302 (eval "$ac_try") 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15306 ac_cv_c_gcc_decl_after_statement="yes"
15307 else
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 ac_cv_c_gcc_decl_after_statement="no"
15314 rm -f core conftest.err conftest.$ac_objext \
15315 conftest$ac_exeext conftest.$ac_ext
15316 CFLAGS=$ac_wine_try_cflags_saved
15318 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
15319 echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; }
15320 if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
15321 then
15322 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
15325 saved_CFLAGS="$CFLAGS"
15326 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
15327 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15328 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
15329 if test "${ac_cv_c_string_h_warnings+set}" = set; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 else
15332 cat >conftest.$ac_ext <<_ACEOF
15333 /* confdefs.h. */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 #include <string.h>
15340 main ()
15344 return 0;
15346 _ACEOF
15347 rm -f conftest.$ac_objext
15348 if { (ac_try="$ac_compile"
15349 case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15352 esac
15353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_compile") 2>conftest.er1
15355 ac_status=$?
15356 grep -v '^ *+' conftest.er1 >conftest.err
15357 rm -f conftest.er1
15358 cat conftest.err >&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } &&
15361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15362 { (case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15365 esac
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_try") 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; } &&
15371 { ac_try='test -s conftest.$ac_objext'
15372 { (case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375 esac
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_try") 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15381 ac_cv_c_string_h_warnings=no
15382 else
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15386 ac_cv_c_string_h_warnings=yes
15389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15391 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15392 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
15393 CFLAGS="$saved_CFLAGS"
15394 if test "$ac_cv_c_string_h_warnings" = "no"
15395 then
15396 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
15399 BUILTINFLAG=""
15401 saved_CFLAGS="$CFLAGS"
15402 CFLAGS="$CFLAGS -Werror"
15403 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15404 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
15405 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408 cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h. */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15416 main ()
15418 int iswlower(unsigned short);
15420 return 0;
15422 _ACEOF
15423 rm -f conftest.$ac_objext
15424 if { (ac_try="$ac_compile"
15425 case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15428 esac
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_compile") 2>conftest.er1
15431 ac_status=$?
15432 grep -v '^ *+' conftest.er1 >conftest.err
15433 rm -f conftest.er1
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15438 { (case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_try") 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; } &&
15447 { ac_try='test -s conftest.$ac_objext'
15448 { (case "(($ac_try" in
15449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15450 *) ac_try_echo=$ac_try;;
15451 esac
15452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15453 (eval "$ac_try") 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }; then
15457 ac_cv_c_builtin_wchar_ctype=no
15458 else
15459 echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15462 ac_cv_c_builtin_wchar_ctype=yes
15465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15467 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15468 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
15469 CFLAGS="$saved_CFLAGS"
15470 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15471 then
15472 BUILTINFLAG=""
15473 for builtin in \
15474 iswalnum iswalpha iswcntrl iswdigit iswgraph iswlower \
15475 iswprint iswpunct iswspace iswupper iswxdigit towlower towupper
15477 BUILTINFLAG="$BUILTINFLAG -fno-builtin-$builtin"
15478 done
15483 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15484 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
15485 if test "${ac_cv_asm_func_def+set}" = set; then
15486 echo $ECHO_N "(cached) $ECHO_C" >&6
15487 else
15488 cat >conftest.$ac_ext <<_ACEOF
15489 /* confdefs.h. */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
15497 main ()
15501 return 0;
15503 _ACEOF
15504 rm -f conftest.$ac_objext conftest$ac_exeext
15505 if { (ac_try="$ac_link"
15506 case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15509 esac
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_link") 2>conftest.er1
15512 ac_status=$?
15513 grep -v '^ *+' conftest.er1 >conftest.err
15514 rm -f conftest.er1
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } &&
15518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15519 { (case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15522 esac
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_try") 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; } &&
15528 { ac_try='test -s conftest$ac_exeext'
15529 { (case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15532 esac
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_try") 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_asm_func_def=".def"
15539 else
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 cat >conftest.$ac_ext <<_ACEOF
15544 /* confdefs.h. */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15549 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
15552 main ()
15556 return 0;
15558 _ACEOF
15559 rm -f conftest.$ac_objext conftest$ac_exeext
15560 if { (ac_try="$ac_link"
15561 case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15564 esac
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_link") 2>conftest.er1
15567 ac_status=$?
15568 grep -v '^ *+' conftest.er1 >conftest.err
15569 rm -f conftest.er1
15570 cat conftest.err >&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } &&
15573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15574 { (case "(($ac_try" in
15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576 *) ac_try_echo=$ac_try;;
15577 esac
15578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579 (eval "$ac_try") 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; } &&
15583 { ac_try='test -s conftest$ac_exeext'
15584 { (case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_try") 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; }; then
15593 ac_cv_asm_func_def=".type @function"
15594 else
15595 echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15598 cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h. */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
15607 main ()
15611 return 0;
15613 _ACEOF
15614 rm -f conftest.$ac_objext conftest$ac_exeext
15615 if { (ac_try="$ac_link"
15616 case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15619 esac
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_link") 2>conftest.er1
15622 ac_status=$?
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15629 { (case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15632 esac
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_try") 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; } &&
15638 { ac_try='test -s conftest$ac_exeext'
15639 { (case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15642 esac
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 (eval "$ac_try") 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 ac_cv_asm_func_def=".type 2"
15649 else
15650 echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15653 ac_cv_asm_func_def="unknown"
15656 rm -f core conftest.err conftest.$ac_objext \
15657 conftest$ac_exeext conftest.$ac_ext
15660 rm -f core conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15664 rm -f core conftest.err conftest.$ac_objext \
15665 conftest$ac_exeext conftest.$ac_ext
15667 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15668 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
15672 case "$ac_cv_asm_func_def" in
15673 ".def")
15674 cat >>confdefs.h <<\_ACEOF
15675 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15676 _ACEOF
15678 ".type @function")
15679 cat >>confdefs.h <<\_ACEOF
15680 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15681 _ACEOF
15683 ".type 2")
15684 cat >>confdefs.h <<\_ACEOF
15685 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15686 _ACEOF
15689 cat >>confdefs.h <<\_ACEOF
15690 #define __ASM_FUNC(name) ""
15691 _ACEOF
15693 esac
15696 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15697 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15698 if test "${ac_cv_c_extern_prefix+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701 cat >conftest.$ac_ext <<_ACEOF
15702 /* confdefs.h. */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15707 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
15708 extern int ac_test;
15710 main ()
15712 if (ac_test) return 1
15714 return 0;
15716 _ACEOF
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (ac_try="$ac_link"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722 esac
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_link") 2>conftest.er1
15725 ac_status=$?
15726 grep -v '^ *+' conftest.er1 >conftest.err
15727 rm -f conftest.er1
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15732 { (case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_try") 2>&5
15738 ac_status=$?
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; } &&
15741 { ac_try='test -s conftest$ac_exeext'
15742 { (case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15745 esac
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_try") 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 ac_cv_c_extern_prefix="yes"
15752 else
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15756 ac_cv_c_extern_prefix="no"
15759 rm -f core conftest.err conftest.$ac_objext \
15760 conftest$ac_exeext conftest.$ac_ext
15762 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15763 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
15767 if test "$ac_cv_c_extern_prefix" = "yes"
15768 then
15769 cat >>confdefs.h <<\_ACEOF
15770 #define __ASM_NAME(name) "_" name
15771 _ACEOF
15773 else
15774 cat >>confdefs.h <<\_ACEOF
15775 #define __ASM_NAME(name) name
15776 _ACEOF
15781 DLLEXT=""
15783 DLLFLAGS="-D_REENTRANT"
15785 DLLIBS=""
15787 LDSHARED=""
15789 LDDLLFLAGS=""
15791 LIBEXT="so"
15793 IMPLIBEXT="def"
15796 case $host_os in
15797 cygwin*|mingw32*)
15798 if test -n "$ac_tool_prefix"; then
15799 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15800 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15803 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 else
15806 if test -n "$DLLTOOL"; then
15807 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15808 else
15809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15810 for as_dir in $PATH
15812 IFS=$as_save_IFS
15813 test -z "$as_dir" && as_dir=.
15814 for ac_exec_ext in '' $ac_executable_extensions; do
15815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15816 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15818 break 2
15820 done
15821 done
15822 IFS=$as_save_IFS
15826 DLLTOOL=$ac_cv_prog_DLLTOOL
15827 if test -n "$DLLTOOL"; then
15828 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15829 echo "${ECHO_T}$DLLTOOL" >&6; }
15830 else
15831 { echo "$as_me:$LINENO: result: no" >&5
15832 echo "${ECHO_T}no" >&6; }
15837 if test -z "$ac_cv_prog_DLLTOOL"; then
15838 ac_ct_DLLTOOL=$DLLTOOL
15839 # Extract the first word of "dlltool", so it can be a program name with args.
15840 set dummy dlltool; ac_word=$2
15841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15843 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 else
15846 if test -n "$ac_ct_DLLTOOL"; then
15847 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15848 else
15849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15850 for as_dir in $PATH
15852 IFS=$as_save_IFS
15853 test -z "$as_dir" && as_dir=.
15854 for ac_exec_ext in '' $ac_executable_extensions; do
15855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15856 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15858 break 2
15860 done
15861 done
15862 IFS=$as_save_IFS
15866 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15867 if test -n "$ac_ct_DLLTOOL"; then
15868 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15869 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
15870 else
15871 { echo "$as_me:$LINENO: result: no" >&5
15872 echo "${ECHO_T}no" >&6; }
15875 if test "x$ac_ct_DLLTOOL" = x; then
15876 DLLTOOL="false"
15877 else
15878 case $cross_compiling:$ac_tool_warned in
15879 yes:)
15880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15881 whose name does not start with the host triplet. If you think this
15882 configuration is useful to you, please write to autoconf@gnu.org." >&5
15883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15884 whose name does not start with the host triplet. If you think this
15885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15886 ac_tool_warned=yes ;;
15887 esac
15888 DLLTOOL=$ac_ct_DLLTOOL
15890 else
15891 DLLTOOL="$ac_cv_prog_DLLTOOL"
15894 if test -n "$ac_tool_prefix"; then
15895 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15896 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
15897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15899 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 else
15902 if test -n "$DLLWRAP"; then
15903 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15904 else
15905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15906 for as_dir in $PATH
15908 IFS=$as_save_IFS
15909 test -z "$as_dir" && as_dir=.
15910 for ac_exec_ext in '' $ac_executable_extensions; do
15911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15912 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
15913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15914 break 2
15916 done
15917 done
15918 IFS=$as_save_IFS
15922 DLLWRAP=$ac_cv_prog_DLLWRAP
15923 if test -n "$DLLWRAP"; then
15924 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15925 echo "${ECHO_T}$DLLWRAP" >&6; }
15926 else
15927 { echo "$as_me:$LINENO: result: no" >&5
15928 echo "${ECHO_T}no" >&6; }
15933 if test -z "$ac_cv_prog_DLLWRAP"; then
15934 ac_ct_DLLWRAP=$DLLWRAP
15935 # Extract the first word of "dllwrap", so it can be a program name with args.
15936 set dummy dllwrap; ac_word=$2
15937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15939 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15941 else
15942 if test -n "$ac_ct_DLLWRAP"; then
15943 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15944 else
15945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15946 for as_dir in $PATH
15948 IFS=$as_save_IFS
15949 test -z "$as_dir" && as_dir=.
15950 for ac_exec_ext in '' $ac_executable_extensions; do
15951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15952 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15954 break 2
15956 done
15957 done
15958 IFS=$as_save_IFS
15962 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15963 if test -n "$ac_ct_DLLWRAP"; then
15964 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15965 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
15966 else
15967 { echo "$as_me:$LINENO: result: no" >&5
15968 echo "${ECHO_T}no" >&6; }
15971 if test "x$ac_ct_DLLWRAP" = x; then
15972 DLLWRAP="false"
15973 else
15974 case $cross_compiling:$ac_tool_warned in
15975 yes:)
15976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15977 whose name does not start with the host triplet. If you think this
15978 configuration is useful to you, please write to autoconf@gnu.org." >&5
15979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15980 whose name does not start with the host triplet. If you think this
15981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15982 ac_tool_warned=yes ;;
15983 esac
15984 DLLWRAP=$ac_ct_DLLWRAP
15986 else
15987 DLLWRAP="$ac_cv_prog_DLLWRAP"
15990 if test "$DLLWRAP" = "false"; then
15991 LIBEXT="a"
15992 else
15993 LIBEXT="dll"
15995 IMPLIBEXT="a"
15996 WIN16_FILES=""
15997 WIN16_INSTALL=""
16000 if test "$ac_cv_header_dlfcn_h" = "yes"
16001 then
16003 for ac_func in dlopen
16005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010 else
16011 cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h. */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16019 #define $ac_func innocuous_$ac_func
16021 /* System header to define __stub macros and hopefully few prototypes,
16022 which can conflict with char $ac_func (); below.
16023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16024 <limits.h> exists even on freestanding compilers. */
16026 #ifdef __STDC__
16027 # include <limits.h>
16028 #else
16029 # include <assert.h>
16030 #endif
16032 #undef $ac_func
16034 /* Override any GCC internal prototype to avoid an error.
16035 Use char because int might match the return type of a GCC
16036 builtin and then its argument prototype would still apply. */
16037 #ifdef __cplusplus
16038 extern "C"
16039 #endif
16040 char $ac_func ();
16041 /* The GNU C library defines this for functions which it implements
16042 to always fail with ENOSYS. Some functions are actually named
16043 something starting with __ and the normal name is an alias. */
16044 #if defined __stub_$ac_func || defined __stub___$ac_func
16045 choke me
16046 #endif
16049 main ()
16051 return $ac_func ();
16053 return 0;
16055 _ACEOF
16056 rm -f conftest.$ac_objext conftest$ac_exeext
16057 if { (ac_try="$ac_link"
16058 case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16061 esac
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_link") 2>conftest.er1
16064 ac_status=$?
16065 grep -v '^ *+' conftest.er1 >conftest.err
16066 rm -f conftest.er1
16067 cat conftest.err >&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
16070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16071 { (case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16074 esac
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_try") 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; } &&
16080 { ac_try='test -s conftest$ac_exeext'
16081 { (case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_try") 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 eval "$as_ac_var=yes"
16091 else
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16095 eval "$as_ac_var=no"
16098 rm -f core conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
16101 ac_res=`eval echo '${'$as_ac_var'}'`
16102 { echo "$as_me:$LINENO: result: $ac_res" >&5
16103 echo "${ECHO_T}$ac_res" >&6; }
16104 if test `eval echo '${'$as_ac_var'}'` = yes; then
16105 cat >>confdefs.h <<_ACEOF
16106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16107 _ACEOF
16109 else
16110 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16111 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16112 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 else
16115 ac_check_lib_save_LIBS=$LIBS
16116 LIBS="-ldl $LIBS"
16117 cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h. */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16124 /* Override any GCC internal prototype to avoid an error.
16125 Use char because int might match the return type of a GCC
16126 builtin and then its argument prototype would still apply. */
16127 #ifdef __cplusplus
16128 extern "C"
16129 #endif
16130 char dlopen ();
16132 main ()
16134 return dlopen ();
16136 return 0;
16138 _ACEOF
16139 rm -f conftest.$ac_objext conftest$ac_exeext
16140 if { (ac_try="$ac_link"
16141 case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16144 esac
16145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16146 (eval "$ac_link") 2>conftest.er1
16147 ac_status=$?
16148 grep -v '^ *+' conftest.er1 >conftest.err
16149 rm -f conftest.er1
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } &&
16153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16154 { (case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16157 esac
16158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159 (eval "$ac_try") 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; } &&
16163 { ac_try='test -s conftest$ac_exeext'
16164 { (case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16167 esac
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_try") 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
16173 ac_cv_lib_dl_dlopen=yes
16174 else
16175 echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16178 ac_cv_lib_dl_dlopen=no
16181 rm -f core conftest.err conftest.$ac_objext \
16182 conftest$ac_exeext conftest.$ac_ext
16183 LIBS=$ac_check_lib_save_LIBS
16185 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16186 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16187 if test $ac_cv_lib_dl_dlopen = yes; then
16189 cat >>confdefs.h <<\_ACEOF
16190 #define HAVE_DLOPEN 1
16191 _ACEOF
16193 DLLIBS="-ldl"
16194 else
16195 LIBEXT="a"
16199 done
16201 ac_wine_check_funcs_save_LIBS="$LIBS"
16202 LIBS="$LIBS $DLLIBS"
16204 for ac_func in dladdr
16206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212 cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h. */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16220 #define $ac_func innocuous_$ac_func
16222 /* System header to define __stub macros and hopefully few prototypes,
16223 which can conflict with char $ac_func (); below.
16224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16225 <limits.h> exists even on freestanding compilers. */
16227 #ifdef __STDC__
16228 # include <limits.h>
16229 #else
16230 # include <assert.h>
16231 #endif
16233 #undef $ac_func
16235 /* Override any GCC internal prototype to avoid an error.
16236 Use char because int might match the return type of a GCC
16237 builtin and then its argument prototype would still apply. */
16238 #ifdef __cplusplus
16239 extern "C"
16240 #endif
16241 char $ac_func ();
16242 /* The GNU C library defines this for functions which it implements
16243 to always fail with ENOSYS. Some functions are actually named
16244 something starting with __ and the normal name is an alias. */
16245 #if defined __stub_$ac_func || defined __stub___$ac_func
16246 choke me
16247 #endif
16250 main ()
16252 return $ac_func ();
16254 return 0;
16256 _ACEOF
16257 rm -f conftest.$ac_objext conftest$ac_exeext
16258 if { (ac_try="$ac_link"
16259 case "(($ac_try" in
16260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261 *) ac_try_echo=$ac_try;;
16262 esac
16263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16264 (eval "$ac_link") 2>conftest.er1
16265 ac_status=$?
16266 grep -v '^ *+' conftest.er1 >conftest.err
16267 rm -f conftest.er1
16268 cat conftest.err >&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16272 { (case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16275 esac
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_try") 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; } &&
16281 { ac_try='test -s conftest$ac_exeext'
16282 { (case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16285 esac
16286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287 (eval "$ac_try") 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 eval "$as_ac_var=yes"
16292 else
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 eval "$as_ac_var=no"
16299 rm -f core conftest.err conftest.$ac_objext \
16300 conftest$ac_exeext conftest.$ac_ext
16302 ac_res=`eval echo '${'$as_ac_var'}'`
16303 { echo "$as_me:$LINENO: result: $ac_res" >&5
16304 echo "${ECHO_T}$ac_res" >&6; }
16305 if test `eval echo '${'$as_ac_var'}'` = yes; then
16306 cat >>confdefs.h <<_ACEOF
16307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16308 _ACEOF
16311 done
16313 LIBS="$ac_wine_check_funcs_save_LIBS"
16314 else
16315 LIBEXT="a"
16318 if test "$LIBEXT" = "so"
16319 then
16320 DLLFLAGS="$DLLFLAGS -fPIC"
16321 DLLEXT=".so"
16322 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
16323 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
16324 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327 ac_wine_try_cflags_saved=$CFLAGS
16328 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
16329 cat >conftest.$ac_ext <<_ACEOF
16330 void myfunc() {}
16331 _ACEOF
16332 rm -f conftest.$ac_objext conftest$ac_exeext
16333 if { (ac_try="$ac_link"
16334 case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16337 esac
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339 (eval "$ac_link") 2>conftest.er1
16340 ac_status=$?
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16347 { (case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16350 esac
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_try") 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest$ac_exeext'
16357 { (case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_try") 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_cv_c_dll_gnuelf="yes"
16367 else
16368 echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16371 ac_cv_c_dll_gnuelf="no"
16374 rm -f core conftest.err conftest.$ac_objext \
16375 conftest$ac_exeext conftest.$ac_ext
16376 CFLAGS=$ac_wine_try_cflags_saved
16378 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
16379 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
16380 if test "$ac_cv_c_dll_gnuelf" = "yes"
16381 then
16382 LDSHARED="\$(CC) -shared"
16383 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
16384 { echo "$as_me:$LINENO: checking whether the linker accepts soname" >&5
16385 echo $ECHO_N "checking whether the linker accepts soname... $ECHO_C" >&6; }
16386 if test "${ac_cv_c_sonames+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 else
16389 ac_wine_try_cflags_saved=$CFLAGS
16390 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
16391 cat >conftest.$ac_ext <<_ACEOF
16392 /* confdefs.h. */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16399 main ()
16403 return 0;
16405 _ACEOF
16406 rm -f conftest.$ac_objext conftest$ac_exeext
16407 if { (ac_try="$ac_link"
16408 case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16411 esac
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_link") 2>conftest.er1
16414 ac_status=$?
16415 grep -v '^ *+' conftest.er1 >conftest.err
16416 rm -f conftest.er1
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } &&
16420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16421 { (case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16424 esac
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_try") 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } &&
16430 { ac_try='test -s conftest$ac_exeext'
16431 { (case "(($ac_try" in
16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433 *) ac_try_echo=$ac_try;;
16434 esac
16435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436 (eval "$ac_try") 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 ac_cv_c_sonames="yes"
16441 else
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16445 ac_cv_c_sonames="no"
16448 rm -f core conftest.err conftest.$ac_objext \
16449 conftest$ac_exeext conftest.$ac_ext
16450 CFLAGS=$ac_wine_try_cflags_saved
16452 { echo "$as_me:$LINENO: result: $ac_cv_c_sonames" >&5
16453 echo "${ECHO_T}$ac_cv_c_sonames" >&6; }
16454 if test "$ac_cv_c_sonames" = "yes"
16455 then
16456 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
16457 else
16458 { echo "$as_me:$LINENO: checking check to see if -h soname is an alternate" >&5
16459 echo $ECHO_N "checking check to see if -h soname is an alternate... $ECHO_C" >&6; }
16460 if test "${ac_cv_c_h_sonames+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 else
16463 ac_wine_try_cflags_saved=$CFLAGS
16464 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
16465 cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h. */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16473 main ()
16477 return 0;
16479 _ACEOF
16480 rm -f conftest.$ac_objext conftest$ac_exeext
16481 if { (ac_try="$ac_link"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16485 esac
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_link") 2>conftest.er1
16488 ac_status=$?
16489 grep -v '^ *+' conftest.er1 >conftest.err
16490 rm -f conftest.er1
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
16494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16495 { (case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16498 esac
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_try") 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; } &&
16504 { ac_try='test -s conftest$ac_exeext'
16505 { (case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16508 esac
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_try") 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514 ac_cv_c_h_sonames="yes"
16515 else
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 ac_cv_c_h_sonames="no"
16522 rm -f core conftest.err conftest.$ac_objext \
16523 conftest$ac_exeext conftest.$ac_ext
16524 CFLAGS=$ac_wine_try_cflags_saved
16526 { echo "$as_me:$LINENO: result: $ac_cv_c_h_sonames" >&5
16527 echo "${ECHO_T}$ac_cv_c_h_sonames" >&6; }
16528 if test "$ac_cv_c_h_sonames" = "yes"
16529 then
16530 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
16534 { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
16535 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; }
16536 if test "${ac_cv_c_dll_zdefs+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16538 else
16539 ac_wine_try_cflags_saved=$CFLAGS
16540 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
16541 cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h. */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16549 main ()
16553 return 0;
16555 _ACEOF
16556 rm -f conftest.$ac_objext conftest$ac_exeext
16557 if { (ac_try="$ac_link"
16558 case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16561 esac
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_link") 2>conftest.er1
16564 ac_status=$?
16565 grep -v '^ *+' conftest.er1 >conftest.err
16566 rm -f conftest.er1
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } &&
16570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16571 { (case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_try") 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest$ac_exeext'
16581 { (case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16584 esac
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_try") 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_cv_c_dll_zdefs="yes"
16591 else
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ac_cv_c_dll_zdefs="no"
16598 rm -f core conftest.err conftest.$ac_objext \
16599 conftest$ac_exeext conftest.$ac_ext
16600 CFLAGS=$ac_wine_try_cflags_saved
16602 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
16603 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; }
16604 if test "$ac_cv_c_dll_zdefs" = "yes"
16605 then
16606 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
16609 { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
16610 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; }
16611 if test "${ac_cv_c_dll_init_fini+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614 ac_wine_try_cflags_saved=$CFLAGS
16615 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
16616 cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h. */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16624 main ()
16628 return 0;
16630 _ACEOF
16631 rm -f conftest.$ac_objext conftest$ac_exeext
16632 if { (ac_try="$ac_link"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_link") 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest$ac_exeext'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16659 esac
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_cv_c_dll_init_fini="yes"
16666 else
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_cv_c_dll_init_fini="no"
16673 rm -f core conftest.err conftest.$ac_objext \
16674 conftest$ac_exeext conftest.$ac_ext
16675 CFLAGS=$ac_wine_try_cflags_saved
16677 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
16678 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; }
16679 if test "$ac_cv_c_dll_init_fini" = "yes"
16680 then
16681 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
16684 { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
16685 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; }
16686 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 else
16689 echo '{ global: *; };' >conftest.map
16690 ac_wine_try_cflags_saved=$CFLAGS
16691 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
16692 cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h. */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16700 main ()
16704 return 0;
16706 _ACEOF
16707 rm -f conftest.$ac_objext conftest$ac_exeext
16708 if { (ac_try="$ac_link"
16709 case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16712 esac
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_link") 2>conftest.er1
16715 ac_status=$?
16716 grep -v '^ *+' conftest.er1 >conftest.err
16717 rm -f conftest.er1
16718 cat conftest.err >&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16722 { (case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16725 esac
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_try") 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest$ac_exeext'
16732 { (case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16735 esac
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_try") 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 ac_cv_c_ld_version_scripts="yes"
16742 else
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16746 ac_cv_c_ld_version_scripts="no"
16749 rm -f core conftest.err conftest.$ac_objext \
16750 conftest$ac_exeext conftest.$ac_ext
16751 CFLAGS=$ac_wine_try_cflags_saved
16752 rm -f conftest.map
16754 { echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
16755 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; }
16756 if test "$ac_cv_c_ld_version_scripts" = "yes"
16757 then
16758 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
16761 { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
16762 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; }
16763 if test "${ac_cv_c_export_dynamic+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16765 else
16766 ac_wine_try_cflags_saved=$CFLAGS
16767 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
16768 cat >conftest.$ac_ext <<_ACEOF
16769 /* confdefs.h. */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16776 main ()
16780 return 0;
16782 _ACEOF
16783 rm -f conftest.$ac_objext conftest$ac_exeext
16784 if { (ac_try="$ac_link"
16785 case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16788 esac
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_link") 2>conftest.er1
16791 ac_status=$?
16792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } &&
16797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16798 { (case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16801 esac
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_try") 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; } &&
16807 { ac_try='test -s conftest$ac_exeext'
16808 { (case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16811 esac
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_try") 2>&5
16814 ac_status=$?
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; }; then
16817 ac_cv_c_export_dynamic="yes"
16818 else
16819 echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16822 ac_cv_c_export_dynamic="no"
16825 rm -f core conftest.err conftest.$ac_objext \
16826 conftest$ac_exeext conftest.$ac_ext
16827 CFLAGS=$ac_wine_try_cflags_saved
16829 { echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
16830 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; }
16831 if test "$ac_cv_c_export_dynamic" = "yes"
16832 then
16833 LDEXECFLAGS="-Wl,--export-dynamic"
16837 { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
16838 echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; }
16839 if test "${ac_cv_ld_rpath+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16841 else
16842 ac_wine_try_cflags_saved=$CFLAGS
16843 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h. */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16852 main ()
16856 return 0;
16858 _ACEOF
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (ac_try="$ac_link"
16861 case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864 esac
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_link") 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874 { (case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16877 esac
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_try") 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest$ac_exeext'
16884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16887 esac
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_try") 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_cv_ld_rpath="yes"
16894 else
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 ac_cv_ld_rpath="no"
16901 rm -f core conftest.err conftest.$ac_objext \
16902 conftest$ac_exeext conftest.$ac_ext
16903 CFLAGS=$ac_wine_try_cflags_saved
16905 { echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
16906 echo "${ECHO_T}$ac_cv_ld_rpath" >&6; }
16907 if test "$ac_cv_ld_rpath" = "yes"
16908 then
16909 LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
16911 LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
16915 case $host_cpu in
16916 *i[3456789]86* | x86_64)
16917 { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
16918 echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; }
16919 if test "${ac_cv_ld_reloc_exec+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922 ac_wine_try_cflags_saved=$CFLAGS
16923 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
16924 cat >conftest.$ac_ext <<_ACEOF
16925 /* confdefs.h. */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16932 main ()
16936 return 0;
16938 _ACEOF
16939 rm -f conftest.$ac_objext conftest$ac_exeext
16940 if { (ac_try="$ac_link"
16941 case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16944 esac
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_link") 2>conftest.er1
16947 ac_status=$?
16948 grep -v '^ *+' conftest.er1 >conftest.err
16949 rm -f conftest.er1
16950 cat conftest.err >&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16954 { (case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_try") 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; } &&
16963 { ac_try='test -s conftest$ac_exeext'
16964 { (case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16967 esac
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_try") 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
16973 ac_cv_ld_reloc_exec="yes"
16974 else
16975 echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16978 ac_cv_ld_reloc_exec="no"
16981 rm -f core conftest.err conftest.$ac_objext \
16982 conftest$ac_exeext conftest.$ac_ext
16983 CFLAGS=$ac_wine_try_cflags_saved
16985 { echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
16986 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; }
16987 if test "$ac_cv_ld_reloc_exec" = "yes"
16988 then
16989 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
16992 esac
16994 else
16995 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
16996 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
16997 if test "${ac_cv_c_dll_unixware+set}" = set; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
16999 else
17000 ac_wine_try_cflags_saved=$CFLAGS
17001 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
17002 cat >conftest.$ac_ext <<_ACEOF
17003 void myfunc() {}
17004 _ACEOF
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (ac_try="$ac_link"
17007 case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17010 esac
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012 (eval "$ac_link") 2>conftest.er1
17013 ac_status=$?
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17020 { (case "(($ac_try" in
17021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17023 esac
17024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_try") 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest$ac_exeext'
17030 { (case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_try") 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 ac_cv_c_dll_unixware="yes"
17040 else
17041 echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17044 ac_cv_c_dll_unixware="no"
17047 rm -f core conftest.err conftest.$ac_objext \
17048 conftest$ac_exeext conftest.$ac_ext
17049 CFLAGS=$ac_wine_try_cflags_saved
17051 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
17052 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
17053 if test "$ac_cv_c_dll_unixware" = "yes"
17054 then
17055 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
17056 LDDLLFLAGS="-Wl,-G,-B,symbolic"
17058 else
17059 { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
17060 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; }
17061 if test "${ac_cv_c_dll_macho+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064 ac_wine_try_cflags_saved=$CFLAGS
17065 CFLAGS="$CFLAGS -bundle"
17066 cat >conftest.$ac_ext <<_ACEOF
17067 void myfunc() {}
17068 _ACEOF
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (ac_try="$ac_link"
17071 case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17074 esac
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_link") 2>conftest.er1
17077 ac_status=$?
17078 grep -v '^ *+' conftest.er1 >conftest.err
17079 rm -f conftest.er1
17080 cat conftest.err >&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } &&
17083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17084 { (case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_try") 2>&5
17090 ac_status=$?
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; } &&
17093 { ac_try='test -s conftest$ac_exeext'
17094 { (case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_try") 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 ac_cv_c_dll_macho="yes"
17104 else
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17108 ac_cv_c_dll_macho="no"
17111 rm -f core conftest.err conftest.$ac_objext \
17112 conftest$ac_exeext conftest.$ac_ext
17113 CFLAGS=$ac_wine_try_cflags_saved
17115 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
17116 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; }
17117 if test "$ac_cv_c_dll_macho" = "yes"
17118 then
17119 LIBEXT="dylib"
17120 LDDLLFLAGS="-bundle"
17121 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)"
17122 STRIP="$STRIP -u -r"
17123 COREFOUNDATIONLIB="-framework CoreFoundation"
17125 IOKITLIB="-framework IOKit -framework CoreFoundation"
17127 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7ffe0000"
17129 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
17130 then
17131 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
17134 case $host_cpu in
17135 *powerpc*)
17136 CFLAGS="$CFLAGS -ffixed-r13"
17137 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
17139 esac
17141 else
17142 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
17143 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
17144 if test "${ac_cv_c_dll_hpux+set}" = set; then
17145 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 else
17147 ac_wine_try_cflags_saved=$CFLAGS
17148 CFLAGS="$CFLAGS -shared"
17149 cat >conftest.$ac_ext <<_ACEOF
17150 void myfunc() {}
17151 _ACEOF
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (ac_try="$ac_link"
17154 case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170 esac
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest$ac_exeext'
17177 { (case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_try") 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_cv_c_dll_hpux="yes"
17187 else
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17191 ac_cv_c_dll_hpux="no"
17194 rm -f core conftest.err conftest.$ac_objext \
17195 conftest$ac_exeext conftest.$ac_ext
17196 CFLAGS=$ac_wine_try_cflags_saved
17198 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
17199 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
17200 if test "$ac_cv_c_dll_hpux" = "yes"
17201 then
17202 LIBEXT="sl"
17203 DLLEXT=".sl"
17204 LDDLLFLAGS="-shared -fPIC"
17205 LDSHARED="\$(CC) -shared"
17212 CROSSTEST=""
17214 if test "$cross_compiling" = "no"
17215 then
17216 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
17218 # Extract the first word of "$ac_prog", so it can be a program name with args.
17219 set dummy $ac_prog; ac_word=$2
17220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17222 if test "${ac_cv_prog_CROSSCC+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225 if test -n "$CROSSCC"; then
17226 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
17227 else
17228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17229 for as_dir in $PATH
17231 IFS=$as_save_IFS
17232 test -z "$as_dir" && as_dir=.
17233 for ac_exec_ext in '' $ac_executable_extensions; do
17234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17235 ac_cv_prog_CROSSCC="$ac_prog"
17236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17237 break 2
17239 done
17240 done
17241 IFS=$as_save_IFS
17245 CROSSCC=$ac_cv_prog_CROSSCC
17246 if test -n "$CROSSCC"; then
17247 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
17248 echo "${ECHO_T}$CROSSCC" >&6; }
17249 else
17250 { echo "$as_me:$LINENO: result: no" >&5
17251 echo "${ECHO_T}no" >&6; }
17255 test -n "$CROSSCC" && break
17256 done
17257 test -n "$CROSSCC" || CROSSCC="false"
17259 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
17261 # Extract the first word of "$ac_prog", so it can be a program name with args.
17262 set dummy $ac_prog; ac_word=$2
17263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17265 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268 if test -n "$DLLTOOL"; then
17269 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17270 else
17271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17272 for as_dir in $PATH
17274 IFS=$as_save_IFS
17275 test -z "$as_dir" && as_dir=.
17276 for ac_exec_ext in '' $ac_executable_extensions; do
17277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17278 ac_cv_prog_DLLTOOL="$ac_prog"
17279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17280 break 2
17282 done
17283 done
17284 IFS=$as_save_IFS
17288 DLLTOOL=$ac_cv_prog_DLLTOOL
17289 if test -n "$DLLTOOL"; then
17290 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17291 echo "${ECHO_T}$DLLTOOL" >&6; }
17292 else
17293 { echo "$as_me:$LINENO: result: no" >&5
17294 echo "${ECHO_T}no" >&6; }
17298 test -n "$DLLTOOL" && break
17299 done
17300 test -n "$DLLTOOL" || DLLTOOL="false"
17302 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
17304 # Extract the first word of "$ac_prog", so it can be a program name with args.
17305 set dummy $ac_prog; ac_word=$2
17306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17308 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
17309 echo $ECHO_N "(cached) $ECHO_C" >&6
17310 else
17311 if test -n "$CROSSWINDRES"; then
17312 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
17313 else
17314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17315 for as_dir in $PATH
17317 IFS=$as_save_IFS
17318 test -z "$as_dir" && as_dir=.
17319 for ac_exec_ext in '' $ac_executable_extensions; do
17320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17321 ac_cv_prog_CROSSWINDRES="$ac_prog"
17322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17323 break 2
17325 done
17326 done
17327 IFS=$as_save_IFS
17331 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
17332 if test -n "$CROSSWINDRES"; then
17333 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
17334 echo "${ECHO_T}$CROSSWINDRES" >&6; }
17335 else
17336 { echo "$as_me:$LINENO: result: no" >&5
17337 echo "${ECHO_T}no" >&6; }
17341 test -n "$CROSSWINDRES" && break
17342 done
17343 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
17345 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
17348 esac
17350 if test "$LIBEXT" = "a"; then
17351 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
17352 It is currently not possible to build Wine without shared library
17353 (.so) support to allow transparent switch between .so and .dll files.
17354 If you are using Linux, you will need a newer binutils.
17355 " >&5
17356 echo "$as_me: error: could not find a way to build shared libraries.
17357 It is currently not possible to build Wine without shared library
17358 (.so) support to allow transparent switch between .so and .dll files.
17359 If you are using Linux, you will need a newer binutils.
17360 " >&2;}
17361 { (exit 1); exit 1; }; }
17364 case $build_os in
17365 cygwin*|mingw32*)
17366 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
17368 darwin*|macosx*)
17369 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
17372 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
17374 esac
17376 case $host_os in
17377 mingw32*)
17378 CRTLIBS="-lmsvcrt"
17380 SOCKETLIBS="-lws2_32"
17383 esac
17385 MAIN_BINARY="wine-pthread"
17386 case $host_cpu in
17387 *i[3456789]86*)
17388 case $host_os in
17389 linux* | k*bsd*-gnu)
17390 MAIN_BINARY="wine-glibc"
17392 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
17394 esac
17396 esac
17399 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
17400 then
17401 # Extract the first word of "ldd", so it can be a program name with args.
17402 set dummy ldd; ac_word=$2
17403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17405 if test "${ac_cv_path_LDD+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17407 else
17408 case $LDD in
17409 [\\/]* | ?:[\\/]*)
17410 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17414 as_dummy="/sbin:/usr/sbin:$PATH"
17415 for as_dir in $as_dummy
17417 IFS=$as_save_IFS
17418 test -z "$as_dir" && as_dir=.
17419 for ac_exec_ext in '' $ac_executable_extensions; do
17420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17421 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17423 break 2
17425 done
17426 done
17427 IFS=$as_save_IFS
17429 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
17431 esac
17433 LDD=$ac_cv_path_LDD
17434 if test -n "$LDD"; then
17435 { echo "$as_me:$LINENO: result: $LDD" >&5
17436 echo "${ECHO_T}$LDD" >&6; }
17437 else
17438 { echo "$as_me:$LINENO: result: no" >&5
17439 echo "${ECHO_T}no" >&6; }
17443 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
17444 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
17445 if test "${ac_cv_lib_soname_X11+set}" = set; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448 ac_get_soname_save_LIBS=$LIBS
17449 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
17450 cat >conftest.$ac_ext <<_ACEOF
17451 /* confdefs.h. */
17452 _ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h. */
17457 /* Override any GCC internal prototype to avoid an error.
17458 Use char because int might match the return type of a GCC
17459 builtin and then its argument prototype would still apply. */
17460 #ifdef __cplusplus
17461 extern "C"
17462 #endif
17463 char XCreateWindow ();
17465 main ()
17467 return XCreateWindow ();
17469 return 0;
17471 _ACEOF
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (ac_try="$ac_link"
17474 case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477 esac
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_link") 2>conftest.er1
17480 ac_status=$?
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17487 { (case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490 esac
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_try") 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17507 if test "x$ac_cv_lib_soname_X11" = "x"
17508 then
17509 ac_cv_lib_soname_X11="libX11.$LIBEXT"
17511 else
17512 echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ac_cv_lib_soname_X11="libX11.$LIBEXT"
17518 rm -f core conftest.err conftest.$ac_objext \
17519 conftest$ac_exeext conftest.$ac_ext
17520 LIBS=$ac_get_soname_save_LIBS
17522 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
17523 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
17524 if test "${ac_cv_lib_soname_X11+set}" = set; then
17526 cat >>confdefs.h <<_ACEOF
17527 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
17528 _ACEOF
17532 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
17533 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
17534 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
17536 else
17537 ac_get_soname_save_LIBS=$LIBS
17538 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
17539 cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h. */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17546 /* Override any GCC internal prototype to avoid an error.
17547 Use char because int might match the return type of a GCC
17548 builtin and then its argument prototype would still apply. */
17549 #ifdef __cplusplus
17550 extern "C"
17551 #endif
17552 char XextCreateExtension ();
17554 main ()
17556 return XextCreateExtension ();
17558 return 0;
17560 _ACEOF
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (ac_try="$ac_link"
17563 case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17566 esac
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_link") 2>conftest.er1
17569 ac_status=$?
17570 grep -v '^ *+' conftest.er1 >conftest.err
17571 rm -f conftest.er1
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17576 { (case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17579 esac
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_try") 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; } &&
17585 { ac_try='test -s conftest$ac_exeext'
17586 { (case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_try") 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17596 if test "x$ac_cv_lib_soname_Xext" = "x"
17597 then
17598 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
17600 else
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17604 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
17607 rm -f core conftest.err conftest.$ac_objext \
17608 conftest$ac_exeext conftest.$ac_ext
17609 LIBS=$ac_get_soname_save_LIBS
17611 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
17612 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
17613 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17615 cat >>confdefs.h <<_ACEOF
17616 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
17617 _ACEOF
17621 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
17622 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
17623 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 else
17626 ac_get_soname_save_LIBS=$LIBS
17627 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17628 cat >conftest.$ac_ext <<_ACEOF
17629 /* confdefs.h. */
17630 _ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h. */
17635 /* Override any GCC internal prototype to avoid an error.
17636 Use char because int might match the return type of a GCC
17637 builtin and then its argument prototype would still apply. */
17638 #ifdef __cplusplus
17639 extern "C"
17640 #endif
17641 char XOpenDevice ();
17643 main ()
17645 return XOpenDevice ();
17647 return 0;
17649 _ACEOF
17650 rm -f conftest.$ac_objext conftest$ac_exeext
17651 if { (ac_try="$ac_link"
17652 case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17655 esac
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_link") 2>conftest.er1
17658 ac_status=$?
17659 grep -v '^ *+' conftest.er1 >conftest.err
17660 rm -f conftest.er1
17661 cat conftest.err >&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17665 { (case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_try") 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } &&
17674 { ac_try='test -s conftest$ac_exeext'
17675 { (case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17678 esac
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_try") 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17685 if test "x$ac_cv_lib_soname_Xi" = "x"
17686 then
17687 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
17689 else
17690 echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17693 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
17696 rm -f core conftest.err conftest.$ac_objext \
17697 conftest$ac_exeext conftest.$ac_ext
17698 LIBS=$ac_get_soname_save_LIBS
17700 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
17701 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
17702 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17704 cat >>confdefs.h <<_ACEOF
17705 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
17706 _ACEOF
17710 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
17711 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
17712 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715 ac_get_soname_save_LIBS=$LIBS
17716 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17717 cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h. */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17724 /* Override any GCC internal prototype to avoid an error.
17725 Use char because int might match the return type of a GCC
17726 builtin and then its argument prototype would still apply. */
17727 #ifdef __cplusplus
17728 extern "C"
17729 #endif
17730 char XRenderQueryExtension ();
17732 main ()
17734 return XRenderQueryExtension ();
17736 return 0;
17738 _ACEOF
17739 rm -f conftest.$ac_objext conftest$ac_exeext
17740 if { (ac_try="$ac_link"
17741 case "(($ac_try" in
17742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743 *) ac_try_echo=$ac_try;;
17744 esac
17745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746 (eval "$ac_link") 2>conftest.er1
17747 ac_status=$?
17748 grep -v '^ *+' conftest.er1 >conftest.err
17749 rm -f conftest.er1
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
17753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17754 { (case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17757 esac
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_try") 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; } &&
17763 { ac_try='test -s conftest$ac_exeext'
17764 { (case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17767 esac
17768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769 (eval "$ac_try") 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17774 if test "x$ac_cv_lib_soname_Xrender" = "x"
17775 then
17776 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
17778 else
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17782 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
17785 rm -f core conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17787 LIBS=$ac_get_soname_save_LIBS
17789 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
17790 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
17791 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17793 cat >>confdefs.h <<_ACEOF
17794 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
17795 _ACEOF
17799 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
17800 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
17801 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17803 else
17804 ac_get_soname_save_LIBS=$LIBS
17805 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17806 cat >conftest.$ac_ext <<_ACEOF
17807 /* confdefs.h. */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17813 /* Override any GCC internal prototype to avoid an error.
17814 Use char because int might match the return type of a GCC
17815 builtin and then its argument prototype would still apply. */
17816 #ifdef __cplusplus
17817 extern "C"
17818 #endif
17819 char XRRQueryExtension ();
17821 main ()
17823 return XRRQueryExtension ();
17825 return 0;
17827 _ACEOF
17828 rm -f conftest.$ac_objext conftest$ac_exeext
17829 if { (ac_try="$ac_link"
17830 case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17833 esac
17834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835 (eval "$ac_link") 2>conftest.er1
17836 ac_status=$?
17837 grep -v '^ *+' conftest.er1 >conftest.err
17838 rm -f conftest.er1
17839 cat conftest.err >&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
17842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17843 { (case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_try") 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; } &&
17852 { ac_try='test -s conftest$ac_exeext'
17853 { (case "(($ac_try" in
17854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855 *) ac_try_echo=$ac_try;;
17856 esac
17857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17858 (eval "$ac_try") 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17863 if test "x$ac_cv_lib_soname_Xrandr" = "x"
17864 then
17865 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
17867 else
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
17874 rm -f core conftest.err conftest.$ac_objext \
17875 conftest$ac_exeext conftest.$ac_ext
17876 LIBS=$ac_get_soname_save_LIBS
17878 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
17879 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
17880 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17882 cat >>confdefs.h <<_ACEOF
17883 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
17884 _ACEOF
17888 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
17889 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
17890 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 else
17893 ac_get_soname_save_LIBS=$LIBS
17894 LIBS="-lfreetype $X_LIBS $LIBS"
17895 cat >conftest.$ac_ext <<_ACEOF
17896 /* confdefs.h. */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17902 /* Override any GCC internal prototype to avoid an error.
17903 Use char because int might match the return type of a GCC
17904 builtin and then its argument prototype would still apply. */
17905 #ifdef __cplusplus
17906 extern "C"
17907 #endif
17908 char FT_Init_FreeType ();
17910 main ()
17912 return FT_Init_FreeType ();
17914 return 0;
17916 _ACEOF
17917 rm -f conftest.$ac_objext conftest$ac_exeext
17918 if { (ac_try="$ac_link"
17919 case "(($ac_try" in
17920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921 *) ac_try_echo=$ac_try;;
17922 esac
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924 (eval "$ac_link") 2>conftest.er1
17925 ac_status=$?
17926 grep -v '^ *+' conftest.er1 >conftest.err
17927 rm -f conftest.er1
17928 cat conftest.err >&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } &&
17931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17932 { (case "(($ac_try" in
17933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17934 *) ac_try_echo=$ac_try;;
17935 esac
17936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17937 (eval "$ac_try") 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; } &&
17941 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17952 if test "x$ac_cv_lib_soname_freetype" = "x"
17953 then
17954 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
17956 else
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17960 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
17963 rm -f core conftest.err conftest.$ac_objext \
17964 conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_get_soname_save_LIBS
17967 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
17968 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
17969 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17971 cat >>confdefs.h <<_ACEOF
17972 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
17973 _ACEOF
17977 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
17978 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
17979 if test "${ac_cv_lib_soname_GL+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17981 else
17982 ac_get_soname_save_LIBS=$LIBS
17983 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
17984 cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h. */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17991 /* Override any GCC internal prototype to avoid an error.
17992 Use char because int might match the return type of a GCC
17993 builtin and then its argument prototype would still apply. */
17994 #ifdef __cplusplus
17995 extern "C"
17996 #endif
17997 char glXQueryExtension ();
17999 main ()
18001 return glXQueryExtension ();
18003 return 0;
18005 _ACEOF
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (ac_try="$ac_link"
18008 case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_link") 2>conftest.er1
18014 ac_status=$?
18015 grep -v '^ *+' conftest.er1 >conftest.err
18016 rm -f conftest.er1
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest$ac_exeext'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18041 if test "x$ac_cv_lib_soname_GL" = "x"
18042 then
18043 ac_cv_lib_soname_GL="libGL.$LIBEXT"
18045 else
18046 echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.$ac_ext >&5
18049 ac_cv_lib_soname_GL="libGL.$LIBEXT"
18052 rm -f core conftest.err conftest.$ac_objext \
18053 conftest$ac_exeext conftest.$ac_ext
18054 LIBS=$ac_get_soname_save_LIBS
18056 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
18057 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
18058 if test "${ac_cv_lib_soname_GL+set}" = set; then
18060 cat >>confdefs.h <<_ACEOF
18061 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
18062 _ACEOF
18066 { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
18067 echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
18068 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18069 echo $ECHO_N "(cached) $ECHO_C" >&6
18070 else
18071 ac_get_soname_save_LIBS=$LIBS
18072 LIBS="-ldbus-1 $LIBS"
18073 cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h. */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18080 /* Override any GCC internal prototype to avoid an error.
18081 Use char because int might match the return type of a GCC
18082 builtin and then its argument prototype would still apply. */
18083 #ifdef __cplusplus
18084 extern "C"
18085 #endif
18086 char dbus_error_init ();
18088 main ()
18090 return dbus_error_init ();
18092 return 0;
18094 _ACEOF
18095 rm -f conftest.$ac_objext conftest$ac_exeext
18096 if { (ac_try="$ac_link"
18097 case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18100 esac
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_link") 2>conftest.er1
18103 ac_status=$?
18104 grep -v '^ *+' conftest.er1 >conftest.err
18105 rm -f conftest.er1
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } &&
18109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18110 { (case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18113 esac
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115 (eval "$ac_try") 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } &&
18119 { ac_try='test -s conftest$ac_exeext'
18120 { (case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18123 esac
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_try") 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; }; then
18129 ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.$LIBEXT | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18130 if test "x$ac_cv_lib_soname_dbus_1" = "x"
18131 then
18132 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18134 else
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18141 rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18143 LIBS=$ac_get_soname_save_LIBS
18145 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
18146 echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
18147 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18149 cat >>confdefs.h <<_ACEOF
18150 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
18151 _ACEOF
18155 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
18156 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
18157 if test "${ac_cv_lib_soname_hal+set}" = set; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18159 else
18160 ac_get_soname_save_LIBS=$LIBS
18161 LIBS="-lhal $LIBS"
18162 cat >conftest.$ac_ext <<_ACEOF
18163 /* confdefs.h. */
18164 _ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h. */
18169 /* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18172 #ifdef __cplusplus
18173 extern "C"
18174 #endif
18175 char libhal_ctx_new ();
18177 main ()
18179 return libhal_ctx_new ();
18181 return 0;
18183 _ACEOF
18184 rm -f conftest.$ac_objext conftest$ac_exeext
18185 if { (ac_try="$ac_link"
18186 case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18189 esac
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_link") 2>conftest.er1
18192 ac_status=$?
18193 grep -v '^ *+' conftest.er1 >conftest.err
18194 rm -f conftest.er1
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18199 { (case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18202 esac
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_try") 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; } &&
18208 { ac_try='test -s conftest$ac_exeext'
18209 { (case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18212 esac
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_try") 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18219 if test "x$ac_cv_lib_soname_hal" = "x"
18220 then
18221 ac_cv_lib_soname_hal="libhal.$LIBEXT"
18223 else
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 ac_cv_lib_soname_hal="libhal.$LIBEXT"
18230 rm -f core conftest.err conftest.$ac_objext \
18231 conftest$ac_exeext conftest.$ac_ext
18232 LIBS=$ac_get_soname_save_LIBS
18234 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
18235 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
18236 if test "${ac_cv_lib_soname_hal+set}" = set; then
18238 cat >>confdefs.h <<_ACEOF
18239 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
18240 _ACEOF
18244 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
18245 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
18246 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18247 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 else
18249 ac_get_soname_save_LIBS=$LIBS
18250 LIBS="-ltxc_dxtn $LIBS"
18251 cat >conftest.$ac_ext <<_ACEOF
18252 /* confdefs.h. */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18258 /* Override any GCC internal prototype to avoid an error.
18259 Use char because int might match the return type of a GCC
18260 builtin and then its argument prototype would still apply. */
18261 #ifdef __cplusplus
18262 extern "C"
18263 #endif
18264 char fetch_2d_texel_rgba_dxt1 ();
18266 main ()
18268 return fetch_2d_texel_rgba_dxt1 ();
18270 return 0;
18272 _ACEOF
18273 rm -f conftest.$ac_objext conftest$ac_exeext
18274 if { (ac_try="$ac_link"
18275 case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_link") 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } &&
18297 { ac_try='test -s conftest$ac_exeext'
18298 { (case "(($ac_try" in
18299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300 *) ac_try_echo=$ac_try;;
18301 esac
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_try") 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18308 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
18309 then
18310 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18312 else
18313 echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.$ac_ext >&5
18316 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18319 rm -f core conftest.err conftest.$ac_objext \
18320 conftest$ac_exeext conftest.$ac_ext
18321 LIBS=$ac_get_soname_save_LIBS
18323 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
18324 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
18325 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18327 cat >>confdefs.h <<_ACEOF
18328 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
18329 _ACEOF
18333 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
18334 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
18335 if test "${ac_cv_lib_soname_cups+set}" = set; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
18337 else
18338 ac_get_soname_save_LIBS=$LIBS
18339 LIBS="-lcups $LIBS"
18340 cat >conftest.$ac_ext <<_ACEOF
18341 /* confdefs.h. */
18342 _ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18347 /* Override any GCC internal prototype to avoid an error.
18348 Use char because int might match the return type of a GCC
18349 builtin and then its argument prototype would still apply. */
18350 #ifdef __cplusplus
18351 extern "C"
18352 #endif
18353 char cupsGetDefault ();
18355 main ()
18357 return cupsGetDefault ();
18359 return 0;
18361 _ACEOF
18362 rm -f conftest.$ac_objext conftest$ac_exeext
18363 if { (ac_try="$ac_link"
18364 case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18367 esac
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_link") 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18377 { (case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_try") 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest$ac_exeext'
18387 { (case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18390 esac
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_try") 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18397 if test "x$ac_cv_lib_soname_cups" = "x"
18398 then
18399 ac_cv_lib_soname_cups="libcups.$LIBEXT"
18401 else
18402 echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18405 ac_cv_lib_soname_cups="libcups.$LIBEXT"
18408 rm -f core conftest.err conftest.$ac_objext \
18409 conftest$ac_exeext conftest.$ac_ext
18410 LIBS=$ac_get_soname_save_LIBS
18412 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
18413 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
18414 if test "${ac_cv_lib_soname_cups+set}" = set; then
18416 cat >>confdefs.h <<_ACEOF
18417 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
18418 _ACEOF
18422 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
18423 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
18424 if test "${ac_cv_lib_soname_jack+set}" = set; then
18425 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 else
18427 ac_get_soname_save_LIBS=$LIBS
18428 LIBS="-ljack $LIBS"
18429 cat >conftest.$ac_ext <<_ACEOF
18430 /* confdefs.h. */
18431 _ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18436 /* Override any GCC internal prototype to avoid an error.
18437 Use char because int might match the return type of a GCC
18438 builtin and then its argument prototype would still apply. */
18439 #ifdef __cplusplus
18440 extern "C"
18441 #endif
18442 char jack_client_new ();
18444 main ()
18446 return jack_client_new ();
18448 return 0;
18450 _ACEOF
18451 rm -f conftest.$ac_objext conftest$ac_exeext
18452 if { (ac_try="$ac_link"
18453 case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_link") 2>conftest.er1
18459 ac_status=$?
18460 grep -v '^ *+' conftest.er1 >conftest.err
18461 rm -f conftest.er1
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
18465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18466 { (case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18469 esac
18470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18471 (eval "$ac_try") 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest$ac_exeext'
18476 { (case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18479 esac
18480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18481 (eval "$ac_try") 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; }; then
18485 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18486 if test "x$ac_cv_lib_soname_jack" = "x"
18487 then
18488 ac_cv_lib_soname_jack="libjack.$LIBEXT"
18490 else
18491 echo "$as_me: failed program was:" >&5
18492 sed 's/^/| /' conftest.$ac_ext >&5
18494 ac_cv_lib_soname_jack="libjack.$LIBEXT"
18497 rm -f core conftest.err conftest.$ac_objext \
18498 conftest$ac_exeext conftest.$ac_ext
18499 LIBS=$ac_get_soname_save_LIBS
18501 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
18502 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
18503 if test "${ac_cv_lib_soname_jack+set}" = set; then
18505 cat >>confdefs.h <<_ACEOF
18506 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
18507 _ACEOF
18511 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
18512 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
18513 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18515 else
18516 ac_get_soname_save_LIBS=$LIBS
18517 LIBS="-lfontconfig $LIBS"
18518 cat >conftest.$ac_ext <<_ACEOF
18519 /* confdefs.h. */
18520 _ACEOF
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18525 /* Override any GCC internal prototype to avoid an error.
18526 Use char because int might match the return type of a GCC
18527 builtin and then its argument prototype would still apply. */
18528 #ifdef __cplusplus
18529 extern "C"
18530 #endif
18531 char FcInit ();
18533 main ()
18535 return FcInit ();
18537 return 0;
18539 _ACEOF
18540 rm -f conftest.$ac_objext conftest$ac_exeext
18541 if { (ac_try="$ac_link"
18542 case "(($ac_try" in
18543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544 *) ac_try_echo=$ac_try;;
18545 esac
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547 (eval "$ac_link") 2>conftest.er1
18548 ac_status=$?
18549 grep -v '^ *+' conftest.er1 >conftest.err
18550 rm -f conftest.er1
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } &&
18554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18555 { (case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18558 esac
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_try") 2>&5
18561 ac_status=$?
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; } &&
18564 { ac_try='test -s conftest$ac_exeext'
18565 { (case "(($ac_try" in
18566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18567 *) ac_try_echo=$ac_try;;
18568 esac
18569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18570 (eval "$ac_try") 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; }; then
18574 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18575 if test "x$ac_cv_lib_soname_fontconfig" = "x"
18576 then
18577 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18579 else
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18583 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18586 rm -f core conftest.err conftest.$ac_objext \
18587 conftest$ac_exeext conftest.$ac_ext
18588 LIBS=$ac_get_soname_save_LIBS
18590 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
18591 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
18592 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18594 cat >>confdefs.h <<_ACEOF
18595 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
18596 _ACEOF
18600 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
18601 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
18602 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18604 else
18605 ac_get_soname_save_LIBS=$LIBS
18606 LIBS="-lssl $LIBS"
18607 cat >conftest.$ac_ext <<_ACEOF
18608 /* confdefs.h. */
18609 _ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h. */
18614 /* Override any GCC internal prototype to avoid an error.
18615 Use char because int might match the return type of a GCC
18616 builtin and then its argument prototype would still apply. */
18617 #ifdef __cplusplus
18618 extern "C"
18619 #endif
18620 char SSL_library_init ();
18622 main ()
18624 return SSL_library_init ();
18626 return 0;
18628 _ACEOF
18629 rm -f conftest.$ac_objext conftest$ac_exeext
18630 if { (ac_try="$ac_link"
18631 case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18634 esac
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_link") 2>conftest.er1
18637 ac_status=$?
18638 grep -v '^ *+' conftest.er1 >conftest.err
18639 rm -f conftest.er1
18640 cat conftest.err >&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } &&
18643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18644 { (case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18647 esac
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_try") 2>&5
18650 ac_status=$?
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; } &&
18653 { ac_try='test -s conftest$ac_exeext'
18654 { (case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657 esac
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_try") 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; }; then
18663 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18664 if test "x$ac_cv_lib_soname_ssl" = "x"
18665 then
18666 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18668 else
18669 echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18672 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18675 rm -f core conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18677 LIBS=$ac_get_soname_save_LIBS
18679 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
18680 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
18681 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18683 cat >>confdefs.h <<_ACEOF
18684 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
18685 _ACEOF
18689 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
18690 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
18691 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18693 else
18694 ac_get_soname_save_LIBS=$LIBS
18695 LIBS="-lcrypto $LIBS"
18696 cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h. */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18703 /* Override any GCC internal prototype to avoid an error.
18704 Use char because int might match the return type of a GCC
18705 builtin and then its argument prototype would still apply. */
18706 #ifdef __cplusplus
18707 extern "C"
18708 #endif
18709 char BIO_new_socket ();
18711 main ()
18713 return BIO_new_socket ();
18715 return 0;
18717 _ACEOF
18718 rm -f conftest.$ac_objext conftest$ac_exeext
18719 if { (ac_try="$ac_link"
18720 case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_link") 2>conftest.er1
18726 ac_status=$?
18727 grep -v '^ *+' conftest.er1 >conftest.err
18728 rm -f conftest.er1
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } &&
18732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18733 { (case "(($ac_try" in
18734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735 *) ac_try_echo=$ac_try;;
18736 esac
18737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18738 (eval "$ac_try") 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; } &&
18742 { ac_try='test -s conftest$ac_exeext'
18743 { (case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18746 esac
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_try") 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18753 if test "x$ac_cv_lib_soname_crypto" = "x"
18754 then
18755 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18757 else
18758 echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18761 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18764 rm -f core conftest.err conftest.$ac_objext \
18765 conftest$ac_exeext conftest.$ac_ext
18766 LIBS=$ac_get_soname_save_LIBS
18768 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
18769 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
18770 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18772 cat >>confdefs.h <<_ACEOF
18773 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
18774 _ACEOF
18778 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
18779 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
18780 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18781 echo $ECHO_N "(cached) $ECHO_C" >&6
18782 else
18783 ac_get_soname_save_LIBS=$LIBS
18784 LIBS="-lncurses $LIBS"
18785 cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h. */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18792 /* Override any GCC internal prototype to avoid an error.
18793 Use char because int might match the return type of a GCC
18794 builtin and then its argument prototype would still apply. */
18795 #ifdef __cplusplus
18796 extern "C"
18797 #endif
18798 char waddch ();
18800 main ()
18802 return waddch ();
18804 return 0;
18806 _ACEOF
18807 rm -f conftest.$ac_objext conftest$ac_exeext
18808 if { (ac_try="$ac_link"
18809 case "(($ac_try" in
18810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811 *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_link") 2>conftest.er1
18815 ac_status=$?
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } &&
18821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18822 { (case "(($ac_try" in
18823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824 *) ac_try_echo=$ac_try;;
18825 esac
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827 (eval "$ac_try") 2>&5
18828 ac_status=$?
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; } &&
18831 { ac_try='test -s conftest$ac_exeext'
18832 { (case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835 esac
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_try") 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18842 if test "x$ac_cv_lib_soname_ncurses" = "x"
18843 then
18844 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18846 else
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18850 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18853 rm -f core conftest.err conftest.$ac_objext \
18854 conftest$ac_exeext conftest.$ac_ext
18855 LIBS=$ac_get_soname_save_LIBS
18857 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
18858 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
18859 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18861 cat >>confdefs.h <<_ACEOF
18862 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
18863 _ACEOF
18867 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
18868 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
18869 if test "${ac_cv_lib_soname_curses+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872 ac_get_soname_save_LIBS=$LIBS
18873 LIBS="-lcurses $LIBS"
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h. */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18881 /* Override any GCC internal prototype to avoid an error.
18882 Use char because int might match the return type of a GCC
18883 builtin and then its argument prototype would still apply. */
18884 #ifdef __cplusplus
18885 extern "C"
18886 #endif
18887 char waddch ();
18889 main ()
18891 return waddch ();
18893 return 0;
18895 _ACEOF
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (ac_try="$ac_link"
18898 case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18901 esac
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_link") 2>conftest.er1
18904 ac_status=$?
18905 grep -v '^ *+' conftest.er1 >conftest.err
18906 rm -f conftest.er1
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } &&
18910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18911 { (case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18914 esac
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_try") 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest$ac_exeext'
18921 { (case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18924 esac
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_try") 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18931 if test "x$ac_cv_lib_soname_curses" = "x"
18932 then
18933 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18935 else
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18939 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18942 rm -f core conftest.err conftest.$ac_objext \
18943 conftest$ac_exeext conftest.$ac_ext
18944 LIBS=$ac_get_soname_save_LIBS
18946 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
18947 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
18948 if test "${ac_cv_lib_soname_curses+set}" = set; then
18950 cat >>confdefs.h <<_ACEOF
18951 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
18952 _ACEOF
18956 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
18957 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
18958 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18960 else
18961 ac_get_soname_save_LIBS=$LIBS
18962 LIBS="-ljpeg $LIBS"
18963 cat >conftest.$ac_ext <<_ACEOF
18964 /* confdefs.h. */
18965 _ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18970 /* Override any GCC internal prototype to avoid an error.
18971 Use char because int might match the return type of a GCC
18972 builtin and then its argument prototype would still apply. */
18973 #ifdef __cplusplus
18974 extern "C"
18975 #endif
18976 char jpeg_start_decompress ();
18978 main ()
18980 return jpeg_start_decompress ();
18982 return 0;
18984 _ACEOF
18985 rm -f conftest.$ac_objext conftest$ac_exeext
18986 if { (ac_try="$ac_link"
18987 case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18990 esac
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_link") 2>conftest.er1
18993 ac_status=$?
18994 grep -v '^ *+' conftest.er1 >conftest.err
18995 rm -f conftest.er1
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } &&
18999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19000 { (case "(($ac_try" in
19001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19002 *) ac_try_echo=$ac_try;;
19003 esac
19004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19005 (eval "$ac_try") 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; } &&
19009 { ac_try='test -s conftest$ac_exeext'
19010 { (case "(($ac_try" in
19011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012 *) ac_try_echo=$ac_try;;
19013 esac
19014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015 (eval "$ac_try") 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19020 if test "x$ac_cv_lib_soname_jpeg" = "x"
19021 then
19022 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
19024 else
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
19031 rm -f core conftest.err conftest.$ac_objext \
19032 conftest$ac_exeext conftest.$ac_ext
19033 LIBS=$ac_get_soname_save_LIBS
19035 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
19036 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
19037 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
19039 cat >>confdefs.h <<_ACEOF
19040 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
19041 _ACEOF
19045 { echo "$as_me:$LINENO: checking for -lungif soname" >&5
19046 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
19047 if test "${ac_cv_lib_soname_ungif+set}" = set; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
19049 else
19050 ac_get_soname_save_LIBS=$LIBS
19051 LIBS="-lungif $LIBS"
19052 cat >conftest.$ac_ext <<_ACEOF
19053 /* confdefs.h. */
19054 _ACEOF
19055 cat confdefs.h >>conftest.$ac_ext
19056 cat >>conftest.$ac_ext <<_ACEOF
19057 /* end confdefs.h. */
19059 /* Override any GCC internal prototype to avoid an error.
19060 Use char because int might match the return type of a GCC
19061 builtin and then its argument prototype would still apply. */
19062 #ifdef __cplusplus
19063 extern "C"
19064 #endif
19065 char DGifOpen ();
19067 main ()
19069 return DGifOpen ();
19071 return 0;
19073 _ACEOF
19074 rm -f conftest.$ac_objext conftest$ac_exeext
19075 if { (ac_try="$ac_link"
19076 case "(($ac_try" in
19077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19079 esac
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081 (eval "$ac_link") 2>conftest.er1
19082 ac_status=$?
19083 grep -v '^ *+' conftest.er1 >conftest.err
19084 rm -f conftest.er1
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19089 { (case "(($ac_try" in
19090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19091 *) ac_try_echo=$ac_try;;
19092 esac
19093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19094 (eval "$ac_try") 2>&5
19095 ac_status=$?
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; } &&
19098 { ac_try='test -s conftest$ac_exeext'
19099 { (case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19102 esac
19103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_try") 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; }; then
19108 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19109 if test "x$ac_cv_lib_soname_ungif" = "x"
19110 then
19111 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19113 else
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19120 rm -f core conftest.err conftest.$ac_objext \
19121 conftest$ac_exeext conftest.$ac_ext
19122 LIBS=$ac_get_soname_save_LIBS
19124 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
19125 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
19126 if test "${ac_cv_lib_soname_ungif+set}" = set; then
19128 cat >>confdefs.h <<_ACEOF
19129 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
19130 _ACEOF
19134 { echo "$as_me:$LINENO: checking for -lgif soname" >&5
19135 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
19136 if test "${ac_cv_lib_soname_gif+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139 ac_get_soname_save_LIBS=$LIBS
19140 LIBS="-lgif $LIBS"
19141 cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h. */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19148 /* Override any GCC internal prototype to avoid an error.
19149 Use char because int might match the return type of a GCC
19150 builtin and then its argument prototype would still apply. */
19151 #ifdef __cplusplus
19152 extern "C"
19153 #endif
19154 char DGifOpen ();
19156 main ()
19158 return DGifOpen ();
19160 return 0;
19162 _ACEOF
19163 rm -f conftest.$ac_objext conftest$ac_exeext
19164 if { (ac_try="$ac_link"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168 esac
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_link") 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181 esac
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest$ac_exeext'
19188 { (case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19191 esac
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_try") 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19198 if test "x$ac_cv_lib_soname_gif" = "x"
19199 then
19200 ac_cv_lib_soname_gif="libgif.$LIBEXT"
19202 else
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19206 ac_cv_lib_soname_gif="libgif.$LIBEXT"
19209 rm -f core conftest.err conftest.$ac_objext \
19210 conftest$ac_exeext conftest.$ac_ext
19211 LIBS=$ac_get_soname_save_LIBS
19213 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
19214 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
19215 if test "${ac_cv_lib_soname_gif+set}" = set; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
19219 _ACEOF
19223 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
19224 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
19225 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228 ac_get_soname_save_LIBS=$LIBS
19229 LIBS="-lcapi20 $LIBS"
19230 cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h. */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19237 /* Override any GCC internal prototype to avoid an error.
19238 Use char because int might match the return type of a GCC
19239 builtin and then its argument prototype would still apply. */
19240 #ifdef __cplusplus
19241 extern "C"
19242 #endif
19243 char capi20_isinstalled ();
19245 main ()
19247 return capi20_isinstalled ();
19249 return 0;
19251 _ACEOF
19252 rm -f conftest.$ac_objext conftest$ac_exeext
19253 if { (ac_try="$ac_link"
19254 case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19257 esac
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_link") 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19267 { (case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270 esac
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_try") 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try='test -s conftest$ac_exeext'
19277 { (case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19280 esac
19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_try") 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19287 if test "x$ac_cv_lib_soname_capi20" = "x"
19288 then
19289 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19291 else
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19295 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19298 rm -f core conftest.err conftest.$ac_objext \
19299 conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_get_soname_save_LIBS
19302 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
19303 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
19304 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19306 cat >>confdefs.h <<_ACEOF
19307 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
19308 _ACEOF
19381 for ac_func in \
19382 _lwp_create \
19383 _lwp_self \
19384 _pclose \
19385 _popen \
19386 _snprintf \
19387 _spawnvp \
19388 _stricmp \
19389 _strnicmp \
19390 _vsnprintf \
19391 asctime_r \
19392 chsize \
19393 clone \
19394 epoll_create \
19395 ffs \
19396 finite \
19397 fork \
19398 fpclass \
19399 fstatfs \
19400 fstatvfs \
19401 ftruncate \
19402 futimes \
19403 futimesat \
19404 getaddrinfo \
19405 getnameinfo \
19406 getnetbyname \
19407 getopt_long \
19408 getpagesize \
19409 getprotobyname \
19410 getprotobynumber \
19411 getpwuid \
19412 getservbyport \
19413 gettid \
19414 gettimeofday \
19415 getuid \
19416 inet_network \
19417 lstat \
19418 memmove \
19419 mmap \
19420 pclose \
19421 popen \
19422 prctl \
19423 pread \
19424 pwrite \
19425 readlink \
19426 rfork \
19427 sched_yield \
19428 select \
19429 sendmsg \
19430 setrlimit \
19431 settimeofday \
19432 sigaltstack \
19433 sigprocmask \
19434 snprintf \
19435 spawnvp \
19436 statfs \
19437 statvfs \
19438 strcasecmp \
19439 strerror \
19440 strncasecmp \
19441 tcgetattr \
19442 timegm \
19443 usleep \
19444 vsnprintf \
19445 wait4 \
19446 waitpid \
19449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 else
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h. */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19463 #define $ac_func innocuous_$ac_func
19465 /* System header to define __stub macros and hopefully few prototypes,
19466 which can conflict with char $ac_func (); below.
19467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19468 <limits.h> exists even on freestanding compilers. */
19470 #ifdef __STDC__
19471 # include <limits.h>
19472 #else
19473 # include <assert.h>
19474 #endif
19476 #undef $ac_func
19478 /* Override any GCC internal prototype to avoid an error.
19479 Use char because int might match the return type of a GCC
19480 builtin and then its argument prototype would still apply. */
19481 #ifdef __cplusplus
19482 extern "C"
19483 #endif
19484 char $ac_func ();
19485 /* The GNU C library defines this for functions which it implements
19486 to always fail with ENOSYS. Some functions are actually named
19487 something starting with __ and the normal name is an alias. */
19488 #if defined __stub_$ac_func || defined __stub___$ac_func
19489 choke me
19490 #endif
19493 main ()
19495 return $ac_func ();
19497 return 0;
19499 _ACEOF
19500 rm -f conftest.$ac_objext conftest$ac_exeext
19501 if { (ac_try="$ac_link"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19505 esac
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_link") 2>conftest.er1
19508 ac_status=$?
19509 grep -v '^ *+' conftest.er1 >conftest.err
19510 rm -f conftest.er1
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
19514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19518 esac
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; } &&
19524 { ac_try='test -s conftest$ac_exeext'
19525 { (case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528 esac
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_try") 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; }; then
19534 eval "$as_ac_var=yes"
19535 else
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19539 eval "$as_ac_var=no"
19542 rm -f core conftest.err conftest.$ac_objext \
19543 conftest$ac_exeext conftest.$ac_ext
19545 ac_res=`eval echo '${'$as_ac_var'}'`
19546 { echo "$as_me:$LINENO: result: $ac_res" >&5
19547 echo "${ECHO_T}$ac_res" >&6; }
19548 if test `eval echo '${'$as_ac_var'}'` = yes; then
19549 cat >>confdefs.h <<_ACEOF
19550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19551 _ACEOF
19554 done
19559 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19560 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19561 if test "${ac_cv_c_const+set}" = set; then
19562 echo $ECHO_N "(cached) $ECHO_C" >&6
19563 else
19564 cat >conftest.$ac_ext <<_ACEOF
19565 /* confdefs.h. */
19566 _ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19572 main ()
19574 /* FIXME: Include the comments suggested by Paul. */
19575 #ifndef __cplusplus
19576 /* Ultrix mips cc rejects this. */
19577 typedef int charset[2];
19578 const charset x;
19579 /* SunOS 4.1.1 cc rejects this. */
19580 char const *const *ccp;
19581 char **p;
19582 /* NEC SVR4.0.2 mips cc rejects this. */
19583 struct point {int x, y;};
19584 static struct point const zero = {0,0};
19585 /* AIX XL C 1.02.0.0 rejects this.
19586 It does not let you subtract one const X* pointer from another in
19587 an arm of an if-expression whose if-part is not a constant
19588 expression */
19589 const char *g = "string";
19590 ccp = &g + (g ? g-g : 0);
19591 /* HPUX 7.0 cc rejects these. */
19592 ++ccp;
19593 p = (char**) ccp;
19594 ccp = (char const *const *) p;
19595 { /* SCO 3.2v4 cc rejects this. */
19596 char *t;
19597 char const *s = 0 ? (char *) 0 : (char const *) 0;
19599 *t++ = 0;
19600 if (s) return 0;
19602 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19603 int x[] = {25, 17};
19604 const int *foo = &x[0];
19605 ++foo;
19607 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19608 typedef const int *iptr;
19609 iptr p = 0;
19610 ++p;
19612 { /* AIX XL C 1.02.0.0 rejects this saying
19613 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19614 struct s { int j; const int *ap[3]; };
19615 struct s *b; b->j = 5;
19617 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19618 const int foo = 10;
19619 if (!foo) return 0;
19621 return !x[0] && !zero.x;
19622 #endif
19625 return 0;
19627 _ACEOF
19628 rm -f conftest.$ac_objext
19629 if { (ac_try="$ac_compile"
19630 case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_compile") 2>conftest.er1
19636 ac_status=$?
19637 grep -v '^ *+' conftest.er1 >conftest.err
19638 rm -f conftest.er1
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } &&
19642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19643 { (case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19646 esac
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_try") 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } &&
19652 { ac_try='test -s conftest.$ac_objext'
19653 { (case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19656 esac
19657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_try") 2>&5
19659 ac_status=$?
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 ac_cv_c_const=yes
19663 else
19664 echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19667 ac_cv_c_const=no
19670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19672 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19673 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19674 if test $ac_cv_c_const = no; then
19676 cat >>confdefs.h <<\_ACEOF
19677 #define const
19678 _ACEOF
19682 { echo "$as_me:$LINENO: checking for inline" >&5
19683 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19684 if test "${ac_cv_c_inline+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687 ac_cv_c_inline=no
19688 for ac_kw in inline __inline__ __inline; do
19689 cat >conftest.$ac_ext <<_ACEOF
19690 /* confdefs.h. */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h. */
19695 #ifndef __cplusplus
19696 typedef int foo_t;
19697 static $ac_kw foo_t static_foo () {return 0; }
19698 $ac_kw foo_t foo () {return 0; }
19699 #endif
19701 _ACEOF
19702 rm -f conftest.$ac_objext
19703 if { (ac_try="$ac_compile"
19704 case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_compile") 2>conftest.er1
19710 ac_status=$?
19711 grep -v '^ *+' conftest.er1 >conftest.err
19712 rm -f conftest.er1
19713 cat conftest.err >&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } &&
19716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19717 { (case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_try") 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest.$ac_objext'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19730 esac
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_c_inline=$ac_kw
19737 else
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19745 test "$ac_cv_c_inline" != no && break
19746 done
19749 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19750 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19753 case $ac_cv_c_inline in
19754 inline | yes) ;;
19756 case $ac_cv_c_inline in
19757 no) ac_val=;;
19758 *) ac_val=$ac_cv_c_inline;;
19759 esac
19760 cat >>confdefs.h <<_ACEOF
19761 #ifndef __cplusplus
19762 #define inline $ac_val
19763 #endif
19764 _ACEOF
19766 esac
19768 { echo "$as_me:$LINENO: checking for mode_t" >&5
19769 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
19770 if test "${ac_cv_type_mode_t+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19772 else
19773 cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h. */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19779 $ac_includes_default
19780 typedef mode_t ac__type_new_;
19782 main ()
19784 if ((ac__type_new_ *) 0)
19785 return 0;
19786 if (sizeof (ac__type_new_))
19787 return 0;
19789 return 0;
19791 _ACEOF
19792 rm -f conftest.$ac_objext
19793 if { (ac_try="$ac_compile"
19794 case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19797 esac
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_compile") 2>conftest.er1
19800 ac_status=$?
19801 grep -v '^ *+' conftest.er1 >conftest.err
19802 rm -f conftest.er1
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } &&
19806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19810 esac
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; } &&
19816 { ac_try='test -s conftest.$ac_objext'
19817 { (case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19820 esac
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_try") 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_cv_type_mode_t=yes
19827 else
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19831 ac_cv_type_mode_t=no
19834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19836 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19837 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
19838 if test $ac_cv_type_mode_t = yes; then
19840 cat >>confdefs.h <<_ACEOF
19841 #define HAVE_MODE_T 1
19842 _ACEOF
19846 { echo "$as_me:$LINENO: checking for off_t" >&5
19847 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
19848 if test "${ac_cv_type_off_t+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851 cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h. */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857 $ac_includes_default
19858 typedef off_t ac__type_new_;
19860 main ()
19862 if ((ac__type_new_ *) 0)
19863 return 0;
19864 if (sizeof (ac__type_new_))
19865 return 0;
19867 return 0;
19869 _ACEOF
19870 rm -f conftest.$ac_objext
19871 if { (ac_try="$ac_compile"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875 esac
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_compile") 2>conftest.er1
19878 ac_status=$?
19879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19885 { (case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19888 esac
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_try") 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest.$ac_objext'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; }; then
19904 ac_cv_type_off_t=yes
19905 else
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19909 ac_cv_type_off_t=no
19912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19914 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19915 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
19916 if test $ac_cv_type_off_t = yes; then
19918 cat >>confdefs.h <<_ACEOF
19919 #define HAVE_OFF_T 1
19920 _ACEOF
19924 { echo "$as_me:$LINENO: checking for pid_t" >&5
19925 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
19926 if test "${ac_cv_type_pid_t+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19928 else
19929 cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h. */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 $ac_includes_default
19936 typedef pid_t ac__type_new_;
19938 main ()
19940 if ((ac__type_new_ *) 0)
19941 return 0;
19942 if (sizeof (ac__type_new_))
19943 return 0;
19945 return 0;
19947 _ACEOF
19948 rm -f conftest.$ac_objext
19949 if { (ac_try="$ac_compile"
19950 case "(($ac_try" in
19951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952 *) ac_try_echo=$ac_try;;
19953 esac
19954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955 (eval "$ac_compile") 2>conftest.er1
19956 ac_status=$?
19957 grep -v '^ *+' conftest.er1 >conftest.err
19958 rm -f conftest.er1
19959 cat conftest.err >&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
19962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19963 { (case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19966 esac
19967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_try") 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; } &&
19972 { ac_try='test -s conftest.$ac_objext'
19973 { (case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_try") 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19982 ac_cv_type_pid_t=yes
19983 else
19984 echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19987 ac_cv_type_pid_t=no
19990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19992 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19993 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
19994 if test $ac_cv_type_pid_t = yes; then
19996 cat >>confdefs.h <<_ACEOF
19997 #define HAVE_PID_T 1
19998 _ACEOF
20002 { echo "$as_me:$LINENO: checking for size_t" >&5
20003 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20004 if test "${ac_cv_type_size_t+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 else
20007 cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h. */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20013 $ac_includes_default
20014 typedef size_t ac__type_new_;
20016 main ()
20018 if ((ac__type_new_ *) 0)
20019 return 0;
20020 if (sizeof (ac__type_new_))
20021 return 0;
20023 return 0;
20025 _ACEOF
20026 rm -f conftest.$ac_objext
20027 if { (ac_try="$ac_compile"
20028 case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031 esac
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_compile") 2>conftest.er1
20034 ac_status=$?
20035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } &&
20040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20041 { (case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20044 esac
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_try") 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; } &&
20050 { ac_try='test -s conftest.$ac_objext'
20051 { (case "(($ac_try" in
20052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053 *) ac_try_echo=$ac_try;;
20054 esac
20055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_try") 2>&5
20057 ac_status=$?
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; }; then
20060 ac_cv_type_size_t=yes
20061 else
20062 echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.$ac_ext >&5
20065 ac_cv_type_size_t=no
20068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20071 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20072 if test $ac_cv_type_size_t = yes; then
20074 cat >>confdefs.h <<_ACEOF
20075 #define HAVE_SIZE_T 1
20076 _ACEOF
20080 { echo "$as_me:$LINENO: checking for ssize_t" >&5
20081 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
20082 if test "${ac_cv_type_ssize_t+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 else
20085 cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h. */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20091 $ac_includes_default
20092 typedef ssize_t ac__type_new_;
20094 main ()
20096 if ((ac__type_new_ *) 0)
20097 return 0;
20098 if (sizeof (ac__type_new_))
20099 return 0;
20101 return 0;
20103 _ACEOF
20104 rm -f conftest.$ac_objext
20105 if { (ac_try="$ac_compile"
20106 case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20109 esac
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_compile") 2>conftest.er1
20112 ac_status=$?
20113 grep -v '^ *+' conftest.er1 >conftest.err
20114 rm -f conftest.er1
20115 cat conftest.err >&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } &&
20118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20119 { (case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122 esac
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_try") 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; } &&
20128 { ac_try='test -s conftest.$ac_objext'
20129 { (case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20132 esac
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_try") 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138 ac_cv_type_ssize_t=yes
20139 else
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20143 ac_cv_type_ssize_t=no
20146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20149 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
20150 if test $ac_cv_type_ssize_t = yes; then
20152 cat >>confdefs.h <<_ACEOF
20153 #define HAVE_SSIZE_T 1
20154 _ACEOF
20158 { echo "$as_me:$LINENO: checking for long long" >&5
20159 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20160 if test "${ac_cv_type_long_long+set}" = set; then
20161 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 else
20163 cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h. */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 $ac_includes_default
20170 typedef long long ac__type_new_;
20172 main ()
20174 if ((ac__type_new_ *) 0)
20175 return 0;
20176 if (sizeof (ac__type_new_))
20177 return 0;
20179 return 0;
20181 _ACEOF
20182 rm -f conftest.$ac_objext
20183 if { (ac_try="$ac_compile"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_compile") 2>conftest.er1
20190 ac_status=$?
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
20196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20197 { (case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20200 esac
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202 (eval "$ac_try") 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; } &&
20206 { ac_try='test -s conftest.$ac_objext'
20207 { (case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_try") 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; }; then
20216 ac_cv_type_long_long=yes
20217 else
20218 echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20221 ac_cv_type_long_long=no
20224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20226 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20227 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20228 if test $ac_cv_type_long_long = yes; then
20230 cat >>confdefs.h <<_ACEOF
20231 #define HAVE_LONG_LONG 1
20232 _ACEOF
20236 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
20237 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
20238 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 else
20241 cat >conftest.$ac_ext <<_ACEOF
20242 /* confdefs.h. */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20247 $ac_includes_default
20248 typedef fsblkcnt_t ac__type_new_;
20250 main ()
20252 if ((ac__type_new_ *) 0)
20253 return 0;
20254 if (sizeof (ac__type_new_))
20255 return 0;
20257 return 0;
20259 _ACEOF
20260 rm -f conftest.$ac_objext
20261 if { (ac_try="$ac_compile"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_compile") 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
20274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20275 { (case "(($ac_try" in
20276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277 *) ac_try_echo=$ac_try;;
20278 esac
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280 (eval "$ac_try") 2>&5
20281 ac_status=$?
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; } &&
20284 { ac_try='test -s conftest.$ac_objext'
20285 { (case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_try") 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_cv_type_fsblkcnt_t=yes
20295 else
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 ac_cv_type_fsblkcnt_t=no
20302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
20305 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
20306 if test $ac_cv_type_fsblkcnt_t = yes; then
20308 cat >>confdefs.h <<_ACEOF
20309 #define HAVE_FSBLKCNT_T 1
20310 _ACEOF
20314 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
20315 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
20316 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 else
20319 cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h. */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20325 $ac_includes_default
20326 typedef fsfilcnt_t ac__type_new_;
20328 main ()
20330 if ((ac__type_new_ *) 0)
20331 return 0;
20332 if (sizeof (ac__type_new_))
20333 return 0;
20335 return 0;
20337 _ACEOF
20338 rm -f conftest.$ac_objext
20339 if { (ac_try="$ac_compile"
20340 case "(($ac_try" in
20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342 *) ac_try_echo=$ac_try;;
20343 esac
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345 (eval "$ac_compile") 2>conftest.er1
20346 ac_status=$?
20347 grep -v '^ *+' conftest.er1 >conftest.err
20348 rm -f conftest.er1
20349 cat conftest.err >&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } &&
20352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20353 { (case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_try") 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; } &&
20362 { ac_try='test -s conftest.$ac_objext'
20363 { (case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20366 esac
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_try") 2>&5
20369 ac_status=$?
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; }; then
20372 ac_cv_type_fsfilcnt_t=yes
20373 else
20374 echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20377 ac_cv_type_fsfilcnt_t=no
20380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20382 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
20383 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
20384 if test $ac_cv_type_fsfilcnt_t = yes; then
20386 cat >>confdefs.h <<_ACEOF
20387 #define HAVE_FSFILCNT_T 1
20388 _ACEOF
20393 { echo "$as_me:$LINENO: checking for sigset_t" >&5
20394 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
20395 if test "${ac_cv_type_sigset_t+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h. */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 #include <signal.h>
20406 typedef sigset_t ac__type_new_;
20408 main ()
20410 if ((ac__type_new_ *) 0)
20411 return 0;
20412 if (sizeof (ac__type_new_))
20413 return 0;
20415 return 0;
20417 _ACEOF
20418 rm -f conftest.$ac_objext
20419 if { (ac_try="$ac_compile"
20420 case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20423 esac
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_compile") 2>conftest.er1
20426 ac_status=$?
20427 grep -v '^ *+' conftest.er1 >conftest.err
20428 rm -f conftest.er1
20429 cat conftest.err >&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } &&
20432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20433 { (case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20436 esac
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_try") 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; } &&
20442 { ac_try='test -s conftest.$ac_objext'
20443 { (case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20446 esac
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_try") 2>&5
20449 ac_status=$?
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; }; then
20452 ac_cv_type_sigset_t=yes
20453 else
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20457 ac_cv_type_sigset_t=no
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
20463 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
20464 if test $ac_cv_type_sigset_t = yes; then
20466 cat >>confdefs.h <<_ACEOF
20467 #define HAVE_SIGSET_T 1
20468 _ACEOF
20473 { echo "$as_me:$LINENO: checking for request_sense" >&5
20474 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
20475 if test "${ac_cv_type_request_sense+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478 cat >conftest.$ac_ext <<_ACEOF
20479 /* confdefs.h. */
20480 _ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20484 #include <linux/cdrom.h>
20486 typedef request_sense ac__type_new_;
20488 main ()
20490 if ((ac__type_new_ *) 0)
20491 return 0;
20492 if (sizeof (ac__type_new_))
20493 return 0;
20495 return 0;
20497 _ACEOF
20498 rm -f conftest.$ac_objext
20499 if { (ac_try="$ac_compile"
20500 case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503 esac
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_compile") 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
20512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20513 { (case "(($ac_try" in
20514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515 *) ac_try_echo=$ac_try;;
20516 esac
20517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518 (eval "$ac_try") 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; } &&
20522 { ac_try='test -s conftest.$ac_objext'
20523 { (case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20526 esac
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_try") 2>&5
20529 ac_status=$?
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ac_cv_type_request_sense=yes
20533 else
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_cv_type_request_sense=no
20540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20542 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
20543 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
20544 if test $ac_cv_type_request_sense = yes; then
20546 cat >>confdefs.h <<_ACEOF
20547 #define HAVE_REQUEST_SENSE 1
20548 _ACEOF
20554 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
20555 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
20556 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
20558 else
20559 cat >conftest.$ac_ext <<_ACEOF
20560 /* confdefs.h. */
20561 _ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h. */
20565 #ifdef HAVE_LINUX_INPUT_H
20566 #include <linux/input.h>
20567 #endif
20570 main ()
20572 static struct ff_effect ac_aggr;
20573 if (ac_aggr.direction)
20574 return 0;
20576 return 0;
20578 _ACEOF
20579 rm -f conftest.$ac_objext
20580 if { (ac_try="$ac_compile"
20581 case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20584 esac
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_compile") 2>conftest.er1
20587 ac_status=$?
20588 grep -v '^ *+' conftest.er1 >conftest.err
20589 rm -f conftest.er1
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } &&
20593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20594 { (case "(($ac_try" in
20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596 *) ac_try_echo=$ac_try;;
20597 esac
20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599 (eval "$ac_try") 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; } &&
20603 { ac_try='test -s conftest.$ac_objext'
20604 { (case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_try") 2>&5
20610 ac_status=$?
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; }; then
20613 ac_cv_member_struct_ff_effect_direction=yes
20614 else
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h. */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 #ifdef HAVE_LINUX_INPUT_H
20625 #include <linux/input.h>
20626 #endif
20629 main ()
20631 static struct ff_effect ac_aggr;
20632 if (sizeof ac_aggr.direction)
20633 return 0;
20635 return 0;
20637 _ACEOF
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20643 esac
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } &&
20652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20653 { (case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20656 esac
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_try") 2>&5
20659 ac_status=$?
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; } &&
20662 { ac_try='test -s conftest.$ac_objext'
20663 { (case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_try") 2>&5
20669 ac_status=$?
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20672 ac_cv_member_struct_ff_effect_direction=yes
20673 else
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20677 ac_cv_member_struct_ff_effect_direction=no
20680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20685 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20686 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
20687 if test $ac_cv_member_struct_ff_effect_direction = yes; then
20689 cat >>confdefs.h <<_ACEOF
20690 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20691 _ACEOF
20697 { echo "$as_me:$LINENO: checking for sigaddset" >&5
20698 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
20699 if test "${wine_cv_have_sigaddset+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 else
20702 cat >conftest.$ac_ext <<_ACEOF
20703 /* confdefs.h. */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20708 #include <signal.h>
20710 main ()
20712 sigset_t set; sigaddset(&set,SIGTERM);
20714 return 0;
20716 _ACEOF
20717 rm -f conftest.$ac_objext conftest$ac_exeext
20718 if { (ac_try="$ac_link"
20719 case "(($ac_try" in
20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20722 esac
20723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724 (eval "$ac_link") 2>conftest.er1
20725 ac_status=$?
20726 grep -v '^ *+' conftest.er1 >conftest.err
20727 rm -f conftest.er1
20728 cat conftest.err >&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); } &&
20731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20732 { (case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_try") 2>&5
20738 ac_status=$?
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; } &&
20741 { ac_try='test -s conftest$ac_exeext'
20742 { (case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20745 esac
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_try") 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 wine_cv_have_sigaddset=yes
20752 else
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20756 wine_cv_have_sigaddset=no
20759 rm -f core conftest.err conftest.$ac_objext \
20760 conftest$ac_exeext conftest.$ac_ext
20762 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20763 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
20764 if test "$wine_cv_have_sigaddset" = "yes"
20765 then
20767 cat >>confdefs.h <<\_ACEOF
20768 #define HAVE_SIGADDSET 1
20769 _ACEOF
20774 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20775 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
20776 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779 cat >conftest.$ac_ext <<_ACEOF
20780 /* confdefs.h. */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20786 #include <netdb.h>
20789 main ()
20792 char *name=NULL;
20793 struct hostent he;
20794 struct hostent *result;
20795 char *buf=NULL;
20796 int bufsize=0;
20797 int res,errnr;
20798 char *addr=NULL;
20799 int addrlen=0;
20800 int addrtype=0;
20801 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20802 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
20805 return 0;
20807 _ACEOF
20808 rm -f conftest.$ac_objext conftest$ac_exeext
20809 if { (ac_try="$ac_link"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_link") 2>conftest.er1
20816 ac_status=$?
20817 grep -v '^ *+' conftest.er1 >conftest.err
20818 rm -f conftest.er1
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } &&
20822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20823 { (case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_try") 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try='test -s conftest$ac_exeext'
20833 { (case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20836 esac
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_try") 2>&5
20839 ac_status=$?
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 wine_cv_linux_gethostbyname_r_6=yes
20843 else
20844 echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20847 wine_cv_linux_gethostbyname_r_6=no
20851 rm -f core conftest.err conftest.$ac_objext \
20852 conftest$ac_exeext conftest.$ac_ext
20855 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20856 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
20857 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20858 then
20860 cat >>confdefs.h <<\_ACEOF
20861 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
20862 _ACEOF
20866 if test "$ac_cv_header_linux_joystick_h" = "yes"
20867 then
20868 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20869 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
20870 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20872 else
20873 cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h. */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h. */
20880 #include <sys/ioctl.h>
20881 #include <linux/joystick.h>
20883 struct js_event blub;
20884 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20885 #error "no 2.2 header"
20886 #endif
20889 main ()
20891 /*empty*/
20893 return 0;
20895 _ACEOF
20896 rm -f conftest.$ac_objext
20897 if { (ac_try="$ac_compile"
20898 case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20901 esac
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_compile") 2>conftest.er1
20904 ac_status=$?
20905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } &&
20910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20911 { (case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20914 esac
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_try") 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; } &&
20920 { ac_try='test -s conftest.$ac_objext'
20921 { (case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20924 esac
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_try") 2>&5
20927 ac_status=$?
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; }; then
20930 wine_cv_linux_joystick_22_api=yes
20931 else
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 wine_cv_linux_joystick_22_api=no
20938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20942 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
20943 if test "$wine_cv_linux_joystick_22_api" = "yes"
20944 then
20946 cat >>confdefs.h <<\_ACEOF
20947 #define HAVE_LINUX_22_JOYSTICK_API 1
20948 _ACEOF
20954 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20955 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
20956 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 else
20959 cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h. */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 #include <sys/types.h>
20966 #ifdef HAVE_SYS_PARAM_H
20967 # include <sys/param.h>
20968 #endif
20969 #ifdef HAVE_SYS_MOUNT_H
20970 # include <sys/mount.h>
20971 #endif
20972 #ifdef HAVE_SYS_VFS_H
20973 # include <sys/vfs.h>
20974 #endif
20975 #ifdef HAVE_SYS_STATFS_H
20976 # include <sys/statfs.h>
20977 #endif
20980 main ()
20982 static struct statfs ac_aggr;
20983 if (ac_aggr.f_bfree)
20984 return 0;
20986 return 0;
20988 _ACEOF
20989 rm -f conftest.$ac_objext
20990 if { (ac_try="$ac_compile"
20991 case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_compile") 2>conftest.er1
20997 ac_status=$?
20998 grep -v '^ *+' conftest.er1 >conftest.err
20999 rm -f conftest.er1
21000 cat conftest.err >&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } &&
21003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21004 { (case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21007 esac
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_try") 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; } &&
21013 { ac_try='test -s conftest.$ac_objext'
21014 { (case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21017 esac
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_try") 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 ac_cv_member_struct_statfs_f_bfree=yes
21024 else
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028 cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h. */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21034 #include <sys/types.h>
21035 #ifdef HAVE_SYS_PARAM_H
21036 # include <sys/param.h>
21037 #endif
21038 #ifdef HAVE_SYS_MOUNT_H
21039 # include <sys/mount.h>
21040 #endif
21041 #ifdef HAVE_SYS_VFS_H
21042 # include <sys/vfs.h>
21043 #endif
21044 #ifdef HAVE_SYS_STATFS_H
21045 # include <sys/statfs.h>
21046 #endif
21049 main ()
21051 static struct statfs ac_aggr;
21052 if (sizeof ac_aggr.f_bfree)
21053 return 0;
21055 return 0;
21057 _ACEOF
21058 rm -f conftest.$ac_objext
21059 if { (ac_try="$ac_compile"
21060 case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21063 esac
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_compile") 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
21072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21073 { (case "(($ac_try" in
21074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075 *) ac_try_echo=$ac_try;;
21076 esac
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078 (eval "$ac_try") 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; } &&
21082 { ac_try='test -s conftest.$ac_objext'
21083 { (case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21086 esac
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_try") 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; }; then
21092 ac_cv_member_struct_statfs_f_bfree=yes
21093 else
21094 echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 ac_cv_member_struct_statfs_f_bfree=no
21100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21105 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
21106 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
21107 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
21109 cat >>confdefs.h <<_ACEOF
21110 #define HAVE_STRUCT_STATFS_F_BFREE 1
21111 _ACEOF
21115 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
21116 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
21117 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21119 else
21120 cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h. */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 #include <sys/types.h>
21127 #ifdef HAVE_SYS_PARAM_H
21128 # include <sys/param.h>
21129 #endif
21130 #ifdef HAVE_SYS_MOUNT_H
21131 # include <sys/mount.h>
21132 #endif
21133 #ifdef HAVE_SYS_VFS_H
21134 # include <sys/vfs.h>
21135 #endif
21136 #ifdef HAVE_SYS_STATFS_H
21137 # include <sys/statfs.h>
21138 #endif
21141 main ()
21143 static struct statfs ac_aggr;
21144 if (ac_aggr.f_bavail)
21145 return 0;
21147 return 0;
21149 _ACEOF
21150 rm -f conftest.$ac_objext
21151 if { (ac_try="$ac_compile"
21152 case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21155 esac
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_compile") 2>conftest.er1
21158 ac_status=$?
21159 grep -v '^ *+' conftest.er1 >conftest.err
21160 rm -f conftest.er1
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } &&
21164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21165 { (case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21168 esac
21169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170 (eval "$ac_try") 2>&5
21171 ac_status=$?
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; } &&
21174 { ac_try='test -s conftest.$ac_objext'
21175 { (case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21178 esac
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_try") 2>&5
21181 ac_status=$?
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; }; then
21184 ac_cv_member_struct_statfs_f_bavail=yes
21185 else
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 cat >conftest.$ac_ext <<_ACEOF
21190 /* confdefs.h. */
21191 _ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h. */
21195 #include <sys/types.h>
21196 #ifdef HAVE_SYS_PARAM_H
21197 # include <sys/param.h>
21198 #endif
21199 #ifdef HAVE_SYS_MOUNT_H
21200 # include <sys/mount.h>
21201 #endif
21202 #ifdef HAVE_SYS_VFS_H
21203 # include <sys/vfs.h>
21204 #endif
21205 #ifdef HAVE_SYS_STATFS_H
21206 # include <sys/statfs.h>
21207 #endif
21210 main ()
21212 static struct statfs ac_aggr;
21213 if (sizeof ac_aggr.f_bavail)
21214 return 0;
21216 return 0;
21218 _ACEOF
21219 rm -f conftest.$ac_objext
21220 if { (ac_try="$ac_compile"
21221 case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21224 esac
21225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_compile") 2>conftest.er1
21227 ac_status=$?
21228 grep -v '^ *+' conftest.er1 >conftest.err
21229 rm -f conftest.er1
21230 cat conftest.err >&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } &&
21233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21234 { (case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_try") 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest.$ac_objext'
21244 { (case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21247 esac
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_try") 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; }; then
21253 ac_cv_member_struct_statfs_f_bavail=yes
21254 else
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21258 ac_cv_member_struct_statfs_f_bavail=no
21261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21266 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
21267 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
21268 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
21270 cat >>confdefs.h <<_ACEOF
21271 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
21272 _ACEOF
21276 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
21277 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
21278 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 else
21281 cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h. */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 #include <sys/types.h>
21288 #ifdef HAVE_SYS_PARAM_H
21289 # include <sys/param.h>
21290 #endif
21291 #ifdef HAVE_SYS_MOUNT_H
21292 # include <sys/mount.h>
21293 #endif
21294 #ifdef HAVE_SYS_VFS_H
21295 # include <sys/vfs.h>
21296 #endif
21297 #ifdef HAVE_SYS_STATFS_H
21298 # include <sys/statfs.h>
21299 #endif
21302 main ()
21304 static struct statfs ac_aggr;
21305 if (ac_aggr.f_frsize)
21306 return 0;
21308 return 0;
21310 _ACEOF
21311 rm -f conftest.$ac_objext
21312 if { (ac_try="$ac_compile"
21313 case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21316 esac
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_compile") 2>conftest.er1
21319 ac_status=$?
21320 grep -v '^ *+' conftest.er1 >conftest.err
21321 rm -f conftest.er1
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } &&
21325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21326 { (case "(($ac_try" in
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21329 esac
21330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331 (eval "$ac_try") 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; } &&
21335 { ac_try='test -s conftest.$ac_objext'
21336 { (case "(($ac_try" in
21337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338 *) ac_try_echo=$ac_try;;
21339 esac
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341 (eval "$ac_try") 2>&5
21342 ac_status=$?
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; }; then
21345 ac_cv_member_struct_statfs_f_frsize=yes
21346 else
21347 echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21350 cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h. */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21356 #include <sys/types.h>
21357 #ifdef HAVE_SYS_PARAM_H
21358 # include <sys/param.h>
21359 #endif
21360 #ifdef HAVE_SYS_MOUNT_H
21361 # include <sys/mount.h>
21362 #endif
21363 #ifdef HAVE_SYS_VFS_H
21364 # include <sys/vfs.h>
21365 #endif
21366 #ifdef HAVE_SYS_STATFS_H
21367 # include <sys/statfs.h>
21368 #endif
21371 main ()
21373 static struct statfs ac_aggr;
21374 if (sizeof ac_aggr.f_frsize)
21375 return 0;
21377 return 0;
21379 _ACEOF
21380 rm -f conftest.$ac_objext
21381 if { (ac_try="$ac_compile"
21382 case "(($ac_try" in
21383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384 *) ac_try_echo=$ac_try;;
21385 esac
21386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21387 (eval "$ac_compile") 2>conftest.er1
21388 ac_status=$?
21389 grep -v '^ *+' conftest.er1 >conftest.err
21390 rm -f conftest.er1
21391 cat conftest.err >&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } &&
21394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21395 { (case "(($ac_try" in
21396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397 *) ac_try_echo=$ac_try;;
21398 esac
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400 (eval "$ac_try") 2>&5
21401 ac_status=$?
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; } &&
21404 { ac_try='test -s conftest.$ac_objext'
21405 { (case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21408 esac
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_try") 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; }; then
21414 ac_cv_member_struct_statfs_f_frsize=yes
21415 else
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21419 ac_cv_member_struct_statfs_f_frsize=no
21422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
21428 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
21429 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
21431 cat >>confdefs.h <<_ACEOF
21432 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
21433 _ACEOF
21437 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
21438 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
21439 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 else
21442 cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h. */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21448 #include <sys/types.h>
21449 #ifdef HAVE_SYS_PARAM_H
21450 # include <sys/param.h>
21451 #endif
21452 #ifdef HAVE_SYS_MOUNT_H
21453 # include <sys/mount.h>
21454 #endif
21455 #ifdef HAVE_SYS_VFS_H
21456 # include <sys/vfs.h>
21457 #endif
21458 #ifdef HAVE_SYS_STATFS_H
21459 # include <sys/statfs.h>
21460 #endif
21463 main ()
21465 static struct statfs ac_aggr;
21466 if (ac_aggr.f_ffree)
21467 return 0;
21469 return 0;
21471 _ACEOF
21472 rm -f conftest.$ac_objext
21473 if { (ac_try="$ac_compile"
21474 case "(($ac_try" in
21475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476 *) ac_try_echo=$ac_try;;
21477 esac
21478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21479 (eval "$ac_compile") 2>conftest.er1
21480 ac_status=$?
21481 grep -v '^ *+' conftest.er1 >conftest.err
21482 rm -f conftest.er1
21483 cat conftest.err >&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } &&
21486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21487 { (case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21490 esac
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_try") 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; } &&
21496 { ac_try='test -s conftest.$ac_objext'
21497 { (case "(($ac_try" in
21498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21499 *) ac_try_echo=$ac_try;;
21500 esac
21501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21502 (eval "$ac_try") 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21506 ac_cv_member_struct_statfs_f_ffree=yes
21507 else
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21511 cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h. */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21517 #include <sys/types.h>
21518 #ifdef HAVE_SYS_PARAM_H
21519 # include <sys/param.h>
21520 #endif
21521 #ifdef HAVE_SYS_MOUNT_H
21522 # include <sys/mount.h>
21523 #endif
21524 #ifdef HAVE_SYS_VFS_H
21525 # include <sys/vfs.h>
21526 #endif
21527 #ifdef HAVE_SYS_STATFS_H
21528 # include <sys/statfs.h>
21529 #endif
21532 main ()
21534 static struct statfs ac_aggr;
21535 if (sizeof ac_aggr.f_ffree)
21536 return 0;
21538 return 0;
21540 _ACEOF
21541 rm -f conftest.$ac_objext
21542 if { (ac_try="$ac_compile"
21543 case "(($ac_try" in
21544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545 *) ac_try_echo=$ac_try;;
21546 esac
21547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21548 (eval "$ac_compile") 2>conftest.er1
21549 ac_status=$?
21550 grep -v '^ *+' conftest.er1 >conftest.err
21551 rm -f conftest.er1
21552 cat conftest.err >&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } &&
21555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21556 { (case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21559 esac
21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561 (eval "$ac_try") 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; } &&
21565 { ac_try='test -s conftest.$ac_objext'
21566 { (case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21569 esac
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571 (eval "$ac_try") 2>&5
21572 ac_status=$?
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); }; }; then
21575 ac_cv_member_struct_statfs_f_ffree=yes
21576 else
21577 echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21580 ac_cv_member_struct_statfs_f_ffree=no
21583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21588 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21589 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
21590 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21592 cat >>confdefs.h <<_ACEOF
21593 #define HAVE_STRUCT_STATFS_F_FFREE 1
21594 _ACEOF
21598 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21599 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
21600 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 else
21603 cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h. */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 #include <sys/types.h>
21610 #ifdef HAVE_SYS_PARAM_H
21611 # include <sys/param.h>
21612 #endif
21613 #ifdef HAVE_SYS_MOUNT_H
21614 # include <sys/mount.h>
21615 #endif
21616 #ifdef HAVE_SYS_VFS_H
21617 # include <sys/vfs.h>
21618 #endif
21619 #ifdef HAVE_SYS_STATFS_H
21620 # include <sys/statfs.h>
21621 #endif
21624 main ()
21626 static struct statfs ac_aggr;
21627 if (ac_aggr.f_favail)
21628 return 0;
21630 return 0;
21632 _ACEOF
21633 rm -f conftest.$ac_objext
21634 if { (ac_try="$ac_compile"
21635 case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21638 esac
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_compile") 2>conftest.er1
21641 ac_status=$?
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } &&
21647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21648 { (case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_try") 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest.$ac_objext'
21658 { (case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21661 esac
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_try") 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 ac_cv_member_struct_statfs_f_favail=yes
21668 else
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21672 cat >conftest.$ac_ext <<_ACEOF
21673 /* confdefs.h. */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 #include <sys/types.h>
21679 #ifdef HAVE_SYS_PARAM_H
21680 # include <sys/param.h>
21681 #endif
21682 #ifdef HAVE_SYS_MOUNT_H
21683 # include <sys/mount.h>
21684 #endif
21685 #ifdef HAVE_SYS_VFS_H
21686 # include <sys/vfs.h>
21687 #endif
21688 #ifdef HAVE_SYS_STATFS_H
21689 # include <sys/statfs.h>
21690 #endif
21693 main ()
21695 static struct statfs ac_aggr;
21696 if (sizeof ac_aggr.f_favail)
21697 return 0;
21699 return 0;
21701 _ACEOF
21702 rm -f conftest.$ac_objext
21703 if { (ac_try="$ac_compile"
21704 case "(($ac_try" in
21705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706 *) ac_try_echo=$ac_try;;
21707 esac
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709 (eval "$ac_compile") 2>conftest.er1
21710 ac_status=$?
21711 grep -v '^ *+' conftest.er1 >conftest.err
21712 rm -f conftest.er1
21713 cat conftest.err >&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } &&
21716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21717 { (case "(($ac_try" in
21718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719 *) ac_try_echo=$ac_try;;
21720 esac
21721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21722 (eval "$ac_try") 2>&5
21723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; } &&
21726 { ac_try='test -s conftest.$ac_objext'
21727 { (case "(($ac_try" in
21728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729 *) ac_try_echo=$ac_try;;
21730 esac
21731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21732 (eval "$ac_try") 2>&5
21733 ac_status=$?
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; }; then
21736 ac_cv_member_struct_statfs_f_favail=yes
21737 else
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21741 ac_cv_member_struct_statfs_f_favail=no
21744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21749 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21750 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
21751 if test $ac_cv_member_struct_statfs_f_favail = yes; then
21753 cat >>confdefs.h <<_ACEOF
21754 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
21755 _ACEOF
21759 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21760 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
21761 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764 cat >conftest.$ac_ext <<_ACEOF
21765 /* confdefs.h. */
21766 _ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21770 #include <sys/types.h>
21771 #ifdef HAVE_SYS_PARAM_H
21772 # include <sys/param.h>
21773 #endif
21774 #ifdef HAVE_SYS_MOUNT_H
21775 # include <sys/mount.h>
21776 #endif
21777 #ifdef HAVE_SYS_VFS_H
21778 # include <sys/vfs.h>
21779 #endif
21780 #ifdef HAVE_SYS_STATFS_H
21781 # include <sys/statfs.h>
21782 #endif
21785 main ()
21787 static struct statfs ac_aggr;
21788 if (ac_aggr.f_namelen)
21789 return 0;
21791 return 0;
21793 _ACEOF
21794 rm -f conftest.$ac_objext
21795 if { (ac_try="$ac_compile"
21796 case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799 esac
21800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_compile") 2>conftest.er1
21802 ac_status=$?
21803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } &&
21808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21809 { (case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21812 esac
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814 (eval "$ac_try") 2>&5
21815 ac_status=$?
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; } &&
21818 { ac_try='test -s conftest.$ac_objext'
21819 { (case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21822 esac
21823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21824 (eval "$ac_try") 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; }; then
21828 ac_cv_member_struct_statfs_f_namelen=yes
21829 else
21830 echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21833 cat >conftest.$ac_ext <<_ACEOF
21834 /* confdefs.h. */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 #include <sys/types.h>
21840 #ifdef HAVE_SYS_PARAM_H
21841 # include <sys/param.h>
21842 #endif
21843 #ifdef HAVE_SYS_MOUNT_H
21844 # include <sys/mount.h>
21845 #endif
21846 #ifdef HAVE_SYS_VFS_H
21847 # include <sys/vfs.h>
21848 #endif
21849 #ifdef HAVE_SYS_STATFS_H
21850 # include <sys/statfs.h>
21851 #endif
21854 main ()
21856 static struct statfs ac_aggr;
21857 if (sizeof ac_aggr.f_namelen)
21858 return 0;
21860 return 0;
21862 _ACEOF
21863 rm -f conftest.$ac_objext
21864 if { (ac_try="$ac_compile"
21865 case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21868 esac
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870 (eval "$ac_compile") 2>conftest.er1
21871 ac_status=$?
21872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
21877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21878 { (case "(($ac_try" in
21879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880 *) ac_try_echo=$ac_try;;
21881 esac
21882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883 (eval "$ac_try") 2>&5
21884 ac_status=$?
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; } &&
21887 { ac_try='test -s conftest.$ac_objext'
21888 { (case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_try") 2>&5
21894 ac_status=$?
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; }; then
21897 ac_cv_member_struct_statfs_f_namelen=yes
21898 else
21899 echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21902 ac_cv_member_struct_statfs_f_namelen=no
21905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21911 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
21912 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21914 cat >>confdefs.h <<_ACEOF
21915 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
21916 _ACEOF
21922 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21923 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
21924 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 else
21927 cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h. */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21933 #ifdef HAVE_SYS_STATVFS_H
21934 #include <sys/statvfs.h>
21935 #endif
21938 main ()
21940 static struct statvfs ac_aggr;
21941 if (ac_aggr.f_blocks)
21942 return 0;
21944 return 0;
21946 _ACEOF
21947 rm -f conftest.$ac_objext
21948 if { (ac_try="$ac_compile"
21949 case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21952 esac
21953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954 (eval "$ac_compile") 2>conftest.er1
21955 ac_status=$?
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
21961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21962 { (case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21965 esac
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_try") 2>&5
21968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; } &&
21971 { ac_try='test -s conftest.$ac_objext'
21972 { (case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21975 esac
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_try") 2>&5
21978 ac_status=$?
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); }; }; then
21981 ac_cv_member_struct_statvfs_f_blocks=yes
21982 else
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 cat >conftest.$ac_ext <<_ACEOF
21987 /* confdefs.h. */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21992 #ifdef HAVE_SYS_STATVFS_H
21993 #include <sys/statvfs.h>
21994 #endif
21997 main ()
21999 static struct statvfs ac_aggr;
22000 if (sizeof ac_aggr.f_blocks)
22001 return 0;
22003 return 0;
22005 _ACEOF
22006 rm -f conftest.$ac_objext
22007 if { (ac_try="$ac_compile"
22008 case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22011 esac
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_compile") 2>conftest.er1
22014 ac_status=$?
22015 grep -v '^ *+' conftest.er1 >conftest.err
22016 rm -f conftest.er1
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } &&
22020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22021 { (case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22024 esac
22025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026 (eval "$ac_try") 2>&5
22027 ac_status=$?
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; } &&
22030 { ac_try='test -s conftest.$ac_objext'
22031 { (case "(($ac_try" in
22032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033 *) ac_try_echo=$ac_try;;
22034 esac
22035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036 (eval "$ac_try") 2>&5
22037 ac_status=$?
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); }; }; then
22040 ac_cv_member_struct_statvfs_f_blocks=yes
22041 else
22042 echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22045 ac_cv_member_struct_statvfs_f_blocks=no
22048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22053 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
22054 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
22055 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
22057 cat >>confdefs.h <<_ACEOF
22058 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
22059 _ACEOF
22065 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
22066 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
22067 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
22068 echo $ECHO_N "(cached) $ECHO_C" >&6
22069 else
22070 cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h. */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22076 #include <sys/types.h>
22077 #ifdef HAVE_SYS_SOCKET_H
22078 # include <sys/socket.h>
22079 #endif
22080 #ifdef HAVE_SYS_UN_H
22081 # include <sys/un.h>
22082 #endif
22085 main ()
22087 static struct msghdr ac_aggr;
22088 if (ac_aggr.msg_accrights)
22089 return 0;
22091 return 0;
22093 _ACEOF
22094 rm -f conftest.$ac_objext
22095 if { (ac_try="$ac_compile"
22096 case "(($ac_try" in
22097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098 *) ac_try_echo=$ac_try;;
22099 esac
22100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101 (eval "$ac_compile") 2>conftest.er1
22102 ac_status=$?
22103 grep -v '^ *+' conftest.er1 >conftest.err
22104 rm -f conftest.er1
22105 cat conftest.err >&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); } &&
22108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22109 { (case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22112 esac
22113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114 (eval "$ac_try") 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; } &&
22118 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; }; then
22128 ac_cv_member_struct_msghdr_msg_accrights=yes
22129 else
22130 echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22133 cat >conftest.$ac_ext <<_ACEOF
22134 /* confdefs.h. */
22135 _ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22139 #include <sys/types.h>
22140 #ifdef HAVE_SYS_SOCKET_H
22141 # include <sys/socket.h>
22142 #endif
22143 #ifdef HAVE_SYS_UN_H
22144 # include <sys/un.h>
22145 #endif
22148 main ()
22150 static struct msghdr ac_aggr;
22151 if (sizeof ac_aggr.msg_accrights)
22152 return 0;
22154 return 0;
22156 _ACEOF
22157 rm -f conftest.$ac_objext
22158 if { (ac_try="$ac_compile"
22159 case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22162 esac
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_compile") 2>conftest.er1
22165 ac_status=$?
22166 grep -v '^ *+' conftest.er1 >conftest.err
22167 rm -f conftest.er1
22168 cat conftest.err >&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } &&
22171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22172 { (case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22175 esac
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_try") 2>&5
22178 ac_status=$?
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; } &&
22181 { ac_try='test -s conftest.$ac_objext'
22182 { (case "(($ac_try" in
22183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184 *) ac_try_echo=$ac_try;;
22185 esac
22186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22187 (eval "$ac_try") 2>&5
22188 ac_status=$?
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); }; }; then
22191 ac_cv_member_struct_msghdr_msg_accrights=yes
22192 else
22193 echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22196 ac_cv_member_struct_msghdr_msg_accrights=no
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
22205 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
22206 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
22208 cat >>confdefs.h <<_ACEOF
22209 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
22210 _ACEOF
22214 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22215 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
22216 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22218 else
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. */
22225 #include <sys/types.h>
22226 #ifdef HAVE_SYS_SOCKET_H
22227 # include <sys/socket.h>
22228 #endif
22229 #ifdef HAVE_SYS_UN_H
22230 # include <sys/un.h>
22231 #endif
22234 main ()
22236 static struct sockaddr ac_aggr;
22237 if (ac_aggr.sa_len)
22238 return 0;
22240 return 0;
22242 _ACEOF
22243 rm -f conftest.$ac_objext
22244 if { (ac_try="$ac_compile"
22245 case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22248 esac
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_compile") 2>conftest.er1
22251 ac_status=$?
22252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } &&
22257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22258 { (case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22261 esac
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_try") 2>&5
22264 ac_status=$?
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; } &&
22267 { ac_try='test -s conftest.$ac_objext'
22268 { (case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_try") 2>&5
22274 ac_status=$?
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; }; then
22277 ac_cv_member_struct_sockaddr_sa_len=yes
22278 else
22279 echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22282 cat >conftest.$ac_ext <<_ACEOF
22283 /* confdefs.h. */
22284 _ACEOF
22285 cat confdefs.h >>conftest.$ac_ext
22286 cat >>conftest.$ac_ext <<_ACEOF
22287 /* end confdefs.h. */
22288 #include <sys/types.h>
22289 #ifdef HAVE_SYS_SOCKET_H
22290 # include <sys/socket.h>
22291 #endif
22292 #ifdef HAVE_SYS_UN_H
22293 # include <sys/un.h>
22294 #endif
22297 main ()
22299 static struct sockaddr ac_aggr;
22300 if (sizeof ac_aggr.sa_len)
22301 return 0;
22303 return 0;
22305 _ACEOF
22306 rm -f conftest.$ac_objext
22307 if { (ac_try="$ac_compile"
22308 case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22311 esac
22312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22313 (eval "$ac_compile") 2>conftest.er1
22314 ac_status=$?
22315 grep -v '^ *+' conftest.er1 >conftest.err
22316 rm -f conftest.er1
22317 cat conftest.err >&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } &&
22320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22321 { (case "(($ac_try" in
22322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323 *) ac_try_echo=$ac_try;;
22324 esac
22325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22326 (eval "$ac_try") 2>&5
22327 ac_status=$?
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; } &&
22330 { ac_try='test -s conftest.$ac_objext'
22331 { (case "(($ac_try" in
22332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333 *) ac_try_echo=$ac_try;;
22334 esac
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336 (eval "$ac_try") 2>&5
22337 ac_status=$?
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; }; then
22340 ac_cv_member_struct_sockaddr_sa_len=yes
22341 else
22342 echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22345 ac_cv_member_struct_sockaddr_sa_len=no
22348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22353 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22354 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22355 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22357 cat >>confdefs.h <<_ACEOF
22358 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22359 _ACEOF
22363 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
22364 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
22365 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
22366 echo $ECHO_N "(cached) $ECHO_C" >&6
22367 else
22368 cat >conftest.$ac_ext <<_ACEOF
22369 /* confdefs.h. */
22370 _ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 #include <sys/types.h>
22375 #ifdef HAVE_SYS_SOCKET_H
22376 # include <sys/socket.h>
22377 #endif
22378 #ifdef HAVE_SYS_UN_H
22379 # include <sys/un.h>
22380 #endif
22383 main ()
22385 static struct sockaddr_un ac_aggr;
22386 if (ac_aggr.sun_len)
22387 return 0;
22389 return 0;
22391 _ACEOF
22392 rm -f conftest.$ac_objext
22393 if { (ac_try="$ac_compile"
22394 case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22397 esac
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_compile") 2>conftest.er1
22400 ac_status=$?
22401 grep -v '^ *+' conftest.er1 >conftest.err
22402 rm -f conftest.er1
22403 cat conftest.err >&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } &&
22406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22407 { (case "(($ac_try" in
22408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22409 *) ac_try_echo=$ac_try;;
22410 esac
22411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22412 (eval "$ac_try") 2>&5
22413 ac_status=$?
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; } &&
22416 { ac_try='test -s conftest.$ac_objext'
22417 { (case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22420 esac
22421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422 (eval "$ac_try") 2>&5
22423 ac_status=$?
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); }; }; then
22426 ac_cv_member_struct_sockaddr_un_sun_len=yes
22427 else
22428 echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22431 cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h. */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 #include <sys/types.h>
22438 #ifdef HAVE_SYS_SOCKET_H
22439 # include <sys/socket.h>
22440 #endif
22441 #ifdef HAVE_SYS_UN_H
22442 # include <sys/un.h>
22443 #endif
22446 main ()
22448 static struct sockaddr_un ac_aggr;
22449 if (sizeof ac_aggr.sun_len)
22450 return 0;
22452 return 0;
22454 _ACEOF
22455 rm -f conftest.$ac_objext
22456 if { (ac_try="$ac_compile"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_compile") 2>conftest.er1
22463 ac_status=$?
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } &&
22469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22470 { (case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_try") 2>&5
22476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest.$ac_objext'
22480 { (case "(($ac_try" in
22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482 *) ac_try_echo=$ac_try;;
22483 esac
22484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485 (eval "$ac_try") 2>&5
22486 ac_status=$?
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; }; then
22489 ac_cv_member_struct_sockaddr_un_sun_len=yes
22490 else
22491 echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22494 ac_cv_member_struct_sockaddr_un_sun_len=no
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
22503 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
22504 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
22506 cat >>confdefs.h <<_ACEOF
22507 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22508 _ACEOF
22514 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
22515 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
22516 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
22517 echo $ECHO_N "(cached) $ECHO_C" >&6
22518 else
22519 cat >conftest.$ac_ext <<_ACEOF
22520 /* confdefs.h. */
22521 _ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h. */
22525 #include <sys/types.h>
22526 #ifdef HAVE_SCSI_SG_H
22527 #include <scsi/sg.h>
22528 #endif
22531 main ()
22533 static scsireq_t ac_aggr;
22534 if (ac_aggr.cmd)
22535 return 0;
22537 return 0;
22539 _ACEOF
22540 rm -f conftest.$ac_objext
22541 if { (ac_try="$ac_compile"
22542 case "(($ac_try" in
22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22545 esac
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_compile") 2>conftest.er1
22548 ac_status=$?
22549 grep -v '^ *+' conftest.er1 >conftest.err
22550 rm -f conftest.er1
22551 cat conftest.err >&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } &&
22554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22555 { (case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22558 esac
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_try") 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; } &&
22564 { ac_try='test -s conftest.$ac_objext'
22565 { (case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22568 esac
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570 (eval "$ac_try") 2>&5
22571 ac_status=$?
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; }; then
22574 ac_cv_member_scsireq_t_cmd=yes
22575 else
22576 echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22579 cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h. */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585 #include <sys/types.h>
22586 #ifdef HAVE_SCSI_SG_H
22587 #include <scsi/sg.h>
22588 #endif
22591 main ()
22593 static scsireq_t ac_aggr;
22594 if (sizeof ac_aggr.cmd)
22595 return 0;
22597 return 0;
22599 _ACEOF
22600 rm -f conftest.$ac_objext
22601 if { (ac_try="$ac_compile"
22602 case "(($ac_try" in
22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604 *) ac_try_echo=$ac_try;;
22605 esac
22606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22607 (eval "$ac_compile") 2>conftest.er1
22608 ac_status=$?
22609 grep -v '^ *+' conftest.er1 >conftest.err
22610 rm -f conftest.er1
22611 cat conftest.err >&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } &&
22614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22615 { (case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22618 esac
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620 (eval "$ac_try") 2>&5
22621 ac_status=$?
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; } &&
22624 { ac_try='test -s conftest.$ac_objext'
22625 { (case "(($ac_try" in
22626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22628 esac
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630 (eval "$ac_try") 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; }; then
22634 ac_cv_member_scsireq_t_cmd=yes
22635 else
22636 echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22639 ac_cv_member_scsireq_t_cmd=no
22642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22648 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
22649 if test $ac_cv_member_scsireq_t_cmd = yes; then
22651 cat >>confdefs.h <<_ACEOF
22652 #define HAVE_SCSIREQ_T_CMD 1
22653 _ACEOF
22657 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22658 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
22659 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22661 else
22662 cat >conftest.$ac_ext <<_ACEOF
22663 /* confdefs.h. */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 #include <sys/types.h>
22669 #ifdef HAVE_SCSI_SG_H
22670 #include <scsi/sg.h>
22671 #endif
22674 main ()
22676 static sg_io_hdr_t ac_aggr;
22677 if (ac_aggr.interface_id)
22678 return 0;
22680 return 0;
22682 _ACEOF
22683 rm -f conftest.$ac_objext
22684 if { (ac_try="$ac_compile"
22685 case "(($ac_try" in
22686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22687 *) ac_try_echo=$ac_try;;
22688 esac
22689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22690 (eval "$ac_compile") 2>conftest.er1
22691 ac_status=$?
22692 grep -v '^ *+' conftest.er1 >conftest.err
22693 rm -f conftest.er1
22694 cat conftest.err >&5
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); } &&
22697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22698 { (case "(($ac_try" in
22699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700 *) ac_try_echo=$ac_try;;
22701 esac
22702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703 (eval "$ac_try") 2>&5
22704 ac_status=$?
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); }; } &&
22707 { ac_try='test -s conftest.$ac_objext'
22708 { (case "(($ac_try" in
22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22711 esac
22712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22713 (eval "$ac_try") 2>&5
22714 ac_status=$?
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); }; }; then
22717 ac_cv_member_sg_io_hdr_t_interface_id=yes
22718 else
22719 echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22722 cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h. */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22728 #include <sys/types.h>
22729 #ifdef HAVE_SCSI_SG_H
22730 #include <scsi/sg.h>
22731 #endif
22734 main ()
22736 static sg_io_hdr_t ac_aggr;
22737 if (sizeof ac_aggr.interface_id)
22738 return 0;
22740 return 0;
22742 _ACEOF
22743 rm -f conftest.$ac_objext
22744 if { (ac_try="$ac_compile"
22745 case "(($ac_try" in
22746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747 *) ac_try_echo=$ac_try;;
22748 esac
22749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22750 (eval "$ac_compile") 2>conftest.er1
22751 ac_status=$?
22752 grep -v '^ *+' conftest.er1 >conftest.err
22753 rm -f conftest.er1
22754 cat conftest.err >&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } &&
22757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22758 { (case "(($ac_try" in
22759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22760 *) ac_try_echo=$ac_try;;
22761 esac
22762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22763 (eval "$ac_try") 2>&5
22764 ac_status=$?
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); }; } &&
22767 { ac_try='test -s conftest.$ac_objext'
22768 { (case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22771 esac
22772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773 (eval "$ac_try") 2>&5
22774 ac_status=$?
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; }; then
22777 ac_cv_member_sg_io_hdr_t_interface_id=yes
22778 else
22779 echo "$as_me: failed program was:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22782 ac_cv_member_sg_io_hdr_t_interface_id=no
22785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22790 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22791 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
22792 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22794 cat >>confdefs.h <<_ACEOF
22795 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22796 _ACEOF
22802 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22803 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
22804 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22805 echo $ECHO_N "(cached) $ECHO_C" >&6
22806 else
22807 cat >conftest.$ac_ext <<_ACEOF
22808 /* confdefs.h. */
22809 _ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h. */
22813 #include <signal.h>
22816 main ()
22818 static siginfo_t ac_aggr;
22819 if (ac_aggr.si_fd)
22820 return 0;
22822 return 0;
22824 _ACEOF
22825 rm -f conftest.$ac_objext
22826 if { (ac_try="$ac_compile"
22827 case "(($ac_try" in
22828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829 *) ac_try_echo=$ac_try;;
22830 esac
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_compile") 2>conftest.er1
22833 ac_status=$?
22834 grep -v '^ *+' conftest.er1 >conftest.err
22835 rm -f conftest.er1
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } &&
22839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22840 { (case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22843 esac
22844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_try") 2>&5
22846 ac_status=$?
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; } &&
22849 { ac_try='test -s conftest.$ac_objext'
22850 { (case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22853 esac
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_try") 2>&5
22856 ac_status=$?
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }; then
22859 ac_cv_member_siginfo_t_si_fd=yes
22860 else
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22864 cat >conftest.$ac_ext <<_ACEOF
22865 /* confdefs.h. */
22866 _ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h. */
22870 #include <signal.h>
22873 main ()
22875 static siginfo_t ac_aggr;
22876 if (sizeof ac_aggr.si_fd)
22877 return 0;
22879 return 0;
22881 _ACEOF
22882 rm -f conftest.$ac_objext
22883 if { (ac_try="$ac_compile"
22884 case "(($ac_try" in
22885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886 *) ac_try_echo=$ac_try;;
22887 esac
22888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889 (eval "$ac_compile") 2>conftest.er1
22890 ac_status=$?
22891 grep -v '^ *+' conftest.er1 >conftest.err
22892 rm -f conftest.er1
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } &&
22896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22897 { (case "(($ac_try" in
22898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899 *) ac_try_echo=$ac_try;;
22900 esac
22901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902 (eval "$ac_try") 2>&5
22903 ac_status=$?
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; } &&
22906 { ac_try='test -s conftest.$ac_objext'
22907 { (case "(($ac_try" in
22908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909 *) ac_try_echo=$ac_try;;
22910 esac
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912 (eval "$ac_try") 2>&5
22913 ac_status=$?
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); }; }; then
22916 ac_cv_member_siginfo_t_si_fd=yes
22917 else
22918 echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22921 ac_cv_member_siginfo_t_si_fd=no
22924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22929 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22930 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
22931 if test $ac_cv_member_siginfo_t_si_fd = yes; then
22933 cat >>confdefs.h <<_ACEOF
22934 #define HAVE_SIGINFO_T_SI_FD 1
22935 _ACEOF
22941 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22942 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
22943 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22944 echo $ECHO_N "(cached) $ECHO_C" >&6
22945 else
22946 cat >conftest.$ac_ext <<_ACEOF
22947 /* confdefs.h. */
22948 _ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22952 #include <sys/types.h>
22953 #ifdef HAVE_SYS_MTIO_H
22954 #include <sys/mtio.h>
22955 #endif
22958 main ()
22960 static struct mtget ac_aggr;
22961 if (ac_aggr.mt_blksiz)
22962 return 0;
22964 return 0;
22966 _ACEOF
22967 rm -f conftest.$ac_objext
22968 if { (ac_try="$ac_compile"
22969 case "(($ac_try" in
22970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971 *) ac_try_echo=$ac_try;;
22972 esac
22973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22974 (eval "$ac_compile") 2>conftest.er1
22975 ac_status=$?
22976 grep -v '^ *+' conftest.er1 >conftest.err
22977 rm -f conftest.er1
22978 cat conftest.err >&5
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); } &&
22981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22982 { (case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22985 esac
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_try") 2>&5
22988 ac_status=$?
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; } &&
22991 { ac_try='test -s conftest.$ac_objext'
22992 { (case "(($ac_try" in
22993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994 *) ac_try_echo=$ac_try;;
22995 esac
22996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997 (eval "$ac_try") 2>&5
22998 ac_status=$?
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; }; then
23001 ac_cv_member_struct_mtget_mt_blksiz=yes
23002 else
23003 echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23006 cat >conftest.$ac_ext <<_ACEOF
23007 /* confdefs.h. */
23008 _ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h. */
23012 #include <sys/types.h>
23013 #ifdef HAVE_SYS_MTIO_H
23014 #include <sys/mtio.h>
23015 #endif
23018 main ()
23020 static struct mtget ac_aggr;
23021 if (sizeof ac_aggr.mt_blksiz)
23022 return 0;
23024 return 0;
23026 _ACEOF
23027 rm -f conftest.$ac_objext
23028 if { (ac_try="$ac_compile"
23029 case "(($ac_try" in
23030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031 *) ac_try_echo=$ac_try;;
23032 esac
23033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23034 (eval "$ac_compile") 2>conftest.er1
23035 ac_status=$?
23036 grep -v '^ *+' conftest.er1 >conftest.err
23037 rm -f conftest.er1
23038 cat conftest.err >&5
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); } &&
23041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23042 { (case "(($ac_try" in
23043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044 *) ac_try_echo=$ac_try;;
23045 esac
23046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23047 (eval "$ac_try") 2>&5
23048 ac_status=$?
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; } &&
23051 { ac_try='test -s conftest.$ac_objext'
23052 { (case "(($ac_try" in
23053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054 *) ac_try_echo=$ac_try;;
23055 esac
23056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23057 (eval "$ac_try") 2>&5
23058 ac_status=$?
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); }; }; then
23061 ac_cv_member_struct_mtget_mt_blksiz=yes
23062 else
23063 echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23066 ac_cv_member_struct_mtget_mt_blksiz=no
23069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23074 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
23075 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
23076 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
23078 cat >>confdefs.h <<_ACEOF
23079 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
23080 _ACEOF
23084 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
23085 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
23086 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23088 else
23089 cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h. */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23095 #include <sys/types.h>
23096 #ifdef HAVE_SYS_MTIO_H
23097 #include <sys/mtio.h>
23098 #endif
23101 main ()
23103 static struct mtget ac_aggr;
23104 if (ac_aggr.mt_gstat)
23105 return 0;
23107 return 0;
23109 _ACEOF
23110 rm -f conftest.$ac_objext
23111 if { (ac_try="$ac_compile"
23112 case "(($ac_try" in
23113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114 *) ac_try_echo=$ac_try;;
23115 esac
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117 (eval "$ac_compile") 2>conftest.er1
23118 ac_status=$?
23119 grep -v '^ *+' conftest.er1 >conftest.err
23120 rm -f conftest.er1
23121 cat conftest.err >&5
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); } &&
23124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23125 { (case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23128 esac
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_try") 2>&5
23131 ac_status=$?
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); }; } &&
23134 { ac_try='test -s conftest.$ac_objext'
23135 { (case "(($ac_try" in
23136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137 *) ac_try_echo=$ac_try;;
23138 esac
23139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140 (eval "$ac_try") 2>&5
23141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; }; then
23144 ac_cv_member_struct_mtget_mt_gstat=yes
23145 else
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23149 cat >conftest.$ac_ext <<_ACEOF
23150 /* confdefs.h. */
23151 _ACEOF
23152 cat confdefs.h >>conftest.$ac_ext
23153 cat >>conftest.$ac_ext <<_ACEOF
23154 /* end confdefs.h. */
23155 #include <sys/types.h>
23156 #ifdef HAVE_SYS_MTIO_H
23157 #include <sys/mtio.h>
23158 #endif
23161 main ()
23163 static struct mtget ac_aggr;
23164 if (sizeof ac_aggr.mt_gstat)
23165 return 0;
23167 return 0;
23169 _ACEOF
23170 rm -f conftest.$ac_objext
23171 if { (ac_try="$ac_compile"
23172 case "(($ac_try" in
23173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23174 *) ac_try_echo=$ac_try;;
23175 esac
23176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23177 (eval "$ac_compile") 2>conftest.er1
23178 ac_status=$?
23179 grep -v '^ *+' conftest.er1 >conftest.err
23180 rm -f conftest.er1
23181 cat conftest.err >&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } &&
23184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23185 { (case "(($ac_try" in
23186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23187 *) ac_try_echo=$ac_try;;
23188 esac
23189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23190 (eval "$ac_try") 2>&5
23191 ac_status=$?
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; } &&
23194 { ac_try='test -s conftest.$ac_objext'
23195 { (case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23198 esac
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200 (eval "$ac_try") 2>&5
23201 ac_status=$?
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); }; }; then
23204 ac_cv_member_struct_mtget_mt_gstat=yes
23205 else
23206 echo "$as_me: failed program was:" >&5
23207 sed 's/^/| /' conftest.$ac_ext >&5
23209 ac_cv_member_struct_mtget_mt_gstat=no
23212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23217 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
23218 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
23219 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
23221 cat >>confdefs.h <<_ACEOF
23222 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
23223 _ACEOF
23227 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
23228 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
23229 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23231 else
23232 cat >conftest.$ac_ext <<_ACEOF
23233 /* confdefs.h. */
23234 _ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h. */
23238 #include <sys/types.h>
23239 #ifdef HAVE_SYS_MTIO_H
23240 #include <sys/mtio.h>
23241 #endif
23244 main ()
23246 static struct mtget ac_aggr;
23247 if (ac_aggr.mt_blkno)
23248 return 0;
23250 return 0;
23252 _ACEOF
23253 rm -f conftest.$ac_objext
23254 if { (ac_try="$ac_compile"
23255 case "(($ac_try" in
23256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23257 *) ac_try_echo=$ac_try;;
23258 esac
23259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23260 (eval "$ac_compile") 2>conftest.er1
23261 ac_status=$?
23262 grep -v '^ *+' conftest.er1 >conftest.err
23263 rm -f conftest.er1
23264 cat conftest.err >&5
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); } &&
23267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23268 { (case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23271 esac
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_try") 2>&5
23274 ac_status=$?
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; } &&
23277 { ac_try='test -s conftest.$ac_objext'
23278 { (case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23281 esac
23282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23283 (eval "$ac_try") 2>&5
23284 ac_status=$?
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; }; then
23287 ac_cv_member_struct_mtget_mt_blkno=yes
23288 else
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23292 cat >conftest.$ac_ext <<_ACEOF
23293 /* confdefs.h. */
23294 _ACEOF
23295 cat confdefs.h >>conftest.$ac_ext
23296 cat >>conftest.$ac_ext <<_ACEOF
23297 /* end confdefs.h. */
23298 #include <sys/types.h>
23299 #ifdef HAVE_SYS_MTIO_H
23300 #include <sys/mtio.h>
23301 #endif
23304 main ()
23306 static struct mtget ac_aggr;
23307 if (sizeof ac_aggr.mt_blkno)
23308 return 0;
23310 return 0;
23312 _ACEOF
23313 rm -f conftest.$ac_objext
23314 if { (ac_try="$ac_compile"
23315 case "(($ac_try" in
23316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23317 *) ac_try_echo=$ac_try;;
23318 esac
23319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23320 (eval "$ac_compile") 2>conftest.er1
23321 ac_status=$?
23322 grep -v '^ *+' conftest.er1 >conftest.err
23323 rm -f conftest.er1
23324 cat conftest.err >&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } &&
23327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23328 { (case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23331 esac
23332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23333 (eval "$ac_try") 2>&5
23334 ac_status=$?
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); }; } &&
23337 { ac_try='test -s conftest.$ac_objext'
23338 { (case "(($ac_try" in
23339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23340 *) ac_try_echo=$ac_try;;
23341 esac
23342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23343 (eval "$ac_try") 2>&5
23344 ac_status=$?
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; }; then
23347 ac_cv_member_struct_mtget_mt_blkno=yes
23348 else
23349 echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23352 ac_cv_member_struct_mtget_mt_blkno=no
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
23361 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
23362 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
23364 cat >>confdefs.h <<_ACEOF
23365 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
23366 _ACEOF
23372 { echo "$as_me:$LINENO: checking for struct option.name" >&5
23373 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
23374 if test "${ac_cv_member_struct_option_name+set}" = set; then
23375 echo $ECHO_N "(cached) $ECHO_C" >&6
23376 else
23377 cat >conftest.$ac_ext <<_ACEOF
23378 /* confdefs.h. */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h. */
23383 #ifdef HAVE_GETOPT_H
23384 #include <getopt.h>
23385 #endif
23388 main ()
23390 static struct option ac_aggr;
23391 if (ac_aggr.name)
23392 return 0;
23394 return 0;
23396 _ACEOF
23397 rm -f conftest.$ac_objext
23398 if { (ac_try="$ac_compile"
23399 case "(($ac_try" in
23400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23401 *) ac_try_echo=$ac_try;;
23402 esac
23403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23404 (eval "$ac_compile") 2>conftest.er1
23405 ac_status=$?
23406 grep -v '^ *+' conftest.er1 >conftest.err
23407 rm -f conftest.er1
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } &&
23411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23412 { (case "(($ac_try" in
23413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414 *) ac_try_echo=$ac_try;;
23415 esac
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417 (eval "$ac_try") 2>&5
23418 ac_status=$?
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); }; } &&
23421 { ac_try='test -s conftest.$ac_objext'
23422 { (case "(($ac_try" in
23423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23424 *) ac_try_echo=$ac_try;;
23425 esac
23426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23427 (eval "$ac_try") 2>&5
23428 ac_status=$?
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; }; then
23431 ac_cv_member_struct_option_name=yes
23432 else
23433 echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h. */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23442 #ifdef HAVE_GETOPT_H
23443 #include <getopt.h>
23444 #endif
23447 main ()
23449 static struct option ac_aggr;
23450 if (sizeof ac_aggr.name)
23451 return 0;
23453 return 0;
23455 _ACEOF
23456 rm -f conftest.$ac_objext
23457 if { (ac_try="$ac_compile"
23458 case "(($ac_try" in
23459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460 *) ac_try_echo=$ac_try;;
23461 esac
23462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23463 (eval "$ac_compile") 2>conftest.er1
23464 ac_status=$?
23465 grep -v '^ *+' conftest.er1 >conftest.err
23466 rm -f conftest.er1
23467 cat conftest.err >&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } &&
23470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23471 { (case "(($ac_try" in
23472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473 *) ac_try_echo=$ac_try;;
23474 esac
23475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23476 (eval "$ac_try") 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; } &&
23480 { ac_try='test -s conftest.$ac_objext'
23481 { (case "(($ac_try" in
23482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23483 *) ac_try_echo=$ac_try;;
23484 esac
23485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23486 (eval "$ac_try") 2>&5
23487 ac_status=$?
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; }; then
23490 ac_cv_member_struct_option_name=yes
23491 else
23492 echo "$as_me: failed program was:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23495 ac_cv_member_struct_option_name=no
23498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23503 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
23504 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
23505 if test $ac_cv_member_struct_option_name = yes; then
23507 cat >>confdefs.h <<_ACEOF
23508 #define HAVE_STRUCT_OPTION_NAME 1
23509 _ACEOF
23515 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23516 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23517 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
23519 else
23520 cat >conftest.$ac_ext <<_ACEOF
23521 /* confdefs.h. */
23522 _ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23526 $ac_includes_default
23528 main ()
23530 static struct stat ac_aggr;
23531 if (ac_aggr.st_blocks)
23532 return 0;
23534 return 0;
23536 _ACEOF
23537 rm -f conftest.$ac_objext
23538 if { (ac_try="$ac_compile"
23539 case "(($ac_try" in
23540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541 *) ac_try_echo=$ac_try;;
23542 esac
23543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544 (eval "$ac_compile") 2>conftest.er1
23545 ac_status=$?
23546 grep -v '^ *+' conftest.er1 >conftest.err
23547 rm -f conftest.er1
23548 cat conftest.err >&5
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); } &&
23551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23552 { (case "(($ac_try" in
23553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23554 *) ac_try_echo=$ac_try;;
23555 esac
23556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23557 (eval "$ac_try") 2>&5
23558 ac_status=$?
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); }; } &&
23561 { ac_try='test -s conftest.$ac_objext'
23562 { (case "(($ac_try" in
23563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23564 *) ac_try_echo=$ac_try;;
23565 esac
23566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23567 (eval "$ac_try") 2>&5
23568 ac_status=$?
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); }; }; then
23571 ac_cv_member_struct_stat_st_blocks=yes
23572 else
23573 echo "$as_me: failed program was:" >&5
23574 sed 's/^/| /' conftest.$ac_ext >&5
23576 cat >conftest.$ac_ext <<_ACEOF
23577 /* confdefs.h. */
23578 _ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h. */
23582 $ac_includes_default
23584 main ()
23586 static struct stat ac_aggr;
23587 if (sizeof ac_aggr.st_blocks)
23588 return 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23608 { (case "(($ac_try" in
23609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23610 *) ac_try_echo=$ac_try;;
23611 esac
23612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23613 (eval "$ac_try") 2>&5
23614 ac_status=$?
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; } &&
23617 { ac_try='test -s conftest.$ac_objext'
23618 { (case "(($ac_try" in
23619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23621 esac
23622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623 (eval "$ac_try") 2>&5
23624 ac_status=$?
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; }; then
23627 ac_cv_member_struct_stat_st_blocks=yes
23628 else
23629 echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23632 ac_cv_member_struct_stat_st_blocks=no
23635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23640 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23641 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23642 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23644 cat >>confdefs.h <<_ACEOF
23645 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23646 _ACEOF
23652 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23653 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
23654 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23655 echo $ECHO_N "(cached) $ECHO_C" >&6
23656 else
23657 cat >conftest.$ac_ext <<_ACEOF
23658 /* confdefs.h. */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23663 #ifdef HAVE_SYS_TYPES_H
23664 #include <sys/types.h>
23665 #endif
23666 #ifdef HAVE_NETINET_IN_H
23667 #include <netinet/in.h>
23668 #endif
23671 main ()
23673 static struct sockaddr_in6 ac_aggr;
23674 if (ac_aggr.sin6_scope_id)
23675 return 0;
23677 return 0;
23679 _ACEOF
23680 rm -f conftest.$ac_objext
23681 if { (ac_try="$ac_compile"
23682 case "(($ac_try" in
23683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23684 *) ac_try_echo=$ac_try;;
23685 esac
23686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23687 (eval "$ac_compile") 2>conftest.er1
23688 ac_status=$?
23689 grep -v '^ *+' conftest.er1 >conftest.err
23690 rm -f conftest.er1
23691 cat conftest.err >&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); } &&
23694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23695 { (case "(($ac_try" in
23696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697 *) ac_try_echo=$ac_try;;
23698 esac
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700 (eval "$ac_try") 2>&5
23701 ac_status=$?
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); }; } &&
23704 { ac_try='test -s conftest.$ac_objext'
23705 { (case "(($ac_try" in
23706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707 *) ac_try_echo=$ac_try;;
23708 esac
23709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710 (eval "$ac_try") 2>&5
23711 ac_status=$?
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); }; }; then
23714 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23715 else
23716 echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23719 cat >conftest.$ac_ext <<_ACEOF
23720 /* confdefs.h. */
23721 _ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h. */
23725 #ifdef HAVE_SYS_TYPES_H
23726 #include <sys/types.h>
23727 #endif
23728 #ifdef HAVE_NETINET_IN_H
23729 #include <netinet/in.h>
23730 #endif
23733 main ()
23735 static struct sockaddr_in6 ac_aggr;
23736 if (sizeof ac_aggr.sin6_scope_id)
23737 return 0;
23739 return 0;
23741 _ACEOF
23742 rm -f conftest.$ac_objext
23743 if { (ac_try="$ac_compile"
23744 case "(($ac_try" in
23745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746 *) ac_try_echo=$ac_try;;
23747 esac
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749 (eval "$ac_compile") 2>conftest.er1
23750 ac_status=$?
23751 grep -v '^ *+' conftest.er1 >conftest.err
23752 rm -f conftest.er1
23753 cat conftest.err >&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } &&
23756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23757 { (case "(($ac_try" in
23758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23760 esac
23761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23762 (eval "$ac_try") 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; } &&
23766 { ac_try='test -s conftest.$ac_objext'
23767 { (case "(($ac_try" in
23768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23769 *) ac_try_echo=$ac_try;;
23770 esac
23771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23772 (eval "$ac_try") 2>&5
23773 ac_status=$?
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); }; }; then
23776 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23777 else
23778 echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23781 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23789 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23790 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23791 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23793 cat >>confdefs.h <<_ACEOF
23794 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23795 _ACEOF
23801 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23802 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23803 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23805 else
23806 cat >conftest.$ac_ext <<_ACEOF
23807 /* confdefs.h. */
23808 _ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23812 #ifdef HAVE_SYS_TYPES_H
23813 #include <sys/types.h>
23814 #endif
23815 #ifdef HAVE_NETINET_IN_H
23816 # include <netinet/in.h>
23817 #endif
23818 #ifdef HAVE_ARPA_NAMESER_H
23819 # include <arpa/nameser.h>
23820 #endif
23823 main ()
23825 static ns_msg ac_aggr;
23826 if (ac_aggr._msg_ptr)
23827 return 0;
23829 return 0;
23831 _ACEOF
23832 rm -f conftest.$ac_objext
23833 if { (ac_try="$ac_compile"
23834 case "(($ac_try" in
23835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23836 *) ac_try_echo=$ac_try;;
23837 esac
23838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23839 (eval "$ac_compile") 2>conftest.er1
23840 ac_status=$?
23841 grep -v '^ *+' conftest.er1 >conftest.err
23842 rm -f conftest.er1
23843 cat conftest.err >&5
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); } &&
23846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23847 { (case "(($ac_try" in
23848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23849 *) ac_try_echo=$ac_try;;
23850 esac
23851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23852 (eval "$ac_try") 2>&5
23853 ac_status=$?
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); }; } &&
23856 { ac_try='test -s conftest.$ac_objext'
23857 { (case "(($ac_try" in
23858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23859 *) ac_try_echo=$ac_try;;
23860 esac
23861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23862 (eval "$ac_try") 2>&5
23863 ac_status=$?
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); }; }; then
23866 ac_cv_member_ns_msg__msg_ptr=yes
23867 else
23868 echo "$as_me: failed program was:" >&5
23869 sed 's/^/| /' conftest.$ac_ext >&5
23871 cat >conftest.$ac_ext <<_ACEOF
23872 /* confdefs.h. */
23873 _ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h. */
23877 #ifdef HAVE_SYS_TYPES_H
23878 #include <sys/types.h>
23879 #endif
23880 #ifdef HAVE_NETINET_IN_H
23881 # include <netinet/in.h>
23882 #endif
23883 #ifdef HAVE_ARPA_NAMESER_H
23884 # include <arpa/nameser.h>
23885 #endif
23888 main ()
23890 static ns_msg ac_aggr;
23891 if (sizeof ac_aggr._msg_ptr)
23892 return 0;
23894 return 0;
23896 _ACEOF
23897 rm -f conftest.$ac_objext
23898 if { (ac_try="$ac_compile"
23899 case "(($ac_try" in
23900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901 *) ac_try_echo=$ac_try;;
23902 esac
23903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23904 (eval "$ac_compile") 2>conftest.er1
23905 ac_status=$?
23906 grep -v '^ *+' conftest.er1 >conftest.err
23907 rm -f conftest.er1
23908 cat conftest.err >&5
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); } &&
23911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23912 { (case "(($ac_try" in
23913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23914 *) ac_try_echo=$ac_try;;
23915 esac
23916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23917 (eval "$ac_try") 2>&5
23918 ac_status=$?
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); }; } &&
23921 { ac_try='test -s conftest.$ac_objext'
23922 { (case "(($ac_try" in
23923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23924 *) ac_try_echo=$ac_try;;
23925 esac
23926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23927 (eval "$ac_try") 2>&5
23928 ac_status=$?
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; }; then
23931 ac_cv_member_ns_msg__msg_ptr=yes
23932 else
23933 echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23936 ac_cv_member_ns_msg__msg_ptr=no
23939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23944 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23945 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23946 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23948 cat >>confdefs.h <<_ACEOF
23949 #define HAVE_NS_MSG__MSG_PTR 1
23950 _ACEOF
23956 { echo "$as_me:$LINENO: checking for timezone variable" >&5
23957 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
23958 if test "${ac_cv_have_timezone+set}" = set; then
23959 echo $ECHO_N "(cached) $ECHO_C" >&6
23960 else
23961 cat >conftest.$ac_ext <<_ACEOF
23962 /* confdefs.h. */
23963 _ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h. */
23967 #include <time.h>
23969 main ()
23971 timezone;
23973 return 0;
23975 _ACEOF
23976 rm -f conftest.$ac_objext conftest$ac_exeext
23977 if { (ac_try="$ac_link"
23978 case "(($ac_try" in
23979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980 *) ac_try_echo=$ac_try;;
23981 esac
23982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983 (eval "$ac_link") 2>conftest.er1
23984 ac_status=$?
23985 grep -v '^ *+' conftest.er1 >conftest.err
23986 rm -f conftest.er1
23987 cat conftest.err >&5
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); } &&
23990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23991 { (case "(($ac_try" in
23992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993 *) ac_try_echo=$ac_try;;
23994 esac
23995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23996 (eval "$ac_try") 2>&5
23997 ac_status=$?
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); }; } &&
24000 { ac_try='test -s conftest$ac_exeext'
24001 { (case "(($ac_try" in
24002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24003 *) ac_try_echo=$ac_try;;
24004 esac
24005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24006 (eval "$ac_try") 2>&5
24007 ac_status=$?
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); }; }; then
24010 ac_cv_have_timezone="yes"
24011 else
24012 echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24015 ac_cv_have_timezone="no"
24018 rm -f core conftest.err conftest.$ac_objext \
24019 conftest$ac_exeext conftest.$ac_ext
24021 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
24022 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
24023 if test "$ac_cv_have_timezone" = "yes"
24024 then
24026 cat >>confdefs.h <<\_ACEOF
24027 #define HAVE_TIMEZONE 1
24028 _ACEOF
24031 { echo "$as_me:$LINENO: checking for daylight variable" >&5
24032 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
24033 if test "${ac_cv_have_daylight+set}" = set; then
24034 echo $ECHO_N "(cached) $ECHO_C" >&6
24035 else
24036 cat >conftest.$ac_ext <<_ACEOF
24037 /* confdefs.h. */
24038 _ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h. */
24042 #include <time.h>
24044 main ()
24046 daylight;
24048 return 0;
24050 _ACEOF
24051 rm -f conftest.$ac_objext conftest$ac_exeext
24052 if { (ac_try="$ac_link"
24053 case "(($ac_try" in
24054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055 *) ac_try_echo=$ac_try;;
24056 esac
24057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24058 (eval "$ac_link") 2>conftest.er1
24059 ac_status=$?
24060 grep -v '^ *+' conftest.er1 >conftest.err
24061 rm -f conftest.er1
24062 cat conftest.err >&5
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); } &&
24065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24066 { (case "(($ac_try" in
24067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24068 *) ac_try_echo=$ac_try;;
24069 esac
24070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24071 (eval "$ac_try") 2>&5
24072 ac_status=$?
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); }; } &&
24075 { ac_try='test -s conftest$ac_exeext'
24076 { (case "(($ac_try" in
24077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078 *) ac_try_echo=$ac_try;;
24079 esac
24080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24081 (eval "$ac_try") 2>&5
24082 ac_status=$?
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); }; }; then
24085 ac_cv_have_daylight="yes"
24086 else
24087 echo "$as_me: failed program was:" >&5
24088 sed 's/^/| /' conftest.$ac_ext >&5
24090 ac_cv_have_daylight="no"
24093 rm -f core conftest.err conftest.$ac_objext \
24094 conftest$ac_exeext conftest.$ac_ext
24096 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
24097 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
24098 if test "$ac_cv_have_daylight" = "yes"
24099 then
24101 cat >>confdefs.h <<\_ACEOF
24102 #define HAVE_DAYLIGHT 1
24103 _ACEOF
24108 case $host_cpu in
24109 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
24110 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
24111 if test "${ac_cv_cpp_def___i386__+set}" = set; then
24112 echo $ECHO_N "(cached) $ECHO_C" >&6
24113 else
24114 cat >conftest.$ac_ext <<_ACEOF
24115 /* confdefs.h. */
24116 _ACEOF
24117 cat confdefs.h >>conftest.$ac_ext
24118 cat >>conftest.$ac_ext <<_ACEOF
24119 /* end confdefs.h. */
24120 #ifndef __i386__
24122 #endif
24123 _ACEOF
24124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24125 $EGREP "yes" >/dev/null 2>&1; then
24126 ac_cv_cpp_def___i386__=yes
24127 else
24128 ac_cv_cpp_def___i386__=no
24130 rm -f conftest*
24133 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
24134 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
24135 if test $ac_cv_cpp_def___i386__ = yes; then
24136 CFLAGS="$CFLAGS -D__i386__"
24137 LINTFLAGS="$LINTFLAGS -D__i386__"
24140 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
24141 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
24142 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
24143 echo $ECHO_N "(cached) $ECHO_C" >&6
24144 else
24145 cat >conftest.$ac_ext <<_ACEOF
24146 /* confdefs.h. */
24147 _ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h. */
24151 #ifndef __x86_64__
24153 #endif
24154 _ACEOF
24155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24156 $EGREP "yes" >/dev/null 2>&1; then
24157 ac_cv_cpp_def___x86_64__=yes
24158 else
24159 ac_cv_cpp_def___x86_64__=no
24161 rm -f conftest*
24164 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
24165 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
24166 if test $ac_cv_cpp_def___x86_64__ = yes; then
24167 CFLAGS="$CFLAGS -D__x86_64__"
24168 LINTFLAGS="$LINTFLAGS -D__x86_64__"
24171 { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
24172 echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
24173 if test "${ac_cv_cpp_def__WIN64+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24175 else
24176 cat >conftest.$ac_ext <<_ACEOF
24177 /* confdefs.h. */
24178 _ACEOF
24179 cat confdefs.h >>conftest.$ac_ext
24180 cat >>conftest.$ac_ext <<_ACEOF
24181 /* end confdefs.h. */
24182 #ifndef _WIN64
24184 #endif
24185 _ACEOF
24186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24187 $EGREP "yes" >/dev/null 2>&1; then
24188 ac_cv_cpp_def__WIN64=yes
24189 else
24190 ac_cv_cpp_def__WIN64=no
24192 rm -f conftest*
24195 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
24196 echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
24197 if test $ac_cv_cpp_def__WIN64 = yes; then
24198 CFLAGS="$CFLAGS -D_WIN64"
24199 LINTFLAGS="$LINTFLAGS -D_WIN64"
24202 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
24203 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
24204 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
24205 echo $ECHO_N "(cached) $ECHO_C" >&6
24206 else
24207 cat >conftest.$ac_ext <<_ACEOF
24208 /* confdefs.h. */
24209 _ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h. */
24213 #ifndef __ALPHA__
24215 #endif
24216 _ACEOF
24217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24218 $EGREP "yes" >/dev/null 2>&1; then
24219 ac_cv_cpp_def___ALPHA__=yes
24220 else
24221 ac_cv_cpp_def___ALPHA__=no
24223 rm -f conftest*
24226 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
24227 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
24228 if test $ac_cv_cpp_def___ALPHA__ = yes; then
24229 CFLAGS="$CFLAGS -D__ALPHA__"
24230 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
24233 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
24234 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
24235 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
24236 echo $ECHO_N "(cached) $ECHO_C" >&6
24237 else
24238 cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h. */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h. */
24244 #ifndef __sparc__
24246 #endif
24247 _ACEOF
24248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24249 $EGREP "yes" >/dev/null 2>&1; then
24250 ac_cv_cpp_def___sparc__=yes
24251 else
24252 ac_cv_cpp_def___sparc__=no
24254 rm -f conftest*
24257 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
24258 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
24259 if test $ac_cv_cpp_def___sparc__ = yes; then
24260 CFLAGS="$CFLAGS -D__sparc__"
24261 LINTFLAGS="$LINTFLAGS -D__sparc__"
24264 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
24265 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
24266 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
24267 echo $ECHO_N "(cached) $ECHO_C" >&6
24268 else
24269 cat >conftest.$ac_ext <<_ACEOF
24270 /* confdefs.h. */
24271 _ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h. */
24275 #ifndef __powerpc__
24277 #endif
24278 _ACEOF
24279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24280 $EGREP "yes" >/dev/null 2>&1; then
24281 ac_cv_cpp_def___powerpc__=yes
24282 else
24283 ac_cv_cpp_def___powerpc__=no
24285 rm -f conftest*
24288 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
24289 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
24290 if test $ac_cv_cpp_def___powerpc__ = yes; then
24291 CFLAGS="$CFLAGS -D__powerpc__"
24292 LINTFLAGS="$LINTFLAGS -D__powerpc__"
24295 esac
24297 case $host_vendor in
24298 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
24299 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
24300 if test "${ac_cv_cpp_def___sun__+set}" = set; then
24301 echo $ECHO_N "(cached) $ECHO_C" >&6
24302 else
24303 cat >conftest.$ac_ext <<_ACEOF
24304 /* confdefs.h. */
24305 _ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h. */
24309 #ifndef __sun__
24311 #endif
24312 _ACEOF
24313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24314 $EGREP "yes" >/dev/null 2>&1; then
24315 ac_cv_cpp_def___sun__=yes
24316 else
24317 ac_cv_cpp_def___sun__=no
24319 rm -f conftest*
24322 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
24323 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
24324 if test $ac_cv_cpp_def___sun__ = yes; then
24325 CFLAGS="$CFLAGS -D__sun__"
24326 LINTFLAGS="$LINTFLAGS -D__sun__"
24329 esac
24335 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
24337 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
24339 ac_config_commands="$ac_config_commands dlls/kernel/messages"
24341 ac_config_commands="$ac_config_commands dlls/user/resources"
24343 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
24345 ac_config_commands="$ac_config_commands include/wine"
24348 MAKE_RULES=Make.rules
24351 MAKE_DLL_RULES=dlls/Makedll.rules
24354 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
24357 MAKE_TEST_RULES=dlls/Maketest.rules
24360 MAKE_LIB_RULES=libs/Makelib.rules
24363 MAKE_PROG_RULES=programs/Makeprog.rules
24366 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hlink/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
24369 cat >confcache <<\_ACEOF
24370 # This file is a shell script that caches the results of configure
24371 # tests run on this system so they can be shared between configure
24372 # scripts and configure runs, see configure's option --config-cache.
24373 # It is not useful on other systems. If it contains results you don't
24374 # want to keep, you may remove or edit it.
24376 # config.status only pays attention to the cache file if you give it
24377 # the --recheck option to rerun configure.
24379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24381 # following values.
24383 _ACEOF
24385 # The following way of writing the cache mishandles newlines in values,
24386 # but we know of no workaround that is simple, portable, and efficient.
24387 # So, we kill variables containing newlines.
24388 # Ultrix sh set writes to stderr and can't be redirected directly,
24389 # and sets the high bit in the cache file unless we assign to the vars.
24391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24392 eval ac_val=\$$ac_var
24393 case $ac_val in #(
24394 *${as_nl}*)
24395 case $ac_var in #(
24396 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24397 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24398 esac
24399 case $ac_var in #(
24400 _ | IFS | as_nl) ;; #(
24401 *) $as_unset $ac_var ;;
24402 esac ;;
24403 esac
24404 done
24406 (set) 2>&1 |
24407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24408 *${as_nl}ac_space=\ *)
24409 # `set' does not quote correctly, so add quotes (double-quote
24410 # substitution turns \\\\ into \\, and sed turns \\ into \).
24411 sed -n \
24412 "s/'/'\\\\''/g;
24413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24414 ;; #(
24416 # `set' quotes correctly as required by POSIX, so do not add quotes.
24417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24419 esac |
24420 sort
24422 sed '
24423 /^ac_cv_env_/b end
24424 t clear
24425 :clear
24426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24427 t end
24428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24429 :end' >>confcache
24430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24431 if test -w "$cache_file"; then
24432 test "x$cache_file" != "x/dev/null" &&
24433 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24434 echo "$as_me: updating cache $cache_file" >&6;}
24435 cat confcache >$cache_file
24436 else
24437 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24438 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24441 rm -f confcache
24443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24444 # Let make expand exec_prefix.
24445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24447 DEFS=-DHAVE_CONFIG_H
24449 ac_libobjs=
24450 ac_ltlibobjs=
24451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24452 # 1. Remove the extension, and $U if already installed.
24453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24454 ac_i=`echo "$ac_i" | sed "$ac_script"`
24455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24456 # will be set to the directory where LIBOBJS objects are built.
24457 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24458 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24459 done
24460 LIBOBJS=$ac_libobjs
24462 LTLIBOBJS=$ac_ltlibobjs
24466 : ${CONFIG_STATUS=./config.status}
24467 ac_clean_files_save=$ac_clean_files
24468 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24469 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24470 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24471 cat >$CONFIG_STATUS <<_ACEOF
24472 #! $SHELL
24473 # Generated by $as_me.
24474 # Run this file to recreate the current configuration.
24475 # Compiler output produced by configure, useful for debugging
24476 # configure, is in config.log if it exists.
24478 debug=false
24479 ac_cs_recheck=false
24480 ac_cs_silent=false
24481 SHELL=\${CONFIG_SHELL-$SHELL}
24482 _ACEOF
24484 cat >>$CONFIG_STATUS <<\_ACEOF
24485 ## --------------------- ##
24486 ## M4sh Initialization. ##
24487 ## --------------------- ##
24489 # Be Bourne compatible
24490 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24491 emulate sh
24492 NULLCMD=:
24493 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24494 # is contrary to our usage. Disable this feature.
24495 alias -g '${1+"$@"}'='"$@"'
24496 setopt NO_GLOB_SUBST
24497 else
24498 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24500 BIN_SH=xpg4; export BIN_SH # for Tru64
24501 DUALCASE=1; export DUALCASE # for MKS sh
24504 # PATH needs CR
24505 # Avoid depending upon Character Ranges.
24506 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24507 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24508 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24509 as_cr_digits='0123456789'
24510 as_cr_alnum=$as_cr_Letters$as_cr_digits
24512 # The user is always right.
24513 if test "${PATH_SEPARATOR+set}" != set; then
24514 echo "#! /bin/sh" >conf$$.sh
24515 echo "exit 0" >>conf$$.sh
24516 chmod +x conf$$.sh
24517 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24518 PATH_SEPARATOR=';'
24519 else
24520 PATH_SEPARATOR=:
24522 rm -f conf$$.sh
24525 # Support unset when possible.
24526 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24527 as_unset=unset
24528 else
24529 as_unset=false
24533 # IFS
24534 # We need space, tab and new line, in precisely that order. Quoting is
24535 # there to prevent editors from complaining about space-tab.
24536 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24537 # splitting by setting IFS to empty value.)
24538 as_nl='
24540 IFS=" "" $as_nl"
24542 # Find who we are. Look in the path if we contain no directory separator.
24543 case $0 in
24544 *[\\/]* ) as_myself=$0 ;;
24545 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24546 for as_dir in $PATH
24548 IFS=$as_save_IFS
24549 test -z "$as_dir" && as_dir=.
24550 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24551 done
24552 IFS=$as_save_IFS
24555 esac
24556 # We did not find ourselves, most probably we were run as `sh COMMAND'
24557 # in which case we are not to be found in the path.
24558 if test "x$as_myself" = x; then
24559 as_myself=$0
24561 if test ! -f "$as_myself"; then
24562 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24563 { (exit 1); exit 1; }
24566 # Work around bugs in pre-3.0 UWIN ksh.
24567 for as_var in ENV MAIL MAILPATH
24568 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24569 done
24570 PS1='$ '
24571 PS2='> '
24572 PS4='+ '
24574 # NLS nuisances.
24575 for as_var in \
24576 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24577 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24578 LC_TELEPHONE LC_TIME
24580 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24581 eval $as_var=C; export $as_var
24582 else
24583 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24585 done
24587 # Required to use basename.
24588 if expr a : '\(a\)' >/dev/null 2>&1 &&
24589 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24590 as_expr=expr
24591 else
24592 as_expr=false
24595 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24596 as_basename=basename
24597 else
24598 as_basename=false
24602 # Name of the executable.
24603 as_me=`$as_basename -- "$0" ||
24604 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24605 X"$0" : 'X\(//\)$' \| \
24606 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24607 echo X/"$0" |
24608 sed '/^.*\/\([^/][^/]*\)\/*$/{
24609 s//\1/
24612 /^X\/\(\/\/\)$/{
24613 s//\1/
24616 /^X\/\(\/\).*/{
24617 s//\1/
24620 s/.*/./; q'`
24622 # CDPATH.
24623 $as_unset CDPATH
24627 as_lineno_1=$LINENO
24628 as_lineno_2=$LINENO
24629 test "x$as_lineno_1" != "x$as_lineno_2" &&
24630 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24632 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24633 # uniformly replaced by the line number. The first 'sed' inserts a
24634 # line-number line after each line using $LINENO; the second 'sed'
24635 # does the real work. The second script uses 'N' to pair each
24636 # line-number line with the line containing $LINENO, and appends
24637 # trailing '-' during substitution so that $LINENO is not a special
24638 # case at line end.
24639 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24640 # scripts with optimization help from Paolo Bonzini. Blame Lee
24641 # E. McMahon (1931-1989) for sed's syntax. :-)
24642 sed -n '
24644 /[$]LINENO/=
24645 ' <$as_myself |
24646 sed '
24647 s/[$]LINENO.*/&-/
24648 t lineno
24650 :lineno
24652 :loop
24653 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24654 t loop
24655 s/-\n.*//
24656 ' >$as_me.lineno &&
24657 chmod +x "$as_me.lineno" ||
24658 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24659 { (exit 1); exit 1; }; }
24661 # Don't try to exec as it changes $[0], causing all sort of problems
24662 # (the dirname of $[0] is not the place where we might find the
24663 # original and so on. Autoconf is especially sensitive to this).
24664 . "./$as_me.lineno"
24665 # Exit status is that of the last command.
24666 exit
24670 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24671 as_dirname=dirname
24672 else
24673 as_dirname=false
24676 ECHO_C= ECHO_N= ECHO_T=
24677 case `echo -n x` in
24678 -n*)
24679 case `echo 'x\c'` in
24680 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24681 *) ECHO_C='\c';;
24682 esac;;
24684 ECHO_N='-n';;
24685 esac
24687 if expr a : '\(a\)' >/dev/null 2>&1 &&
24688 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24689 as_expr=expr
24690 else
24691 as_expr=false
24694 rm -f conf$$ conf$$.exe conf$$.file
24695 if test -d conf$$.dir; then
24696 rm -f conf$$.dir/conf$$.file
24697 else
24698 rm -f conf$$.dir
24699 mkdir conf$$.dir
24701 echo >conf$$.file
24702 if ln -s conf$$.file conf$$ 2>/dev/null; then
24703 as_ln_s='ln -s'
24704 # ... but there are two gotchas:
24705 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24706 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24707 # In both cases, we have to default to `cp -p'.
24708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24709 as_ln_s='cp -p'
24710 elif ln conf$$.file conf$$ 2>/dev/null; then
24711 as_ln_s=ln
24712 else
24713 as_ln_s='cp -p'
24715 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24716 rmdir conf$$.dir 2>/dev/null
24718 if mkdir -p . 2>/dev/null; then
24719 as_mkdir_p=:
24720 else
24721 test -d ./-p && rmdir ./-p
24722 as_mkdir_p=false
24725 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
24726 # systems may use methods other than mode bits to determine executability.
24727 cat >conf$$.file <<_ASEOF
24728 #! /bin/sh
24729 exit 0
24730 _ASEOF
24731 chmod +x conf$$.file
24732 if test -x conf$$.file >/dev/null 2>&1; then
24733 as_executable_p="test -x"
24734 else
24735 as_executable_p=:
24737 rm -f conf$$.file
24739 # Sed expression to map a string onto a valid CPP name.
24740 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24742 # Sed expression to map a string onto a valid variable name.
24743 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24746 exec 6>&1
24748 # Save the log message, to keep $[0] and so on meaningful, and to
24749 # report actual input values of CONFIG_FILES etc. instead of their
24750 # values after options handling.
24751 ac_log="
24752 This file was extended by Wine $as_me 0.9.17, which was
24753 generated by GNU Autoconf 2.60a. Invocation command line was
24755 CONFIG_FILES = $CONFIG_FILES
24756 CONFIG_HEADERS = $CONFIG_HEADERS
24757 CONFIG_LINKS = $CONFIG_LINKS
24758 CONFIG_COMMANDS = $CONFIG_COMMANDS
24759 $ $0 $@
24761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24764 _ACEOF
24766 cat >>$CONFIG_STATUS <<_ACEOF
24767 # Files that config.status was made for.
24768 config_files="$ac_config_files"
24769 config_headers="$ac_config_headers"
24770 config_commands="$ac_config_commands"
24772 _ACEOF
24774 cat >>$CONFIG_STATUS <<\_ACEOF
24775 ac_cs_usage="\
24776 \`$as_me' instantiates files from templates according to the
24777 current configuration.
24779 Usage: $0 [OPTIONS] [FILE]...
24781 -h, --help print this help, then exit
24782 -V, --version print version number, then exit
24783 -q, --quiet do not print progress messages
24784 -d, --debug don't remove temporary files
24785 --recheck update $as_me by reconfiguring in the same conditions
24786 --file=FILE[:TEMPLATE]
24787 instantiate the configuration file FILE
24788 --header=FILE[:TEMPLATE]
24789 instantiate the configuration header FILE
24791 Configuration files:
24792 $config_files
24794 Configuration headers:
24795 $config_headers
24797 Configuration commands:
24798 $config_commands
24800 Report bugs to <bug-autoconf@gnu.org>."
24802 _ACEOF
24803 cat >>$CONFIG_STATUS <<_ACEOF
24804 ac_cs_version="\\
24805 Wine config.status 0.9.17
24806 configured by $0, generated by GNU Autoconf 2.60a,
24807 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24809 Copyright (C) 2006 Free Software Foundation, Inc.
24810 This config.status script is free software; the Free Software Foundation
24811 gives unlimited permission to copy, distribute and modify it."
24813 ac_pwd='$ac_pwd'
24814 srcdir='$srcdir'
24815 INSTALL='$INSTALL'
24816 _ACEOF
24818 cat >>$CONFIG_STATUS <<\_ACEOF
24819 # If no file are specified by the user, then we need to provide default
24820 # value. By we need to know if files were specified by the user.
24821 ac_need_defaults=:
24822 while test $# != 0
24824 case $1 in
24825 --*=*)
24826 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24827 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24828 ac_shift=:
24831 ac_option=$1
24832 ac_optarg=$2
24833 ac_shift=shift
24835 esac
24837 case $ac_option in
24838 # Handling of the options.
24839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24840 ac_cs_recheck=: ;;
24841 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24842 echo "$ac_cs_version"; exit ;;
24843 --debug | --debu | --deb | --de | --d | -d )
24844 debug=: ;;
24845 --file | --fil | --fi | --f )
24846 $ac_shift
24847 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24848 ac_need_defaults=false;;
24849 --header | --heade | --head | --hea )
24850 $ac_shift
24851 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24852 ac_need_defaults=false;;
24853 --he | --h)
24854 # Conflict between --help and --header
24855 { echo "$as_me: error: ambiguous option: $1
24856 Try \`$0 --help' for more information." >&2
24857 { (exit 1); exit 1; }; };;
24858 --help | --hel | -h )
24859 echo "$ac_cs_usage"; exit ;;
24860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24862 ac_cs_silent=: ;;
24864 # This is an error.
24865 -*) { echo "$as_me: error: unrecognized option: $1
24866 Try \`$0 --help' for more information." >&2
24867 { (exit 1); exit 1; }; } ;;
24869 *) ac_config_targets="$ac_config_targets $1"
24870 ac_need_defaults=false ;;
24872 esac
24873 shift
24874 done
24876 ac_configure_extra_args=
24878 if $ac_cs_silent; then
24879 exec 6>/dev/null
24880 ac_configure_extra_args="$ac_configure_extra_args --silent"
24883 _ACEOF
24884 cat >>$CONFIG_STATUS <<_ACEOF
24885 if \$ac_cs_recheck; then
24886 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24887 CONFIG_SHELL=$SHELL
24888 export CONFIG_SHELL
24889 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24892 _ACEOF
24893 cat >>$CONFIG_STATUS <<\_ACEOF
24894 exec 5>>config.log
24896 echo
24897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24898 ## Running $as_me. ##
24899 _ASBOX
24900 echo "$ac_log"
24901 } >&5
24903 _ACEOF
24904 cat >>$CONFIG_STATUS <<_ACEOF
24905 _ACEOF
24907 cat >>$CONFIG_STATUS <<\_ACEOF
24909 # Handling of arguments.
24910 for ac_config_target in $ac_config_targets
24912 case $ac_config_target in
24913 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24914 "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24915 "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24916 "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
24917 "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24918 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24919 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24920 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24921 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24922 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24923 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
24924 "libs/Makelib.rules") CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
24925 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24926 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24927 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24928 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24929 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24930 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24931 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24932 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24933 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24934 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24935 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24936 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24937 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24938 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24939 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24940 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24941 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24942 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
24943 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
24944 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24945 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24946 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
24947 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
24948 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
24949 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24950 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24951 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24952 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
24953 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
24954 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24955 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24956 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24957 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24958 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24959 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24960 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24961 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24962 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24963 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24964 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24965 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24966 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24967 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24968 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24969 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24970 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24971 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24972 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24973 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24974 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24975 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24976 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24977 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24978 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24979 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24980 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24981 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24982 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24983 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24984 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24985 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24986 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24987 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24988 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24989 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24990 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24991 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24992 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
24993 "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
24994 "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
24995 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24996 "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24997 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
24998 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
24999 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
25000 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
25001 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
25002 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
25003 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
25004 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
25005 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
25006 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
25007 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
25008 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
25009 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
25010 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
25011 "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
25012 "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
25013 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
25014 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
25015 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
25016 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
25017 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
25018 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
25019 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
25020 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
25021 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
25022 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
25023 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
25024 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
25025 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
25026 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
25027 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
25028 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
25029 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
25030 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
25031 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
25032 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
25033 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
25034 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
25035 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
25036 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
25037 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
25038 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
25039 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
25040 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
25041 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
25042 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
25043 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
25044 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
25045 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
25046 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
25047 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
25048 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
25049 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
25050 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
25051 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
25052 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
25053 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
25054 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
25055 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
25056 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
25057 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
25058 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
25059 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
25060 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
25061 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
25062 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
25063 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
25064 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
25065 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
25066 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
25067 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
25068 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
25069 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
25070 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
25071 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
25072 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
25073 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
25074 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
25075 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
25076 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
25077 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
25078 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
25079 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
25080 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
25081 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
25082 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
25083 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
25084 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
25085 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
25086 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
25087 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
25088 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
25089 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
25090 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
25091 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
25092 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
25093 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
25094 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
25095 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
25096 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
25097 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
25098 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
25099 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
25100 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
25101 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
25102 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
25103 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
25104 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
25105 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
25106 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
25107 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
25108 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
25109 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
25110 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
25111 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
25112 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
25113 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
25114 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
25115 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
25116 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
25117 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
25118 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
25119 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
25120 "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
25121 "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
25122 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
25123 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
25124 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
25125 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
25126 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
25127 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
25128 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
25129 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
25130 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
25131 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
25132 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
25133 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
25134 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
25135 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
25136 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
25137 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
25138 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
25139 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
25140 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
25141 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
25142 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
25143 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
25144 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
25145 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
25146 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
25147 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
25148 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
25149 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
25150 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
25151 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
25152 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
25153 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
25154 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
25155 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
25156 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
25157 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
25158 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
25159 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
25160 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
25161 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
25162 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
25163 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
25164 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
25165 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
25166 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
25167 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
25168 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
25169 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
25170 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
25171 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25172 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
25173 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
25174 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
25175 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
25176 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
25177 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
25178 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
25179 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
25180 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
25181 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
25182 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
25183 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
25184 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
25185 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
25186 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
25187 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
25188 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
25189 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
25190 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
25191 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
25192 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
25193 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
25194 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
25195 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
25196 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
25197 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
25198 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
25199 "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
25200 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
25201 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
25202 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
25203 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
25204 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
25205 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
25206 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
25207 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
25208 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
25209 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
25210 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
25211 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
25212 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
25213 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
25214 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
25215 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25216 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
25217 "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
25218 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
25219 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
25220 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
25221 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
25222 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
25224 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25225 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25226 { (exit 1); exit 1; }; };;
25227 esac
25228 done
25231 # If the user did not use the arguments to specify the items to instantiate,
25232 # then the envvar interface is used. Set only those that are not.
25233 # We use the long form for the default assignment because of an extremely
25234 # bizarre bug on SunOS 4.1.3.
25235 if $ac_need_defaults; then
25236 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25237 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25238 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25241 # Have a temporary directory for convenience. Make it in the build tree
25242 # simply because there is no reason against having it here, and in addition,
25243 # creating and moving files from /tmp can sometimes cause problems.
25244 # Hook for its removal unless debugging.
25245 # Note that there is a small window in which the directory will not be cleaned:
25246 # after its creation but before its name has been assigned to `$tmp'.
25247 $debug ||
25249 tmp=
25250 trap 'exit_status=$?
25251 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25253 trap '{ (exit 1); exit 1; }' 1 2 13 15
25255 # Create a (secure) tmp directory for tmp files.
25258 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25259 test -n "$tmp" && test -d "$tmp"
25260 } ||
25262 tmp=./conf$$-$RANDOM
25263 (umask 077 && mkdir "$tmp")
25264 } ||
25266 echo "$me: cannot create a temporary directory in ." >&2
25267 { (exit 1); exit 1; }
25271 # Set up the sed scripts for CONFIG_FILES section.
25274 # No need to generate the scripts if there are no CONFIG_FILES.
25275 # This happens for instance when ./config.status config.h
25276 if test -n "$CONFIG_FILES"; then
25278 _ACEOF
25280 # Create sed commands to just substitute file output variables.
25282 # Remaining file output variables are in a fragment that also has non-file
25283 # output varibles.
25287 ac_delim='%!_!# '
25288 for ac_last_try in false false false false false :; do
25289 cat >conf$$subs.sed <<_ACEOF
25290 SHELL!$SHELL$ac_delim
25291 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25292 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25293 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25294 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25295 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25296 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25297 exec_prefix!$exec_prefix$ac_delim
25298 prefix!$prefix$ac_delim
25299 program_transform_name!$program_transform_name$ac_delim
25300 bindir!$bindir$ac_delim
25301 sbindir!$sbindir$ac_delim
25302 libexecdir!$libexecdir$ac_delim
25303 datarootdir!$datarootdir$ac_delim
25304 datadir!$datadir$ac_delim
25305 sysconfdir!$sysconfdir$ac_delim
25306 sharedstatedir!$sharedstatedir$ac_delim
25307 localstatedir!$localstatedir$ac_delim
25308 includedir!$includedir$ac_delim
25309 oldincludedir!$oldincludedir$ac_delim
25310 docdir!$docdir$ac_delim
25311 infodir!$infodir$ac_delim
25312 htmldir!$htmldir$ac_delim
25313 dvidir!$dvidir$ac_delim
25314 pdfdir!$pdfdir$ac_delim
25315 psdir!$psdir$ac_delim
25316 libdir!$libdir$ac_delim
25317 localedir!$localedir$ac_delim
25318 mandir!$mandir$ac_delim
25319 DEFS!$DEFS$ac_delim
25320 ECHO_C!$ECHO_C$ac_delim
25321 ECHO_N!$ECHO_N$ac_delim
25322 ECHO_T!$ECHO_T$ac_delim
25323 LIBS!$LIBS$ac_delim
25324 build_alias!$build_alias$ac_delim
25325 host_alias!$host_alias$ac_delim
25326 target_alias!$target_alias$ac_delim
25327 build!$build$ac_delim
25328 build_cpu!$build_cpu$ac_delim
25329 build_vendor!$build_vendor$ac_delim
25330 build_os!$build_os$ac_delim
25331 host!$host$ac_delim
25332 host_cpu!$host_cpu$ac_delim
25333 host_vendor!$host_vendor$ac_delim
25334 host_os!$host_os$ac_delim
25335 WIN16_FILES!$WIN16_FILES$ac_delim
25336 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
25337 SET_MAKE!$SET_MAKE$ac_delim
25338 CC!$CC$ac_delim
25339 CFLAGS!$CFLAGS$ac_delim
25340 LDFLAGS!$LDFLAGS$ac_delim
25341 CPPFLAGS!$CPPFLAGS$ac_delim
25342 ac_ct_CC!$ac_ct_CC$ac_delim
25343 EXEEXT!$EXEEXT$ac_delim
25344 OBJEXT!$OBJEXT$ac_delim
25345 CXX!$CXX$ac_delim
25346 CXXFLAGS!$CXXFLAGS$ac_delim
25347 ac_ct_CXX!$ac_ct_CXX$ac_delim
25348 CPPBIN!$CPPBIN$ac_delim
25349 TOOLSDIR!$TOOLSDIR$ac_delim
25350 XMKMF!$XMKMF$ac_delim
25351 CPP!$CPP$ac_delim
25352 X_CFLAGS!$X_CFLAGS$ac_delim
25353 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25354 X_LIBS!$X_LIBS$ac_delim
25355 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25356 LEX!$LEX$ac_delim
25357 LEXLIB!$LEXLIB$ac_delim
25358 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
25359 XLEX!$XLEX$ac_delim
25360 BISON!$BISON$ac_delim
25361 AS!$AS$ac_delim
25362 ac_ct_AS!$ac_ct_AS$ac_delim
25363 LD!$LD$ac_delim
25364 AR!$AR$ac_delim
25365 RANLIB!$RANLIB$ac_delim
25366 STRIP!$STRIP$ac_delim
25367 WINDRES!$WINDRES$ac_delim
25368 LN_S!$LN_S$ac_delim
25369 _ACEOF
25371 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
25372 break
25373 elif $ac_last_try; then
25374 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25375 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25376 { (exit 1); exit 1; }; }
25377 else
25378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25380 done
25382 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25383 if test -n "$ac_eof"; then
25384 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25385 ac_eof=`expr $ac_eof + 1`
25388 cat >>$CONFIG_STATUS <<_ACEOF
25389 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25391 /^[ ]*@MAKE_RULES@[ ]*$/{
25392 r $MAKE_RULES
25395 /^[ ]*@MAKE_DLL_RULES@[ ]*$/{
25396 r $MAKE_DLL_RULES
25399 /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
25400 r $MAKE_IMPLIB_RULES
25403 /^[ ]*@MAKE_TEST_RULES@[ ]*$/{
25404 r $MAKE_TEST_RULES
25407 /^[ ]*@MAKE_LIB_RULES@[ ]*$/{
25408 r $MAKE_LIB_RULES
25411 /^[ ]*@MAKE_PROG_RULES@[ ]*$/{
25412 r $MAKE_PROG_RULES
25415 _ACEOF
25416 sed '
25417 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25418 s/^/s,@/; s/!/@,|#_!!_#|/
25421 s/'"$ac_delim"'$/,g/; t
25422 s/$/\\/; p
25423 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25424 ' >>$CONFIG_STATUS <conf$$subs.sed
25425 rm -f conf$$subs.sed
25426 cat >>$CONFIG_STATUS <<_ACEOF
25427 CEOF$ac_eof
25428 _ACEOF
25431 ac_delim='%!_!# '
25432 for ac_last_try in false false false false false :; do
25433 cat >conf$$subs.sed <<_ACEOF
25434 LN!$LN$ac_delim
25435 GREP!$GREP$ac_delim
25436 EGREP!$EGREP$ac_delim
25437 LDCONFIG!$LDCONFIG$ac_delim
25438 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25439 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25440 INSTALL_DATA!$INSTALL_DATA$ac_delim
25441 LINT!$LINT$ac_delim
25442 LINTFLAGS!$LINTFLAGS$ac_delim
25443 FONTFORGE!$FONTFORGE$ac_delim
25444 PKG_CONFIG!$PKG_CONFIG$ac_delim
25445 PRELINK!$PRELINK$ac_delim
25446 LIBPTHREAD!$LIBPTHREAD$ac_delim
25447 XLIB!$XLIB$ac_delim
25448 XFILES!$XFILES$ac_delim
25449 OPENGLFILES!$OPENGLFILES$ac_delim
25450 GLU32FILES!$GLU32FILES$ac_delim
25451 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
25452 GLUT_LIBS!$GLUT_LIBS$ac_delim
25453 GLUT32FILES!$GLUT32FILES$ac_delim
25454 NASLIBS!$NASLIBS$ac_delim
25455 XML2LIBS!$XML2LIBS$ac_delim
25456 XML2INCL!$XML2INCL$ac_delim
25457 XSLTLIBS!$XSLTLIBS$ac_delim
25458 XSLTINCL!$XSLTINCL$ac_delim
25459 HALINCL!$HALINCL$ac_delim
25460 CURSESLIBS!$CURSESLIBS$ac_delim
25461 sane_devel!$sane_devel$ac_delim
25462 SANELIBS!$SANELIBS$ac_delim
25463 SANEINCL!$SANEINCL$ac_delim
25464 gphoto2_devel!$gphoto2_devel$ac_delim
25465 gphoto2port_devel!$gphoto2port_devel$ac_delim
25466 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
25467 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
25468 ICULIBS!$ICULIBS$ac_delim
25469 RESOLVLIBS!$RESOLVLIBS$ac_delim
25470 LCMSLIBS!$LCMSLIBS$ac_delim
25471 LDAPLIBS!$LDAPLIBS$ac_delim
25472 FREETYPELIBS!$FREETYPELIBS$ac_delim
25473 FREETYPEINCL!$FREETYPEINCL$ac_delim
25474 ft_devel!$ft_devel$ac_delim
25475 ft_devel2!$ft_devel2$ac_delim
25476 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
25477 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
25478 ARTSLIBS!$ARTSLIBS$ac_delim
25479 ARTSINCL!$ARTSINCL$ac_delim
25480 ESDCONFIG!$ESDCONFIG$ac_delim
25481 ESDLIBS!$ESDLIBS$ac_delim
25482 ESDINCL!$ESDINCL$ac_delim
25483 ALSALIBS!$ALSALIBS$ac_delim
25484 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
25485 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
25486 BUILTINFLAG!$BUILTINFLAG$ac_delim
25487 DLLEXT!$DLLEXT$ac_delim
25488 DLLFLAGS!$DLLFLAGS$ac_delim
25489 DLLIBS!$DLLIBS$ac_delim
25490 LDSHARED!$LDSHARED$ac_delim
25491 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
25492 LIBEXT!$LIBEXT$ac_delim
25493 IMPLIBEXT!$IMPLIBEXT$ac_delim
25494 DLLTOOL!$DLLTOOL$ac_delim
25495 DLLWRAP!$DLLWRAP$ac_delim
25496 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
25497 LDEXERPATH!$LDEXERPATH$ac_delim
25498 LDDLLRPATH!$LDDLLRPATH$ac_delim
25499 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
25500 IOKITLIB!$IOKITLIB$ac_delim
25501 COREAUDIO!$COREAUDIO$ac_delim
25502 CROSSTEST!$CROSSTEST$ac_delim
25503 CROSSCC!$CROSSCC$ac_delim
25504 CROSSWINDRES!$CROSSWINDRES$ac_delim
25505 LDPATH!$LDPATH$ac_delim
25506 CRTLIBS!$CRTLIBS$ac_delim
25507 SOCKETLIBS!$SOCKETLIBS$ac_delim
25508 MAIN_BINARY!$MAIN_BINARY$ac_delim
25509 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
25510 LDD!$LDD$ac_delim
25511 LIBOBJS!$LIBOBJS$ac_delim
25512 LTLIBOBJS!$LTLIBOBJS$ac_delim
25513 _ACEOF
25515 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
25516 break
25517 elif $ac_last_try; then
25518 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25519 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25520 { (exit 1); exit 1; }; }
25521 else
25522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25524 done
25526 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25527 if test -n "$ac_eof"; then
25528 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25529 ac_eof=`expr $ac_eof + 1`
25532 cat >>$CONFIG_STATUS <<_ACEOF
25533 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25534 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25535 _ACEOF
25536 sed '
25537 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25538 s/^/s,@/; s/!/@,|#_!!_#|/
25541 s/'"$ac_delim"'$/,g/; t
25542 s/$/\\/; p
25543 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25544 ' >>$CONFIG_STATUS <conf$$subs.sed
25545 rm -f conf$$subs.sed
25546 cat >>$CONFIG_STATUS <<_ACEOF
25547 :end
25548 s/|#_!!_#|//g
25549 CEOF$ac_eof
25550 _ACEOF
25553 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25554 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25555 # trailing colons and then remove the whole line if VPATH becomes empty
25556 # (actually we leave an empty line to preserve line numbers).
25557 if test "x$srcdir" = x.; then
25558 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25559 s/:*\$(srcdir):*/:/
25560 s/:*\${srcdir}:*/:/
25561 s/:*@srcdir@:*/:/
25562 s/^\([^=]*=[ ]*\):*/\1/
25563 s/:*$//
25564 s/^[^=]*=[ ]*$//
25568 cat >>$CONFIG_STATUS <<\_ACEOF
25569 fi # test -n "$CONFIG_FILES"
25572 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25574 case $ac_tag in
25575 :[FHLC]) ac_mode=$ac_tag; continue;;
25576 esac
25577 case $ac_mode$ac_tag in
25578 :[FHL]*:*);;
25579 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25580 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25581 { (exit 1); exit 1; }; };;
25582 :[FH]-) ac_tag=-:-;;
25583 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25584 esac
25585 ac_save_IFS=$IFS
25586 IFS=:
25587 set x $ac_tag
25588 IFS=$ac_save_IFS
25589 shift
25590 ac_file=$1
25591 shift
25593 case $ac_mode in
25594 :L) ac_source=$1;;
25595 :[FH])
25596 ac_file_inputs=
25597 for ac_f
25599 case $ac_f in
25600 -) ac_f="$tmp/stdin";;
25601 *) # Look for the file first in the build tree, then in the source tree
25602 # (if the path is not absolute). The absolute path cannot be DOS-style,
25603 # because $ac_f cannot contain `:'.
25604 test -f "$ac_f" ||
25605 case $ac_f in
25606 [\\/$]*) false;;
25607 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25608 esac ||
25609 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25610 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25611 { (exit 1); exit 1; }; };;
25612 esac
25613 ac_file_inputs="$ac_file_inputs $ac_f"
25614 done
25616 # Let's still pretend it is `configure' which instantiates (i.e., don't
25617 # use $as_me), people would be surprised to read:
25618 # /* config.h. Generated by config.status. */
25619 configure_input="Generated from "`IFS=:
25620 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25621 if test x"$ac_file" != x-; then
25622 configure_input="$ac_file. $configure_input"
25623 { echo "$as_me:$LINENO: creating $ac_file" >&5
25624 echo "$as_me: creating $ac_file" >&6;}
25627 case $ac_tag in
25628 *:-:* | *:-) cat >"$tmp/stdin";;
25629 esac
25631 esac
25633 ac_dir=`$as_dirname -- "$ac_file" ||
25634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25635 X"$ac_file" : 'X\(//\)[^/]' \| \
25636 X"$ac_file" : 'X\(//\)$' \| \
25637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25638 echo X"$ac_file" |
25639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25640 s//\1/
25643 /^X\(\/\/\)[^/].*/{
25644 s//\1/
25647 /^X\(\/\/\)$/{
25648 s//\1/
25651 /^X\(\/\).*/{
25652 s//\1/
25655 s/.*/./; q'`
25656 { as_dir="$ac_dir"
25657 case $as_dir in #(
25658 -*) as_dir=./$as_dir;;
25659 esac
25660 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25661 as_dirs=
25662 while :; do
25663 case $as_dir in #(
25664 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25665 *) as_qdir=$as_dir;;
25666 esac
25667 as_dirs="'$as_qdir' $as_dirs"
25668 as_dir=`$as_dirname -- "$as_dir" ||
25669 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25670 X"$as_dir" : 'X\(//\)[^/]' \| \
25671 X"$as_dir" : 'X\(//\)$' \| \
25672 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25673 echo X"$as_dir" |
25674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25675 s//\1/
25678 /^X\(\/\/\)[^/].*/{
25679 s//\1/
25682 /^X\(\/\/\)$/{
25683 s//\1/
25686 /^X\(\/\).*/{
25687 s//\1/
25690 s/.*/./; q'`
25691 test -d "$as_dir" && break
25692 done
25693 test -z "$as_dirs" || eval "mkdir $as_dirs"
25694 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25695 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25696 { (exit 1); exit 1; }; }; }
25697 ac_builddir=.
25699 case "$ac_dir" in
25700 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25702 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25703 # A ".." for each directory in $ac_dir_suffix.
25704 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25705 case $ac_top_builddir_sub in
25706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25708 esac ;;
25709 esac
25710 ac_abs_top_builddir=$ac_pwd
25711 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25712 # for backward compatibility:
25713 ac_top_builddir=$ac_top_build_prefix
25715 case $srcdir in
25716 .) # We are building in place.
25717 ac_srcdir=.
25718 ac_top_srcdir=$ac_top_builddir_sub
25719 ac_abs_top_srcdir=$ac_pwd ;;
25720 [\\/]* | ?:[\\/]* ) # Absolute name.
25721 ac_srcdir=$srcdir$ac_dir_suffix;
25722 ac_top_srcdir=$srcdir
25723 ac_abs_top_srcdir=$srcdir ;;
25724 *) # Relative name.
25725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25726 ac_top_srcdir=$ac_top_build_prefix$srcdir
25727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25728 esac
25729 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25732 case $ac_mode in
25735 # CONFIG_FILE
25738 case $INSTALL in
25739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25740 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25741 esac
25742 _ACEOF
25744 cat >>$CONFIG_STATUS <<\_ACEOF
25745 # If the template does not know about datarootdir, expand it.
25746 # FIXME: This hack should be removed a few years after 2.60.
25747 ac_datarootdir_hack=; ac_datarootdir_seen=
25749 case `sed -n '/datarootdir/ {
25753 /@datadir@/p
25754 /@docdir@/p
25755 /@infodir@/p
25756 /@localedir@/p
25757 /@mandir@/p
25758 ' $ac_file_inputs` in
25759 *datarootdir*) ac_datarootdir_seen=yes;;
25760 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25761 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25762 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25763 _ACEOF
25764 cat >>$CONFIG_STATUS <<_ACEOF
25765 ac_datarootdir_hack='
25766 s&@datadir@&$datadir&g
25767 s&@docdir@&$docdir&g
25768 s&@infodir@&$infodir&g
25769 s&@localedir@&$localedir&g
25770 s&@mandir@&$mandir&g
25771 s&\\\${datarootdir}&$datarootdir&g' ;;
25772 esac
25773 _ACEOF
25775 # Neutralize VPATH when `$srcdir' = `.'.
25776 # Shell code in configure.ac might set extrasub.
25777 # FIXME: do we really want to maintain this feature?
25778 cat >>$CONFIG_STATUS <<_ACEOF
25779 sed "$ac_vpsub
25780 $extrasub
25781 _ACEOF
25782 cat >>$CONFIG_STATUS <<\_ACEOF
25784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25785 s&@configure_input@&$configure_input&;t t
25786 s&@top_builddir@&$ac_top_builddir_sub&;t t
25787 s&@srcdir@&$ac_srcdir&;t t
25788 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25789 s&@top_srcdir@&$ac_top_srcdir&;t t
25790 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25791 s&@builddir@&$ac_builddir&;t t
25792 s&@abs_builddir@&$ac_abs_builddir&;t t
25793 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25794 s&@INSTALL@&$ac_INSTALL&;t t
25795 $ac_datarootdir_hack
25796 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25798 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25799 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25800 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25801 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25802 which seems to be undefined. Please make sure it is defined." >&5
25803 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25804 which seems to be undefined. Please make sure it is defined." >&2;}
25806 rm -f "$tmp/stdin"
25807 case $ac_file in
25808 -) cat "$tmp/out"; rm -f "$tmp/out";;
25809 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25810 esac
25814 # CONFIG_HEADER
25816 _ACEOF
25818 # Transform confdefs.h into a sed script `conftest.defines', that
25819 # substitutes the proper values into config.h.in to produce config.h.
25820 rm -f conftest.defines conftest.tail
25821 # First, append a space to every undef/define line, to ease matching.
25822 echo 's/$/ /' >conftest.defines
25823 # Then, protect against being on the right side of a sed subst, or in
25824 # an unquoted here document, in config.status. If some macros were
25825 # called several times there might be several #defines for the same
25826 # symbol, which is useless. But do not sort them, since the last
25827 # AC_DEFINE must be honored.
25828 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25829 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25830 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25831 # PARAMS is the parameter list in the macro definition--in most cases, it's
25832 # just an empty string.
25833 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25834 ac_dB='\\)[ (].*,\\1define\\2'
25835 ac_dC=' '
25836 ac_dD=' ,'
25838 uniq confdefs.h |
25839 sed -n '
25840 t rset
25841 :rset
25842 s/^[ ]*#[ ]*define[ ][ ]*//
25843 t ok
25846 s/[\\&,]/\\&/g
25847 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25848 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25849 ' >>conftest.defines
25851 # Remove the space that was appended to ease matching.
25852 # Then replace #undef with comments. This is necessary, for
25853 # example, in the case of _POSIX_SOURCE, which is predefined and required
25854 # on some systems where configure will not decide to define it.
25855 # (The regexp can be short, since the line contains either #define or #undef.)
25856 echo 's/ $//
25857 s,^[ #]*u.*,/* & */,' >>conftest.defines
25859 # Break up conftest.defines:
25860 ac_max_sed_lines=50
25862 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25863 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25864 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25865 # et cetera.
25866 ac_in='$ac_file_inputs'
25867 ac_out='"$tmp/out1"'
25868 ac_nxt='"$tmp/out2"'
25870 while :
25872 # Write a here document:
25873 cat >>$CONFIG_STATUS <<_ACEOF
25874 # First, check the format of the line:
25875 cat >"\$tmp/defines.sed" <<\\CEOF
25876 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25877 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25879 :def
25880 _ACEOF
25881 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25882 echo 'CEOF
25883 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25884 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25885 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25886 grep . conftest.tail >/dev/null || break
25887 rm -f conftest.defines
25888 mv conftest.tail conftest.defines
25889 done
25890 rm -f conftest.defines conftest.tail
25892 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25893 cat >>$CONFIG_STATUS <<\_ACEOF
25894 if test x"$ac_file" != x-; then
25895 echo "/* $configure_input */" >"$tmp/config.h"
25896 cat "$ac_result" >>"$tmp/config.h"
25897 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25898 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25899 echo "$as_me: $ac_file is unchanged" >&6;}
25900 else
25901 rm -f $ac_file
25902 mv "$tmp/config.h" $ac_file
25904 else
25905 echo "/* $configure_input */"
25906 cat "$ac_result"
25908 rm -f "$tmp/out12"
25911 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25912 echo "$as_me: executing $ac_file commands" >&6;}
25914 esac
25917 case $ac_file$ac_mode in
25918 "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25919 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25920 "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25921 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25922 "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
25923 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
25924 "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25925 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25926 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25927 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25928 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25929 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25931 esac
25932 done # for ac_tag
25935 { (exit 0); exit 0; }
25936 _ACEOF
25937 chmod +x $CONFIG_STATUS
25938 ac_clean_files=$ac_clean_files_save
25941 # configure is writing to config.log, and then calls config.status.
25942 # config.status does its own redirection, appending to config.log.
25943 # Unfortunately, on DOS this fails, as config.log is still kept open
25944 # by configure, so config.status won't be able to write to it; its
25945 # output is simply discarded. So we exec the FD to /dev/null,
25946 # effectively closing config.log, so it can be properly (re)opened and
25947 # appended to by config.status. When coming back to configure, we
25948 # need to make the FD available again.
25949 if test "$no_create" != yes; then
25950 ac_cs_success=:
25951 ac_config_status_args=
25952 test "$silent" = yes &&
25953 ac_config_status_args="$ac_config_status_args --quiet"
25954 exec 5>/dev/null
25955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25956 exec 5>>config.log
25957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25958 # would make configure fail if this is the last instruction.
25959 $ac_cs_success || { (exit 1); exit 1; }
25963 if test "$have_x" = "no"
25964 then
25965 echo >&2
25966 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25967 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25968 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25969 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25970 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25971 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25972 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
25973 echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
25976 if test "$wine_cv_opengl_version_OK" = "no"
25977 then
25978 echo >&2
25979 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5
25980 echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;}
25981 { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25982 echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
25985 if test "$wine_cv_msg_freetype" = "yes"
25986 then
25987 echo >&2
25988 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25989 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25990 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25991 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25992 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25993 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25994 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25995 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
25998 if test -z "$FONTSSUBDIRS"
25999 then
26000 echo >&2
26001 if test "$FONTFORGE" = "false"
26002 then
26003 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
26004 echo "$as_me: WARNING: FontForge is missing." >&2;}
26005 else
26006 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
26007 echo "$as_me: WARNING: FreeType is missing." >&2;}
26009 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
26010 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
26013 if test -z "$ALSALIBS" -a \
26014 -z "$ARTSC_LIBS" -a \
26015 -z "$AUDIOIOLIBS" -a \
26016 -z "$NASLIBS" -a \
26017 -z "$ESD_LIBS" -a \
26018 -z "$ac_cv_lib_soname_jack" -a \
26019 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
26020 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
26021 "$ac_cv_header_soundcard_h" != "yes"
26022 then
26023 echo >&2
26024 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
26025 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
26026 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
26027 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
26028 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
26029 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
26032 echo
26033 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
26034 echo