ole32/tests: Write-strings warnings fix.
[wine/multimedia.git] / configure
blob90aa97e4e36a9214e15caf54af3d574a5c4538d0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60a for Wine 0.9.18.
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.18'
563 PACKAGE_STRING='Wine 0.9.18'
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.18 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.18:";;
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.18
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.18, 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"
9276 for ac_header in X11/Xlib.h \
9277 X11/XKBlib.h \
9278 X11/Xutil.h \
9279 X11/extensions/shape.h \
9280 X11/extensions/XInput.h \
9281 X11/extensions/XShm.h \
9282 X11/extensions/Xrandr.h \
9283 X11/extensions/Xrender.h \
9284 X11/extensions/xf86vmode.h
9286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292 cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h. */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 #ifdef HAVE_X11_XLIB_H
9299 # include <X11/Xlib.h>
9300 #endif
9301 #ifdef HAVE_X11_XUTIL_H
9302 # include <X11/Xutil.h>
9303 #endif
9305 #include <$ac_header>
9306 _ACEOF
9307 rm -f conftest.$ac_objext
9308 if { (ac_try="$ac_compile"
9309 case "(($ac_try" in
9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9312 esac
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_compile") 2>conftest.er1
9315 ac_status=$?
9316 grep -v '^ *+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9322 { (case "(($ac_try" in
9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9325 esac
9326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327 (eval "$ac_try") 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try='test -s conftest.$ac_objext'
9332 { (case "(($ac_try" in
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9335 esac
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_try") 2>&5
9338 ac_status=$?
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; }; then
9341 eval "$as_ac_Header=yes"
9342 else
9343 echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9346 eval "$as_ac_Header=no"
9349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351 ac_res=`eval echo '${'$as_ac_Header'}'`
9352 { echo "$as_me:$LINENO: result: $ac_res" >&5
9353 echo "${ECHO_T}$ac_res" >&6; }
9354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9355 cat >>confdefs.h <<_ACEOF
9356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9357 _ACEOF
9361 done
9364 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9365 then
9366 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9367 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
9368 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371 ac_check_lib_save_LIBS=$LIBS
9372 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9373 cat >conftest.$ac_ext <<_ACEOF
9374 /* confdefs.h. */
9375 _ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9380 /* Override any GCC internal prototype to avoid an error.
9381 Use char because int might match the return type of a GCC
9382 builtin and then its argument prototype would still apply. */
9383 #ifdef __cplusplus
9384 extern "C"
9385 #endif
9386 char XkbQueryExtension ();
9388 main ()
9390 return XkbQueryExtension ();
9392 return 0;
9394 _ACEOF
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9397 case "(($ac_try" in
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9400 esac
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>conftest.er1
9403 ac_status=$?
9404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9410 { (case "(($ac_try" in
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9413 esac
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_try") 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; } &&
9419 { ac_try='test -s conftest$ac_exeext'
9420 { (case "(($ac_try" in
9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422 *) ac_try_echo=$ac_try;;
9423 esac
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425 (eval "$ac_try") 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; }; then
9429 ac_cv_lib_X11_XkbQueryExtension=yes
9430 else
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9434 ac_cv_lib_X11_XkbQueryExtension=no
9437 rm -f core conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439 LIBS=$ac_check_lib_save_LIBS
9441 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9442 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9443 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
9445 cat >>confdefs.h <<\_ACEOF
9446 #define HAVE_XKB 1
9447 _ACEOF
9453 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9454 then
9455 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9456 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
9457 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 else
9460 ac_check_lib_save_LIBS=$LIBS
9461 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9462 cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h. */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9469 /* Override any GCC internal prototype to avoid an error.
9470 Use char because int might match the return type of a GCC
9471 builtin and then its argument prototype would still apply. */
9472 #ifdef __cplusplus
9473 extern "C"
9474 #endif
9475 char XShmQueryExtension ();
9477 main ()
9479 return XShmQueryExtension ();
9481 return 0;
9483 _ACEOF
9484 rm -f conftest.$ac_objext conftest$ac_exeext
9485 if { (ac_try="$ac_link"
9486 case "(($ac_try" in
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9489 esac
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_link") 2>conftest.er1
9492 ac_status=$?
9493 grep -v '^ *+' conftest.er1 >conftest.err
9494 rm -f conftest.er1
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9499 { (case "(($ac_try" in
9500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501 *) ac_try_echo=$ac_try;;
9502 esac
9503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504 (eval "$ac_try") 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512 esac
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_try") 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 ac_cv_lib_Xext_XShmQueryExtension=yes
9519 else
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 ac_cv_lib_Xext_XShmQueryExtension=no
9526 rm -f core conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9528 LIBS=$ac_check_lib_save_LIBS
9530 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9531 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9532 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
9534 cat >>confdefs.h <<\_ACEOF
9535 #define HAVE_LIBXXSHM 1
9536 _ACEOF
9542 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9543 then
9544 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9545 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9546 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549 ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9551 cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h. */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9558 /* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
9561 #ifdef __cplusplus
9562 extern "C"
9563 #endif
9564 char XShapeQueryExtension ();
9566 main ()
9568 return XShapeQueryExtension ();
9570 return 0;
9572 _ACEOF
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (ac_try="$ac_link"
9575 case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578 esac
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_link") 2>conftest.er1
9581 ac_status=$?
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9588 { (case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_try") 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601 esac
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_try") 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_lib_Xext_XShapeQueryExtension=yes
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_cv_lib_Xext_XShapeQueryExtension=no
9615 rm -f core conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9619 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9620 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9621 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9623 cat >>confdefs.h <<\_ACEOF
9624 #define HAVE_LIBXSHAPE 1
9625 _ACEOF
9631 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9632 then
9633 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9634 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9635 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638 ac_check_lib_save_LIBS=$LIBS
9639 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h. */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9647 /* Override any GCC internal prototype to avoid an error.
9648 Use char because int might match the return type of a GCC
9649 builtin and then its argument prototype would still apply. */
9650 #ifdef __cplusplus
9651 extern "C"
9652 #endif
9653 char XF86VidModeQueryExtension ();
9655 main ()
9657 return XF86VidModeQueryExtension ();
9659 return 0;
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9664 case "(($ac_try" in
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9667 esac
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_link") 2>conftest.er1
9670 ac_status=$?
9671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9677 { (case "(($ac_try" in
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9680 esac
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_try") 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest$ac_exeext'
9687 { (case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_try") 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9697 else
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9701 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9704 rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706 LIBS=$ac_check_lib_save_LIBS
9708 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9709 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9710 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9712 cat >>confdefs.h <<\_ACEOF
9713 #define HAVE_LIBXXF86VM 1
9714 _ACEOF
9716 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
9722 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9723 then
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h. */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 #include <X11/Xlib.h>
9731 #include <X11/extensions/Xrandr.h>
9733 main ()
9735 static typeof(XRRSetScreenConfigAndRate) * func;
9737 return 0;
9739 _ACEOF
9740 rm -f conftest.$ac_objext
9741 if { (ac_try="$ac_compile"
9742 case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9745 esac
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_compile") 2>conftest.er1
9748 ac_status=$?
9749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755 { (case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758 esac
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_try") 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; } &&
9764 { ac_try='test -s conftest.$ac_objext'
9765 { (case "(($ac_try" in
9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9768 esac
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_try") 2>&5
9771 ac_status=$?
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }; then
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_LIBXRANDR 1
9777 _ACEOF
9779 else
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9790 then
9791 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9792 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9793 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796 ac_check_lib_save_LIBS=$LIBS
9797 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9805 /* Override any GCC internal prototype to avoid an error.
9806 Use char because int might match the return type of a GCC
9807 builtin and then its argument prototype would still apply. */
9808 #ifdef __cplusplus
9809 extern "C"
9810 #endif
9811 char XRenderSetPictureTransform ();
9813 main ()
9815 return XRenderSetPictureTransform ();
9817 return 0;
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (ac_try="$ac_link"
9822 case "(($ac_try" in
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9825 esac
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
9828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; } &&
9844 { ac_try='test -s conftest$ac_exeext'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9855 else
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9859 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9862 rm -f core conftest.err conftest.$ac_objext \
9863 conftest$ac_exeext conftest.$ac_ext
9864 LIBS=$ac_check_lib_save_LIBS
9866 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9867 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9868 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9872 _ACEOF
9878 if test "x$with_opengl" != "xno"
9879 then
9884 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
9886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892 cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h. */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 #ifdef HAVE_GL_GLX_H
9899 # include <GL/glx.h>
9900 #endif
9902 #include <$ac_header>
9903 _ACEOF
9904 rm -f conftest.$ac_objext
9905 if { (ac_try="$ac_compile"
9906 case "(($ac_try" in
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9909 esac
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_compile") 2>conftest.er1
9912 ac_status=$?
9913 grep -v '^ *+' conftest.er1 >conftest.err
9914 rm -f conftest.er1
9915 cat conftest.err >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9919 { (case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9922 esac
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_try") 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest.$ac_objext'
9929 { (case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_try") 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 eval "$as_ac_Header=yes"
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 eval "$as_ac_Header=no"
9946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9948 ac_res=`eval echo '${'$as_ac_Header'}'`
9949 { echo "$as_me:$LINENO: result: $ac_res" >&5
9950 echo "${ECHO_T}$ac_res" >&6; }
9951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9952 cat >>confdefs.h <<_ACEOF
9953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9954 _ACEOF
9958 done
9960 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9961 then
9962 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9963 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
9964 if test "${wine_cv_opengl_version_OK+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967 cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h. */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973 #include <GL/gl.h>
9975 main ()
9977 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
9979 return 0;
9981 _ACEOF
9982 rm -f conftest.$ac_objext
9983 if { (ac_try="$ac_compile"
9984 case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987 esac
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_compile") 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9997 { (case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000 esac
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_try") 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; } &&
10006 { ac_try='test -s conftest.$ac_objext'
10007 { (case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10010 esac
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_try") 2>&5
10013 ac_status=$?
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10016 wine_cv_opengl_version_OK="yes"
10017 else
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 wine_cv_opengl_version_OK="no"
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028 { echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
10029 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; }
10031 if test "$wine_cv_opengl_version_OK" = "yes"
10032 then
10033 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
10034 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
10035 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038 ac_check_lib_save_LIBS=$LIBS
10039 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10050 #ifdef __cplusplus
10051 extern "C"
10052 #endif
10053 char glXCreateContext ();
10055 main ()
10057 return glXCreateContext ();
10059 return 0;
10061 _ACEOF
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (ac_try="$ac_link"
10064 case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_link") 2>conftest.er1
10070 ac_status=$?
10071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } &&
10076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; } &&
10086 { ac_try='test -s conftest$ac_exeext'
10087 { (case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_try") 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
10096 ac_cv_lib_GL_glXCreateContext=yes
10097 else
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 ac_cv_lib_GL_glXCreateContext=no
10104 rm -f core conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10106 LIBS=$ac_check_lib_save_LIBS
10108 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
10109 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
10110 if test $ac_cv_lib_GL_glXCreateContext = yes; then
10111 OPENGL_LIBS="-lGL"
10116 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
10117 then
10118 OPENGLFILES='$(OPENGLFILES)'
10120 cat >>confdefs.h <<\_ACEOF
10121 #define HAVE_OPENGL 1
10122 _ACEOF
10124 else
10125 if test -f /usr/X11R6/lib/libGL.a
10126 then
10127 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
10128 This prevents linking to OpenGL. Delete the file and restart configure." >&5
10129 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
10130 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
10131 { (exit 1); exit 1; }; }
10135 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10136 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
10137 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140 ac_check_lib_save_LIBS=$LIBS
10141 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
10142 $LIBS"
10143 cat >conftest.$ac_ext <<_ACEOF
10144 /* confdefs.h. */
10145 _ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h. */
10150 /* Override any GCC internal prototype to avoid an error.
10151 Use char because int might match the return type of a GCC
10152 builtin and then its argument prototype would still apply. */
10153 #ifdef __cplusplus
10154 extern "C"
10155 #endif
10156 char gluLookAt ();
10158 main ()
10160 return gluLookAt ();
10162 return 0;
10164 _ACEOF
10165 rm -f conftest.$ac_objext conftest$ac_exeext
10166 if { (ac_try="$ac_link"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_link") 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10189 { ac_try='test -s conftest$ac_exeext'
10190 { (case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10193 esac
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_try") 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_lib_GLU_gluLookAt=yes
10200 else
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_cv_lib_GLU_gluLookAt=no
10207 rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10211 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10212 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
10213 if test $ac_cv_lib_GLU_gluLookAt = yes; then
10214 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
10215 GLU32FILES='$(GLU32FILES)'
10221 { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
10222 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
10223 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226 ac_check_lib_save_LIBS=$LIBS
10227 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
10228 cat >conftest.$ac_ext <<_ACEOF
10229 /* confdefs.h. */
10230 _ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h. */
10235 /* Override any GCC internal prototype to avoid an error.
10236 Use char because int might match the return type of a GCC
10237 builtin and then its argument prototype would still apply. */
10238 #ifdef __cplusplus
10239 extern "C"
10240 #endif
10241 char glutMainLoop ();
10243 main ()
10245 return glutMainLoop ();
10247 return 0;
10249 _ACEOF
10250 rm -f conftest.$ac_objext conftest$ac_exeext
10251 if { (ac_try="$ac_link"
10252 case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10255 esac
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_link") 2>conftest.er1
10258 ac_status=$?
10259 grep -v '^ *+' conftest.er1 >conftest.err
10260 rm -f conftest.er1
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10265 { (case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_try") 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; } &&
10274 { ac_try='test -s conftest$ac_exeext'
10275 { (case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10278 esac
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_try") 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_cv_lib_glut_glutMainLoop=yes
10285 else
10286 echo "$as_me: failed program was:" >&5
10287 sed 's/^/| /' conftest.$ac_ext >&5
10289 ac_cv_lib_glut_glutMainLoop=no
10292 rm -f core conftest.err conftest.$ac_objext \
10293 conftest$ac_exeext conftest.$ac_ext
10294 LIBS=$ac_check_lib_save_LIBS
10296 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
10297 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
10298 if test $ac_cv_lib_glut_glutMainLoop = yes; then
10299 GLUT_LIBS="-lglut -lXmu -lXi"
10301 GLUT32FILES='$(GLUT32FILES)'
10308 NASLIBS=""
10311 for ac_header in audio/audiolib.h
10313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 ac_res=`eval echo '${'$as_ac_Header'}'`
10321 { echo "$as_me:$LINENO: result: $ac_res" >&5
10322 echo "${ECHO_T}$ac_res" >&6; }
10323 else
10324 # Is the header compilable?
10325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10327 cat >conftest.$ac_ext <<_ACEOF
10328 /* confdefs.h. */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10333 $ac_includes_default
10334 #include <$ac_header>
10335 _ACEOF
10336 rm -f conftest.$ac_objext
10337 if { (ac_try="$ac_compile"
10338 case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10341 esac
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_compile") 2>conftest.er1
10344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10351 { (case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354 esac
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_try") 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } &&
10360 { ac_try='test -s conftest.$ac_objext'
10361 { (case "(($ac_try" in
10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10364 esac
10365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366 (eval "$ac_try") 2>&5
10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; }; then
10370 ac_header_compiler=yes
10371 else
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10375 ac_header_compiler=no
10378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10380 echo "${ECHO_T}$ac_header_compiler" >&6; }
10382 # Is the header present?
10383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10385 cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h. */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 #include <$ac_header>
10392 _ACEOF
10393 if { (ac_try="$ac_cpp conftest.$ac_ext"
10394 case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } >/dev/null; then
10406 if test -s conftest.err; then
10407 ac_cpp_err=$ac_c_preproc_warn_flag
10408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10409 else
10410 ac_cpp_err=
10412 else
10413 ac_cpp_err=yes
10415 if test -z "$ac_cpp_err"; then
10416 ac_header_preproc=yes
10417 else
10418 echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10421 ac_header_preproc=no
10424 rm -f conftest.err conftest.$ac_ext
10425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10426 echo "${ECHO_T}$ac_header_preproc" >&6; }
10428 # So? What about this header?
10429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10430 yes:no: )
10431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10435 ac_header_preproc=yes
10437 no:yes:* )
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10450 ( cat <<\_ASBOX
10451 ## ------------------------------------ ##
10452 ## Report this to wine-devel@winehq.org ##
10453 ## ------------------------------------ ##
10454 _ASBOX
10455 ) | sed "s/^/$as_me: WARNING: /" >&2
10457 esac
10458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463 eval "$as_ac_Header=\$ac_header_preproc"
10465 ac_res=`eval echo '${'$as_ac_Header'}'`
10466 { echo "$as_me:$LINENO: result: $ac_res" >&5
10467 echo "${ECHO_T}$ac_res" >&6; }
10470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10471 cat >>confdefs.h <<_ACEOF
10472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10473 _ACEOF
10475 for ac_header in audio/soundlib.h
10477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483 cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h. */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 #include <audio/audiolib.h>
10491 #include <$ac_header>
10492 _ACEOF
10493 rm -f conftest.$ac_objext
10494 if { (ac_try="$ac_compile"
10495 case "(($ac_try" in
10496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10498 esac
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_compile") 2>conftest.er1
10501 ac_status=$?
10502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } &&
10507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10508 { (case "(($ac_try" in
10509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10511 esac
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513 (eval "$ac_try") 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; } &&
10517 { ac_try='test -s conftest.$ac_objext'
10518 { (case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10521 esac
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_try") 2>&5
10524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 eval "$as_ac_Header=yes"
10528 else
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10532 eval "$as_ac_Header=no"
10535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10537 ac_res=`eval echo '${'$as_ac_Header'}'`
10538 { echo "$as_me:$LINENO: result: $ac_res" >&5
10539 echo "${ECHO_T}$ac_res" >&6; }
10540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10541 cat >>confdefs.h <<_ACEOF
10542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10543 _ACEOF
10547 done
10549 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10550 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
10551 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554 ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10563 /* Override any GCC internal prototype to avoid an error.
10564 Use char because int might match the return type of a GCC
10565 builtin and then its argument prototype would still apply. */
10566 #ifdef __cplusplus
10567 extern "C"
10568 #endif
10569 char AuCreateFlow ();
10571 main ()
10573 return AuCreateFlow ();
10575 return 0;
10577 _ACEOF
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (ac_try="$ac_link"
10580 case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10583 esac
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_link") 2>conftest.er1
10586 ac_status=$?
10587 grep -v '^ *+' conftest.er1 >conftest.err
10588 rm -f conftest.er1
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
10592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10593 { (case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596 esac
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_try") 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; } &&
10602 { ac_try='test -s conftest$ac_exeext'
10603 { (case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_try") 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 ac_cv_lib_audio_AuCreateFlow=yes
10613 else
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10617 ac_cv_lib_audio_AuCreateFlow=no
10620 rm -f core conftest.err conftest.$ac_objext \
10621 conftest$ac_exeext conftest.$ac_ext
10622 LIBS=$ac_check_lib_save_LIBS
10624 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10625 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10626 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10628 cat >>confdefs.h <<\_ACEOF
10629 #define HAVE_NAS 1
10630 _ACEOF
10632 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10637 done
10640 CPPFLAGS="$ac_save_CPPFLAGS"
10641 XFILES='$(XFILES)'
10642 else
10643 XLIB=""
10644 X_CFLAGS=""
10645 X_LIBS=""
10649 XML2LIBS=""
10651 XML2INCL=""
10653 XSLTLIBS=""
10655 XSLTINCL=""
10657 if test "$PKG_CONFIG" != "false"
10658 then
10659 ac_save_CPPFLAGS="$CPPFLAGS"
10660 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10661 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
10662 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10664 for ac_header in libxml/parser.h
10666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 ac_res=`eval echo '${'$as_ac_Header'}'`
10674 { echo "$as_me:$LINENO: result: $ac_res" >&5
10675 echo "${ECHO_T}$ac_res" >&6; }
10676 else
10677 # Is the header compilable?
10678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10680 cat >conftest.$ac_ext <<_ACEOF
10681 /* confdefs.h. */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10686 $ac_includes_default
10687 #include <$ac_header>
10688 _ACEOF
10689 rm -f conftest.$ac_objext
10690 if { (ac_try="$ac_compile"
10691 case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694 esac
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_compile") 2>conftest.er1
10697 ac_status=$?
10698 grep -v '^ *+' conftest.er1 >conftest.err
10699 rm -f conftest.er1
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
10703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10704 { (case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707 esac
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_try") 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest.$ac_objext'
10714 { (case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_try") 2>&5
10720 ac_status=$?
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; }; then
10723 ac_header_compiler=yes
10724 else
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 ac_header_compiler=no
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10733 echo "${ECHO_T}$ac_header_compiler" >&6; }
10735 # Is the header present?
10736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 #include <$ac_header>
10745 _ACEOF
10746 if { (ac_try="$ac_cpp conftest.$ac_ext"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750 esac
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } >/dev/null; then
10759 if test -s conftest.err; then
10760 ac_cpp_err=$ac_c_preproc_warn_flag
10761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10762 else
10763 ac_cpp_err=
10765 else
10766 ac_cpp_err=yes
10768 if test -z "$ac_cpp_err"; then
10769 ac_header_preproc=yes
10770 else
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 ac_header_preproc=no
10777 rm -f conftest.err conftest.$ac_ext
10778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10779 echo "${ECHO_T}$ac_header_preproc" >&6; }
10781 # So? What about this header?
10782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10783 yes:no: )
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10788 ac_header_preproc=yes
10790 no:yes:* )
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10803 ( cat <<\_ASBOX
10804 ## ------------------------------------ ##
10805 ## Report this to wine-devel@winehq.org ##
10806 ## ------------------------------------ ##
10807 _ASBOX
10808 ) | sed "s/^/$as_me: WARNING: /" >&2
10810 esac
10811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816 eval "$as_ac_Header=\$ac_header_preproc"
10818 ac_res=`eval echo '${'$as_ac_Header'}'`
10819 { echo "$as_me:$LINENO: result: $ac_res" >&5
10820 echo "${ECHO_T}$ac_res" >&6; }
10823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10824 cat >>confdefs.h <<_ACEOF
10825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10826 _ACEOF
10827 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10828 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
10829 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 else
10832 ac_check_lib_save_LIBS=$LIBS
10833 LIBS="-lxml2 $ac_xml_libs $LIBS"
10834 cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h. */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10841 /* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
10844 #ifdef __cplusplus
10845 extern "C"
10846 #endif
10847 char xmlParseMemory ();
10849 main ()
10851 return xmlParseMemory ();
10853 return 0;
10855 _ACEOF
10856 rm -f conftest.$ac_objext conftest$ac_exeext
10857 if { (ac_try="$ac_link"
10858 case "(($ac_try" in
10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10861 esac
10862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863 (eval "$ac_link") 2>conftest.er1
10864 ac_status=$?
10865 grep -v '^ *+' conftest.er1 >conftest.err
10866 rm -f conftest.er1
10867 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
10870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10871 { (case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10874 esac
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_try") 2>&5
10877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; } &&
10880 { ac_try='test -s conftest$ac_exeext'
10881 { (case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
10890 ac_cv_lib_xml2_xmlParseMemory=yes
10891 else
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_cv_lib_xml2_xmlParseMemory=no
10898 rm -f core conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext conftest.$ac_ext
10900 LIBS=$ac_check_lib_save_LIBS
10902 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10903 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10904 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
10906 cat >>confdefs.h <<\_ACEOF
10907 #define HAVE_LIBXML2 1
10908 _ACEOF
10910 XML2LIBS="$ac_xml_libs"
10911 XML2INCL="$ac_xml_cflags"
10914 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10915 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
10916 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919 ac_check_lib_save_LIBS=$LIBS
10920 LIBS="-lxml2 $ac_xml_libs $LIBS"
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10928 /* Override any GCC internal prototype to avoid an error.
10929 Use char because int might match the return type of a GCC
10930 builtin and then its argument prototype would still apply. */
10931 #ifdef __cplusplus
10932 extern "C"
10933 #endif
10934 char xmlReadMemory ();
10936 main ()
10938 return xmlReadMemory ();
10940 return 0;
10942 _ACEOF
10943 rm -f conftest.$ac_objext conftest$ac_exeext
10944 if { (ac_try="$ac_link"
10945 case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_link") 2>conftest.er1
10951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } &&
10957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961 esac
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest$ac_exeext'
10968 { (case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971 esac
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_try") 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 ac_cv_lib_xml2_xmlReadMemory=yes
10978 else
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_cv_lib_xml2_xmlReadMemory=no
10985 rm -f core conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10989 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10990 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10991 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
10993 cat >>confdefs.h <<\_ACEOF
10994 #define HAVE_XMLREADMEMORY 1
10995 _ACEOF
11002 done
11004 CPPFLAGS="$ac_save_CPPFLAGS"
11005 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
11006 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
11007 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
11010 for ac_header in libxslt/pattern.h libxslt/transform.h
11012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11017 else
11018 cat >conftest.$ac_ext <<_ACEOF
11019 /* confdefs.h. */
11020 _ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11024 #ifdef HAVE_LIBXSLT_PATTERN_H
11025 # include <libxslt/pattern.h>
11026 #endif
11028 #include <$ac_header>
11029 _ACEOF
11030 rm -f conftest.$ac_objext
11031 if { (ac_try="$ac_compile"
11032 case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11035 esac
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_compile") 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11045 { (case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048 esac
11049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_try") 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; } &&
11054 { ac_try='test -s conftest.$ac_objext'
11055 { (case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11058 esac
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_try") 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 eval "$as_ac_Header=yes"
11065 else
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 eval "$as_ac_Header=no"
11072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11074 ac_res=`eval echo '${'$as_ac_Header'}'`
11075 { echo "$as_me:$LINENO: result: $ac_res" >&5
11076 echo "${ECHO_T}$ac_res" >&6; }
11077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11078 cat >>confdefs.h <<_ACEOF
11079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11080 _ACEOF
11081 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
11082 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
11083 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 ac_check_lib_save_LIBS=$LIBS
11087 LIBS="-lxslt $ac_xslt_libs $LIBS"
11088 cat >conftest.$ac_ext <<_ACEOF
11089 /* confdefs.h. */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11095 /* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
11098 #ifdef __cplusplus
11099 extern "C"
11100 #endif
11101 char xsltCompilePattern ();
11103 main ()
11105 return xsltCompilePattern ();
11107 return 0;
11109 _ACEOF
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (ac_try="$ac_link"
11112 case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115 esac
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_link") 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; } &&
11134 { ac_try='test -s conftest$ac_exeext'
11135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_lib_xslt_xsltCompilePattern=yes
11145 else
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ac_cv_lib_xslt_xsltCompilePattern=no
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11156 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11157 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
11158 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11160 cat >>confdefs.h <<\_ACEOF
11161 #define HAVE_LIBXSLT 1
11162 _ACEOF
11164 XSLTLIBS="$ac_xslt_libs"
11165 XSLTINCL="$ac_xslt_cflags"
11171 done
11173 CPPFLAGS="$ac_save_CPPFLAGS"
11176 HALINCL=""
11178 if test "$PKG_CONFIG" != "false"
11179 then
11180 ac_save_CPPFLAGS="$CPPFLAGS"
11181 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11182 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
11183 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11186 for ac_header in dbus/dbus.h hal/libhal.h
11188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 ac_res=`eval echo '${'$as_ac_Header'}'`
11196 { echo "$as_me:$LINENO: result: $ac_res" >&5
11197 echo "${ECHO_T}$ac_res" >&6; }
11198 else
11199 # Is the header compilable?
11200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h. */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 $ac_includes_default
11209 #include <$ac_header>
11210 _ACEOF
11211 rm -f conftest.$ac_objext
11212 if { (ac_try="$ac_compile"
11213 case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11216 esac
11217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218 (eval "$ac_compile") 2>conftest.er1
11219 ac_status=$?
11220 grep -v '^ *+' conftest.er1 >conftest.err
11221 rm -f conftest.er1
11222 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11226 { (case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11229 esac
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_try") 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try='test -s conftest.$ac_objext'
11236 { (case "(($ac_try" in
11237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238 *) ac_try_echo=$ac_try;;
11239 esac
11240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11241 (eval "$ac_try") 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_header_compiler=yes
11246 else
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11250 ac_header_compiler=no
11253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11255 echo "${ECHO_T}$ac_header_compiler" >&6; }
11257 # Is the header present?
11258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11260 cat >conftest.$ac_ext <<_ACEOF
11261 /* confdefs.h. */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11266 #include <$ac_header>
11267 _ACEOF
11268 if { (ac_try="$ac_cpp conftest.$ac_ext"
11269 case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } >/dev/null; then
11281 if test -s conftest.err; then
11282 ac_cpp_err=$ac_c_preproc_warn_flag
11283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11284 else
11285 ac_cpp_err=
11287 else
11288 ac_cpp_err=yes
11290 if test -z "$ac_cpp_err"; then
11291 ac_header_preproc=yes
11292 else
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11296 ac_header_preproc=no
11299 rm -f conftest.err conftest.$ac_ext
11300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11301 echo "${ECHO_T}$ac_header_preproc" >&6; }
11303 # So? What about this header?
11304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11305 yes:no: )
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11310 ac_header_preproc=yes
11312 no:yes:* )
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11325 ( cat <<\_ASBOX
11326 ## ------------------------------------ ##
11327 ## Report this to wine-devel@winehq.org ##
11328 ## ------------------------------------ ##
11329 _ASBOX
11330 ) | sed "s/^/$as_me: WARNING: /" >&2
11332 esac
11333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 else
11338 eval "$as_ac_Header=\$ac_header_preproc"
11340 ac_res=`eval echo '${'$as_ac_Header'}'`
11341 { echo "$as_me:$LINENO: result: $ac_res" >&5
11342 echo "${ECHO_T}$ac_res" >&6; }
11345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11346 cat >>confdefs.h <<_ACEOF
11347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11348 _ACEOF
11352 done
11354 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11355 then
11356 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
11357 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
11358 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361 ac_check_lib_save_LIBS=$LIBS
11362 LIBS="-lhal $LIBS"
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h. */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11370 /* Override any GCC internal prototype to avoid an error.
11371 Use char because int might match the return type of a GCC
11372 builtin and then its argument prototype would still apply. */
11373 #ifdef __cplusplus
11374 extern "C"
11375 #endif
11376 char libhal_ctx_new ();
11378 main ()
11380 return libhal_ctx_new ();
11382 return 0;
11384 _ACEOF
11385 rm -f conftest.$ac_objext conftest$ac_exeext
11386 if { (ac_try="$ac_link"
11387 case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390 esac
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_link") 2>conftest.er1
11393 ac_status=$?
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11400 { (case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403 esac
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_try") 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; } &&
11409 { ac_try='test -s conftest$ac_exeext'
11410 { (case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413 esac
11414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_try") 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 ac_cv_lib_hal_libhal_ctx_new=yes
11420 else
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 ac_cv_lib_hal_libhal_ctx_new=no
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11431 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
11432 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
11433 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
11434 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11435 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
11436 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 else
11439 ac_check_lib_save_LIBS=$LIBS
11440 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h. */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11448 /* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11451 #ifdef __cplusplus
11452 extern "C"
11453 #endif
11454 char dbus_connection_close ();
11456 main ()
11458 return dbus_connection_close ();
11460 return 0;
11462 _ACEOF
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (ac_try="$ac_link"
11465 case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468 esac
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_link") 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
11477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11478 { (case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481 esac
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_try") 2>&5
11484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; } &&
11487 { ac_try='test -s conftest$ac_exeext'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_lib_dbus_1_dbus_connection_close=yes
11498 else
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 ac_cv_lib_dbus_1_dbus_connection_close=no
11505 rm -f core conftest.err conftest.$ac_objext \
11506 conftest$ac_exeext conftest.$ac_ext
11507 LIBS=$ac_check_lib_save_LIBS
11509 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11510 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
11511 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
11513 cat >>confdefs.h <<\_ACEOF
11514 #define HAVE_LIBHAL 1
11515 _ACEOF
11517 HALINCL="$ac_hal_cflags"
11523 CPPFLAGS="$ac_save_CPPFLAGS"
11526 CURSESLIBS=""
11527 if test "x$with_curses" != "xno"
11528 then
11529 if test "$ac_cv_header_ncurses_h" = "yes"
11530 then
11531 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
11532 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
11533 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536 ac_check_lib_save_LIBS=$LIBS
11537 LIBS="-lncurses $LIBS"
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h. */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 char waddch ();
11553 main ()
11555 return waddch ();
11557 return 0;
11559 _ACEOF
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (ac_try="$ac_link"
11562 case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565 esac
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_link") 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575 { (case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_try") 2>&5
11581 ac_status=$?
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; } &&
11584 { ac_try='test -s conftest$ac_exeext'
11585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 ac_cv_lib_ncurses_waddch=yes
11595 else
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11599 ac_cv_lib_ncurses_waddch=no
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11606 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
11607 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
11608 if test $ac_cv_lib_ncurses_waddch = yes; then
11610 cat >>confdefs.h <<\_ACEOF
11611 #define HAVE_LIBNCURSES 1
11612 _ACEOF
11614 CURSESLIBS="-lncurses"
11617 elif test "$ac_cv_header_curses_h" = "yes"
11618 then
11619 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11620 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
11621 if test "${ac_cv_lib_curses_waddch+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624 ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-lcurses $LIBS"
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char waddch ();
11641 main ()
11643 return waddch ();
11645 return 0;
11647 _ACEOF
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (ac_try="$ac_link"
11650 case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11653 esac
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_link") 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11663 { (case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11666 esac
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_try") 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try='test -s conftest$ac_exeext'
11673 { (case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_try") 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_cv_lib_curses_waddch=yes
11683 else
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11687 ac_cv_lib_curses_waddch=no
11690 rm -f core conftest.err conftest.$ac_objext \
11691 conftest$ac_exeext conftest.$ac_ext
11692 LIBS=$ac_check_lib_save_LIBS
11694 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11695 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
11696 if test $ac_cv_lib_curses_waddch = yes; then
11698 cat >>confdefs.h <<\_ACEOF
11699 #define HAVE_LIBCURSES 1
11700 _ACEOF
11702 CURSESLIBS="-lcurses"
11706 ac_save_LIBS="$LIBS"
11707 LIBS="$LIBS $CURSESLIBS"
11709 for ac_func in mousemask
11711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717 cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h. */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11725 #define $ac_func innocuous_$ac_func
11727 /* System header to define __stub macros and hopefully few prototypes,
11728 which can conflict with char $ac_func (); below.
11729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 <limits.h> exists even on freestanding compilers. */
11732 #ifdef __STDC__
11733 # include <limits.h>
11734 #else
11735 # include <assert.h>
11736 #endif
11738 #undef $ac_func
11740 /* Override any GCC internal prototype to avoid an error.
11741 Use char because int might match the return type of a GCC
11742 builtin and then its argument prototype would still apply. */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 char $ac_func ();
11747 /* The GNU C library defines this for functions which it implements
11748 to always fail with ENOSYS. Some functions are actually named
11749 something starting with __ and the normal name is an alias. */
11750 #if defined __stub_$ac_func || defined __stub___$ac_func
11751 choke me
11752 #endif
11755 main ()
11757 return $ac_func ();
11759 return 0;
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (ac_try="$ac_link"
11764 case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767 esac
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_link") 2>conftest.er1
11770 ac_status=$?
11771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777 { (case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_try") 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest$ac_exeext'
11787 { (case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790 esac
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_try") 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 eval "$as_ac_var=yes"
11797 else
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 eval "$as_ac_var=no"
11804 rm -f core conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11807 ac_res=`eval echo '${'$as_ac_var'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11810 if test `eval echo '${'$as_ac_var'}'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11813 _ACEOF
11816 done
11818 LIBS="$ac_save_LIBS"
11822 # Extract the first word of "sane-config", so it can be a program name with args.
11823 set dummy sane-config; ac_word=$2
11824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11826 if test "${ac_cv_prog_sane_devel+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829 if test -n "$sane_devel"; then
11830 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11831 else
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11839 ac_cv_prog_sane_devel="sane-config"
11840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11843 done
11844 done
11845 IFS=$as_save_IFS
11847 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11850 sane_devel=$ac_cv_prog_sane_devel
11851 if test -n "$sane_devel"; then
11852 { echo "$as_me:$LINENO: result: $sane_devel" >&5
11853 echo "${ECHO_T}$sane_devel" >&6; }
11854 else
11855 { echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6; }
11860 SANELIBS=""
11862 SANEINCL=""
11864 if test "$sane_devel" != "no"
11865 then
11866 SANELIBS="`$sane_devel --libs`"
11867 SANEINCL="`$sane_devel --cflags`"
11868 ac_save_CPPFLAGS="$CPPFLAGS"
11869 ac_save_LIBS="$LIBS"
11870 CPPFLAGS="$CPPFLAGS $SANEINCL"
11871 LIBS="$LIBS $SANELIBS"
11872 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11873 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11874 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11875 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11879 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11880 else
11881 # Is the header compilable?
11882 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11883 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h. */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11890 $ac_includes_default
11891 #include <sane/sane.h>
11892 _ACEOF
11893 rm -f conftest.$ac_objext
11894 if { (ac_try="$ac_compile"
11895 case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11898 esac
11899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_compile") 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11908 { (case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11911 esac
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_try") 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try='test -s conftest.$ac_objext'
11918 { (case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_try") 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 ac_header_compiler=yes
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_header_compiler=no
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11937 echo "${ECHO_T}$ac_header_compiler" >&6; }
11939 # Is the header present?
11940 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
11941 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h. */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 #include <sane/sane.h>
11949 _ACEOF
11950 if { (ac_try="$ac_cpp conftest.$ac_ext"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954 esac
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } >/dev/null; then
11963 if test -s conftest.err; then
11964 ac_cpp_err=$ac_c_preproc_warn_flag
11965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11966 else
11967 ac_cpp_err=
11969 else
11970 ac_cpp_err=yes
11972 if test -z "$ac_cpp_err"; then
11973 ac_header_preproc=yes
11974 else
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_header_preproc=no
11981 rm -f conftest.err conftest.$ac_ext
11982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11983 echo "${ECHO_T}$ac_header_preproc" >&6; }
11985 # So? What about this header?
11986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11987 yes:no: )
11988 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
11989 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11990 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
11991 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
11992 ac_header_preproc=yes
11994 no:yes:* )
11995 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
11996 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
11998 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
12000 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
12001 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
12002 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
12004 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
12006 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
12007 ( cat <<\_ASBOX
12008 ## ------------------------------------ ##
12009 ## Report this to wine-devel@winehq.org ##
12010 ## ------------------------------------ ##
12011 _ASBOX
12012 ) | sed "s/^/$as_me: WARNING: /" >&2
12014 esac
12015 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
12016 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
12017 if test "${ac_cv_header_sane_sane_h+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020 ac_cv_header_sane_sane_h=$ac_header_preproc
12022 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
12023 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
12026 if test $ac_cv_header_sane_sane_h = yes; then
12027 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
12028 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
12029 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032 ac_check_lib_save_LIBS=$LIBS
12033 LIBS="-lsane $LIBS"
12034 cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h. */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12041 /* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12044 #ifdef __cplusplus
12045 extern "C"
12046 #endif
12047 char sane_open ();
12049 main ()
12051 return sane_open ();
12053 return 0;
12055 _ACEOF
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (ac_try="$ac_link"
12058 case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12061 esac
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_link") 2>conftest.er1
12064 ac_status=$?
12065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071 { (case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_try") 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest$ac_exeext'
12081 { (case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12084 esac
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_try") 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12090 ac_cv_lib_sane_sane_open=yes
12091 else
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 ac_cv_lib_sane_sane_open=no
12098 rm -f core conftest.err conftest.$ac_objext \
12099 conftest$ac_exeext conftest.$ac_ext
12100 LIBS=$ac_check_lib_save_LIBS
12102 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
12103 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
12104 if test $ac_cv_lib_sane_sane_open = yes; then
12106 cat >>confdefs.h <<\_ACEOF
12107 #define HAVE_SANE 1
12108 _ACEOF
12110 else
12111 SANELIBS=""
12112 SANEINCL=""
12115 else
12116 SANELIBS=""
12117 SANEINCL=""
12121 LIBS="$ac_save_LIBS"
12122 CPPFLAGS="$ac_save_CPPFLAGS"
12125 # Extract the first word of "gphoto2-config", so it can be a program name with args.
12126 set dummy gphoto2-config; ac_word=$2
12127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12129 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12131 else
12132 if test -n "$gphoto2_devel"; then
12133 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12134 else
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
12141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12142 ac_cv_prog_gphoto2_devel="gphoto2-config"
12143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 break 2
12146 done
12147 done
12148 IFS=$as_save_IFS
12150 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12153 gphoto2_devel=$ac_cv_prog_gphoto2_devel
12154 if test -n "$gphoto2_devel"; then
12155 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12156 echo "${ECHO_T}$gphoto2_devel" >&6; }
12157 else
12158 { echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6; }
12163 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12164 set dummy gphoto2-port-config; ac_word=$2
12165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12167 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170 if test -n "$gphoto2port_devel"; then
12171 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12172 else
12173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174 for as_dir in $PATH
12176 IFS=$as_save_IFS
12177 test -z "$as_dir" && as_dir=.
12178 for ac_exec_ext in '' $ac_executable_extensions; do
12179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12180 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12182 break 2
12184 done
12185 done
12186 IFS=$as_save_IFS
12188 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
12191 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12192 if test -n "$gphoto2port_devel"; then
12193 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12194 echo "${ECHO_T}$gphoto2port_devel" >&6; }
12195 else
12196 { echo "$as_me:$LINENO: result: no" >&5
12197 echo "${ECHO_T}no" >&6; }
12201 GPHOTO2LIBS=""
12203 GPHOTO2INCL=""
12205 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12206 then
12207 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12208 GPHOTO2LIBS=""
12209 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12211 case "$i" in
12212 -L/usr/lib|-L/usr/lib64) ;;
12213 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
12214 esac
12215 done
12216 ac_save_CPPFLAGS="$CPPFLAGS"
12217 ac_save_LIBS="$LIBS"
12218 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
12219 LIBS="$LIBS $GPHOTO2LIBS"
12220 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12221 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12222 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12223 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12227 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12228 else
12229 # Is the header compilable?
12230 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12231 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
12232 cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h. */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238 $ac_includes_default
12239 #include <gphoto2-camera.h>
12240 _ACEOF
12241 rm -f conftest.$ac_objext
12242 if { (ac_try="$ac_compile"
12243 case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246 esac
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_compile") 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } &&
12255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12256 { (case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259 esac
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_try") 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; } &&
12265 { ac_try='test -s conftest.$ac_objext'
12266 { (case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269 esac
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_try") 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 ac_header_compiler=yes
12276 else
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 ac_header_compiler=no
12283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12285 echo "${ECHO_T}$ac_header_compiler" >&6; }
12287 # Is the header present?
12288 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12289 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 #include <gphoto2-camera.h>
12297 _ACEOF
12298 if { (ac_try="$ac_cpp conftest.$ac_ext"
12299 case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12305 ac_status=$?
12306 grep -v '^ *+' conftest.er1 >conftest.err
12307 rm -f conftest.er1
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } >/dev/null; then
12311 if test -s conftest.err; then
12312 ac_cpp_err=$ac_c_preproc_warn_flag
12313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12314 else
12315 ac_cpp_err=
12317 else
12318 ac_cpp_err=yes
12320 if test -z "$ac_cpp_err"; then
12321 ac_header_preproc=yes
12322 else
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ac_header_preproc=no
12329 rm -f conftest.err conftest.$ac_ext
12330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12331 echo "${ECHO_T}$ac_header_preproc" >&6; }
12333 # So? What about this header?
12334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12335 yes:no: )
12336 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12337 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12339 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12340 ac_header_preproc=yes
12342 no:yes:* )
12343 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12344 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
12346 echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
12347 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12348 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12349 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
12350 echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
12351 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12352 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12353 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12354 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
12355 ( cat <<\_ASBOX
12356 ## ------------------------------------ ##
12357 ## Report this to wine-devel@winehq.org ##
12358 ## ------------------------------------ ##
12359 _ASBOX
12360 ) | sed "s/^/$as_me: WARNING: /" >&2
12362 esac
12363 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12364 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12365 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 else
12368 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
12370 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12371 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12374 if test $ac_cv_header_gphoto2_camera_h = yes; then
12375 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12376 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
12377 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380 ac_check_lib_save_LIBS=$LIBS
12381 LIBS="-lgphoto2 $LIBS"
12382 cat >conftest.$ac_ext <<_ACEOF
12383 /* confdefs.h. */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12389 /* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
12392 #ifdef __cplusplus
12393 extern "C"
12394 #endif
12395 char gp_camera_new ();
12397 main ()
12399 return gp_camera_new ();
12401 return 0;
12403 _ACEOF
12404 rm -f conftest.$ac_objext conftest$ac_exeext
12405 if { (ac_try="$ac_link"
12406 case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409 esac
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_link") 2>conftest.er1
12412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419 { (case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422 esac
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_try") 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest$ac_exeext'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432 esac
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_cv_lib_gphoto2_gp_camera_new=yes
12439 else
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_cv_lib_gphoto2_gp_camera_new=no
12446 rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12448 LIBS=$ac_check_lib_save_LIBS
12450 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12451 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
12452 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
12454 cat >>confdefs.h <<\_ACEOF
12455 #define HAVE_GPHOTO2 1
12456 _ACEOF
12458 else
12459 GPHOTO2LIBS=""
12460 GPHOTO2INCL=""
12463 else
12464 GPHOTO2LIBS=""
12465 GPHOTO2INCL=""
12469 LIBS="$ac_save_LIBS"
12470 CPPFLAGS="$ac_save_CPPFLAGS"
12473 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
12474 then
12475 saved_libs="$LIBS"
12476 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
12478 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
12479 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
12480 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
12481 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
12482 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12483 cat >conftest.$ac_ext <<_ACEOF
12484 /* confdefs.h. */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 #include <unicode/ubidi.h>
12491 main ()
12493 ubidi_open()
12495 return 0;
12497 _ACEOF
12498 rm -f conftest.$ac_objext conftest$ac_exeext
12499 if { (ac_try="$ac_link"
12500 case "(($ac_try" in
12501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502 *) ac_try_echo=$ac_try;;
12503 esac
12504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505 (eval "$ac_link") 2>conftest.er1
12506 ac_status=$?
12507 grep -v '^ *+' conftest.er1 >conftest.err
12508 rm -f conftest.er1
12509 cat conftest.err >&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
12512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12513 { (case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12516 esac
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_try") 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; } &&
12522 { ac_try='test -s conftest$ac_exeext'
12523 { (case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12526 esac
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_try") 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
12533 cat >>confdefs.h <<\_ACEOF
12534 #define HAVE_ICU 1
12535 _ACEOF
12537 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12539 { echo "$as_me:$LINENO: result: yes" >&5
12540 echo "${ECHO_T}yes" >&6; }
12541 else
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 { echo "$as_me:$LINENO: result: no" >&5
12546 echo "${ECHO_T}no" >&6; }
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 done
12552 LIBS="$saved_libs"
12555 RESOLVLIBS=""
12557 if test "$ac_cv_header_resolv_h" = "yes"
12558 then
12559 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12560 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
12561 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564 ac_check_lib_save_LIBS=$LIBS
12565 LIBS="-lresolv $LIBS"
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h. */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12573 /* Override any GCC internal prototype to avoid an error.
12574 Use char because int might match the return type of a GCC
12575 builtin and then its argument prototype would still apply. */
12576 #ifdef __cplusplus
12577 extern "C"
12578 #endif
12579 char res_query ();
12581 main ()
12583 return res_query ();
12585 return 0;
12587 _ACEOF
12588 rm -f conftest.$ac_objext conftest$ac_exeext
12589 if { (ac_try="$ac_link"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_link") 2>conftest.er1
12596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
12602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12603 { (case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12606 esac
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_try") 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; } &&
12612 { ac_try='test -s conftest$ac_exeext'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616 esac
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_cv_lib_resolv_res_query=yes
12623 else
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 ac_cv_lib_resolv_res_query=no
12630 rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632 LIBS=$ac_check_lib_save_LIBS
12634 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12635 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12636 if test $ac_cv_lib_resolv_res_query = yes; then
12638 cat >>confdefs.h <<\_ACEOF
12639 #define HAVE_RESOLV 1
12640 _ACEOF
12642 RESOLVLIBS="-lresolv"
12647 LCMSLIBS=""
12649 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12650 then
12651 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12652 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12653 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656 ac_check_lib_save_LIBS=$LIBS
12657 LIBS="-llcms $LIBS"
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h. */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12665 /* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12668 #ifdef __cplusplus
12669 extern "C"
12670 #endif
12671 char cmsOpenProfileFromFile ();
12673 main ()
12675 return cmsOpenProfileFromFile ();
12677 return 0;
12679 _ACEOF
12680 rm -f conftest.$ac_objext conftest$ac_exeext
12681 if { (ac_try="$ac_link"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_link") 2>conftest.er1
12688 ac_status=$?
12689 grep -v '^ *+' conftest.er1 >conftest.err
12690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } &&
12694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12695 { (case "(($ac_try" in
12696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697 *) ac_try_echo=$ac_try;;
12698 esac
12699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12700 (eval "$ac_try") 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12708 esac
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_try") 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12715 else
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
12722 rm -f core conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext conftest.$ac_ext
12724 LIBS=$ac_check_lib_save_LIBS
12726 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12727 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12728 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12730 cat >>confdefs.h <<\_ACEOF
12731 #define HAVE_LCMS 1
12732 _ACEOF
12734 LCMSLIBS="-llcms"
12739 LDAPLIBS=""
12741 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12742 then
12743 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12744 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12745 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748 ac_check_lib_save_LIBS=$LIBS
12749 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12750 cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h. */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12757 /* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
12760 #ifdef __cplusplus
12761 extern "C"
12762 #endif
12763 char ldap_initialize ();
12765 main ()
12767 return ldap_initialize ();
12769 return 0;
12771 _ACEOF
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (ac_try="$ac_link"
12774 case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_link") 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12790 esac
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_try") 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12800 esac
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_try") 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_cv_lib_ldap_r_ldap_initialize=yes
12807 else
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12811 ac_cv_lib_ldap_r_ldap_initialize=no
12814 rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816 LIBS=$ac_check_lib_save_LIBS
12818 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12819 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12820 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12821 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12822 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12823 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826 ac_check_lib_save_LIBS=$LIBS
12827 LIBS="-llber $LIBPTHREAD $LIBS"
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h. */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12835 /* Override any GCC internal prototype to avoid an error.
12836 Use char because int might match the return type of a GCC
12837 builtin and then its argument prototype would still apply. */
12838 #ifdef __cplusplus
12839 extern "C"
12840 #endif
12841 char ber_init ();
12843 main ()
12845 return ber_init ();
12847 return 0;
12849 _ACEOF
12850 rm -f conftest.$ac_objext conftest$ac_exeext
12851 if { (ac_try="$ac_link"
12852 case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12855 esac
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_link") 2>conftest.er1
12858 ac_status=$?
12859 grep -v '^ *+' conftest.er1 >conftest.err
12860 rm -f conftest.er1
12861 cat conftest.err >&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } &&
12864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12865 { (case "(($ac_try" in
12866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867 *) ac_try_echo=$ac_try;;
12868 esac
12869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870 (eval "$ac_try") 2>&5
12871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; } &&
12874 { ac_try='test -s conftest$ac_exeext'
12875 { (case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878 esac
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_try") 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 ac_cv_lib_lber_ber_init=yes
12885 else
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12889 ac_cv_lib_lber_ber_init=no
12892 rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12894 LIBS=$ac_check_lib_save_LIBS
12896 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12897 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12898 if test $ac_cv_lib_lber_ber_init = yes; then
12900 cat >>confdefs.h <<\_ACEOF
12901 #define HAVE_LDAP 1
12902 _ACEOF
12904 LDAPLIBS="-lldap_r -llber"
12909 ac_wine_check_funcs_save_LIBS="$LIBS"
12910 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12915 for ac_func in \
12916 ldap_count_references \
12917 ldap_first_reference \
12918 ldap_next_reference \
12919 ldap_parse_reference
12921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927 cat >conftest.$ac_ext <<_ACEOF
12928 /* confdefs.h. */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12935 #define $ac_func innocuous_$ac_func
12937 /* System header to define __stub macros and hopefully few prototypes,
12938 which can conflict with char $ac_func (); below.
12939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12940 <limits.h> exists even on freestanding compilers. */
12942 #ifdef __STDC__
12943 # include <limits.h>
12944 #else
12945 # include <assert.h>
12946 #endif
12948 #undef $ac_func
12950 /* Override any GCC internal prototype to avoid an error.
12951 Use char because int might match the return type of a GCC
12952 builtin and then its argument prototype would still apply. */
12953 #ifdef __cplusplus
12954 extern "C"
12955 #endif
12956 char $ac_func ();
12957 /* The GNU C library defines this for functions which it implements
12958 to always fail with ENOSYS. Some functions are actually named
12959 something starting with __ and the normal name is an alias. */
12960 #if defined __stub_$ac_func || defined __stub___$ac_func
12961 choke me
12962 #endif
12965 main ()
12967 return $ac_func ();
12969 return 0;
12971 _ACEOF
12972 rm -f conftest.$ac_objext conftest$ac_exeext
12973 if { (ac_try="$ac_link"
12974 case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_link") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try='test -s conftest$ac_exeext'
12997 { (case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_try") 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 eval "$as_ac_var=yes"
13007 else
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13011 eval "$as_ac_var=no"
13014 rm -f core conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13017 ac_res=`eval echo '${'$as_ac_var'}'`
13018 { echo "$as_me:$LINENO: result: $ac_res" >&5
13019 echo "${ECHO_T}$ac_res" >&6; }
13020 if test `eval echo '${'$as_ac_var'}'` = yes; then
13021 cat >>confdefs.h <<_ACEOF
13022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13023 _ACEOF
13026 done
13028 LIBS="$ac_wine_check_funcs_save_LIBS"
13031 FREETYPELIBS=""
13033 FREETYPEINCL=""
13035 # Extract the first word of "freetype-config", so it can be a program name with args.
13036 set dummy freetype-config; ac_word=$2
13037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13039 if test "${ac_cv_prog_ft_devel+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13041 else
13042 if test -n "$ft_devel"; then
13043 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
13044 else
13045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13048 IFS=$as_save_IFS
13049 test -z "$as_dir" && as_dir=.
13050 for ac_exec_ext in '' $ac_executable_extensions; do
13051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13052 ac_cv_prog_ft_devel="freetype-config"
13053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13054 break 2
13056 done
13057 done
13058 IFS=$as_save_IFS
13060 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
13063 ft_devel=$ac_cv_prog_ft_devel
13064 if test -n "$ft_devel"; then
13065 { echo "$as_me:$LINENO: result: $ft_devel" >&5
13066 echo "${ECHO_T}$ft_devel" >&6; }
13067 else
13068 { echo "$as_me:$LINENO: result: no" >&5
13069 echo "${ECHO_T}no" >&6; }
13073 if test "$ft_devel" = "no"
13074 then
13075 # Extract the first word of "freetype2-config", so it can be a program name with args.
13076 set dummy freetype2-config; ac_word=$2
13077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13079 if test "${ac_cv_prog_ft_devel2+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082 if test -n "$ft_devel2"; then
13083 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
13084 else
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13088 IFS=$as_save_IFS
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13092 ac_cv_prog_ft_devel2="freetype2-config"
13093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13094 break 2
13096 done
13097 done
13098 IFS=$as_save_IFS
13100 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
13103 ft_devel2=$ac_cv_prog_ft_devel2
13104 if test -n "$ft_devel2"; then
13105 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
13106 echo "${ECHO_T}$ft_devel2" >&6; }
13107 else
13108 { echo "$as_me:$LINENO: result: no" >&5
13109 echo "${ECHO_T}no" >&6; }
13113 if test "$ft_devel2" = "freetype2-config"
13114 then
13115 ft_devel=$ft_devel2
13119 if test "$ft_devel" = "no"
13120 then
13121 wine_cv_msg_freetype=yes
13122 else
13123 FREETYPELIBS=`$ft_devel --libs`
13124 FREETYPEINCL=`$ft_devel --cflags`
13125 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
13126 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
13127 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130 ac_check_lib_save_LIBS=$LIBS
13131 LIBS="-lfreetype $FREETYPELIBS $LIBS"
13132 cat >conftest.$ac_ext <<_ACEOF
13133 /* confdefs.h. */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13139 /* Override any GCC internal prototype to avoid an error.
13140 Use char because int might match the return type of a GCC
13141 builtin and then its argument prototype would still apply. */
13142 #ifdef __cplusplus
13143 extern "C"
13144 #endif
13145 char FT_Init_FreeType ();
13147 main ()
13149 return FT_Init_FreeType ();
13151 return 0;
13153 _ACEOF
13154 rm -f conftest.$ac_objext conftest$ac_exeext
13155 if { (ac_try="$ac_link"
13156 case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159 esac
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_link") 2>conftest.er1
13162 ac_status=$?
13163 grep -v '^ *+' conftest.er1 >conftest.err
13164 rm -f conftest.er1
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } &&
13168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest$ac_exeext'
13179 { (case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_try") 2>&5
13185 ac_status=$?
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
13188 ac_cv_lib_freetype_FT_Init_FreeType=yes
13189 else
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_cv_lib_freetype_FT_Init_FreeType=no
13196 rm -f core conftest.err conftest.$ac_objext \
13197 conftest$ac_exeext conftest.$ac_ext
13198 LIBS=$ac_check_lib_save_LIBS
13200 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
13201 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
13202 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
13203 ft_lib=yes
13204 else
13205 ft_lib=no
13208 if test "$ft_lib" = "no"
13209 then
13210 wine_cv_msg_freetype=yes
13211 FREETYPELIBS=""
13212 FREETYPEINCL=""
13213 else
13214 ac_save_CPPFLAGS="$CPPFLAGS"
13215 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
13227 for ac_header in ft2build.h \
13228 freetype/freetype.h \
13229 freetype/ftglyph.h \
13230 freetype/tttables.h \
13231 freetype/ftnames.h \
13232 freetype/ftsnames.h \
13233 freetype/ttnameid.h \
13234 freetype/ftoutln.h \
13235 freetype/ftwinfnt.h \
13236 freetype/ftmodapi.h \
13237 freetype/internal/sfnt.h
13239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 else
13245 cat >conftest.$ac_ext <<_ACEOF
13246 /* confdefs.h. */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13251 #if HAVE_FT2BUILD_H
13252 #include <ft2build.h>
13253 #endif
13255 #include <$ac_header>
13256 _ACEOF
13257 rm -f conftest.$ac_objext
13258 if { (ac_try="$ac_compile"
13259 case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13262 esac
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_compile") 2>conftest.er1
13265 ac_status=$?
13266 grep -v '^ *+' conftest.er1 >conftest.err
13267 rm -f conftest.er1
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13272 { (case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13275 esac
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_try") 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest.$ac_objext'
13282 { (case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13285 esac
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_try") 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; }; then
13291 eval "$as_ac_Header=yes"
13292 else
13293 echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.$ac_ext >&5
13296 eval "$as_ac_Header=no"
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13301 ac_res=`eval echo '${'$as_ac_Header'}'`
13302 { echo "$as_me:$LINENO: result: $ac_res" >&5
13303 echo "${ECHO_T}$ac_res" >&6; }
13304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13305 cat >>confdefs.h <<_ACEOF
13306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13307 _ACEOF
13311 done
13313 cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h. */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 #include <ft2build.h>
13320 #include <freetype/fttrigon.h>
13321 _ACEOF
13322 if { (ac_try="$ac_cpp conftest.$ac_ext"
13323 case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13326 esac
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13329 ac_status=$?
13330 grep -v '^ *+' conftest.er1 >conftest.err
13331 rm -f conftest.er1
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } >/dev/null; then
13335 if test -s conftest.err; then
13336 ac_cpp_err=$ac_c_preproc_warn_flag
13337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13338 else
13339 ac_cpp_err=
13341 else
13342 ac_cpp_err=yes
13344 if test -z "$ac_cpp_err"; then
13346 cat >>confdefs.h <<\_ACEOF
13347 #define HAVE_FREETYPE_FTTRIGON_H 1
13348 _ACEOF
13350 wine_cv_fttrigon=yes
13351 else
13352 echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13355 wine_cv_fttrigon=no
13358 rm -f conftest.err conftest.$ac_ext
13359 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13360 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
13361 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 else
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h. */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 #include <freetype/ftmodapi.h>
13372 typedef FT_TrueTypeEngineType ac__type_new_;
13374 main ()
13376 if ((ac__type_new_ *) 0)
13377 return 0;
13378 if (sizeof (ac__type_new_))
13379 return 0;
13381 return 0;
13383 _ACEOF
13384 rm -f conftest.$ac_objext
13385 if { (ac_try="$ac_compile"
13386 case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13389 esac
13390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_compile") 2>conftest.er1
13392 ac_status=$?
13393 grep -v '^ *+' conftest.er1 >conftest.err
13394 rm -f conftest.er1
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
13398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13399 { (case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402 esac
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_try") 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; } &&
13408 { ac_try='test -s conftest.$ac_objext'
13409 { (case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_try") 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_type_FT_TrueTypeEngineType=yes
13419 else
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13423 ac_cv_type_FT_TrueTypeEngineType=no
13426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13429 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
13430 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13432 cat >>confdefs.h <<_ACEOF
13433 #define HAVE_FT_TRUETYPEENGINETYPE 1
13434 _ACEOF
13439 ac_save_CFLAGS="$CFLAGS"
13440 CFLAGS="$CFLAGS $FREETYPELIBS"
13442 for ac_func in FT_Load_Sfnt_Table
13444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450 cat >conftest.$ac_ext <<_ACEOF
13451 /* confdefs.h. */
13452 _ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13458 #define $ac_func innocuous_$ac_func
13460 /* System header to define __stub macros and hopefully few prototypes,
13461 which can conflict with char $ac_func (); below.
13462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13463 <limits.h> exists even on freestanding compilers. */
13465 #ifdef __STDC__
13466 # include <limits.h>
13467 #else
13468 # include <assert.h>
13469 #endif
13471 #undef $ac_func
13473 /* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply. */
13476 #ifdef __cplusplus
13477 extern "C"
13478 #endif
13479 char $ac_func ();
13480 /* The GNU C library defines this for functions which it implements
13481 to always fail with ENOSYS. Some functions are actually named
13482 something starting with __ and the normal name is an alias. */
13483 #if defined __stub_$ac_func || defined __stub___$ac_func
13484 choke me
13485 #endif
13488 main ()
13490 return $ac_func ();
13492 return 0;
13494 _ACEOF
13495 rm -f conftest.$ac_objext conftest$ac_exeext
13496 if { (ac_try="$ac_link"
13497 case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500 esac
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_link") 2>conftest.er1
13503 ac_status=$?
13504 grep -v '^ *+' conftest.er1 >conftest.err
13505 rm -f conftest.er1
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } &&
13509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13510 { (case "(($ac_try" in
13511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512 *) ac_try_echo=$ac_try;;
13513 esac
13514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515 (eval "$ac_try") 2>&5
13516 ac_status=$?
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; } &&
13519 { ac_try='test -s conftest$ac_exeext'
13520 { (case "(($ac_try" in
13521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13523 esac
13524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13525 (eval "$ac_try") 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529 eval "$as_ac_var=yes"
13530 else
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13534 eval "$as_ac_var=no"
13537 rm -f core conftest.err conftest.$ac_objext \
13538 conftest$ac_exeext conftest.$ac_ext
13540 ac_res=`eval echo '${'$as_ac_var'}'`
13541 { echo "$as_me:$LINENO: result: $ac_res" >&5
13542 echo "${ECHO_T}$ac_res" >&6; }
13543 if test `eval echo '${'$as_ac_var'}'` = yes; then
13544 cat >>confdefs.h <<_ACEOF
13545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13546 _ACEOF
13549 done
13551 CFLAGS="$ac_save_CFLAGS"
13552 CPPFLAGS="$ac_save_CPPFLAGS"
13553 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
13554 then
13556 cat >>confdefs.h <<\_ACEOF
13557 #define HAVE_FREETYPE 1
13558 _ACEOF
13560 wine_cv_msg_freetype=no
13561 else
13562 FREETYPELIBS=""
13563 FREETYPEINCL=""
13564 wine_cv_msg_freetype=yes
13569 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
13570 then
13571 FONTSSUBDIRS="fonts"
13575 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13576 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
13577 if test "${ac_cv_c_ppdev+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 else
13580 cat >conftest.$ac_ext <<_ACEOF
13581 /* confdefs.h. */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13586 #include <linux/ppdev.h>
13588 main ()
13590 ioctl (1,PPCLAIM,0)
13592 return 0;
13594 _ACEOF
13595 rm -f conftest.$ac_objext
13596 if { (ac_try="$ac_compile"
13597 case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13600 esac
13601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_compile") 2>conftest.er1
13603 ac_status=$?
13604 grep -v '^ *+' conftest.er1 >conftest.err
13605 rm -f conftest.er1
13606 cat conftest.err >&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } &&
13609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
13620 { (case "(($ac_try" in
13621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622 *) ac_try_echo=$ac_try;;
13623 esac
13624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625 (eval "$ac_try") 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 ac_cv_c_ppdev="yes"
13630 else
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13634 ac_cv_c_ppdev="no"
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13641 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13642 if test "$ac_cv_c_ppdev" = "yes"
13643 then
13645 cat >>confdefs.h <<\_ACEOF
13646 #define HAVE_PPDEV 1
13647 _ACEOF
13651 { echo "$as_me:$LINENO: checking for va_copy" >&5
13652 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13653 if test "${ac_cv_c_va_copy+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656 cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h. */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13662 #include <stdarg.h>
13664 main ()
13666 va_list ap1, ap2;
13667 va_copy(ap1,ap2);
13670 return 0;
13672 _ACEOF
13673 rm -f conftest.$ac_objext conftest$ac_exeext
13674 if { (ac_try="$ac_link"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_link") 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13688 { (case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13691 esac
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_try") 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13701 esac
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_try") 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_cv_c_va_copy="yes"
13708 else
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13712 ac_cv_c_va_copy="no"
13715 rm -f core conftest.err conftest.$ac_objext \
13716 conftest$ac_exeext conftest.$ac_ext
13719 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13720 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13721 if test "$ac_cv_c_va_copy" = "yes"
13722 then
13724 cat >>confdefs.h <<\_ACEOF
13725 #define HAVE_VA_COPY 1
13726 _ACEOF
13729 { echo "$as_me:$LINENO: checking for __va_copy" >&5
13730 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13731 if test "${ac_cv_c___va_copy+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734 cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h. */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13740 #include <stdarg.h>
13742 main ()
13744 va_list ap1, ap2;
13745 __va_copy(ap1,ap2);
13748 return 0;
13750 _ACEOF
13751 rm -f conftest.$ac_objext conftest$ac_exeext
13752 if { (ac_try="$ac_link"
13753 case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13756 esac
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_link") 2>conftest.er1
13759 ac_status=$?
13760 grep -v '^ *+' conftest.er1 >conftest.err
13761 rm -f conftest.er1
13762 cat conftest.err >&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } &&
13765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; } &&
13775 { ac_try='test -s conftest$ac_exeext'
13776 { (case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13779 esac
13780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_try") 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 ac_cv_c___va_copy="yes"
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 ac_cv_c___va_copy="no"
13793 rm -f core conftest.err conftest.$ac_objext \
13794 conftest$ac_exeext conftest.$ac_ext
13797 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13798 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13799 if test "$ac_cv_c___va_copy" = "yes"
13800 then
13802 cat >>confdefs.h <<\_ACEOF
13803 #define HAVE___VA_COPY 1
13804 _ACEOF
13808 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13809 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13810 if test "${ac_cv_c_sigsetjmp+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 else
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 #include <setjmp.h>
13821 main ()
13823 sigjmp_buf buf;
13824 sigsetjmp( buf, 1 );
13825 siglongjmp( buf, 1 );
13827 return 0;
13829 _ACEOF
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (ac_try="$ac_link"
13832 case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835 esac
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_link") 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13845 { (case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_try") 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } &&
13854 { ac_try='test -s conftest$ac_exeext'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 ac_cv_c_sigsetjmp="yes"
13865 else
13866 echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13869 ac_cv_c_sigsetjmp="no"
13872 rm -f core conftest.err conftest.$ac_objext \
13873 conftest$ac_exeext conftest.$ac_ext
13876 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13877 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13878 if test "$ac_cv_c_sigsetjmp" = "yes"
13879 then
13881 cat >>confdefs.h <<\_ACEOF
13882 #define HAVE_SIGSETJMP 1
13883 _ACEOF
13887 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13888 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13889 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 else
13892 cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h. */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13898 #define _GNU_SOURCE
13899 #include <pthread.h>
13901 typedef pthread_rwlock_t ac__type_new_;
13903 main ()
13905 if ((ac__type_new_ *) 0)
13906 return 0;
13907 if (sizeof (ac__type_new_))
13908 return 0;
13910 return 0;
13912 _ACEOF
13913 rm -f conftest.$ac_objext
13914 if { (ac_try="$ac_compile"
13915 case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13918 esac
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_compile") 2>conftest.er1
13921 ac_status=$?
13922 grep -v '^ *+' conftest.er1 >conftest.err
13923 rm -f conftest.er1
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13931 esac
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest.$ac_objext'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13941 esac
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_cv_type_pthread_rwlock_t=yes
13948 else
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_cv_type_pthread_rwlock_t=no
13955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13957 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13958 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
13959 if test $ac_cv_type_pthread_rwlock_t = yes; then
13961 cat >>confdefs.h <<_ACEOF
13962 #define HAVE_PTHREAD_RWLOCK_T 1
13963 _ACEOF
13967 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13968 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
13969 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972 cat >conftest.$ac_ext <<_ACEOF
13973 /* confdefs.h. */
13974 _ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13978 #define _GNU_SOURCE
13979 #include <pthread.h>
13981 typedef pthread_rwlockattr_t ac__type_new_;
13983 main ()
13985 if ((ac__type_new_ *) 0)
13986 return 0;
13987 if (sizeof (ac__type_new_))
13988 return 0;
13990 return 0;
13992 _ACEOF
13993 rm -f conftest.$ac_objext
13994 if { (ac_try="$ac_compile"
13995 case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13998 esac
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_compile") 2>conftest.er1
14001 ac_status=$?
14002 grep -v '^ *+' conftest.er1 >conftest.err
14003 rm -f conftest.er1
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14008 { (case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14011 esac
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_try") 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; } &&
14017 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14027 ac_cv_type_pthread_rwlockattr_t=yes
14028 else
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14032 ac_cv_type_pthread_rwlockattr_t=no
14035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14037 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
14038 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
14039 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
14041 cat >>confdefs.h <<_ACEOF
14042 #define HAVE_PTHREAD_RWLOCKATTR_T 1
14043 _ACEOF
14049 ac_wine_check_funcs_save_LIBS="$LIBS"
14050 LIBS="$LIBS $LIBPTHREAD"
14054 for ac_func in \
14055 pthread_getattr_np \
14056 pthread_get_stackaddr_np \
14057 pthread_get_stacksize_np
14059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 else
14065 cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h. */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14073 #define $ac_func innocuous_$ac_func
14075 /* System header to define __stub macros and hopefully few prototypes,
14076 which can conflict with char $ac_func (); below.
14077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14078 <limits.h> exists even on freestanding compilers. */
14080 #ifdef __STDC__
14081 # include <limits.h>
14082 #else
14083 # include <assert.h>
14084 #endif
14086 #undef $ac_func
14088 /* Override any GCC internal prototype to avoid an error.
14089 Use char because int might match the return type of a GCC
14090 builtin and then its argument prototype would still apply. */
14091 #ifdef __cplusplus
14092 extern "C"
14093 #endif
14094 char $ac_func ();
14095 /* The GNU C library defines this for functions which it implements
14096 to always fail with ENOSYS. Some functions are actually named
14097 something starting with __ and the normal name is an alias. */
14098 #if defined __stub_$ac_func || defined __stub___$ac_func
14099 choke me
14100 #endif
14103 main ()
14105 return $ac_func ();
14107 return 0;
14109 _ACEOF
14110 rm -f conftest.$ac_objext conftest$ac_exeext
14111 if { (ac_try="$ac_link"
14112 case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14115 esac
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_link") 2>conftest.er1
14118 ac_status=$?
14119 grep -v '^ *+' conftest.er1 >conftest.err
14120 rm -f conftest.er1
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
14124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128 esac
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest$ac_exeext'
14135 { (case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14138 esac
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_try") 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 eval "$as_ac_var=yes"
14145 else
14146 echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14149 eval "$as_ac_var=no"
14152 rm -f core conftest.err conftest.$ac_objext \
14153 conftest$ac_exeext conftest.$ac_ext
14155 ac_res=`eval echo '${'$as_ac_var'}'`
14156 { echo "$as_me:$LINENO: result: $ac_res" >&5
14157 echo "${ECHO_T}$ac_res" >&6; }
14158 if test `eval echo '${'$as_ac_var'}'` = yes; then
14159 cat >>confdefs.h <<_ACEOF
14160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14161 _ACEOF
14164 done
14166 LIBS="$ac_wine_check_funcs_save_LIBS"
14168 # Extract the first word of "artsc-config", so it can be a program name with args.
14169 set dummy artsc-config; ac_word=$2
14170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14172 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 else
14175 case $ARTSCCONFIG in
14176 [\\/]* | ?:[\\/]*)
14177 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in $PATH
14183 IFS=$as_save_IFS
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
14186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14187 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
14188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14189 break 2
14191 done
14192 done
14193 IFS=$as_save_IFS
14196 esac
14198 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
14199 if test -n "$ARTSCCONFIG"; then
14200 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
14201 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
14202 else
14203 { echo "$as_me:$LINENO: result: no" >&5
14204 echo "${ECHO_T}no" >&6; }
14208 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
14209 then
14210 ARTSC_CFLAGS=""
14211 for i in `$ARTSCCONFIG --cflags`
14213 case "$i" in
14214 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
14215 esac
14216 done
14217 ARTSC_LIBS=""
14218 for i in `$ARTSCCONFIG --libs`
14220 case "$i" in
14221 -L/usr/lib|-L/usr/lib64) ;;
14222 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
14223 esac
14224 done
14225 save_CFLAGS="$CFLAGS"
14226 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
14227 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
14228 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
14229 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232 ac_check_lib_save_LIBS=$LIBS
14233 LIBS="-lartsc $ARTSC_LIBS $LIBS"
14234 cat >conftest.$ac_ext <<_ACEOF
14235 /* confdefs.h. */
14236 _ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h. */
14241 /* Override any GCC internal prototype to avoid an error.
14242 Use char because int might match the return type of a GCC
14243 builtin and then its argument prototype would still apply. */
14244 #ifdef __cplusplus
14245 extern "C"
14246 #endif
14247 char arts_init ();
14249 main ()
14251 return arts_init ();
14253 return 0;
14255 _ACEOF
14256 rm -f conftest.$ac_objext conftest$ac_exeext
14257 if { (ac_try="$ac_link"
14258 case "(($ac_try" in
14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260 *) ac_try_echo=$ac_try;;
14261 esac
14262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14263 (eval "$ac_link") 2>conftest.er1
14264 ac_status=$?
14265 grep -v '^ *+' conftest.er1 >conftest.err
14266 rm -f conftest.er1
14267 cat conftest.err >&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } &&
14270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14271 { (case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14274 esac
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_try") 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest$ac_exeext'
14281 { (case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14284 esac
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_try") 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 ac_cv_lib_artsc_arts_init=yes
14291 else
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14295 ac_cv_lib_artsc_arts_init=no
14298 rm -f core conftest.err conftest.$ac_objext \
14299 conftest$ac_exeext conftest.$ac_ext
14300 LIBS=$ac_check_lib_save_LIBS
14302 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
14303 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
14304 if test $ac_cv_lib_artsc_arts_init = yes; then
14305 cat >conftest.$ac_ext <<_ACEOF
14306 /* confdefs.h. */
14307 _ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 #include <artsc.h>
14313 main ()
14315 arts_stream_t stream;
14317 return 0;
14319 _ACEOF
14320 rm -f conftest.$ac_objext
14321 if { (ac_try="$ac_compile"
14322 case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14325 esac
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_compile") 2>conftest.er1
14328 ac_status=$?
14329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
14334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14335 { (case "(($ac_try" in
14336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337 *) ac_try_echo=$ac_try;;
14338 esac
14339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14340 (eval "$ac_try") 2>&5
14341 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try='test -s conftest.$ac_objext'
14345 { (case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_try") 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 ARTSLIBS=$ARTSC_LIBS
14356 ARTSINCL=$ARTSC_CFLAGS
14359 cat >>confdefs.h <<\_ACEOF
14360 #define HAVE_ARTS 1
14361 _ACEOF
14363 else
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 CFLAGS="$save_CFLAGS"
14376 # Extract the first word of "esd-config", so it can be a program name with args.
14377 set dummy esd-config; ac_word=$2
14378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14380 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383 case $ESDCONFIG in
14384 [\\/]* | ?:[\\/]*)
14385 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14391 IFS=$as_save_IFS
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
14394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14395 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
14396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14397 break 2
14399 done
14400 done
14401 IFS=$as_save_IFS
14404 esac
14406 ESDCONFIG=$ac_cv_path_ESDCONFIG
14407 if test -n "$ESDCONFIG"; then
14408 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
14409 echo "${ECHO_T}$ESDCONFIG" >&6; }
14410 else
14411 { echo "$as_me:$LINENO: result: no" >&5
14412 echo "${ECHO_T}no" >&6; }
14416 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
14417 then
14418 ESD_CFLAGS=""
14419 for i in `$ESDCONFIG --cflags`
14421 case "$i" in
14422 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
14423 esac
14424 done
14425 ESD_LIBS=`$ESDCONFIG --libs`
14426 save_CFLAGS="$CFLAGS"
14427 CFLAGS="$CFLAGS $ESD_CFLAGS"
14428 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
14429 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
14430 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 else
14433 ac_check_lib_save_LIBS=$LIBS
14434 LIBS="-lesd $LIBS"
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h. */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14442 /* Override any GCC internal prototype to avoid an error.
14443 Use char because int might match the return type of a GCC
14444 builtin and then its argument prototype would still apply. */
14445 #ifdef __cplusplus
14446 extern "C"
14447 #endif
14448 char esd_open_sound ();
14450 main ()
14452 return esd_open_sound ();
14454 return 0;
14456 _ACEOF
14457 rm -f conftest.$ac_objext conftest$ac_exeext
14458 if { (ac_try="$ac_link"
14459 case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14462 esac
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_link") 2>conftest.er1
14465 ac_status=$?
14466 grep -v '^ *+' conftest.er1 >conftest.err
14467 rm -f conftest.er1
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
14471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14472 { (case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475 esac
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_try") 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; } &&
14481 { ac_try='test -s conftest$ac_exeext'
14482 { (case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485 esac
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_try") 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14491 ac_cv_lib_esd_esd_open_sound=yes
14492 else
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14496 ac_cv_lib_esd_esd_open_sound=no
14499 rm -f core conftest.err conftest.$ac_objext \
14500 conftest$ac_exeext conftest.$ac_ext
14501 LIBS=$ac_check_lib_save_LIBS
14503 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14504 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
14505 if test $ac_cv_lib_esd_esd_open_sound = yes; then
14506 ESDLIBS=$ESD_LIBS
14508 ESDINCL=$ESD_CFLAGS
14511 cat >>confdefs.h <<\_ACEOF
14512 #define HAVE_ESD 1
14513 _ACEOF
14517 CFLAGS="$save_CFLAGS"
14520 ALSALIBS=""
14522 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
14523 then
14524 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14525 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
14526 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529 ac_check_lib_save_LIBS=$LIBS
14530 LIBS="-lasound $LIBS"
14531 cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h. */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14538 /* Override any GCC internal prototype to avoid an error.
14539 Use char because int might match the return type of a GCC
14540 builtin and then its argument prototype would still apply. */
14541 #ifdef __cplusplus
14542 extern "C"
14543 #endif
14544 char snd_pcm_hw_params_get_access ();
14546 main ()
14548 return snd_pcm_hw_params_get_access ();
14550 return 0;
14552 _ACEOF
14553 rm -f conftest.$ac_objext conftest$ac_exeext
14554 if { (ac_try="$ac_link"
14555 case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14558 esac
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_link") 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14568 { (case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14571 esac
14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_try") 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest$ac_exeext'
14578 { (case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14581 esac
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_try") 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
14588 else
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14592 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
14595 rm -f core conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext conftest.$ac_ext
14597 LIBS=$ac_check_lib_save_LIBS
14599 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14600 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
14601 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14602 cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h. */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14608 #ifdef HAVE_ALSA_ASOUNDLIB_H
14609 #include <alsa/asoundlib.h>
14610 #elif defined(HAVE_SYS_ASOUNDLIB_H)
14611 #include <sys/asoundlib.h>
14612 #endif
14614 main ()
14616 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14618 return 0;
14620 _ACEOF
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626 esac
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_compile") 2>conftest.er1
14629 ac_status=$?
14630 grep -v '^ *+' conftest.er1 >conftest.err
14631 rm -f conftest.er1
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
14635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14636 { (case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639 esac
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_try") 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649 esac
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14656 cat >>confdefs.h <<\_ACEOF
14657 #define HAVE_ALSA 1
14658 _ACEOF
14660 ALSALIBS="-lasound"
14661 else
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14674 AUDIOIOLIBS=""
14676 if test "$ac_cv_header_libaudioio_h" = "yes"
14677 then
14678 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14679 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14680 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 else
14683 ac_check_lib_save_LIBS=$LIBS
14684 LIBS="-laudioio $LIBS"
14685 cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h. */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14692 /* Override any GCC internal prototype to avoid an error.
14693 Use char because int might match the return type of a GCC
14694 builtin and then its argument prototype would still apply. */
14695 #ifdef __cplusplus
14696 extern "C"
14697 #endif
14698 char AudioIOGetVersion ();
14700 main ()
14702 return AudioIOGetVersion ();
14704 return 0;
14706 _ACEOF
14707 rm -f conftest.$ac_objext conftest$ac_exeext
14708 if { (ac_try="$ac_link"
14709 case "(($ac_try" in
14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711 *) ac_try_echo=$ac_try;;
14712 esac
14713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714 (eval "$ac_link") 2>conftest.er1
14715 ac_status=$?
14716 grep -v '^ *+' conftest.er1 >conftest.err
14717 rm -f conftest.er1
14718 cat conftest.err >&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
14721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14722 { (case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725 esac
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_try") 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; } &&
14731 { ac_try='test -s conftest$ac_exeext'
14732 { (case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14735 esac
14736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_try") 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_cv_lib_audioio_AudioIOGetVersion=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_cv_lib_audioio_AudioIOGetVersion=no
14749 rm -f core conftest.err conftest.$ac_objext \
14750 conftest$ac_exeext conftest.$ac_ext
14751 LIBS=$ac_check_lib_save_LIBS
14753 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14754 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14755 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14756 AUDIOIOLIBS="-laudioio"
14758 cat >>confdefs.h <<\_ACEOF
14759 #define HAVE_LIBAUDIOIO 1
14760 _ACEOF
14767 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14768 then
14769 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14770 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
14771 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774 ac_check_lib_save_LIBS=$LIBS
14775 LIBS="-lcapi20 $LIBS"
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h. */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14783 /* Override any GCC internal prototype to avoid an error.
14784 Use char because int might match the return type of a GCC
14785 builtin and then its argument prototype would still apply. */
14786 #ifdef __cplusplus
14787 extern "C"
14788 #endif
14789 char capi20_register ();
14791 main ()
14793 return capi20_register ();
14795 return 0;
14797 _ACEOF
14798 rm -f conftest.$ac_objext conftest$ac_exeext
14799 if { (ac_try="$ac_link"
14800 case "(($ac_try" in
14801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802 *) ac_try_echo=$ac_try;;
14803 esac
14804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805 (eval "$ac_link") 2>conftest.er1
14806 ac_status=$?
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
14812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14813 { (case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14816 esac
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_try") 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; } &&
14822 { ac_try='test -s conftest$ac_exeext'
14823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_try") 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_cv_lib_capi20_capi20_register=yes
14833 else
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14837 ac_cv_lib_capi20_capi20_register=no
14840 rm -f core conftest.err conftest.$ac_objext \
14841 conftest$ac_exeext conftest.$ac_ext
14842 LIBS=$ac_check_lib_save_LIBS
14844 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14845 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
14846 if test $ac_cv_lib_capi20_capi20_register = yes; then
14848 cat >>confdefs.h <<\_ACEOF
14849 #define HAVE_CAPI4LINUX 1
14850 _ACEOF
14857 if test "$ac_cv_header_gif_lib_h" = "yes"
14858 then
14859 cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h. */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 #include <gif_lib.h>
14867 main ()
14869 static typeof(DGifOpen) * func;
14871 return 0;
14873 _ACEOF
14874 rm -f conftest.$ac_objext
14875 if { (ac_try="$ac_compile"
14876 case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879 esac
14880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881 (eval "$ac_compile") 2>conftest.er1
14882 ac_status=$?
14883 grep -v '^ *+' conftest.er1 >conftest.err
14884 rm -f conftest.er1
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14889 { (case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14892 esac
14893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14894 (eval "$ac_try") 2>&5
14895 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; } &&
14898 { ac_try='test -s conftest.$ac_objext'
14899 { (case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14902 esac
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_try") 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14909 cat >>confdefs.h <<\_ACEOF
14910 #define HAVE_GIF 1
14911 _ACEOF
14913 else
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924 EXTRACFLAGS=""
14926 if test "x${GCC}" = "xyes"
14927 then
14928 EXTRACFLAGS="-Wall -pipe"
14930 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14931 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14932 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935 if test "$cross_compiling" = yes; then
14936 ac_cv_c_gcc_strength_bug="yes"
14937 else
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h. */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14945 int L[4] = {0,1,2,3};
14946 int main(void) {
14947 static int Array[3];
14948 unsigned int B = 3;
14949 int i;
14950 for(i=0; i<B; i++) Array[i] = i - 3;
14951 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14952 L[i] = 4;
14954 exit( Array[1] != -2 || L[2] != 3);
14956 _ACEOF
14957 rm -f conftest$ac_exeext
14958 if { (ac_try="$ac_link"
14959 case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14962 esac
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_link") 2>&5
14965 ac_status=$?
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14968 { (case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_try") 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14977 ac_cv_c_gcc_strength_bug="no"
14978 else
14979 echo "$as_me: program exited with status $ac_status" >&5
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 ( exit $ac_status )
14984 ac_cv_c_gcc_strength_bug="yes"
14986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14991 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14992 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
14993 if test "$ac_cv_c_gcc_strength_bug" = "yes"
14994 then
14995 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
14998 { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
14999 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; }
15000 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
15001 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 else
15003 ac_wine_try_cflags_saved=$CFLAGS
15004 CFLAGS="$CFLAGS -fshort-wchar"
15005 cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h. */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15013 main ()
15017 return 0;
15019 _ACEOF
15020 rm -f conftest.$ac_objext conftest$ac_exeext
15021 if { (ac_try="$ac_link"
15022 case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15025 esac
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_link") 2>conftest.er1
15028 ac_status=$?
15029 grep -v '^ *+' conftest.er1 >conftest.err
15030 rm -f conftest.er1
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15035 { (case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038 esac
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_try") 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; } &&
15044 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
15051 ac_status=$?
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15054 ac_cv_c_gcc_fshort_wchar="yes"
15055 else
15056 echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15059 ac_cv_c_gcc_fshort_wchar="no"
15062 rm -f core conftest.err conftest.$ac_objext \
15063 conftest$ac_exeext conftest.$ac_ext
15064 CFLAGS=$ac_wine_try_cflags_saved
15066 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
15067 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; }
15068 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
15069 then
15071 cat >>confdefs.h <<\_ACEOF
15072 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
15073 _ACEOF
15077 { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
15078 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; }
15079 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 else
15082 ac_wine_try_cflags_saved=$CFLAGS
15083 CFLAGS="$CFLAGS -fno-strict-aliasing"
15084 cat >conftest.$ac_ext <<_ACEOF
15085 /* confdefs.h. */
15086 _ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h. */
15092 main ()
15096 return 0;
15098 _ACEOF
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (ac_try="$ac_link"
15101 case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104 esac
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_link") 2>conftest.er1
15107 ac_status=$?
15108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
15113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15114 { (case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117 esac
15118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_try") 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; } &&
15123 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 ac_cv_c_gcc_no_strict_aliasing="yes"
15134 else
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15138 ac_cv_c_gcc_no_strict_aliasing="no"
15141 rm -f core conftest.err conftest.$ac_objext \
15142 conftest$ac_exeext conftest.$ac_ext
15143 CFLAGS=$ac_wine_try_cflags_saved
15145 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
15146 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; }
15147 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
15148 then
15149 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
15152 { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
15153 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; }
15154 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157 ac_wine_try_cflags_saved=$CFLAGS
15158 CFLAGS="$CFLAGS -gstabs+"
15159 cat >conftest.$ac_ext <<_ACEOF
15160 /* confdefs.h. */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15167 main ()
15171 return 0;
15173 _ACEOF
15174 rm -f conftest.$ac_objext conftest$ac_exeext
15175 if { (ac_try="$ac_link"
15176 case "(($ac_try" in
15177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15178 *) ac_try_echo=$ac_try;;
15179 esac
15180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15181 (eval "$ac_link") 2>conftest.er1
15182 ac_status=$?
15183 grep -v '^ *+' conftest.er1 >conftest.err
15184 rm -f conftest.er1
15185 cat conftest.err >&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } &&
15188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15189 { (case "(($ac_try" in
15190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191 *) ac_try_echo=$ac_try;;
15192 esac
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194 (eval "$ac_try") 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } &&
15198 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208 ac_cv_c_gcc_gstabs="yes"
15209 else
15210 echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15213 ac_cv_c_gcc_gstabs="no"
15216 rm -f core conftest.err conftest.$ac_objext \
15217 conftest$ac_exeext conftest.$ac_ext
15218 CFLAGS=$ac_wine_try_cflags_saved
15220 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
15221 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; }
15222 if test "$ac_cv_c_gcc_gstabs" = "yes"
15223 then
15224 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
15227 { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
15228 echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15229 if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15231 else
15232 ac_wine_try_cflags_saved=$CFLAGS
15233 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15234 cat >conftest.$ac_ext <<_ACEOF
15235 /* confdefs.h. */
15236 _ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15242 main ()
15246 return 0;
15248 _ACEOF
15249 rm -f conftest.$ac_objext conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254 esac
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_link") 2>conftest.er1
15257 ac_status=$?
15258 grep -v '^ *+' conftest.er1 >conftest.err
15259 rm -f conftest.er1
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
15263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15264 { (case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267 esac
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_try") 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
15280 ac_status=$?
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; }; then
15283 ac_cv_c_gcc_decl_after_statement="yes"
15284 else
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 ac_cv_c_gcc_decl_after_statement="no"
15291 rm -f core conftest.err conftest.$ac_objext \
15292 conftest$ac_exeext conftest.$ac_ext
15293 CFLAGS=$ac_wine_try_cflags_saved
15295 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
15296 echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; }
15297 if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
15298 then
15299 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
15302 saved_CFLAGS="$CFLAGS"
15303 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
15304 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15305 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
15306 if test "${ac_cv_c_string_h_warnings+set}" = set; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 else
15309 cat >conftest.$ac_ext <<_ACEOF
15310 /* confdefs.h. */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 #include <string.h>
15317 main ()
15321 return 0;
15323 _ACEOF
15324 rm -f conftest.$ac_objext
15325 if { (ac_try="$ac_compile"
15326 case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15329 esac
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_compile") 2>conftest.er1
15332 ac_status=$?
15333 grep -v '^ *+' conftest.er1 >conftest.err
15334 rm -f conftest.er1
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_cv_c_string_h_warnings=no
15359 else
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ac_cv_c_string_h_warnings=yes
15366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15369 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
15370 CFLAGS="$saved_CFLAGS"
15371 if test "$ac_cv_c_string_h_warnings" = "no"
15372 then
15373 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
15376 BUILTINFLAG=""
15378 saved_CFLAGS="$CFLAGS"
15379 CFLAGS="$CFLAGS -Werror"
15380 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15381 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
15382 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385 cat >conftest.$ac_ext <<_ACEOF
15386 /* confdefs.h. */
15387 _ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h. */
15393 main ()
15395 int iswlower(unsigned short);
15397 return 0;
15399 _ACEOF
15400 rm -f conftest.$ac_objext
15401 if { (ac_try="$ac_compile"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15405 esac
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407 (eval "$ac_compile") 2>conftest.er1
15408 ac_status=$?
15409 grep -v '^ *+' conftest.er1 >conftest.err
15410 rm -f conftest.er1
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
15414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15415 { (case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_try") 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15434 ac_cv_c_builtin_wchar_ctype=no
15435 else
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 ac_cv_c_builtin_wchar_ctype=yes
15442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15445 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
15446 CFLAGS="$saved_CFLAGS"
15447 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15448 then
15449 BUILTINFLAG="-fno-builtin"
15454 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15455 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
15456 if test "${ac_cv_asm_func_def+set}" = set; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459 cat >conftest.$ac_ext <<_ACEOF
15460 /* confdefs.h. */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 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"); }
15468 main ()
15472 return 0;
15474 _ACEOF
15475 rm -f conftest.$ac_objext conftest$ac_exeext
15476 if { (ac_try="$ac_link"
15477 case "(($ac_try" in
15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479 *) ac_try_echo=$ac_try;;
15480 esac
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482 (eval "$ac_link") 2>conftest.er1
15483 ac_status=$?
15484 grep -v '^ *+' conftest.er1 >conftest.err
15485 rm -f conftest.er1
15486 cat conftest.err >&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } &&
15489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15490 { (case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_try") 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; } &&
15499 { ac_try='test -s conftest$ac_exeext'
15500 { (case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_try") 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 ac_cv_asm_func_def=".def"
15510 else
15511 echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h. */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
15523 main ()
15527 return 0;
15529 _ACEOF
15530 rm -f conftest.$ac_objext conftest$ac_exeext
15531 if { (ac_try="$ac_link"
15532 case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15535 esac
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_link") 2>conftest.er1
15538 ac_status=$?
15539 grep -v '^ *+' conftest.er1 >conftest.err
15540 rm -f conftest.er1
15541 cat conftest.err >&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } &&
15544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15545 { (case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_try") 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; } &&
15554 { ac_try='test -s conftest$ac_exeext'
15555 { (case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15558 esac
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_try") 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
15564 ac_cv_asm_func_def=".type @function"
15565 else
15566 echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15569 cat >conftest.$ac_ext <<_ACEOF
15570 /* confdefs.h. */
15571 _ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h. */
15575 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
15578 main ()
15582 return 0;
15584 _ACEOF
15585 rm -f conftest.$ac_objext conftest$ac_exeext
15586 if { (ac_try="$ac_link"
15587 case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15590 esac
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_link") 2>conftest.er1
15593 ac_status=$?
15594 grep -v '^ *+' conftest.er1 >conftest.err
15595 rm -f conftest.er1
15596 cat conftest.err >&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } &&
15599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15600 { (case "(($ac_try" in
15601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 *) ac_try_echo=$ac_try;;
15603 esac
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 (eval "$ac_try") 2>&5
15606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; } &&
15609 { ac_try='test -s conftest$ac_exeext'
15610 { (case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15613 esac
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_try") 2>&5
15616 ac_status=$?
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 ac_cv_asm_func_def=".type 2"
15620 else
15621 echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15624 ac_cv_asm_func_def="unknown"
15627 rm -f core conftest.err conftest.$ac_objext \
15628 conftest$ac_exeext conftest.$ac_ext
15631 rm -f core conftest.err conftest.$ac_objext \
15632 conftest$ac_exeext conftest.$ac_ext
15635 rm -f core conftest.err conftest.$ac_objext \
15636 conftest$ac_exeext conftest.$ac_ext
15638 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15639 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
15643 case "$ac_cv_asm_func_def" in
15644 ".def")
15645 cat >>confdefs.h <<\_ACEOF
15646 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15647 _ACEOF
15649 ".type @function")
15650 cat >>confdefs.h <<\_ACEOF
15651 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15652 _ACEOF
15654 ".type 2")
15655 cat >>confdefs.h <<\_ACEOF
15656 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15657 _ACEOF
15660 cat >>confdefs.h <<\_ACEOF
15661 #define __ASM_FUNC(name) ""
15662 _ACEOF
15664 esac
15667 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15668 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15669 if test "${ac_cv_c_extern_prefix+set}" = set; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 else
15672 cat >conftest.$ac_ext <<_ACEOF
15673 /* confdefs.h. */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
15679 extern int ac_test;
15681 main ()
15683 if (ac_test) return 1
15685 return 0;
15687 _ACEOF
15688 rm -f conftest.$ac_objext conftest$ac_exeext
15689 if { (ac_try="$ac_link"
15690 case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15693 esac
15694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15695 (eval "$ac_link") 2>conftest.er1
15696 ac_status=$?
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest$ac_exeext'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_cv_c_extern_prefix="yes"
15723 else
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 ac_cv_c_extern_prefix="no"
15730 rm -f core conftest.err conftest.$ac_objext \
15731 conftest$ac_exeext conftest.$ac_ext
15733 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15734 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
15738 if test "$ac_cv_c_extern_prefix" = "yes"
15739 then
15740 cat >>confdefs.h <<\_ACEOF
15741 #define __ASM_NAME(name) "_" name
15742 _ACEOF
15744 else
15745 cat >>confdefs.h <<\_ACEOF
15746 #define __ASM_NAME(name) name
15747 _ACEOF
15752 DLLEXT=""
15754 DLLFLAGS="-D_REENTRANT"
15756 DLLIBS=""
15758 LDSHARED=""
15760 LDDLLFLAGS=""
15762 LIBEXT="so"
15764 IMPLIBEXT="def"
15767 case $host_os in
15768 cygwin*|mingw32*)
15769 if test -n "$ac_tool_prefix"; then
15770 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15771 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15774 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777 if test -n "$DLLTOOL"; then
15778 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15779 else
15780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15781 for as_dir in $PATH
15783 IFS=$as_save_IFS
15784 test -z "$as_dir" && as_dir=.
15785 for ac_exec_ext in '' $ac_executable_extensions; do
15786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15787 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15789 break 2
15791 done
15792 done
15793 IFS=$as_save_IFS
15797 DLLTOOL=$ac_cv_prog_DLLTOOL
15798 if test -n "$DLLTOOL"; then
15799 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15800 echo "${ECHO_T}$DLLTOOL" >&6; }
15801 else
15802 { echo "$as_me:$LINENO: result: no" >&5
15803 echo "${ECHO_T}no" >&6; }
15808 if test -z "$ac_cv_prog_DLLTOOL"; then
15809 ac_ct_DLLTOOL=$DLLTOOL
15810 # Extract the first word of "dlltool", so it can be a program name with args.
15811 set dummy dlltool; ac_word=$2
15812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15814 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 else
15817 if test -n "$ac_ct_DLLTOOL"; then
15818 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15819 else
15820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821 for as_dir in $PATH
15823 IFS=$as_save_IFS
15824 test -z "$as_dir" && as_dir=.
15825 for ac_exec_ext in '' $ac_executable_extensions; do
15826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15827 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15829 break 2
15831 done
15832 done
15833 IFS=$as_save_IFS
15837 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15838 if test -n "$ac_ct_DLLTOOL"; then
15839 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15840 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
15841 else
15842 { echo "$as_me:$LINENO: result: no" >&5
15843 echo "${ECHO_T}no" >&6; }
15846 if test "x$ac_ct_DLLTOOL" = x; then
15847 DLLTOOL="false"
15848 else
15849 case $cross_compiling:$ac_tool_warned in
15850 yes:)
15851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15852 whose name does not start with the host triplet. If you think this
15853 configuration is useful to you, please write to autoconf@gnu.org." >&5
15854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15855 whose name does not start with the host triplet. If you think this
15856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15857 ac_tool_warned=yes ;;
15858 esac
15859 DLLTOOL=$ac_ct_DLLTOOL
15861 else
15862 DLLTOOL="$ac_cv_prog_DLLTOOL"
15865 if test -n "$ac_tool_prefix"; then
15866 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15867 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
15868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15870 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15871 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 else
15873 if test -n "$DLLWRAP"; then
15874 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15875 else
15876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15877 for as_dir in $PATH
15879 IFS=$as_save_IFS
15880 test -z "$as_dir" && as_dir=.
15881 for ac_exec_ext in '' $ac_executable_extensions; do
15882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15883 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
15884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15885 break 2
15887 done
15888 done
15889 IFS=$as_save_IFS
15893 DLLWRAP=$ac_cv_prog_DLLWRAP
15894 if test -n "$DLLWRAP"; then
15895 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15896 echo "${ECHO_T}$DLLWRAP" >&6; }
15897 else
15898 { echo "$as_me:$LINENO: result: no" >&5
15899 echo "${ECHO_T}no" >&6; }
15904 if test -z "$ac_cv_prog_DLLWRAP"; then
15905 ac_ct_DLLWRAP=$DLLWRAP
15906 # Extract the first word of "dllwrap", so it can be a program name with args.
15907 set dummy dllwrap; ac_word=$2
15908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15910 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15912 else
15913 if test -n "$ac_ct_DLLWRAP"; then
15914 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15915 else
15916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15917 for as_dir in $PATH
15919 IFS=$as_save_IFS
15920 test -z "$as_dir" && as_dir=.
15921 for ac_exec_ext in '' $ac_executable_extensions; do
15922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15923 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15925 break 2
15927 done
15928 done
15929 IFS=$as_save_IFS
15933 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15934 if test -n "$ac_ct_DLLWRAP"; then
15935 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15936 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
15937 else
15938 { echo "$as_me:$LINENO: result: no" >&5
15939 echo "${ECHO_T}no" >&6; }
15942 if test "x$ac_ct_DLLWRAP" = x; then
15943 DLLWRAP="false"
15944 else
15945 case $cross_compiling:$ac_tool_warned in
15946 yes:)
15947 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15948 whose name does not start with the host triplet. If you think this
15949 configuration is useful to you, please write to autoconf@gnu.org." >&5
15950 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15951 whose name does not start with the host triplet. If you think this
15952 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15953 ac_tool_warned=yes ;;
15954 esac
15955 DLLWRAP=$ac_ct_DLLWRAP
15957 else
15958 DLLWRAP="$ac_cv_prog_DLLWRAP"
15961 if test "$DLLWRAP" = "false"; then
15962 LIBEXT="a"
15963 else
15964 LIBEXT="dll"
15966 IMPLIBEXT="a"
15967 WIN16_FILES=""
15968 WIN16_INSTALL=""
15971 if test "$ac_cv_header_dlfcn_h" = "yes"
15972 then
15974 for ac_func in dlopen
15976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982 cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h. */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15990 #define $ac_func innocuous_$ac_func
15992 /* System header to define __stub macros and hopefully few prototypes,
15993 which can conflict with char $ac_func (); below.
15994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15995 <limits.h> exists even on freestanding compilers. */
15997 #ifdef __STDC__
15998 # include <limits.h>
15999 #else
16000 # include <assert.h>
16001 #endif
16003 #undef $ac_func
16005 /* Override any GCC internal prototype to avoid an error.
16006 Use char because int might match the return type of a GCC
16007 builtin and then its argument prototype would still apply. */
16008 #ifdef __cplusplus
16009 extern "C"
16010 #endif
16011 char $ac_func ();
16012 /* The GNU C library defines this for functions which it implements
16013 to always fail with ENOSYS. Some functions are actually named
16014 something starting with __ and the normal name is an alias. */
16015 #if defined __stub_$ac_func || defined __stub___$ac_func
16016 choke me
16017 #endif
16020 main ()
16022 return $ac_func ();
16024 return 0;
16026 _ACEOF
16027 rm -f conftest.$ac_objext conftest$ac_exeext
16028 if { (ac_try="$ac_link"
16029 case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16032 esac
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_link") 2>conftest.er1
16035 ac_status=$?
16036 grep -v '^ *+' conftest.er1 >conftest.err
16037 rm -f conftest.er1
16038 cat conftest.err >&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } &&
16041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16042 { (case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_try") 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; } &&
16051 { ac_try='test -s conftest$ac_exeext'
16052 { (case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16055 esac
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_try") 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 eval "$as_ac_var=yes"
16062 else
16063 echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16066 eval "$as_ac_var=no"
16069 rm -f core conftest.err conftest.$ac_objext \
16070 conftest$ac_exeext conftest.$ac_ext
16072 ac_res=`eval echo '${'$as_ac_var'}'`
16073 { echo "$as_me:$LINENO: result: $ac_res" >&5
16074 echo "${ECHO_T}$ac_res" >&6; }
16075 if test `eval echo '${'$as_ac_var'}'` = yes; then
16076 cat >>confdefs.h <<_ACEOF
16077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16078 _ACEOF
16080 else
16081 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16082 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16083 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 else
16086 ac_check_lib_save_LIBS=$LIBS
16087 LIBS="-ldl $LIBS"
16088 cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h. */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16095 /* Override any GCC internal prototype to avoid an error.
16096 Use char because int might match the return type of a GCC
16097 builtin and then its argument prototype would still apply. */
16098 #ifdef __cplusplus
16099 extern "C"
16100 #endif
16101 char dlopen ();
16103 main ()
16105 return dlopen ();
16107 return 0;
16109 _ACEOF
16110 rm -f conftest.$ac_objext conftest$ac_exeext
16111 if { (ac_try="$ac_link"
16112 case "(($ac_try" in
16113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114 *) ac_try_echo=$ac_try;;
16115 esac
16116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117 (eval "$ac_link") 2>conftest.er1
16118 ac_status=$?
16119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
16124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16125 { (case "(($ac_try" in
16126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127 *) ac_try_echo=$ac_try;;
16128 esac
16129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130 (eval "$ac_try") 2>&5
16131 ac_status=$?
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; } &&
16134 { ac_try='test -s conftest$ac_exeext'
16135 { (case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16138 esac
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_try") 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_cv_lib_dl_dlopen=yes
16145 else
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 ac_cv_lib_dl_dlopen=no
16152 rm -f core conftest.err conftest.$ac_objext \
16153 conftest$ac_exeext conftest.$ac_ext
16154 LIBS=$ac_check_lib_save_LIBS
16156 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16157 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16158 if test $ac_cv_lib_dl_dlopen = yes; then
16160 cat >>confdefs.h <<\_ACEOF
16161 #define HAVE_DLOPEN 1
16162 _ACEOF
16164 DLLIBS="-ldl"
16165 else
16166 LIBEXT="a"
16170 done
16172 ac_wine_check_funcs_save_LIBS="$LIBS"
16173 LIBS="$LIBS $DLLIBS"
16175 for ac_func in dladdr
16177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 else
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h. */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16191 #define $ac_func innocuous_$ac_func
16193 /* System header to define __stub macros and hopefully few prototypes,
16194 which can conflict with char $ac_func (); below.
16195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16196 <limits.h> exists even on freestanding compilers. */
16198 #ifdef __STDC__
16199 # include <limits.h>
16200 #else
16201 # include <assert.h>
16202 #endif
16204 #undef $ac_func
16206 /* Override any GCC internal prototype to avoid an error.
16207 Use char because int might match the return type of a GCC
16208 builtin and then its argument prototype would still apply. */
16209 #ifdef __cplusplus
16210 extern "C"
16211 #endif
16212 char $ac_func ();
16213 /* The GNU C library defines this for functions which it implements
16214 to always fail with ENOSYS. Some functions are actually named
16215 something starting with __ and the normal name is an alias. */
16216 #if defined __stub_$ac_func || defined __stub___$ac_func
16217 choke me
16218 #endif
16221 main ()
16223 return $ac_func ();
16225 return 0;
16227 _ACEOF
16228 rm -f conftest.$ac_objext conftest$ac_exeext
16229 if { (ac_try="$ac_link"
16230 case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_link") 2>conftest.er1
16236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
16242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16243 { (case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246 esac
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_try") 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; } &&
16252 { ac_try='test -s conftest$ac_exeext'
16253 { (case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16256 esac
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258 (eval "$ac_try") 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 eval "$as_ac_var=yes"
16263 else
16264 echo "$as_me: failed program was:" >&5
16265 sed 's/^/| /' conftest.$ac_ext >&5
16267 eval "$as_ac_var=no"
16270 rm -f core conftest.err conftest.$ac_objext \
16271 conftest$ac_exeext conftest.$ac_ext
16273 ac_res=`eval echo '${'$as_ac_var'}'`
16274 { echo "$as_me:$LINENO: result: $ac_res" >&5
16275 echo "${ECHO_T}$ac_res" >&6; }
16276 if test `eval echo '${'$as_ac_var'}'` = yes; then
16277 cat >>confdefs.h <<_ACEOF
16278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16279 _ACEOF
16282 done
16284 LIBS="$ac_wine_check_funcs_save_LIBS"
16285 else
16286 LIBEXT="a"
16289 if test "$LIBEXT" = "so"
16290 then
16291 DLLFLAGS="$DLLFLAGS -fPIC"
16292 DLLEXT=".so"
16293 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
16294 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
16295 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 else
16298 ac_wine_try_cflags_saved=$CFLAGS
16299 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
16300 cat >conftest.$ac_ext <<_ACEOF
16301 void myfunc() {}
16302 _ACEOF
16303 rm -f conftest.$ac_objext conftest$ac_exeext
16304 if { (ac_try="$ac_link"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_link") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16321 esac
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; } &&
16327 { ac_try='test -s conftest$ac_exeext'
16328 { (case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331 esac
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_try") 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 ac_cv_c_dll_gnuelf="yes"
16338 else
16339 echo "$as_me: failed program was:" >&5
16340 sed 's/^/| /' conftest.$ac_ext >&5
16342 ac_cv_c_dll_gnuelf="no"
16345 rm -f core conftest.err conftest.$ac_objext \
16346 conftest$ac_exeext conftest.$ac_ext
16347 CFLAGS=$ac_wine_try_cflags_saved
16349 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
16350 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
16351 if test "$ac_cv_c_dll_gnuelf" = "yes"
16352 then
16353 LDSHARED="\$(CC) -shared"
16354 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
16355 { echo "$as_me:$LINENO: checking whether the linker accepts soname" >&5
16356 echo $ECHO_N "checking whether the linker accepts soname... $ECHO_C" >&6; }
16357 if test "${ac_cv_c_sonames+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360 ac_wine_try_cflags_saved=$CFLAGS
16361 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
16362 cat >conftest.$ac_ext <<_ACEOF
16363 /* confdefs.h. */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16370 main ()
16374 return 0;
16376 _ACEOF
16377 rm -f conftest.$ac_objext conftest$ac_exeext
16378 if { (ac_try="$ac_link"
16379 case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16382 esac
16383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_link") 2>conftest.er1
16385 ac_status=$?
16386 grep -v '^ *+' conftest.er1 >conftest.err
16387 rm -f conftest.er1
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } &&
16391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16392 { (case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16395 esac
16396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397 (eval "$ac_try") 2>&5
16398 ac_status=$?
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; } &&
16401 { ac_try='test -s conftest$ac_exeext'
16402 { (case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16405 esac
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_try") 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 ac_cv_c_sonames="yes"
16412 else
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16416 ac_cv_c_sonames="no"
16419 rm -f core conftest.err conftest.$ac_objext \
16420 conftest$ac_exeext conftest.$ac_ext
16421 CFLAGS=$ac_wine_try_cflags_saved
16423 { echo "$as_me:$LINENO: result: $ac_cv_c_sonames" >&5
16424 echo "${ECHO_T}$ac_cv_c_sonames" >&6; }
16425 if test "$ac_cv_c_sonames" = "yes"
16426 then
16427 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
16428 else
16429 { echo "$as_me:$LINENO: checking check to see if -h soname is an alternate" >&5
16430 echo $ECHO_N "checking check to see if -h soname is an alternate... $ECHO_C" >&6; }
16431 if test "${ac_cv_c_h_sonames+set}" = set; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434 ac_wine_try_cflags_saved=$CFLAGS
16435 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
16436 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h. */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16444 main ()
16448 return 0;
16450 _ACEOF
16451 rm -f conftest.$ac_objext conftest$ac_exeext
16452 if { (ac_try="$ac_link"
16453 case "(($ac_try" in
16454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455 *) ac_try_echo=$ac_try;;
16456 esac
16457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16458 (eval "$ac_link") 2>conftest.er1
16459 ac_status=$?
16460 grep -v '^ *+' conftest.er1 >conftest.err
16461 rm -f conftest.er1
16462 cat conftest.err >&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } &&
16465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16466 { (case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_try") 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; } &&
16475 { ac_try='test -s conftest$ac_exeext'
16476 { (case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16479 esac
16480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481 (eval "$ac_try") 2>&5
16482 ac_status=$?
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 ac_cv_c_h_sonames="yes"
16486 else
16487 echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16490 ac_cv_c_h_sonames="no"
16493 rm -f core conftest.err conftest.$ac_objext \
16494 conftest$ac_exeext conftest.$ac_ext
16495 CFLAGS=$ac_wine_try_cflags_saved
16497 { echo "$as_me:$LINENO: result: $ac_cv_c_h_sonames" >&5
16498 echo "${ECHO_T}$ac_cv_c_h_sonames" >&6; }
16499 if test "$ac_cv_c_h_sonames" = "yes"
16500 then
16501 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
16505 { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
16506 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; }
16507 if test "${ac_cv_c_dll_zdefs+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510 ac_wine_try_cflags_saved=$CFLAGS
16511 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h. */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16520 main ()
16524 return 0;
16526 _ACEOF
16527 rm -f conftest.$ac_objext conftest$ac_exeext
16528 if { (ac_try="$ac_link"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_link") 2>conftest.er1
16535 ac_status=$?
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16542 { (case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16545 esac
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_try") 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; } &&
16551 { ac_try='test -s conftest$ac_exeext'
16552 { (case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16555 esac
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 ac_cv_c_dll_zdefs="yes"
16562 else
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 ac_cv_c_dll_zdefs="no"
16569 rm -f core conftest.err conftest.$ac_objext \
16570 conftest$ac_exeext conftest.$ac_ext
16571 CFLAGS=$ac_wine_try_cflags_saved
16573 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
16574 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; }
16575 if test "$ac_cv_c_dll_zdefs" = "yes"
16576 then
16577 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
16580 { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
16581 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; }
16582 if test "${ac_cv_c_dll_init_fini+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585 ac_wine_try_cflags_saved=$CFLAGS
16586 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
16587 cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h. */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16595 main ()
16599 return 0;
16601 _ACEOF
16602 rm -f conftest.$ac_objext conftest$ac_exeext
16603 if { (ac_try="$ac_link"
16604 case "(($ac_try" in
16605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606 *) ac_try_echo=$ac_try;;
16607 esac
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609 (eval "$ac_link") 2>conftest.er1
16610 ac_status=$?
16611 grep -v '^ *+' conftest.er1 >conftest.err
16612 rm -f conftest.er1
16613 cat conftest.err >&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
16616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16617 { (case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16620 esac
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_try") 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; } &&
16626 { ac_try='test -s conftest$ac_exeext'
16627 { (case "(($ac_try" in
16628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16630 esac
16631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16632 (eval "$ac_try") 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
16636 ac_cv_c_dll_init_fini="yes"
16637 else
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16641 ac_cv_c_dll_init_fini="no"
16644 rm -f core conftest.err conftest.$ac_objext \
16645 conftest$ac_exeext conftest.$ac_ext
16646 CFLAGS=$ac_wine_try_cflags_saved
16648 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
16649 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; }
16650 if test "$ac_cv_c_dll_init_fini" = "yes"
16651 then
16652 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
16655 { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
16656 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; }
16657 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 else
16660 echo '{ global: *; };' >conftest.map
16661 ac_wine_try_cflags_saved=$CFLAGS
16662 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
16663 cat >conftest.$ac_ext <<_ACEOF
16664 /* confdefs.h. */
16665 _ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16671 main ()
16675 return 0;
16677 _ACEOF
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683 esac
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_link") 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
16692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696 esac
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest$ac_exeext'
16703 { (case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16706 esac
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_try") 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_cv_c_ld_version_scripts="yes"
16713 else
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 ac_cv_c_ld_version_scripts="no"
16720 rm -f core conftest.err conftest.$ac_objext \
16721 conftest$ac_exeext conftest.$ac_ext
16722 CFLAGS=$ac_wine_try_cflags_saved
16723 rm -f conftest.map
16725 { echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
16726 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; }
16727 if test "$ac_cv_c_ld_version_scripts" = "yes"
16728 then
16729 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
16732 { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
16733 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; }
16734 if test "${ac_cv_c_export_dynamic+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 else
16737 ac_wine_try_cflags_saved=$CFLAGS
16738 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
16739 cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h. */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16747 main ()
16751 return 0;
16753 _ACEOF
16754 rm -f conftest.$ac_objext conftest$ac_exeext
16755 if { (ac_try="$ac_link"
16756 case "(($ac_try" in
16757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758 *) ac_try_echo=$ac_try;;
16759 esac
16760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761 (eval "$ac_link") 2>conftest.er1
16762 ac_status=$?
16763 grep -v '^ *+' conftest.er1 >conftest.err
16764 rm -f conftest.er1
16765 cat conftest.err >&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); } &&
16768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16769 { (case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16772 esac
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_try") 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; } &&
16778 { ac_try='test -s conftest$ac_exeext'
16779 { (case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_try") 2>&5
16785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; }; then
16788 ac_cv_c_export_dynamic="yes"
16789 else
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16793 ac_cv_c_export_dynamic="no"
16796 rm -f core conftest.err conftest.$ac_objext \
16797 conftest$ac_exeext conftest.$ac_ext
16798 CFLAGS=$ac_wine_try_cflags_saved
16800 { echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
16801 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; }
16802 if test "$ac_cv_c_export_dynamic" = "yes"
16803 then
16804 LDEXECFLAGS="-Wl,--export-dynamic"
16808 { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
16809 echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; }
16810 if test "${ac_cv_ld_rpath+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 else
16813 ac_wine_try_cflags_saved=$CFLAGS
16814 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
16815 cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h. */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16823 main ()
16827 return 0;
16829 _ACEOF
16830 rm -f conftest.$ac_objext conftest$ac_exeext
16831 if { (ac_try="$ac_link"
16832 case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16835 esac
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_link") 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16845 { (case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848 esac
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_try") 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; } &&
16854 { ac_try='test -s conftest$ac_exeext'
16855 { (case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16858 esac
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_try") 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_ld_rpath="yes"
16865 else
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16869 ac_cv_ld_rpath="no"
16872 rm -f core conftest.err conftest.$ac_objext \
16873 conftest$ac_exeext conftest.$ac_ext
16874 CFLAGS=$ac_wine_try_cflags_saved
16876 { echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
16877 echo "${ECHO_T}$ac_cv_ld_rpath" >&6; }
16878 if test "$ac_cv_ld_rpath" = "yes"
16879 then
16880 LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
16882 LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
16886 case $host_cpu in
16887 *i[3456789]86* | x86_64)
16888 { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
16889 echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; }
16890 if test "${ac_cv_ld_reloc_exec+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893 ac_wine_try_cflags_saved=$CFLAGS
16894 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
16895 cat >conftest.$ac_ext <<_ACEOF
16896 /* confdefs.h. */
16897 _ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h. */
16903 main ()
16907 return 0;
16909 _ACEOF
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (ac_try="$ac_link"
16912 case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_link") 2>conftest.er1
16918 ac_status=$?
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -f conftest.er1
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
16924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16925 { (case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16928 esac
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_try") 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; } &&
16934 { ac_try='test -s conftest$ac_exeext'
16935 { (case "(($ac_try" in
16936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937 *) ac_try_echo=$ac_try;;
16938 esac
16939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940 (eval "$ac_try") 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; }; then
16944 ac_cv_ld_reloc_exec="yes"
16945 else
16946 echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16949 ac_cv_ld_reloc_exec="no"
16952 rm -f core conftest.err conftest.$ac_objext \
16953 conftest$ac_exeext conftest.$ac_ext
16954 CFLAGS=$ac_wine_try_cflags_saved
16956 { echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
16957 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; }
16958 if test "$ac_cv_ld_reloc_exec" = "yes"
16959 then
16960 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
16963 esac
16965 else
16966 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
16967 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
16968 if test "${ac_cv_c_dll_unixware+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16970 else
16971 ac_wine_try_cflags_saved=$CFLAGS
16972 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
16973 cat >conftest.$ac_ext <<_ACEOF
16974 void myfunc() {}
16975 _ACEOF
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (ac_try="$ac_link"
16978 case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981 esac
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_link") 2>conftest.er1
16984 ac_status=$?
16985 grep -v '^ *+' conftest.er1 >conftest.err
16986 rm -f conftest.er1
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16991 { (case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994 esac
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_try") 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest$ac_exeext'
17001 { (case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004 esac
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_try") 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 ac_cv_c_dll_unixware="yes"
17011 else
17012 echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17015 ac_cv_c_dll_unixware="no"
17018 rm -f core conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
17020 CFLAGS=$ac_wine_try_cflags_saved
17022 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
17023 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
17024 if test "$ac_cv_c_dll_unixware" = "yes"
17025 then
17026 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
17027 LDDLLFLAGS="-Wl,-G,-B,symbolic"
17029 else
17030 { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
17031 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; }
17032 if test "${ac_cv_c_dll_macho+set}" = set; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17034 else
17035 ac_wine_try_cflags_saved=$CFLAGS
17036 CFLAGS="$CFLAGS -bundle"
17037 cat >conftest.$ac_ext <<_ACEOF
17038 void myfunc() {}
17039 _ACEOF
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (ac_try="$ac_link"
17042 case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045 esac
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_link") 2>conftest.er1
17048 ac_status=$?
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058 esac
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest$ac_exeext'
17065 { (case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_try") 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 ac_cv_c_dll_macho="yes"
17075 else
17076 echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17079 ac_cv_c_dll_macho="no"
17082 rm -f core conftest.err conftest.$ac_objext \
17083 conftest$ac_exeext conftest.$ac_ext
17084 CFLAGS=$ac_wine_try_cflags_saved
17086 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
17087 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; }
17088 if test "$ac_cv_c_dll_macho" = "yes"
17089 then
17090 LIBEXT="dylib"
17091 LDDLLFLAGS="-bundle"
17092 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)"
17093 STRIP="$STRIP -u -r"
17094 COREFOUNDATIONLIB="-framework CoreFoundation"
17096 IOKITLIB="-framework IOKit -framework CoreFoundation"
17098 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
17100 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
17101 then
17102 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
17105 case $host_cpu in
17106 *powerpc*)
17107 CFLAGS="$CFLAGS -ffixed-r13"
17108 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
17110 esac
17112 else
17113 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
17114 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
17115 if test "${ac_cv_c_dll_hpux+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117 else
17118 ac_wine_try_cflags_saved=$CFLAGS
17119 CFLAGS="$CFLAGS -shared"
17120 cat >conftest.$ac_ext <<_ACEOF
17121 void myfunc() {}
17122 _ACEOF
17123 rm -f conftest.$ac_objext conftest$ac_exeext
17124 if { (ac_try="$ac_link"
17125 case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17128 esac
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_link") 2>conftest.er1
17131 ac_status=$?
17132 grep -v '^ *+' conftest.er1 >conftest.err
17133 rm -f conftest.er1
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
17137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest$ac_exeext'
17148 { (case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151 esac
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_try") 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_cv_c_dll_hpux="yes"
17158 else
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17162 ac_cv_c_dll_hpux="no"
17165 rm -f core conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17167 CFLAGS=$ac_wine_try_cflags_saved
17169 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
17170 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
17171 if test "$ac_cv_c_dll_hpux" = "yes"
17172 then
17173 LIBEXT="sl"
17174 DLLEXT=".sl"
17175 LDDLLFLAGS="-shared -fPIC"
17176 LDSHARED="\$(CC) -shared"
17183 CROSSTEST=""
17185 if test "$cross_compiling" = "no"
17186 then
17187 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
17189 # Extract the first word of "$ac_prog", so it can be a program name with args.
17190 set dummy $ac_prog; ac_word=$2
17191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17193 if test "${ac_cv_prog_CROSSCC+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17195 else
17196 if test -n "$CROSSCC"; then
17197 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
17198 else
17199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17200 for as_dir in $PATH
17202 IFS=$as_save_IFS
17203 test -z "$as_dir" && as_dir=.
17204 for ac_exec_ext in '' $ac_executable_extensions; do
17205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17206 ac_cv_prog_CROSSCC="$ac_prog"
17207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17208 break 2
17210 done
17211 done
17212 IFS=$as_save_IFS
17216 CROSSCC=$ac_cv_prog_CROSSCC
17217 if test -n "$CROSSCC"; then
17218 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
17219 echo "${ECHO_T}$CROSSCC" >&6; }
17220 else
17221 { echo "$as_me:$LINENO: result: no" >&5
17222 echo "${ECHO_T}no" >&6; }
17226 test -n "$CROSSCC" && break
17227 done
17228 test -n "$CROSSCC" || CROSSCC="false"
17230 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
17232 # Extract the first word of "$ac_prog", so it can be a program name with args.
17233 set dummy $ac_prog; ac_word=$2
17234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17236 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 else
17239 if test -n "$DLLTOOL"; then
17240 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17241 else
17242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17243 for as_dir in $PATH
17245 IFS=$as_save_IFS
17246 test -z "$as_dir" && as_dir=.
17247 for ac_exec_ext in '' $ac_executable_extensions; do
17248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17249 ac_cv_prog_DLLTOOL="$ac_prog"
17250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17251 break 2
17253 done
17254 done
17255 IFS=$as_save_IFS
17259 DLLTOOL=$ac_cv_prog_DLLTOOL
17260 if test -n "$DLLTOOL"; then
17261 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17262 echo "${ECHO_T}$DLLTOOL" >&6; }
17263 else
17264 { echo "$as_me:$LINENO: result: no" >&5
17265 echo "${ECHO_T}no" >&6; }
17269 test -n "$DLLTOOL" && break
17270 done
17271 test -n "$DLLTOOL" || DLLTOOL="false"
17273 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
17275 # Extract the first word of "$ac_prog", so it can be a program name with args.
17276 set dummy $ac_prog; ac_word=$2
17277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17279 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
17280 echo $ECHO_N "(cached) $ECHO_C" >&6
17281 else
17282 if test -n "$CROSSWINDRES"; then
17283 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
17284 else
17285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17286 for as_dir in $PATH
17288 IFS=$as_save_IFS
17289 test -z "$as_dir" && as_dir=.
17290 for ac_exec_ext in '' $ac_executable_extensions; do
17291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17292 ac_cv_prog_CROSSWINDRES="$ac_prog"
17293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17294 break 2
17296 done
17297 done
17298 IFS=$as_save_IFS
17302 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
17303 if test -n "$CROSSWINDRES"; then
17304 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
17305 echo "${ECHO_T}$CROSSWINDRES" >&6; }
17306 else
17307 { echo "$as_me:$LINENO: result: no" >&5
17308 echo "${ECHO_T}no" >&6; }
17312 test -n "$CROSSWINDRES" && break
17313 done
17314 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
17316 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
17319 esac
17321 if test "$LIBEXT" = "a"; then
17322 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
17323 It is currently not possible to build Wine without shared library
17324 (.so) support to allow transparent switch between .so and .dll files.
17325 If you are using Linux, you will need a newer binutils.
17326 " >&5
17327 echo "$as_me: error: could not find a way to build shared libraries.
17328 It is currently not possible to build Wine without shared library
17329 (.so) support to allow transparent switch between .so and .dll files.
17330 If you are using Linux, you will need a newer binutils.
17331 " >&2;}
17332 { (exit 1); exit 1; }; }
17335 case $build_os in
17336 cygwin*|mingw32*)
17337 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
17339 darwin*|macosx*)
17340 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
17343 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
17345 esac
17347 case $host_os in
17348 mingw32*)
17349 CRTLIBS="-lmsvcrt"
17351 SOCKETLIBS="-lws2_32"
17354 esac
17356 MAIN_BINARY="wine-pthread"
17357 case $host_cpu in
17358 *i[3456789]86*)
17359 case $host_os in
17360 linux* | k*bsd*-gnu)
17361 MAIN_BINARY="wine-glibc"
17363 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
17365 esac
17367 esac
17370 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
17371 then
17372 # Extract the first word of "ldd", so it can be a program name with args.
17373 set dummy ldd; ac_word=$2
17374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17376 if test "${ac_cv_path_LDD+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 else
17379 case $LDD in
17380 [\\/]* | ?:[\\/]*)
17381 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17385 as_dummy="/sbin:/usr/sbin:$PATH"
17386 for as_dir in $as_dummy
17388 IFS=$as_save_IFS
17389 test -z "$as_dir" && as_dir=.
17390 for ac_exec_ext in '' $ac_executable_extensions; do
17391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17392 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17394 break 2
17396 done
17397 done
17398 IFS=$as_save_IFS
17400 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
17402 esac
17404 LDD=$ac_cv_path_LDD
17405 if test -n "$LDD"; then
17406 { echo "$as_me:$LINENO: result: $LDD" >&5
17407 echo "${ECHO_T}$LDD" >&6; }
17408 else
17409 { echo "$as_me:$LINENO: result: no" >&5
17410 echo "${ECHO_T}no" >&6; }
17414 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
17415 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
17416 if test "${ac_cv_lib_soname_X11+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419 ac_get_soname_save_LIBS=$LIBS
17420 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
17421 cat >conftest.$ac_ext <<_ACEOF
17422 /* confdefs.h. */
17423 _ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h. */
17428 /* Override any GCC internal prototype to avoid an error.
17429 Use char because int might match the return type of a GCC
17430 builtin and then its argument prototype would still apply. */
17431 #ifdef __cplusplus
17432 extern "C"
17433 #endif
17434 char XCreateWindow ();
17436 main ()
17438 return XCreateWindow ();
17440 return 0;
17442 _ACEOF
17443 rm -f conftest.$ac_objext conftest$ac_exeext
17444 if { (ac_try="$ac_link"
17445 case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17448 esac
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_link") 2>conftest.er1
17451 ac_status=$?
17452 grep -v '^ *+' conftest.er1 >conftest.err
17453 rm -f conftest.er1
17454 cat conftest.err >&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
17457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17458 { (case "(($ac_try" in
17459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460 *) ac_try_echo=$ac_try;;
17461 esac
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463 (eval "$ac_try") 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; } &&
17467 { ac_try='test -s conftest$ac_exeext'
17468 { (case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_try") 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17477 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17478 if test "x$ac_cv_lib_soname_X11" = "x"
17479 then
17480 ac_cv_lib_soname_X11="libX11.$LIBEXT"
17482 else
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17486 ac_cv_lib_soname_X11="libX11.$LIBEXT"
17489 rm -f core conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext conftest.$ac_ext
17491 LIBS=$ac_get_soname_save_LIBS
17493 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
17494 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
17495 if test "${ac_cv_lib_soname_X11+set}" = set; then
17497 cat >>confdefs.h <<_ACEOF
17498 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
17499 _ACEOF
17503 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
17504 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
17505 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508 ac_get_soname_save_LIBS=$LIBS
17509 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
17510 cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h. */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17517 /* Override any GCC internal prototype to avoid an error.
17518 Use char because int might match the return type of a GCC
17519 builtin and then its argument prototype would still apply. */
17520 #ifdef __cplusplus
17521 extern "C"
17522 #endif
17523 char XextCreateExtension ();
17525 main ()
17527 return XextCreateExtension ();
17529 return 0;
17531 _ACEOF
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (ac_try="$ac_link"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest$ac_exeext'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17560 esac
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17567 if test "x$ac_cv_lib_soname_Xext" = "x"
17568 then
17569 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
17571 else
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17575 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
17578 rm -f core conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext conftest.$ac_ext
17580 LIBS=$ac_get_soname_save_LIBS
17582 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
17583 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
17584 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17586 cat >>confdefs.h <<_ACEOF
17587 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
17588 _ACEOF
17592 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
17593 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
17594 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 else
17597 ac_get_soname_save_LIBS=$LIBS
17598 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17599 cat >conftest.$ac_ext <<_ACEOF
17600 /* confdefs.h. */
17601 _ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17606 /* Override any GCC internal prototype to avoid an error.
17607 Use char because int might match the return type of a GCC
17608 builtin and then its argument prototype would still apply. */
17609 #ifdef __cplusplus
17610 extern "C"
17611 #endif
17612 char XOpenDevice ();
17614 main ()
17616 return XOpenDevice ();
17618 return 0;
17620 _ACEOF
17621 rm -f conftest.$ac_objext conftest$ac_exeext
17622 if { (ac_try="$ac_link"
17623 case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_link") 2>conftest.er1
17629 ac_status=$?
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
17635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639 esac
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest$ac_exeext'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649 esac
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17656 if test "x$ac_cv_lib_soname_Xi" = "x"
17657 then
17658 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
17660 else
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
17667 rm -f core conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
17669 LIBS=$ac_get_soname_save_LIBS
17671 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
17672 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
17673 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17675 cat >>confdefs.h <<_ACEOF
17676 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
17677 _ACEOF
17681 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
17682 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
17683 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 else
17686 ac_get_soname_save_LIBS=$LIBS
17687 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17688 cat >conftest.$ac_ext <<_ACEOF
17689 /* confdefs.h. */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h. */
17695 /* Override any GCC internal prototype to avoid an error.
17696 Use char because int might match the return type of a GCC
17697 builtin and then its argument prototype would still apply. */
17698 #ifdef __cplusplus
17699 extern "C"
17700 #endif
17701 char XRenderQueryExtension ();
17703 main ()
17705 return XRenderQueryExtension ();
17707 return 0;
17709 _ACEOF
17710 rm -f conftest.$ac_objext conftest$ac_exeext
17711 if { (ac_try="$ac_link"
17712 case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17715 esac
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_link") 2>conftest.er1
17718 ac_status=$?
17719 grep -v '^ *+' conftest.er1 >conftest.err
17720 rm -f conftest.er1
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
17724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17725 { (case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17728 esac
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_try") 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
17735 { (case "(($ac_try" in
17736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737 *) ac_try_echo=$ac_try;;
17738 esac
17739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17740 (eval "$ac_try") 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
17744 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17745 if test "x$ac_cv_lib_soname_Xrender" = "x"
17746 then
17747 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
17749 else
17750 echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17753 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
17756 rm -f core conftest.err conftest.$ac_objext \
17757 conftest$ac_exeext conftest.$ac_ext
17758 LIBS=$ac_get_soname_save_LIBS
17760 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
17761 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
17762 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17764 cat >>confdefs.h <<_ACEOF
17765 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
17766 _ACEOF
17770 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
17771 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
17772 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775 ac_get_soname_save_LIBS=$LIBS
17776 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17777 cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h. */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17784 /* Override any GCC internal prototype to avoid an error.
17785 Use char because int might match the return type of a GCC
17786 builtin and then its argument prototype would still apply. */
17787 #ifdef __cplusplus
17788 extern "C"
17789 #endif
17790 char XRRQueryExtension ();
17792 main ()
17794 return XRRQueryExtension ();
17796 return 0;
17798 _ACEOF
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (ac_try="$ac_link"
17801 case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17804 esac
17805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_link") 2>conftest.er1
17807 ac_status=$?
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17814 { (case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17817 esac
17818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17819 (eval "$ac_try") 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; } &&
17823 { ac_try='test -s conftest$ac_exeext'
17824 { (case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17827 esac
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_try") 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
17833 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17834 if test "x$ac_cv_lib_soname_Xrandr" = "x"
17835 then
17836 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
17838 else
17839 echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17842 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
17845 rm -f core conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
17847 LIBS=$ac_get_soname_save_LIBS
17849 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
17850 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
17851 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17853 cat >>confdefs.h <<_ACEOF
17854 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
17855 _ACEOF
17859 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
17860 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
17861 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 else
17864 ac_get_soname_save_LIBS=$LIBS
17865 LIBS="-lfreetype $X_LIBS $LIBS"
17866 cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h. */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17873 /* Override any GCC internal prototype to avoid an error.
17874 Use char because int might match the return type of a GCC
17875 builtin and then its argument prototype would still apply. */
17876 #ifdef __cplusplus
17877 extern "C"
17878 #endif
17879 char FT_Init_FreeType ();
17881 main ()
17883 return FT_Init_FreeType ();
17885 return 0;
17887 _ACEOF
17888 rm -f conftest.$ac_objext conftest$ac_exeext
17889 if { (ac_try="$ac_link"
17890 case "(($ac_try" in
17891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892 *) ac_try_echo=$ac_try;;
17893 esac
17894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17895 (eval "$ac_link") 2>conftest.er1
17896 ac_status=$?
17897 grep -v '^ *+' conftest.er1 >conftest.err
17898 rm -f conftest.er1
17899 cat conftest.err >&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } &&
17902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17903 { (case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17906 esac
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_try") 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest$ac_exeext'
17913 { (case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17916 esac
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_try") 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
17923 if test "x$ac_cv_lib_soname_freetype" = "x"
17924 then
17925 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
17927 else
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17931 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
17934 rm -f core conftest.err conftest.$ac_objext \
17935 conftest$ac_exeext conftest.$ac_ext
17936 LIBS=$ac_get_soname_save_LIBS
17938 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
17939 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
17940 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17942 cat >>confdefs.h <<_ACEOF
17943 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
17944 _ACEOF
17948 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
17949 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
17950 if test "${ac_cv_lib_soname_GL+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17952 else
17953 ac_get_soname_save_LIBS=$LIBS
17954 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
17955 cat >conftest.$ac_ext <<_ACEOF
17956 /* confdefs.h. */
17957 _ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17962 /* Override any GCC internal prototype to avoid an error.
17963 Use char because int might match the return type of a GCC
17964 builtin and then its argument prototype would still apply. */
17965 #ifdef __cplusplus
17966 extern "C"
17967 #endif
17968 char glXQueryExtension ();
17970 main ()
17972 return glXQueryExtension ();
17974 return 0;
17976 _ACEOF
17977 rm -f conftest.$ac_objext conftest$ac_exeext
17978 if { (ac_try="$ac_link"
17979 case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17982 esac
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_link") 2>conftest.er1
17985 ac_status=$?
17986 grep -v '^ *+' conftest.er1 >conftest.err
17987 rm -f conftest.er1
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995 esac
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest$ac_exeext'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18005 esac
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18012 if test "x$ac_cv_lib_soname_GL" = "x"
18013 then
18014 ac_cv_lib_soname_GL="libGL.$LIBEXT"
18016 else
18017 echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18020 ac_cv_lib_soname_GL="libGL.$LIBEXT"
18023 rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_get_soname_save_LIBS
18027 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
18028 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
18029 if test "${ac_cv_lib_soname_GL+set}" = set; then
18031 cat >>confdefs.h <<_ACEOF
18032 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
18033 _ACEOF
18037 { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
18038 echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
18039 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 else
18042 ac_get_soname_save_LIBS=$LIBS
18043 LIBS="-ldbus-1 $LIBS"
18044 cat >conftest.$ac_ext <<_ACEOF
18045 /* confdefs.h. */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18051 /* Override any GCC internal prototype to avoid an error.
18052 Use char because int might match the return type of a GCC
18053 builtin and then its argument prototype would still apply. */
18054 #ifdef __cplusplus
18055 extern "C"
18056 #endif
18057 char dbus_error_init ();
18059 main ()
18061 return dbus_error_init ();
18063 return 0;
18065 _ACEOF
18066 rm -f conftest.$ac_objext conftest$ac_exeext
18067 if { (ac_try="$ac_link"
18068 case "(($ac_try" in
18069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070 *) ac_try_echo=$ac_try;;
18071 esac
18072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073 (eval "$ac_link") 2>conftest.er1
18074 ac_status=$?
18075 grep -v '^ *+' conftest.er1 >conftest.err
18076 rm -f conftest.er1
18077 cat conftest.err >&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } &&
18080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18081 { (case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18084 esac
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_try") 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try='test -s conftest$ac_exeext'
18091 { (case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_try") 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 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'`
18101 if test "x$ac_cv_lib_soname_dbus_1" = "x"
18102 then
18103 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18105 else
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18112 rm -f core conftest.err conftest.$ac_objext \
18113 conftest$ac_exeext conftest.$ac_ext
18114 LIBS=$ac_get_soname_save_LIBS
18116 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
18117 echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
18118 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18120 cat >>confdefs.h <<_ACEOF
18121 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
18122 _ACEOF
18126 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
18127 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
18128 if test "${ac_cv_lib_soname_hal+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18130 else
18131 ac_get_soname_save_LIBS=$LIBS
18132 LIBS="-lhal $LIBS"
18133 cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h. */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18140 /* Override any GCC internal prototype to avoid an error.
18141 Use char because int might match the return type of a GCC
18142 builtin and then its argument prototype would still apply. */
18143 #ifdef __cplusplus
18144 extern "C"
18145 #endif
18146 char libhal_ctx_new ();
18148 main ()
18150 return libhal_ctx_new ();
18152 return 0;
18154 _ACEOF
18155 rm -f conftest.$ac_objext conftest$ac_exeext
18156 if { (ac_try="$ac_link"
18157 case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_link") 2>conftest.er1
18163 ac_status=$?
18164 grep -v '^ *+' conftest.er1 >conftest.err
18165 rm -f conftest.er1
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } &&
18169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18170 { (case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18173 esac
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_try") 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest$ac_exeext'
18180 { (case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18183 esac
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_try") 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; }; then
18189 ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18190 if test "x$ac_cv_lib_soname_hal" = "x"
18191 then
18192 ac_cv_lib_soname_hal="libhal.$LIBEXT"
18194 else
18195 echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18198 ac_cv_lib_soname_hal="libhal.$LIBEXT"
18201 rm -f core conftest.err conftest.$ac_objext \
18202 conftest$ac_exeext conftest.$ac_ext
18203 LIBS=$ac_get_soname_save_LIBS
18205 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
18206 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
18207 if test "${ac_cv_lib_soname_hal+set}" = set; then
18209 cat >>confdefs.h <<_ACEOF
18210 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
18211 _ACEOF
18215 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
18216 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
18217 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18218 echo $ECHO_N "(cached) $ECHO_C" >&6
18219 else
18220 ac_get_soname_save_LIBS=$LIBS
18221 LIBS="-ltxc_dxtn $LIBS"
18222 cat >conftest.$ac_ext <<_ACEOF
18223 /* confdefs.h. */
18224 _ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h. */
18229 /* Override any GCC internal prototype to avoid an error.
18230 Use char because int might match the return type of a GCC
18231 builtin and then its argument prototype would still apply. */
18232 #ifdef __cplusplus
18233 extern "C"
18234 #endif
18235 char fetch_2d_texel_rgba_dxt1 ();
18237 main ()
18239 return fetch_2d_texel_rgba_dxt1 ();
18241 return 0;
18243 _ACEOF
18244 rm -f conftest.$ac_objext conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249 esac
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>conftest.er1
18252 ac_status=$?
18253 grep -v '^ *+' conftest.er1 >conftest.err
18254 rm -f conftest.er1
18255 cat conftest.err >&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } &&
18258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18259 { (case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262 esac
18263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_try") 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest$ac_exeext'
18269 { (case "(($ac_try" in
18270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271 *) ac_try_echo=$ac_try;;
18272 esac
18273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274 (eval "$ac_try") 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18278 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'`
18279 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
18280 then
18281 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18283 else
18284 echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18287 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18290 rm -f core conftest.err conftest.$ac_objext \
18291 conftest$ac_exeext conftest.$ac_ext
18292 LIBS=$ac_get_soname_save_LIBS
18294 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
18295 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
18296 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18298 cat >>confdefs.h <<_ACEOF
18299 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
18300 _ACEOF
18304 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
18305 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
18306 if test "${ac_cv_lib_soname_cups+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309 ac_get_soname_save_LIBS=$LIBS
18310 LIBS="-lcups $LIBS"
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h. */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18318 /* Override any GCC internal prototype to avoid an error.
18319 Use char because int might match the return type of a GCC
18320 builtin and then its argument prototype would still apply. */
18321 #ifdef __cplusplus
18322 extern "C"
18323 #endif
18324 char cupsGetDefault ();
18326 main ()
18328 return cupsGetDefault ();
18330 return 0;
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18348 { (case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351 esac
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_try") 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest$ac_exeext'
18358 { (case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18361 esac
18362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363 (eval "$ac_try") 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
18367 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18368 if test "x$ac_cv_lib_soname_cups" = "x"
18369 then
18370 ac_cv_lib_soname_cups="libcups.$LIBEXT"
18372 else
18373 echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18376 ac_cv_lib_soname_cups="libcups.$LIBEXT"
18379 rm -f core conftest.err conftest.$ac_objext \
18380 conftest$ac_exeext conftest.$ac_ext
18381 LIBS=$ac_get_soname_save_LIBS
18383 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
18384 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
18385 if test "${ac_cv_lib_soname_cups+set}" = set; then
18387 cat >>confdefs.h <<_ACEOF
18388 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
18389 _ACEOF
18393 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
18394 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
18395 if test "${ac_cv_lib_soname_jack+set}" = set; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18397 else
18398 ac_get_soname_save_LIBS=$LIBS
18399 LIBS="-ljack $LIBS"
18400 cat >conftest.$ac_ext <<_ACEOF
18401 /* confdefs.h. */
18402 _ACEOF
18403 cat confdefs.h >>conftest.$ac_ext
18404 cat >>conftest.$ac_ext <<_ACEOF
18405 /* end confdefs.h. */
18407 /* Override any GCC internal prototype to avoid an error.
18408 Use char because int might match the return type of a GCC
18409 builtin and then its argument prototype would still apply. */
18410 #ifdef __cplusplus
18411 extern "C"
18412 #endif
18413 char jack_client_new ();
18415 main ()
18417 return jack_client_new ();
18419 return 0;
18421 _ACEOF
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_link") 2>conftest.er1
18430 ac_status=$?
18431 grep -v '^ *+' conftest.er1 >conftest.err
18432 rm -f conftest.er1
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18437 { (case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18440 esac
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_try") 2>&5
18443 ac_status=$?
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; } &&
18446 { ac_try='test -s conftest$ac_exeext'
18447 { (case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450 esac
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_try") 2>&5
18453 ac_status=$?
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; }; then
18456 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18457 if test "x$ac_cv_lib_soname_jack" = "x"
18458 then
18459 ac_cv_lib_soname_jack="libjack.$LIBEXT"
18461 else
18462 echo "$as_me: failed program was:" >&5
18463 sed 's/^/| /' conftest.$ac_ext >&5
18465 ac_cv_lib_soname_jack="libjack.$LIBEXT"
18468 rm -f core conftest.err conftest.$ac_objext \
18469 conftest$ac_exeext conftest.$ac_ext
18470 LIBS=$ac_get_soname_save_LIBS
18472 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
18473 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
18474 if test "${ac_cv_lib_soname_jack+set}" = set; then
18476 cat >>confdefs.h <<_ACEOF
18477 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
18478 _ACEOF
18482 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
18483 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
18484 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18486 else
18487 ac_get_soname_save_LIBS=$LIBS
18488 LIBS="-lfontconfig $LIBS"
18489 cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h. */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18496 /* Override any GCC internal prototype to avoid an error.
18497 Use char because int might match the return type of a GCC
18498 builtin and then its argument prototype would still apply. */
18499 #ifdef __cplusplus
18500 extern "C"
18501 #endif
18502 char FcInit ();
18504 main ()
18506 return FcInit ();
18508 return 0;
18510 _ACEOF
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (ac_try="$ac_link"
18513 case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
18519 ac_status=$?
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
18525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18526 { (case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_try") 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest$ac_exeext'
18536 { (case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18539 esac
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_try") 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18546 if test "x$ac_cv_lib_soname_fontconfig" = "x"
18547 then
18548 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18550 else
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18554 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18557 rm -f core conftest.err conftest.$ac_objext \
18558 conftest$ac_exeext conftest.$ac_ext
18559 LIBS=$ac_get_soname_save_LIBS
18561 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
18562 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
18563 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18565 cat >>confdefs.h <<_ACEOF
18566 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
18567 _ACEOF
18571 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
18572 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
18573 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576 ac_get_soname_save_LIBS=$LIBS
18577 LIBS="-lssl $LIBS"
18578 cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h. */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18585 /* Override any GCC internal prototype to avoid an error.
18586 Use char because int might match the return type of a GCC
18587 builtin and then its argument prototype would still apply. */
18588 #ifdef __cplusplus
18589 extern "C"
18590 #endif
18591 char SSL_library_init ();
18593 main ()
18595 return SSL_library_init ();
18597 return 0;
18599 _ACEOF
18600 rm -f conftest.$ac_objext conftest$ac_exeext
18601 if { (ac_try="$ac_link"
18602 case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18605 esac
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_link") 2>conftest.er1
18608 ac_status=$?
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
18614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18615 { (case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18618 esac
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_try") 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest$ac_exeext'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18635 if test "x$ac_cv_lib_soname_ssl" = "x"
18636 then
18637 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18639 else
18640 echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18643 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18646 rm -f core conftest.err conftest.$ac_objext \
18647 conftest$ac_exeext conftest.$ac_ext
18648 LIBS=$ac_get_soname_save_LIBS
18650 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
18651 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
18652 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18654 cat >>confdefs.h <<_ACEOF
18655 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
18656 _ACEOF
18660 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
18661 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
18662 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18664 else
18665 ac_get_soname_save_LIBS=$LIBS
18666 LIBS="-lcrypto $LIBS"
18667 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h. */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18674 /* Override any GCC internal prototype to avoid an error.
18675 Use char because int might match the return type of a GCC
18676 builtin and then its argument prototype would still apply. */
18677 #ifdef __cplusplus
18678 extern "C"
18679 #endif
18680 char BIO_new_socket ();
18682 main ()
18684 return BIO_new_socket ();
18686 return 0;
18688 _ACEOF
18689 rm -f conftest.$ac_objext conftest$ac_exeext
18690 if { (ac_try="$ac_link"
18691 case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_link") 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } &&
18703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18704 { (case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18707 esac
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_try") 2>&5
18710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; } &&
18713 { ac_try='test -s conftest$ac_exeext'
18714 { (case "(($ac_try" in
18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716 *) ac_try_echo=$ac_try;;
18717 esac
18718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719 (eval "$ac_try") 2>&5
18720 ac_status=$?
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; }; then
18723 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18724 if test "x$ac_cv_lib_soname_crypto" = "x"
18725 then
18726 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18728 else
18729 echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18732 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18735 rm -f core conftest.err conftest.$ac_objext \
18736 conftest$ac_exeext conftest.$ac_ext
18737 LIBS=$ac_get_soname_save_LIBS
18739 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
18740 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
18741 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18743 cat >>confdefs.h <<_ACEOF
18744 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
18745 _ACEOF
18749 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
18750 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
18751 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754 ac_get_soname_save_LIBS=$LIBS
18755 LIBS="-lncurses $LIBS"
18756 cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h. */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18763 /* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18766 #ifdef __cplusplus
18767 extern "C"
18768 #endif
18769 char waddch ();
18771 main ()
18773 return waddch ();
18775 return 0;
18777 _ACEOF
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (ac_try="$ac_link"
18780 case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18783 esac
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_link") 2>conftest.er1
18786 ac_status=$?
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18796 esac
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest$ac_exeext'
18803 { (case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_try") 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18813 if test "x$ac_cv_lib_soname_ncurses" = "x"
18814 then
18815 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18817 else
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18821 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18824 rm -f core conftest.err conftest.$ac_objext \
18825 conftest$ac_exeext conftest.$ac_ext
18826 LIBS=$ac_get_soname_save_LIBS
18828 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
18829 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
18830 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18832 cat >>confdefs.h <<_ACEOF
18833 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
18834 _ACEOF
18838 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
18839 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
18840 if test "${ac_cv_lib_soname_curses+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843 ac_get_soname_save_LIBS=$LIBS
18844 LIBS="-lcurses $LIBS"
18845 cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h. */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18852 /* Override any GCC internal prototype to avoid an error.
18853 Use char because int might match the return type of a GCC
18854 builtin and then its argument prototype would still apply. */
18855 #ifdef __cplusplus
18856 extern "C"
18857 #endif
18858 char waddch ();
18860 main ()
18862 return waddch ();
18864 return 0;
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (ac_try="$ac_link"
18869 case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18872 esac
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_link") 2>conftest.er1
18875 ac_status=$?
18876 grep -v '^ *+' conftest.er1 >conftest.err
18877 rm -f conftest.er1
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
18881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18882 { (case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18885 esac
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_try") 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try='test -s conftest$ac_exeext'
18892 { (case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18895 esac
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_try") 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; }; then
18901 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18902 if test "x$ac_cv_lib_soname_curses" = "x"
18903 then
18904 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18906 else
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18913 rm -f core conftest.err conftest.$ac_objext \
18914 conftest$ac_exeext conftest.$ac_ext
18915 LIBS=$ac_get_soname_save_LIBS
18917 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
18918 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
18919 if test "${ac_cv_lib_soname_curses+set}" = set; then
18921 cat >>confdefs.h <<_ACEOF
18922 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
18923 _ACEOF
18927 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
18928 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
18929 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18931 else
18932 ac_get_soname_save_LIBS=$LIBS
18933 LIBS="-ljpeg $LIBS"
18934 cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h. */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18941 /* Override any GCC internal prototype to avoid an error.
18942 Use char because int might match the return type of a GCC
18943 builtin and then its argument prototype would still apply. */
18944 #ifdef __cplusplus
18945 extern "C"
18946 #endif
18947 char jpeg_start_decompress ();
18949 main ()
18951 return jpeg_start_decompress ();
18953 return 0;
18955 _ACEOF
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (ac_try="$ac_link"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_link") 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest$ac_exeext'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984 esac
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18991 if test "x$ac_cv_lib_soname_jpeg" = "x"
18992 then
18993 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18995 else
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18999 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
19002 rm -f core conftest.err conftest.$ac_objext \
19003 conftest$ac_exeext conftest.$ac_ext
19004 LIBS=$ac_get_soname_save_LIBS
19006 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
19007 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
19008 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
19010 cat >>confdefs.h <<_ACEOF
19011 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
19012 _ACEOF
19016 { echo "$as_me:$LINENO: checking for -lungif soname" >&5
19017 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
19018 if test "${ac_cv_lib_soname_ungif+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19020 else
19021 ac_get_soname_save_LIBS=$LIBS
19022 LIBS="-lungif $LIBS"
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19030 /* Override any GCC internal prototype to avoid an error.
19031 Use char because int might match the return type of a GCC
19032 builtin and then its argument prototype would still apply. */
19033 #ifdef __cplusplus
19034 extern "C"
19035 #endif
19036 char DGifOpen ();
19038 main ()
19040 return DGifOpen ();
19042 return 0;
19044 _ACEOF
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (ac_try="$ac_link"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_link") 2>conftest.er1
19053 ac_status=$?
19054 grep -v '^ *+' conftest.er1 >conftest.err
19055 rm -f conftest.er1
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } &&
19059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19060 { (case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_try") 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; } &&
19069 { ac_try='test -s conftest$ac_exeext'
19070 { (case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_try") 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19080 if test "x$ac_cv_lib_soname_ungif" = "x"
19081 then
19082 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19084 else
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19088 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19091 rm -f core conftest.err conftest.$ac_objext \
19092 conftest$ac_exeext conftest.$ac_ext
19093 LIBS=$ac_get_soname_save_LIBS
19095 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
19096 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
19097 if test "${ac_cv_lib_soname_ungif+set}" = set; then
19099 cat >>confdefs.h <<_ACEOF
19100 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
19101 _ACEOF
19105 { echo "$as_me:$LINENO: checking for -lgif soname" >&5
19106 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
19107 if test "${ac_cv_lib_soname_gif+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 else
19110 ac_get_soname_save_LIBS=$LIBS
19111 LIBS="-lgif $LIBS"
19112 cat >conftest.$ac_ext <<_ACEOF
19113 /* confdefs.h. */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19119 /* Override any GCC internal prototype to avoid an error.
19120 Use char because int might match the return type of a GCC
19121 builtin and then its argument prototype would still apply. */
19122 #ifdef __cplusplus
19123 extern "C"
19124 #endif
19125 char DGifOpen ();
19127 main ()
19129 return DGifOpen ();
19131 return 0;
19133 _ACEOF
19134 rm -f conftest.$ac_objext conftest$ac_exeext
19135 if { (ac_try="$ac_link"
19136 case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19139 esac
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141 (eval "$ac_link") 2>conftest.er1
19142 ac_status=$?
19143 grep -v '^ *+' conftest.er1 >conftest.err
19144 rm -f conftest.er1
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19149 { (case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19152 esac
19153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154 (eval "$ac_try") 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; } &&
19158 { ac_try='test -s conftest$ac_exeext'
19159 { (case "(($ac_try" in
19160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161 *) ac_try_echo=$ac_try;;
19162 esac
19163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19164 (eval "$ac_try") 2>&5
19165 ac_status=$?
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; }; then
19168 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19169 if test "x$ac_cv_lib_soname_gif" = "x"
19170 then
19171 ac_cv_lib_soname_gif="libgif.$LIBEXT"
19173 else
19174 echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19177 ac_cv_lib_soname_gif="libgif.$LIBEXT"
19180 rm -f core conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19182 LIBS=$ac_get_soname_save_LIBS
19184 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
19185 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
19186 if test "${ac_cv_lib_soname_gif+set}" = set; then
19188 cat >>confdefs.h <<_ACEOF
19189 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
19190 _ACEOF
19194 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
19195 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
19196 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19198 else
19199 ac_get_soname_save_LIBS=$LIBS
19200 LIBS="-lcapi20 $LIBS"
19201 cat >conftest.$ac_ext <<_ACEOF
19202 /* confdefs.h. */
19203 _ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19208 /* Override any GCC internal prototype to avoid an error.
19209 Use char because int might match the return type of a GCC
19210 builtin and then its argument prototype would still apply. */
19211 #ifdef __cplusplus
19212 extern "C"
19213 #endif
19214 char capi20_isinstalled ();
19216 main ()
19218 return capi20_isinstalled ();
19220 return 0;
19222 _ACEOF
19223 rm -f conftest.$ac_objext conftest$ac_exeext
19224 if { (ac_try="$ac_link"
19225 case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19228 esac
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_link") 2>conftest.er1
19231 ac_status=$?
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
19237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19238 { (case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19241 esac
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_try") 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest$ac_exeext'
19248 { (case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19251 esac
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_try") 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
19258 if test "x$ac_cv_lib_soname_capi20" = "x"
19259 then
19260 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19262 else
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19266 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19269 rm -f core conftest.err conftest.$ac_objext \
19270 conftest$ac_exeext conftest.$ac_ext
19271 LIBS=$ac_get_soname_save_LIBS
19273 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
19274 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
19275 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19277 cat >>confdefs.h <<_ACEOF
19278 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
19279 _ACEOF
19352 for ac_func in \
19353 _lwp_create \
19354 _lwp_self \
19355 _pclose \
19356 _popen \
19357 _snprintf \
19358 _spawnvp \
19359 _stricmp \
19360 _strnicmp \
19361 _vsnprintf \
19362 asctime_r \
19363 chsize \
19364 clone \
19365 epoll_create \
19366 ffs \
19367 finite \
19368 fork \
19369 fpclass \
19370 fstatfs \
19371 fstatvfs \
19372 ftruncate \
19373 futimes \
19374 futimesat \
19375 getaddrinfo \
19376 getnameinfo \
19377 getnetbyname \
19378 getopt_long \
19379 getpagesize \
19380 getprotobyname \
19381 getprotobynumber \
19382 getpwuid \
19383 getservbyport \
19384 gettid \
19385 gettimeofday \
19386 getuid \
19387 inet_network \
19388 lstat \
19389 memmove \
19390 mmap \
19391 pclose \
19392 popen \
19393 prctl \
19394 pread \
19395 pwrite \
19396 readlink \
19397 rfork \
19398 sched_yield \
19399 select \
19400 sendmsg \
19401 setrlimit \
19402 settimeofday \
19403 sigaltstack \
19404 sigprocmask \
19405 snprintf \
19406 spawnvp \
19407 statfs \
19408 statvfs \
19409 strcasecmp \
19410 strerror \
19411 strncasecmp \
19412 tcgetattr \
19413 timegm \
19414 usleep \
19415 vsnprintf \
19416 wait4 \
19417 waitpid \
19420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19425 else
19426 cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h. */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19434 #define $ac_func innocuous_$ac_func
19436 /* System header to define __stub macros and hopefully few prototypes,
19437 which can conflict with char $ac_func (); below.
19438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19439 <limits.h> exists even on freestanding compilers. */
19441 #ifdef __STDC__
19442 # include <limits.h>
19443 #else
19444 # include <assert.h>
19445 #endif
19447 #undef $ac_func
19449 /* Override any GCC internal prototype to avoid an error.
19450 Use char because int might match the return type of a GCC
19451 builtin and then its argument prototype would still apply. */
19452 #ifdef __cplusplus
19453 extern "C"
19454 #endif
19455 char $ac_func ();
19456 /* The GNU C library defines this for functions which it implements
19457 to always fail with ENOSYS. Some functions are actually named
19458 something starting with __ and the normal name is an alias. */
19459 #if defined __stub_$ac_func || defined __stub___$ac_func
19460 choke me
19461 #endif
19464 main ()
19466 return $ac_func ();
19468 return 0;
19470 _ACEOF
19471 rm -f conftest.$ac_objext conftest$ac_exeext
19472 if { (ac_try="$ac_link"
19473 case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19476 esac
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478 (eval "$ac_link") 2>conftest.er1
19479 ac_status=$?
19480 grep -v '^ *+' conftest.er1 >conftest.err
19481 rm -f conftest.er1
19482 cat conftest.err >&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); } &&
19485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19486 { (case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19489 esac
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491 (eval "$ac_try") 2>&5
19492 ac_status=$?
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); }; } &&
19495 { ac_try='test -s conftest$ac_exeext'
19496 { (case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19499 esac
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_try") 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; }; then
19505 eval "$as_ac_var=yes"
19506 else
19507 echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19510 eval "$as_ac_var=no"
19513 rm -f core conftest.err conftest.$ac_objext \
19514 conftest$ac_exeext conftest.$ac_ext
19516 ac_res=`eval echo '${'$as_ac_var'}'`
19517 { echo "$as_me:$LINENO: result: $ac_res" >&5
19518 echo "${ECHO_T}$ac_res" >&6; }
19519 if test `eval echo '${'$as_ac_var'}'` = yes; then
19520 cat >>confdefs.h <<_ACEOF
19521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19522 _ACEOF
19525 done
19530 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19531 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19532 if test "${ac_cv_c_const+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 else
19535 cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h. */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19543 main ()
19545 /* FIXME: Include the comments suggested by Paul. */
19546 #ifndef __cplusplus
19547 /* Ultrix mips cc rejects this. */
19548 typedef int charset[2];
19549 const charset x;
19550 /* SunOS 4.1.1 cc rejects this. */
19551 char const *const *ccp;
19552 char **p;
19553 /* NEC SVR4.0.2 mips cc rejects this. */
19554 struct point {int x, y;};
19555 static struct point const zero = {0,0};
19556 /* AIX XL C 1.02.0.0 rejects this.
19557 It does not let you subtract one const X* pointer from another in
19558 an arm of an if-expression whose if-part is not a constant
19559 expression */
19560 const char *g = "string";
19561 ccp = &g + (g ? g-g : 0);
19562 /* HPUX 7.0 cc rejects these. */
19563 ++ccp;
19564 p = (char**) ccp;
19565 ccp = (char const *const *) p;
19566 { /* SCO 3.2v4 cc rejects this. */
19567 char *t;
19568 char const *s = 0 ? (char *) 0 : (char const *) 0;
19570 *t++ = 0;
19571 if (s) return 0;
19573 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19574 int x[] = {25, 17};
19575 const int *foo = &x[0];
19576 ++foo;
19578 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19579 typedef const int *iptr;
19580 iptr p = 0;
19581 ++p;
19583 { /* AIX XL C 1.02.0.0 rejects this saying
19584 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19585 struct s { int j; const int *ap[3]; };
19586 struct s *b; b->j = 5;
19588 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19589 const int foo = 10;
19590 if (!foo) return 0;
19592 return !x[0] && !zero.x;
19593 #endif
19596 return 0;
19598 _ACEOF
19599 rm -f conftest.$ac_objext
19600 if { (ac_try="$ac_compile"
19601 case "(($ac_try" in
19602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19604 esac
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606 (eval "$ac_compile") 2>conftest.er1
19607 ac_status=$?
19608 grep -v '^ *+' conftest.er1 >conftest.err
19609 rm -f conftest.er1
19610 cat conftest.err >&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } &&
19613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19614 { (case "(($ac_try" in
19615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616 *) ac_try_echo=$ac_try;;
19617 esac
19618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19619 (eval "$ac_try") 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; } &&
19623 { ac_try='test -s conftest.$ac_objext'
19624 { (case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_try") 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 ac_cv_c_const=yes
19634 else
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19638 ac_cv_c_const=no
19641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19643 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19644 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19645 if test $ac_cv_c_const = no; then
19647 cat >>confdefs.h <<\_ACEOF
19648 #define const
19649 _ACEOF
19653 { echo "$as_me:$LINENO: checking for inline" >&5
19654 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19655 if test "${ac_cv_c_inline+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658 ac_cv_c_inline=no
19659 for ac_kw in inline __inline__ __inline; do
19660 cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h. */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19666 #ifndef __cplusplus
19667 typedef int foo_t;
19668 static $ac_kw foo_t static_foo () {return 0; }
19669 $ac_kw foo_t foo () {return 0; }
19670 #endif
19672 _ACEOF
19673 rm -f conftest.$ac_objext
19674 if { (ac_try="$ac_compile"
19675 case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19678 esac
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_compile") 2>conftest.er1
19681 ac_status=$?
19682 grep -v '^ *+' conftest.er1 >conftest.err
19683 rm -f conftest.er1
19684 cat conftest.err >&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } &&
19687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19688 { (case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19691 esac
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_try") 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try='test -s conftest.$ac_objext'
19698 { (case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19701 esac
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_try") 2>&5
19704 ac_status=$?
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; }; then
19707 ac_cv_c_inline=$ac_kw
19708 else
19709 echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19716 test "$ac_cv_c_inline" != no && break
19717 done
19720 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19721 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19724 case $ac_cv_c_inline in
19725 inline | yes) ;;
19727 case $ac_cv_c_inline in
19728 no) ac_val=;;
19729 *) ac_val=$ac_cv_c_inline;;
19730 esac
19731 cat >>confdefs.h <<_ACEOF
19732 #ifndef __cplusplus
19733 #define inline $ac_val
19734 #endif
19735 _ACEOF
19737 esac
19739 { echo "$as_me:$LINENO: checking for mode_t" >&5
19740 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
19741 if test "${ac_cv_type_mode_t+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 else
19744 cat >conftest.$ac_ext <<_ACEOF
19745 /* confdefs.h. */
19746 _ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19750 $ac_includes_default
19751 typedef mode_t ac__type_new_;
19753 main ()
19755 if ((ac__type_new_ *) 0)
19756 return 0;
19757 if (sizeof (ac__type_new_))
19758 return 0;
19760 return 0;
19762 _ACEOF
19763 rm -f conftest.$ac_objext
19764 if { (ac_try="$ac_compile"
19765 case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19768 esac
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_compile") 2>conftest.er1
19771 ac_status=$?
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
19777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19778 { (case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19781 esac
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_try") 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest.$ac_objext'
19788 { (case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791 esac
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_try") 2>&5
19794 ac_status=$?
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; }; then
19797 ac_cv_type_mode_t=yes
19798 else
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 ac_cv_type_mode_t=no
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19807 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19808 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
19809 if test $ac_cv_type_mode_t = yes; then
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_MODE_T 1
19813 _ACEOF
19817 { echo "$as_me:$LINENO: checking for off_t" >&5
19818 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
19819 if test "${ac_cv_type_off_t+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19821 else
19822 cat >conftest.$ac_ext <<_ACEOF
19823 /* confdefs.h. */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19828 $ac_includes_default
19829 typedef off_t ac__type_new_;
19831 main ()
19833 if ((ac__type_new_ *) 0)
19834 return 0;
19835 if (sizeof (ac__type_new_))
19836 return 0;
19838 return 0;
19840 _ACEOF
19841 rm -f conftest.$ac_objext
19842 if { (ac_try="$ac_compile"
19843 case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_compile") 2>conftest.er1
19849 ac_status=$?
19850 grep -v '^ *+' conftest.er1 >conftest.err
19851 rm -f conftest.er1
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } &&
19855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19856 { (case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_try") 2>&5
19862 ac_status=$?
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; } &&
19865 { ac_try='test -s conftest.$ac_objext'
19866 { (case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19869 esac
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_try") 2>&5
19872 ac_status=$?
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; }; then
19875 ac_cv_type_off_t=yes
19876 else
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 ac_cv_type_off_t=no
19883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19885 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19886 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
19887 if test $ac_cv_type_off_t = yes; then
19889 cat >>confdefs.h <<_ACEOF
19890 #define HAVE_OFF_T 1
19891 _ACEOF
19895 { echo "$as_me:$LINENO: checking for pid_t" >&5
19896 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
19897 if test "${ac_cv_type_pid_t+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900 cat >conftest.$ac_ext <<_ACEOF
19901 /* confdefs.h. */
19902 _ACEOF
19903 cat confdefs.h >>conftest.$ac_ext
19904 cat >>conftest.$ac_ext <<_ACEOF
19905 /* end confdefs.h. */
19906 $ac_includes_default
19907 typedef pid_t ac__type_new_;
19909 main ()
19911 if ((ac__type_new_ *) 0)
19912 return 0;
19913 if (sizeof (ac__type_new_))
19914 return 0;
19916 return 0;
19918 _ACEOF
19919 rm -f conftest.$ac_objext
19920 if { (ac_try="$ac_compile"
19921 case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19924 esac
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_compile") 2>conftest.er1
19927 ac_status=$?
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
19933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19934 { (case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937 esac
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_try") 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } &&
19943 { ac_try='test -s conftest.$ac_objext'
19944 { (case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19947 esac
19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949 (eval "$ac_try") 2>&5
19950 ac_status=$?
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
19953 ac_cv_type_pid_t=yes
19954 else
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19958 ac_cv_type_pid_t=no
19961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19963 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19964 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
19965 if test $ac_cv_type_pid_t = yes; then
19967 cat >>confdefs.h <<_ACEOF
19968 #define HAVE_PID_T 1
19969 _ACEOF
19973 { echo "$as_me:$LINENO: checking for size_t" >&5
19974 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19975 if test "${ac_cv_type_size_t+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19977 else
19978 cat >conftest.$ac_ext <<_ACEOF
19979 /* confdefs.h. */
19980 _ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h. */
19984 $ac_includes_default
19985 typedef size_t ac__type_new_;
19987 main ()
19989 if ((ac__type_new_ *) 0)
19990 return 0;
19991 if (sizeof (ac__type_new_))
19992 return 0;
19994 return 0;
19996 _ACEOF
19997 rm -f conftest.$ac_objext
19998 if { (ac_try="$ac_compile"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20002 esac
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_compile") 2>conftest.er1
20005 ac_status=$?
20006 grep -v '^ *+' conftest.er1 >conftest.err
20007 rm -f conftest.er1
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } &&
20011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20012 { (case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20015 esac
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_try") 2>&5
20018 ac_status=$?
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; } &&
20021 { ac_try='test -s conftest.$ac_objext'
20022 { (case "(($ac_try" in
20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024 *) ac_try_echo=$ac_try;;
20025 esac
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027 (eval "$ac_try") 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 ac_cv_type_size_t=yes
20032 else
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20036 ac_cv_type_size_t=no
20039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20041 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20042 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20043 if test $ac_cv_type_size_t = yes; then
20045 cat >>confdefs.h <<_ACEOF
20046 #define HAVE_SIZE_T 1
20047 _ACEOF
20051 { echo "$as_me:$LINENO: checking for ssize_t" >&5
20052 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
20053 if test "${ac_cv_type_ssize_t+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h. */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 $ac_includes_default
20063 typedef ssize_t ac__type_new_;
20065 main ()
20067 if ((ac__type_new_ *) 0)
20068 return 0;
20069 if (sizeof (ac__type_new_))
20070 return 0;
20072 return 0;
20074 _ACEOF
20075 rm -f conftest.$ac_objext
20076 if { (ac_try="$ac_compile"
20077 case "(($ac_try" in
20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20080 esac
20081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082 (eval "$ac_compile") 2>conftest.er1
20083 ac_status=$?
20084 grep -v '^ *+' conftest.er1 >conftest.err
20085 rm -f conftest.er1
20086 cat conftest.err >&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } &&
20089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20090 { (case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20093 esac
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_try") 2>&5
20096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; } &&
20099 { ac_try='test -s conftest.$ac_objext'
20100 { (case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20103 esac
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_try") 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 ac_cv_type_ssize_t=yes
20110 else
20111 echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20114 ac_cv_type_ssize_t=no
20117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20119 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20120 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
20121 if test $ac_cv_type_ssize_t = yes; then
20123 cat >>confdefs.h <<_ACEOF
20124 #define HAVE_SSIZE_T 1
20125 _ACEOF
20129 { echo "$as_me:$LINENO: checking for long long" >&5
20130 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20131 if test "${ac_cv_type_long_long+set}" = set; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 else
20134 cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h. */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20140 $ac_includes_default
20141 typedef long long ac__type_new_;
20143 main ()
20145 if ((ac__type_new_ *) 0)
20146 return 0;
20147 if (sizeof (ac__type_new_))
20148 return 0;
20150 return 0;
20152 _ACEOF
20153 rm -f conftest.$ac_objext
20154 if { (ac_try="$ac_compile"
20155 case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20158 esac
20159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160 (eval "$ac_compile") 2>conftest.er1
20161 ac_status=$?
20162 grep -v '^ *+' conftest.er1 >conftest.err
20163 rm -f conftest.er1
20164 cat conftest.err >&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); } &&
20167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20168 { (case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20171 esac
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_try") 2>&5
20174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; } &&
20177 { ac_try='test -s conftest.$ac_objext'
20178 { (case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181 esac
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_try") 2>&5
20184 ac_status=$?
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; }; then
20187 ac_cv_type_long_long=yes
20188 else
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192 ac_cv_type_long_long=no
20195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20197 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20198 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20199 if test $ac_cv_type_long_long = yes; then
20201 cat >>confdefs.h <<_ACEOF
20202 #define HAVE_LONG_LONG 1
20203 _ACEOF
20207 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
20208 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
20209 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212 cat >conftest.$ac_ext <<_ACEOF
20213 /* confdefs.h. */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 $ac_includes_default
20219 typedef fsblkcnt_t ac__type_new_;
20221 main ()
20223 if ((ac__type_new_ *) 0)
20224 return 0;
20225 if (sizeof (ac__type_new_))
20226 return 0;
20228 return 0;
20230 _ACEOF
20231 rm -f conftest.$ac_objext
20232 if { (ac_try="$ac_compile"
20233 case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20236 esac
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_compile") 2>conftest.er1
20239 ac_status=$?
20240 grep -v '^ *+' conftest.er1 >conftest.err
20241 rm -f conftest.er1
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
20245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20246 { (case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_try") 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; } &&
20255 { ac_try='test -s conftest.$ac_objext'
20256 { (case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_try") 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_cv_type_fsblkcnt_t=yes
20266 else
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ac_cv_type_fsblkcnt_t=no
20273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20275 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
20276 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
20277 if test $ac_cv_type_fsblkcnt_t = yes; then
20279 cat >>confdefs.h <<_ACEOF
20280 #define HAVE_FSBLKCNT_T 1
20281 _ACEOF
20285 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
20286 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
20287 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290 cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h. */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 $ac_includes_default
20297 typedef fsfilcnt_t ac__type_new_;
20299 main ()
20301 if ((ac__type_new_ *) 0)
20302 return 0;
20303 if (sizeof (ac__type_new_))
20304 return 0;
20306 return 0;
20308 _ACEOF
20309 rm -f conftest.$ac_objext
20310 if { (ac_try="$ac_compile"
20311 case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20314 esac
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316 (eval "$ac_compile") 2>conftest.er1
20317 ac_status=$?
20318 grep -v '^ *+' conftest.er1 >conftest.err
20319 rm -f conftest.er1
20320 cat conftest.err >&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20324 { (case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_try") 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; } &&
20333 { ac_try='test -s conftest.$ac_objext'
20334 { (case "(($ac_try" in
20335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336 *) ac_try_echo=$ac_try;;
20337 esac
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339 (eval "$ac_try") 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
20343 ac_cv_type_fsfilcnt_t=yes
20344 else
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_cv_type_fsfilcnt_t=no
20351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20353 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
20354 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
20355 if test $ac_cv_type_fsfilcnt_t = yes; then
20357 cat >>confdefs.h <<_ACEOF
20358 #define HAVE_FSFILCNT_T 1
20359 _ACEOF
20364 { echo "$as_me:$LINENO: checking for sigset_t" >&5
20365 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
20366 if test "${ac_cv_type_sigset_t+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 else
20369 cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h. */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20375 #include <signal.h>
20377 typedef sigset_t ac__type_new_;
20379 main ()
20381 if ((ac__type_new_ *) 0)
20382 return 0;
20383 if (sizeof (ac__type_new_))
20384 return 0;
20386 return 0;
20388 _ACEOF
20389 rm -f conftest.$ac_objext
20390 if { (ac_try="$ac_compile"
20391 case "(($ac_try" in
20392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393 *) ac_try_echo=$ac_try;;
20394 esac
20395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396 (eval "$ac_compile") 2>conftest.er1
20397 ac_status=$?
20398 grep -v '^ *+' conftest.er1 >conftest.err
20399 rm -f conftest.er1
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } &&
20403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20404 { (case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20407 esac
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_try") 2>&5
20410 ac_status=$?
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; } &&
20413 { ac_try='test -s conftest.$ac_objext'
20414 { (case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20417 esac
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_try") 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20423 ac_cv_type_sigset_t=yes
20424 else
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ac_cv_type_sigset_t=no
20431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20433 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
20434 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
20435 if test $ac_cv_type_sigset_t = yes; then
20437 cat >>confdefs.h <<_ACEOF
20438 #define HAVE_SIGSET_T 1
20439 _ACEOF
20444 { echo "$as_me:$LINENO: checking for request_sense" >&5
20445 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
20446 if test "${ac_cv_type_request_sense+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449 cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h. */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20455 #include <linux/cdrom.h>
20457 typedef request_sense ac__type_new_;
20459 main ()
20461 if ((ac__type_new_ *) 0)
20462 return 0;
20463 if (sizeof (ac__type_new_))
20464 return 0;
20466 return 0;
20468 _ACEOF
20469 rm -f conftest.$ac_objext
20470 if { (ac_try="$ac_compile"
20471 case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20474 esac
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_compile") 2>conftest.er1
20477 ac_status=$?
20478 grep -v '^ *+' conftest.er1 >conftest.err
20479 rm -f conftest.er1
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } &&
20483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20484 { (case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20487 esac
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_try") 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } &&
20493 { ac_try='test -s conftest.$ac_objext'
20494 { (case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_try") 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
20503 ac_cv_type_request_sense=yes
20504 else
20505 echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20508 ac_cv_type_request_sense=no
20511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
20514 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
20515 if test $ac_cv_type_request_sense = yes; then
20517 cat >>confdefs.h <<_ACEOF
20518 #define HAVE_REQUEST_SENSE 1
20519 _ACEOF
20525 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
20526 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
20527 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 #ifdef HAVE_LINUX_INPUT_H
20537 #include <linux/input.h>
20538 #endif
20541 main ()
20543 static struct ff_effect ac_aggr;
20544 if (ac_aggr.direction)
20545 return 0;
20547 return 0;
20549 _ACEOF
20550 rm -f conftest.$ac_objext
20551 if { (ac_try="$ac_compile"
20552 case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555 esac
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_compile") 2>conftest.er1
20558 ac_status=$?
20559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } &&
20564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20565 { (case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20568 esac
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_try") 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; } &&
20574 { ac_try='test -s conftest.$ac_objext'
20575 { (case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20578 esac
20579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_try") 2>&5
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 ac_cv_member_struct_ff_effect_direction=yes
20585 else
20586 echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20589 cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h. */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 #ifdef HAVE_LINUX_INPUT_H
20596 #include <linux/input.h>
20597 #endif
20600 main ()
20602 static struct ff_effect ac_aggr;
20603 if (sizeof ac_aggr.direction)
20604 return 0;
20606 return 0;
20608 _ACEOF
20609 rm -f conftest.$ac_objext
20610 if { (ac_try="$ac_compile"
20611 case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20614 esac
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_compile") 2>conftest.er1
20617 ac_status=$?
20618 grep -v '^ *+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
20623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest.$ac_objext'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 ac_cv_member_struct_ff_effect_direction=yes
20644 else
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 ac_cv_member_struct_ff_effect_direction=no
20651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20656 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20657 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
20658 if test $ac_cv_member_struct_ff_effect_direction = yes; then
20660 cat >>confdefs.h <<_ACEOF
20661 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20662 _ACEOF
20668 { echo "$as_me:$LINENO: checking for sigaddset" >&5
20669 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
20670 if test "${wine_cv_have_sigaddset+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672 else
20673 cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h. */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 #include <signal.h>
20681 main ()
20683 sigset_t set; sigaddset(&set,SIGTERM);
20685 return 0;
20687 _ACEOF
20688 rm -f conftest.$ac_objext conftest$ac_exeext
20689 if { (ac_try="$ac_link"
20690 case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20693 esac
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_link") 2>conftest.er1
20696 ac_status=$?
20697 grep -v '^ *+' conftest.er1 >conftest.err
20698 rm -f conftest.er1
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20703 { (case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_try") 2>&5
20709 ac_status=$?
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; } &&
20712 { ac_try='test -s conftest$ac_exeext'
20713 { (case "(($ac_try" in
20714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715 *) ac_try_echo=$ac_try;;
20716 esac
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_try") 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 wine_cv_have_sigaddset=yes
20723 else
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 wine_cv_have_sigaddset=no
20730 rm -f core conftest.err conftest.$ac_objext \
20731 conftest$ac_exeext conftest.$ac_ext
20733 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20734 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
20735 if test "$wine_cv_have_sigaddset" = "yes"
20736 then
20738 cat >>confdefs.h <<\_ACEOF
20739 #define HAVE_SIGADDSET 1
20740 _ACEOF
20745 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20746 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
20747 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 else
20750 cat >conftest.$ac_ext <<_ACEOF
20751 /* confdefs.h. */
20752 _ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20757 #include <netdb.h>
20760 main ()
20763 char *name=NULL;
20764 struct hostent he;
20765 struct hostent *result;
20766 char *buf=NULL;
20767 int bufsize=0;
20768 int res,errnr;
20769 char *addr=NULL;
20770 int addrlen=0;
20771 int addrtype=0;
20772 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20773 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
20776 return 0;
20778 _ACEOF
20779 rm -f conftest.$ac_objext conftest$ac_exeext
20780 if { (ac_try="$ac_link"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20784 esac
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_link") 2>conftest.er1
20787 ac_status=$?
20788 grep -v '^ *+' conftest.er1 >conftest.err
20789 rm -f conftest.er1
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } &&
20793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20794 { (case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20797 esac
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_try") 2>&5
20800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
20803 { ac_try='test -s conftest$ac_exeext'
20804 { (case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20807 esac
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_try") 2>&5
20810 ac_status=$?
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; }; then
20813 wine_cv_linux_gethostbyname_r_6=yes
20814 else
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 wine_cv_linux_gethostbyname_r_6=no
20822 rm -f core conftest.err conftest.$ac_objext \
20823 conftest$ac_exeext conftest.$ac_ext
20826 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20827 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
20828 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20829 then
20831 cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
20833 _ACEOF
20837 if test "$ac_cv_header_linux_joystick_h" = "yes"
20838 then
20839 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20840 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
20841 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844 cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h. */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20851 #include <sys/ioctl.h>
20852 #include <linux/joystick.h>
20854 struct js_event blub;
20855 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20856 #error "no 2.2 header"
20857 #endif
20860 main ()
20862 /*empty*/
20864 return 0;
20866 _ACEOF
20867 rm -f conftest.$ac_objext
20868 if { (ac_try="$ac_compile"
20869 case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20872 esac
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_compile") 2>conftest.er1
20875 ac_status=$?
20876 grep -v '^ *+' conftest.er1 >conftest.err
20877 rm -f conftest.er1
20878 cat conftest.err >&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); } &&
20881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20882 { (case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20885 esac
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_try") 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; } &&
20891 { ac_try='test -s conftest.$ac_objext'
20892 { (case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20895 esac
20896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_try") 2>&5
20898 ac_status=$?
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; }; then
20901 wine_cv_linux_joystick_22_api=yes
20902 else
20903 echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20906 wine_cv_linux_joystick_22_api=no
20909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20913 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
20914 if test "$wine_cv_linux_joystick_22_api" = "yes"
20915 then
20917 cat >>confdefs.h <<\_ACEOF
20918 #define HAVE_LINUX_22_JOYSTICK_API 1
20919 _ACEOF
20925 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20926 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
20927 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 else
20930 cat >conftest.$ac_ext <<_ACEOF
20931 /* confdefs.h. */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20936 #include <sys/types.h>
20937 #ifdef HAVE_SYS_PARAM_H
20938 # include <sys/param.h>
20939 #endif
20940 #ifdef HAVE_SYS_MOUNT_H
20941 # include <sys/mount.h>
20942 #endif
20943 #ifdef HAVE_SYS_VFS_H
20944 # include <sys/vfs.h>
20945 #endif
20946 #ifdef HAVE_SYS_STATFS_H
20947 # include <sys/statfs.h>
20948 #endif
20951 main ()
20953 static struct statfs ac_aggr;
20954 if (ac_aggr.f_bfree)
20955 return 0;
20957 return 0;
20959 _ACEOF
20960 rm -f conftest.$ac_objext
20961 if { (ac_try="$ac_compile"
20962 case "(($ac_try" in
20963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964 *) ac_try_echo=$ac_try;;
20965 esac
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967 (eval "$ac_compile") 2>conftest.er1
20968 ac_status=$?
20969 grep -v '^ *+' conftest.er1 >conftest.err
20970 rm -f conftest.er1
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20975 { (case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20978 esac
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_try") 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; } &&
20984 { ac_try='test -s conftest.$ac_objext'
20985 { (case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988 esac
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_try") 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; }; then
20994 ac_cv_member_struct_statfs_f_bfree=yes
20995 else
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20999 cat >conftest.$ac_ext <<_ACEOF
21000 /* confdefs.h. */
21001 _ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21005 #include <sys/types.h>
21006 #ifdef HAVE_SYS_PARAM_H
21007 # include <sys/param.h>
21008 #endif
21009 #ifdef HAVE_SYS_MOUNT_H
21010 # include <sys/mount.h>
21011 #endif
21012 #ifdef HAVE_SYS_VFS_H
21013 # include <sys/vfs.h>
21014 #endif
21015 #ifdef HAVE_SYS_STATFS_H
21016 # include <sys/statfs.h>
21017 #endif
21020 main ()
21022 static struct statfs ac_aggr;
21023 if (sizeof ac_aggr.f_bfree)
21024 return 0;
21026 return 0;
21028 _ACEOF
21029 rm -f conftest.$ac_objext
21030 if { (ac_try="$ac_compile"
21031 case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21034 esac
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036 (eval "$ac_compile") 2>conftest.er1
21037 ac_status=$?
21038 grep -v '^ *+' conftest.er1 >conftest.err
21039 rm -f conftest.er1
21040 cat conftest.err >&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } &&
21043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21044 { (case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_try") 2>&5
21050 ac_status=$?
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; } &&
21053 { ac_try='test -s conftest.$ac_objext'
21054 { (case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057 esac
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_try") 2>&5
21060 ac_status=$?
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; }; then
21063 ac_cv_member_struct_statfs_f_bfree=yes
21064 else
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21068 ac_cv_member_struct_statfs_f_bfree=no
21071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21076 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
21077 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
21078 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
21080 cat >>confdefs.h <<_ACEOF
21081 #define HAVE_STRUCT_STATFS_F_BFREE 1
21082 _ACEOF
21086 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
21087 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
21088 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
21089 echo $ECHO_N "(cached) $ECHO_C" >&6
21090 else
21091 cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h. */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 #include <sys/types.h>
21098 #ifdef HAVE_SYS_PARAM_H
21099 # include <sys/param.h>
21100 #endif
21101 #ifdef HAVE_SYS_MOUNT_H
21102 # include <sys/mount.h>
21103 #endif
21104 #ifdef HAVE_SYS_VFS_H
21105 # include <sys/vfs.h>
21106 #endif
21107 #ifdef HAVE_SYS_STATFS_H
21108 # include <sys/statfs.h>
21109 #endif
21112 main ()
21114 static struct statfs ac_aggr;
21115 if (ac_aggr.f_bavail)
21116 return 0;
21118 return 0;
21120 _ACEOF
21121 rm -f conftest.$ac_objext
21122 if { (ac_try="$ac_compile"
21123 case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_compile") 2>conftest.er1
21129 ac_status=$?
21130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } &&
21135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21136 { (case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21139 esac
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_try") 2>&5
21142 ac_status=$?
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); }; } &&
21145 { ac_try='test -s conftest.$ac_objext'
21146 { (case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21149 esac
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151 (eval "$ac_try") 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_cv_member_struct_statfs_f_bavail=yes
21156 else
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21160 cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h. */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 #include <sys/types.h>
21167 #ifdef HAVE_SYS_PARAM_H
21168 # include <sys/param.h>
21169 #endif
21170 #ifdef HAVE_SYS_MOUNT_H
21171 # include <sys/mount.h>
21172 #endif
21173 #ifdef HAVE_SYS_VFS_H
21174 # include <sys/vfs.h>
21175 #endif
21176 #ifdef HAVE_SYS_STATFS_H
21177 # include <sys/statfs.h>
21178 #endif
21181 main ()
21183 static struct statfs ac_aggr;
21184 if (sizeof ac_aggr.f_bavail)
21185 return 0;
21187 return 0;
21189 _ACEOF
21190 rm -f conftest.$ac_objext
21191 if { (ac_try="$ac_compile"
21192 case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21195 esac
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_compile") 2>conftest.er1
21198 ac_status=$?
21199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } &&
21204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21205 { (case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21208 esac
21209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210 (eval "$ac_try") 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; } &&
21214 { ac_try='test -s conftest.$ac_objext'
21215 { (case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21218 esac
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_try") 2>&5
21221 ac_status=$?
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); }; }; then
21224 ac_cv_member_struct_statfs_f_bavail=yes
21225 else
21226 echo "$as_me: failed program was:" >&5
21227 sed 's/^/| /' conftest.$ac_ext >&5
21229 ac_cv_member_struct_statfs_f_bavail=no
21232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
21238 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
21239 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
21241 cat >>confdefs.h <<_ACEOF
21242 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
21243 _ACEOF
21247 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
21248 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
21249 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
21250 echo $ECHO_N "(cached) $ECHO_C" >&6
21251 else
21252 cat >conftest.$ac_ext <<_ACEOF
21253 /* confdefs.h. */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21258 #include <sys/types.h>
21259 #ifdef HAVE_SYS_PARAM_H
21260 # include <sys/param.h>
21261 #endif
21262 #ifdef HAVE_SYS_MOUNT_H
21263 # include <sys/mount.h>
21264 #endif
21265 #ifdef HAVE_SYS_VFS_H
21266 # include <sys/vfs.h>
21267 #endif
21268 #ifdef HAVE_SYS_STATFS_H
21269 # include <sys/statfs.h>
21270 #endif
21273 main ()
21275 static struct statfs ac_aggr;
21276 if (ac_aggr.f_frsize)
21277 return 0;
21279 return 0;
21281 _ACEOF
21282 rm -f conftest.$ac_objext
21283 if { (ac_try="$ac_compile"
21284 case "(($ac_try" in
21285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286 *) ac_try_echo=$ac_try;;
21287 esac
21288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289 (eval "$ac_compile") 2>conftest.er1
21290 ac_status=$?
21291 grep -v '^ *+' conftest.er1 >conftest.err
21292 rm -f conftest.er1
21293 cat conftest.err >&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
21296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21297 { (case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21300 esac
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_try") 2>&5
21303 ac_status=$?
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; } &&
21306 { ac_try='test -s conftest.$ac_objext'
21307 { (case "(($ac_try" in
21308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309 *) ac_try_echo=$ac_try;;
21310 esac
21311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312 (eval "$ac_try") 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; }; then
21316 ac_cv_member_struct_statfs_f_frsize=yes
21317 else
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21321 cat >conftest.$ac_ext <<_ACEOF
21322 /* confdefs.h. */
21323 _ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21327 #include <sys/types.h>
21328 #ifdef HAVE_SYS_PARAM_H
21329 # include <sys/param.h>
21330 #endif
21331 #ifdef HAVE_SYS_MOUNT_H
21332 # include <sys/mount.h>
21333 #endif
21334 #ifdef HAVE_SYS_VFS_H
21335 # include <sys/vfs.h>
21336 #endif
21337 #ifdef HAVE_SYS_STATFS_H
21338 # include <sys/statfs.h>
21339 #endif
21342 main ()
21344 static struct statfs ac_aggr;
21345 if (sizeof ac_aggr.f_frsize)
21346 return 0;
21348 return 0;
21350 _ACEOF
21351 rm -f conftest.$ac_objext
21352 if { (ac_try="$ac_compile"
21353 case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_compile") 2>conftest.er1
21359 ac_status=$?
21360 grep -v '^ *+' conftest.er1 >conftest.err
21361 rm -f conftest.er1
21362 cat conftest.err >&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } &&
21365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21366 { (case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21369 esac
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371 (eval "$ac_try") 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; } &&
21375 { ac_try='test -s conftest.$ac_objext'
21376 { (case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21379 esac
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_try") 2>&5
21382 ac_status=$?
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; }; then
21385 ac_cv_member_struct_statfs_f_frsize=yes
21386 else
21387 echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21390 ac_cv_member_struct_statfs_f_frsize=no
21393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
21399 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
21400 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
21402 cat >>confdefs.h <<_ACEOF
21403 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
21404 _ACEOF
21408 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
21409 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
21410 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413 cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h. */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21419 #include <sys/types.h>
21420 #ifdef HAVE_SYS_PARAM_H
21421 # include <sys/param.h>
21422 #endif
21423 #ifdef HAVE_SYS_MOUNT_H
21424 # include <sys/mount.h>
21425 #endif
21426 #ifdef HAVE_SYS_VFS_H
21427 # include <sys/vfs.h>
21428 #endif
21429 #ifdef HAVE_SYS_STATFS_H
21430 # include <sys/statfs.h>
21431 #endif
21434 main ()
21436 static struct statfs ac_aggr;
21437 if (ac_aggr.f_ffree)
21438 return 0;
21440 return 0;
21442 _ACEOF
21443 rm -f conftest.$ac_objext
21444 if { (ac_try="$ac_compile"
21445 case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21448 esac
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_compile") 2>conftest.er1
21451 ac_status=$?
21452 grep -v '^ *+' conftest.er1 >conftest.err
21453 rm -f conftest.er1
21454 cat conftest.err >&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } &&
21457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21458 { (case "(($ac_try" in
21459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21460 *) ac_try_echo=$ac_try;;
21461 esac
21462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21463 (eval "$ac_try") 2>&5
21464 ac_status=$?
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; } &&
21467 { ac_try='test -s conftest.$ac_objext'
21468 { (case "(($ac_try" in
21469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470 *) ac_try_echo=$ac_try;;
21471 esac
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473 (eval "$ac_try") 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; }; then
21477 ac_cv_member_struct_statfs_f_ffree=yes
21478 else
21479 echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.$ac_ext >&5
21482 cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h. */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 #include <sys/types.h>
21489 #ifdef HAVE_SYS_PARAM_H
21490 # include <sys/param.h>
21491 #endif
21492 #ifdef HAVE_SYS_MOUNT_H
21493 # include <sys/mount.h>
21494 #endif
21495 #ifdef HAVE_SYS_VFS_H
21496 # include <sys/vfs.h>
21497 #endif
21498 #ifdef HAVE_SYS_STATFS_H
21499 # include <sys/statfs.h>
21500 #endif
21503 main ()
21505 static struct statfs ac_aggr;
21506 if (sizeof ac_aggr.f_ffree)
21507 return 0;
21509 return 0;
21511 _ACEOF
21512 rm -f conftest.$ac_objext
21513 if { (ac_try="$ac_compile"
21514 case "(($ac_try" in
21515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516 *) ac_try_echo=$ac_try;;
21517 esac
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_compile") 2>conftest.er1
21520 ac_status=$?
21521 grep -v '^ *+' conftest.er1 >conftest.err
21522 rm -f conftest.er1
21523 cat conftest.err >&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } &&
21526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21527 { (case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21530 esac
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_try") 2>&5
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; } &&
21536 { ac_try='test -s conftest.$ac_objext'
21537 { (case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_try") 2>&5
21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 ac_cv_member_struct_statfs_f_ffree=yes
21547 else
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21551 ac_cv_member_struct_statfs_f_ffree=no
21554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21559 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21560 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
21561 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21563 cat >>confdefs.h <<_ACEOF
21564 #define HAVE_STRUCT_STATFS_F_FFREE 1
21565 _ACEOF
21569 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21570 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
21571 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21573 else
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h. */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 #include <sys/types.h>
21581 #ifdef HAVE_SYS_PARAM_H
21582 # include <sys/param.h>
21583 #endif
21584 #ifdef HAVE_SYS_MOUNT_H
21585 # include <sys/mount.h>
21586 #endif
21587 #ifdef HAVE_SYS_VFS_H
21588 # include <sys/vfs.h>
21589 #endif
21590 #ifdef HAVE_SYS_STATFS_H
21591 # include <sys/statfs.h>
21592 #endif
21595 main ()
21597 static struct statfs ac_aggr;
21598 if (ac_aggr.f_favail)
21599 return 0;
21601 return 0;
21603 _ACEOF
21604 rm -f conftest.$ac_objext
21605 if { (ac_try="$ac_compile"
21606 case "(($ac_try" in
21607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608 *) ac_try_echo=$ac_try;;
21609 esac
21610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21611 (eval "$ac_compile") 2>conftest.er1
21612 ac_status=$?
21613 grep -v '^ *+' conftest.er1 >conftest.err
21614 rm -f conftest.er1
21615 cat conftest.err >&5
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } &&
21618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21619 { (case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_try") 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; } &&
21628 { ac_try='test -s conftest.$ac_objext'
21629 { (case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21632 esac
21633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_try") 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; }; then
21638 ac_cv_member_struct_statfs_f_favail=yes
21639 else
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21643 cat >conftest.$ac_ext <<_ACEOF
21644 /* confdefs.h. */
21645 _ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 #include <sys/types.h>
21650 #ifdef HAVE_SYS_PARAM_H
21651 # include <sys/param.h>
21652 #endif
21653 #ifdef HAVE_SYS_MOUNT_H
21654 # include <sys/mount.h>
21655 #endif
21656 #ifdef HAVE_SYS_VFS_H
21657 # include <sys/vfs.h>
21658 #endif
21659 #ifdef HAVE_SYS_STATFS_H
21660 # include <sys/statfs.h>
21661 #endif
21664 main ()
21666 static struct statfs ac_aggr;
21667 if (sizeof ac_aggr.f_favail)
21668 return 0;
21670 return 0;
21672 _ACEOF
21673 rm -f conftest.$ac_objext
21674 if { (ac_try="$ac_compile"
21675 case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21678 esac
21679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680 (eval "$ac_compile") 2>conftest.er1
21681 ac_status=$?
21682 grep -v '^ *+' conftest.er1 >conftest.err
21683 rm -f conftest.er1
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } &&
21687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21688 { (case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21691 esac
21692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693 (eval "$ac_try") 2>&5
21694 ac_status=$?
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; } &&
21697 { ac_try='test -s conftest.$ac_objext'
21698 { (case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21701 esac
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_try") 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; }; then
21707 ac_cv_member_struct_statfs_f_favail=yes
21708 else
21709 echo "$as_me: failed program was:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21712 ac_cv_member_struct_statfs_f_favail=no
21715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21720 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21721 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
21722 if test $ac_cv_member_struct_statfs_f_favail = yes; then
21724 cat >>confdefs.h <<_ACEOF
21725 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
21726 _ACEOF
21730 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21731 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
21732 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21733 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 else
21735 cat >conftest.$ac_ext <<_ACEOF
21736 /* confdefs.h. */
21737 _ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h. */
21741 #include <sys/types.h>
21742 #ifdef HAVE_SYS_PARAM_H
21743 # include <sys/param.h>
21744 #endif
21745 #ifdef HAVE_SYS_MOUNT_H
21746 # include <sys/mount.h>
21747 #endif
21748 #ifdef HAVE_SYS_VFS_H
21749 # include <sys/vfs.h>
21750 #endif
21751 #ifdef HAVE_SYS_STATFS_H
21752 # include <sys/statfs.h>
21753 #endif
21756 main ()
21758 static struct statfs ac_aggr;
21759 if (ac_aggr.f_namelen)
21760 return 0;
21762 return 0;
21764 _ACEOF
21765 rm -f conftest.$ac_objext
21766 if { (ac_try="$ac_compile"
21767 case "(($ac_try" in
21768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769 *) ac_try_echo=$ac_try;;
21770 esac
21771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21772 (eval "$ac_compile") 2>conftest.er1
21773 ac_status=$?
21774 grep -v '^ *+' conftest.er1 >conftest.err
21775 rm -f conftest.er1
21776 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } &&
21779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21780 { (case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21783 esac
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_try") 2>&5
21786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; } &&
21789 { ac_try='test -s conftest.$ac_objext'
21790 { (case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21793 esac
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_try") 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_member_struct_statfs_f_namelen=yes
21800 else
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21804 cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h. */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21810 #include <sys/types.h>
21811 #ifdef HAVE_SYS_PARAM_H
21812 # include <sys/param.h>
21813 #endif
21814 #ifdef HAVE_SYS_MOUNT_H
21815 # include <sys/mount.h>
21816 #endif
21817 #ifdef HAVE_SYS_VFS_H
21818 # include <sys/vfs.h>
21819 #endif
21820 #ifdef HAVE_SYS_STATFS_H
21821 # include <sys/statfs.h>
21822 #endif
21825 main ()
21827 static struct statfs ac_aggr;
21828 if (sizeof ac_aggr.f_namelen)
21829 return 0;
21831 return 0;
21833 _ACEOF
21834 rm -f conftest.$ac_objext
21835 if { (ac_try="$ac_compile"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21839 esac
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_compile") 2>conftest.er1
21842 ac_status=$?
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } &&
21848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21849 { (case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21852 esac
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_try") 2>&5
21855 ac_status=$?
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); }; } &&
21858 { ac_try='test -s conftest.$ac_objext'
21859 { (case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_try") 2>&5
21865 ac_status=$?
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); }; }; then
21868 ac_cv_member_struct_statfs_f_namelen=yes
21869 else
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21873 ac_cv_member_struct_statfs_f_namelen=no
21876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21882 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
21883 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21885 cat >>confdefs.h <<_ACEOF
21886 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
21887 _ACEOF
21893 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21894 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
21895 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21897 else
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h. */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 #ifdef HAVE_SYS_STATVFS_H
21905 #include <sys/statvfs.h>
21906 #endif
21909 main ()
21911 static struct statvfs ac_aggr;
21912 if (ac_aggr.f_blocks)
21913 return 0;
21915 return 0;
21917 _ACEOF
21918 rm -f conftest.$ac_objext
21919 if { (ac_try="$ac_compile"
21920 case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_compile") 2>conftest.er1
21926 ac_status=$?
21927 grep -v '^ *+' conftest.er1 >conftest.err
21928 rm -f conftest.er1
21929 cat conftest.err >&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } &&
21932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21933 { (case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_try") 2>&5
21939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; } &&
21942 { ac_try='test -s conftest.$ac_objext'
21943 { (case "(($ac_try" in
21944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945 *) ac_try_echo=$ac_try;;
21946 esac
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_try") 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952 ac_cv_member_struct_statvfs_f_blocks=yes
21953 else
21954 echo "$as_me: failed program was:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21957 cat >conftest.$ac_ext <<_ACEOF
21958 /* confdefs.h. */
21959 _ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h. */
21963 #ifdef HAVE_SYS_STATVFS_H
21964 #include <sys/statvfs.h>
21965 #endif
21968 main ()
21970 static struct statvfs ac_aggr;
21971 if (sizeof ac_aggr.f_blocks)
21972 return 0;
21974 return 0;
21976 _ACEOF
21977 rm -f conftest.$ac_objext
21978 if { (ac_try="$ac_compile"
21979 case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21982 esac
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_compile") 2>conftest.er1
21985 ac_status=$?
21986 grep -v '^ *+' conftest.er1 >conftest.err
21987 rm -f conftest.er1
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } &&
21991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21992 { (case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997 (eval "$ac_try") 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; } &&
22001 { ac_try='test -s conftest.$ac_objext'
22002 { (case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22005 esac
22006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007 (eval "$ac_try") 2>&5
22008 ac_status=$?
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; }; then
22011 ac_cv_member_struct_statvfs_f_blocks=yes
22012 else
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22016 ac_cv_member_struct_statvfs_f_blocks=no
22019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22024 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
22025 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
22026 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
22028 cat >>confdefs.h <<_ACEOF
22029 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
22030 _ACEOF
22036 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
22037 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
22038 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22040 else
22041 cat >conftest.$ac_ext <<_ACEOF
22042 /* confdefs.h. */
22043 _ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h. */
22047 #include <sys/types.h>
22048 #ifdef HAVE_SYS_SOCKET_H
22049 # include <sys/socket.h>
22050 #endif
22051 #ifdef HAVE_SYS_UN_H
22052 # include <sys/un.h>
22053 #endif
22056 main ()
22058 static struct msghdr ac_aggr;
22059 if (ac_aggr.msg_accrights)
22060 return 0;
22062 return 0;
22064 _ACEOF
22065 rm -f conftest.$ac_objext
22066 if { (ac_try="$ac_compile"
22067 case "(($ac_try" in
22068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069 *) ac_try_echo=$ac_try;;
22070 esac
22071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22072 (eval "$ac_compile") 2>conftest.er1
22073 ac_status=$?
22074 grep -v '^ *+' conftest.er1 >conftest.err
22075 rm -f conftest.er1
22076 cat conftest.err >&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } &&
22079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22080 { (case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22083 esac
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_try") 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; } &&
22089 { ac_try='test -s conftest.$ac_objext'
22090 { (case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22093 esac
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_try") 2>&5
22096 ac_status=$?
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; }; then
22099 ac_cv_member_struct_msghdr_msg_accrights=yes
22100 else
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22104 cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h. */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 #include <sys/types.h>
22111 #ifdef HAVE_SYS_SOCKET_H
22112 # include <sys/socket.h>
22113 #endif
22114 #ifdef HAVE_SYS_UN_H
22115 # include <sys/un.h>
22116 #endif
22119 main ()
22121 static struct msghdr ac_aggr;
22122 if (sizeof ac_aggr.msg_accrights)
22123 return 0;
22125 return 0;
22127 _ACEOF
22128 rm -f conftest.$ac_objext
22129 if { (ac_try="$ac_compile"
22130 case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22133 esac
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_compile") 2>conftest.er1
22136 ac_status=$?
22137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } &&
22142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22143 { (case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22146 esac
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_try") 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; } &&
22152 { ac_try='test -s conftest.$ac_objext'
22153 { (case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22156 esac
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158 (eval "$ac_try") 2>&5
22159 ac_status=$?
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
22162 ac_cv_member_struct_msghdr_msg_accrights=yes
22163 else
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 ac_cv_member_struct_msghdr_msg_accrights=no
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22175 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
22176 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
22177 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
22179 cat >>confdefs.h <<_ACEOF
22180 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
22181 _ACEOF
22185 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22186 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
22187 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22188 echo $ECHO_N "(cached) $ECHO_C" >&6
22189 else
22190 cat >conftest.$ac_ext <<_ACEOF
22191 /* confdefs.h. */
22192 _ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22196 #include <sys/types.h>
22197 #ifdef HAVE_SYS_SOCKET_H
22198 # include <sys/socket.h>
22199 #endif
22200 #ifdef HAVE_SYS_UN_H
22201 # include <sys/un.h>
22202 #endif
22205 main ()
22207 static struct sockaddr ac_aggr;
22208 if (ac_aggr.sa_len)
22209 return 0;
22211 return 0;
22213 _ACEOF
22214 rm -f conftest.$ac_objext
22215 if { (ac_try="$ac_compile"
22216 case "(($ac_try" in
22217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218 *) ac_try_echo=$ac_try;;
22219 esac
22220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22221 (eval "$ac_compile") 2>conftest.er1
22222 ac_status=$?
22223 grep -v '^ *+' conftest.er1 >conftest.err
22224 rm -f conftest.er1
22225 cat conftest.err >&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } &&
22228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22229 { (case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22232 esac
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234 (eval "$ac_try") 2>&5
22235 ac_status=$?
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); }; } &&
22238 { ac_try='test -s conftest.$ac_objext'
22239 { (case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_try") 2>&5
22245 ac_status=$?
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; }; then
22248 ac_cv_member_struct_sockaddr_sa_len=yes
22249 else
22250 echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22253 cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h. */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 #include <sys/types.h>
22260 #ifdef HAVE_SYS_SOCKET_H
22261 # include <sys/socket.h>
22262 #endif
22263 #ifdef HAVE_SYS_UN_H
22264 # include <sys/un.h>
22265 #endif
22268 main ()
22270 static struct sockaddr ac_aggr;
22271 if (sizeof ac_aggr.sa_len)
22272 return 0;
22274 return 0;
22276 _ACEOF
22277 rm -f conftest.$ac_objext
22278 if { (ac_try="$ac_compile"
22279 case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22282 esac
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284 (eval "$ac_compile") 2>conftest.er1
22285 ac_status=$?
22286 grep -v '^ *+' conftest.er1 >conftest.err
22287 rm -f conftest.er1
22288 cat conftest.err >&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } &&
22291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22292 { (case "(($ac_try" in
22293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294 *) ac_try_echo=$ac_try;;
22295 esac
22296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297 (eval "$ac_try") 2>&5
22298 ac_status=$?
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); }; } &&
22301 { ac_try='test -s conftest.$ac_objext'
22302 { (case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22305 esac
22306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_try") 2>&5
22308 ac_status=$?
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); }; }; then
22311 ac_cv_member_struct_sockaddr_sa_len=yes
22312 else
22313 echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22316 ac_cv_member_struct_sockaddr_sa_len=no
22319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22324 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22325 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22326 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22328 cat >>confdefs.h <<_ACEOF
22329 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22330 _ACEOF
22334 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
22335 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
22336 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
22337 echo $ECHO_N "(cached) $ECHO_C" >&6
22338 else
22339 cat >conftest.$ac_ext <<_ACEOF
22340 /* confdefs.h. */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h. */
22345 #include <sys/types.h>
22346 #ifdef HAVE_SYS_SOCKET_H
22347 # include <sys/socket.h>
22348 #endif
22349 #ifdef HAVE_SYS_UN_H
22350 # include <sys/un.h>
22351 #endif
22354 main ()
22356 static struct sockaddr_un ac_aggr;
22357 if (ac_aggr.sun_len)
22358 return 0;
22360 return 0;
22362 _ACEOF
22363 rm -f conftest.$ac_objext
22364 if { (ac_try="$ac_compile"
22365 case "(($ac_try" in
22366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367 *) ac_try_echo=$ac_try;;
22368 esac
22369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370 (eval "$ac_compile") 2>conftest.er1
22371 ac_status=$?
22372 grep -v '^ *+' conftest.er1 >conftest.err
22373 rm -f conftest.er1
22374 cat conftest.err >&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } &&
22377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22378 { (case "(($ac_try" in
22379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380 *) ac_try_echo=$ac_try;;
22381 esac
22382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22383 (eval "$ac_try") 2>&5
22384 ac_status=$?
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; } &&
22387 { ac_try='test -s conftest.$ac_objext'
22388 { (case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22391 esac
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_try") 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; }; then
22397 ac_cv_member_struct_sockaddr_un_sun_len=yes
22398 else
22399 echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22402 cat >conftest.$ac_ext <<_ACEOF
22403 /* confdefs.h. */
22404 _ACEOF
22405 cat confdefs.h >>conftest.$ac_ext
22406 cat >>conftest.$ac_ext <<_ACEOF
22407 /* end confdefs.h. */
22408 #include <sys/types.h>
22409 #ifdef HAVE_SYS_SOCKET_H
22410 # include <sys/socket.h>
22411 #endif
22412 #ifdef HAVE_SYS_UN_H
22413 # include <sys/un.h>
22414 #endif
22417 main ()
22419 static struct sockaddr_un ac_aggr;
22420 if (sizeof ac_aggr.sun_len)
22421 return 0;
22423 return 0;
22425 _ACEOF
22426 rm -f conftest.$ac_objext
22427 if { (ac_try="$ac_compile"
22428 case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22431 esac
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_compile") 2>conftest.er1
22434 ac_status=$?
22435 grep -v '^ *+' conftest.er1 >conftest.err
22436 rm -f conftest.er1
22437 cat conftest.err >&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } &&
22440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22441 { (case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22444 esac
22445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446 (eval "$ac_try") 2>&5
22447 ac_status=$?
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; } &&
22450 { ac_try='test -s conftest.$ac_objext'
22451 { (case "(($ac_try" in
22452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22453 *) ac_try_echo=$ac_try;;
22454 esac
22455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22456 (eval "$ac_try") 2>&5
22457 ac_status=$?
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }; then
22460 ac_cv_member_struct_sockaddr_un_sun_len=yes
22461 else
22462 echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22465 ac_cv_member_struct_sockaddr_un_sun_len=no
22468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22473 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
22474 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
22475 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
22477 cat >>confdefs.h <<_ACEOF
22478 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22479 _ACEOF
22485 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
22486 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
22487 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
22488 echo $ECHO_N "(cached) $ECHO_C" >&6
22489 else
22490 cat >conftest.$ac_ext <<_ACEOF
22491 /* confdefs.h. */
22492 _ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22496 #include <sys/types.h>
22497 #ifdef HAVE_SCSI_SG_H
22498 #include <scsi/sg.h>
22499 #endif
22502 main ()
22504 static scsireq_t ac_aggr;
22505 if (ac_aggr.cmd)
22506 return 0;
22508 return 0;
22510 _ACEOF
22511 rm -f conftest.$ac_objext
22512 if { (ac_try="$ac_compile"
22513 case "(($ac_try" in
22514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515 *) ac_try_echo=$ac_try;;
22516 esac
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518 (eval "$ac_compile") 2>conftest.er1
22519 ac_status=$?
22520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } &&
22525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22526 { (case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22529 esac
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_try") 2>&5
22532 ac_status=$?
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; } &&
22535 { ac_try='test -s conftest.$ac_objext'
22536 { (case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22539 esac
22540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541 (eval "$ac_try") 2>&5
22542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; }; then
22545 ac_cv_member_scsireq_t_cmd=yes
22546 else
22547 echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22550 cat >conftest.$ac_ext <<_ACEOF
22551 /* confdefs.h. */
22552 _ACEOF
22553 cat confdefs.h >>conftest.$ac_ext
22554 cat >>conftest.$ac_ext <<_ACEOF
22555 /* end confdefs.h. */
22556 #include <sys/types.h>
22557 #ifdef HAVE_SCSI_SG_H
22558 #include <scsi/sg.h>
22559 #endif
22562 main ()
22564 static scsireq_t ac_aggr;
22565 if (sizeof ac_aggr.cmd)
22566 return 0;
22568 return 0;
22570 _ACEOF
22571 rm -f conftest.$ac_objext
22572 if { (ac_try="$ac_compile"
22573 case "(($ac_try" in
22574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22575 *) ac_try_echo=$ac_try;;
22576 esac
22577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22578 (eval "$ac_compile") 2>conftest.er1
22579 ac_status=$?
22580 grep -v '^ *+' conftest.er1 >conftest.err
22581 rm -f conftest.er1
22582 cat conftest.err >&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); } &&
22585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22586 { (case "(($ac_try" in
22587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22588 *) ac_try_echo=$ac_try;;
22589 esac
22590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22591 (eval "$ac_try") 2>&5
22592 ac_status=$?
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); }; } &&
22595 { ac_try='test -s conftest.$ac_objext'
22596 { (case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22599 esac
22600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22601 (eval "$ac_try") 2>&5
22602 ac_status=$?
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; }; then
22605 ac_cv_member_scsireq_t_cmd=yes
22606 else
22607 echo "$as_me: failed program was:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22610 ac_cv_member_scsireq_t_cmd=no
22613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22619 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
22620 if test $ac_cv_member_scsireq_t_cmd = yes; then
22622 cat >>confdefs.h <<_ACEOF
22623 #define HAVE_SCSIREQ_T_CMD 1
22624 _ACEOF
22628 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22629 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
22630 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22631 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 else
22633 cat >conftest.$ac_ext <<_ACEOF
22634 /* confdefs.h. */
22635 _ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h. */
22639 #include <sys/types.h>
22640 #ifdef HAVE_SCSI_SG_H
22641 #include <scsi/sg.h>
22642 #endif
22645 main ()
22647 static sg_io_hdr_t ac_aggr;
22648 if (ac_aggr.interface_id)
22649 return 0;
22651 return 0;
22653 _ACEOF
22654 rm -f conftest.$ac_objext
22655 if { (ac_try="$ac_compile"
22656 case "(($ac_try" in
22657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658 *) ac_try_echo=$ac_try;;
22659 esac
22660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22661 (eval "$ac_compile") 2>conftest.er1
22662 ac_status=$?
22663 grep -v '^ *+' conftest.er1 >conftest.err
22664 rm -f conftest.er1
22665 cat conftest.err >&5
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); } &&
22668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22669 { (case "(($ac_try" in
22670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671 *) ac_try_echo=$ac_try;;
22672 esac
22673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22674 (eval "$ac_try") 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; } &&
22678 { ac_try='test -s conftest.$ac_objext'
22679 { (case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22682 esac
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684 (eval "$ac_try") 2>&5
22685 ac_status=$?
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; }; then
22688 ac_cv_member_sg_io_hdr_t_interface_id=yes
22689 else
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22693 cat >conftest.$ac_ext <<_ACEOF
22694 /* confdefs.h. */
22695 _ACEOF
22696 cat confdefs.h >>conftest.$ac_ext
22697 cat >>conftest.$ac_ext <<_ACEOF
22698 /* end confdefs.h. */
22699 #include <sys/types.h>
22700 #ifdef HAVE_SCSI_SG_H
22701 #include <scsi/sg.h>
22702 #endif
22705 main ()
22707 static sg_io_hdr_t ac_aggr;
22708 if (sizeof ac_aggr.interface_id)
22709 return 0;
22711 return 0;
22713 _ACEOF
22714 rm -f conftest.$ac_objext
22715 if { (ac_try="$ac_compile"
22716 case "(($ac_try" in
22717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718 *) ac_try_echo=$ac_try;;
22719 esac
22720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721 (eval "$ac_compile") 2>conftest.er1
22722 ac_status=$?
22723 grep -v '^ *+' conftest.er1 >conftest.err
22724 rm -f conftest.er1
22725 cat conftest.err >&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); } &&
22728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22729 { (case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22732 esac
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734 (eval "$ac_try") 2>&5
22735 ac_status=$?
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; } &&
22738 { ac_try='test -s conftest.$ac_objext'
22739 { (case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22742 esac
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_try") 2>&5
22745 ac_status=$?
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; }; then
22748 ac_cv_member_sg_io_hdr_t_interface_id=yes
22749 else
22750 echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22753 ac_cv_member_sg_io_hdr_t_interface_id=no
22756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22761 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22762 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
22763 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22765 cat >>confdefs.h <<_ACEOF
22766 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22767 _ACEOF
22773 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22774 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
22775 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778 cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h. */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 #include <signal.h>
22787 main ()
22789 static siginfo_t ac_aggr;
22790 if (ac_aggr.si_fd)
22791 return 0;
22793 return 0;
22795 _ACEOF
22796 rm -f conftest.$ac_objext
22797 if { (ac_try="$ac_compile"
22798 case "(($ac_try" in
22799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800 *) ac_try_echo=$ac_try;;
22801 esac
22802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803 (eval "$ac_compile") 2>conftest.er1
22804 ac_status=$?
22805 grep -v '^ *+' conftest.er1 >conftest.err
22806 rm -f conftest.er1
22807 cat conftest.err >&5
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); } &&
22810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22811 { (case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22814 esac
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816 (eval "$ac_try") 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; } &&
22820 { ac_try='test -s conftest.$ac_objext'
22821 { (case "(($ac_try" in
22822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22824 esac
22825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_try") 2>&5
22827 ac_status=$?
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; }; then
22830 ac_cv_member_siginfo_t_si_fd=yes
22831 else
22832 echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22835 cat >conftest.$ac_ext <<_ACEOF
22836 /* confdefs.h. */
22837 _ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h. */
22841 #include <signal.h>
22844 main ()
22846 static siginfo_t ac_aggr;
22847 if (sizeof ac_aggr.si_fd)
22848 return 0;
22850 return 0;
22852 _ACEOF
22853 rm -f conftest.$ac_objext
22854 if { (ac_try="$ac_compile"
22855 case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22858 esac
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_compile") 2>conftest.er1
22861 ac_status=$?
22862 grep -v '^ *+' conftest.er1 >conftest.err
22863 rm -f conftest.er1
22864 cat conftest.err >&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } &&
22867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22868 { (case "(($ac_try" in
22869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22870 *) ac_try_echo=$ac_try;;
22871 esac
22872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22873 (eval "$ac_try") 2>&5
22874 ac_status=$?
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); }; } &&
22877 { ac_try='test -s conftest.$ac_objext'
22878 { (case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22881 esac
22882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22883 (eval "$ac_try") 2>&5
22884 ac_status=$?
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; }; then
22887 ac_cv_member_siginfo_t_si_fd=yes
22888 else
22889 echo "$as_me: failed program was:" >&5
22890 sed 's/^/| /' conftest.$ac_ext >&5
22892 ac_cv_member_siginfo_t_si_fd=no
22895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22901 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
22902 if test $ac_cv_member_siginfo_t_si_fd = yes; then
22904 cat >>confdefs.h <<_ACEOF
22905 #define HAVE_SIGINFO_T_SI_FD 1
22906 _ACEOF
22912 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22913 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
22914 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22915 echo $ECHO_N "(cached) $ECHO_C" >&6
22916 else
22917 cat >conftest.$ac_ext <<_ACEOF
22918 /* confdefs.h. */
22919 _ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h. */
22923 #include <sys/types.h>
22924 #ifdef HAVE_SYS_MTIO_H
22925 #include <sys/mtio.h>
22926 #endif
22929 main ()
22931 static struct mtget ac_aggr;
22932 if (ac_aggr.mt_blksiz)
22933 return 0;
22935 return 0;
22937 _ACEOF
22938 rm -f conftest.$ac_objext
22939 if { (ac_try="$ac_compile"
22940 case "(($ac_try" in
22941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942 *) ac_try_echo=$ac_try;;
22943 esac
22944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22945 (eval "$ac_compile") 2>conftest.er1
22946 ac_status=$?
22947 grep -v '^ *+' conftest.er1 >conftest.err
22948 rm -f conftest.er1
22949 cat conftest.err >&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } &&
22952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22953 { (case "(($ac_try" in
22954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22955 *) ac_try_echo=$ac_try;;
22956 esac
22957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22958 (eval "$ac_try") 2>&5
22959 ac_status=$?
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; } &&
22962 { ac_try='test -s conftest.$ac_objext'
22963 { (case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22966 esac
22967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22968 (eval "$ac_try") 2>&5
22969 ac_status=$?
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); }; }; then
22972 ac_cv_member_struct_mtget_mt_blksiz=yes
22973 else
22974 echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22977 cat >conftest.$ac_ext <<_ACEOF
22978 /* confdefs.h. */
22979 _ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22983 #include <sys/types.h>
22984 #ifdef HAVE_SYS_MTIO_H
22985 #include <sys/mtio.h>
22986 #endif
22989 main ()
22991 static struct mtget ac_aggr;
22992 if (sizeof ac_aggr.mt_blksiz)
22993 return 0;
22995 return 0;
22997 _ACEOF
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23003 esac
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_compile") 2>conftest.er1
23006 ac_status=$?
23007 grep -v '^ *+' conftest.er1 >conftest.err
23008 rm -f conftest.er1
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } &&
23012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23013 { (case "(($ac_try" in
23014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23015 *) ac_try_echo=$ac_try;;
23016 esac
23017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23018 (eval "$ac_try") 2>&5
23019 ac_status=$?
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); }; } &&
23022 { ac_try='test -s conftest.$ac_objext'
23023 { (case "(($ac_try" in
23024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23025 *) ac_try_echo=$ac_try;;
23026 esac
23027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23028 (eval "$ac_try") 2>&5
23029 ac_status=$?
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); }; }; then
23032 ac_cv_member_struct_mtget_mt_blksiz=yes
23033 else
23034 echo "$as_me: failed program was:" >&5
23035 sed 's/^/| /' conftest.$ac_ext >&5
23037 ac_cv_member_struct_mtget_mt_blksiz=no
23040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23045 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
23046 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
23047 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
23049 cat >>confdefs.h <<_ACEOF
23050 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
23051 _ACEOF
23055 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
23056 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
23057 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23059 else
23060 cat >conftest.$ac_ext <<_ACEOF
23061 /* confdefs.h. */
23062 _ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h. */
23066 #include <sys/types.h>
23067 #ifdef HAVE_SYS_MTIO_H
23068 #include <sys/mtio.h>
23069 #endif
23072 main ()
23074 static struct mtget ac_aggr;
23075 if (ac_aggr.mt_gstat)
23076 return 0;
23078 return 0;
23080 _ACEOF
23081 rm -f conftest.$ac_objext
23082 if { (ac_try="$ac_compile"
23083 case "(($ac_try" in
23084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085 *) ac_try_echo=$ac_try;;
23086 esac
23087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088 (eval "$ac_compile") 2>conftest.er1
23089 ac_status=$?
23090 grep -v '^ *+' conftest.er1 >conftest.err
23091 rm -f conftest.er1
23092 cat conftest.err >&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } &&
23095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23096 { (case "(($ac_try" in
23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23099 esac
23100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23101 (eval "$ac_try") 2>&5
23102 ac_status=$?
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); }; } &&
23105 { ac_try='test -s conftest.$ac_objext'
23106 { (case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23109 esac
23110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23111 (eval "$ac_try") 2>&5
23112 ac_status=$?
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; }; then
23115 ac_cv_member_struct_mtget_mt_gstat=yes
23116 else
23117 echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23120 cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h. */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h. */
23126 #include <sys/types.h>
23127 #ifdef HAVE_SYS_MTIO_H
23128 #include <sys/mtio.h>
23129 #endif
23132 main ()
23134 static struct mtget ac_aggr;
23135 if (sizeof ac_aggr.mt_gstat)
23136 return 0;
23138 return 0;
23140 _ACEOF
23141 rm -f conftest.$ac_objext
23142 if { (ac_try="$ac_compile"
23143 case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_compile") 2>conftest.er1
23149 ac_status=$?
23150 grep -v '^ *+' conftest.er1 >conftest.err
23151 rm -f conftest.er1
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } &&
23155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23156 { (case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23159 esac
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161 (eval "$ac_try") 2>&5
23162 ac_status=$?
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; } &&
23165 { ac_try='test -s conftest.$ac_objext'
23166 { (case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23169 esac
23170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171 (eval "$ac_try") 2>&5
23172 ac_status=$?
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); }; }; then
23175 ac_cv_member_struct_mtget_mt_gstat=yes
23176 else
23177 echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23180 ac_cv_member_struct_mtget_mt_gstat=no
23183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23188 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
23189 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
23190 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
23192 cat >>confdefs.h <<_ACEOF
23193 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
23194 _ACEOF
23198 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
23199 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
23200 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
23201 echo $ECHO_N "(cached) $ECHO_C" >&6
23202 else
23203 cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h. */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23209 #include <sys/types.h>
23210 #ifdef HAVE_SYS_MTIO_H
23211 #include <sys/mtio.h>
23212 #endif
23215 main ()
23217 static struct mtget ac_aggr;
23218 if (ac_aggr.mt_blkno)
23219 return 0;
23221 return 0;
23223 _ACEOF
23224 rm -f conftest.$ac_objext
23225 if { (ac_try="$ac_compile"
23226 case "(($ac_try" in
23227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23228 *) ac_try_echo=$ac_try;;
23229 esac
23230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23231 (eval "$ac_compile") 2>conftest.er1
23232 ac_status=$?
23233 grep -v '^ *+' conftest.er1 >conftest.err
23234 rm -f conftest.er1
23235 cat conftest.err >&5
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); } &&
23238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23239 { (case "(($ac_try" in
23240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23241 *) ac_try_echo=$ac_try;;
23242 esac
23243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23244 (eval "$ac_try") 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; } &&
23248 { ac_try='test -s conftest.$ac_objext'
23249 { (case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23252 esac
23253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23254 (eval "$ac_try") 2>&5
23255 ac_status=$?
23256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257 (exit $ac_status); }; }; then
23258 ac_cv_member_struct_mtget_mt_blkno=yes
23259 else
23260 echo "$as_me: failed program was:" >&5
23261 sed 's/^/| /' conftest.$ac_ext >&5
23263 cat >conftest.$ac_ext <<_ACEOF
23264 /* confdefs.h. */
23265 _ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h. */
23269 #include <sys/types.h>
23270 #ifdef HAVE_SYS_MTIO_H
23271 #include <sys/mtio.h>
23272 #endif
23275 main ()
23277 static struct mtget ac_aggr;
23278 if (sizeof ac_aggr.mt_blkno)
23279 return 0;
23281 return 0;
23283 _ACEOF
23284 rm -f conftest.$ac_objext
23285 if { (ac_try="$ac_compile"
23286 case "(($ac_try" in
23287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288 *) ac_try_echo=$ac_try;;
23289 esac
23290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23291 (eval "$ac_compile") 2>conftest.er1
23292 ac_status=$?
23293 grep -v '^ *+' conftest.er1 >conftest.err
23294 rm -f conftest.er1
23295 cat conftest.err >&5
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); } &&
23298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23299 { (case "(($ac_try" in
23300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301 *) ac_try_echo=$ac_try;;
23302 esac
23303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23304 (eval "$ac_try") 2>&5
23305 ac_status=$?
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; } &&
23308 { ac_try='test -s conftest.$ac_objext'
23309 { (case "(($ac_try" in
23310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311 *) ac_try_echo=$ac_try;;
23312 esac
23313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23314 (eval "$ac_try") 2>&5
23315 ac_status=$?
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); }; }; then
23318 ac_cv_member_struct_mtget_mt_blkno=yes
23319 else
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23323 ac_cv_member_struct_mtget_mt_blkno=no
23326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23331 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
23332 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
23333 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
23335 cat >>confdefs.h <<_ACEOF
23336 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
23337 _ACEOF
23343 { echo "$as_me:$LINENO: checking for struct option.name" >&5
23344 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
23345 if test "${ac_cv_member_struct_option_name+set}" = set; then
23346 echo $ECHO_N "(cached) $ECHO_C" >&6
23347 else
23348 cat >conftest.$ac_ext <<_ACEOF
23349 /* confdefs.h. */
23350 _ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23354 #ifdef HAVE_GETOPT_H
23355 #include <getopt.h>
23356 #endif
23359 main ()
23361 static struct option ac_aggr;
23362 if (ac_aggr.name)
23363 return 0;
23365 return 0;
23367 _ACEOF
23368 rm -f conftest.$ac_objext
23369 if { (ac_try="$ac_compile"
23370 case "(($ac_try" in
23371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23373 esac
23374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375 (eval "$ac_compile") 2>conftest.er1
23376 ac_status=$?
23377 grep -v '^ *+' conftest.er1 >conftest.err
23378 rm -f conftest.er1
23379 cat conftest.err >&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } &&
23382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23383 { (case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23386 esac
23387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388 (eval "$ac_try") 2>&5
23389 ac_status=$?
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); }; } &&
23392 { ac_try='test -s conftest.$ac_objext'
23393 { (case "(($ac_try" in
23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395 *) ac_try_echo=$ac_try;;
23396 esac
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398 (eval "$ac_try") 2>&5
23399 ac_status=$?
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; }; then
23402 ac_cv_member_struct_option_name=yes
23403 else
23404 echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 cat >conftest.$ac_ext <<_ACEOF
23408 /* confdefs.h. */
23409 _ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h. */
23413 #ifdef HAVE_GETOPT_H
23414 #include <getopt.h>
23415 #endif
23418 main ()
23420 static struct option ac_aggr;
23421 if (sizeof ac_aggr.name)
23422 return 0;
23424 return 0;
23426 _ACEOF
23427 rm -f conftest.$ac_objext
23428 if { (ac_try="$ac_compile"
23429 case "(($ac_try" in
23430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431 *) ac_try_echo=$ac_try;;
23432 esac
23433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23434 (eval "$ac_compile") 2>conftest.er1
23435 ac_status=$?
23436 grep -v '^ *+' conftest.er1 >conftest.err
23437 rm -f conftest.er1
23438 cat conftest.err >&5
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } &&
23441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23442 { (case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23445 esac
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447 (eval "$ac_try") 2>&5
23448 ac_status=$?
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; } &&
23451 { ac_try='test -s conftest.$ac_objext'
23452 { (case "(($ac_try" in
23453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23454 *) ac_try_echo=$ac_try;;
23455 esac
23456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23457 (eval "$ac_try") 2>&5
23458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; }; then
23461 ac_cv_member_struct_option_name=yes
23462 else
23463 echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 ac_cv_member_struct_option_name=no
23469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23474 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
23475 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
23476 if test $ac_cv_member_struct_option_name = yes; then
23478 cat >>confdefs.h <<_ACEOF
23479 #define HAVE_STRUCT_OPTION_NAME 1
23480 _ACEOF
23486 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23487 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23488 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23490 else
23491 cat >conftest.$ac_ext <<_ACEOF
23492 /* confdefs.h. */
23493 _ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 $ac_includes_default
23499 main ()
23501 static struct stat ac_aggr;
23502 if (ac_aggr.st_blocks)
23503 return 0;
23505 return 0;
23507 _ACEOF
23508 rm -f conftest.$ac_objext
23509 if { (ac_try="$ac_compile"
23510 case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23513 esac
23514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23515 (eval "$ac_compile") 2>conftest.er1
23516 ac_status=$?
23517 grep -v '^ *+' conftest.er1 >conftest.err
23518 rm -f conftest.er1
23519 cat conftest.err >&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } &&
23522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23523 { (case "(($ac_try" in
23524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525 *) ac_try_echo=$ac_try;;
23526 esac
23527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528 (eval "$ac_try") 2>&5
23529 ac_status=$?
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; } &&
23532 { ac_try='test -s conftest.$ac_objext'
23533 { (case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23536 esac
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538 (eval "$ac_try") 2>&5
23539 ac_status=$?
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; }; then
23542 ac_cv_member_struct_stat_st_blocks=yes
23543 else
23544 echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23547 cat >conftest.$ac_ext <<_ACEOF
23548 /* confdefs.h. */
23549 _ACEOF
23550 cat confdefs.h >>conftest.$ac_ext
23551 cat >>conftest.$ac_ext <<_ACEOF
23552 /* end confdefs.h. */
23553 $ac_includes_default
23555 main ()
23557 static struct stat ac_aggr;
23558 if (sizeof ac_aggr.st_blocks)
23559 return 0;
23561 return 0;
23563 _ACEOF
23564 rm -f conftest.$ac_objext
23565 if { (ac_try="$ac_compile"
23566 case "(($ac_try" in
23567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568 *) ac_try_echo=$ac_try;;
23569 esac
23570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23571 (eval "$ac_compile") 2>conftest.er1
23572 ac_status=$?
23573 grep -v '^ *+' conftest.er1 >conftest.err
23574 rm -f conftest.er1
23575 cat conftest.err >&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } &&
23578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23579 { (case "(($ac_try" in
23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581 *) ac_try_echo=$ac_try;;
23582 esac
23583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23584 (eval "$ac_try") 2>&5
23585 ac_status=$?
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); }; } &&
23588 { ac_try='test -s conftest.$ac_objext'
23589 { (case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23592 esac
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_try") 2>&5
23595 ac_status=$?
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); }; }; then
23598 ac_cv_member_struct_stat_st_blocks=yes
23599 else
23600 echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23603 ac_cv_member_struct_stat_st_blocks=no
23606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23611 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23612 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23613 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23615 cat >>confdefs.h <<_ACEOF
23616 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23617 _ACEOF
23623 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23624 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
23625 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
23627 else
23628 cat >conftest.$ac_ext <<_ACEOF
23629 /* confdefs.h. */
23630 _ACEOF
23631 cat confdefs.h >>conftest.$ac_ext
23632 cat >>conftest.$ac_ext <<_ACEOF
23633 /* end confdefs.h. */
23634 #ifdef HAVE_SYS_TYPES_H
23635 #include <sys/types.h>
23636 #endif
23637 #ifdef HAVE_NETINET_IN_H
23638 #include <netinet/in.h>
23639 #endif
23642 main ()
23644 static struct sockaddr_in6 ac_aggr;
23645 if (ac_aggr.sin6_scope_id)
23646 return 0;
23648 return 0;
23650 _ACEOF
23651 rm -f conftest.$ac_objext
23652 if { (ac_try="$ac_compile"
23653 case "(($ac_try" in
23654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655 *) ac_try_echo=$ac_try;;
23656 esac
23657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23658 (eval "$ac_compile") 2>conftest.er1
23659 ac_status=$?
23660 grep -v '^ *+' conftest.er1 >conftest.err
23661 rm -f conftest.er1
23662 cat conftest.err >&5
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } &&
23665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23666 { (case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23669 esac
23670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671 (eval "$ac_try") 2>&5
23672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; } &&
23675 { ac_try='test -s conftest.$ac_objext'
23676 { (case "(($ac_try" in
23677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678 *) ac_try_echo=$ac_try;;
23679 esac
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681 (eval "$ac_try") 2>&5
23682 ac_status=$?
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); }; }; then
23685 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23686 else
23687 echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23690 cat >conftest.$ac_ext <<_ACEOF
23691 /* confdefs.h. */
23692 _ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h. */
23696 #ifdef HAVE_SYS_TYPES_H
23697 #include <sys/types.h>
23698 #endif
23699 #ifdef HAVE_NETINET_IN_H
23700 #include <netinet/in.h>
23701 #endif
23704 main ()
23706 static struct sockaddr_in6 ac_aggr;
23707 if (sizeof ac_aggr.sin6_scope_id)
23708 return 0;
23710 return 0;
23712 _ACEOF
23713 rm -f conftest.$ac_objext
23714 if { (ac_try="$ac_compile"
23715 case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23718 esac
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720 (eval "$ac_compile") 2>conftest.er1
23721 ac_status=$?
23722 grep -v '^ *+' conftest.er1 >conftest.err
23723 rm -f conftest.er1
23724 cat conftest.err >&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } &&
23727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23728 { (case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_try") 2>&5
23734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; } &&
23737 { ac_try='test -s conftest.$ac_objext'
23738 { (case "(($ac_try" in
23739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23740 *) ac_try_echo=$ac_try;;
23741 esac
23742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23743 (eval "$ac_try") 2>&5
23744 ac_status=$?
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); }; }; then
23747 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23748 else
23749 echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23752 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23760 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23761 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23762 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23764 cat >>confdefs.h <<_ACEOF
23765 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23766 _ACEOF
23772 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23773 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23774 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23775 echo $ECHO_N "(cached) $ECHO_C" >&6
23776 else
23777 cat >conftest.$ac_ext <<_ACEOF
23778 /* confdefs.h. */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23783 #ifdef HAVE_SYS_TYPES_H
23784 #include <sys/types.h>
23785 #endif
23786 #ifdef HAVE_NETINET_IN_H
23787 # include <netinet/in.h>
23788 #endif
23789 #ifdef HAVE_ARPA_NAMESER_H
23790 # include <arpa/nameser.h>
23791 #endif
23794 main ()
23796 static ns_msg ac_aggr;
23797 if (ac_aggr._msg_ptr)
23798 return 0;
23800 return 0;
23802 _ACEOF
23803 rm -f conftest.$ac_objext
23804 if { (ac_try="$ac_compile"
23805 case "(($ac_try" in
23806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23807 *) ac_try_echo=$ac_try;;
23808 esac
23809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23810 (eval "$ac_compile") 2>conftest.er1
23811 ac_status=$?
23812 grep -v '^ *+' conftest.er1 >conftest.err
23813 rm -f conftest.er1
23814 cat conftest.err >&5
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } &&
23817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23818 { (case "(($ac_try" in
23819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820 *) ac_try_echo=$ac_try;;
23821 esac
23822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23823 (eval "$ac_try") 2>&5
23824 ac_status=$?
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; } &&
23827 { ac_try='test -s conftest.$ac_objext'
23828 { (case "(($ac_try" in
23829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830 *) ac_try_echo=$ac_try;;
23831 esac
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833 (eval "$ac_try") 2>&5
23834 ac_status=$?
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); }; }; then
23837 ac_cv_member_ns_msg__msg_ptr=yes
23838 else
23839 echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23842 cat >conftest.$ac_ext <<_ACEOF
23843 /* confdefs.h. */
23844 _ACEOF
23845 cat confdefs.h >>conftest.$ac_ext
23846 cat >>conftest.$ac_ext <<_ACEOF
23847 /* end confdefs.h. */
23848 #ifdef HAVE_SYS_TYPES_H
23849 #include <sys/types.h>
23850 #endif
23851 #ifdef HAVE_NETINET_IN_H
23852 # include <netinet/in.h>
23853 #endif
23854 #ifdef HAVE_ARPA_NAMESER_H
23855 # include <arpa/nameser.h>
23856 #endif
23859 main ()
23861 static ns_msg ac_aggr;
23862 if (sizeof ac_aggr._msg_ptr)
23863 return 0;
23865 return 0;
23867 _ACEOF
23868 rm -f conftest.$ac_objext
23869 if { (ac_try="$ac_compile"
23870 case "(($ac_try" in
23871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23872 *) ac_try_echo=$ac_try;;
23873 esac
23874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23875 (eval "$ac_compile") 2>conftest.er1
23876 ac_status=$?
23877 grep -v '^ *+' conftest.er1 >conftest.err
23878 rm -f conftest.er1
23879 cat conftest.err >&5
23880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881 (exit $ac_status); } &&
23882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23883 { (case "(($ac_try" in
23884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885 *) ac_try_echo=$ac_try;;
23886 esac
23887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23888 (eval "$ac_try") 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; } &&
23892 { ac_try='test -s conftest.$ac_objext'
23893 { (case "(($ac_try" in
23894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23895 *) ac_try_echo=$ac_try;;
23896 esac
23897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23898 (eval "$ac_try") 2>&5
23899 ac_status=$?
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; }; then
23902 ac_cv_member_ns_msg__msg_ptr=yes
23903 else
23904 echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23907 ac_cv_member_ns_msg__msg_ptr=no
23910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23915 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23916 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23917 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23919 cat >>confdefs.h <<_ACEOF
23920 #define HAVE_NS_MSG__MSG_PTR 1
23921 _ACEOF
23927 { echo "$as_me:$LINENO: checking for timezone variable" >&5
23928 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
23929 if test "${ac_cv_have_timezone+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23931 else
23932 cat >conftest.$ac_ext <<_ACEOF
23933 /* confdefs.h. */
23934 _ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h. */
23938 #include <time.h>
23940 main ()
23942 timezone;
23944 return 0;
23946 _ACEOF
23947 rm -f conftest.$ac_objext conftest$ac_exeext
23948 if { (ac_try="$ac_link"
23949 case "(($ac_try" in
23950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23951 *) ac_try_echo=$ac_try;;
23952 esac
23953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23954 (eval "$ac_link") 2>conftest.er1
23955 ac_status=$?
23956 grep -v '^ *+' conftest.er1 >conftest.err
23957 rm -f conftest.er1
23958 cat conftest.err >&5
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); } &&
23961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23962 { (case "(($ac_try" in
23963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964 *) ac_try_echo=$ac_try;;
23965 esac
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967 (eval "$ac_try") 2>&5
23968 ac_status=$?
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); }; } &&
23971 { ac_try='test -s conftest$ac_exeext'
23972 { (case "(($ac_try" in
23973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23974 *) ac_try_echo=$ac_try;;
23975 esac
23976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23977 (eval "$ac_try") 2>&5
23978 ac_status=$?
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; }; then
23981 ac_cv_have_timezone="yes"
23982 else
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23986 ac_cv_have_timezone="no"
23989 rm -f core conftest.err conftest.$ac_objext \
23990 conftest$ac_exeext conftest.$ac_ext
23992 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
23993 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
23994 if test "$ac_cv_have_timezone" = "yes"
23995 then
23997 cat >>confdefs.h <<\_ACEOF
23998 #define HAVE_TIMEZONE 1
23999 _ACEOF
24002 { echo "$as_me:$LINENO: checking for daylight variable" >&5
24003 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
24004 if test "${ac_cv_have_daylight+set}" = set; then
24005 echo $ECHO_N "(cached) $ECHO_C" >&6
24006 else
24007 cat >conftest.$ac_ext <<_ACEOF
24008 /* confdefs.h. */
24009 _ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h. */
24013 #include <time.h>
24015 main ()
24017 daylight;
24019 return 0;
24021 _ACEOF
24022 rm -f conftest.$ac_objext conftest$ac_exeext
24023 if { (ac_try="$ac_link"
24024 case "(($ac_try" in
24025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24026 *) ac_try_echo=$ac_try;;
24027 esac
24028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24029 (eval "$ac_link") 2>conftest.er1
24030 ac_status=$?
24031 grep -v '^ *+' conftest.er1 >conftest.err
24032 rm -f conftest.er1
24033 cat conftest.err >&5
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } &&
24036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24037 { (case "(($ac_try" in
24038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039 *) ac_try_echo=$ac_try;;
24040 esac
24041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042 (eval "$ac_try") 2>&5
24043 ac_status=$?
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); }; } &&
24046 { ac_try='test -s conftest$ac_exeext'
24047 { (case "(($ac_try" in
24048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24049 *) ac_try_echo=$ac_try;;
24050 esac
24051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24052 (eval "$ac_try") 2>&5
24053 ac_status=$?
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); }; }; then
24056 ac_cv_have_daylight="yes"
24057 else
24058 echo "$as_me: failed program was:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24061 ac_cv_have_daylight="no"
24064 rm -f core conftest.err conftest.$ac_objext \
24065 conftest$ac_exeext conftest.$ac_ext
24067 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
24068 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
24069 if test "$ac_cv_have_daylight" = "yes"
24070 then
24072 cat >>confdefs.h <<\_ACEOF
24073 #define HAVE_DAYLIGHT 1
24074 _ACEOF
24079 case $host_cpu in
24080 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
24081 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
24082 if test "${ac_cv_cpp_def___i386__+set}" = set; then
24083 echo $ECHO_N "(cached) $ECHO_C" >&6
24084 else
24085 cat >conftest.$ac_ext <<_ACEOF
24086 /* confdefs.h. */
24087 _ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h. */
24091 #ifndef __i386__
24093 #endif
24094 _ACEOF
24095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24096 $EGREP "yes" >/dev/null 2>&1; then
24097 ac_cv_cpp_def___i386__=yes
24098 else
24099 ac_cv_cpp_def___i386__=no
24101 rm -f conftest*
24104 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
24105 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
24106 if test $ac_cv_cpp_def___i386__ = yes; then
24107 CFLAGS="$CFLAGS -D__i386__"
24108 LINTFLAGS="$LINTFLAGS -D__i386__"
24111 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
24112 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
24113 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
24114 echo $ECHO_N "(cached) $ECHO_C" >&6
24115 else
24116 cat >conftest.$ac_ext <<_ACEOF
24117 /* confdefs.h. */
24118 _ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h. */
24122 #ifndef __x86_64__
24124 #endif
24125 _ACEOF
24126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24127 $EGREP "yes" >/dev/null 2>&1; then
24128 ac_cv_cpp_def___x86_64__=yes
24129 else
24130 ac_cv_cpp_def___x86_64__=no
24132 rm -f conftest*
24135 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
24136 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
24137 if test $ac_cv_cpp_def___x86_64__ = yes; then
24138 CFLAGS="$CFLAGS -D__x86_64__"
24139 LINTFLAGS="$LINTFLAGS -D__x86_64__"
24142 { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
24143 echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
24144 if test "${ac_cv_cpp_def__WIN64+set}" = set; then
24145 echo $ECHO_N "(cached) $ECHO_C" >&6
24146 else
24147 cat >conftest.$ac_ext <<_ACEOF
24148 /* confdefs.h. */
24149 _ACEOF
24150 cat confdefs.h >>conftest.$ac_ext
24151 cat >>conftest.$ac_ext <<_ACEOF
24152 /* end confdefs.h. */
24153 #ifndef _WIN64
24155 #endif
24156 _ACEOF
24157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24158 $EGREP "yes" >/dev/null 2>&1; then
24159 ac_cv_cpp_def__WIN64=yes
24160 else
24161 ac_cv_cpp_def__WIN64=no
24163 rm -f conftest*
24166 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
24167 echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
24168 if test $ac_cv_cpp_def__WIN64 = yes; then
24169 CFLAGS="$CFLAGS -D_WIN64"
24170 LINTFLAGS="$LINTFLAGS -D_WIN64"
24173 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
24174 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
24175 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
24176 echo $ECHO_N "(cached) $ECHO_C" >&6
24177 else
24178 cat >conftest.$ac_ext <<_ACEOF
24179 /* confdefs.h. */
24180 _ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h. */
24184 #ifndef __ALPHA__
24186 #endif
24187 _ACEOF
24188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24189 $EGREP "yes" >/dev/null 2>&1; then
24190 ac_cv_cpp_def___ALPHA__=yes
24191 else
24192 ac_cv_cpp_def___ALPHA__=no
24194 rm -f conftest*
24197 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
24198 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
24199 if test $ac_cv_cpp_def___ALPHA__ = yes; then
24200 CFLAGS="$CFLAGS -D__ALPHA__"
24201 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
24204 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
24205 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
24206 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
24207 echo $ECHO_N "(cached) $ECHO_C" >&6
24208 else
24209 cat >conftest.$ac_ext <<_ACEOF
24210 /* confdefs.h. */
24211 _ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h. */
24215 #ifndef __sparc__
24217 #endif
24218 _ACEOF
24219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24220 $EGREP "yes" >/dev/null 2>&1; then
24221 ac_cv_cpp_def___sparc__=yes
24222 else
24223 ac_cv_cpp_def___sparc__=no
24225 rm -f conftest*
24228 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
24229 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
24230 if test $ac_cv_cpp_def___sparc__ = yes; then
24231 CFLAGS="$CFLAGS -D__sparc__"
24232 LINTFLAGS="$LINTFLAGS -D__sparc__"
24235 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
24236 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
24237 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
24238 echo $ECHO_N "(cached) $ECHO_C" >&6
24239 else
24240 cat >conftest.$ac_ext <<_ACEOF
24241 /* confdefs.h. */
24242 _ACEOF
24243 cat confdefs.h >>conftest.$ac_ext
24244 cat >>conftest.$ac_ext <<_ACEOF
24245 /* end confdefs.h. */
24246 #ifndef __powerpc__
24248 #endif
24249 _ACEOF
24250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24251 $EGREP "yes" >/dev/null 2>&1; then
24252 ac_cv_cpp_def___powerpc__=yes
24253 else
24254 ac_cv_cpp_def___powerpc__=no
24256 rm -f conftest*
24259 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
24260 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
24261 if test $ac_cv_cpp_def___powerpc__ = yes; then
24262 CFLAGS="$CFLAGS -D__powerpc__"
24263 LINTFLAGS="$LINTFLAGS -D__powerpc__"
24266 esac
24268 case $host_vendor in
24269 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
24270 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
24271 if test "${ac_cv_cpp_def___sun__+set}" = set; then
24272 echo $ECHO_N "(cached) $ECHO_C" >&6
24273 else
24274 cat >conftest.$ac_ext <<_ACEOF
24275 /* confdefs.h. */
24276 _ACEOF
24277 cat confdefs.h >>conftest.$ac_ext
24278 cat >>conftest.$ac_ext <<_ACEOF
24279 /* end confdefs.h. */
24280 #ifndef __sun__
24282 #endif
24283 _ACEOF
24284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24285 $EGREP "yes" >/dev/null 2>&1; then
24286 ac_cv_cpp_def___sun__=yes
24287 else
24288 ac_cv_cpp_def___sun__=no
24290 rm -f conftest*
24293 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
24294 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
24295 if test $ac_cv_cpp_def___sun__ = yes; then
24296 CFLAGS="$CFLAGS -D__sun__"
24297 LINTFLAGS="$LINTFLAGS -D__sun__"
24300 esac
24306 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
24308 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
24310 ac_config_commands="$ac_config_commands dlls/kernel/messages"
24312 ac_config_commands="$ac_config_commands dlls/user/resources"
24314 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
24316 ac_config_commands="$ac_config_commands include/wine"
24319 MAKE_RULES=Make.rules
24322 MAKE_DLL_RULES=dlls/Makedll.rules
24325 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
24328 MAKE_TEST_RULES=dlls/Maketest.rules
24331 MAKE_LIB_RULES=libs/Makelib.rules
24334 MAKE_PROG_RULES=programs/Makeprog.rules
24337 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/hlink/tests/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"
24340 cat >confcache <<\_ACEOF
24341 # This file is a shell script that caches the results of configure
24342 # tests run on this system so they can be shared between configure
24343 # scripts and configure runs, see configure's option --config-cache.
24344 # It is not useful on other systems. If it contains results you don't
24345 # want to keep, you may remove or edit it.
24347 # config.status only pays attention to the cache file if you give it
24348 # the --recheck option to rerun configure.
24350 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24351 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24352 # following values.
24354 _ACEOF
24356 # The following way of writing the cache mishandles newlines in values,
24357 # but we know of no workaround that is simple, portable, and efficient.
24358 # So, we kill variables containing newlines.
24359 # Ultrix sh set writes to stderr and can't be redirected directly,
24360 # and sets the high bit in the cache file unless we assign to the vars.
24362 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24363 eval ac_val=\$$ac_var
24364 case $ac_val in #(
24365 *${as_nl}*)
24366 case $ac_var in #(
24367 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24368 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24369 esac
24370 case $ac_var in #(
24371 _ | IFS | as_nl) ;; #(
24372 *) $as_unset $ac_var ;;
24373 esac ;;
24374 esac
24375 done
24377 (set) 2>&1 |
24378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24379 *${as_nl}ac_space=\ *)
24380 # `set' does not quote correctly, so add quotes (double-quote
24381 # substitution turns \\\\ into \\, and sed turns \\ into \).
24382 sed -n \
24383 "s/'/'\\\\''/g;
24384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24385 ;; #(
24387 # `set' quotes correctly as required by POSIX, so do not add quotes.
24388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24390 esac |
24391 sort
24393 sed '
24394 /^ac_cv_env_/b end
24395 t clear
24396 :clear
24397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24398 t end
24399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24400 :end' >>confcache
24401 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24402 if test -w "$cache_file"; then
24403 test "x$cache_file" != "x/dev/null" &&
24404 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24405 echo "$as_me: updating cache $cache_file" >&6;}
24406 cat confcache >$cache_file
24407 else
24408 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24409 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24412 rm -f confcache
24414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24415 # Let make expand exec_prefix.
24416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24418 DEFS=-DHAVE_CONFIG_H
24420 ac_libobjs=
24421 ac_ltlibobjs=
24422 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24423 # 1. Remove the extension, and $U if already installed.
24424 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24425 ac_i=`echo "$ac_i" | sed "$ac_script"`
24426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24427 # will be set to the directory where LIBOBJS objects are built.
24428 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24429 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24430 done
24431 LIBOBJS=$ac_libobjs
24433 LTLIBOBJS=$ac_ltlibobjs
24437 : ${CONFIG_STATUS=./config.status}
24438 ac_clean_files_save=$ac_clean_files
24439 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24440 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24441 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24442 cat >$CONFIG_STATUS <<_ACEOF
24443 #! $SHELL
24444 # Generated by $as_me.
24445 # Run this file to recreate the current configuration.
24446 # Compiler output produced by configure, useful for debugging
24447 # configure, is in config.log if it exists.
24449 debug=false
24450 ac_cs_recheck=false
24451 ac_cs_silent=false
24452 SHELL=\${CONFIG_SHELL-$SHELL}
24453 _ACEOF
24455 cat >>$CONFIG_STATUS <<\_ACEOF
24456 ## --------------------- ##
24457 ## M4sh Initialization. ##
24458 ## --------------------- ##
24460 # Be Bourne compatible
24461 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24462 emulate sh
24463 NULLCMD=:
24464 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24465 # is contrary to our usage. Disable this feature.
24466 alias -g '${1+"$@"}'='"$@"'
24467 setopt NO_GLOB_SUBST
24468 else
24469 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24471 BIN_SH=xpg4; export BIN_SH # for Tru64
24472 DUALCASE=1; export DUALCASE # for MKS sh
24475 # PATH needs CR
24476 # Avoid depending upon Character Ranges.
24477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24480 as_cr_digits='0123456789'
24481 as_cr_alnum=$as_cr_Letters$as_cr_digits
24483 # The user is always right.
24484 if test "${PATH_SEPARATOR+set}" != set; then
24485 echo "#! /bin/sh" >conf$$.sh
24486 echo "exit 0" >>conf$$.sh
24487 chmod +x conf$$.sh
24488 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24489 PATH_SEPARATOR=';'
24490 else
24491 PATH_SEPARATOR=:
24493 rm -f conf$$.sh
24496 # Support unset when possible.
24497 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24498 as_unset=unset
24499 else
24500 as_unset=false
24504 # IFS
24505 # We need space, tab and new line, in precisely that order. Quoting is
24506 # there to prevent editors from complaining about space-tab.
24507 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24508 # splitting by setting IFS to empty value.)
24509 as_nl='
24511 IFS=" "" $as_nl"
24513 # Find who we are. Look in the path if we contain no directory separator.
24514 case $0 in
24515 *[\\/]* ) as_myself=$0 ;;
24516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24517 for as_dir in $PATH
24519 IFS=$as_save_IFS
24520 test -z "$as_dir" && as_dir=.
24521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24522 done
24523 IFS=$as_save_IFS
24526 esac
24527 # We did not find ourselves, most probably we were run as `sh COMMAND'
24528 # in which case we are not to be found in the path.
24529 if test "x$as_myself" = x; then
24530 as_myself=$0
24532 if test ! -f "$as_myself"; then
24533 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24534 { (exit 1); exit 1; }
24537 # Work around bugs in pre-3.0 UWIN ksh.
24538 for as_var in ENV MAIL MAILPATH
24539 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24540 done
24541 PS1='$ '
24542 PS2='> '
24543 PS4='+ '
24545 # NLS nuisances.
24546 for as_var in \
24547 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24548 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24549 LC_TELEPHONE LC_TIME
24551 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24552 eval $as_var=C; export $as_var
24553 else
24554 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24556 done
24558 # Required to use basename.
24559 if expr a : '\(a\)' >/dev/null 2>&1 &&
24560 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24561 as_expr=expr
24562 else
24563 as_expr=false
24566 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24567 as_basename=basename
24568 else
24569 as_basename=false
24573 # Name of the executable.
24574 as_me=`$as_basename -- "$0" ||
24575 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24576 X"$0" : 'X\(//\)$' \| \
24577 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24578 echo X/"$0" |
24579 sed '/^.*\/\([^/][^/]*\)\/*$/{
24580 s//\1/
24583 /^X\/\(\/\/\)$/{
24584 s//\1/
24587 /^X\/\(\/\).*/{
24588 s//\1/
24591 s/.*/./; q'`
24593 # CDPATH.
24594 $as_unset CDPATH
24598 as_lineno_1=$LINENO
24599 as_lineno_2=$LINENO
24600 test "x$as_lineno_1" != "x$as_lineno_2" &&
24601 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24603 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24604 # uniformly replaced by the line number. The first 'sed' inserts a
24605 # line-number line after each line using $LINENO; the second 'sed'
24606 # does the real work. The second script uses 'N' to pair each
24607 # line-number line with the line containing $LINENO, and appends
24608 # trailing '-' during substitution so that $LINENO is not a special
24609 # case at line end.
24610 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24611 # scripts with optimization help from Paolo Bonzini. Blame Lee
24612 # E. McMahon (1931-1989) for sed's syntax. :-)
24613 sed -n '
24615 /[$]LINENO/=
24616 ' <$as_myself |
24617 sed '
24618 s/[$]LINENO.*/&-/
24619 t lineno
24621 :lineno
24623 :loop
24624 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24625 t loop
24626 s/-\n.*//
24627 ' >$as_me.lineno &&
24628 chmod +x "$as_me.lineno" ||
24629 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24630 { (exit 1); exit 1; }; }
24632 # Don't try to exec as it changes $[0], causing all sort of problems
24633 # (the dirname of $[0] is not the place where we might find the
24634 # original and so on. Autoconf is especially sensitive to this).
24635 . "./$as_me.lineno"
24636 # Exit status is that of the last command.
24637 exit
24641 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24642 as_dirname=dirname
24643 else
24644 as_dirname=false
24647 ECHO_C= ECHO_N= ECHO_T=
24648 case `echo -n x` in
24649 -n*)
24650 case `echo 'x\c'` in
24651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24652 *) ECHO_C='\c';;
24653 esac;;
24655 ECHO_N='-n';;
24656 esac
24658 if expr a : '\(a\)' >/dev/null 2>&1 &&
24659 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24660 as_expr=expr
24661 else
24662 as_expr=false
24665 rm -f conf$$ conf$$.exe conf$$.file
24666 if test -d conf$$.dir; then
24667 rm -f conf$$.dir/conf$$.file
24668 else
24669 rm -f conf$$.dir
24670 mkdir conf$$.dir
24672 echo >conf$$.file
24673 if ln -s conf$$.file conf$$ 2>/dev/null; then
24674 as_ln_s='ln -s'
24675 # ... but there are two gotchas:
24676 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24677 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24678 # In both cases, we have to default to `cp -p'.
24679 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24680 as_ln_s='cp -p'
24681 elif ln conf$$.file conf$$ 2>/dev/null; then
24682 as_ln_s=ln
24683 else
24684 as_ln_s='cp -p'
24686 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24687 rmdir conf$$.dir 2>/dev/null
24689 if mkdir -p . 2>/dev/null; then
24690 as_mkdir_p=:
24691 else
24692 test -d ./-p && rmdir ./-p
24693 as_mkdir_p=false
24696 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
24697 # systems may use methods other than mode bits to determine executability.
24698 cat >conf$$.file <<_ASEOF
24699 #! /bin/sh
24700 exit 0
24701 _ASEOF
24702 chmod +x conf$$.file
24703 if test -x conf$$.file >/dev/null 2>&1; then
24704 as_executable_p="test -x"
24705 else
24706 as_executable_p=:
24708 rm -f conf$$.file
24710 # Sed expression to map a string onto a valid CPP name.
24711 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24713 # Sed expression to map a string onto a valid variable name.
24714 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24717 exec 6>&1
24719 # Save the log message, to keep $[0] and so on meaningful, and to
24720 # report actual input values of CONFIG_FILES etc. instead of their
24721 # values after options handling.
24722 ac_log="
24723 This file was extended by Wine $as_me 0.9.18, which was
24724 generated by GNU Autoconf 2.60a. Invocation command line was
24726 CONFIG_FILES = $CONFIG_FILES
24727 CONFIG_HEADERS = $CONFIG_HEADERS
24728 CONFIG_LINKS = $CONFIG_LINKS
24729 CONFIG_COMMANDS = $CONFIG_COMMANDS
24730 $ $0 $@
24732 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24735 _ACEOF
24737 cat >>$CONFIG_STATUS <<_ACEOF
24738 # Files that config.status was made for.
24739 config_files="$ac_config_files"
24740 config_headers="$ac_config_headers"
24741 config_commands="$ac_config_commands"
24743 _ACEOF
24745 cat >>$CONFIG_STATUS <<\_ACEOF
24746 ac_cs_usage="\
24747 \`$as_me' instantiates files from templates according to the
24748 current configuration.
24750 Usage: $0 [OPTIONS] [FILE]...
24752 -h, --help print this help, then exit
24753 -V, --version print version number, then exit
24754 -q, --quiet do not print progress messages
24755 -d, --debug don't remove temporary files
24756 --recheck update $as_me by reconfiguring in the same conditions
24757 --file=FILE[:TEMPLATE]
24758 instantiate the configuration file FILE
24759 --header=FILE[:TEMPLATE]
24760 instantiate the configuration header FILE
24762 Configuration files:
24763 $config_files
24765 Configuration headers:
24766 $config_headers
24768 Configuration commands:
24769 $config_commands
24771 Report bugs to <bug-autoconf@gnu.org>."
24773 _ACEOF
24774 cat >>$CONFIG_STATUS <<_ACEOF
24775 ac_cs_version="\\
24776 Wine config.status 0.9.18
24777 configured by $0, generated by GNU Autoconf 2.60a,
24778 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24780 Copyright (C) 2006 Free Software Foundation, Inc.
24781 This config.status script is free software; the Free Software Foundation
24782 gives unlimited permission to copy, distribute and modify it."
24784 ac_pwd='$ac_pwd'
24785 srcdir='$srcdir'
24786 INSTALL='$INSTALL'
24787 _ACEOF
24789 cat >>$CONFIG_STATUS <<\_ACEOF
24790 # If no file are specified by the user, then we need to provide default
24791 # value. By we need to know if files were specified by the user.
24792 ac_need_defaults=:
24793 while test $# != 0
24795 case $1 in
24796 --*=*)
24797 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24798 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24799 ac_shift=:
24802 ac_option=$1
24803 ac_optarg=$2
24804 ac_shift=shift
24806 esac
24808 case $ac_option in
24809 # Handling of the options.
24810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24811 ac_cs_recheck=: ;;
24812 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24813 echo "$ac_cs_version"; exit ;;
24814 --debug | --debu | --deb | --de | --d | -d )
24815 debug=: ;;
24816 --file | --fil | --fi | --f )
24817 $ac_shift
24818 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24819 ac_need_defaults=false;;
24820 --header | --heade | --head | --hea )
24821 $ac_shift
24822 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24823 ac_need_defaults=false;;
24824 --he | --h)
24825 # Conflict between --help and --header
24826 { echo "$as_me: error: ambiguous option: $1
24827 Try \`$0 --help' for more information." >&2
24828 { (exit 1); exit 1; }; };;
24829 --help | --hel | -h )
24830 echo "$ac_cs_usage"; exit ;;
24831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24832 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24833 ac_cs_silent=: ;;
24835 # This is an error.
24836 -*) { echo "$as_me: error: unrecognized option: $1
24837 Try \`$0 --help' for more information." >&2
24838 { (exit 1); exit 1; }; } ;;
24840 *) ac_config_targets="$ac_config_targets $1"
24841 ac_need_defaults=false ;;
24843 esac
24844 shift
24845 done
24847 ac_configure_extra_args=
24849 if $ac_cs_silent; then
24850 exec 6>/dev/null
24851 ac_configure_extra_args="$ac_configure_extra_args --silent"
24854 _ACEOF
24855 cat >>$CONFIG_STATUS <<_ACEOF
24856 if \$ac_cs_recheck; then
24857 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24858 CONFIG_SHELL=$SHELL
24859 export CONFIG_SHELL
24860 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24863 _ACEOF
24864 cat >>$CONFIG_STATUS <<\_ACEOF
24865 exec 5>>config.log
24867 echo
24868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24869 ## Running $as_me. ##
24870 _ASBOX
24871 echo "$ac_log"
24872 } >&5
24874 _ACEOF
24875 cat >>$CONFIG_STATUS <<_ACEOF
24876 _ACEOF
24878 cat >>$CONFIG_STATUS <<\_ACEOF
24880 # Handling of arguments.
24881 for ac_config_target in $ac_config_targets
24883 case $ac_config_target in
24884 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24885 "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24886 "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24887 "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
24888 "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24889 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24890 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24891 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24892 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24893 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24894 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
24895 "libs/Makelib.rules") CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
24896 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24897 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24898 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24899 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24900 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24901 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24902 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24903 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24904 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24905 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24906 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24907 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24908 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24909 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24910 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24911 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24912 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24913 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
24914 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
24915 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24916 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24917 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
24918 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
24919 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
24920 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24921 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24922 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24923 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
24924 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
24925 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24926 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24927 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24928 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24929 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24930 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24931 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24932 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24933 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24934 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24935 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24936 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24937 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24938 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24939 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24940 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24941 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24942 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24943 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24944 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24945 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24946 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24947 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24948 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24949 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24950 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24951 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24952 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24953 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24954 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24955 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24956 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24957 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24958 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24959 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24960 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24961 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24962 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24963 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
24964 "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
24965 "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
24966 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24967 "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24968 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
24969 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
24970 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
24971 "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
24972 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
24973 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
24974 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
24975 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
24976 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
24977 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
24978 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
24979 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
24980 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
24981 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
24982 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
24983 "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
24984 "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
24985 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
24986 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
24987 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
24988 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
24989 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
24990 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
24991 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
24992 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
24993 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
24994 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
24995 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
24996 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
24997 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
24998 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
24999 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
25000 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
25001 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
25002 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
25003 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
25004 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
25005 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
25006 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
25007 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
25008 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
25009 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
25010 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
25011 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
25012 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
25013 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
25014 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
25015 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
25016 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
25017 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
25018 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
25019 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
25020 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
25021 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
25022 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
25023 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
25024 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
25025 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
25026 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
25027 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
25028 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
25029 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
25030 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
25031 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
25032 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
25033 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
25034 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
25035 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
25036 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
25037 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
25038 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
25039 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
25040 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
25041 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
25042 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
25043 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
25044 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
25045 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
25046 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
25047 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
25048 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
25049 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
25050 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
25051 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
25052 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
25053 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
25054 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
25055 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
25056 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
25057 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
25058 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
25059 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
25060 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
25061 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
25062 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
25063 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
25064 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
25065 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
25066 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
25067 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
25068 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
25069 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
25070 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
25071 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
25072 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
25073 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
25074 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
25075 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
25076 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
25077 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
25078 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
25079 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
25080 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
25081 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
25082 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
25083 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
25084 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
25085 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
25086 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
25087 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
25088 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
25089 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
25090 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
25091 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
25092 "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
25093 "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
25094 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
25095 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
25096 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
25097 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
25098 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
25099 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
25100 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
25101 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
25102 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
25103 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
25104 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
25105 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
25106 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
25107 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
25108 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
25109 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
25110 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
25111 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
25112 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
25113 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
25114 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
25115 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
25116 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
25117 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
25118 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
25119 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
25120 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
25121 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
25122 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
25123 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
25124 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
25125 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
25126 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
25127 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
25128 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
25129 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
25130 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
25131 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
25132 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
25133 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
25134 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
25135 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
25136 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
25137 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
25138 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
25139 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
25140 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
25141 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
25142 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
25143 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25144 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
25145 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
25146 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
25147 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
25148 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
25149 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
25150 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
25151 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
25152 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
25153 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
25154 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
25155 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
25156 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
25157 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
25158 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
25159 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
25160 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
25161 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
25162 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
25163 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
25164 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
25165 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
25166 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
25167 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
25168 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
25169 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
25170 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
25171 "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
25172 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
25173 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
25174 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
25175 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
25176 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
25177 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
25178 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
25179 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
25180 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
25181 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
25182 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
25183 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
25184 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
25185 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
25186 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
25187 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25188 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
25189 "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
25190 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
25191 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
25192 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
25193 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
25194 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
25196 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25197 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25198 { (exit 1); exit 1; }; };;
25199 esac
25200 done
25203 # If the user did not use the arguments to specify the items to instantiate,
25204 # then the envvar interface is used. Set only those that are not.
25205 # We use the long form for the default assignment because of an extremely
25206 # bizarre bug on SunOS 4.1.3.
25207 if $ac_need_defaults; then
25208 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25209 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25210 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25213 # Have a temporary directory for convenience. Make it in the build tree
25214 # simply because there is no reason against having it here, and in addition,
25215 # creating and moving files from /tmp can sometimes cause problems.
25216 # Hook for its removal unless debugging.
25217 # Note that there is a small window in which the directory will not be cleaned:
25218 # after its creation but before its name has been assigned to `$tmp'.
25219 $debug ||
25221 tmp=
25222 trap 'exit_status=$?
25223 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25225 trap '{ (exit 1); exit 1; }' 1 2 13 15
25227 # Create a (secure) tmp directory for tmp files.
25230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25231 test -n "$tmp" && test -d "$tmp"
25232 } ||
25234 tmp=./conf$$-$RANDOM
25235 (umask 077 && mkdir "$tmp")
25236 } ||
25238 echo "$me: cannot create a temporary directory in ." >&2
25239 { (exit 1); exit 1; }
25243 # Set up the sed scripts for CONFIG_FILES section.
25246 # No need to generate the scripts if there are no CONFIG_FILES.
25247 # This happens for instance when ./config.status config.h
25248 if test -n "$CONFIG_FILES"; then
25250 _ACEOF
25252 # Create sed commands to just substitute file output variables.
25254 # Remaining file output variables are in a fragment that also has non-file
25255 # output varibles.
25259 ac_delim='%!_!# '
25260 for ac_last_try in false false false false false :; do
25261 cat >conf$$subs.sed <<_ACEOF
25262 SHELL!$SHELL$ac_delim
25263 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25264 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25265 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25266 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25267 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25268 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25269 exec_prefix!$exec_prefix$ac_delim
25270 prefix!$prefix$ac_delim
25271 program_transform_name!$program_transform_name$ac_delim
25272 bindir!$bindir$ac_delim
25273 sbindir!$sbindir$ac_delim
25274 libexecdir!$libexecdir$ac_delim
25275 datarootdir!$datarootdir$ac_delim
25276 datadir!$datadir$ac_delim
25277 sysconfdir!$sysconfdir$ac_delim
25278 sharedstatedir!$sharedstatedir$ac_delim
25279 localstatedir!$localstatedir$ac_delim
25280 includedir!$includedir$ac_delim
25281 oldincludedir!$oldincludedir$ac_delim
25282 docdir!$docdir$ac_delim
25283 infodir!$infodir$ac_delim
25284 htmldir!$htmldir$ac_delim
25285 dvidir!$dvidir$ac_delim
25286 pdfdir!$pdfdir$ac_delim
25287 psdir!$psdir$ac_delim
25288 libdir!$libdir$ac_delim
25289 localedir!$localedir$ac_delim
25290 mandir!$mandir$ac_delim
25291 DEFS!$DEFS$ac_delim
25292 ECHO_C!$ECHO_C$ac_delim
25293 ECHO_N!$ECHO_N$ac_delim
25294 ECHO_T!$ECHO_T$ac_delim
25295 LIBS!$LIBS$ac_delim
25296 build_alias!$build_alias$ac_delim
25297 host_alias!$host_alias$ac_delim
25298 target_alias!$target_alias$ac_delim
25299 build!$build$ac_delim
25300 build_cpu!$build_cpu$ac_delim
25301 build_vendor!$build_vendor$ac_delim
25302 build_os!$build_os$ac_delim
25303 host!$host$ac_delim
25304 host_cpu!$host_cpu$ac_delim
25305 host_vendor!$host_vendor$ac_delim
25306 host_os!$host_os$ac_delim
25307 WIN16_FILES!$WIN16_FILES$ac_delim
25308 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
25309 SET_MAKE!$SET_MAKE$ac_delim
25310 CC!$CC$ac_delim
25311 CFLAGS!$CFLAGS$ac_delim
25312 LDFLAGS!$LDFLAGS$ac_delim
25313 CPPFLAGS!$CPPFLAGS$ac_delim
25314 ac_ct_CC!$ac_ct_CC$ac_delim
25315 EXEEXT!$EXEEXT$ac_delim
25316 OBJEXT!$OBJEXT$ac_delim
25317 CXX!$CXX$ac_delim
25318 CXXFLAGS!$CXXFLAGS$ac_delim
25319 ac_ct_CXX!$ac_ct_CXX$ac_delim
25320 CPPBIN!$CPPBIN$ac_delim
25321 TOOLSDIR!$TOOLSDIR$ac_delim
25322 XMKMF!$XMKMF$ac_delim
25323 CPP!$CPP$ac_delim
25324 X_CFLAGS!$X_CFLAGS$ac_delim
25325 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25326 X_LIBS!$X_LIBS$ac_delim
25327 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25328 LEX!$LEX$ac_delim
25329 LEXLIB!$LEXLIB$ac_delim
25330 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
25331 XLEX!$XLEX$ac_delim
25332 BISON!$BISON$ac_delim
25333 AS!$AS$ac_delim
25334 ac_ct_AS!$ac_ct_AS$ac_delim
25335 LD!$LD$ac_delim
25336 AR!$AR$ac_delim
25337 RANLIB!$RANLIB$ac_delim
25338 STRIP!$STRIP$ac_delim
25339 WINDRES!$WINDRES$ac_delim
25340 LN_S!$LN_S$ac_delim
25341 _ACEOF
25343 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
25344 break
25345 elif $ac_last_try; then
25346 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25347 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25348 { (exit 1); exit 1; }; }
25349 else
25350 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25352 done
25354 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25355 if test -n "$ac_eof"; then
25356 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25357 ac_eof=`expr $ac_eof + 1`
25360 cat >>$CONFIG_STATUS <<_ACEOF
25361 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25362 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25363 /^[ ]*@MAKE_RULES@[ ]*$/{
25364 r $MAKE_RULES
25367 /^[ ]*@MAKE_DLL_RULES@[ ]*$/{
25368 r $MAKE_DLL_RULES
25371 /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
25372 r $MAKE_IMPLIB_RULES
25375 /^[ ]*@MAKE_TEST_RULES@[ ]*$/{
25376 r $MAKE_TEST_RULES
25379 /^[ ]*@MAKE_LIB_RULES@[ ]*$/{
25380 r $MAKE_LIB_RULES
25383 /^[ ]*@MAKE_PROG_RULES@[ ]*$/{
25384 r $MAKE_PROG_RULES
25387 _ACEOF
25388 sed '
25389 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25390 s/^/s,@/; s/!/@,|#_!!_#|/
25393 s/'"$ac_delim"'$/,g/; t
25394 s/$/\\/; p
25395 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25396 ' >>$CONFIG_STATUS <conf$$subs.sed
25397 rm -f conf$$subs.sed
25398 cat >>$CONFIG_STATUS <<_ACEOF
25399 CEOF$ac_eof
25400 _ACEOF
25403 ac_delim='%!_!# '
25404 for ac_last_try in false false false false false :; do
25405 cat >conf$$subs.sed <<_ACEOF
25406 LN!$LN$ac_delim
25407 GREP!$GREP$ac_delim
25408 EGREP!$EGREP$ac_delim
25409 LDCONFIG!$LDCONFIG$ac_delim
25410 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25411 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25412 INSTALL_DATA!$INSTALL_DATA$ac_delim
25413 LINT!$LINT$ac_delim
25414 LINTFLAGS!$LINTFLAGS$ac_delim
25415 FONTFORGE!$FONTFORGE$ac_delim
25416 PKG_CONFIG!$PKG_CONFIG$ac_delim
25417 PRELINK!$PRELINK$ac_delim
25418 LIBPTHREAD!$LIBPTHREAD$ac_delim
25419 XLIB!$XLIB$ac_delim
25420 XFILES!$XFILES$ac_delim
25421 OPENGLFILES!$OPENGLFILES$ac_delim
25422 GLU32FILES!$GLU32FILES$ac_delim
25423 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
25424 GLUT_LIBS!$GLUT_LIBS$ac_delim
25425 GLUT32FILES!$GLUT32FILES$ac_delim
25426 NASLIBS!$NASLIBS$ac_delim
25427 XML2LIBS!$XML2LIBS$ac_delim
25428 XML2INCL!$XML2INCL$ac_delim
25429 XSLTLIBS!$XSLTLIBS$ac_delim
25430 XSLTINCL!$XSLTINCL$ac_delim
25431 HALINCL!$HALINCL$ac_delim
25432 CURSESLIBS!$CURSESLIBS$ac_delim
25433 sane_devel!$sane_devel$ac_delim
25434 SANELIBS!$SANELIBS$ac_delim
25435 SANEINCL!$SANEINCL$ac_delim
25436 gphoto2_devel!$gphoto2_devel$ac_delim
25437 gphoto2port_devel!$gphoto2port_devel$ac_delim
25438 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
25439 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
25440 ICULIBS!$ICULIBS$ac_delim
25441 RESOLVLIBS!$RESOLVLIBS$ac_delim
25442 LCMSLIBS!$LCMSLIBS$ac_delim
25443 LDAPLIBS!$LDAPLIBS$ac_delim
25444 FREETYPELIBS!$FREETYPELIBS$ac_delim
25445 FREETYPEINCL!$FREETYPEINCL$ac_delim
25446 ft_devel!$ft_devel$ac_delim
25447 ft_devel2!$ft_devel2$ac_delim
25448 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
25449 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
25450 ARTSLIBS!$ARTSLIBS$ac_delim
25451 ARTSINCL!$ARTSINCL$ac_delim
25452 ESDCONFIG!$ESDCONFIG$ac_delim
25453 ESDLIBS!$ESDLIBS$ac_delim
25454 ESDINCL!$ESDINCL$ac_delim
25455 ALSALIBS!$ALSALIBS$ac_delim
25456 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
25457 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
25458 BUILTINFLAG!$BUILTINFLAG$ac_delim
25459 DLLEXT!$DLLEXT$ac_delim
25460 DLLFLAGS!$DLLFLAGS$ac_delim
25461 DLLIBS!$DLLIBS$ac_delim
25462 LDSHARED!$LDSHARED$ac_delim
25463 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
25464 LIBEXT!$LIBEXT$ac_delim
25465 IMPLIBEXT!$IMPLIBEXT$ac_delim
25466 DLLTOOL!$DLLTOOL$ac_delim
25467 DLLWRAP!$DLLWRAP$ac_delim
25468 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
25469 LDEXERPATH!$LDEXERPATH$ac_delim
25470 LDDLLRPATH!$LDDLLRPATH$ac_delim
25471 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
25472 IOKITLIB!$IOKITLIB$ac_delim
25473 COREAUDIO!$COREAUDIO$ac_delim
25474 CROSSTEST!$CROSSTEST$ac_delim
25475 CROSSCC!$CROSSCC$ac_delim
25476 CROSSWINDRES!$CROSSWINDRES$ac_delim
25477 LDPATH!$LDPATH$ac_delim
25478 CRTLIBS!$CRTLIBS$ac_delim
25479 SOCKETLIBS!$SOCKETLIBS$ac_delim
25480 MAIN_BINARY!$MAIN_BINARY$ac_delim
25481 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
25482 LDD!$LDD$ac_delim
25483 LIBOBJS!$LIBOBJS$ac_delim
25484 LTLIBOBJS!$LTLIBOBJS$ac_delim
25485 _ACEOF
25487 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
25488 break
25489 elif $ac_last_try; then
25490 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25491 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25492 { (exit 1); exit 1; }; }
25493 else
25494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25496 done
25498 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25499 if test -n "$ac_eof"; then
25500 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25501 ac_eof=`expr $ac_eof + 1`
25504 cat >>$CONFIG_STATUS <<_ACEOF
25505 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25507 _ACEOF
25508 sed '
25509 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25510 s/^/s,@/; s/!/@,|#_!!_#|/
25513 s/'"$ac_delim"'$/,g/; t
25514 s/$/\\/; p
25515 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25516 ' >>$CONFIG_STATUS <conf$$subs.sed
25517 rm -f conf$$subs.sed
25518 cat >>$CONFIG_STATUS <<_ACEOF
25519 :end
25520 s/|#_!!_#|//g
25521 CEOF$ac_eof
25522 _ACEOF
25525 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25526 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25527 # trailing colons and then remove the whole line if VPATH becomes empty
25528 # (actually we leave an empty line to preserve line numbers).
25529 if test "x$srcdir" = x.; then
25530 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25531 s/:*\$(srcdir):*/:/
25532 s/:*\${srcdir}:*/:/
25533 s/:*@srcdir@:*/:/
25534 s/^\([^=]*=[ ]*\):*/\1/
25535 s/:*$//
25536 s/^[^=]*=[ ]*$//
25540 cat >>$CONFIG_STATUS <<\_ACEOF
25541 fi # test -n "$CONFIG_FILES"
25544 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25546 case $ac_tag in
25547 :[FHLC]) ac_mode=$ac_tag; continue;;
25548 esac
25549 case $ac_mode$ac_tag in
25550 :[FHL]*:*);;
25551 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25552 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25553 { (exit 1); exit 1; }; };;
25554 :[FH]-) ac_tag=-:-;;
25555 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25556 esac
25557 ac_save_IFS=$IFS
25558 IFS=:
25559 set x $ac_tag
25560 IFS=$ac_save_IFS
25561 shift
25562 ac_file=$1
25563 shift
25565 case $ac_mode in
25566 :L) ac_source=$1;;
25567 :[FH])
25568 ac_file_inputs=
25569 for ac_f
25571 case $ac_f in
25572 -) ac_f="$tmp/stdin";;
25573 *) # Look for the file first in the build tree, then in the source tree
25574 # (if the path is not absolute). The absolute path cannot be DOS-style,
25575 # because $ac_f cannot contain `:'.
25576 test -f "$ac_f" ||
25577 case $ac_f in
25578 [\\/$]*) false;;
25579 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25580 esac ||
25581 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25582 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25583 { (exit 1); exit 1; }; };;
25584 esac
25585 ac_file_inputs="$ac_file_inputs $ac_f"
25586 done
25588 # Let's still pretend it is `configure' which instantiates (i.e., don't
25589 # use $as_me), people would be surprised to read:
25590 # /* config.h. Generated by config.status. */
25591 configure_input="Generated from "`IFS=:
25592 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25593 if test x"$ac_file" != x-; then
25594 configure_input="$ac_file. $configure_input"
25595 { echo "$as_me:$LINENO: creating $ac_file" >&5
25596 echo "$as_me: creating $ac_file" >&6;}
25599 case $ac_tag in
25600 *:-:* | *:-) cat >"$tmp/stdin";;
25601 esac
25603 esac
25605 ac_dir=`$as_dirname -- "$ac_file" ||
25606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25607 X"$ac_file" : 'X\(//\)[^/]' \| \
25608 X"$ac_file" : 'X\(//\)$' \| \
25609 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25610 echo X"$ac_file" |
25611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25612 s//\1/
25615 /^X\(\/\/\)[^/].*/{
25616 s//\1/
25619 /^X\(\/\/\)$/{
25620 s//\1/
25623 /^X\(\/\).*/{
25624 s//\1/
25627 s/.*/./; q'`
25628 { as_dir="$ac_dir"
25629 case $as_dir in #(
25630 -*) as_dir=./$as_dir;;
25631 esac
25632 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25633 as_dirs=
25634 while :; do
25635 case $as_dir in #(
25636 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25637 *) as_qdir=$as_dir;;
25638 esac
25639 as_dirs="'$as_qdir' $as_dirs"
25640 as_dir=`$as_dirname -- "$as_dir" ||
25641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25642 X"$as_dir" : 'X\(//\)[^/]' \| \
25643 X"$as_dir" : 'X\(//\)$' \| \
25644 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25645 echo X"$as_dir" |
25646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25647 s//\1/
25650 /^X\(\/\/\)[^/].*/{
25651 s//\1/
25654 /^X\(\/\/\)$/{
25655 s//\1/
25658 /^X\(\/\).*/{
25659 s//\1/
25662 s/.*/./; q'`
25663 test -d "$as_dir" && break
25664 done
25665 test -z "$as_dirs" || eval "mkdir $as_dirs"
25666 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25667 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25668 { (exit 1); exit 1; }; }; }
25669 ac_builddir=.
25671 case "$ac_dir" in
25672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25675 # A ".." for each directory in $ac_dir_suffix.
25676 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25677 case $ac_top_builddir_sub in
25678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25680 esac ;;
25681 esac
25682 ac_abs_top_builddir=$ac_pwd
25683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25684 # for backward compatibility:
25685 ac_top_builddir=$ac_top_build_prefix
25687 case $srcdir in
25688 .) # We are building in place.
25689 ac_srcdir=.
25690 ac_top_srcdir=$ac_top_builddir_sub
25691 ac_abs_top_srcdir=$ac_pwd ;;
25692 [\\/]* | ?:[\\/]* ) # Absolute name.
25693 ac_srcdir=$srcdir$ac_dir_suffix;
25694 ac_top_srcdir=$srcdir
25695 ac_abs_top_srcdir=$srcdir ;;
25696 *) # Relative name.
25697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25698 ac_top_srcdir=$ac_top_build_prefix$srcdir
25699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25700 esac
25701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25704 case $ac_mode in
25707 # CONFIG_FILE
25710 case $INSTALL in
25711 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25712 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25713 esac
25714 _ACEOF
25716 cat >>$CONFIG_STATUS <<\_ACEOF
25717 # If the template does not know about datarootdir, expand it.
25718 # FIXME: This hack should be removed a few years after 2.60.
25719 ac_datarootdir_hack=; ac_datarootdir_seen=
25721 case `sed -n '/datarootdir/ {
25725 /@datadir@/p
25726 /@docdir@/p
25727 /@infodir@/p
25728 /@localedir@/p
25729 /@mandir@/p
25730 ' $ac_file_inputs` in
25731 *datarootdir*) ac_datarootdir_seen=yes;;
25732 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25733 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25734 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25735 _ACEOF
25736 cat >>$CONFIG_STATUS <<_ACEOF
25737 ac_datarootdir_hack='
25738 s&@datadir@&$datadir&g
25739 s&@docdir@&$docdir&g
25740 s&@infodir@&$infodir&g
25741 s&@localedir@&$localedir&g
25742 s&@mandir@&$mandir&g
25743 s&\\\${datarootdir}&$datarootdir&g' ;;
25744 esac
25745 _ACEOF
25747 # Neutralize VPATH when `$srcdir' = `.'.
25748 # Shell code in configure.ac might set extrasub.
25749 # FIXME: do we really want to maintain this feature?
25750 cat >>$CONFIG_STATUS <<_ACEOF
25751 sed "$ac_vpsub
25752 $extrasub
25753 _ACEOF
25754 cat >>$CONFIG_STATUS <<\_ACEOF
25756 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25757 s&@configure_input@&$configure_input&;t t
25758 s&@top_builddir@&$ac_top_builddir_sub&;t t
25759 s&@srcdir@&$ac_srcdir&;t t
25760 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25761 s&@top_srcdir@&$ac_top_srcdir&;t t
25762 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25763 s&@builddir@&$ac_builddir&;t t
25764 s&@abs_builddir@&$ac_abs_builddir&;t t
25765 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25766 s&@INSTALL@&$ac_INSTALL&;t t
25767 $ac_datarootdir_hack
25768 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25770 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25771 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25772 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25773 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25774 which seems to be undefined. Please make sure it is defined." >&5
25775 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25776 which seems to be undefined. Please make sure it is defined." >&2;}
25778 rm -f "$tmp/stdin"
25779 case $ac_file in
25780 -) cat "$tmp/out"; rm -f "$tmp/out";;
25781 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25782 esac
25786 # CONFIG_HEADER
25788 _ACEOF
25790 # Transform confdefs.h into a sed script `conftest.defines', that
25791 # substitutes the proper values into config.h.in to produce config.h.
25792 rm -f conftest.defines conftest.tail
25793 # First, append a space to every undef/define line, to ease matching.
25794 echo 's/$/ /' >conftest.defines
25795 # Then, protect against being on the right side of a sed subst, or in
25796 # an unquoted here document, in config.status. If some macros were
25797 # called several times there might be several #defines for the same
25798 # symbol, which is useless. But do not sort them, since the last
25799 # AC_DEFINE must be honored.
25800 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25801 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25802 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25803 # PARAMS is the parameter list in the macro definition--in most cases, it's
25804 # just an empty string.
25805 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25806 ac_dB='\\)[ (].*,\\1define\\2'
25807 ac_dC=' '
25808 ac_dD=' ,'
25810 uniq confdefs.h |
25811 sed -n '
25812 t rset
25813 :rset
25814 s/^[ ]*#[ ]*define[ ][ ]*//
25815 t ok
25818 s/[\\&,]/\\&/g
25819 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25820 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25821 ' >>conftest.defines
25823 # Remove the space that was appended to ease matching.
25824 # Then replace #undef with comments. This is necessary, for
25825 # example, in the case of _POSIX_SOURCE, which is predefined and required
25826 # on some systems where configure will not decide to define it.
25827 # (The regexp can be short, since the line contains either #define or #undef.)
25828 echo 's/ $//
25829 s,^[ #]*u.*,/* & */,' >>conftest.defines
25831 # Break up conftest.defines:
25832 ac_max_sed_lines=50
25834 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25835 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25836 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25837 # et cetera.
25838 ac_in='$ac_file_inputs'
25839 ac_out='"$tmp/out1"'
25840 ac_nxt='"$tmp/out2"'
25842 while :
25844 # Write a here document:
25845 cat >>$CONFIG_STATUS <<_ACEOF
25846 # First, check the format of the line:
25847 cat >"\$tmp/defines.sed" <<\\CEOF
25848 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25849 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25851 :def
25852 _ACEOF
25853 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25854 echo 'CEOF
25855 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25856 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25857 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25858 grep . conftest.tail >/dev/null || break
25859 rm -f conftest.defines
25860 mv conftest.tail conftest.defines
25861 done
25862 rm -f conftest.defines conftest.tail
25864 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25865 cat >>$CONFIG_STATUS <<\_ACEOF
25866 if test x"$ac_file" != x-; then
25867 echo "/* $configure_input */" >"$tmp/config.h"
25868 cat "$ac_result" >>"$tmp/config.h"
25869 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25870 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25871 echo "$as_me: $ac_file is unchanged" >&6;}
25872 else
25873 rm -f $ac_file
25874 mv "$tmp/config.h" $ac_file
25876 else
25877 echo "/* $configure_input */"
25878 cat "$ac_result"
25880 rm -f "$tmp/out12"
25883 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25884 echo "$as_me: executing $ac_file commands" >&6;}
25886 esac
25889 case $ac_file$ac_mode in
25890 "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25891 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25892 "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25893 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25894 "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
25895 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
25896 "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25897 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25898 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25899 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25900 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25901 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25903 esac
25904 done # for ac_tag
25907 { (exit 0); exit 0; }
25908 _ACEOF
25909 chmod +x $CONFIG_STATUS
25910 ac_clean_files=$ac_clean_files_save
25913 # configure is writing to config.log, and then calls config.status.
25914 # config.status does its own redirection, appending to config.log.
25915 # Unfortunately, on DOS this fails, as config.log is still kept open
25916 # by configure, so config.status won't be able to write to it; its
25917 # output is simply discarded. So we exec the FD to /dev/null,
25918 # effectively closing config.log, so it can be properly (re)opened and
25919 # appended to by config.status. When coming back to configure, we
25920 # need to make the FD available again.
25921 if test "$no_create" != yes; then
25922 ac_cs_success=:
25923 ac_config_status_args=
25924 test "$silent" = yes &&
25925 ac_config_status_args="$ac_config_status_args --quiet"
25926 exec 5>/dev/null
25927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25928 exec 5>>config.log
25929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25930 # would make configure fail if this is the last instruction.
25931 $ac_cs_success || { (exit 1); exit 1; }
25935 if test "$have_x" = "no"
25936 then
25937 echo >&2
25938 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25939 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25940 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25941 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25942 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25943 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25944 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
25945 echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
25948 if test "$wine_cv_opengl_version_OK" = "no"
25949 then
25950 echo >&2
25951 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5
25952 echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;}
25953 { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25954 echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
25957 if test "$wine_cv_msg_freetype" = "yes"
25958 then
25959 echo >&2
25960 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25961 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25962 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25963 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25964 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25965 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25966 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25967 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
25970 if test -z "$FONTSSUBDIRS"
25971 then
25972 echo >&2
25973 if test "$FONTFORGE" = "false"
25974 then
25975 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
25976 echo "$as_me: WARNING: FontForge is missing." >&2;}
25977 else
25978 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
25979 echo "$as_me: WARNING: FreeType is missing." >&2;}
25981 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
25982 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
25985 if test -z "$ALSALIBS" -a \
25986 -z "$ARTSC_LIBS" -a \
25987 -z "$AUDIOIOLIBS" -a \
25988 -z "$NASLIBS" -a \
25989 -z "$ESD_LIBS" -a \
25990 -z "$ac_cv_lib_soname_jack" -a \
25991 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
25992 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
25993 "$ac_cv_header_soundcard_h" != "yes"
25994 then
25995 echo >&2
25996 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
25997 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
25998 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
25999 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
26000 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
26001 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
26004 echo
26005 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
26006 echo