winex11drv: Make dxgrab global.
[wine/dibdrv.git] / configure
bloba68d2d164249bcb3e04dc31340668c3e15d91451
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Wine 0.9.28.
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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='Wine'
576 PACKAGE_TARNAME='wine'
577 PACKAGE_VERSION='0.9.28'
578 PACKAGE_STRING='Wine 0.9.28'
579 PACKAGE_BUGREPORT='wine-devel@winehq.org'
581 ac_unique_file="server/atom.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 WIN16_FILES
664 WIN16_INSTALL
665 SET_MAKE
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
674 CXXFLAGS
675 ac_ct_CXX
676 CPPBIN
677 TOOLSDIR
678 XMKMF
680 X_CFLAGS
681 X_PRE_LIBS
682 X_LIBS
683 X_EXTRA_LIBS
685 LEX_OUTPUT_ROOT
686 LEXLIB
687 XLEX
688 BISON
690 ac_ct_AS
693 RANLIB
694 STRIP
695 WINDRES
696 LN_S
698 GREP
699 EGREP
700 LDCONFIG
701 INSTALL_PROGRAM
702 INSTALL_SCRIPT
703 INSTALL_DATA
704 LINT
705 LINTFLAGS
706 FONTFORGE
707 PKG_CONFIG
708 PRELINK
709 LIBPTHREAD
710 XLIB
711 XFILES
712 OPENGLFILES
713 GLU32FILES
714 OPENGL_LIBS
715 QUARTZFILES
716 NASLIBS
717 XML2LIBS
718 XML2INCL
719 XSLTLIBS
720 XSLTINCL
721 HALINCL
722 sane_devel
723 SANELIBS
724 SANEINCL
725 gphoto2_devel
726 gphoto2port_devel
727 GPHOTO2LIBS
728 GPHOTO2INCL
729 ICULIBS
730 RESOLVLIBS
731 LCMSLIBS
732 LDAPLIBS
733 FREETYPELIBS
734 FREETYPEINCL
735 ft_devel
736 ft_devel2
737 FONTSSUBDIRS
738 ARTSCCONFIG
739 ARTSLIBS
740 ARTSINCL
741 ESDCONFIG
742 ESDLIBS
743 ESDINCL
744 ALSALIBS
745 AUDIOIOLIBS
746 EXTRACFLAGS
747 BUILTINFLAG
748 DLLEXT
749 DLLFLAGS
750 LDSHARED
751 LDDLLFLAGS
752 LIBEXT
753 IMPLIBEXT
754 LIBWINE_LDFLAGS
755 DLLTOOL
756 DLLWRAP
757 COREFOUNDATIONLIB
758 IOKITLIB
759 LDEXECFLAGS
760 DISKARBITRATIONLIB
761 COREAUDIO
762 CARBONLIB
763 CROSSTEST
764 CROSSCC
765 CROSSWINDRES
766 LDPATH
767 CRTLIBS
768 SOCKETLIBS
769 MAIN_BINARY
770 EXTRA_BINARIES
772 LIBDL
773 LIBPOLL
774 DEPENDENCIES
775 LIBOBJS
776 LTLIBOBJS'
777 ac_subst_files='MAKE_RULES
778 MAKE_DLL_RULES
779 MAKE_IMPLIB_RULES
780 MAKE_TEST_RULES
781 MAKE_PROG_RULES'
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
791 CXXFLAGS
793 XMKMF
794 CPP'
797 # Initialize some variables set by options.
798 ac_init_help=
799 ac_init_version=false
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
843 ac_prev=
844 ac_dashdash=
845 for ac_option
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
854 case $ac_option in
855 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *) ac_optarg=yes ;;
857 esac
859 # Accept the important Cygnus configure options, so we can diagnose typos.
861 case $ac_dashdash$ac_option in
863 ac_dashdash=yes ;;
865 -bindir | --bindir | --bindi | --bind | --bin | --bi)
866 ac_prev=bindir ;;
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 bindir=$ac_optarg ;;
870 -build | --build | --buil | --bui | --bu)
871 ac_prev=build_alias ;;
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873 build_alias=$ac_optarg ;;
875 -cache-file | --cache-file | --cache-fil | --cache-fi \
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877 ac_prev=cache_file ;;
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880 cache_file=$ac_optarg ;;
882 --config-cache | -C)
883 cache_file=config.cache ;;
885 -datadir | --datadir | --datadi | --datad)
886 ac_prev=datadir ;;
887 -datadir=* | --datadir=* | --datadi=* | --datad=*)
888 datadir=$ac_optarg ;;
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891 | --dataroo | --dataro | --datar)
892 ac_prev=datarootdir ;;
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895 datarootdir=$ac_optarg ;;
897 -disable-* | --disable-*)
898 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
901 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
902 { (exit 1); exit 1; }; }
903 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
904 eval enable_$ac_feature=no ;;
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
916 -enable-* | --enable-*)
917 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
920 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
921 { (exit 1); exit 1; }; }
922 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
923 eval enable_$ac_feature=\$ac_optarg ;;
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1113 -with-* | --with-*)
1114 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 { echo "$as_me: error: invalid package name: $ac_package" >&2
1118 { (exit 1); exit 1; }; }
1119 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1120 eval with_$ac_package=\$ac_optarg ;;
1122 -without-* | --without-*)
1123 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126 { echo "$as_me: error: invalid package name: $ac_package" >&2
1127 { (exit 1); exit 1; }; }
1128 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1129 eval with_$ac_package=no ;;
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1149 -*) { echo "$as_me: error: unrecognized option: $ac_option
1150 Try \`$0 --help' for more information." >&2
1151 { (exit 1); exit 1; }; }
1154 *=*)
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1159 { (exit 1); exit 1; }; }
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1164 # FIXME: should be removed in autoconf 3.0.
1165 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1171 esac
1172 done
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 { echo "$as_me: error: missing argument to $ac_option" >&2
1177 { (exit 1); exit 1; }; }
1180 # Be sure to have absolute directory names.
1181 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1186 eval ac_val=\$$ac_var
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1192 { (exit 1); exit 1; }; }
1193 done
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1198 build=$build_alias
1199 host=$host_alias
1200 target=$target_alias
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x; then
1204 if test "x$build_alias" = x; then
1205 cross_compiling=maybe
1206 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1207 If a cross compiler is detected then cross compile mode will be used." >&2
1208 elif test "x$build_alias" != "x$host_alias"; then
1209 cross_compiling=yes
1213 ac_tool_prefix=
1214 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216 test "$silent" = yes && exec 6>/dev/null
1219 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di=`ls -di .` &&
1221 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222 { echo "$as_me: error: Working directory cannot be determined" >&2
1223 { (exit 1); exit 1; }; }
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225 { echo "$as_me: error: pwd does not report name of working directory" >&2
1226 { (exit 1); exit 1; }; }
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231 ac_srcdir_defaulted=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir=`$as_dirname -- "$0" ||
1234 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$0" : 'X\(//\)[^/]' \| \
1236 X"$0" : 'X\(//\)$' \| \
1237 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1238 echo X"$0" |
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 s//\1/
1243 /^X\(\/\/\)[^/].*/{
1244 s//\1/
1247 /^X\(\/\/\)$/{
1248 s//\1/
1251 /^X\(\/\).*/{
1252 s//\1/
1255 s/.*/./; q'`
1256 srcdir=$ac_confdir
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 srcdir=..
1260 else
1261 ac_srcdir_defaulted=no
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1266 { (exit 1); exit 1; }; }
1268 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269 ac_abs_confdir=`(
1270 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1271 { (exit 1); exit 1; }; }
1272 pwd)`
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 srcdir=.
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1280 case $srcdir in
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 esac
1283 for ac_var in $ac_precious_vars; do
1284 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_env_${ac_var}_value=\$${ac_var}
1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 done
1291 # Report the --help message.
1293 if test "$ac_init_help" = "long"; then
1294 # Omit some internal or obsolete options to make the list less imposing.
1295 # This message is too long to be a string in the A/UX 3.1 sh.
1296 cat <<_ACEOF
1297 \`configure' configures Wine 0.9.28 to adapt to many kinds of systems.
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE. See below for descriptions of some of the useful variables.
1304 Defaults for the options are specified in brackets.
1306 Configuration:
1307 -h, --help display this help and exit
1308 --help=short display options specific to this package
1309 --help=recursive display the short help of all the included packages
1310 -V, --version display version information and exit
1311 -q, --quiet, --silent do not print \`checking...' messages
1312 --cache-file=FILE cache test results in FILE [disabled]
1313 -C, --config-cache alias for \`--cache-file=config.cache'
1314 -n, --no-create do not create output files
1315 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317 Installation directories:
1318 --prefix=PREFIX install architecture-independent files in PREFIX
1319 [$ac_default_prefix]
1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 [PREFIX]
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1328 For better control, use the options below.
1330 Fine tuning of the installation directories:
1331 --bindir=DIR user executables [EPREFIX/bin]
1332 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1346 --htmldir=DIR html documentation [DOCDIR]
1347 --dvidir=DIR dvi documentation [DOCDIR]
1348 --pdfdir=DIR pdf documentation [DOCDIR]
1349 --psdir=DIR ps documentation [DOCDIR]
1350 _ACEOF
1352 cat <<\_ACEOF
1354 X features:
1355 --x-includes=DIR X include files are in DIR
1356 --x-libraries=DIR X library files are in DIR
1358 System types:
1359 --build=BUILD configure for building on BUILD [guessed]
1360 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1361 _ACEOF
1364 if test -n "$ac_init_help"; then
1365 case $ac_init_help in
1366 short | recursive ) echo "Configuration of Wine 0.9.28:";;
1367 esac
1368 cat <<\_ACEOF
1370 Optional Features:
1371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 --disable-win16 do not include Win16 support
1374 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1375 binaries)
1377 Optional Packages:
1378 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1379 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1380 --without-opengl do not use OpenGL
1381 --with-wine-tools=<dir> use Wine tools from directory <dir>
1382 --with-x use the X Window System
1384 Some influential environment variables:
1385 CC C compiler command
1386 CFLAGS C compiler flags
1387 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1388 nonstandard directory <lib dir>
1389 LIBS libraries to pass to the linker, e.g. -l<library>
1390 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1391 you have headers in a nonstandard directory <include dir>
1392 CXX C++ compiler command
1393 CXXFLAGS C++ compiler flags
1394 XMKMF Path to xmkmf, Makefile generator for X Window System
1395 CPP C preprocessor
1397 Use these variables to override the choices made by `configure' or to help
1398 it to find libraries and programs with nonstandard names/locations.
1400 Report bugs to <wine-devel@winehq.org>.
1401 _ACEOF
1402 ac_status=$?
1405 if test "$ac_init_help" = "recursive"; then
1406 # If there are subdirs, report their specific --help.
1407 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408 test -d "$ac_dir" || continue
1409 ac_builddir=.
1411 case "$ac_dir" in
1412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1415 # A ".." for each directory in $ac_dir_suffix.
1416 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1417 case $ac_top_builddir_sub in
1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420 esac ;;
1421 esac
1422 ac_abs_top_builddir=$ac_pwd
1423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424 # for backward compatibility:
1425 ac_top_builddir=$ac_top_build_prefix
1427 case $srcdir in
1428 .) # We are building in place.
1429 ac_srcdir=.
1430 ac_top_srcdir=$ac_top_builddir_sub
1431 ac_abs_top_srcdir=$ac_pwd ;;
1432 [\\/]* | ?:[\\/]* ) # Absolute name.
1433 ac_srcdir=$srcdir$ac_dir_suffix;
1434 ac_top_srcdir=$srcdir
1435 ac_abs_top_srcdir=$srcdir ;;
1436 *) # Relative name.
1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438 ac_top_srcdir=$ac_top_build_prefix$srcdir
1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440 esac
1441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1443 cd "$ac_dir" || { ac_status=$?; continue; }
1444 # Check for guested configure.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure" --help=recursive
1451 else
1452 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453 fi || ac_status=$?
1454 cd "$ac_pwd" || { ac_status=$?; break; }
1455 done
1458 test -n "$ac_init_help" && exit $ac_status
1459 if $ac_init_version; then
1460 cat <<\_ACEOF
1461 Wine configure 0.9.28
1462 generated by GNU Autoconf 2.61
1464 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1465 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1466 This configure script is free software; the Free Software Foundation
1467 gives unlimited permission to copy, distribute and modify it.
1468 _ACEOF
1469 exit
1471 cat >config.log <<_ACEOF
1472 This file contains any messages produced by compilers while
1473 running configure, to aid debugging if configure makes a mistake.
1475 It was created by Wine $as_me 0.9.28, which was
1476 generated by GNU Autoconf 2.61. Invocation command line was
1478 $ $0 $@
1480 _ACEOF
1481 exec 5>>config.log
1483 cat <<_ASUNAME
1484 ## --------- ##
1485 ## Platform. ##
1486 ## --------- ##
1488 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1489 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1490 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1491 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1492 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1494 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1495 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1497 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1498 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1499 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1500 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1501 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1502 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1503 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1505 _ASUNAME
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 for as_dir in $PATH
1510 IFS=$as_save_IFS
1511 test -z "$as_dir" && as_dir=.
1512 echo "PATH: $as_dir"
1513 done
1514 IFS=$as_save_IFS
1516 } >&5
1518 cat >&5 <<_ACEOF
1521 ## ----------- ##
1522 ## Core tests. ##
1523 ## ----------- ##
1525 _ACEOF
1528 # Keep a trace of the command line.
1529 # Strip out --no-create and --no-recursion so they do not pile up.
1530 # Strip out --silent because we don't want to record it for future runs.
1531 # Also quote any args containing shell meta-characters.
1532 # Make two passes to allow for proper duplicate-argument suppression.
1533 ac_configure_args=
1534 ac_configure_args0=
1535 ac_configure_args1=
1536 ac_must_keep_next=false
1537 for ac_pass in 1 2
1539 for ac_arg
1541 case $ac_arg in
1542 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1544 | -silent | --silent | --silen | --sile | --sil)
1545 continue ;;
1546 *\'*)
1547 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1548 esac
1549 case $ac_pass in
1550 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1552 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1553 if test $ac_must_keep_next = true; then
1554 ac_must_keep_next=false # Got value, back to normal.
1555 else
1556 case $ac_arg in
1557 *=* | --config-cache | -C | -disable-* | --disable-* \
1558 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1559 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1560 | -with-* | --with-* | -without-* | --without-* | --x)
1561 case "$ac_configure_args0 " in
1562 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1563 esac
1565 -* ) ac_must_keep_next=true ;;
1566 esac
1568 ac_configure_args="$ac_configure_args '$ac_arg'"
1570 esac
1571 done
1572 done
1573 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1574 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1576 # When interrupted or exit'd, cleanup temporary files, and complete
1577 # config.log. We remove comments because anyway the quotes in there
1578 # would cause problems or look ugly.
1579 # WARNING: Use '\'' to represent an apostrophe within the trap.
1580 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1581 trap 'exit_status=$?
1582 # Save into config.log some information that might help in debugging.
1584 echo
1586 cat <<\_ASBOX
1587 ## ---------------- ##
1588 ## Cache variables. ##
1589 ## ---------------- ##
1590 _ASBOX
1591 echo
1592 # The following way of writing the cache mishandles newlines in values,
1594 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1595 eval ac_val=\$$ac_var
1596 case $ac_val in #(
1597 *${as_nl}*)
1598 case $ac_var in #(
1599 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1600 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1601 esac
1602 case $ac_var in #(
1603 _ | IFS | as_nl) ;; #(
1604 *) $as_unset $ac_var ;;
1605 esac ;;
1606 esac
1607 done
1608 (set) 2>&1 |
1609 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1610 *${as_nl}ac_space=\ *)
1611 sed -n \
1612 "s/'\''/'\''\\\\'\'''\''/g;
1613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1614 ;; #(
1616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1618 esac |
1619 sort
1621 echo
1623 cat <<\_ASBOX
1624 ## ----------------- ##
1625 ## Output variables. ##
1626 ## ----------------- ##
1627 _ASBOX
1628 echo
1629 for ac_var in $ac_subst_vars
1631 eval ac_val=\$$ac_var
1632 case $ac_val in
1633 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 esac
1635 echo "$ac_var='\''$ac_val'\''"
1636 done | sort
1637 echo
1639 if test -n "$ac_subst_files"; then
1640 cat <<\_ASBOX
1641 ## ------------------- ##
1642 ## File substitutions. ##
1643 ## ------------------- ##
1644 _ASBOX
1645 echo
1646 for ac_var in $ac_subst_files
1648 eval ac_val=\$$ac_var
1649 case $ac_val in
1650 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1651 esac
1652 echo "$ac_var='\''$ac_val'\''"
1653 done | sort
1654 echo
1657 if test -s confdefs.h; then
1658 cat <<\_ASBOX
1659 ## ----------- ##
1660 ## confdefs.h. ##
1661 ## ----------- ##
1662 _ASBOX
1663 echo
1664 cat confdefs.h
1665 echo
1667 test "$ac_signal" != 0 &&
1668 echo "$as_me: caught signal $ac_signal"
1669 echo "$as_me: exit $exit_status"
1670 } >&5
1671 rm -f core *.core core.conftest.* &&
1672 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1673 exit $exit_status
1675 for ac_signal in 1 2 13 15; do
1676 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1677 done
1678 ac_signal=0
1680 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1681 rm -f -r conftest* confdefs.h
1683 # Predefined preprocessor variables.
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_NAME "$PACKAGE_NAME"
1687 _ACEOF
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1692 _ACEOF
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1697 _ACEOF
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_STRING "$PACKAGE_STRING"
1702 _ACEOF
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1707 _ACEOF
1710 # Let the site file select an alternate cache file if it wants to.
1711 # Prefer explicitly selected file to automatically selected ones.
1712 if test -n "$CONFIG_SITE"; then
1713 set x "$CONFIG_SITE"
1714 elif test "x$prefix" != xNONE; then
1715 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1716 else
1717 set x "$ac_default_prefix/share/config.site" \
1718 "$ac_default_prefix/etc/config.site"
1720 shift
1721 for ac_site_file
1723 if test -r "$ac_site_file"; then
1724 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1725 echo "$as_me: loading site script $ac_site_file" >&6;}
1726 sed 's/^/| /' "$ac_site_file" >&5
1727 . "$ac_site_file"
1729 done
1731 if test -r "$cache_file"; then
1732 # Some versions of bash will fail to source /dev/null (special
1733 # files actually), so we avoid doing that.
1734 if test -f "$cache_file"; then
1735 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1736 echo "$as_me: loading cache $cache_file" >&6;}
1737 case $cache_file in
1738 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1739 *) . "./$cache_file";;
1740 esac
1742 else
1743 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1744 echo "$as_me: creating cache $cache_file" >&6;}
1745 >$cache_file
1748 # Check that the precious variables saved in the cache have kept the same
1749 # value.
1750 ac_cache_corrupted=false
1751 for ac_var in $ac_precious_vars; do
1752 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1753 eval ac_new_set=\$ac_env_${ac_var}_set
1754 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1755 eval ac_new_val=\$ac_env_${ac_var}_value
1756 case $ac_old_set,$ac_new_set in
1757 set,)
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1759 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1760 ac_cache_corrupted=: ;;
1761 ,set)
1762 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1763 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1765 ,);;
1767 if test "x$ac_old_val" != "x$ac_new_val"; then
1768 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1769 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1770 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1771 echo "$as_me: former value: $ac_old_val" >&2;}
1772 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1773 echo "$as_me: current value: $ac_new_val" >&2;}
1774 ac_cache_corrupted=:
1775 fi;;
1776 esac
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1779 case $ac_new_val in
1780 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1782 esac
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1786 esac
1788 done
1789 if $ac_cache_corrupted; then
1790 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1791 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1792 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1793 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1794 { (exit 1); exit 1; }; }
1821 ac_ext=c
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 ac_config_headers="$ac_config_headers include/config.h"
1831 ac_aux_dir=
1832 for ac_dir in tools "$srcdir"/tools; do
1833 if test -f "$ac_dir/install-sh"; then
1834 ac_aux_dir=$ac_dir
1835 ac_install_sh="$ac_aux_dir/install-sh -c"
1836 break
1837 elif test -f "$ac_dir/install.sh"; then
1838 ac_aux_dir=$ac_dir
1839 ac_install_sh="$ac_aux_dir/install.sh -c"
1840 break
1841 elif test -f "$ac_dir/shtool"; then
1842 ac_aux_dir=$ac_dir
1843 ac_install_sh="$ac_aux_dir/shtool install -c"
1844 break
1846 done
1847 if test -z "$ac_aux_dir"; then
1848 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1849 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1850 { (exit 1); exit 1; }; }
1853 # These three variables are undocumented and unsupported,
1854 # and are intended to be withdrawn in a future Autoconf release.
1855 # They can cause serious problems if a builder's source tree is in a directory
1856 # whose full name contains unusual characters.
1857 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1858 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1859 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1864 # Check whether --enable-win16 was given.
1865 if test "${enable_win16+set}" = set; then
1866 enableval=$enable_win16;
1869 # Check whether --enable-win64 was given.
1870 if test "${enable_win64+set}" = set; then
1871 enableval=$enable_win64;
1876 # Check whether --with-opengl was given.
1877 if test "${with_opengl+set}" = set; then
1878 withval=$with_opengl;
1882 # Check whether --with-wine-tools was given.
1883 if test "${with_wine_tools+set}" = set; then
1884 withval=$with_wine_tools;
1888 # Make sure we can run config.sub.
1889 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1890 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1891 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1892 { (exit 1); exit 1; }; }
1894 { echo "$as_me:$LINENO: checking build system type" >&5
1895 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1896 if test "${ac_cv_build+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 ac_build_alias=$build_alias
1900 test "x$ac_build_alias" = x &&
1901 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1902 test "x$ac_build_alias" = x &&
1903 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1904 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1905 { (exit 1); exit 1; }; }
1906 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1907 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1908 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1909 { (exit 1); exit 1; }; }
1912 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1913 echo "${ECHO_T}$ac_cv_build" >&6; }
1914 case $ac_cv_build in
1915 *-*-*) ;;
1916 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1917 echo "$as_me: error: invalid value of canonical build" >&2;}
1918 { (exit 1); exit 1; }; };;
1919 esac
1920 build=$ac_cv_build
1921 ac_save_IFS=$IFS; IFS='-'
1922 set x $ac_cv_build
1923 shift
1924 build_cpu=$1
1925 build_vendor=$2
1926 shift; shift
1927 # Remember, the first character of IFS is used to create $*,
1928 # except with old shells:
1929 build_os=$*
1930 IFS=$ac_save_IFS
1931 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1934 { echo "$as_me:$LINENO: checking host system type" >&5
1935 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1936 if test "${ac_cv_host+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 if test "x$host_alias" = x; then
1940 ac_cv_host=$ac_cv_build
1941 else
1942 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1943 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1944 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1945 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1950 echo "${ECHO_T}$ac_cv_host" >&6; }
1951 case $ac_cv_host in
1952 *-*-*) ;;
1953 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1954 echo "$as_me: error: invalid value of canonical host" >&2;}
1955 { (exit 1); exit 1; }; };;
1956 esac
1957 host=$ac_cv_host
1958 ac_save_IFS=$IFS; IFS='-'
1959 set x $ac_cv_host
1960 shift
1961 host_cpu=$1
1962 host_vendor=$2
1963 shift; shift
1964 # Remember, the first character of IFS is used to create $*,
1965 # except with old shells:
1966 host_os=$*
1967 IFS=$ac_save_IFS
1968 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1971 case $host in
1972 x86_64*linux*)
1973 if test "x$enable_win64" != "xyes"
1974 then
1975 test -n "$CC" || CC="gcc -m32"
1976 test -n "$LD" || LD="ld -m elf_i386"
1977 test -n "$AS" || AS="as --32"
1978 host_cpu="i386"
1981 esac
1983 case $host_cpu in
1984 *i[3456789]86*)
1985 if test "x$enable_win16" != "xno"
1986 then
1987 enable_win16="yes"
1990 esac
1992 WIN16_FILES="\$(WIN16_FILES)"
1994 WIN16_INSTALL="\$(WIN16_INSTALL)"
1996 if test "x$enable_win16" != "xyes"
1997 then
1998 WIN16_FILES=""
1999 WIN16_INSTALL=""
2002 case "$srcdir" in
2003 .) ;;
2004 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2005 { { echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
2006 You need to run 'make distclean' in the source tree first." >&5
2007 echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
2008 You need to run 'make distclean' in the source tree first." >&2;}
2009 { (exit 1); exit 1; }; }
2010 fi ;;
2011 esac
2014 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2015 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2016 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2017 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 cat >conftest.make <<\_ACEOF
2021 SHELL = /bin/sh
2022 all:
2023 @echo '@@@%%%=$(MAKE)=@@@%%%'
2024 _ACEOF
2025 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2026 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2027 *@@@%%%=?*=@@@%%%*)
2028 eval ac_cv_prog_make_${ac_make}_set=yes;;
2030 eval ac_cv_prog_make_${ac_make}_set=no;;
2031 esac
2032 rm -f conftest.make
2034 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2035 { echo "$as_me:$LINENO: result: yes" >&5
2036 echo "${ECHO_T}yes" >&6; }
2037 SET_MAKE=
2038 else
2039 { echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6; }
2041 SET_MAKE="MAKE=${MAKE-make}"
2044 ac_ext=c
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049 if test -n "$ac_tool_prefix"; then
2050 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2051 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2063 IFS=$as_save_IFS
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 break 2
2071 done
2072 done
2073 IFS=$as_save_IFS
2077 CC=$ac_cv_prog_CC
2078 if test -n "$CC"; then
2079 { echo "$as_me:$LINENO: result: $CC" >&5
2080 echo "${ECHO_T}$CC" >&6; }
2081 else
2082 { echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6; }
2088 if test -z "$ac_cv_prog_CC"; then
2089 ac_ct_CC=$CC
2090 # Extract the first word of "gcc", so it can be a program name with args.
2091 set dummy gcc; ac_word=$2
2092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097 if test -n "$ac_ct_CC"; then
2098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2099 else
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107 ac_cv_prog_ac_ct_CC="gcc"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 break 2
2111 done
2112 done
2113 IFS=$as_save_IFS
2117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2118 if test -n "$ac_ct_CC"; then
2119 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2120 echo "${ECHO_T}$ac_ct_CC" >&6; }
2121 else
2122 { echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6; }
2126 if test "x$ac_ct_CC" = x; then
2127 CC=""
2128 else
2129 case $cross_compiling:$ac_tool_warned in
2130 yes:)
2131 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2132 whose name does not start with the host triplet. If you think this
2133 configuration is useful to you, please write to autoconf@gnu.org." >&5
2134 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2135 whose name does not start with the host triplet. If you think this
2136 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2137 ac_tool_warned=yes ;;
2138 esac
2139 CC=$ac_ct_CC
2141 else
2142 CC="$ac_cv_prog_CC"
2145 if test -z "$CC"; then
2146 if test -n "$ac_tool_prefix"; then
2147 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2148 set dummy ${ac_tool_prefix}cc; ac_word=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_CC+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 if test -n "$CC"; then
2155 ac_cv_prog_CC="$CC" # Let the user override the test.
2156 else
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2160 IFS=$as_save_IFS
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164 ac_cv_prog_CC="${ac_tool_prefix}cc"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 break 2
2168 done
2169 done
2170 IFS=$as_save_IFS
2174 CC=$ac_cv_prog_CC
2175 if test -n "$CC"; then
2176 { echo "$as_me:$LINENO: result: $CC" >&5
2177 echo "${ECHO_T}$CC" >&6; }
2178 else
2179 { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2186 if test -z "$CC"; then
2187 # Extract the first word of "cc", so it can be a program name with args.
2188 set dummy cc; ac_word=$2
2189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2191 if test "${ac_cv_prog_CC+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194 if test -n "$CC"; then
2195 ac_cv_prog_CC="$CC" # Let the user override the test.
2196 else
2197 ac_prog_rejected=no
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2205 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2206 ac_prog_rejected=yes
2207 continue
2209 ac_cv_prog_CC="cc"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 break 2
2213 done
2214 done
2215 IFS=$as_save_IFS
2217 if test $ac_prog_rejected = yes; then
2218 # We found a bogon in the path, so make sure we never use it.
2219 set dummy $ac_cv_prog_CC
2220 shift
2221 if test $# != 0; then
2222 # We chose a different compiler from the bogus one.
2223 # However, it has the same basename, so the bogon will be chosen
2224 # first if we set CC to just the basename; use the full file name.
2225 shift
2226 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2231 CC=$ac_cv_prog_CC
2232 if test -n "$CC"; then
2233 { echo "$as_me:$LINENO: result: $CC" >&5
2234 echo "${ECHO_T}$CC" >&6; }
2235 else
2236 { echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6; }
2242 if test -z "$CC"; then
2243 if test -n "$ac_tool_prefix"; then
2244 for ac_prog in cl.exe
2246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2250 if test "${ac_cv_prog_CC+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253 if test -n "$CC"; then
2254 ac_cv_prog_CC="$CC" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 break 2
2267 done
2268 done
2269 IFS=$as_save_IFS
2273 CC=$ac_cv_prog_CC
2274 if test -n "$CC"; then
2275 { echo "$as_me:$LINENO: result: $CC" >&5
2276 echo "${ECHO_T}$CC" >&6; }
2277 else
2278 { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2283 test -n "$CC" && break
2284 done
2286 if test -z "$CC"; then
2287 ac_ct_CC=$CC
2288 for ac_prog in cl.exe
2290 # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 if test -n "$ac_ct_CC"; then
2298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_ac_ct_CC="$ac_prog"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2311 done
2312 done
2313 IFS=$as_save_IFS
2317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2318 if test -n "$ac_ct_CC"; then
2319 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2320 echo "${ECHO_T}$ac_ct_CC" >&6; }
2321 else
2322 { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2327 test -n "$ac_ct_CC" && break
2328 done
2330 if test "x$ac_ct_CC" = x; then
2331 CC=""
2332 else
2333 case $cross_compiling:$ac_tool_warned in
2334 yes:)
2335 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2336 whose name does not start with the host triplet. If you think this
2337 configuration is useful to you, please write to autoconf@gnu.org." >&5
2338 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2339 whose name does not start with the host triplet. If you think this
2340 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2341 ac_tool_warned=yes ;;
2342 esac
2343 CC=$ac_ct_CC
2350 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: no acceptable C compiler found in \$PATH
2353 See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
2356 # Provide some information about the compiler.
2357 echo "$as_me:$LINENO: checking for C compiler version" >&5
2358 ac_compiler=`set X $ac_compile; echo $2`
2359 { (ac_try="$ac_compiler --version >&5"
2360 case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_compiler --version >&5") 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }
2369 { (ac_try="$ac_compiler -v >&5"
2370 case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2373 esac
2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375 (eval "$ac_compiler -v >&5") 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }
2379 { (ac_try="$ac_compiler -V >&5"
2380 case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2383 esac
2384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385 (eval "$ac_compiler -V >&5") 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }
2390 cat >conftest.$ac_ext <<_ACEOF
2391 /* confdefs.h. */
2392 _ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h. */
2398 main ()
2402 return 0;
2404 _ACEOF
2405 ac_clean_files_save=$ac_clean_files
2406 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2407 # Try to create an executable without -o first, disregard a.out.
2408 # It will help us diagnose broken compilers, and finding out an intuition
2409 # of exeext.
2410 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2411 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2412 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2414 # List of possible output files, starting from the most likely.
2415 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2416 # only as a last resort. b.out is created by i960 compilers.
2417 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2419 # The IRIX 6 linker writes into existing files which may not be
2420 # executable, retaining their permissions. Remove them first so a
2421 # subsequent execution test works.
2422 ac_rmfiles=
2423 for ac_file in $ac_files
2425 case $ac_file in
2426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2427 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2428 esac
2429 done
2430 rm -f $ac_rmfiles
2432 if { (ac_try="$ac_link_default"
2433 case "(($ac_try" in
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2436 esac
2437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2438 (eval "$ac_link_default") 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; then
2442 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2443 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2444 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2445 # so that the user can short-circuit this test for compilers unknown to
2446 # Autoconf.
2447 for ac_file in $ac_files ''
2449 test -f "$ac_file" || continue
2450 case $ac_file in
2451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2453 [ab].out )
2454 # We found the default executable, but exeext='' is most
2455 # certainly right.
2456 break;;
2457 *.* )
2458 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2459 then :; else
2460 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462 # We set ac_cv_exeext here because the later test for it is not
2463 # safe: cross compilers may not add the suffix if given an `-o'
2464 # argument, so we may need to know it at that point already.
2465 # Even if this section looks crufty: it has the advantage of
2466 # actually working.
2467 break;;
2469 break;;
2470 esac
2471 done
2472 test "$ac_cv_exeext" = no && ac_cv_exeext=
2474 else
2475 ac_file=''
2478 { echo "$as_me:$LINENO: result: $ac_file" >&5
2479 echo "${ECHO_T}$ac_file" >&6; }
2480 if test -z "$ac_file"; then
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: C compiler cannot create executables
2487 See \`config.log' for more details." >&2;}
2488 { (exit 77); exit 77; }; }
2491 ac_exeext=$ac_cv_exeext
2493 # Check that the compiler produces executables we can run. If not, either
2494 # the compiler is broken, or we cross compile.
2495 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2496 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2497 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2498 # If not cross compiling, check that we can run a simple program.
2499 if test "$cross_compiling" != yes; then
2500 if { ac_try='./$ac_file'
2501 { (case "(($ac_try" in
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2504 esac
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506 (eval "$ac_try") 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2510 cross_compiling=no
2511 else
2512 if test "$cross_compiling" = maybe; then
2513 cross_compiling=yes
2514 else
2515 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2516 If you meant to cross compile, use \`--host'.
2517 See \`config.log' for more details." >&5
2518 echo "$as_me: error: cannot run C compiled programs.
2519 If you meant to cross compile, use \`--host'.
2520 See \`config.log' for more details." >&2;}
2521 { (exit 1); exit 1; }; }
2525 { echo "$as_me:$LINENO: result: yes" >&5
2526 echo "${ECHO_T}yes" >&6; }
2528 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2529 ac_clean_files=$ac_clean_files_save
2530 # Check that the compiler produces executables we can run. If not, either
2531 # the compiler is broken, or we cross compile.
2532 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2533 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2534 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2535 echo "${ECHO_T}$cross_compiling" >&6; }
2537 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2538 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2539 if { (ac_try="$ac_link"
2540 case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2543 esac
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_link") 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2550 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2551 # work properly (i.e., refer to `conftest.exe'), while it won't with
2552 # `rm'.
2553 for ac_file in conftest.exe conftest conftest.*; do
2554 test -f "$ac_file" || continue
2555 case $ac_file in
2556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2557 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2558 break;;
2559 * ) break;;
2560 esac
2561 done
2562 else
2563 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2564 See \`config.log' for more details." >&5
2565 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2566 See \`config.log' for more details." >&2;}
2567 { (exit 1); exit 1; }; }
2570 rm -f conftest$ac_cv_exeext
2571 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2572 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2574 rm -f conftest.$ac_ext
2575 EXEEXT=$ac_cv_exeext
2576 ac_exeext=$EXEEXT
2577 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2578 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2579 if test "${ac_cv_objext+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582 cat >conftest.$ac_ext <<_ACEOF
2583 /* confdefs.h. */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2590 main ()
2594 return 0;
2596 _ACEOF
2597 rm -f conftest.o conftest.obj
2598 if { (ac_try="$ac_compile"
2599 case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2602 esac
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_compile") 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; then
2608 for ac_file in conftest.o conftest.obj conftest.*; do
2609 test -f "$ac_file" || continue;
2610 case $ac_file in
2611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2612 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2613 break;;
2614 esac
2615 done
2616 else
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2620 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2623 See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }
2627 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2629 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2630 echo "${ECHO_T}$ac_cv_objext" >&6; }
2631 OBJEXT=$ac_cv_objext
2632 ac_objext=$OBJEXT
2633 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2634 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2635 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638 cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h. */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2646 main ()
2648 #ifndef __GNUC__
2649 choke me
2650 #endif
2653 return 0;
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (ac_try="$ac_compile"
2658 case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_compile") 2>conftest.er1
2664 ac_status=$?
2665 grep -v '^ *+' conftest.er1 >conftest.err
2666 rm -f conftest.er1
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } && {
2670 test -z "$ac_c_werror_flag" ||
2671 test ! -s conftest.err
2672 } && test -s conftest.$ac_objext; then
2673 ac_compiler_gnu=yes
2674 else
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2678 ac_compiler_gnu=no
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2685 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2686 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2687 GCC=`test $ac_compiler_gnu = yes && echo yes`
2688 ac_test_CFLAGS=${CFLAGS+set}
2689 ac_save_CFLAGS=$CFLAGS
2690 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2691 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2692 if test "${ac_cv_prog_cc_g+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695 ac_save_c_werror_flag=$ac_c_werror_flag
2696 ac_c_werror_flag=yes
2697 ac_cv_prog_cc_g=no
2698 CFLAGS="-g"
2699 cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h. */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2707 main ()
2711 return 0;
2713 _ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (ac_try="$ac_compile"
2716 case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_compile") 2>conftest.er1
2722 ac_status=$?
2723 grep -v '^ *+' conftest.er1 >conftest.err
2724 rm -f conftest.er1
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } && {
2728 test -z "$ac_c_werror_flag" ||
2729 test ! -s conftest.err
2730 } && test -s conftest.$ac_objext; then
2731 ac_cv_prog_cc_g=yes
2732 else
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2736 CFLAGS=""
2737 cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h. */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2745 main ()
2749 return 0;
2751 _ACEOF
2752 rm -f conftest.$ac_objext
2753 if { (ac_try="$ac_compile"
2754 case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compile") 2>conftest.er1
2760 ac_status=$?
2761 grep -v '^ *+' conftest.er1 >conftest.err
2762 rm -f conftest.er1
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } && {
2766 test -z "$ac_c_werror_flag" ||
2767 test ! -s conftest.err
2768 } && test -s conftest.$ac_objext; then
2770 else
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2774 ac_c_werror_flag=$ac_save_c_werror_flag
2775 CFLAGS="-g"
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h. */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2784 main ()
2788 return 0;
2790 _ACEOF
2791 rm -f conftest.$ac_objext
2792 if { (ac_try="$ac_compile"
2793 case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_compile") 2>conftest.er1
2799 ac_status=$?
2800 grep -v '^ *+' conftest.er1 >conftest.err
2801 rm -f conftest.er1
2802 cat conftest.err >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } && {
2805 test -z "$ac_c_werror_flag" ||
2806 test ! -s conftest.err
2807 } && test -s conftest.$ac_objext; then
2808 ac_cv_prog_cc_g=yes
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2823 ac_c_werror_flag=$ac_save_c_werror_flag
2825 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2826 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2827 if test "$ac_test_CFLAGS" = set; then
2828 CFLAGS=$ac_save_CFLAGS
2829 elif test $ac_cv_prog_cc_g = yes; then
2830 if test "$GCC" = yes; then
2831 CFLAGS="-g -O2"
2832 else
2833 CFLAGS="-g"
2835 else
2836 if test "$GCC" = yes; then
2837 CFLAGS="-O2"
2838 else
2839 CFLAGS=
2842 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2843 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2844 if test "${ac_cv_prog_cc_c89+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847 ac_cv_prog_cc_c89=no
2848 ac_save_CC=$CC
2849 cat >conftest.$ac_ext <<_ACEOF
2850 /* confdefs.h. */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2855 #include <stdarg.h>
2856 #include <stdio.h>
2857 #include <sys/types.h>
2858 #include <sys/stat.h>
2859 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2860 struct buf { int x; };
2861 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2862 static char *e (p, i)
2863 char **p;
2864 int i;
2866 return p[i];
2868 static char *f (char * (*g) (char **, int), char **p, ...)
2870 char *s;
2871 va_list v;
2872 va_start (v,p);
2873 s = g (p, va_arg (v,int));
2874 va_end (v);
2875 return s;
2878 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2879 function prototypes and stuff, but not '\xHH' hex character constants.
2880 These don't provoke an error unfortunately, instead are silently treated
2881 as 'x'. The following induces an error, until -std is added to get
2882 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2883 array size at least. It's necessary to write '\x00'==0 to get something
2884 that's true only with -std. */
2885 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2887 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2888 inside strings and character constants. */
2889 #define FOO(x) 'x'
2890 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2892 int test (int i, double x);
2893 struct s1 {int (*f) (int a);};
2894 struct s2 {int (*f) (double a);};
2895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2896 int argc;
2897 char **argv;
2899 main ()
2901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2903 return 0;
2905 _ACEOF
2906 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2907 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2909 CC="$ac_save_CC $ac_arg"
2910 rm -f conftest.$ac_objext
2911 if { (ac_try="$ac_compile"
2912 case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compile") 2>conftest.er1
2918 ac_status=$?
2919 grep -v '^ *+' conftest.er1 >conftest.err
2920 rm -f conftest.er1
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } && {
2924 test -z "$ac_c_werror_flag" ||
2925 test ! -s conftest.err
2926 } && test -s conftest.$ac_objext; then
2927 ac_cv_prog_cc_c89=$ac_arg
2928 else
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2935 rm -f core conftest.err conftest.$ac_objext
2936 test "x$ac_cv_prog_cc_c89" != "xno" && break
2937 done
2938 rm -f conftest.$ac_ext
2939 CC=$ac_save_CC
2942 # AC_CACHE_VAL
2943 case "x$ac_cv_prog_cc_c89" in
2945 { echo "$as_me:$LINENO: result: none needed" >&5
2946 echo "${ECHO_T}none needed" >&6; } ;;
2947 xno)
2948 { echo "$as_me:$LINENO: result: unsupported" >&5
2949 echo "${ECHO_T}unsupported" >&6; } ;;
2951 CC="$CC $ac_cv_prog_cc_c89"
2952 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2953 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2954 esac
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963 ac_ext=cpp
2964 ac_cpp='$CXXCPP $CPPFLAGS'
2965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2968 if test -z "$CXX"; then
2969 if test -n "$CCC"; then
2970 CXX=$CCC
2971 else
2972 if test -n "$ac_tool_prefix"; then
2973 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_CXX+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982 if test -n "$CXX"; then
2983 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
2998 IFS=$as_save_IFS
3002 CXX=$ac_cv_prog_CXX
3003 if test -n "$CXX"; then
3004 { echo "$as_me:$LINENO: result: $CXX" >&5
3005 echo "${ECHO_T}$CXX" >&6; }
3006 else
3007 { echo "$as_me:$LINENO: result: no" >&5
3008 echo "${ECHO_T}no" >&6; }
3012 test -n "$CXX" && break
3013 done
3015 if test -z "$CXX"; then
3016 ac_ct_CXX=$CXX
3017 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 if test -n "$ac_ct_CXX"; then
3027 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_ac_ct_CXX="$ac_prog"
3037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3040 done
3041 done
3042 IFS=$as_save_IFS
3046 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3047 if test -n "$ac_ct_CXX"; then
3048 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3049 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3050 else
3051 { echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6; }
3056 test -n "$ac_ct_CXX" && break
3057 done
3059 if test "x$ac_ct_CXX" = x; then
3060 CXX="g++"
3061 else
3062 case $cross_compiling:$ac_tool_warned in
3063 yes:)
3064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3065 whose name does not start with the host triplet. If you think this
3066 configuration is useful to you, please write to autoconf@gnu.org." >&5
3067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3068 whose name does not start with the host triplet. If you think this
3069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3070 ac_tool_warned=yes ;;
3071 esac
3072 CXX=$ac_ct_CXX
3078 # Provide some information about the compiler.
3079 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3080 ac_compiler=`set X $ac_compile; echo $2`
3081 { (ac_try="$ac_compiler --version >&5"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compiler --version >&5") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }
3091 { (ac_try="$ac_compiler -v >&5"
3092 case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compiler -v >&5") 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }
3101 { (ac_try="$ac_compiler -V >&5"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compiler -V >&5") 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }
3112 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3113 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3114 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117 cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h. */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3125 main ()
3127 #ifndef __GNUC__
3128 choke me
3129 #endif
3132 return 0;
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_cxx_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3152 ac_compiler_gnu=yes
3153 else
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 ac_compiler_gnu=no
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3164 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3165 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3166 GXX=`test $ac_compiler_gnu = yes && echo yes`
3167 ac_test_CXXFLAGS=${CXXFLAGS+set}
3168 ac_save_CXXFLAGS=$CXXFLAGS
3169 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3170 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3171 if test "${ac_cv_prog_cxx_g+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3175 ac_cxx_werror_flag=yes
3176 ac_cv_prog_cxx_g=no
3177 CXXFLAGS="-g"
3178 cat >conftest.$ac_ext <<_ACEOF
3179 /* confdefs.h. */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3186 main ()
3190 return 0;
3192 _ACEOF
3193 rm -f conftest.$ac_objext
3194 if { (ac_try="$ac_compile"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } && {
3207 test -z "$ac_cxx_werror_flag" ||
3208 test ! -s conftest.err
3209 } && test -s conftest.$ac_objext; then
3210 ac_cv_prog_cxx_g=yes
3211 else
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3215 CXXFLAGS=""
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3224 main ()
3228 return 0;
3230 _ACEOF
3231 rm -f conftest.$ac_objext
3232 if { (ac_try="$ac_compile"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238 (eval "$ac_compile") 2>conftest.er1
3239 ac_status=$?
3240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } && {
3245 test -z "$ac_cxx_werror_flag" ||
3246 test ! -s conftest.err
3247 } && test -s conftest.$ac_objext; then
3249 else
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3253 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
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 test -z "$ac_cxx_werror_flag" ||
3285 test ! -s conftest.err
3286 } && test -s conftest.$ac_objext; then
3287 ac_cv_prog_cxx_g=yes
3288 else
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3304 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3305 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3306 if test "$ac_test_CXXFLAGS" = set; then
3307 CXXFLAGS=$ac_save_CXXFLAGS
3308 elif test $ac_cv_prog_cxx_g = yes; then
3309 if test "$GXX" = yes; then
3310 CXXFLAGS="-g -O2"
3311 else
3312 CXXFLAGS="-g"
3314 else
3315 if test "$GXX" = yes; then
3316 CXXFLAGS="-O2"
3317 else
3318 CXXFLAGS=
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3332 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 if test -n "$CPPBIN"; then
3336 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3349 done
3350 done
3351 IFS=$as_save_IFS
3355 CPPBIN=$ac_cv_prog_CPPBIN
3356 if test -n "$CPPBIN"; then
3357 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3358 echo "${ECHO_T}$CPPBIN" >&6; }
3359 else
3360 { echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6; }
3366 if test -z "$ac_cv_prog_CPPBIN"; then
3367 ac_ct_CPPBIN=$CPPBIN
3368 # Extract the first word of "cpp", so it can be a program name with args.
3369 set dummy cpp; ac_word=$2
3370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3372 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 if test -n "$ac_ct_CPPBIN"; then
3376 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_ac_ct_CPPBIN="cpp"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3389 done
3390 done
3391 IFS=$as_save_IFS
3395 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3396 if test -n "$ac_ct_CPPBIN"; then
3397 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3398 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3399 else
3400 { echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6; }
3404 if test "x$ac_ct_CPPBIN" = x; then
3405 CPPBIN="cpp"
3406 else
3407 case $cross_compiling:$ac_tool_warned in
3408 yes:)
3409 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3410 whose name does not start with the host triplet. If you think this
3411 configuration is useful to you, please write to autoconf@gnu.org." >&5
3412 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3413 whose name does not start with the host triplet. If you think this
3414 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3415 ac_tool_warned=yes ;;
3416 esac
3417 CPPBIN=$ac_ct_CPPBIN
3419 else
3420 CPPBIN="$ac_cv_prog_CPPBIN"
3424 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3425 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3426 if test "${wine_cv_toolsdir+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429 if test -z "$with_wine_tools"; then
3430 if test "$cross_compiling" = "yes"; then
3431 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3432 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3433 { (exit 1); exit 1; }; }
3434 else
3435 wine_cv_toolsdir="\$(TOPOBJDIR)"
3437 elif test -d "$with_wine_tools/tools/winebuild"; then
3438 case $with_wine_tools in
3439 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3440 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3441 esac
3442 else
3443 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3444 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3445 { (exit 1); exit 1; }; }
3448 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3449 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3450 TOOLSDIR=$wine_cv_toolsdir
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3460 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3461 # On Suns, sometimes $CPP names a directory.
3462 if test -n "$CPP" && test -d "$CPP"; then
3463 CPP=
3465 if test -z "$CPP"; then
3466 if test "${ac_cv_prog_CPP+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469 # Double quotes because CPP needs to be expanded
3470 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3472 ac_preproc_ok=false
3473 for ac_c_preproc_warn_flag in '' yes
3475 # Use a header file that comes with gcc, so configuring glibc
3476 # with a fresh cross-compiler works.
3477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3478 # <limits.h> exists even on freestanding compilers.
3479 # On the NeXT, cc -E runs the code through the compiler's parser,
3480 # not just through cpp. "Syntax error" is here to catch this case.
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h. */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487 #ifdef __STDC__
3488 # include <limits.h>
3489 #else
3490 # include <assert.h>
3491 #endif
3492 Syntax error
3493 _ACEOF
3494 if { (ac_try="$ac_cpp conftest.$ac_ext"
3495 case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498 esac
3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } >/dev/null && {
3507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3508 test ! -s conftest.err
3509 }; then
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3515 # Broken: fails on valid input.
3516 continue
3519 rm -f conftest.err conftest.$ac_ext
3521 # OK, works on sane cases. Now check whether nonexistent headers
3522 # can be detected and how.
3523 cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h. */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 #include <ac_nonexistent.h>
3530 _ACEOF
3531 if { (ac_try="$ac_cpp conftest.$ac_ext"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } >/dev/null && {
3544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3545 test ! -s conftest.err
3546 }; then
3547 # Broken: success on invalid input.
3548 continue
3549 else
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 # Passes both tests.
3554 ac_preproc_ok=:
3555 break
3558 rm -f conftest.err conftest.$ac_ext
3560 done
3561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3562 rm -f conftest.err conftest.$ac_ext
3563 if $ac_preproc_ok; then
3564 break
3567 done
3568 ac_cv_prog_CPP=$CPP
3571 CPP=$ac_cv_prog_CPP
3572 else
3573 ac_cv_prog_CPP=$CPP
3575 { echo "$as_me:$LINENO: result: $CPP" >&5
3576 echo "${ECHO_T}$CPP" >&6; }
3577 ac_preproc_ok=false
3578 for ac_c_preproc_warn_flag in '' yes
3580 # Use a header file that comes with gcc, so configuring glibc
3581 # with a fresh cross-compiler works.
3582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3583 # <limits.h> exists even on freestanding compilers.
3584 # On the NeXT, cc -E runs the code through the compiler's parser,
3585 # not just through cpp. "Syntax error" is here to catch this case.
3586 cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h. */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3592 #ifdef __STDC__
3593 # include <limits.h>
3594 #else
3595 # include <assert.h>
3596 #endif
3597 Syntax error
3598 _ACEOF
3599 if { (ac_try="$ac_cpp conftest.$ac_ext"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } >/dev/null && {
3612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3614 }; then
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Broken: fails on valid input.
3621 continue
3624 rm -f conftest.err conftest.$ac_ext
3626 # OK, works on sane cases. Now check whether nonexistent headers
3627 # can be detected and how.
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include <ac_nonexistent.h>
3635 _ACEOF
3636 if { (ac_try="$ac_cpp conftest.$ac_ext"
3637 case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } >/dev/null && {
3649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 }; then
3652 # Broken: success on invalid input.
3653 continue
3654 else
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 # Passes both tests.
3659 ac_preproc_ok=:
3660 break
3663 rm -f conftest.err conftest.$ac_ext
3665 done
3666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3667 rm -f conftest.err conftest.$ac_ext
3668 if $ac_preproc_ok; then
3670 else
3671 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3672 See \`config.log' for more details." >&5
3673 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3674 See \`config.log' for more details." >&2;}
3675 { (exit 1); exit 1; }; }
3678 ac_ext=c
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 { echo "$as_me:$LINENO: checking for X" >&5
3686 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3689 # Check whether --with-x was given.
3690 if test "${with_x+set}" = set; then
3691 withval=$with_x;
3694 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3695 if test "x$with_x" = xno; then
3696 # The user explicitly disabled X.
3697 have_x=disabled
3698 else
3699 case $x_includes,$x_libraries in #(
3700 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3701 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3702 { (exit 1); exit 1; }; };; #(
3703 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706 # One or both of the vars are not set, and there is no cached value.
3707 ac_x_includes=no ac_x_libraries=no
3708 rm -f -r conftest.dir
3709 if mkdir conftest.dir; then
3710 cd conftest.dir
3711 cat >Imakefile <<'_ACEOF'
3712 incroot:
3713 @echo incroot='${INCROOT}'
3714 usrlibdir:
3715 @echo usrlibdir='${USRLIBDIR}'
3716 libdir:
3717 @echo libdir='${LIBDIR}'
3718 _ACEOF
3719 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3721 for ac_var in incroot usrlibdir libdir; do
3722 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3723 done
3724 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3725 for ac_extension in a so sl; do
3726 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3727 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3728 ac_im_usrlibdir=$ac_im_libdir; break
3730 done
3731 # Screen out bogus values from the imake configuration. They are
3732 # bogus both because they are the default anyway, and because
3733 # using them would break gcc on systems where it needs fixed includes.
3734 case $ac_im_incroot in
3735 /usr/include) ac_x_includes= ;;
3736 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3737 esac
3738 case $ac_im_usrlibdir in
3739 /usr/lib | /lib) ;;
3740 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3741 esac
3743 cd ..
3744 rm -f -r conftest.dir
3747 # Standard set of common directories for X headers.
3748 # Check X11 before X11Rn because it is often a symlink to the current release.
3749 ac_x_header_dirs='
3750 /usr/X11/include
3751 /usr/X11R6/include
3752 /usr/X11R5/include
3753 /usr/X11R4/include
3755 /usr/include/X11
3756 /usr/include/X11R6
3757 /usr/include/X11R5
3758 /usr/include/X11R4
3760 /usr/local/X11/include
3761 /usr/local/X11R6/include
3762 /usr/local/X11R5/include
3763 /usr/local/X11R4/include
3765 /usr/local/include/X11
3766 /usr/local/include/X11R6
3767 /usr/local/include/X11R5
3768 /usr/local/include/X11R4
3770 /usr/X386/include
3771 /usr/x386/include
3772 /usr/XFree86/include/X11
3774 /usr/include
3775 /usr/local/include
3776 /usr/unsupported/include
3777 /usr/athena/include
3778 /usr/local/x11r5/include
3779 /usr/lpp/Xamples/include
3781 /usr/openwin/include
3782 /usr/openwin/share/include'
3784 if test "$ac_x_includes" = no; then
3785 # Guess where to find include files, by looking for Xlib.h.
3786 # First, try using that file with no special directory specified.
3787 cat >conftest.$ac_ext <<_ACEOF
3788 /* confdefs.h. */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3793 #include <X11/Xlib.h>
3794 _ACEOF
3795 if { (ac_try="$ac_cpp conftest.$ac_ext"
3796 case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } >/dev/null && {
3808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3809 test ! -s conftest.err
3810 }; then
3811 # We can compile using X headers with no special include directory.
3812 ac_x_includes=
3813 else
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3817 for ac_dir in $ac_x_header_dirs; do
3818 if test -r "$ac_dir/X11/Xlib.h"; then
3819 ac_x_includes=$ac_dir
3820 break
3822 done
3825 rm -f conftest.err conftest.$ac_ext
3826 fi # $ac_x_includes = no
3828 if test "$ac_x_libraries" = no; then
3829 # Check for the libraries.
3830 # See if we find them without any special options.
3831 # Don't add to $LIBS permanently.
3832 ac_save_LIBS=$LIBS
3833 LIBS="-lX11 $LIBS"
3834 cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h. */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3840 #include <X11/Xlib.h>
3842 main ()
3844 XrmInitialize ()
3846 return 0;
3848 _ACEOF
3849 rm -f conftest.$ac_objext conftest$ac_exeext
3850 if { (ac_try="$ac_link"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_link") 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } && {
3863 test -z "$ac_c_werror_flag" ||
3864 test ! -s conftest.err
3865 } && test -s conftest$ac_exeext &&
3866 $as_test_x conftest$ac_exeext; then
3867 LIBS=$ac_save_LIBS
3868 # We can link X programs with no special library path.
3869 ac_x_libraries=
3870 else
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 LIBS=$ac_save_LIBS
3875 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3877 # Don't even attempt the hair of trying to link an X program!
3878 for ac_extension in a so sl; do
3879 if test -r "$ac_dir/libX11.$ac_extension"; then
3880 ac_x_libraries=$ac_dir
3881 break 2
3883 done
3884 done
3887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3888 conftest$ac_exeext conftest.$ac_ext
3889 fi # $ac_x_libraries = no
3891 case $ac_x_includes,$ac_x_libraries in #(
3892 no,* | *,no | *\'*)
3893 # Didn't find X, or a directory has "'" in its name.
3894 ac_cv_have_x="have_x=no";; #(
3896 # Record where we found X for the cache.
3897 ac_cv_have_x="have_x=yes\
3898 ac_x_includes='$ac_x_includes'\
3899 ac_x_libraries='$ac_x_libraries'"
3900 esac
3902 ;; #(
3903 *) have_x=yes;;
3904 esac
3905 eval "$ac_cv_have_x"
3906 fi # $with_x != no
3908 if test "$have_x" != yes; then
3909 { echo "$as_me:$LINENO: result: $have_x" >&5
3910 echo "${ECHO_T}$have_x" >&6; }
3911 no_x=yes
3912 else
3913 # If each of the values was on the command line, it overrides each guess.
3914 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3915 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3916 # Update the cache value to reflect the command line values.
3917 ac_cv_have_x="have_x=yes\
3918 ac_x_includes='$x_includes'\
3919 ac_x_libraries='$x_libraries'"
3920 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3921 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3924 if test "$no_x" = yes; then
3925 # Not all programs may use this symbol, but it does not hurt to define it.
3927 cat >>confdefs.h <<\_ACEOF
3928 #define X_DISPLAY_MISSING 1
3929 _ACEOF
3931 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3932 else
3933 if test -n "$x_includes"; then
3934 X_CFLAGS="$X_CFLAGS -I$x_includes"
3937 # It would also be nice to do this for all -L options, not just this one.
3938 if test -n "$x_libraries"; then
3939 X_LIBS="$X_LIBS -L$x_libraries"
3940 # For Solaris; some versions of Sun CC require a space after -R and
3941 # others require no space. Words are not sufficient . . . .
3942 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3943 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3944 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3945 ac_xsave_c_werror_flag=$ac_c_werror_flag
3946 ac_c_werror_flag=yes
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3955 main ()
3959 return 0;
3961 _ACEOF
3962 rm -f conftest.$ac_objext conftest$ac_exeext
3963 if { (ac_try="$ac_link"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_link") 2>conftest.er1
3970 ac_status=$?
3971 grep -v '^ *+' conftest.er1 >conftest.err
3972 rm -f conftest.er1
3973 cat conftest.err >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && {
3976 test -z "$ac_c_werror_flag" ||
3977 test ! -s conftest.err
3978 } && test -s conftest$ac_exeext &&
3979 $as_test_x conftest$ac_exeext; then
3980 { echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6; }
3982 X_LIBS="$X_LIBS -R$x_libraries"
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 LIBS="$ac_xsave_LIBS -R $x_libraries"
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3996 main ()
4000 return 0;
4002 _ACEOF
4003 rm -f conftest.$ac_objext conftest$ac_exeext
4004 if { (ac_try="$ac_link"
4005 case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_link") 2>conftest.er1
4011 ac_status=$?
4012 grep -v '^ *+' conftest.er1 >conftest.err
4013 rm -f conftest.er1
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } && {
4017 test -z "$ac_c_werror_flag" ||
4018 test ! -s conftest.err
4019 } && test -s conftest$ac_exeext &&
4020 $as_test_x conftest$ac_exeext; then
4021 { echo "$as_me:$LINENO: result: yes" >&5
4022 echo "${ECHO_T}yes" >&6; }
4023 X_LIBS="$X_LIBS -R $x_libraries"
4024 else
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 { echo "$as_me:$LINENO: result: neither works" >&5
4029 echo "${ECHO_T}neither works" >&6; }
4032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4033 conftest$ac_exeext conftest.$ac_ext
4036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4037 conftest$ac_exeext conftest.$ac_ext
4038 ac_c_werror_flag=$ac_xsave_c_werror_flag
4039 LIBS=$ac_xsave_LIBS
4042 # Check for system-dependent libraries X programs must link with.
4043 # Do this before checking for the system-independent R6 libraries
4044 # (-lICE), since we may need -lsocket or whatever for X linking.
4046 if test "$ISC" = yes; then
4047 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4048 else
4049 # Martyn Johnson says this is needed for Ultrix, if the X
4050 # libraries were built with DECnet support. And Karl Berry says
4051 # the Alpha needs dnet_stub (dnet does not exist).
4052 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4053 cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h. */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4060 /* Override any GCC internal prototype to avoid an error.
4061 Use char because int might match the return type of a GCC
4062 builtin and then its argument prototype would still apply. */
4063 #ifdef __cplusplus
4064 extern "C"
4065 #endif
4066 char XOpenDisplay ();
4068 main ()
4070 return XOpenDisplay ();
4072 return 0;
4074 _ACEOF
4075 rm -f conftest.$ac_objext conftest$ac_exeext
4076 if { (ac_try="$ac_link"
4077 case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_link") 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } && {
4089 test -z "$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4091 } && test -s conftest$ac_exeext &&
4092 $as_test_x conftest$ac_exeext; then
4094 else
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4099 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4100 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103 ac_check_lib_save_LIBS=$LIBS
4104 LIBS="-ldnet $LIBS"
4105 cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h. */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4112 /* Override any GCC internal prototype to avoid an error.
4113 Use char because int might match the return type of a GCC
4114 builtin and then its argument prototype would still apply. */
4115 #ifdef __cplusplus
4116 extern "C"
4117 #endif
4118 char dnet_ntoa ();
4120 main ()
4122 return dnet_ntoa ();
4124 return 0;
4126 _ACEOF
4127 rm -f conftest.$ac_objext conftest$ac_exeext
4128 if { (ac_try="$ac_link"
4129 case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_link") 2>conftest.er1
4135 ac_status=$?
4136 grep -v '^ *+' conftest.er1 >conftest.err
4137 rm -f conftest.er1
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } && {
4141 test -z "$ac_c_werror_flag" ||
4142 test ! -s conftest.err
4143 } && test -s conftest$ac_exeext &&
4144 $as_test_x conftest$ac_exeext; then
4145 ac_cv_lib_dnet_dnet_ntoa=yes
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 ac_cv_lib_dnet_dnet_ntoa=no
4153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4154 conftest$ac_exeext conftest.$ac_ext
4155 LIBS=$ac_check_lib_save_LIBS
4157 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4158 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4159 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4160 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4163 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4164 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4165 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4166 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169 ac_check_lib_save_LIBS=$LIBS
4170 LIBS="-ldnet_stub $LIBS"
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h. */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4178 /* Override any GCC internal prototype to avoid an error.
4179 Use char because int might match the return type of a GCC
4180 builtin and then its argument prototype would still apply. */
4181 #ifdef __cplusplus
4182 extern "C"
4183 #endif
4184 char dnet_ntoa ();
4186 main ()
4188 return dnet_ntoa ();
4190 return 0;
4192 _ACEOF
4193 rm -f conftest.$ac_objext conftest$ac_exeext
4194 if { (ac_try="$ac_link"
4195 case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198 esac
4199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_link") 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } && {
4207 test -z "$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4209 } && test -s conftest$ac_exeext &&
4210 $as_test_x conftest$ac_exeext; then
4211 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 ac_cv_lib_dnet_stub_dnet_ntoa=no
4219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4220 conftest$ac_exeext conftest.$ac_ext
4221 LIBS=$ac_check_lib_save_LIBS
4223 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4224 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4225 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4226 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4233 conftest$ac_exeext conftest.$ac_ext
4234 LIBS="$ac_xsave_LIBS"
4236 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4237 # to get the SysV transport functions.
4238 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4239 # needs -lnsl.
4240 # The nsl library prevents programs from opening the X display
4241 # on Irix 5.2, according to T.E. Dickey.
4242 # The functions gethostbyname, getservbyname, and inet_addr are
4243 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4244 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4245 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4246 if test "${ac_cv_func_gethostbyname+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4257 #define gethostbyname innocuous_gethostbyname
4259 /* System header to define __stub macros and hopefully few prototypes,
4260 which can conflict with char gethostbyname (); below.
4261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 <limits.h> exists even on freestanding compilers. */
4264 #ifdef __STDC__
4265 # include <limits.h>
4266 #else
4267 # include <assert.h>
4268 #endif
4270 #undef gethostbyname
4272 /* Override any GCC internal prototype to avoid an error.
4273 Use char because int might match the return type of a GCC
4274 builtin and then its argument prototype would still apply. */
4275 #ifdef __cplusplus
4276 extern "C"
4277 #endif
4278 char gethostbyname ();
4279 /* The GNU C library defines this for functions which it implements
4280 to always fail with ENOSYS. Some functions are actually named
4281 something starting with __ and the normal name is an alias. */
4282 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4283 choke me
4284 #endif
4287 main ()
4289 return gethostbyname ();
4291 return 0;
4293 _ACEOF
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295 if { (ac_try="$ac_link"
4296 case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_link") 2>conftest.er1
4302 ac_status=$?
4303 grep -v '^ *+' conftest.er1 >conftest.err
4304 rm -f conftest.er1
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && {
4308 test -z "$ac_c_werror_flag" ||
4309 test ! -s conftest.err
4310 } && test -s conftest$ac_exeext &&
4311 $as_test_x conftest$ac_exeext; then
4312 ac_cv_func_gethostbyname=yes
4313 else
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 ac_cv_func_gethostbyname=no
4320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4321 conftest$ac_exeext conftest.$ac_ext
4323 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4324 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4326 if test $ac_cv_func_gethostbyname = no; then
4327 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4328 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4329 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 ac_check_lib_save_LIBS=$LIBS
4333 LIBS="-lnsl $LIBS"
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4341 /* Override any GCC internal prototype to avoid an error.
4342 Use char because int might match the return type of a GCC
4343 builtin and then its argument prototype would still apply. */
4344 #ifdef __cplusplus
4345 extern "C"
4346 #endif
4347 char gethostbyname ();
4349 main ()
4351 return gethostbyname ();
4353 return 0;
4355 _ACEOF
4356 rm -f conftest.$ac_objext conftest$ac_exeext
4357 if { (ac_try="$ac_link"
4358 case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361 esac
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_link") 2>conftest.er1
4364 ac_status=$?
4365 grep -v '^ *+' conftest.er1 >conftest.err
4366 rm -f conftest.er1
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && {
4370 test -z "$ac_c_werror_flag" ||
4371 test ! -s conftest.err
4372 } && test -s conftest$ac_exeext &&
4373 $as_test_x conftest$ac_exeext; then
4374 ac_cv_lib_nsl_gethostbyname=yes
4375 else
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4379 ac_cv_lib_nsl_gethostbyname=no
4382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4383 conftest$ac_exeext conftest.$ac_ext
4384 LIBS=$ac_check_lib_save_LIBS
4386 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4387 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4388 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4389 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4392 if test $ac_cv_lib_nsl_gethostbyname = no; then
4393 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4394 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4395 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398 ac_check_lib_save_LIBS=$LIBS
4399 LIBS="-lbsd $LIBS"
4400 cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h. */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4407 /* Override any GCC internal prototype to avoid an error.
4408 Use char because int might match the return type of a GCC
4409 builtin and then its argument prototype would still apply. */
4410 #ifdef __cplusplus
4411 extern "C"
4412 #endif
4413 char gethostbyname ();
4415 main ()
4417 return gethostbyname ();
4419 return 0;
4421 _ACEOF
4422 rm -f conftest.$ac_objext conftest$ac_exeext
4423 if { (ac_try="$ac_link"
4424 case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_link") 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } && {
4436 test -z "$ac_c_werror_flag" ||
4437 test ! -s conftest.err
4438 } && test -s conftest$ac_exeext &&
4439 $as_test_x conftest$ac_exeext; then
4440 ac_cv_lib_bsd_gethostbyname=yes
4441 else
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 ac_cv_lib_bsd_gethostbyname=no
4448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4449 conftest$ac_exeext conftest.$ac_ext
4450 LIBS=$ac_check_lib_save_LIBS
4452 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4453 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4454 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4455 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4461 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4462 # socket/setsockopt and other routines are undefined under SCO ODT
4463 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4464 # on later versions), says Simon Leinen: it contains gethostby*
4465 # variants that don't use the name server (or something). -lsocket
4466 # must be given before -lnsl if both are needed. We assume that
4467 # if connect needs -lnsl, so does gethostbyname.
4468 { echo "$as_me:$LINENO: checking for connect" >&5
4469 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4470 if test "${ac_cv_func_connect+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473 cat >conftest.$ac_ext <<_ACEOF
4474 /* confdefs.h. */
4475 _ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4479 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4481 #define connect innocuous_connect
4483 /* System header to define __stub macros and hopefully few prototypes,
4484 which can conflict with char connect (); below.
4485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4486 <limits.h> exists even on freestanding compilers. */
4488 #ifdef __STDC__
4489 # include <limits.h>
4490 #else
4491 # include <assert.h>
4492 #endif
4494 #undef connect
4496 /* Override any GCC internal prototype to avoid an error.
4497 Use char because int might match the return type of a GCC
4498 builtin and then its argument prototype would still apply. */
4499 #ifdef __cplusplus
4500 extern "C"
4501 #endif
4502 char connect ();
4503 /* The GNU C library defines this for functions which it implements
4504 to always fail with ENOSYS. Some functions are actually named
4505 something starting with __ and the normal name is an alias. */
4506 #if defined __stub_connect || defined __stub___connect
4507 choke me
4508 #endif
4511 main ()
4513 return connect ();
4515 return 0;
4517 _ACEOF
4518 rm -f conftest.$ac_objext conftest$ac_exeext
4519 if { (ac_try="$ac_link"
4520 case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523 esac
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_link") 2>conftest.er1
4526 ac_status=$?
4527 grep -v '^ *+' conftest.er1 >conftest.err
4528 rm -f conftest.er1
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } && {
4532 test -z "$ac_c_werror_flag" ||
4533 test ! -s conftest.err
4534 } && test -s conftest$ac_exeext &&
4535 $as_test_x conftest$ac_exeext; then
4536 ac_cv_func_connect=yes
4537 else
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 ac_cv_func_connect=no
4544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4545 conftest$ac_exeext conftest.$ac_ext
4547 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4548 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4550 if test $ac_cv_func_connect = no; then
4551 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4552 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4553 if test "${ac_cv_lib_socket_connect+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 ac_check_lib_save_LIBS=$LIBS
4557 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4558 cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h. */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4565 /* Override any GCC internal prototype to avoid an error.
4566 Use char because int might match the return type of a GCC
4567 builtin and then its argument prototype would still apply. */
4568 #ifdef __cplusplus
4569 extern "C"
4570 #endif
4571 char connect ();
4573 main ()
4575 return connect ();
4577 return 0;
4579 _ACEOF
4580 rm -f conftest.$ac_objext conftest$ac_exeext
4581 if { (ac_try="$ac_link"
4582 case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585 esac
4586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587 (eval "$ac_link") 2>conftest.er1
4588 ac_status=$?
4589 grep -v '^ *+' conftest.er1 >conftest.err
4590 rm -f conftest.er1
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && {
4594 test -z "$ac_c_werror_flag" ||
4595 test ! -s conftest.err
4596 } && test -s conftest$ac_exeext &&
4597 $as_test_x conftest$ac_exeext; then
4598 ac_cv_lib_socket_connect=yes
4599 else
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 ac_cv_lib_socket_connect=no
4606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4607 conftest$ac_exeext conftest.$ac_ext
4608 LIBS=$ac_check_lib_save_LIBS
4610 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4611 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4612 if test $ac_cv_lib_socket_connect = yes; then
4613 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4618 # Guillermo Gomez says -lposix is necessary on A/UX.
4619 { echo "$as_me:$LINENO: checking for remove" >&5
4620 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4621 if test "${ac_cv_func_remove+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4632 #define remove innocuous_remove
4634 /* System header to define __stub macros and hopefully few prototypes,
4635 which can conflict with char remove (); below.
4636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4637 <limits.h> exists even on freestanding compilers. */
4639 #ifdef __STDC__
4640 # include <limits.h>
4641 #else
4642 # include <assert.h>
4643 #endif
4645 #undef remove
4647 /* Override any GCC internal prototype to avoid an error.
4648 Use char because int might match the return type of a GCC
4649 builtin and then its argument prototype would still apply. */
4650 #ifdef __cplusplus
4651 extern "C"
4652 #endif
4653 char remove ();
4654 /* The GNU C library defines this for functions which it implements
4655 to always fail with ENOSYS. Some functions are actually named
4656 something starting with __ and the normal name is an alias. */
4657 #if defined __stub_remove || defined __stub___remove
4658 choke me
4659 #endif
4662 main ()
4664 return remove ();
4666 return 0;
4668 _ACEOF
4669 rm -f conftest.$ac_objext conftest$ac_exeext
4670 if { (ac_try="$ac_link"
4671 case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_link") 2>conftest.er1
4677 ac_status=$?
4678 grep -v '^ *+' conftest.er1 >conftest.err
4679 rm -f conftest.er1
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } && {
4683 test -z "$ac_c_werror_flag" ||
4684 test ! -s conftest.err
4685 } && test -s conftest$ac_exeext &&
4686 $as_test_x conftest$ac_exeext; then
4687 ac_cv_func_remove=yes
4688 else
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 ac_cv_func_remove=no
4695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4696 conftest$ac_exeext conftest.$ac_ext
4698 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4699 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4701 if test $ac_cv_func_remove = no; then
4702 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4703 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4704 if test "${ac_cv_lib_posix_remove+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707 ac_check_lib_save_LIBS=$LIBS
4708 LIBS="-lposix $LIBS"
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h. */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4716 /* Override any GCC internal prototype to avoid an error.
4717 Use char because int might match the return type of a GCC
4718 builtin and then its argument prototype would still apply. */
4719 #ifdef __cplusplus
4720 extern "C"
4721 #endif
4722 char remove ();
4724 main ()
4726 return remove ();
4728 return 0;
4730 _ACEOF
4731 rm -f conftest.$ac_objext conftest$ac_exeext
4732 if { (ac_try="$ac_link"
4733 case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_link") 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } && {
4745 test -z "$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest$ac_exeext &&
4748 $as_test_x conftest$ac_exeext; then
4749 ac_cv_lib_posix_remove=yes
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 ac_cv_lib_posix_remove=no
4757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4758 conftest$ac_exeext conftest.$ac_ext
4759 LIBS=$ac_check_lib_save_LIBS
4761 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4762 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4763 if test $ac_cv_lib_posix_remove = yes; then
4764 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4769 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4770 { echo "$as_me:$LINENO: checking for shmat" >&5
4771 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4772 if test "${ac_cv_func_shmat+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775 cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h. */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4781 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4783 #define shmat innocuous_shmat
4785 /* System header to define __stub macros and hopefully few prototypes,
4786 which can conflict with char shmat (); below.
4787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4788 <limits.h> exists even on freestanding compilers. */
4790 #ifdef __STDC__
4791 # include <limits.h>
4792 #else
4793 # include <assert.h>
4794 #endif
4796 #undef shmat
4798 /* Override any GCC internal prototype to avoid an error.
4799 Use char because int might match the return type of a GCC
4800 builtin and then its argument prototype would still apply. */
4801 #ifdef __cplusplus
4802 extern "C"
4803 #endif
4804 char shmat ();
4805 /* The GNU C library defines this for functions which it implements
4806 to always fail with ENOSYS. Some functions are actually named
4807 something starting with __ and the normal name is an alias. */
4808 #if defined __stub_shmat || defined __stub___shmat
4809 choke me
4810 #endif
4813 main ()
4815 return shmat ();
4817 return 0;
4819 _ACEOF
4820 rm -f conftest.$ac_objext conftest$ac_exeext
4821 if { (ac_try="$ac_link"
4822 case "(($ac_try" in
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4825 esac
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827 (eval "$ac_link") 2>conftest.er1
4828 ac_status=$?
4829 grep -v '^ *+' conftest.er1 >conftest.err
4830 rm -f conftest.er1
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } && {
4834 test -z "$ac_c_werror_flag" ||
4835 test ! -s conftest.err
4836 } && test -s conftest$ac_exeext &&
4837 $as_test_x conftest$ac_exeext; then
4838 ac_cv_func_shmat=yes
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4843 ac_cv_func_shmat=no
4846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4847 conftest$ac_exeext conftest.$ac_ext
4849 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4850 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4852 if test $ac_cv_func_shmat = no; then
4853 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4854 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4855 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 ac_check_lib_save_LIBS=$LIBS
4859 LIBS="-lipc $LIBS"
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4867 /* Override any GCC internal prototype to avoid an error.
4868 Use char because int might match the return type of a GCC
4869 builtin and then its argument prototype would still apply. */
4870 #ifdef __cplusplus
4871 extern "C"
4872 #endif
4873 char shmat ();
4875 main ()
4877 return shmat ();
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext conftest$ac_exeext
4883 if { (ac_try="$ac_link"
4884 case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887 esac
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_link") 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } && {
4896 test -z "$ac_c_werror_flag" ||
4897 test ! -s conftest.err
4898 } && test -s conftest$ac_exeext &&
4899 $as_test_x conftest$ac_exeext; then
4900 ac_cv_lib_ipc_shmat=yes
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4905 ac_cv_lib_ipc_shmat=no
4908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4909 conftest$ac_exeext conftest.$ac_ext
4910 LIBS=$ac_check_lib_save_LIBS
4912 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4913 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4914 if test $ac_cv_lib_ipc_shmat = yes; then
4915 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4921 # Check for libraries that X11R6 Xt/Xaw programs need.
4922 ac_save_LDFLAGS=$LDFLAGS
4923 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4924 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4925 # check for ICE first), but we must link in the order -lSM -lICE or
4926 # we get undefined symbols. So assume we have SM if we have ICE.
4927 # These have to be linked with before -lX11, unlike the other
4928 # libraries we check for below, so use a different variable.
4929 # John Interrante, Karl Berry
4930 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4931 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4932 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 ac_check_lib_save_LIBS=$LIBS
4936 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4944 /* Override any GCC internal prototype to avoid an error.
4945 Use char because int might match the return type of a GCC
4946 builtin and then its argument prototype would still apply. */
4947 #ifdef __cplusplus
4948 extern "C"
4949 #endif
4950 char IceConnectionNumber ();
4952 main ()
4954 return IceConnectionNumber ();
4956 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext conftest$ac_exeext
4960 if { (ac_try="$ac_link"
4961 case "(($ac_try" in
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4964 esac
4965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966 (eval "$ac_link") 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest$ac_exeext &&
4976 $as_test_x conftest$ac_exeext; then
4977 ac_cv_lib_ICE_IceConnectionNumber=yes
4978 else
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4982 ac_cv_lib_ICE_IceConnectionNumber=no
4985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4986 conftest$ac_exeext conftest.$ac_ext
4987 LIBS=$ac_check_lib_save_LIBS
4989 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4990 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4991 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4992 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4995 LDFLAGS=$ac_save_LDFLAGS
4999 for ac_prog in flex lex
5001 # Extract the first word of "$ac_prog", so it can be a program name with args.
5002 set dummy $ac_prog; ac_word=$2
5003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5005 if test "${ac_cv_prog_LEX+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008 if test -n "$LEX"; then
5009 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_LEX="$ac_prog"
5019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5022 done
5023 done
5024 IFS=$as_save_IFS
5028 LEX=$ac_cv_prog_LEX
5029 if test -n "$LEX"; then
5030 { echo "$as_me:$LINENO: result: $LEX" >&5
5031 echo "${ECHO_T}$LEX" >&6; }
5032 else
5033 { echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6; }
5038 test -n "$LEX" && break
5039 done
5040 test -n "$LEX" || LEX=":"
5042 if test "x$LEX" != "x:"; then
5043 cat >conftest.l <<_ACEOF
5045 a { ECHO; }
5046 b { REJECT; }
5047 c { yymore (); }
5048 d { yyless (1); }
5049 e { yyless (input () != 0); }
5050 f { unput (yytext[0]); }
5051 . { BEGIN INITIAL; }
5053 #ifdef YYTEXT_POINTER
5054 extern char *yytext;
5055 #endif
5057 main (void)
5059 return ! yylex () + ! yywrap ();
5061 _ACEOF
5062 { (ac_try="$LEX conftest.l"
5063 case "(($ac_try" in
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5066 esac
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$LEX conftest.l") 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }
5072 { echo "$as_me:$LINENO: checking lex output file root" >&5
5073 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5074 if test "${ac_cv_prog_lex_root+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5078 if test -f lex.yy.c; then
5079 ac_cv_prog_lex_root=lex.yy
5080 elif test -f lexyy.c; then
5081 ac_cv_prog_lex_root=lexyy
5082 else
5083 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5084 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5085 { (exit 1); exit 1; }; }
5088 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5089 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5090 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5092 if test -z "${LEXLIB+set}"; then
5093 { echo "$as_me:$LINENO: checking lex library" >&5
5094 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5095 if test "${ac_cv_lib_lex+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5099 ac_save_LIBS=$LIBS
5100 ac_cv_lib_lex='none needed'
5101 for ac_lib in '' -lfl -ll; do
5102 LIBS="$ac_lib $ac_save_LIBS"
5103 cat >conftest.$ac_ext <<_ACEOF
5104 `cat $LEX_OUTPUT_ROOT.c`
5105 _ACEOF
5106 rm -f conftest.$ac_objext conftest$ac_exeext
5107 if { (ac_try="$ac_link"
5108 case "(($ac_try" in
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5111 esac
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_link") 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && {
5120 test -z "$ac_c_werror_flag" ||
5121 test ! -s conftest.err
5122 } && test -s conftest$ac_exeext &&
5123 $as_test_x conftest$ac_exeext; then
5124 ac_cv_lib_lex=$ac_lib
5125 else
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5133 conftest$ac_exeext conftest.$ac_ext
5134 test "$ac_cv_lib_lex" != 'none needed' && break
5135 done
5136 LIBS=$ac_save_LIBS
5139 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5140 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5141 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5145 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5146 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5147 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 # POSIX says lex can declare yytext either as a pointer or an array; the
5151 # default is implementation-dependent. Figure out which it is, since
5152 # not all implementations provide the %pointer and %array declarations.
5153 ac_cv_prog_lex_yytext_pointer=no
5154 ac_save_LIBS=$LIBS
5155 LIBS="$LEXLIB $ac_save_LIBS"
5156 cat >conftest.$ac_ext <<_ACEOF
5157 #define YYTEXT_POINTER 1
5158 `cat $LEX_OUTPUT_ROOT.c`
5159 _ACEOF
5160 rm -f conftest.$ac_objext conftest$ac_exeext
5161 if { (ac_try="$ac_link"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_link") 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } && {
5174 test -z "$ac_c_werror_flag" ||
5175 test ! -s conftest.err
5176 } && test -s conftest$ac_exeext &&
5177 $as_test_x conftest$ac_exeext; then
5178 ac_cv_prog_lex_yytext_pointer=yes
5179 else
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5187 conftest$ac_exeext conftest.$ac_ext
5188 LIBS=$ac_save_LIBS
5191 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5192 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5193 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5195 cat >>confdefs.h <<\_ACEOF
5196 #define YYTEXT_POINTER 1
5197 _ACEOF
5200 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5204 for ac_prog in $LEX flex lex
5206 # Extract the first word of "$ac_prog", so it can be a program name with args.
5207 set dummy $ac_prog; ac_word=$2
5208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5210 if test "${ac_cv_prog_XLEX+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 if test -n "$XLEX"; then
5214 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_XLEX="$ac_prog"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5227 done
5228 done
5229 IFS=$as_save_IFS
5233 XLEX=$ac_cv_prog_XLEX
5234 if test -n "$XLEX"; then
5235 { echo "$as_me:$LINENO: result: $XLEX" >&5
5236 echo "${ECHO_T}$XLEX" >&6; }
5237 else
5238 { echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6; }
5243 test -n "$XLEX" && break
5244 done
5245 test -n "$XLEX" || XLEX="none"
5247 if test "$XLEX" = "none"
5248 then
5249 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5250 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5251 { (exit 1); exit 1; }; }
5254 for ac_prog in bison
5256 # Extract the first word of "$ac_prog", so it can be a program name with args.
5257 set dummy $ac_prog; ac_word=$2
5258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5260 if test "${ac_cv_prog_BISON+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263 if test -n "$BISON"; then
5264 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273 ac_cv_prog_BISON="$ac_prog"
5274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5277 done
5278 done
5279 IFS=$as_save_IFS
5283 BISON=$ac_cv_prog_BISON
5284 if test -n "$BISON"; then
5285 { echo "$as_me:$LINENO: result: $BISON" >&5
5286 echo "${ECHO_T}$BISON" >&6; }
5287 else
5288 { echo "$as_me:$LINENO: result: no" >&5
5289 echo "${ECHO_T}no" >&6; }
5293 test -n "$BISON" && break
5294 done
5295 test -n "$BISON" || BISON="none"
5297 if test "$BISON" = "none"
5298 then
5299 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5300 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5301 { (exit 1); exit 1; }; }
5304 if test -n "$ac_tool_prefix"; then
5305 for ac_prog in gas as
5307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5311 if test "${ac_cv_prog_AS+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 if test -n "$AS"; then
5315 ac_cv_prog_AS="$AS" # Let the user override the test.
5316 else
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5324 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5328 done
5329 done
5330 IFS=$as_save_IFS
5334 AS=$ac_cv_prog_AS
5335 if test -n "$AS"; then
5336 { echo "$as_me:$LINENO: result: $AS" >&5
5337 echo "${ECHO_T}$AS" >&6; }
5338 else
5339 { echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6; }
5344 test -n "$AS" && break
5345 done
5347 if test -z "$AS"; then
5348 ac_ct_AS=$AS
5349 for ac_prog in gas as
5351 # Extract the first word of "$ac_prog", so it can be a program name with args.
5352 set dummy $ac_prog; ac_word=$2
5353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5355 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358 if test -n "$ac_ct_AS"; then
5359 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_ac_ct_AS="$ac_prog"
5369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5372 done
5373 done
5374 IFS=$as_save_IFS
5378 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5379 if test -n "$ac_ct_AS"; then
5380 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5381 echo "${ECHO_T}$ac_ct_AS" >&6; }
5382 else
5383 { echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6; }
5388 test -n "$ac_ct_AS" && break
5389 done
5391 if test "x$ac_ct_AS" = x; then
5392 AS="as"
5393 else
5394 case $cross_compiling:$ac_tool_warned in
5395 yes:)
5396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5397 whose name does not start with the host triplet. If you think this
5398 configuration is useful to you, please write to autoconf@gnu.org." >&5
5399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5400 whose name does not start with the host triplet. If you think this
5401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5402 ac_tool_warned=yes ;;
5403 esac
5404 AS=$ac_ct_AS
5408 if test -n "$ac_tool_prefix"; then
5409 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5410 set dummy ${ac_tool_prefix}ld; ac_word=$2
5411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5413 if test "${ac_cv_prog_LD+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416 if test -n "$LD"; then
5417 ac_cv_prog_LD="$LD" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_prog_LD="${ac_tool_prefix}ld"
5427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5430 done
5431 done
5432 IFS=$as_save_IFS
5436 LD=$ac_cv_prog_LD
5437 if test -n "$LD"; then
5438 { echo "$as_me:$LINENO: result: $LD" >&5
5439 echo "${ECHO_T}$LD" >&6; }
5440 else
5441 { echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6; }
5447 if test -z "$ac_cv_prog_LD"; then
5448 ac_ct_LD=$LD
5449 # Extract the first word of "ld", so it can be a program name with args.
5450 set dummy ld; ac_word=$2
5451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5453 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 if test -n "$ac_ct_LD"; then
5457 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5466 ac_cv_prog_ac_ct_LD="ld"
5467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5470 done
5471 done
5472 IFS=$as_save_IFS
5476 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5477 if test -n "$ac_ct_LD"; then
5478 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5479 echo "${ECHO_T}$ac_ct_LD" >&6; }
5480 else
5481 { echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6; }
5485 if test "x$ac_ct_LD" = x; then
5486 LD="ld"
5487 else
5488 case $cross_compiling:$ac_tool_warned in
5489 yes:)
5490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5491 whose name does not start with the host triplet. If you think this
5492 configuration is useful to you, please write to autoconf@gnu.org." >&5
5493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5494 whose name does not start with the host triplet. If you think this
5495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5496 ac_tool_warned=yes ;;
5497 esac
5498 LD=$ac_ct_LD
5500 else
5501 LD="$ac_cv_prog_LD"
5504 if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5506 set dummy ${ac_tool_prefix}ar; ac_word=$2
5507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5509 if test "${ac_cv_prog_AR+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 if test -n "$AR"; then
5513 ac_cv_prog_AR="$AR" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522 ac_cv_prog_AR="${ac_tool_prefix}ar"
5523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5526 done
5527 done
5528 IFS=$as_save_IFS
5532 AR=$ac_cv_prog_AR
5533 if test -n "$AR"; then
5534 { echo "$as_me:$LINENO: result: $AR" >&5
5535 echo "${ECHO_T}$AR" >&6; }
5536 else
5537 { echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6; }
5543 if test -z "$ac_cv_prog_AR"; then
5544 ac_ct_AR=$AR
5545 # Extract the first word of "ar", so it can be a program name with args.
5546 set dummy ar; ac_word=$2
5547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5549 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552 if test -n "$ac_ct_AR"; then
5553 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5562 ac_cv_prog_ac_ct_AR="ar"
5563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5566 done
5567 done
5568 IFS=$as_save_IFS
5572 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5573 if test -n "$ac_ct_AR"; then
5574 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5575 echo "${ECHO_T}$ac_ct_AR" >&6; }
5576 else
5577 { echo "$as_me:$LINENO: result: no" >&5
5578 echo "${ECHO_T}no" >&6; }
5581 if test "x$ac_ct_AR" = x; then
5582 AR="ar"
5583 else
5584 case $cross_compiling:$ac_tool_warned in
5585 yes:)
5586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5587 whose name does not start with the host triplet. If you think this
5588 configuration is useful to you, please write to autoconf@gnu.org." >&5
5589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5590 whose name does not start with the host triplet. If you think this
5591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5592 ac_tool_warned=yes ;;
5593 esac
5594 AR=$ac_ct_AR
5596 else
5597 AR="$ac_cv_prog_AR"
5600 if test -n "$ac_tool_prefix"; then
5601 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5602 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5605 if test "${ac_cv_prog_RANLIB+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608 if test -n "$RANLIB"; then
5609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5622 done
5623 done
5624 IFS=$as_save_IFS
5628 RANLIB=$ac_cv_prog_RANLIB
5629 if test -n "$RANLIB"; then
5630 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5631 echo "${ECHO_T}$RANLIB" >&6; }
5632 else
5633 { echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6; }
5639 if test -z "$ac_cv_prog_RANLIB"; then
5640 ac_ct_RANLIB=$RANLIB
5641 # Extract the first word of "ranlib", so it can be a program name with args.
5642 set dummy ranlib; ac_word=$2
5643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5645 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648 if test -n "$ac_ct_RANLIB"; then
5649 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5658 ac_cv_prog_ac_ct_RANLIB="ranlib"
5659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5662 done
5663 done
5664 IFS=$as_save_IFS
5668 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5669 if test -n "$ac_ct_RANLIB"; then
5670 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5671 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5672 else
5673 { echo "$as_me:$LINENO: result: no" >&5
5674 echo "${ECHO_T}no" >&6; }
5677 if test "x$ac_ct_RANLIB" = x; then
5678 RANLIB=":"
5679 else
5680 case $cross_compiling:$ac_tool_warned in
5681 yes:)
5682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5683 whose name does not start with the host triplet. If you think this
5684 configuration is useful to you, please write to autoconf@gnu.org." >&5
5685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5686 whose name does not start with the host triplet. If you think this
5687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5688 ac_tool_warned=yes ;;
5689 esac
5690 RANLIB=$ac_ct_RANLIB
5692 else
5693 RANLIB="$ac_cv_prog_RANLIB"
5696 if test -n "$ac_tool_prefix"; then
5697 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5698 set dummy ${ac_tool_prefix}strip; ac_word=$2
5699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5701 if test "${ac_cv_prog_STRIP+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704 if test -n "$STRIP"; then
5705 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5718 done
5719 done
5720 IFS=$as_save_IFS
5724 STRIP=$ac_cv_prog_STRIP
5725 if test -n "$STRIP"; then
5726 { echo "$as_me:$LINENO: result: $STRIP" >&5
5727 echo "${ECHO_T}$STRIP" >&6; }
5728 else
5729 { echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6; }
5735 if test -z "$ac_cv_prog_STRIP"; then
5736 ac_ct_STRIP=$STRIP
5737 # Extract the first word of "strip", so it can be a program name with args.
5738 set dummy strip; ac_word=$2
5739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5741 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744 if test -n "$ac_ct_STRIP"; then
5745 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754 ac_cv_prog_ac_ct_STRIP="strip"
5755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 break 2
5758 done
5759 done
5760 IFS=$as_save_IFS
5764 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5765 if test -n "$ac_ct_STRIP"; then
5766 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5767 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5768 else
5769 { echo "$as_me:$LINENO: result: no" >&5
5770 echo "${ECHO_T}no" >&6; }
5773 if test "x$ac_ct_STRIP" = x; then
5774 STRIP="strip"
5775 else
5776 case $cross_compiling:$ac_tool_warned in
5777 yes:)
5778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5779 whose name does not start with the host triplet. If you think this
5780 configuration is useful to you, please write to autoconf@gnu.org." >&5
5781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5782 whose name does not start with the host triplet. If you think this
5783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5784 ac_tool_warned=yes ;;
5785 esac
5786 STRIP=$ac_ct_STRIP
5788 else
5789 STRIP="$ac_cv_prog_STRIP"
5792 if test -n "$ac_tool_prefix"; then
5793 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}windres; ac_word=$2
5795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5797 if test "${ac_cv_prog_WINDRES+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800 if test -n "$WINDRES"; then
5801 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5814 done
5815 done
5816 IFS=$as_save_IFS
5820 WINDRES=$ac_cv_prog_WINDRES
5821 if test -n "$WINDRES"; then
5822 { echo "$as_me:$LINENO: result: $WINDRES" >&5
5823 echo "${ECHO_T}$WINDRES" >&6; }
5824 else
5825 { echo "$as_me:$LINENO: result: no" >&5
5826 echo "${ECHO_T}no" >&6; }
5831 if test -z "$ac_cv_prog_WINDRES"; then
5832 ac_ct_WINDRES=$WINDRES
5833 # Extract the first word of "windres", so it can be a program name with args.
5834 set dummy windres; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 if test -n "$ac_ct_WINDRES"; then
5841 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_prog_ac_ct_WINDRES="windres"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5854 done
5855 done
5856 IFS=$as_save_IFS
5860 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5861 if test -n "$ac_ct_WINDRES"; then
5862 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5863 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
5864 else
5865 { echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6; }
5869 if test "x$ac_ct_WINDRES" = x; then
5870 WINDRES="false"
5871 else
5872 case $cross_compiling:$ac_tool_warned in
5873 yes:)
5874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5875 whose name does not start with the host triplet. If you think this
5876 configuration is useful to you, please write to autoconf@gnu.org." >&5
5877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5878 whose name does not start with the host triplet. If you think this
5879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5880 ac_tool_warned=yes ;;
5881 esac
5882 WINDRES=$ac_ct_WINDRES
5884 else
5885 WINDRES="$ac_cv_prog_WINDRES"
5888 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5889 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5890 LN_S=$as_ln_s
5891 if test "$LN_S" = "ln -s"; then
5892 { echo "$as_me:$LINENO: result: yes" >&5
5893 echo "${ECHO_T}yes" >&6; }
5894 else
5895 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5896 echo "${ECHO_T}no, using $LN_S" >&6; }
5899 { echo "$as_me:$LINENO: checking whether ln works" >&5
5900 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
5901 rm -f conf$$ conf$$.file
5902 echo >conf$$.file
5903 if ln conf$$.file conf$$ 2>/dev/null; then
5904 LN=ln
5906 { echo "$as_me:$LINENO: result: yes" >&5
5907 echo "${ECHO_T}yes" >&6; }
5908 else
5909 LN="cp -p"
5911 { echo "$as_me:$LINENO: result: no, using $LN" >&5
5912 echo "${ECHO_T}no, using $LN" >&6; }
5914 rm -f conf$$ conf$$.file
5915 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5916 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5917 if test "${ac_cv_path_GREP+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920 # Extract the first word of "grep ggrep" to use in msg output
5921 if test -z "$GREP"; then
5922 set dummy grep ggrep; ac_prog_name=$2
5923 if test "${ac_cv_path_GREP+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926 ac_path_GREP_found=false
5927 # Loop through the user's path and test for each of PROGNAME-LIST
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_prog in grep ggrep; do
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5936 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5937 # Check for GNU ac_path_GREP and select it if it is found.
5938 # Check for GNU $ac_path_GREP
5939 case `"$ac_path_GREP" --version 2>&1` in
5940 *GNU*)
5941 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5943 ac_count=0
5944 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5945 while :
5947 cat "conftest.in" "conftest.in" >"conftest.tmp"
5948 mv "conftest.tmp" "conftest.in"
5949 cp "conftest.in" "conftest.nl"
5950 echo 'GREP' >> "conftest.nl"
5951 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5953 ac_count=`expr $ac_count + 1`
5954 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5955 # Best one so far, save it but keep looking for a better one
5956 ac_cv_path_GREP="$ac_path_GREP"
5957 ac_path_GREP_max=$ac_count
5959 # 10*(2^10) chars as input seems more than enough
5960 test $ac_count -gt 10 && break
5961 done
5962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5963 esac
5966 $ac_path_GREP_found && break 3
5967 done
5968 done
5970 done
5971 IFS=$as_save_IFS
5976 GREP="$ac_cv_path_GREP"
5977 if test -z "$GREP"; then
5978 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5979 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5980 { (exit 1); exit 1; }; }
5983 else
5984 ac_cv_path_GREP=$GREP
5989 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5990 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5991 GREP="$ac_cv_path_GREP"
5994 { echo "$as_me:$LINENO: checking for egrep" >&5
5995 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5996 if test "${ac_cv_path_EGREP+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6000 then ac_cv_path_EGREP="$GREP -E"
6001 else
6002 # Extract the first word of "egrep" to use in msg output
6003 if test -z "$EGREP"; then
6004 set dummy egrep; ac_prog_name=$2
6005 if test "${ac_cv_path_EGREP+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 ac_path_EGREP_found=false
6009 # Loop through the user's path and test for each of PROGNAME-LIST
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_prog in egrep; do
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6018 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6019 # Check for GNU ac_path_EGREP and select it if it is found.
6020 # Check for GNU $ac_path_EGREP
6021 case `"$ac_path_EGREP" --version 2>&1` in
6022 *GNU*)
6023 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6025 ac_count=0
6026 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6027 while :
6029 cat "conftest.in" "conftest.in" >"conftest.tmp"
6030 mv "conftest.tmp" "conftest.in"
6031 cp "conftest.in" "conftest.nl"
6032 echo 'EGREP' >> "conftest.nl"
6033 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6035 ac_count=`expr $ac_count + 1`
6036 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6037 # Best one so far, save it but keep looking for a better one
6038 ac_cv_path_EGREP="$ac_path_EGREP"
6039 ac_path_EGREP_max=$ac_count
6041 # 10*(2^10) chars as input seems more than enough
6042 test $ac_count -gt 10 && break
6043 done
6044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6045 esac
6048 $ac_path_EGREP_found && break 3
6049 done
6050 done
6052 done
6053 IFS=$as_save_IFS
6058 EGREP="$ac_cv_path_EGREP"
6059 if test -z "$EGREP"; then
6060 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6061 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6062 { (exit 1); exit 1; }; }
6065 else
6066 ac_cv_path_EGREP=$EGREP
6072 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6073 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6074 EGREP="$ac_cv_path_EGREP"
6077 # Extract the first word of "ldconfig", so it can be a program name with args.
6078 set dummy ldconfig; ac_word=$2
6079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6081 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 case $LDCONFIG in
6085 [\\/]* | ?:[\\/]*)
6086 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in /sbin /usr/sbin $PATH
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6100 done
6101 done
6102 IFS=$as_save_IFS
6104 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6106 esac
6108 LDCONFIG=$ac_cv_path_LDCONFIG
6109 if test -n "$LDCONFIG"; then
6110 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6111 echo "${ECHO_T}$LDCONFIG" >&6; }
6112 else
6113 { echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6; }
6118 # Find a good install program. We prefer a C program (faster),
6119 # so one script is as good as another. But avoid the broken or
6120 # incompatible versions:
6121 # SysV /etc/install, /usr/sbin/install
6122 # SunOS /usr/etc/install
6123 # IRIX /sbin/install
6124 # AIX /bin/install
6125 # AmigaOS /C/install, which installs bootblocks on floppy discs
6126 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6127 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6128 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6129 # OS/2's system install, which has a completely different semantic
6130 # ./install, which can be erroneously created by make from ./install.sh.
6131 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6132 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6133 if test -z "$INSTALL"; then
6134 if test "${ac_cv_path_install+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 # Account for people who put trailing slashes in PATH elements.
6143 case $as_dir/ in
6144 ./ | .// | /cC/* | \
6145 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6146 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6147 /usr/ucb/* ) ;;
6149 # OSF1 and SCO ODT 3.0 have their own names for install.
6150 # Don't use installbsd from OSF since it installs stuff as root
6151 # by default.
6152 for ac_prog in ginstall scoinst install; do
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6155 if test $ac_prog = install &&
6156 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6157 # AIX install. It has an incompatible calling convention.
6159 elif test $ac_prog = install &&
6160 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6161 # program-specific install script used by HP pwplus--don't use.
6163 else
6164 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6165 break 3
6168 done
6169 done
6171 esac
6172 done
6173 IFS=$as_save_IFS
6177 if test "${ac_cv_path_install+set}" = set; then
6178 INSTALL=$ac_cv_path_install
6179 else
6180 # As a last resort, use the slow shell script. Don't cache a
6181 # value for INSTALL within a source directory, because that will
6182 # break other packages using the cache if that directory is
6183 # removed, or if the value is a relative name.
6184 INSTALL=$ac_install_sh
6187 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6188 echo "${ECHO_T}$INSTALL" >&6; }
6190 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6191 # It thinks the first close brace ends the variable substitution.
6192 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6194 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6196 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6198 case "$INSTALL" in
6199 [\\/$]* | ?:[\\/]* ) ;;
6200 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6201 esac
6203 for ac_prog in lclint lint
6205 # Extract the first word of "$ac_prog", so it can be a program name with args.
6206 set dummy $ac_prog; ac_word=$2
6207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6209 if test "${ac_cv_prog_LINT+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 if test -n "$LINT"; then
6213 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_LINT="$ac_prog"
6223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6226 done
6227 done
6228 IFS=$as_save_IFS
6232 LINT=$ac_cv_prog_LINT
6233 if test -n "$LINT"; then
6234 { echo "$as_me:$LINENO: result: $LINT" >&5
6235 echo "${ECHO_T}$LINT" >&6; }
6236 else
6237 { echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6; }
6242 test -n "$LINT" && break
6243 done
6245 if test "$LINT" = "lint"
6246 then
6247 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6252 for ac_prog in fontforge
6254 # Extract the first word of "$ac_prog", so it can be a program name with args.
6255 set dummy $ac_prog; ac_word=$2
6256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6258 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261 if test -n "$FONTFORGE"; then
6262 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_FONTFORGE="$ac_prog"
6272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6275 done
6276 done
6277 IFS=$as_save_IFS
6281 FONTFORGE=$ac_cv_prog_FONTFORGE
6282 if test -n "$FONTFORGE"; then
6283 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6284 echo "${ECHO_T}$FONTFORGE" >&6; }
6285 else
6286 { echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6; }
6291 test -n "$FONTFORGE" && break
6292 done
6293 test -n "$FONTFORGE" || FONTFORGE="false"
6295 for ac_prog in pkg-config
6297 # Extract the first word of "$ac_prog", so it can be a program name with args.
6298 set dummy $ac_prog; ac_word=$2
6299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6301 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 if test -n "$PKG_CONFIG"; then
6305 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_PKG_CONFIG="$ac_prog"
6315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6318 done
6319 done
6320 IFS=$as_save_IFS
6324 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6325 if test -n "$PKG_CONFIG"; then
6326 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6327 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6328 else
6329 { echo "$as_me:$LINENO: result: no" >&5
6330 echo "${ECHO_T}no" >&6; }
6334 test -n "$PKG_CONFIG" && break
6335 done
6336 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6339 case $host_cpu in
6340 *i[3456789]86*)
6341 # Extract the first word of "prelink", so it can be a program name with args.
6342 set dummy prelink; ac_word=$2
6343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6345 if test "${ac_cv_path_PRELINK+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348 case $PRELINK in
6349 [\\/]* | ?:[\\/]*)
6350 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in /sbin /usr/sbin $PATH
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 break 2
6364 done
6365 done
6366 IFS=$as_save_IFS
6368 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6370 esac
6372 PRELINK=$ac_cv_path_PRELINK
6373 if test -n "$PRELINK"; then
6374 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6375 echo "${ECHO_T}$PRELINK" >&6; }
6376 else
6377 { echo "$as_me:$LINENO: result: no" >&5
6378 echo "${ECHO_T}no" >&6; }
6383 esac
6387 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6388 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6389 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392 ac_check_lib_save_LIBS=$LIBS
6393 LIBS="-li386 $LIBS"
6394 cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h. */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6401 /* Override any GCC internal prototype to avoid an error.
6402 Use char because int might match the return type of a GCC
6403 builtin and then its argument prototype would still apply. */
6404 #ifdef __cplusplus
6405 extern "C"
6406 #endif
6407 char i386_set_ldt ();
6409 main ()
6411 return i386_set_ldt ();
6413 return 0;
6415 _ACEOF
6416 rm -f conftest.$ac_objext conftest$ac_exeext
6417 if { (ac_try="$ac_link"
6418 case "(($ac_try" in
6419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420 *) ac_try_echo=$ac_try;;
6421 esac
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423 (eval "$ac_link") 2>conftest.er1
6424 ac_status=$?
6425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && {
6430 test -z "$ac_c_werror_flag" ||
6431 test ! -s conftest.err
6432 } && test -s conftest$ac_exeext &&
6433 $as_test_x conftest$ac_exeext; then
6434 ac_cv_lib_i386_i386_set_ldt=yes
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 ac_cv_lib_i386_i386_set_ldt=no
6442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6443 conftest$ac_exeext conftest.$ac_ext
6444 LIBS=$ac_check_lib_save_LIBS
6446 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6447 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
6448 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
6449 cat >>confdefs.h <<_ACEOF
6450 #define HAVE_LIBI386 1
6451 _ACEOF
6453 LIBS="-li386 $LIBS"
6458 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6459 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6460 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 ac_check_lib_save_LIBS=$LIBS
6464 LIBS="-lossaudio $LIBS"
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6472 /* Override any GCC internal prototype to avoid an error.
6473 Use char because int might match the return type of a GCC
6474 builtin and then its argument prototype would still apply. */
6475 #ifdef __cplusplus
6476 extern "C"
6477 #endif
6478 char _oss_ioctl ();
6480 main ()
6482 return _oss_ioctl ();
6484 return 0;
6486 _ACEOF
6487 rm -f conftest.$ac_objext conftest$ac_exeext
6488 if { (ac_try="$ac_link"
6489 case "(($ac_try" in
6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491 *) ac_try_echo=$ac_try;;
6492 esac
6493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6494 (eval "$ac_link") 2>conftest.er1
6495 ac_status=$?
6496 grep -v '^ *+' conftest.er1 >conftest.err
6497 rm -f conftest.er1
6498 cat conftest.err >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } && {
6501 test -z "$ac_c_werror_flag" ||
6502 test ! -s conftest.err
6503 } && test -s conftest$ac_exeext &&
6504 $as_test_x conftest$ac_exeext; then
6505 ac_cv_lib_ossaudio__oss_ioctl=yes
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6510 ac_cv_lib_ossaudio__oss_ioctl=no
6513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6514 conftest$ac_exeext conftest.$ac_ext
6515 LIBS=$ac_check_lib_save_LIBS
6517 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6518 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6519 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6520 cat >>confdefs.h <<_ACEOF
6521 #define HAVE_LIBOSSAUDIO 1
6522 _ACEOF
6524 LIBS="-lossaudio $LIBS"
6529 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6530 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
6531 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534 ac_check_lib_save_LIBS=$LIBS
6535 LIBS="-lxpg4 $LIBS"
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h. */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6543 /* Override any GCC internal prototype to avoid an error.
6544 Use char because int might match the return type of a GCC
6545 builtin and then its argument prototype would still apply. */
6546 #ifdef __cplusplus
6547 extern "C"
6548 #endif
6549 char _xpg4_setrunelocale ();
6551 main ()
6553 return _xpg4_setrunelocale ();
6555 return 0;
6557 _ACEOF
6558 rm -f conftest.$ac_objext conftest$ac_exeext
6559 if { (ac_try="$ac_link"
6560 case "(($ac_try" in
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6563 esac
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_link") 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } && {
6572 test -z "$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6574 } && test -s conftest$ac_exeext &&
6575 $as_test_x conftest$ac_exeext; then
6576 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6585 conftest$ac_exeext conftest.$ac_ext
6586 LIBS=$ac_check_lib_save_LIBS
6588 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6589 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
6590 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6591 cat >>confdefs.h <<_ACEOF
6592 #define HAVE_LIBXPG4 1
6593 _ACEOF
6595 LIBS="-lxpg4 $LIBS"
6599 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6600 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
6601 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 ac_check_lib_save_LIBS=$LIBS
6605 LIBS="-lpthread $LIBS"
6606 cat >conftest.$ac_ext <<_ACEOF
6607 /* confdefs.h. */
6608 _ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6613 /* Override any GCC internal prototype to avoid an error.
6614 Use char because int might match the return type of a GCC
6615 builtin and then its argument prototype would still apply. */
6616 #ifdef __cplusplus
6617 extern "C"
6618 #endif
6619 char pthread_create ();
6621 main ()
6623 return pthread_create ();
6625 return 0;
6627 _ACEOF
6628 rm -f conftest.$ac_objext conftest$ac_exeext
6629 if { (ac_try="$ac_link"
6630 case "(($ac_try" in
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6633 esac
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_link") 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest$ac_exeext &&
6645 $as_test_x conftest$ac_exeext; then
6646 ac_cv_lib_pthread_pthread_create=yes
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6651 ac_cv_lib_pthread_pthread_create=no
6654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6655 conftest$ac_exeext conftest.$ac_ext
6656 LIBS=$ac_check_lib_save_LIBS
6658 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6659 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
6660 if test $ac_cv_lib_pthread_pthread_create = yes; then
6661 LIBPTHREAD="-lpthread"
6666 XLIB=""
6668 XFILES=""
6670 OPENGLFILES=""
6672 GLU32FILES=""
6674 OPENGL_LIBS=""
6676 QUARTZFILES=""
6680 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6681 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6682 if test "${ac_cv_header_stdc+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 #include <stdlib.h>
6692 #include <stdarg.h>
6693 #include <string.h>
6694 #include <float.h>
6697 main ()
6701 return 0;
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (ac_try="$ac_compile"
6706 case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709 esac
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_compile") 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && {
6718 test -z "$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 } && test -s conftest.$ac_objext; then
6721 ac_cv_header_stdc=yes
6722 else
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 ac_cv_header_stdc=no
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 if test $ac_cv_header_stdc = yes; then
6732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6733 cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h. */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739 #include <string.h>
6741 _ACEOF
6742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6743 $EGREP "memchr" >/dev/null 2>&1; then
6745 else
6746 ac_cv_header_stdc=no
6748 rm -f conftest*
6752 if test $ac_cv_header_stdc = yes; then
6753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6754 cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h. */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 #include <stdlib.h>
6762 _ACEOF
6763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6764 $EGREP "free" >/dev/null 2>&1; then
6766 else
6767 ac_cv_header_stdc=no
6769 rm -f conftest*
6773 if test $ac_cv_header_stdc = yes; then
6774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6775 if test "$cross_compiling" = yes; then
6777 else
6778 cat >conftest.$ac_ext <<_ACEOF
6779 /* confdefs.h. */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6784 #include <ctype.h>
6785 #include <stdlib.h>
6786 #if ((' ' & 0x0FF) == 0x020)
6787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6789 #else
6790 # define ISLOWER(c) \
6791 (('a' <= (c) && (c) <= 'i') \
6792 || ('j' <= (c) && (c) <= 'r') \
6793 || ('s' <= (c) && (c) <= 'z'))
6794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6795 #endif
6797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6799 main ()
6801 int i;
6802 for (i = 0; i < 256; i++)
6803 if (XOR (islower (i), ISLOWER (i))
6804 || toupper (i) != TOUPPER (i))
6805 return 2;
6806 return 0;
6808 _ACEOF
6809 rm -f conftest$ac_exeext
6810 if { (ac_try="$ac_link"
6811 case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_link") 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6820 { (case "(($ac_try" in
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6823 esac
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825 (eval "$ac_try") 2>&5
6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }; then
6830 else
6831 echo "$as_me: program exited with status $ac_status" >&5
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6835 ( exit $ac_status )
6836 ac_cv_header_stdc=no
6838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6844 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6845 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6846 if test $ac_cv_header_stdc = yes; then
6848 cat >>confdefs.h <<\_ACEOF
6849 #define STDC_HEADERS 1
6850 _ACEOF
6854 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6864 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6865 inttypes.h stdint.h unistd.h
6867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h. */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 $ac_includes_default
6881 #include <$ac_header>
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888 esac
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 eval "$as_ac_Header=yes"
6901 else
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 eval "$as_ac_Header=no"
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 ac_res=`eval echo '${'$as_ac_Header'}'`
6911 { echo "$as_me:$LINENO: result: $ac_res" >&5
6912 echo "${ECHO_T}$ac_res" >&6; }
6913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6914 cat >>confdefs.h <<_ACEOF
6915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6916 _ACEOF
6920 done
7032 for ac_header in \
7033 AudioUnit/AudioUnit.h \
7034 Carbon/Carbon.h \
7035 CoreAudio/CoreAudio.h \
7036 DiskArbitration/DiskArbitration.h \
7037 IOKit/IOKitLib.h \
7038 alsa/asoundlib.h \
7039 arpa/inet.h \
7040 arpa/nameser.h \
7041 asm/types.h \
7042 capi20.h \
7043 cups/cups.h \
7044 curses.h \
7045 direct.h \
7046 dlfcn.h \
7047 elf.h \
7048 float.h \
7049 fontconfig/fontconfig.h \
7050 getopt.h \
7051 ieeefp.h \
7052 io.h \
7053 jack/jack.h \
7054 jpeglib.h \
7055 lber.h \
7056 lcms.h \
7057 lcms/lcms.h \
7058 ldap.h \
7059 libaudioio.h \
7060 link.h \
7061 linux/cdrom.h \
7062 linux/compiler.h \
7063 linux/hdreg.h \
7064 linux/input.h \
7065 linux/ioctl.h \
7066 linux/joystick.h \
7067 linux/major.h \
7068 linux/param.h \
7069 linux/serial.h \
7070 linux/ucdrom.h \
7071 mach/mach.h \
7072 mach/machine.h \
7073 machine/cpu.h \
7074 machine/limits.h \
7075 machine/soundcard.h \
7076 mntent.h \
7077 ncurses.h \
7078 netdb.h \
7079 netinet/in.h \
7080 netinet/in_systm.h \
7081 netinet/tcp.h \
7082 netinet/tcp_fsm.h \
7083 openssl/err.h \
7084 openssl/ssl.h \
7085 poll.h \
7086 process.h \
7087 pthread.h \
7088 pwd.h \
7089 regex.h \
7090 sched.h \
7091 scsi/scsi.h \
7092 scsi/scsi_ioctl.h \
7093 scsi/sg.h \
7094 soundcard.h \
7095 stdint.h \
7096 strings.h \
7097 sys/asoundlib.h \
7098 sys/cdio.h \
7099 sys/elf32.h \
7100 sys/epoll.h \
7101 sys/errno.h \
7102 sys/event.h \
7103 sys/exec_elf.h \
7104 sys/filio.h \
7105 sys/ioctl.h \
7106 sys/ipc.h \
7107 sys/limits.h \
7108 sys/link.h \
7109 sys/lwp.h \
7110 sys/mman.h \
7111 sys/modem.h \
7112 sys/msg.h \
7113 sys/mtio.h \
7114 sys/param.h \
7115 sys/poll.h \
7116 sys/prctl.h \
7117 sys/ptrace.h \
7118 sys/reg.h \
7119 sys/resource.h \
7120 sys/scsiio.h \
7121 sys/shm.h \
7122 sys/signal.h \
7123 sys/socket.h \
7124 sys/sockio.h \
7125 sys/soundcard.h \
7126 sys/statvfs.h \
7127 sys/strtio.h \
7128 sys/syscall.h \
7129 sys/sysctl.h \
7130 sys/time.h \
7131 sys/times.h \
7132 sys/uio.h \
7133 sys/un.h \
7134 sys/vm86.h \
7135 sys/wait.h \
7136 syscall.h \
7137 termios.h \
7138 unicode/ubidi.h \
7139 unistd.h \
7140 utime.h \
7141 valgrind/memcheck.h
7144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 ac_res=`eval echo '${'$as_ac_Header'}'`
7152 { echo "$as_me:$LINENO: result: $ac_res" >&5
7153 echo "${ECHO_T}$ac_res" >&6; }
7154 else
7155 # Is the header compilable?
7156 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7158 cat >conftest.$ac_ext <<_ACEOF
7159 /* confdefs.h. */
7160 _ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h. */
7164 $ac_includes_default
7165 #include <$ac_header>
7166 _ACEOF
7167 rm -f conftest.$ac_objext
7168 if { (ac_try="$ac_compile"
7169 case "(($ac_try" in
7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7172 esac
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174 (eval "$ac_compile") 2>conftest.er1
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && {
7181 test -z "$ac_c_werror_flag" ||
7182 test ! -s conftest.err
7183 } && test -s conftest.$ac_objext; then
7184 ac_header_compiler=yes
7185 else
7186 echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7189 ac_header_compiler=no
7192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7194 echo "${ECHO_T}$ac_header_compiler" >&6; }
7196 # Is the header present?
7197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7199 cat >conftest.$ac_ext <<_ACEOF
7200 /* confdefs.h. */
7201 _ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7205 #include <$ac_header>
7206 _ACEOF
7207 if { (ac_try="$ac_cpp conftest.$ac_ext"
7208 case "(($ac_try" in
7209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7210 *) ac_try_echo=$ac_try;;
7211 esac
7212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } >/dev/null && {
7220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7221 test ! -s conftest.err
7222 }; then
7223 ac_header_preproc=yes
7224 else
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7228 ac_header_preproc=no
7231 rm -f conftest.err conftest.$ac_ext
7232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7233 echo "${ECHO_T}$ac_header_preproc" >&6; }
7235 # So? What about this header?
7236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7237 yes:no: )
7238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7242 ac_header_preproc=yes
7244 no:yes:* )
7245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7257 ( cat <<\_ASBOX
7258 ## ------------------------------------ ##
7259 ## Report this to wine-devel@winehq.org ##
7260 ## ------------------------------------ ##
7261 _ASBOX
7262 ) | sed "s/^/$as_me: WARNING: /" >&2
7264 esac
7265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270 eval "$as_ac_Header=\$ac_header_preproc"
7272 ac_res=`eval echo '${'$as_ac_Header'}'`
7273 { echo "$as_me:$LINENO: result: $ac_res" >&5
7274 echo "${ECHO_T}$ac_res" >&6; }
7277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7278 cat >>confdefs.h <<_ACEOF
7279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7280 _ACEOF
7284 done
7286 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7287 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7288 if test "${ac_cv_header_stat_broken+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291 cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h. */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 #include <sys/types.h>
7298 #include <sys/stat.h>
7300 #if defined S_ISBLK && defined S_IFDIR
7301 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7302 #endif
7304 #if defined S_ISBLK && defined S_IFCHR
7305 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7306 #endif
7308 #if defined S_ISLNK && defined S_IFREG
7309 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7310 #endif
7312 #if defined S_ISSOCK && defined S_IFREG
7313 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7314 #endif
7316 _ACEOF
7317 rm -f conftest.$ac_objext
7318 if { (ac_try="$ac_compile"
7319 case "(($ac_try" in
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7322 esac
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_compile") 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.$ac_objext; then
7334 ac_cv_header_stat_broken=no
7335 else
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7339 ac_cv_header_stat_broken=yes
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7345 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7346 if test $ac_cv_header_stat_broken = yes; then
7348 cat >>confdefs.h <<\_ACEOF
7349 #define STAT_MACROS_BROKEN 1
7350 _ACEOF
7360 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368 cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h. */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 #include <sys/types.h>
7375 #if HAVE_SYS_PARAM_H
7376 # include <sys/param.h>
7377 #endif
7379 #include <$ac_header>
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 eval "$as_ac_Header=yes"
7399 else
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7403 eval "$as_ac_Header=no"
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 ac_res=`eval echo '${'$as_ac_Header'}'`
7409 { echo "$as_me:$LINENO: result: $ac_res" >&5
7410 echo "${ECHO_T}$ac_res" >&6; }
7411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7412 cat >>confdefs.h <<_ACEOF
7413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7414 _ACEOF
7418 done
7427 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
7429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435 cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h. */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 #include <sys/types.h>
7442 #if HAVE_SYS_SOCKET_H
7443 # include <sys/socket.h>
7444 #endif
7446 #include <$ac_header>
7447 _ACEOF
7448 rm -f conftest.$ac_objext
7449 if { (ac_try="$ac_compile"
7450 case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453 esac
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7456 ac_status=$?
7457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.$ac_objext; then
7465 eval "$as_ac_Header=yes"
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 eval "$as_ac_Header=no"
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 ac_res=`eval echo '${'$as_ac_Header'}'`
7476 { echo "$as_me:$LINENO: result: $ac_res" >&5
7477 echo "${ECHO_T}$ac_res" >&6; }
7478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7479 cat >>confdefs.h <<_ACEOF
7480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7481 _ACEOF
7485 done
7489 for ac_header in linux/ipx.h
7491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497 cat >conftest.$ac_ext <<_ACEOF
7498 /* confdefs.h. */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7503 #include <sys/types.h>
7504 #ifdef HAVE_ASM_TYPES_H
7505 # include <asm/types.h>
7506 #endif
7507 #if HAVE_SYS_SOCKET_H
7508 # include <sys/socket.h>
7509 #endif
7511 #include <$ac_header>
7512 _ACEOF
7513 rm -f conftest.$ac_objext
7514 if { (ac_try="$ac_compile"
7515 case "(($ac_try" in
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7518 esac
7519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7520 (eval "$ac_compile") 2>conftest.er1
7521 ac_status=$?
7522 grep -v '^ *+' conftest.er1 >conftest.err
7523 rm -f conftest.er1
7524 cat conftest.err >&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } && {
7527 test -z "$ac_c_werror_flag" ||
7528 test ! -s conftest.err
7529 } && test -s conftest.$ac_objext; then
7530 eval "$as_ac_Header=yes"
7531 else
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 eval "$as_ac_Header=no"
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 ac_res=`eval echo '${'$as_ac_Header'}'`
7541 { echo "$as_me:$LINENO: result: $ac_res" >&5
7542 echo "${ECHO_T}$ac_res" >&6; }
7543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7544 cat >>confdefs.h <<_ACEOF
7545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7546 _ACEOF
7550 done
7554 for ac_header in resolv.h
7556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <sys/types.h>
7569 #if HAVE_SYS_SOCKET_H
7570 # include <sys/socket.h>
7571 #endif
7572 #if HAVE_NETINET_IN_H
7573 # include <netinet/in.h>
7574 #endif
7575 #if HAVE_ARPA_NAMESER_H
7576 # include <arpa/nameser.h>
7577 #endif
7579 #include <$ac_header>
7580 _ACEOF
7581 rm -f conftest.$ac_objext
7582 if { (ac_try="$ac_compile"
7583 case "(($ac_try" in
7584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7585 *) ac_try_echo=$ac_try;;
7586 esac
7587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7588 (eval "$ac_compile") 2>conftest.er1
7589 ac_status=$?
7590 grep -v '^ *+' conftest.er1 >conftest.err
7591 rm -f conftest.er1
7592 cat conftest.err >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && {
7595 test -z "$ac_c_werror_flag" ||
7596 test ! -s conftest.err
7597 } && test -s conftest.$ac_objext; then
7598 eval "$as_ac_Header=yes"
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7603 eval "$as_ac_Header=no"
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 ac_res=`eval echo '${'$as_ac_Header'}'`
7609 { echo "$as_me:$LINENO: result: $ac_res" >&5
7610 echo "${ECHO_T}$ac_res" >&6; }
7611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7612 cat >>confdefs.h <<_ACEOF
7613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7614 _ACEOF
7618 done
7622 for ac_header in ucontext.h
7624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 #include <signal.h>
7638 #include <$ac_header>
7639 _ACEOF
7640 rm -f conftest.$ac_objext
7641 if { (ac_try="$ac_compile"
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_compile") 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 test -z "$ac_c_werror_flag" ||
7655 test ! -s conftest.err
7656 } && test -s conftest.$ac_objext; then
7657 eval "$as_ac_Header=yes"
7658 else
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7662 eval "$as_ac_Header=no"
7665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 ac_res=`eval echo '${'$as_ac_Header'}'`
7668 { echo "$as_me:$LINENO: result: $ac_res" >&5
7669 echo "${ECHO_T}$ac_res" >&6; }
7670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7671 cat >>confdefs.h <<_ACEOF
7672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7673 _ACEOF
7677 done
7681 for ac_header in pthread_np.h
7683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689 cat >conftest.$ac_ext <<_ACEOF
7690 /* confdefs.h. */
7691 _ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #ifdef HAVE_PTHREAD_H
7696 #include <pthread.h>
7697 #endif
7699 #include <$ac_header>
7700 _ACEOF
7701 rm -f conftest.$ac_objext
7702 if { (ac_try="$ac_compile"
7703 case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706 esac
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_compile") 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.$ac_objext; then
7718 eval "$as_ac_Header=yes"
7719 else
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7723 eval "$as_ac_Header=no"
7726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 ac_res=`eval echo '${'$as_ac_Header'}'`
7729 { echo "$as_me:$LINENO: result: $ac_res" >&5
7730 echo "${ECHO_T}$ac_res" >&6; }
7731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7732 cat >>confdefs.h <<_ACEOF
7733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7734 _ACEOF
7738 done
7742 for ac_header in linux/videodev.h
7744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 #ifdef HAVE_SYS_TIME_H
7757 #include <sys/time.h>
7758 #endif
7759 #include <sys/types.h>
7760 #ifdef HAVE_ASM_TYPES_H
7761 #include <asm/types.h>
7762 #endif
7764 #include <$ac_header>
7765 _ACEOF
7766 rm -f conftest.$ac_objext
7767 if { (ac_try="$ac_compile"
7768 case "(($ac_try" in
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7771 esac
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773 (eval "$ac_compile") 2>conftest.er1
7774 ac_status=$?
7775 grep -v '^ *+' conftest.er1 >conftest.err
7776 rm -f conftest.er1
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } && {
7780 test -z "$ac_c_werror_flag" ||
7781 test ! -s conftest.err
7782 } && test -s conftest.$ac_objext; then
7783 eval "$as_ac_Header=yes"
7784 else
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7788 eval "$as_ac_Header=no"
7791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 ac_res=`eval echo '${'$as_ac_Header'}'`
7794 { echo "$as_me:$LINENO: result: $ac_res" >&5
7795 echo "${ECHO_T}$ac_res" >&6; }
7796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7797 cat >>confdefs.h <<_ACEOF
7798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7799 _ACEOF
7803 done
7807 for ac_header in linux/capi.h
7809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 #define __user
7823 #include <$ac_header>
7824 _ACEOF
7825 rm -f conftest.$ac_objext
7826 if { (ac_try="$ac_compile"
7827 case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_compile") 2>conftest.er1
7833 ac_status=$?
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } && {
7839 test -z "$ac_c_werror_flag" ||
7840 test ! -s conftest.err
7841 } && test -s conftest.$ac_objext; then
7842 eval "$as_ac_Header=yes"
7843 else
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 eval "$as_ac_Header=no"
7850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852 ac_res=`eval echo '${'$as_ac_Header'}'`
7853 { echo "$as_me:$LINENO: result: $ac_res" >&5
7854 echo "${ECHO_T}$ac_res" >&6; }
7855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7856 cat >>confdefs.h <<_ACEOF
7857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7858 _ACEOF
7862 done
7866 if test "$have_x" = "yes"
7867 then
7868 XLIB="-lXext -lX11"
7869 ac_save_CPPFLAGS="$CPPFLAGS"
7870 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7882 for ac_header in X11/Xlib.h \
7883 X11/XKBlib.h \
7884 X11/Xutil.h \
7885 X11/extensions/shape.h \
7886 X11/extensions/XInput.h \
7887 X11/extensions/XShm.h \
7888 X11/extensions/Xinerama.h \
7889 X11/extensions/Xrandr.h \
7890 X11/extensions/Xrender.h \
7891 X11/extensions/xf86vmode.h
7893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899 cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h. */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 #ifdef HAVE_X11_XLIB_H
7906 # include <X11/Xlib.h>
7907 #endif
7908 #ifdef HAVE_X11_XUTIL_H
7909 # include <X11/Xutil.h>
7910 #endif
7912 #include <$ac_header>
7913 _ACEOF
7914 rm -f conftest.$ac_objext
7915 if { (ac_try="$ac_compile"
7916 case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_compile") 2>conftest.er1
7922 ac_status=$?
7923 grep -v '^ *+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && {
7928 test -z "$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7930 } && test -s conftest.$ac_objext; then
7931 eval "$as_ac_Header=yes"
7932 else
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 eval "$as_ac_Header=no"
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 ac_res=`eval echo '${'$as_ac_Header'}'`
7942 { echo "$as_me:$LINENO: result: $ac_res" >&5
7943 echo "${ECHO_T}$ac_res" >&6; }
7944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7945 cat >>confdefs.h <<_ACEOF
7946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7947 _ACEOF
7951 done
7954 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7955 then
7956 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7957 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
7958 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961 ac_check_lib_save_LIBS=$LIBS
7962 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7963 cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h. */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7970 /* Override any GCC internal prototype to avoid an error.
7971 Use char because int might match the return type of a GCC
7972 builtin and then its argument prototype would still apply. */
7973 #ifdef __cplusplus
7974 extern "C"
7975 #endif
7976 char XkbQueryExtension ();
7978 main ()
7980 return XkbQueryExtension ();
7982 return 0;
7984 _ACEOF
7985 rm -f conftest.$ac_objext conftest$ac_exeext
7986 if { (ac_try="$ac_link"
7987 case "(($ac_try" in
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7990 esac
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_link") 2>conftest.er1
7993 ac_status=$?
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest$ac_exeext &&
8002 $as_test_x conftest$ac_exeext; then
8003 ac_cv_lib_X11_XkbQueryExtension=yes
8004 else
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 ac_cv_lib_X11_XkbQueryExtension=no
8011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8012 conftest$ac_exeext conftest.$ac_ext
8013 LIBS=$ac_check_lib_save_LIBS
8015 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8016 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8017 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
8019 cat >>confdefs.h <<\_ACEOF
8020 #define HAVE_XKB 1
8021 _ACEOF
8027 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8028 then
8029 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
8030 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
8031 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 else
8034 ac_check_lib_save_LIBS=$LIBS
8035 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8036 cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h. */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8043 /* Override any GCC internal prototype to avoid an error.
8044 Use char because int might match the return type of a GCC
8045 builtin and then its argument prototype would still apply. */
8046 #ifdef __cplusplus
8047 extern "C"
8048 #endif
8049 char XShmQueryExtension ();
8051 main ()
8053 return XShmQueryExtension ();
8055 return 0;
8057 _ACEOF
8058 rm -f conftest.$ac_objext conftest$ac_exeext
8059 if { (ac_try="$ac_link"
8060 case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063 esac
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_link") 2>conftest.er1
8066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } && {
8072 test -z "$ac_c_werror_flag" ||
8073 test ! -s conftest.err
8074 } && test -s conftest$ac_exeext &&
8075 $as_test_x conftest$ac_exeext; then
8076 ac_cv_lib_Xext_XShmQueryExtension=yes
8077 else
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 ac_cv_lib_Xext_XShmQueryExtension=no
8084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8085 conftest$ac_exeext conftest.$ac_ext
8086 LIBS=$ac_check_lib_save_LIBS
8088 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8089 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8090 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8092 cat >>confdefs.h <<\_ACEOF
8093 #define HAVE_LIBXXSHM 1
8094 _ACEOF
8100 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8101 then
8102 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8103 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
8104 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107 ac_check_lib_save_LIBS=$LIBS
8108 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h. */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8116 /* Override any GCC internal prototype to avoid an error.
8117 Use char because int might match the return type of a GCC
8118 builtin and then its argument prototype would still apply. */
8119 #ifdef __cplusplus
8120 extern "C"
8121 #endif
8122 char XShapeQueryExtension ();
8124 main ()
8126 return XShapeQueryExtension ();
8128 return 0;
8130 _ACEOF
8131 rm -f conftest.$ac_objext conftest$ac_exeext
8132 if { (ac_try="$ac_link"
8133 case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_link") 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest$ac_exeext &&
8148 $as_test_x conftest$ac_exeext; then
8149 ac_cv_lib_Xext_XShapeQueryExtension=yes
8150 else
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8154 ac_cv_lib_Xext_XShapeQueryExtension=no
8157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8158 conftest$ac_exeext conftest.$ac_ext
8159 LIBS=$ac_check_lib_save_LIBS
8161 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8162 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8163 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8165 cat >>confdefs.h <<\_ACEOF
8166 #define HAVE_LIBXSHAPE 1
8167 _ACEOF
8173 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8174 then
8175 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8176 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
8177 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180 ac_check_lib_save_LIBS=$LIBS
8181 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8182 cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h. */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8189 /* Override any GCC internal prototype to avoid an error.
8190 Use char because int might match the return type of a GCC
8191 builtin and then its argument prototype would still apply. */
8192 #ifdef __cplusplus
8193 extern "C"
8194 #endif
8195 char XF86VidModeQueryExtension ();
8197 main ()
8199 return XF86VidModeQueryExtension ();
8201 return 0;
8203 _ACEOF
8204 rm -f conftest.$ac_objext conftest$ac_exeext
8205 if { (ac_try="$ac_link"
8206 case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_link") 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest$ac_exeext &&
8221 $as_test_x conftest$ac_exeext; then
8222 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8223 else
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8227 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8231 conftest$ac_exeext conftest.$ac_ext
8232 LIBS=$ac_check_lib_save_LIBS
8234 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8235 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
8236 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8238 cat >>confdefs.h <<\_ACEOF
8239 #define HAVE_LIBXXF86VM 1
8240 _ACEOF
8242 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8248 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8249 then
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 #include <X11/Xlib.h>
8257 #include <X11/extensions/Xrandr.h>
8259 main ()
8261 static typeof(XRRSetScreenConfigAndRate) * func;
8263 return 0;
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8268 case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271 esac
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest.$ac_objext; then
8284 cat >>confdefs.h <<\_ACEOF
8285 #define HAVE_LIBXRANDR 1
8286 _ACEOF
8288 else
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8299 then
8300 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8301 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
8302 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305 ac_check_lib_save_LIBS=$LIBS
8306 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8307 cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h. */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8314 /* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
8317 #ifdef __cplusplus
8318 extern "C"
8319 #endif
8320 char XRenderSetPictureTransform ();
8322 main ()
8324 return XRenderSetPictureTransform ();
8326 return 0;
8328 _ACEOF
8329 rm -f conftest.$ac_objext conftest$ac_exeext
8330 if { (ac_try="$ac_link"
8331 case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334 esac
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_link") 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest$ac_exeext &&
8346 $as_test_x conftest$ac_exeext; then
8347 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8348 else
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8356 conftest$ac_exeext conftest.$ac_ext
8357 LIBS=$ac_check_lib_save_LIBS
8359 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8360 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8361 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8363 cat >>confdefs.h <<\_ACEOF
8364 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8365 _ACEOF
8371 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8372 then
8373 cat >conftest.$ac_ext <<_ACEOF
8374 /* confdefs.h. */
8375 _ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h. */
8379 #include <X11/Xlib.h>
8380 #include <X11/extensions/Xinerama.h>
8382 main ()
8384 static typeof(XineramaQueryScreens) * func;
8386 return 0;
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8407 cat >>confdefs.h <<\_ACEOF
8408 #define HAVE_LIBXINERAMA 1
8409 _ACEOF
8411 else
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422 if test "x$with_opengl" != "xno"
8423 then
8428 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
8430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 else
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 #ifdef HAVE_GL_GLX_H
8443 # include <GL/glx.h>
8444 #endif
8446 #include <$ac_header>
8447 _ACEOF
8448 rm -f conftest.$ac_objext
8449 if { (ac_try="$ac_compile"
8450 case "(($ac_try" in
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8453 esac
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.$ac_objext; then
8465 eval "$as_ac_Header=yes"
8466 else
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 eval "$as_ac_Header=no"
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 ac_res=`eval echo '${'$as_ac_Header'}'`
8476 { echo "$as_me:$LINENO: result: $ac_res" >&5
8477 echo "${ECHO_T}$ac_res" >&6; }
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481 _ACEOF
8485 done
8487 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8488 then
8489 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8490 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
8491 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500 #include <GL/gl.h>
8502 main ()
8504 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8506 return 0;
8508 _ACEOF
8509 rm -f conftest.$ac_objext
8510 if { (ac_try="$ac_compile"
8511 case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514 esac
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_compile") 2>conftest.er1
8517 ac_status=$?
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } && {
8523 test -z "$ac_c_werror_flag" ||
8524 test ! -s conftest.err
8525 } && test -s conftest.$ac_objext; then
8526 wine_cv_opengl_header_version_OK="yes"
8527 else
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8531 wine_cv_opengl_header_version_OK="no"
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
8539 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
8541 if test "$wine_cv_opengl_header_version_OK" = "yes"
8542 then
8543 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8544 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
8545 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548 ac_check_lib_save_LIBS=$LIBS
8549 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h. */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8557 /* Override any GCC internal prototype to avoid an error.
8558 Use char because int might match the return type of a GCC
8559 builtin and then its argument prototype would still apply. */
8560 #ifdef __cplusplus
8561 extern "C"
8562 #endif
8563 char glXCreateContext ();
8565 main ()
8567 return glXCreateContext ();
8569 return 0;
8571 _ACEOF
8572 rm -f conftest.$ac_objext conftest$ac_exeext
8573 if { (ac_try="$ac_link"
8574 case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577 esac
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_link") 2>conftest.er1
8580 ac_status=$?
8581 grep -v '^ *+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_c_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest$ac_exeext &&
8589 $as_test_x conftest$ac_exeext; then
8590 ac_cv_lib_GL_glXCreateContext=yes
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 ac_cv_lib_GL_glXCreateContext=no
8598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8599 conftest$ac_exeext conftest.$ac_ext
8600 LIBS=$ac_check_lib_save_LIBS
8602 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8603 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
8604 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8605 OPENGL_LIBS="-lGL"
8606 OPENGLFILES='$(OPENGLFILES)'
8608 cat >>confdefs.h <<\_ACEOF
8609 #define HAVE_OPENGL 1
8610 _ACEOF
8616 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8617 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
8618 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621 ac_check_lib_save_LIBS=$LIBS
8622 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8623 $LIBS"
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8631 /* Override any GCC internal prototype to avoid an error.
8632 Use char because int might match the return type of a GCC
8633 builtin and then its argument prototype would still apply. */
8634 #ifdef __cplusplus
8635 extern "C"
8636 #endif
8637 char gluLookAt ();
8639 main ()
8641 return gluLookAt ();
8643 return 0;
8645 _ACEOF
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (ac_try="$ac_link"
8648 case "(($ac_try" in
8649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8651 esac
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653 (eval "$ac_link") 2>conftest.er1
8654 ac_status=$?
8655 grep -v '^ *+' conftest.er1 >conftest.err
8656 rm -f conftest.er1
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest$ac_exeext &&
8663 $as_test_x conftest$ac_exeext; then
8664 ac_cv_lib_GLU_gluLookAt=yes
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8669 ac_cv_lib_GLU_gluLookAt=no
8672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8673 conftest$ac_exeext conftest.$ac_ext
8674 LIBS=$ac_check_lib_save_LIBS
8676 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8677 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
8678 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8679 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8680 GLU32FILES='$(GLU32FILES)'
8685 else
8686 wine_cv_opengl_headers_found="no"
8689 NASLIBS=""
8692 for ac_header in audio/audiolib.h
8694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 ac_res=`eval echo '${'$as_ac_Header'}'`
8702 { echo "$as_me:$LINENO: result: $ac_res" >&5
8703 echo "${ECHO_T}$ac_res" >&6; }
8704 else
8705 # Is the header compilable?
8706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8708 cat >conftest.$ac_ext <<_ACEOF
8709 /* confdefs.h. */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8714 $ac_includes_default
8715 #include <$ac_header>
8716 _ACEOF
8717 rm -f conftest.$ac_objext
8718 if { (ac_try="$ac_compile"
8719 case "(($ac_try" in
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8722 esac
8723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724 (eval "$ac_compile") 2>conftest.er1
8725 ac_status=$?
8726 grep -v '^ *+' conftest.er1 >conftest.err
8727 rm -f conftest.er1
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && {
8731 test -z "$ac_c_werror_flag" ||
8732 test ! -s conftest.err
8733 } && test -s conftest.$ac_objext; then
8734 ac_header_compiler=yes
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 ac_header_compiler=no
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8744 echo "${ECHO_T}$ac_header_compiler" >&6; }
8746 # Is the header present?
8747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h. */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 #include <$ac_header>
8756 _ACEOF
8757 if { (ac_try="$ac_cpp conftest.$ac_ext"
8758 case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761 esac
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8764 ac_status=$?
8765 grep -v '^ *+' conftest.er1 >conftest.err
8766 rm -f conftest.er1
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } >/dev/null && {
8770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8771 test ! -s conftest.err
8772 }; then
8773 ac_header_preproc=yes
8774 else
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 ac_header_preproc=no
8781 rm -f conftest.err conftest.$ac_ext
8782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8783 echo "${ECHO_T}$ac_header_preproc" >&6; }
8785 # So? What about this header?
8786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8787 yes:no: )
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8792 ac_header_preproc=yes
8794 no:yes:* )
8795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8807 ( cat <<\_ASBOX
8808 ## ------------------------------------ ##
8809 ## Report this to wine-devel@winehq.org ##
8810 ## ------------------------------------ ##
8811 _ASBOX
8812 ) | sed "s/^/$as_me: WARNING: /" >&2
8814 esac
8815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820 eval "$as_ac_Header=\$ac_header_preproc"
8822 ac_res=`eval echo '${'$as_ac_Header'}'`
8823 { echo "$as_me:$LINENO: result: $ac_res" >&5
8824 echo "${ECHO_T}$ac_res" >&6; }
8827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8828 cat >>confdefs.h <<_ACEOF
8829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8830 _ACEOF
8832 for ac_header in audio/soundlib.h
8834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h. */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 #include <audio/audiolib.h>
8848 #include <$ac_header>
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (ac_try="$ac_compile"
8852 case "(($ac_try" in
8853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854 *) ac_try_echo=$ac_try;;
8855 esac
8856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8857 (eval "$ac_compile") 2>conftest.er1
8858 ac_status=$?
8859 grep -v '^ *+' conftest.er1 >conftest.err
8860 rm -f conftest.er1
8861 cat conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } && {
8864 test -z "$ac_c_werror_flag" ||
8865 test ! -s conftest.err
8866 } && test -s conftest.$ac_objext; then
8867 eval "$as_ac_Header=yes"
8868 else
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8872 eval "$as_ac_Header=no"
8875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 ac_res=`eval echo '${'$as_ac_Header'}'`
8878 { echo "$as_me:$LINENO: result: $ac_res" >&5
8879 echo "${ECHO_T}$ac_res" >&6; }
8880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8881 cat >>confdefs.h <<_ACEOF
8882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8883 _ACEOF
8887 done
8889 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8890 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
8891 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894 ac_check_lib_save_LIBS=$LIBS
8895 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8896 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h. */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8903 /* Override any GCC internal prototype to avoid an error.
8904 Use char because int might match the return type of a GCC
8905 builtin and then its argument prototype would still apply. */
8906 #ifdef __cplusplus
8907 extern "C"
8908 #endif
8909 char AuCreateFlow ();
8911 main ()
8913 return AuCreateFlow ();
8915 return 0;
8917 _ACEOF
8918 rm -f conftest.$ac_objext conftest$ac_exeext
8919 if { (ac_try="$ac_link"
8920 case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923 esac
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_link") 2>conftest.er1
8926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && {
8932 test -z "$ac_c_werror_flag" ||
8933 test ! -s conftest.err
8934 } && test -s conftest$ac_exeext &&
8935 $as_test_x conftest$ac_exeext; then
8936 ac_cv_lib_audio_AuCreateFlow=yes
8937 else
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_cv_lib_audio_AuCreateFlow=no
8944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8945 conftest$ac_exeext conftest.$ac_ext
8946 LIBS=$ac_check_lib_save_LIBS
8948 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8949 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
8950 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8952 cat >>confdefs.h <<\_ACEOF
8953 #define HAVE_NAS 1
8954 _ACEOF
8956 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8961 done
8964 CPPFLAGS="$ac_save_CPPFLAGS"
8965 XFILES='$(XFILES)'
8966 else
8967 XLIB=""
8968 X_CFLAGS=""
8969 X_LIBS=""
8973 XML2LIBS=""
8975 XML2INCL=""
8977 XSLTLIBS=""
8979 XSLTINCL=""
8981 if test "$PKG_CONFIG" != "false"
8982 then
8983 ac_save_CPPFLAGS="$CPPFLAGS"
8984 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8985 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8986 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8988 for ac_header in libxml/parser.h
8990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 ac_res=`eval echo '${'$as_ac_Header'}'`
8998 { echo "$as_me:$LINENO: result: $ac_res" >&5
8999 echo "${ECHO_T}$ac_res" >&6; }
9000 else
9001 # Is the header compilable?
9002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9004 cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h. */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 $ac_includes_default
9011 #include <$ac_header>
9012 _ACEOF
9013 rm -f conftest.$ac_objext
9014 if { (ac_try="$ac_compile"
9015 case "(($ac_try" in
9016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017 *) ac_try_echo=$ac_try;;
9018 esac
9019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9020 (eval "$ac_compile") 2>conftest.er1
9021 ac_status=$?
9022 grep -v '^ *+' conftest.er1 >conftest.err
9023 rm -f conftest.er1
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } && {
9027 test -z "$ac_c_werror_flag" ||
9028 test ! -s conftest.err
9029 } && test -s conftest.$ac_objext; then
9030 ac_header_compiler=yes
9031 else
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9035 ac_header_compiler=no
9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9040 echo "${ECHO_T}$ac_header_compiler" >&6; }
9042 # Is the header present?
9043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9045 cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h. */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9051 #include <$ac_header>
9052 _ACEOF
9053 if { (ac_try="$ac_cpp conftest.$ac_ext"
9054 case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9057 esac
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9060 ac_status=$?
9061 grep -v '^ *+' conftest.er1 >conftest.err
9062 rm -f conftest.er1
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } >/dev/null && {
9066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9067 test ! -s conftest.err
9068 }; then
9069 ac_header_preproc=yes
9070 else
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9074 ac_header_preproc=no
9077 rm -f conftest.err conftest.$ac_ext
9078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9079 echo "${ECHO_T}$ac_header_preproc" >&6; }
9081 # So? What about this header?
9082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9083 yes:no: )
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9088 ac_header_preproc=yes
9090 no:yes:* )
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9103 ( cat <<\_ASBOX
9104 ## ------------------------------------ ##
9105 ## Report this to wine-devel@winehq.org ##
9106 ## ------------------------------------ ##
9107 _ASBOX
9108 ) | sed "s/^/$as_me: WARNING: /" >&2
9110 esac
9111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116 eval "$as_ac_Header=\$ac_header_preproc"
9118 ac_res=`eval echo '${'$as_ac_Header'}'`
9119 { echo "$as_me:$LINENO: result: $ac_res" >&5
9120 echo "${ECHO_T}$ac_res" >&6; }
9123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9124 cat >>confdefs.h <<_ACEOF
9125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9126 _ACEOF
9127 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
9128 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
9129 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 else
9132 ac_check_lib_save_LIBS=$LIBS
9133 LIBS="-lxml2 $ac_xml_libs $LIBS"
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h. */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9141 /* Override any GCC internal prototype to avoid an error.
9142 Use char because int might match the return type of a GCC
9143 builtin and then its argument prototype would still apply. */
9144 #ifdef __cplusplus
9145 extern "C"
9146 #endif
9147 char xmlParseMemory ();
9149 main ()
9151 return xmlParseMemory ();
9153 return 0;
9155 _ACEOF
9156 rm -f conftest.$ac_objext conftest$ac_exeext
9157 if { (ac_try="$ac_link"
9158 case "(($ac_try" in
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9161 esac
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163 (eval "$ac_link") 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } && {
9170 test -z "$ac_c_werror_flag" ||
9171 test ! -s conftest.err
9172 } && test -s conftest$ac_exeext &&
9173 $as_test_x conftest$ac_exeext; then
9174 ac_cv_lib_xml2_xmlParseMemory=yes
9175 else
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 ac_cv_lib_xml2_xmlParseMemory=no
9182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9183 conftest$ac_exeext conftest.$ac_ext
9184 LIBS=$ac_check_lib_save_LIBS
9186 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9187 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9188 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
9190 cat >>confdefs.h <<\_ACEOF
9191 #define HAVE_LIBXML2 1
9192 _ACEOF
9194 XML2LIBS="$ac_xml_libs"
9195 XML2INCL="$ac_xml_cflags"
9198 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
9199 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
9200 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203 ac_check_lib_save_LIBS=$LIBS
9204 LIBS="-lxml2 $ac_xml_libs $LIBS"
9205 cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h. */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9212 /* Override any GCC internal prototype to avoid an error.
9213 Use char because int might match the return type of a GCC
9214 builtin and then its argument prototype would still apply. */
9215 #ifdef __cplusplus
9216 extern "C"
9217 #endif
9218 char xmlReadMemory ();
9220 main ()
9222 return xmlReadMemory ();
9224 return 0;
9226 _ACEOF
9227 rm -f conftest.$ac_objext conftest$ac_exeext
9228 if { (ac_try="$ac_link"
9229 case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9232 esac
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_link") 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_c_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest$ac_exeext &&
9244 $as_test_x conftest$ac_exeext; then
9245 ac_cv_lib_xml2_xmlReadMemory=yes
9246 else
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9250 ac_cv_lib_xml2_xmlReadMemory=no
9253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9254 conftest$ac_exeext conftest.$ac_ext
9255 LIBS=$ac_check_lib_save_LIBS
9257 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9258 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9259 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
9261 cat >>confdefs.h <<\_ACEOF
9262 #define HAVE_XMLREADMEMORY 1
9263 _ACEOF
9267 { echo "$as_me:$LINENO: checking for xmlNewDocPI in -lxml2" >&5
9268 echo $ECHO_N "checking for xmlNewDocPI in -lxml2... $ECHO_C" >&6; }
9269 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 else
9272 ac_check_lib_save_LIBS=$LIBS
9273 LIBS="-lxml2 $ac_xml_libs $LIBS"
9274 cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h. */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9281 /* Override any GCC internal prototype to avoid an error.
9282 Use char because int might match the return type of a GCC
9283 builtin and then its argument prototype would still apply. */
9284 #ifdef __cplusplus
9285 extern "C"
9286 #endif
9287 char xmlNewDocPI ();
9289 main ()
9291 return xmlNewDocPI ();
9293 return 0;
9295 _ACEOF
9296 rm -f conftest.$ac_objext conftest$ac_exeext
9297 if { (ac_try="$ac_link"
9298 case "(($ac_try" in
9299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300 *) ac_try_echo=$ac_try;;
9301 esac
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_link") 2>conftest.er1
9304 ac_status=$?
9305 grep -v '^ *+' conftest.er1 >conftest.err
9306 rm -f conftest.er1
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && {
9310 test -z "$ac_c_werror_flag" ||
9311 test ! -s conftest.err
9312 } && test -s conftest$ac_exeext &&
9313 $as_test_x conftest$ac_exeext; then
9314 ac_cv_lib_xml2_xmlNewDocPI=yes
9315 else
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 ac_cv_lib_xml2_xmlNewDocPI=no
9322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323 conftest$ac_exeext conftest.$ac_ext
9324 LIBS=$ac_check_lib_save_LIBS
9326 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9327 echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9328 if test $ac_cv_lib_xml2_xmlNewDocPI = yes; then
9330 cat >>confdefs.h <<\_ACEOF
9331 #define HAVE_XMLNEWDOCPI 1
9332 _ACEOF
9339 done
9341 CPPFLAGS="$ac_save_CPPFLAGS"
9342 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9343 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9344 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9347 for ac_header in libxslt/pattern.h libxslt/transform.h
9349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 else
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 #ifdef HAVE_LIBXSLT_PATTERN_H
9362 # include <libxslt/pattern.h>
9363 #endif
9365 #include <$ac_header>
9366 _ACEOF
9367 rm -f conftest.$ac_objext
9368 if { (ac_try="$ac_compile"
9369 case "(($ac_try" in
9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371 *) ac_try_echo=$ac_try;;
9372 esac
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374 (eval "$ac_compile") 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } && {
9381 test -z "$ac_c_werror_flag" ||
9382 test ! -s conftest.err
9383 } && test -s conftest.$ac_objext; then
9384 eval "$as_ac_Header=yes"
9385 else
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9389 eval "$as_ac_Header=no"
9392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394 ac_res=`eval echo '${'$as_ac_Header'}'`
9395 { echo "$as_me:$LINENO: result: $ac_res" >&5
9396 echo "${ECHO_T}$ac_res" >&6; }
9397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9398 cat >>confdefs.h <<_ACEOF
9399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9400 _ACEOF
9401 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
9402 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
9403 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 else
9406 ac_check_lib_save_LIBS=$LIBS
9407 LIBS="-lxslt $ac_xslt_libs $LIBS"
9408 cat >conftest.$ac_ext <<_ACEOF
9409 /* confdefs.h. */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9415 /* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */
9418 #ifdef __cplusplus
9419 extern "C"
9420 #endif
9421 char xsltCompilePattern ();
9423 main ()
9425 return xsltCompilePattern ();
9427 return 0;
9429 _ACEOF
9430 rm -f conftest.$ac_objext conftest$ac_exeext
9431 if { (ac_try="$ac_link"
9432 case "(($ac_try" in
9433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434 *) ac_try_echo=$ac_try;;
9435 esac
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437 (eval "$ac_link") 2>conftest.er1
9438 ac_status=$?
9439 grep -v '^ *+' conftest.er1 >conftest.err
9440 rm -f conftest.er1
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } && {
9444 test -z "$ac_c_werror_flag" ||
9445 test ! -s conftest.err
9446 } && test -s conftest$ac_exeext &&
9447 $as_test_x conftest$ac_exeext; then
9448 ac_cv_lib_xslt_xsltCompilePattern=yes
9449 else
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 ac_cv_lib_xslt_xsltCompilePattern=no
9456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9457 conftest$ac_exeext conftest.$ac_ext
9458 LIBS=$ac_check_lib_save_LIBS
9460 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
9461 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
9462 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
9464 cat >>confdefs.h <<\_ACEOF
9465 #define HAVE_LIBXSLT 1
9466 _ACEOF
9468 XSLTLIBS="$ac_xslt_libs"
9469 XSLTINCL="$ac_xslt_cflags"
9475 done
9477 CPPFLAGS="$ac_save_CPPFLAGS"
9480 HALINCL=""
9482 if test "$PKG_CONFIG" != "false"
9483 then
9484 ac_save_CPPFLAGS="$CPPFLAGS"
9485 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9486 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9487 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9490 for ac_header in dbus/dbus.h hal/libhal.h
9492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 ac_res=`eval echo '${'$as_ac_Header'}'`
9500 { echo "$as_me:$LINENO: result: $ac_res" >&5
9501 echo "${ECHO_T}$ac_res" >&6; }
9502 else
9503 # Is the header compilable?
9504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9506 cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h. */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512 $ac_includes_default
9513 #include <$ac_header>
9514 _ACEOF
9515 rm -f conftest.$ac_objext
9516 if { (ac_try="$ac_compile"
9517 case "(($ac_try" in
9518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519 *) ac_try_echo=$ac_try;;
9520 esac
9521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9522 (eval "$ac_compile") 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && {
9529 test -z "$ac_c_werror_flag" ||
9530 test ! -s conftest.err
9531 } && test -s conftest.$ac_objext; then
9532 ac_header_compiler=yes
9533 else
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 ac_header_compiler=no
9540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9542 echo "${ECHO_T}$ac_header_compiler" >&6; }
9544 # Is the header present?
9545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9547 cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h. */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553 #include <$ac_header>
9554 _ACEOF
9555 if { (ac_try="$ac_cpp conftest.$ac_ext"
9556 case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559 esac
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } >/dev/null && {
9568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9570 }; then
9571 ac_header_preproc=yes
9572 else
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_header_preproc=no
9579 rm -f conftest.err conftest.$ac_ext
9580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9581 echo "${ECHO_T}$ac_header_preproc" >&6; }
9583 # So? What about this header?
9584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9585 yes:no: )
9586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9590 ac_header_preproc=yes
9592 no:yes:* )
9593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9605 ( cat <<\_ASBOX
9606 ## ------------------------------------ ##
9607 ## Report this to wine-devel@winehq.org ##
9608 ## ------------------------------------ ##
9609 _ASBOX
9610 ) | sed "s/^/$as_me: WARNING: /" >&2
9612 esac
9613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618 eval "$as_ac_Header=\$ac_header_preproc"
9620 ac_res=`eval echo '${'$as_ac_Header'}'`
9621 { echo "$as_me:$LINENO: result: $ac_res" >&5
9622 echo "${ECHO_T}$ac_res" >&6; }
9625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9626 cat >>confdefs.h <<_ACEOF
9627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9628 _ACEOF
9632 done
9634 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9635 then
9636 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
9637 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
9638 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641 ac_check_lib_save_LIBS=$LIBS
9642 LIBS="-lhal $LIBS"
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h. */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9650 /* Override any GCC internal prototype to avoid an error.
9651 Use char because int might match the return type of a GCC
9652 builtin and then its argument prototype would still apply. */
9653 #ifdef __cplusplus
9654 extern "C"
9655 #endif
9656 char libhal_ctx_new ();
9658 main ()
9660 return libhal_ctx_new ();
9662 return 0;
9664 _ACEOF
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (ac_try="$ac_link"
9667 case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_link") 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest$ac_exeext &&
9682 $as_test_x conftest$ac_exeext; then
9683 ac_cv_lib_hal_libhal_ctx_new=yes
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_cv_lib_hal_libhal_ctx_new=no
9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9692 conftest$ac_exeext conftest.$ac_ext
9693 LIBS=$ac_check_lib_save_LIBS
9695 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
9696 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
9697 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
9698 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
9699 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
9700 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703 ac_check_lib_save_LIBS=$LIBS
9704 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9705 cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h. */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9712 /* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 char dbus_connection_close ();
9720 main ()
9722 return dbus_connection_close ();
9724 return 0;
9726 _ACEOF
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (ac_try="$ac_link"
9729 case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732 esac
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_link") 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } && {
9741 test -z "$ac_c_werror_flag" ||
9742 test ! -s conftest.err
9743 } && test -s conftest$ac_exeext &&
9744 $as_test_x conftest$ac_exeext; then
9745 ac_cv_lib_dbus_1_dbus_connection_close=yes
9746 else
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_cv_lib_dbus_1_dbus_connection_close=no
9753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9754 conftest$ac_exeext conftest.$ac_ext
9755 LIBS=$ac_check_lib_save_LIBS
9757 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9758 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9759 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
9761 cat >>confdefs.h <<\_ACEOF
9762 #define HAVE_LIBHAL 1
9763 _ACEOF
9765 HALINCL="$ac_hal_cflags"
9771 CPPFLAGS="$ac_save_CPPFLAGS"
9774 CURSESLIBS=""
9775 if test "$ac_cv_header_ncurses_h" = "yes"
9776 then
9777 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9778 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
9779 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782 ac_check_lib_save_LIBS=$LIBS
9783 LIBS="-lncurses $LIBS"
9784 cat >conftest.$ac_ext <<_ACEOF
9785 /* confdefs.h. */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9791 /* Override any GCC internal prototype to avoid an error.
9792 Use char because int might match the return type of a GCC
9793 builtin and then its argument prototype would still apply. */
9794 #ifdef __cplusplus
9795 extern "C"
9796 #endif
9797 char waddch ();
9799 main ()
9801 return waddch ();
9803 return 0;
9805 _ACEOF
9806 rm -f conftest.$ac_objext conftest$ac_exeext
9807 if { (ac_try="$ac_link"
9808 case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811 esac
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_link") 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } && {
9820 test -z "$ac_c_werror_flag" ||
9821 test ! -s conftest.err
9822 } && test -s conftest$ac_exeext &&
9823 $as_test_x conftest$ac_exeext; then
9824 ac_cv_lib_ncurses_waddch=yes
9825 else
9826 echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9829 ac_cv_lib_ncurses_waddch=no
9832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9833 conftest$ac_exeext conftest.$ac_ext
9834 LIBS=$ac_check_lib_save_LIBS
9836 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9837 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
9838 if test $ac_cv_lib_ncurses_waddch = yes; then
9839 CURSESLIBS="-lncurses"
9842 elif test "$ac_cv_header_curses_h" = "yes"
9843 then
9844 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9845 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
9846 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849 ac_check_lib_save_LIBS=$LIBS
9850 LIBS="-lcurses $LIBS"
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h. */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9858 /* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
9861 #ifdef __cplusplus
9862 extern "C"
9863 #endif
9864 char waddch ();
9866 main ()
9868 return waddch ();
9870 return 0;
9872 _ACEOF
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9875 case "(($ac_try" in
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_link") 2>conftest.er1
9881 ac_status=$?
9882 grep -v '^ *+' conftest.er1 >conftest.err
9883 rm -f conftest.er1
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } && {
9887 test -z "$ac_c_werror_flag" ||
9888 test ! -s conftest.err
9889 } && test -s conftest$ac_exeext &&
9890 $as_test_x conftest$ac_exeext; then
9891 ac_cv_lib_curses_waddch=yes
9892 else
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 ac_cv_lib_curses_waddch=no
9899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9900 conftest$ac_exeext conftest.$ac_ext
9901 LIBS=$ac_check_lib_save_LIBS
9903 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9904 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
9905 if test $ac_cv_lib_curses_waddch = yes; then
9906 CURSESLIBS="-lcurses"
9910 ac_save_LIBS="$LIBS"
9911 LIBS="$LIBS $CURSESLIBS"
9913 for ac_func in mousemask
9915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921 cat >conftest.$ac_ext <<_ACEOF
9922 /* confdefs.h. */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9929 #define $ac_func innocuous_$ac_func
9931 /* System header to define __stub macros and hopefully few prototypes,
9932 which can conflict with char $ac_func (); below.
9933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9934 <limits.h> exists even on freestanding compilers. */
9936 #ifdef __STDC__
9937 # include <limits.h>
9938 #else
9939 # include <assert.h>
9940 #endif
9942 #undef $ac_func
9944 /* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9947 #ifdef __cplusplus
9948 extern "C"
9949 #endif
9950 char $ac_func ();
9951 /* The GNU C library defines this for functions which it implements
9952 to always fail with ENOSYS. Some functions are actually named
9953 something starting with __ and the normal name is an alias. */
9954 #if defined __stub_$ac_func || defined __stub___$ac_func
9955 choke me
9956 #endif
9959 main ()
9961 return $ac_func ();
9963 return 0;
9965 _ACEOF
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (ac_try="$ac_link"
9968 case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9971 esac
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_link") 2>conftest.er1
9974 ac_status=$?
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } && {
9980 test -z "$ac_c_werror_flag" ||
9981 test ! -s conftest.err
9982 } && test -s conftest$ac_exeext &&
9983 $as_test_x conftest$ac_exeext; then
9984 eval "$as_ac_var=yes"
9985 else
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9989 eval "$as_ac_var=no"
9992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9993 conftest$ac_exeext conftest.$ac_ext
9995 ac_res=`eval echo '${'$as_ac_var'}'`
9996 { echo "$as_me:$LINENO: result: $ac_res" >&5
9997 echo "${ECHO_T}$ac_res" >&6; }
9998 if test `eval echo '${'$as_ac_var'}'` = yes; then
9999 cat >>confdefs.h <<_ACEOF
10000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10001 _ACEOF
10004 done
10006 LIBS="$ac_save_LIBS"
10008 # Extract the first word of "sane-config", so it can be a program name with args.
10009 set dummy sane-config; ac_word=$2
10010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10012 if test "${ac_cv_prog_sane_devel+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015 if test -n "$sane_devel"; then
10016 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
10017 else
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025 ac_cv_prog_sane_devel="sane-config"
10026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10029 done
10030 done
10031 IFS=$as_save_IFS
10033 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10036 sane_devel=$ac_cv_prog_sane_devel
10037 if test -n "$sane_devel"; then
10038 { echo "$as_me:$LINENO: result: $sane_devel" >&5
10039 echo "${ECHO_T}$sane_devel" >&6; }
10040 else
10041 { echo "$as_me:$LINENO: result: no" >&5
10042 echo "${ECHO_T}no" >&6; }
10046 SANELIBS=""
10048 SANEINCL=""
10050 if test "$sane_devel" != "no"
10051 then
10052 SANELIBS="`$sane_devel --libs`"
10053 SANEINCL="`$sane_devel --cflags`"
10054 ac_save_CPPFLAGS="$CPPFLAGS"
10055 ac_save_LIBS="$LIBS"
10056 CPPFLAGS="$CPPFLAGS $SANEINCL"
10057 LIBS="$LIBS $SANELIBS"
10058 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10059 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10060 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
10061 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10064 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10065 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
10066 else
10067 # Is the header compilable?
10068 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10069 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
10070 cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h. */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10076 $ac_includes_default
10077 #include <sane/sane.h>
10078 _ACEOF
10079 rm -f conftest.$ac_objext
10080 if { (ac_try="$ac_compile"
10081 case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10084 esac
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_compile") 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && {
10093 test -z "$ac_c_werror_flag" ||
10094 test ! -s conftest.err
10095 } && test -s conftest.$ac_objext; then
10096 ac_header_compiler=yes
10097 else
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 ac_header_compiler=no
10104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10106 echo "${ECHO_T}$ac_header_compiler" >&6; }
10108 # Is the header present?
10109 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10110 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h. */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 #include <sane/sane.h>
10118 _ACEOF
10119 if { (ac_try="$ac_cpp conftest.$ac_ext"
10120 case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } >/dev/null && {
10132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10133 test ! -s conftest.err
10134 }; then
10135 ac_header_preproc=yes
10136 else
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10140 ac_header_preproc=no
10143 rm -f conftest.err conftest.$ac_ext
10144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10145 echo "${ECHO_T}$ac_header_preproc" >&6; }
10147 # So? What about this header?
10148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10149 yes:no: )
10150 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10151 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10152 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10153 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10154 ac_header_preproc=yes
10156 no:yes:* )
10157 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10158 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10159 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10160 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10161 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10162 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10163 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10164 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10166 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10168 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10169 ( cat <<\_ASBOX
10170 ## ------------------------------------ ##
10171 ## Report this to wine-devel@winehq.org ##
10172 ## ------------------------------------ ##
10173 _ASBOX
10174 ) | sed "s/^/$as_me: WARNING: /" >&2
10176 esac
10177 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10178 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
10179 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182 ac_cv_header_sane_sane_h=$ac_header_preproc
10184 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10185 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
10188 if test $ac_cv_header_sane_sane_h = yes; then
10189 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10190 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
10191 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 else
10194 ac_check_lib_save_LIBS=$LIBS
10195 LIBS="-lsane $LIBS"
10196 cat >conftest.$ac_ext <<_ACEOF
10197 /* confdefs.h. */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10203 /* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10206 #ifdef __cplusplus
10207 extern "C"
10208 #endif
10209 char sane_open ();
10211 main ()
10213 return sane_open ();
10215 return 0;
10217 _ACEOF
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223 esac
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_link") 2>conftest.er1
10226 ac_status=$?
10227 grep -v '^ *+' conftest.er1 >conftest.err
10228 rm -f conftest.er1
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } && {
10232 test -z "$ac_c_werror_flag" ||
10233 test ! -s conftest.err
10234 } && test -s conftest$ac_exeext &&
10235 $as_test_x conftest$ac_exeext; then
10236 ac_cv_lib_sane_sane_open=yes
10237 else
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 ac_cv_lib_sane_sane_open=no
10244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10248 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10249 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
10250 if test $ac_cv_lib_sane_sane_open = yes; then
10252 cat >>confdefs.h <<\_ACEOF
10253 #define HAVE_SANE 1
10254 _ACEOF
10256 else
10257 SANELIBS=""
10258 SANEINCL=""
10261 else
10262 SANELIBS=""
10263 SANEINCL=""
10267 LIBS="$ac_save_LIBS"
10268 CPPFLAGS="$ac_save_CPPFLAGS"
10271 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10272 set dummy gphoto2-config; ac_word=$2
10273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10275 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278 if test -n "$gphoto2_devel"; then
10279 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10280 else
10281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282 for as_dir in $PATH
10284 IFS=$as_save_IFS
10285 test -z "$as_dir" && as_dir=.
10286 for ac_exec_ext in '' $ac_executable_extensions; do
10287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10288 ac_cv_prog_gphoto2_devel="gphoto2-config"
10289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10290 break 2
10292 done
10293 done
10294 IFS=$as_save_IFS
10296 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10299 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10300 if test -n "$gphoto2_devel"; then
10301 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
10302 echo "${ECHO_T}$gphoto2_devel" >&6; }
10303 else
10304 { echo "$as_me:$LINENO: result: no" >&5
10305 echo "${ECHO_T}no" >&6; }
10309 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10310 set dummy gphoto2-port-config; ac_word=$2
10311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10313 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 else
10316 if test -n "$gphoto2port_devel"; then
10317 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10318 else
10319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320 for as_dir in $PATH
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
10324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10326 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 break 2
10330 done
10331 done
10332 IFS=$as_save_IFS
10334 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10337 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10338 if test -n "$gphoto2port_devel"; then
10339 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
10340 echo "${ECHO_T}$gphoto2port_devel" >&6; }
10341 else
10342 { echo "$as_me:$LINENO: result: no" >&5
10343 echo "${ECHO_T}no" >&6; }
10347 GPHOTO2LIBS=""
10349 GPHOTO2INCL=""
10351 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10352 then
10353 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10354 GPHOTO2LIBS=""
10355 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10357 case "$i" in
10358 -L/usr/lib|-L/usr/lib64) ;;
10359 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
10360 esac
10361 done
10362 ac_save_CPPFLAGS="$CPPFLAGS"
10363 ac_save_LIBS="$LIBS"
10364 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
10365 LIBS="$LIBS $GPHOTO2LIBS"
10366 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10367 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10368 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10369 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10373 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10374 else
10375 # Is the header compilable?
10376 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
10377 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 $ac_includes_default
10385 #include <gphoto2-camera.h>
10386 _ACEOF
10387 rm -f conftest.$ac_objext
10388 if { (ac_try="$ac_compile"
10389 case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_compile") 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest.$ac_objext; then
10404 ac_header_compiler=yes
10405 else
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ac_header_compiler=no
10412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10414 echo "${ECHO_T}$ac_header_compiler" >&6; }
10416 # Is the header present?
10417 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
10418 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
10419 cat >conftest.$ac_ext <<_ACEOF
10420 /* confdefs.h. */
10421 _ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h. */
10425 #include <gphoto2-camera.h>
10426 _ACEOF
10427 if { (ac_try="$ac_cpp conftest.$ac_ext"
10428 case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431 esac
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } >/dev/null && {
10440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10441 test ! -s conftest.err
10442 }; then
10443 ac_header_preproc=yes
10444 else
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10448 ac_header_preproc=no
10451 rm -f conftest.err conftest.$ac_ext
10452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10453 echo "${ECHO_T}$ac_header_preproc" >&6; }
10455 # So? What about this header?
10456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10457 yes:no: )
10458 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
10459 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10460 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
10461 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
10462 ac_header_preproc=yes
10464 no:yes:* )
10465 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
10466 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
10467 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
10468 echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
10470 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
10472 echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
10474 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
10475 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
10476 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
10477 ( cat <<\_ASBOX
10478 ## ------------------------------------ ##
10479 ## Report this to wine-devel@winehq.org ##
10480 ## ------------------------------------ ##
10481 _ASBOX
10482 ) | sed "s/^/$as_me: WARNING: /" >&2
10484 esac
10485 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10486 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10487 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
10492 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10493 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10496 if test $ac_cv_header_gphoto2_camera_h = yes; then
10497 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
10498 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
10499 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502 ac_check_lib_save_LIBS=$LIBS
10503 LIBS="-lgphoto2 $LIBS"
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h. */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10511 /* Override any GCC internal prototype to avoid an error.
10512 Use char because int might match the return type of a GCC
10513 builtin and then its argument prototype would still apply. */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 char gp_camera_new ();
10519 main ()
10521 return gp_camera_new ();
10523 return 0;
10525 _ACEOF
10526 rm -f conftest.$ac_objext conftest$ac_exeext
10527 if { (ac_try="$ac_link"
10528 case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_link") 2>conftest.er1
10534 ac_status=$?
10535 grep -v '^ *+' conftest.er1 >conftest.err
10536 rm -f conftest.er1
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } && {
10540 test -z "$ac_c_werror_flag" ||
10541 test ! -s conftest.err
10542 } && test -s conftest$ac_exeext &&
10543 $as_test_x conftest$ac_exeext; then
10544 ac_cv_lib_gphoto2_gp_camera_new=yes
10545 else
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 ac_cv_lib_gphoto2_gp_camera_new=no
10552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10553 conftest$ac_exeext conftest.$ac_ext
10554 LIBS=$ac_check_lib_save_LIBS
10556 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10557 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10558 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
10560 cat >>confdefs.h <<\_ACEOF
10561 #define HAVE_GPHOTO2 1
10562 _ACEOF
10564 else
10565 GPHOTO2LIBS=""
10566 GPHOTO2INCL=""
10569 else
10570 GPHOTO2LIBS=""
10571 GPHOTO2INCL=""
10575 LIBS="$ac_save_LIBS"
10576 CPPFLAGS="$ac_save_CPPFLAGS"
10579 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10580 then
10581 saved_libs="$LIBS"
10582 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
10584 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
10585 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
10586 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
10587 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
10588 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
10589 cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h. */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10595 #include <unicode/ubidi.h>
10597 main ()
10599 ubidi_open()
10601 return 0;
10603 _ACEOF
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (ac_try="$ac_link"
10606 case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609 esac
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_link") 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } && {
10618 test -z "$ac_c_werror_flag" ||
10619 test ! -s conftest.err
10620 } && test -s conftest$ac_exeext &&
10621 $as_test_x conftest$ac_exeext; then
10623 cat >>confdefs.h <<\_ACEOF
10624 #define HAVE_ICU 1
10625 _ACEOF
10627 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
10629 { echo "$as_me:$LINENO: result: yes" >&5
10630 echo "${ECHO_T}yes" >&6; }
10631 else
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10635 { echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6; }
10639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10640 conftest$ac_exeext conftest.$ac_ext
10641 done
10642 LIBS="$saved_libs"
10645 RESOLVLIBS=""
10647 if test "$ac_cv_header_resolv_h" = "yes"
10648 then
10649 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
10650 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
10651 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654 ac_check_lib_save_LIBS=$LIBS
10655 LIBS="-lresolv $LIBS"
10656 cat >conftest.$ac_ext <<_ACEOF
10657 /* confdefs.h. */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10666 #ifdef __cplusplus
10667 extern "C"
10668 #endif
10669 char res_query ();
10671 main ()
10673 return res_query ();
10675 return 0;
10677 _ACEOF
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10683 esac
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_link") 2>conftest.er1
10686 ac_status=$?
10687 grep -v '^ *+' conftest.er1 >conftest.err
10688 rm -f conftest.er1
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } && {
10692 test -z "$ac_c_werror_flag" ||
10693 test ! -s conftest.err
10694 } && test -s conftest$ac_exeext &&
10695 $as_test_x conftest$ac_exeext; then
10696 ac_cv_lib_resolv_res_query=yes
10697 else
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ac_cv_lib_resolv_res_query=no
10704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10705 conftest$ac_exeext conftest.$ac_ext
10706 LIBS=$ac_check_lib_save_LIBS
10708 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
10709 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
10710 if test $ac_cv_lib_resolv_res_query = yes; then
10712 cat >>confdefs.h <<\_ACEOF
10713 #define HAVE_RESOLV 1
10714 _ACEOF
10716 RESOLVLIBS="-lresolv"
10721 LCMSLIBS=""
10723 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10724 then
10725 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
10726 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
10727 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730 ac_check_lib_save_LIBS=$LIBS
10731 LIBS="-llcms $LIBS"
10732 cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h. */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 char cmsOpenProfileFromFile ();
10747 main ()
10749 return cmsOpenProfileFromFile ();
10751 return 0;
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (ac_try="$ac_link"
10756 case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759 esac
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_link") 2>conftest.er1
10762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } && {
10768 test -z "$ac_c_werror_flag" ||
10769 test ! -s conftest.err
10770 } && test -s conftest$ac_exeext &&
10771 $as_test_x conftest$ac_exeext; then
10772 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10773 else
10774 echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10777 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10781 conftest$ac_exeext conftest.$ac_ext
10782 LIBS=$ac_check_lib_save_LIBS
10784 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10785 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10786 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
10788 cat >>confdefs.h <<\_ACEOF
10789 #define HAVE_LCMS 1
10790 _ACEOF
10792 LCMSLIBS="-llcms"
10797 LDAPLIBS=""
10799 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
10800 then
10801 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
10802 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
10803 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806 ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-lldap_r $LIBPTHREAD $LIBS"
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10815 /* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10818 #ifdef __cplusplus
10819 extern "C"
10820 #endif
10821 char ldap_initialize ();
10823 main ()
10825 return ldap_initialize ();
10827 return 0;
10829 _ACEOF
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (ac_try="$ac_link"
10832 case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10835 esac
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_link") 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } && {
10844 test -z "$ac_c_werror_flag" ||
10845 test ! -s conftest.err
10846 } && test -s conftest$ac_exeext &&
10847 $as_test_x conftest$ac_exeext; then
10848 ac_cv_lib_ldap_r_ldap_initialize=yes
10849 else
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10853 ac_cv_lib_ldap_r_ldap_initialize=no
10856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10857 conftest$ac_exeext conftest.$ac_ext
10858 LIBS=$ac_check_lib_save_LIBS
10860 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
10861 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
10862 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
10863 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
10864 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
10865 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868 ac_check_lib_save_LIBS=$LIBS
10869 LIBS="-llber $LIBPTHREAD $LIBS"
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10877 /* Override any GCC internal prototype to avoid an error.
10878 Use char because int might match the return type of a GCC
10879 builtin and then its argument prototype would still apply. */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 char ber_init ();
10885 main ()
10887 return ber_init ();
10889 return 0;
10891 _ACEOF
10892 rm -f conftest.$ac_objext conftest$ac_exeext
10893 if { (ac_try="$ac_link"
10894 case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_link") 2>conftest.er1
10900 ac_status=$?
10901 grep -v '^ *+' conftest.er1 >conftest.err
10902 rm -f conftest.er1
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } && {
10906 test -z "$ac_c_werror_flag" ||
10907 test ! -s conftest.err
10908 } && test -s conftest$ac_exeext &&
10909 $as_test_x conftest$ac_exeext; then
10910 ac_cv_lib_lber_ber_init=yes
10911 else
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 ac_cv_lib_lber_ber_init=no
10918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10919 conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10922 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
10923 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
10924 if test $ac_cv_lib_lber_ber_init = yes; then
10926 cat >>confdefs.h <<\_ACEOF
10927 #define HAVE_LDAP 1
10928 _ACEOF
10930 LDAPLIBS="-lldap_r -llber"
10935 ac_wine_check_funcs_save_LIBS="$LIBS"
10936 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
10941 for ac_func in \
10942 ldap_count_references \
10943 ldap_first_reference \
10944 ldap_next_reference \
10945 ldap_parse_reference
10947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h. */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10961 #define $ac_func innocuous_$ac_func
10963 /* System header to define __stub macros and hopefully few prototypes,
10964 which can conflict with char $ac_func (); below.
10965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10966 <limits.h> exists even on freestanding compilers. */
10968 #ifdef __STDC__
10969 # include <limits.h>
10970 #else
10971 # include <assert.h>
10972 #endif
10974 #undef $ac_func
10976 /* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10979 #ifdef __cplusplus
10980 extern "C"
10981 #endif
10982 char $ac_func ();
10983 /* The GNU C library defines this for functions which it implements
10984 to always fail with ENOSYS. Some functions are actually named
10985 something starting with __ and the normal name is an alias. */
10986 #if defined __stub_$ac_func || defined __stub___$ac_func
10987 choke me
10988 #endif
10991 main ()
10993 return $ac_func ();
10995 return 0;
10997 _ACEOF
10998 rm -f conftest.$ac_objext conftest$ac_exeext
10999 if { (ac_try="$ac_link"
11000 case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_link") 2>conftest.er1
11006 ac_status=$?
11007 grep -v '^ *+' conftest.er1 >conftest.err
11008 rm -f conftest.er1
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } && {
11012 test -z "$ac_c_werror_flag" ||
11013 test ! -s conftest.err
11014 } && test -s conftest$ac_exeext &&
11015 $as_test_x conftest$ac_exeext; then
11016 eval "$as_ac_var=yes"
11017 else
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 eval "$as_ac_var=no"
11024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11025 conftest$ac_exeext conftest.$ac_ext
11027 ac_res=`eval echo '${'$as_ac_var'}'`
11028 { echo "$as_me:$LINENO: result: $ac_res" >&5
11029 echo "${ECHO_T}$ac_res" >&6; }
11030 if test `eval echo '${'$as_ac_var'}'` = yes; then
11031 cat >>confdefs.h <<_ACEOF
11032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11033 _ACEOF
11036 done
11038 LIBS="$ac_wine_check_funcs_save_LIBS"
11041 FREETYPELIBS=""
11043 FREETYPEINCL=""
11045 # Extract the first word of "freetype-config", so it can be a program name with args.
11046 set dummy freetype-config; ac_word=$2
11047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11049 if test "${ac_cv_prog_ft_devel+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052 if test -n "$ft_devel"; then
11053 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
11054 else
11055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056 for as_dir in $PATH
11058 IFS=$as_save_IFS
11059 test -z "$as_dir" && as_dir=.
11060 for ac_exec_ext in '' $ac_executable_extensions; do
11061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11062 ac_cv_prog_ft_devel="freetype-config"
11063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11064 break 2
11066 done
11067 done
11068 IFS=$as_save_IFS
11070 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
11073 ft_devel=$ac_cv_prog_ft_devel
11074 if test -n "$ft_devel"; then
11075 { echo "$as_me:$LINENO: result: $ft_devel" >&5
11076 echo "${ECHO_T}$ft_devel" >&6; }
11077 else
11078 { echo "$as_me:$LINENO: result: no" >&5
11079 echo "${ECHO_T}no" >&6; }
11083 if test "$ft_devel" = "no"
11084 then
11085 # Extract the first word of "freetype2-config", so it can be a program name with args.
11086 set dummy freetype2-config; ac_word=$2
11087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11089 if test "${ac_cv_prog_ft_devel2+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092 if test -n "$ft_devel2"; then
11093 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
11094 else
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11102 ac_cv_prog_ft_devel2="freetype2-config"
11103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11106 done
11107 done
11108 IFS=$as_save_IFS
11110 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
11113 ft_devel2=$ac_cv_prog_ft_devel2
11114 if test -n "$ft_devel2"; then
11115 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
11116 echo "${ECHO_T}$ft_devel2" >&6; }
11117 else
11118 { echo "$as_me:$LINENO: result: no" >&5
11119 echo "${ECHO_T}no" >&6; }
11123 if test "$ft_devel2" = "freetype2-config"
11124 then
11125 ft_devel=$ft_devel2
11129 if test "$ft_devel" = "no"
11130 then
11131 wine_cv_msg_freetype=yes
11132 else
11133 FREETYPELIBS=`$ft_devel --libs`
11134 FREETYPEINCL=`$ft_devel --cflags`
11135 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
11136 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
11137 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140 ac_check_lib_save_LIBS=$LIBS
11141 LIBS="-lfreetype $FREETYPELIBS $LIBS"
11142 cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h. */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11149 /* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
11152 #ifdef __cplusplus
11153 extern "C"
11154 #endif
11155 char FT_Init_FreeType ();
11157 main ()
11159 return FT_Init_FreeType ();
11161 return 0;
11163 _ACEOF
11164 rm -f conftest.$ac_objext conftest$ac_exeext
11165 if { (ac_try="$ac_link"
11166 case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_link") 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } && {
11178 test -z "$ac_c_werror_flag" ||
11179 test ! -s conftest.err
11180 } && test -s conftest$ac_exeext &&
11181 $as_test_x conftest$ac_exeext; then
11182 ac_cv_lib_freetype_FT_Init_FreeType=yes
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ac_cv_lib_freetype_FT_Init_FreeType=no
11190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11191 conftest$ac_exeext conftest.$ac_ext
11192 LIBS=$ac_check_lib_save_LIBS
11194 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
11195 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
11196 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
11197 ft_lib=yes
11198 else
11199 ft_lib=no
11202 if test "$ft_lib" = "no"
11203 then
11204 wine_cv_msg_freetype=yes
11205 FREETYPELIBS=""
11206 FREETYPEINCL=""
11207 else
11208 ac_save_CPPFLAGS="$CPPFLAGS"
11209 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
11221 for ac_header in ft2build.h \
11222 freetype/freetype.h \
11223 freetype/ftglyph.h \
11224 freetype/tttables.h \
11225 freetype/ftnames.h \
11226 freetype/ftsnames.h \
11227 freetype/ttnameid.h \
11228 freetype/ftoutln.h \
11229 freetype/ftwinfnt.h \
11230 freetype/ftmodapi.h \
11231 freetype/internal/sfnt.h
11233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h. */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 #if HAVE_FT2BUILD_H
11246 #include <ft2build.h>
11247 #endif
11249 #include <$ac_header>
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && {
11265 test -z "$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 } && test -s conftest.$ac_objext; then
11268 eval "$as_ac_Header=yes"
11269 else
11270 echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 eval "$as_ac_Header=no"
11276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 ac_res=`eval echo '${'$as_ac_Header'}'`
11279 { echo "$as_me:$LINENO: result: $ac_res" >&5
11280 echo "${ECHO_T}$ac_res" >&6; }
11281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11282 cat >>confdefs.h <<_ACEOF
11283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11284 _ACEOF
11288 done
11290 cat >conftest.$ac_ext <<_ACEOF
11291 /* confdefs.h. */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11296 #include <ft2build.h>
11297 #include <freetype/fttrigon.h>
11298 _ACEOF
11299 if { (ac_try="$ac_cpp conftest.$ac_ext"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303 esac
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } >/dev/null && {
11312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11313 test ! -s conftest.err
11314 }; then
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_FREETYPE_FTTRIGON_H 1
11318 _ACEOF
11320 wine_cv_fttrigon=yes
11321 else
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 wine_cv_fttrigon=no
11328 rm -f conftest.err conftest.$ac_ext
11329 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
11330 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
11331 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 else
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h. */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 #include <freetype/ftmodapi.h>
11342 typedef FT_TrueTypeEngineType ac__type_new_;
11344 main ()
11346 if ((ac__type_new_ *) 0)
11347 return 0;
11348 if (sizeof (ac__type_new_))
11349 return 0;
11351 return 0;
11353 _ACEOF
11354 rm -f conftest.$ac_objext
11355 if { (ac_try="$ac_compile"
11356 case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11359 esac
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_compile") 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } && {
11368 test -z "$ac_c_werror_flag" ||
11369 test ! -s conftest.err
11370 } && test -s conftest.$ac_objext; then
11371 ac_cv_type_FT_TrueTypeEngineType=yes
11372 else
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 ac_cv_type_FT_TrueTypeEngineType=no
11379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11381 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
11382 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
11383 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
11385 cat >>confdefs.h <<_ACEOF
11386 #define HAVE_FT_TRUETYPEENGINETYPE 1
11387 _ACEOF
11392 ac_save_CFLAGS="$CFLAGS"
11393 CFLAGS="$CFLAGS $FREETYPELIBS"
11395 for ac_func in FT_Load_Sfnt_Table
11397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h. */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11411 #define $ac_func innocuous_$ac_func
11413 /* System header to define __stub macros and hopefully few prototypes,
11414 which can conflict with char $ac_func (); below.
11415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11416 <limits.h> exists even on freestanding compilers. */
11418 #ifdef __STDC__
11419 # include <limits.h>
11420 #else
11421 # include <assert.h>
11422 #endif
11424 #undef $ac_func
11426 /* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
11429 #ifdef __cplusplus
11430 extern "C"
11431 #endif
11432 char $ac_func ();
11433 /* The GNU C library defines this for functions which it implements
11434 to always fail with ENOSYS. Some functions are actually named
11435 something starting with __ and the normal name is an alias. */
11436 #if defined __stub_$ac_func || defined __stub___$ac_func
11437 choke me
11438 #endif
11441 main ()
11443 return $ac_func ();
11445 return 0;
11447 _ACEOF
11448 rm -f conftest.$ac_objext conftest$ac_exeext
11449 if { (ac_try="$ac_link"
11450 case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453 esac
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_link") 2>conftest.er1
11456 ac_status=$?
11457 grep -v '^ *+' conftest.er1 >conftest.err
11458 rm -f conftest.er1
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } && {
11462 test -z "$ac_c_werror_flag" ||
11463 test ! -s conftest.err
11464 } && test -s conftest$ac_exeext &&
11465 $as_test_x conftest$ac_exeext; then
11466 eval "$as_ac_var=yes"
11467 else
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 eval "$as_ac_var=no"
11474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11475 conftest$ac_exeext conftest.$ac_ext
11477 ac_res=`eval echo '${'$as_ac_var'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11480 if test `eval echo '${'$as_ac_var'}'` = yes; then
11481 cat >>confdefs.h <<_ACEOF
11482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11483 _ACEOF
11486 done
11488 CFLAGS="$ac_save_CFLAGS"
11489 CPPFLAGS="$ac_save_CPPFLAGS"
11490 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11491 then
11493 cat >>confdefs.h <<\_ACEOF
11494 #define HAVE_FREETYPE 1
11495 _ACEOF
11497 wine_cv_msg_freetype=no
11498 else
11499 FREETYPELIBS=""
11500 FREETYPEINCL=""
11501 wine_cv_msg_freetype=yes
11506 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
11507 then
11508 FONTSSUBDIRS="fonts"
11512 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
11513 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
11514 if test "${ac_cv_c_ppdev+set}" = set; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 else
11517 cat >conftest.$ac_ext <<_ACEOF
11518 /* confdefs.h. */
11519 _ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h. */
11523 #include <linux/ppdev.h>
11525 main ()
11527 ioctl (1,PPCLAIM,0)
11529 return 0;
11531 _ACEOF
11532 rm -f conftest.$ac_objext
11533 if { (ac_try="$ac_compile"
11534 case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11537 esac
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_compile") 2>conftest.er1
11540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } && {
11546 test -z "$ac_c_werror_flag" ||
11547 test ! -s conftest.err
11548 } && test -s conftest.$ac_objext; then
11549 ac_cv_c_ppdev="yes"
11550 else
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ac_cv_c_ppdev="no"
11557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
11561 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
11562 if test "$ac_cv_c_ppdev" = "yes"
11563 then
11565 cat >>confdefs.h <<\_ACEOF
11566 #define HAVE_PPDEV 1
11567 _ACEOF
11571 { echo "$as_me:$LINENO: checking for va_copy" >&5
11572 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
11573 if test "${ac_cv_c_va_copy+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576 cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h. */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 #include <stdarg.h>
11584 main ()
11586 va_list ap1, ap2;
11587 va_copy(ap1,ap2);
11590 return 0;
11592 _ACEOF
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (ac_try="$ac_link"
11595 case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11598 esac
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_link") 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } && {
11607 test -z "$ac_c_werror_flag" ||
11608 test ! -s conftest.err
11609 } && test -s conftest$ac_exeext &&
11610 $as_test_x conftest$ac_exeext; then
11611 ac_cv_c_va_copy="yes"
11612 else
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_cv_c_va_copy="no"
11619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11620 conftest$ac_exeext conftest.$ac_ext
11623 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
11624 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
11625 if test "$ac_cv_c_va_copy" = "yes"
11626 then
11628 cat >>confdefs.h <<\_ACEOF
11629 #define HAVE_VA_COPY 1
11630 _ACEOF
11633 { echo "$as_me:$LINENO: checking for __va_copy" >&5
11634 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
11635 if test "${ac_cv_c___va_copy+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h. */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644 #include <stdarg.h>
11646 main ()
11648 va_list ap1, ap2;
11649 __va_copy(ap1,ap2);
11652 return 0;
11654 _ACEOF
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (ac_try="$ac_link"
11657 case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11660 esac
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_link") 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } && {
11669 test -z "$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11671 } && test -s conftest$ac_exeext &&
11672 $as_test_x conftest$ac_exeext; then
11673 ac_cv_c___va_copy="yes"
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 ac_cv_c___va_copy="no"
11681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11682 conftest$ac_exeext conftest.$ac_ext
11685 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
11686 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
11687 if test "$ac_cv_c___va_copy" = "yes"
11688 then
11690 cat >>confdefs.h <<\_ACEOF
11691 #define HAVE___VA_COPY 1
11692 _ACEOF
11696 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11697 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
11698 if test "${ac_cv_c_sigsetjmp+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701 cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h. */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11707 #include <setjmp.h>
11709 main ()
11711 sigjmp_buf buf;
11712 sigsetjmp( buf, 1 );
11713 siglongjmp( buf, 1 );
11715 return 0;
11717 _ACEOF
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719 if { (ac_try="$ac_link"
11720 case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11723 esac
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_link") 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } && {
11732 test -z "$ac_c_werror_flag" ||
11733 test ! -s conftest.err
11734 } && test -s conftest$ac_exeext &&
11735 $as_test_x conftest$ac_exeext; then
11736 ac_cv_c_sigsetjmp="yes"
11737 else
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11741 ac_cv_c_sigsetjmp="no"
11744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11745 conftest$ac_exeext conftest.$ac_ext
11748 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11749 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
11750 if test "$ac_cv_c_sigsetjmp" = "yes"
11751 then
11753 cat >>confdefs.h <<\_ACEOF
11754 #define HAVE_SIGSETJMP 1
11755 _ACEOF
11759 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11760 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
11761 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764 cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h. */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 #define _GNU_SOURCE
11771 #include <pthread.h>
11773 typedef pthread_rwlock_t ac__type_new_;
11775 main ()
11777 if ((ac__type_new_ *) 0)
11778 return 0;
11779 if (sizeof (ac__type_new_))
11780 return 0;
11782 return 0;
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } && {
11799 test -z "$ac_c_werror_flag" ||
11800 test ! -s conftest.err
11801 } && test -s conftest.$ac_objext; then
11802 ac_cv_type_pthread_rwlock_t=yes
11803 else
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 ac_cv_type_pthread_rwlock_t=no
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11813 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
11814 if test $ac_cv_type_pthread_rwlock_t = yes; then
11816 cat >>confdefs.h <<_ACEOF
11817 #define HAVE_PTHREAD_RWLOCK_T 1
11818 _ACEOF
11822 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11823 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
11824 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827 cat >conftest.$ac_ext <<_ACEOF
11828 /* confdefs.h. */
11829 _ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11833 #define _GNU_SOURCE
11834 #include <pthread.h>
11836 typedef pthread_rwlockattr_t ac__type_new_;
11838 main ()
11840 if ((ac__type_new_ *) 0)
11841 return 0;
11842 if (sizeof (ac__type_new_))
11843 return 0;
11845 return 0;
11847 _ACEOF
11848 rm -f conftest.$ac_objext
11849 if { (ac_try="$ac_compile"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853 esac
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_compile") 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest.$ac_objext; then
11865 ac_cv_type_pthread_rwlockattr_t=yes
11866 else
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_cv_type_pthread_rwlockattr_t=no
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11875 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11876 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
11877 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11879 cat >>confdefs.h <<_ACEOF
11880 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11881 _ACEOF
11887 ac_wine_check_funcs_save_LIBS="$LIBS"
11888 LIBS="$LIBS $LIBPTHREAD"
11893 for ac_func in \
11894 pthread_attr_get_np \
11895 pthread_getattr_np \
11896 pthread_get_stackaddr_np \
11897 pthread_get_stacksize_np
11899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905 cat >conftest.$ac_ext <<_ACEOF
11906 /* confdefs.h. */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11913 #define $ac_func innocuous_$ac_func
11915 /* System header to define __stub macros and hopefully few prototypes,
11916 which can conflict with char $ac_func (); below.
11917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11918 <limits.h> exists even on freestanding compilers. */
11920 #ifdef __STDC__
11921 # include <limits.h>
11922 #else
11923 # include <assert.h>
11924 #endif
11926 #undef $ac_func
11928 /* Override any GCC internal prototype to avoid an error.
11929 Use char because int might match the return type of a GCC
11930 builtin and then its argument prototype would still apply. */
11931 #ifdef __cplusplus
11932 extern "C"
11933 #endif
11934 char $ac_func ();
11935 /* The GNU C library defines this for functions which it implements
11936 to always fail with ENOSYS. Some functions are actually named
11937 something starting with __ and the normal name is an alias. */
11938 #if defined __stub_$ac_func || defined __stub___$ac_func
11939 choke me
11940 #endif
11943 main ()
11945 return $ac_func ();
11947 return 0;
11949 _ACEOF
11950 rm -f conftest.$ac_objext conftest$ac_exeext
11951 if { (ac_try="$ac_link"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_link") 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } && {
11964 test -z "$ac_c_werror_flag" ||
11965 test ! -s conftest.err
11966 } && test -s conftest$ac_exeext &&
11967 $as_test_x conftest$ac_exeext; then
11968 eval "$as_ac_var=yes"
11969 else
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 eval "$as_ac_var=no"
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11979 ac_res=`eval echo '${'$as_ac_var'}'`
11980 { echo "$as_me:$LINENO: result: $ac_res" >&5
11981 echo "${ECHO_T}$ac_res" >&6; }
11982 if test `eval echo '${'$as_ac_var'}'` = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11985 _ACEOF
11988 done
11990 LIBS="$ac_wine_check_funcs_save_LIBS"
11992 # Extract the first word of "artsc-config", so it can be a program name with args.
11993 set dummy artsc-config; ac_word=$2
11994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11996 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 else
11999 case $ARTSCCONFIG in
12000 [\\/]* | ?:[\\/]*)
12001 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
12004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005 for as_dir in $PATH
12007 IFS=$as_save_IFS
12008 test -z "$as_dir" && as_dir=.
12009 for ac_exec_ext in '' $ac_executable_extensions; do
12010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12011 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
12012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12013 break 2
12015 done
12016 done
12017 IFS=$as_save_IFS
12020 esac
12022 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
12023 if test -n "$ARTSCCONFIG"; then
12024 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
12025 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
12026 else
12027 { echo "$as_me:$LINENO: result: no" >&5
12028 echo "${ECHO_T}no" >&6; }
12032 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
12033 then
12034 ARTSC_CFLAGS=""
12035 for i in `$ARTSCCONFIG --cflags`
12037 case "$i" in
12038 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
12039 esac
12040 done
12041 ARTSC_LIBS=""
12042 for i in `$ARTSCCONFIG --libs`
12044 case "$i" in
12045 -L/usr/lib|-L/usr/lib64) ;;
12046 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
12047 esac
12048 done
12049 save_CFLAGS="$CFLAGS"
12050 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
12051 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
12052 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
12053 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056 ac_check_lib_save_LIBS=$LIBS
12057 LIBS="-lartsc $ARTSC_LIBS $LIBS"
12058 cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h. */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12065 /* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
12068 #ifdef __cplusplus
12069 extern "C"
12070 #endif
12071 char arts_init ();
12073 main ()
12075 return arts_init ();
12077 return 0;
12079 _ACEOF
12080 rm -f conftest.$ac_objext conftest$ac_exeext
12081 if { (ac_try="$ac_link"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_link") 2>conftest.er1
12088 ac_status=$?
12089 grep -v '^ *+' conftest.er1 >conftest.err
12090 rm -f conftest.er1
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } && {
12094 test -z "$ac_c_werror_flag" ||
12095 test ! -s conftest.err
12096 } && test -s conftest$ac_exeext &&
12097 $as_test_x conftest$ac_exeext; then
12098 ac_cv_lib_artsc_arts_init=yes
12099 else
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12103 ac_cv_lib_artsc_arts_init=no
12106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12107 conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12110 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
12111 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
12112 if test $ac_cv_lib_artsc_arts_init = yes; then
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h. */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 #include <artsc.h>
12121 main ()
12123 arts_stream_t stream;
12125 return 0;
12127 _ACEOF
12128 rm -f conftest.$ac_objext
12129 if { (ac_try="$ac_compile"
12130 case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_compile") 2>conftest.er1
12136 ac_status=$?
12137 grep -v '^ *+' conftest.er1 >conftest.err
12138 rm -f conftest.er1
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && {
12142 test -z "$ac_c_werror_flag" ||
12143 test ! -s conftest.err
12144 } && test -s conftest.$ac_objext; then
12145 ARTSLIBS=$ARTSC_LIBS
12147 ARTSINCL=$ARTSC_CFLAGS
12150 cat >>confdefs.h <<\_ACEOF
12151 #define HAVE_ARTS 1
12152 _ACEOF
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164 CFLAGS="$save_CFLAGS"
12167 # Extract the first word of "esd-config", so it can be a program name with args.
12168 set dummy esd-config; ac_word=$2
12169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12171 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174 case $ESDCONFIG in
12175 [\\/]* | ?:[\\/]*)
12176 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12182 IFS=$as_save_IFS
12183 test -z "$as_dir" && as_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12186 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12188 break 2
12190 done
12191 done
12192 IFS=$as_save_IFS
12195 esac
12197 ESDCONFIG=$ac_cv_path_ESDCONFIG
12198 if test -n "$ESDCONFIG"; then
12199 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
12200 echo "${ECHO_T}$ESDCONFIG" >&6; }
12201 else
12202 { echo "$as_me:$LINENO: result: no" >&5
12203 echo "${ECHO_T}no" >&6; }
12207 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
12208 then
12209 ESD_CFLAGS=""
12210 for i in `$ESDCONFIG --cflags`
12212 case "$i" in
12213 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
12214 esac
12215 done
12216 ESD_LIBS=`$ESDCONFIG --libs`
12217 save_CFLAGS="$CFLAGS"
12218 CFLAGS="$CFLAGS $ESD_CFLAGS"
12219 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
12220 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
12221 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224 ac_check_lib_save_LIBS=$LIBS
12225 LIBS="-lesd $LIBS"
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char esd_open_sound ();
12241 main ()
12243 return esd_open_sound ();
12245 return 0;
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (ac_try="$ac_link"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253 esac
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_link") 2>conftest.er1
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } && {
12262 test -z "$ac_c_werror_flag" ||
12263 test ! -s conftest.err
12264 } && test -s conftest$ac_exeext &&
12265 $as_test_x conftest$ac_exeext; then
12266 ac_cv_lib_esd_esd_open_sound=yes
12267 else
12268 echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12271 ac_cv_lib_esd_esd_open_sound=no
12274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12275 conftest$ac_exeext conftest.$ac_ext
12276 LIBS=$ac_check_lib_save_LIBS
12278 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
12279 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
12280 if test $ac_cv_lib_esd_esd_open_sound = yes; then
12281 ESDLIBS=$ESD_LIBS
12283 ESDINCL=$ESD_CFLAGS
12286 cat >>confdefs.h <<\_ACEOF
12287 #define HAVE_ESD 1
12288 _ACEOF
12292 CFLAGS="$save_CFLAGS"
12295 ALSALIBS=""
12297 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12298 then
12299 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
12300 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
12301 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 else
12304 ac_check_lib_save_LIBS=$LIBS
12305 LIBS="-lasound $LIBS"
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12313 /* Override any GCC internal prototype to avoid an error.
12314 Use char because int might match the return type of a GCC
12315 builtin and then its argument prototype would still apply. */
12316 #ifdef __cplusplus
12317 extern "C"
12318 #endif
12319 char snd_pcm_hw_params_get_access ();
12321 main ()
12323 return snd_pcm_hw_params_get_access ();
12325 return 0;
12327 _ACEOF
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (ac_try="$ac_link"
12330 case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12333 esac
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_link") 2>conftest.er1
12336 ac_status=$?
12337 grep -v '^ *+' conftest.er1 >conftest.err
12338 rm -f conftest.er1
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } && {
12342 test -z "$ac_c_werror_flag" ||
12343 test ! -s conftest.err
12344 } && test -s conftest$ac_exeext &&
12345 $as_test_x conftest$ac_exeext; then
12346 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
12347 else
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
12354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12355 conftest$ac_exeext conftest.$ac_ext
12356 LIBS=$ac_check_lib_save_LIBS
12358 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
12359 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
12360 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
12361 cat >conftest.$ac_ext <<_ACEOF
12362 /* confdefs.h. */
12363 _ACEOF
12364 cat confdefs.h >>conftest.$ac_ext
12365 cat >>conftest.$ac_ext <<_ACEOF
12366 /* end confdefs.h. */
12367 #ifdef HAVE_ALSA_ASOUNDLIB_H
12368 #include <alsa/asoundlib.h>
12369 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12370 #include <sys/asoundlib.h>
12371 #endif
12373 main ()
12375 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
12377 return 0;
12379 _ACEOF
12380 rm -f conftest.$ac_objext
12381 if { (ac_try="$ac_compile"
12382 case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12385 esac
12386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387 (eval "$ac_compile") 2>conftest.er1
12388 ac_status=$?
12389 grep -v '^ *+' conftest.er1 >conftest.err
12390 rm -f conftest.er1
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } && {
12394 test -z "$ac_c_werror_flag" ||
12395 test ! -s conftest.err
12396 } && test -s conftest.$ac_objext; then
12398 cat >>confdefs.h <<\_ACEOF
12399 #define HAVE_ALSA 1
12400 _ACEOF
12402 ALSALIBS="-lasound"
12403 else
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416 AUDIOIOLIBS=""
12418 if test "$ac_cv_header_libaudioio_h" = "yes"
12419 then
12420 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12421 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
12422 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 else
12425 ac_check_lib_save_LIBS=$LIBS
12426 LIBS="-laudioio $LIBS"
12427 cat >conftest.$ac_ext <<_ACEOF
12428 /* confdefs.h. */
12429 _ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h. */
12434 /* Override any GCC internal prototype to avoid an error.
12435 Use char because int might match the return type of a GCC
12436 builtin and then its argument prototype would still apply. */
12437 #ifdef __cplusplus
12438 extern "C"
12439 #endif
12440 char AudioIOGetVersion ();
12442 main ()
12444 return AudioIOGetVersion ();
12446 return 0;
12448 _ACEOF
12449 rm -f conftest.$ac_objext conftest$ac_exeext
12450 if { (ac_try="$ac_link"
12451 case "(($ac_try" in
12452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453 *) ac_try_echo=$ac_try;;
12454 esac
12455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12456 (eval "$ac_link") 2>conftest.er1
12457 ac_status=$?
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } && {
12463 test -z "$ac_c_werror_flag" ||
12464 test ! -s conftest.err
12465 } && test -s conftest$ac_exeext &&
12466 $as_test_x conftest$ac_exeext; then
12467 ac_cv_lib_audioio_AudioIOGetVersion=yes
12468 else
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_cv_lib_audioio_AudioIOGetVersion=no
12475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12476 conftest$ac_exeext conftest.$ac_ext
12477 LIBS=$ac_check_lib_save_LIBS
12479 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12480 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
12481 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12482 AUDIOIOLIBS="-laudioio"
12484 cat >>confdefs.h <<\_ACEOF
12485 #define HAVE_LIBAUDIOIO 1
12486 _ACEOF
12493 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12494 then
12495 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12496 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
12497 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 else
12500 ac_check_lib_save_LIBS=$LIBS
12501 LIBS="-lcapi20 $LIBS"
12502 cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h. */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12509 /* Override any GCC internal prototype to avoid an error.
12510 Use char because int might match the return type of a GCC
12511 builtin and then its argument prototype would still apply. */
12512 #ifdef __cplusplus
12513 extern "C"
12514 #endif
12515 char capi20_register ();
12517 main ()
12519 return capi20_register ();
12521 return 0;
12523 _ACEOF
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (ac_try="$ac_link"
12526 case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12529 esac
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_link") 2>conftest.er1
12532 ac_status=$?
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } && {
12538 test -z "$ac_c_werror_flag" ||
12539 test ! -s conftest.err
12540 } && test -s conftest$ac_exeext &&
12541 $as_test_x conftest$ac_exeext; then
12542 ac_cv_lib_capi20_capi20_register=yes
12543 else
12544 echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12547 ac_cv_lib_capi20_capi20_register=no
12550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12551 conftest$ac_exeext conftest.$ac_ext
12552 LIBS=$ac_check_lib_save_LIBS
12554 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12555 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
12556 if test $ac_cv_lib_capi20_capi20_register = yes; then
12558 cat >>confdefs.h <<\_ACEOF
12559 #define HAVE_CAPI4LINUX 1
12560 _ACEOF
12567 EXTRACFLAGS=""
12569 if test "x${GCC}" = "xyes"
12570 then
12571 EXTRACFLAGS="-Wall -pipe"
12573 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12574 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
12575 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12578 if test "$cross_compiling" = yes; then
12579 ac_cv_c_gcc_strength_bug="yes"
12580 else
12581 cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h. */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12588 int L[4] = {0,1,2,3};
12589 int main(void) {
12590 static int Array[3];
12591 unsigned int B = 3;
12592 int i;
12593 for(i=0; i<B; i++) Array[i] = i - 3;
12594 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12595 L[i] = 4;
12597 exit( Array[1] != -2 || L[2] != 3);
12599 _ACEOF
12600 rm -f conftest$ac_exeext
12601 if { (ac_try="$ac_link"
12602 case "(($ac_try" in
12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 *) ac_try_echo=$ac_try;;
12605 esac
12606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607 (eval "$ac_link") 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12611 { (case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614 esac
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_try") 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_cv_c_gcc_strength_bug="no"
12621 else
12622 echo "$as_me: program exited with status $ac_status" >&5
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 ( exit $ac_status )
12627 ac_cv_c_gcc_strength_bug="yes"
12629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12634 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12635 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
12636 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12637 then
12638 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12642 { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
12643 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
12644 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647 ac_wine_try_cflags_saved=$CFLAGS
12648 CFLAGS="$CFLAGS -fshort-wchar"
12649 cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h. */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12657 main ()
12661 return 0;
12663 _ACEOF
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (ac_try="$ac_link"
12666 case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12669 esac
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_link") 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } && {
12678 test -z "$ac_c_werror_flag" ||
12679 test ! -s conftest.err
12680 } && test -s conftest$ac_exeext &&
12681 $as_test_x conftest$ac_exeext; then
12682 ac_cv_cflags__fshort_wchar=yes
12683 else
12684 echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12687 ac_cv_cflags__fshort_wchar=no
12690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12691 conftest$ac_exeext conftest.$ac_ext
12692 CFLAGS=$ac_wine_try_cflags_saved
12694 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
12695 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
12696 if test $ac_cv_cflags__fshort_wchar = yes; then
12698 cat >>confdefs.h <<\_ACEOF
12699 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12700 _ACEOF
12704 { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
12705 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
12706 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708 else
12709 ac_wine_try_cflags_saved=$CFLAGS
12710 CFLAGS="$CFLAGS -fno-strict-aliasing"
12711 cat >conftest.$ac_ext <<_ACEOF
12712 /* confdefs.h. */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12719 main ()
12723 return 0;
12725 _ACEOF
12726 rm -f conftest.$ac_objext conftest$ac_exeext
12727 if { (ac_try="$ac_link"
12728 case "(($ac_try" in
12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12731 esac
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_link") 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && {
12740 test -z "$ac_c_werror_flag" ||
12741 test ! -s conftest.err
12742 } && test -s conftest$ac_exeext &&
12743 $as_test_x conftest$ac_exeext; then
12744 ac_cv_cflags__fno_strict_aliasing=yes
12745 else
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 ac_cv_cflags__fno_strict_aliasing=no
12752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12753 conftest$ac_exeext conftest.$ac_ext
12754 CFLAGS=$ac_wine_try_cflags_saved
12756 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12757 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
12758 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
12759 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12762 { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12763 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
12764 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 else
12767 ac_wine_try_cflags_saved=$CFLAGS
12768 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12769 cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h. */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12777 main ()
12781 return 0;
12783 _ACEOF
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (ac_try="$ac_link"
12786 case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789 esac
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_link") 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } && {
12798 test -z "$ac_c_werror_flag" ||
12799 test ! -s conftest.err
12800 } && test -s conftest$ac_exeext &&
12801 $as_test_x conftest$ac_exeext; then
12802 ac_cv_cflags__Wdeclaration_after_statement=yes
12803 else
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ac_cv_cflags__Wdeclaration_after_statement=no
12810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12811 conftest$ac_exeext conftest.$ac_ext
12812 CFLAGS=$ac_wine_try_cflags_saved
12814 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12815 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12816 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
12817 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12820 { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
12821 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
12822 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 else
12825 ac_wine_try_cflags_saved=$CFLAGS
12826 CFLAGS="$CFLAGS -Wwrite-strings"
12827 cat >conftest.$ac_ext <<_ACEOF
12828 /* confdefs.h. */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12835 main ()
12839 return 0;
12841 _ACEOF
12842 rm -f conftest.$ac_objext conftest$ac_exeext
12843 if { (ac_try="$ac_link"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_link") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && {
12856 test -z "$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12858 } && test -s conftest$ac_exeext &&
12859 $as_test_x conftest$ac_exeext; then
12860 ac_cv_cflags__Wwrite_strings=yes
12861 else
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_cv_cflags__Wwrite_strings=no
12868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12869 conftest$ac_exeext conftest.$ac_ext
12870 CFLAGS=$ac_wine_try_cflags_saved
12872 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
12873 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
12874 if test $ac_cv_cflags__Wwrite_strings = yes; then
12875 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12879 saved_CFLAGS="$CFLAGS"
12880 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12881 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12882 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
12883 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886 cat >conftest.$ac_ext <<_ACEOF
12887 /* confdefs.h. */
12888 _ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12892 #include <string.h>
12894 main ()
12898 return 0;
12900 _ACEOF
12901 rm -f conftest.$ac_objext
12902 if { (ac_try="$ac_compile"
12903 case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12906 esac
12907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_compile") 2>conftest.er1
12909 ac_status=$?
12910 grep -v '^ *+' conftest.er1 >conftest.err
12911 rm -f conftest.er1
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } && {
12915 test -z "$ac_c_werror_flag" ||
12916 test ! -s conftest.err
12917 } && test -s conftest.$ac_objext; then
12918 ac_cv_c_string_h_warnings=no
12919 else
12920 echo "$as_me: failed program was:" >&5
12921 sed 's/^/| /' conftest.$ac_ext >&5
12923 ac_cv_c_string_h_warnings=yes
12926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12928 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12929 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
12930 CFLAGS="$saved_CFLAGS"
12931 if test "$ac_cv_c_string_h_warnings" = "no"
12932 then
12933 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12936 BUILTINFLAG=""
12938 saved_CFLAGS="$CFLAGS"
12939 CFLAGS="$CFLAGS -Werror"
12940 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
12941 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
12942 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 else
12945 cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h. */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12953 main ()
12955 int iswlower(unsigned short);
12957 return 0;
12959 _ACEOF
12960 rm -f conftest.$ac_objext
12961 if { (ac_try="$ac_compile"
12962 case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12965 esac
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_compile") 2>conftest.er1
12968 ac_status=$?
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } && {
12974 test -z "$ac_c_werror_flag" ||
12975 test ! -s conftest.err
12976 } && test -s conftest.$ac_objext; then
12977 ac_cv_c_builtin_wchar_ctype=no
12978 else
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 ac_cv_c_builtin_wchar_ctype=yes
12985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
12988 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
12989 CFLAGS="$saved_CFLAGS"
12990 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
12991 then
12992 BUILTINFLAG="-fno-builtin"
12997 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12998 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
12999 if test "${ac_cv_asm_func_def+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002 cat >conftest.$ac_ext <<_ACEOF
13003 /* confdefs.h. */
13004 _ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13008 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"); }
13011 main ()
13015 return 0;
13017 _ACEOF
13018 rm -f conftest.$ac_objext conftest$ac_exeext
13019 if { (ac_try="$ac_link"
13020 case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13023 esac
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_link") 2>conftest.er1
13026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && {
13032 test -z "$ac_c_werror_flag" ||
13033 test ! -s conftest.err
13034 } && test -s conftest$ac_exeext &&
13035 $as_test_x conftest$ac_exeext; then
13036 ac_cv_asm_func_def=".def"
13037 else
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 cat >conftest.$ac_ext <<_ACEOF
13042 /* confdefs.h. */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13047 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
13050 main ()
13054 return 0;
13056 _ACEOF
13057 rm -f conftest.$ac_objext conftest$ac_exeext
13058 if { (ac_try="$ac_link"
13059 case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062 esac
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_link") 2>conftest.er1
13065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && {
13071 test -z "$ac_c_werror_flag" ||
13072 test ! -s conftest.err
13073 } && test -s conftest$ac_exeext &&
13074 $as_test_x conftest$ac_exeext; then
13075 ac_cv_asm_func_def=".type @function"
13076 else
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13080 cat >conftest.$ac_ext <<_ACEOF
13081 /* confdefs.h. */
13082 _ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h. */
13086 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
13089 main ()
13093 return 0;
13095 _ACEOF
13096 rm -f conftest.$ac_objext conftest$ac_exeext
13097 if { (ac_try="$ac_link"
13098 case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13101 esac
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_link") 2>conftest.er1
13104 ac_status=$?
13105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } && {
13110 test -z "$ac_c_werror_flag" ||
13111 test ! -s conftest.err
13112 } && test -s conftest$ac_exeext &&
13113 $as_test_x conftest$ac_exeext; then
13114 ac_cv_asm_func_def=".type 2"
13115 else
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13119 ac_cv_asm_func_def="unknown"
13122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13123 conftest$ac_exeext conftest.$ac_ext
13126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13127 conftest$ac_exeext conftest.$ac_ext
13130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13131 conftest$ac_exeext conftest.$ac_ext
13133 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13134 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
13138 case "$ac_cv_asm_func_def" in
13139 ".def")
13140 cat >>confdefs.h <<\_ACEOF
13141 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13142 _ACEOF
13144 ".type @function")
13145 cat >>confdefs.h <<\_ACEOF
13146 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13147 _ACEOF
13149 ".type 2")
13150 cat >>confdefs.h <<\_ACEOF
13151 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13152 _ACEOF
13155 cat >>confdefs.h <<\_ACEOF
13156 #define __ASM_FUNC(name) ""
13157 _ACEOF
13159 esac
13162 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13163 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
13164 if test "${ac_cv_c_extern_prefix+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 else
13167 cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h. */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13174 extern int ac_test;
13176 main ()
13178 if (ac_test) return 1
13180 return 0;
13182 _ACEOF
13183 rm -f conftest.$ac_objext conftest$ac_exeext
13184 if { (ac_try="$ac_link"
13185 case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13188 esac
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_link") 2>conftest.er1
13191 ac_status=$?
13192 grep -v '^ *+' conftest.er1 >conftest.err
13193 rm -f conftest.er1
13194 cat conftest.err >&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } && {
13197 test -z "$ac_c_werror_flag" ||
13198 test ! -s conftest.err
13199 } && test -s conftest$ac_exeext &&
13200 $as_test_x conftest$ac_exeext; then
13201 ac_cv_c_extern_prefix="yes"
13202 else
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13206 ac_cv_c_extern_prefix="no"
13209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13210 conftest$ac_exeext conftest.$ac_ext
13212 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13213 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
13217 if test "$ac_cv_c_extern_prefix" = "yes"
13218 then
13219 cat >>confdefs.h <<\_ACEOF
13220 #define __ASM_NAME(name) "_" name
13221 _ACEOF
13223 else
13224 cat >>confdefs.h <<\_ACEOF
13225 #define __ASM_NAME(name) name
13226 _ACEOF
13231 DLLEXT=""
13233 DLLFLAGS="-D_REENTRANT"
13235 LDSHARED=""
13237 LDDLLFLAGS=""
13239 LIBEXT="so"
13241 IMPLIBEXT="def"
13243 LIBWINE_LDFLAGS=""
13246 case $host_os in
13247 cygwin*|mingw32*)
13248 if test -n "$ac_tool_prefix"; then
13249 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13250 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13253 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 else
13256 if test -n "$DLLTOOL"; then
13257 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13258 else
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 break 2
13270 done
13271 done
13272 IFS=$as_save_IFS
13276 DLLTOOL=$ac_cv_prog_DLLTOOL
13277 if test -n "$DLLTOOL"; then
13278 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13279 echo "${ECHO_T}$DLLTOOL" >&6; }
13280 else
13281 { echo "$as_me:$LINENO: result: no" >&5
13282 echo "${ECHO_T}no" >&6; }
13287 if test -z "$ac_cv_prog_DLLTOOL"; then
13288 ac_ct_DLLTOOL=$DLLTOOL
13289 # Extract the first word of "dlltool", so it can be a program name with args.
13290 set dummy dlltool; ac_word=$2
13291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13293 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296 if test -n "$ac_ct_DLLTOOL"; then
13297 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13298 else
13299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300 for as_dir in $PATH
13302 IFS=$as_save_IFS
13303 test -z "$as_dir" && as_dir=.
13304 for ac_exec_ext in '' $ac_executable_extensions; do
13305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13306 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13308 break 2
13310 done
13311 done
13312 IFS=$as_save_IFS
13316 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13317 if test -n "$ac_ct_DLLTOOL"; then
13318 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13319 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
13320 else
13321 { echo "$as_me:$LINENO: result: no" >&5
13322 echo "${ECHO_T}no" >&6; }
13325 if test "x$ac_ct_DLLTOOL" = x; then
13326 DLLTOOL="false"
13327 else
13328 case $cross_compiling:$ac_tool_warned in
13329 yes:)
13330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13331 whose name does not start with the host triplet. If you think this
13332 configuration is useful to you, please write to autoconf@gnu.org." >&5
13333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13334 whose name does not start with the host triplet. If you think this
13335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13336 ac_tool_warned=yes ;;
13337 esac
13338 DLLTOOL=$ac_ct_DLLTOOL
13340 else
13341 DLLTOOL="$ac_cv_prog_DLLTOOL"
13344 if test -n "$ac_tool_prefix"; then
13345 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13346 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13349 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 else
13352 if test -n "$DLLWRAP"; then
13353 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13354 else
13355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356 for as_dir in $PATH
13358 IFS=$as_save_IFS
13359 test -z "$as_dir" && as_dir=.
13360 for ac_exec_ext in '' $ac_executable_extensions; do
13361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13362 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13364 break 2
13366 done
13367 done
13368 IFS=$as_save_IFS
13372 DLLWRAP=$ac_cv_prog_DLLWRAP
13373 if test -n "$DLLWRAP"; then
13374 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13375 echo "${ECHO_T}$DLLWRAP" >&6; }
13376 else
13377 { echo "$as_me:$LINENO: result: no" >&5
13378 echo "${ECHO_T}no" >&6; }
13383 if test -z "$ac_cv_prog_DLLWRAP"; then
13384 ac_ct_DLLWRAP=$DLLWRAP
13385 # Extract the first word of "dllwrap", so it can be a program name with args.
13386 set dummy dllwrap; ac_word=$2
13387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13389 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392 if test -n "$ac_ct_DLLWRAP"; then
13393 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13394 else
13395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396 for as_dir in $PATH
13398 IFS=$as_save_IFS
13399 test -z "$as_dir" && as_dir=.
13400 for ac_exec_ext in '' $ac_executable_extensions; do
13401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13402 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13404 break 2
13406 done
13407 done
13408 IFS=$as_save_IFS
13412 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13413 if test -n "$ac_ct_DLLWRAP"; then
13414 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13415 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
13416 else
13417 { echo "$as_me:$LINENO: result: no" >&5
13418 echo "${ECHO_T}no" >&6; }
13421 if test "x$ac_ct_DLLWRAP" = x; then
13422 DLLWRAP="false"
13423 else
13424 case $cross_compiling:$ac_tool_warned in
13425 yes:)
13426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13427 whose name does not start with the host triplet. If you think this
13428 configuration is useful to you, please write to autoconf@gnu.org." >&5
13429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13430 whose name does not start with the host triplet. If you think this
13431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13432 ac_tool_warned=yes ;;
13433 esac
13434 DLLWRAP=$ac_ct_DLLWRAP
13436 else
13437 DLLWRAP="$ac_cv_prog_DLLWRAP"
13440 if test "$DLLWRAP" = "false"; then
13441 LIBEXT="a"
13442 else
13443 LIBEXT="dll"
13445 IMPLIBEXT="a"
13446 WIN16_FILES=""
13447 WIN16_INSTALL=""
13449 darwin*|macosx*)
13450 DLLEXT=".so"
13451 LIBEXT="dylib"
13452 DLLFLAGS="$DLLFLAGS -fPIC"
13453 LDDLLFLAGS="-bundle -multiply_defined suppress"
13454 LIBWINE_LDFLAGS="-multiply_defined suppress"
13455 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
13456 STRIP="$STRIP -u -r"
13457 COREFOUNDATIONLIB="-framework CoreFoundation"
13459 IOKITLIB="-framework IOKit -framework CoreFoundation"
13461 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
13463 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
13464 then
13465 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
13468 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
13469 then
13470 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
13473 case $host_cpu in
13474 *powerpc*)
13475 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
13476 esac
13477 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
13478 then
13479 CARBONLIB="-framework Carbon"
13481 QUARTZFILES='$(QUARTZFILES)'
13485 DLLFLAGS="$DLLFLAGS -fPIC"
13486 DLLEXT=".so"
13487 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13488 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
13489 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13491 else
13492 ac_wine_try_cflags_saved=$CFLAGS
13493 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
13494 cat >conftest.$ac_ext <<_ACEOF
13495 void myfunc() {}
13496 _ACEOF
13497 rm -f conftest.$ac_objext conftest$ac_exeext
13498 if { (ac_try="$ac_link"
13499 case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502 esac
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_link") 2>conftest.er1
13505 ac_status=$?
13506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } && {
13511 test -z "$ac_c_werror_flag" ||
13512 test ! -s conftest.err
13513 } && test -s conftest$ac_exeext &&
13514 $as_test_x conftest$ac_exeext; then
13515 ac_cv_c_dll_gnuelf="yes"
13516 else
13517 echo "$as_me: failed program was:" >&5
13518 sed 's/^/| /' conftest.$ac_ext >&5
13520 ac_cv_c_dll_gnuelf="no"
13523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13524 conftest$ac_exeext conftest.$ac_ext
13525 CFLAGS=$ac_wine_try_cflags_saved
13527 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13528 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
13529 if test "$ac_cv_c_dll_gnuelf" = "yes"
13530 then
13531 LDSHARED="\$(CC) -shared"
13532 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13533 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
13534 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
13535 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538 ac_wine_try_cflags_saved=$CFLAGS
13539 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
13540 cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h. */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13548 main ()
13552 return 0;
13554 _ACEOF
13555 rm -f conftest.$ac_objext conftest$ac_exeext
13556 if { (ac_try="$ac_link"
13557 case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560 esac
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_link") 2>conftest.er1
13563 ac_status=$?
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } && {
13569 test -z "$ac_c_werror_flag" ||
13570 test ! -s conftest.err
13571 } && test -s conftest$ac_exeext &&
13572 $as_test_x conftest$ac_exeext; then
13573 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
13574 else
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
13581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13582 conftest$ac_exeext conftest.$ac_ext
13583 CFLAGS=$ac_wine_try_cflags_saved
13585 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
13586 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
13587 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
13588 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13589 else
13590 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
13591 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
13592 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595 ac_wine_try_cflags_saved=$CFLAGS
13596 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
13597 cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h. */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13605 main ()
13609 return 0;
13611 _ACEOF
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (ac_try="$ac_link"
13614 case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_link") 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } && {
13626 test -z "$ac_c_werror_flag" ||
13627 test ! -s conftest.err
13628 } && test -s conftest$ac_exeext &&
13629 $as_test_x conftest$ac_exeext; then
13630 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
13631 else
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13635 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
13638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13639 conftest$ac_exeext conftest.$ac_ext
13640 CFLAGS=$ac_wine_try_cflags_saved
13642 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
13643 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
13644 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
13645 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
13651 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
13652 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
13653 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656 ac_wine_try_cflags_saved=$CFLAGS
13657 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13666 main ()
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 test -z "$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 } && test -s conftest$ac_exeext &&
13690 $as_test_x conftest$ac_exeext; then
13691 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
13692 else
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
13699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13700 conftest$ac_exeext conftest.$ac_ext
13701 CFLAGS=$ac_wine_try_cflags_saved
13703 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
13704 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
13705 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
13706 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13710 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
13711 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
13712 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 else
13715 ac_wine_try_cflags_saved=$CFLAGS
13716 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13717 cat >conftest.$ac_ext <<_ACEOF
13718 /* confdefs.h. */
13719 _ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13725 main ()
13729 return 0;
13731 _ACEOF
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } && {
13746 test -z "$ac_c_werror_flag" ||
13747 test ! -s conftest.err
13748 } && test -s conftest$ac_exeext &&
13749 $as_test_x conftest$ac_exeext; then
13750 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
13751 else
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13755 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
13758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13759 conftest$ac_exeext conftest.$ac_ext
13760 CFLAGS=$ac_wine_try_cflags_saved
13762 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
13763 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
13764 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
13765 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13769 echo '{ global: *; };' >conftest.map
13770 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
13771 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
13772 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 else
13775 ac_wine_try_cflags_saved=$CFLAGS
13776 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13785 main ()
13789 return 0;
13791 _ACEOF
13792 rm -f conftest.$ac_objext conftest$ac_exeext
13793 if { (ac_try="$ac_link"
13794 case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13797 esac
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_link") 2>conftest.er1
13800 ac_status=$?
13801 grep -v '^ *+' conftest.er1 >conftest.err
13802 rm -f conftest.er1
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } && {
13806 test -z "$ac_c_werror_flag" ||
13807 test ! -s conftest.err
13808 } && test -s conftest$ac_exeext &&
13809 $as_test_x conftest$ac_exeext; then
13810 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
13811 else
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
13818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13819 conftest$ac_exeext conftest.$ac_ext
13820 CFLAGS=$ac_wine_try_cflags_saved
13822 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
13823 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
13824 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
13825 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13828 rm -f conftest.map
13830 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
13831 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
13832 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835 ac_wine_try_cflags_saved=$CFLAGS
13836 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13837 cat >conftest.$ac_ext <<_ACEOF
13838 /* confdefs.h. */
13839 _ACEOF
13840 cat confdefs.h >>conftest.$ac_ext
13841 cat >>conftest.$ac_ext <<_ACEOF
13842 /* end confdefs.h. */
13845 main ()
13849 return 0;
13851 _ACEOF
13852 rm -f conftest.$ac_objext conftest$ac_exeext
13853 if { (ac_try="$ac_link"
13854 case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13857 esac
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_link") 2>conftest.er1
13860 ac_status=$?
13861 grep -v '^ *+' conftest.er1 >conftest.err
13862 rm -f conftest.er1
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } && {
13866 test -z "$ac_c_werror_flag" ||
13867 test ! -s conftest.err
13868 } && test -s conftest$ac_exeext &&
13869 $as_test_x conftest$ac_exeext; then
13870 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
13871 else
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13875 ac_cv_cflags__fPIC__Wl___export_dynamic=no
13878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13879 conftest$ac_exeext conftest.$ac_ext
13880 CFLAGS=$ac_wine_try_cflags_saved
13882 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
13883 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
13884 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
13885 LDEXECFLAGS="-Wl,--export-dynamic"
13890 as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
13891 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
13892 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
13893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896 ac_wine_try_cflags_saved=$CFLAGS
13897 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
13898 cat >conftest.$ac_ext <<_ACEOF
13899 /* confdefs.h. */
13900 _ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13906 main ()
13910 return 0;
13912 _ACEOF
13913 rm -f conftest.$ac_objext conftest$ac_exeext
13914 if { (ac_try="$ac_link"
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_link") 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 test -z "$ac_c_werror_flag" ||
13928 test ! -s conftest.err
13929 } && test -s conftest$ac_exeext &&
13930 $as_test_x conftest$ac_exeext; then
13931 eval "$as_ac_var=yes"
13932 else
13933 echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13936 eval "$as_ac_var=no"
13939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13940 conftest$ac_exeext conftest.$ac_ext
13941 CFLAGS=$ac_wine_try_cflags_saved
13943 ac_res=`eval echo '${'$as_ac_var'}'`
13944 { echo "$as_me:$LINENO: result: $ac_res" >&5
13945 echo "${ECHO_T}$ac_res" >&6; }
13946 if test `eval echo '${'$as_ac_var'}'` = yes; then
13947 LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
13951 case $host_cpu in
13952 *i[3456789]86* | x86_64)
13953 { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
13954 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
13955 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13958 ac_wine_try_cflags_saved=$CFLAGS
13959 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
13960 cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h. */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13968 main ()
13972 return 0;
13974 _ACEOF
13975 rm -f conftest.$ac_objext conftest$ac_exeext
13976 if { (ac_try="$ac_link"
13977 case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13980 esac
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_link") 2>conftest.er1
13983 ac_status=$?
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } && {
13989 test -z "$ac_c_werror_flag" ||
13990 test ! -s conftest.err
13991 } && test -s conftest$ac_exeext &&
13992 $as_test_x conftest$ac_exeext; then
13993 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
13994 else
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
14001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14002 conftest$ac_exeext conftest.$ac_ext
14003 CFLAGS=$ac_wine_try_cflags_saved
14005 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
14006 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
14007 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
14008 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
14012 esac
14014 else
14015 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14016 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
14017 if test "${ac_cv_c_dll_unixware+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020 ac_wine_try_cflags_saved=$CFLAGS
14021 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14022 cat >conftest.$ac_ext <<_ACEOF
14023 void myfunc() {}
14024 _ACEOF
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (ac_try="$ac_link"
14027 case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14030 esac
14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 (eval "$ac_link") 2>conftest.er1
14033 ac_status=$?
14034 grep -v '^ *+' conftest.er1 >conftest.err
14035 rm -f conftest.er1
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } && {
14039 test -z "$ac_c_werror_flag" ||
14040 test ! -s conftest.err
14041 } && test -s conftest$ac_exeext &&
14042 $as_test_x conftest$ac_exeext; then
14043 ac_cv_c_dll_unixware="yes"
14044 else
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ac_cv_c_dll_unixware="no"
14051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14052 conftest$ac_exeext conftest.$ac_ext
14053 CFLAGS=$ac_wine_try_cflags_saved
14055 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14056 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
14057 if test "$ac_cv_c_dll_unixware" = "yes"
14058 then
14059 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14060 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14062 else
14063 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14064 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
14065 if test "${ac_cv_c_dll_hpux+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068 ac_wine_try_cflags_saved=$CFLAGS
14069 CFLAGS="$CFLAGS -shared"
14070 cat >conftest.$ac_ext <<_ACEOF
14071 void myfunc() {}
14072 _ACEOF
14073 rm -f conftest.$ac_objext conftest$ac_exeext
14074 if { (ac_try="$ac_link"
14075 case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14078 esac
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_link") 2>conftest.er1
14081 ac_status=$?
14082 grep -v '^ *+' conftest.er1 >conftest.err
14083 rm -f conftest.er1
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } && {
14087 test -z "$ac_c_werror_flag" ||
14088 test ! -s conftest.err
14089 } && test -s conftest$ac_exeext &&
14090 $as_test_x conftest$ac_exeext; then
14091 ac_cv_c_dll_hpux="yes"
14092 else
14093 echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.$ac_ext >&5
14096 ac_cv_c_dll_hpux="no"
14099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14100 conftest$ac_exeext conftest.$ac_ext
14101 CFLAGS=$ac_wine_try_cflags_saved
14103 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14104 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
14105 if test "$ac_cv_c_dll_hpux" = "yes"
14106 then
14107 LIBEXT="sl"
14108 DLLEXT=".sl"
14109 LDDLLFLAGS="-shared -fPIC"
14110 LDSHARED="\$(CC) -shared"
14115 CROSSTEST=""
14117 if test "$cross_compiling" = "no"
14118 then
14119 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
14121 # Extract the first word of "$ac_prog", so it can be a program name with args.
14122 set dummy $ac_prog; ac_word=$2
14123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14125 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128 if test -n "$CROSSCC"; then
14129 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14130 else
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 for as_dir in $PATH
14134 IFS=$as_save_IFS
14135 test -z "$as_dir" && as_dir=.
14136 for ac_exec_ext in '' $ac_executable_extensions; do
14137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14138 ac_cv_prog_CROSSCC="$ac_prog"
14139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14140 break 2
14142 done
14143 done
14144 IFS=$as_save_IFS
14148 CROSSCC=$ac_cv_prog_CROSSCC
14149 if test -n "$CROSSCC"; then
14150 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
14151 echo "${ECHO_T}$CROSSCC" >&6; }
14152 else
14153 { echo "$as_me:$LINENO: result: no" >&5
14154 echo "${ECHO_T}no" >&6; }
14158 test -n "$CROSSCC" && break
14159 done
14160 test -n "$CROSSCC" || CROSSCC="false"
14162 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
14164 # Extract the first word of "$ac_prog", so it can be a program name with args.
14165 set dummy $ac_prog; ac_word=$2
14166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14168 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171 if test -n "$DLLTOOL"; then
14172 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14173 else
14174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14175 for as_dir in $PATH
14177 IFS=$as_save_IFS
14178 test -z "$as_dir" && as_dir=.
14179 for ac_exec_ext in '' $ac_executable_extensions; do
14180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14181 ac_cv_prog_DLLTOOL="$ac_prog"
14182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14183 break 2
14185 done
14186 done
14187 IFS=$as_save_IFS
14191 DLLTOOL=$ac_cv_prog_DLLTOOL
14192 if test -n "$DLLTOOL"; then
14193 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14194 echo "${ECHO_T}$DLLTOOL" >&6; }
14195 else
14196 { echo "$as_me:$LINENO: result: no" >&5
14197 echo "${ECHO_T}no" >&6; }
14201 test -n "$DLLTOOL" && break
14202 done
14203 test -n "$DLLTOOL" || DLLTOOL="false"
14205 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres
14207 # Extract the first word of "$ac_prog", so it can be a program name with args.
14208 set dummy $ac_prog; ac_word=$2
14209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14211 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14213 else
14214 if test -n "$CROSSWINDRES"; then
14215 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14216 else
14217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218 for as_dir in $PATH
14220 IFS=$as_save_IFS
14221 test -z "$as_dir" && as_dir=.
14222 for ac_exec_ext in '' $ac_executable_extensions; do
14223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14224 ac_cv_prog_CROSSWINDRES="$ac_prog"
14225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14226 break 2
14228 done
14229 done
14230 IFS=$as_save_IFS
14234 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14235 if test -n "$CROSSWINDRES"; then
14236 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14237 echo "${ECHO_T}$CROSSWINDRES" >&6; }
14238 else
14239 { echo "$as_me:$LINENO: result: no" >&5
14240 echo "${ECHO_T}no" >&6; }
14244 test -n "$CROSSWINDRES" && break
14245 done
14246 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14248 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14251 esac
14253 if test "$LIBEXT" = "a"; then
14254 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14255 It is currently not possible to build Wine without shared library
14256 (.so) support to allow transparent switch between .so and .dll files.
14257 If you are using Linux, you will need a newer binutils.
14258 " >&5
14259 echo "$as_me: error: could not find a way to build shared libraries.
14260 It is currently not possible to build Wine without shared library
14261 (.so) support to allow transparent switch between .so and .dll files.
14262 If you are using Linux, you will need a newer binutils.
14263 " >&2;}
14264 { (exit 1); exit 1; }; }
14267 case $build_os in
14268 cygwin*|mingw32*)
14269 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
14271 darwin*|macosx*)
14272 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
14275 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
14277 esac
14279 case $host_os in
14280 mingw32*)
14281 CRTLIBS="-lmsvcrt"
14283 SOCKETLIBS="-lws2_32"
14286 esac
14288 MAIN_BINARY="wine-pthread"
14289 case $host_cpu in
14290 *i[3456789]86*)
14291 case $host_os in
14292 linux* | k*bsd*-gnu)
14293 MAIN_BINARY="wine-glibc"
14295 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
14297 esac
14299 esac
14302 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14303 then
14304 # Extract the first word of "ldd", so it can be a program name with args.
14305 set dummy ldd; ac_word=$2
14306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14308 if test "${ac_cv_path_LDD+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311 case $LDD in
14312 [\\/]* | ?:[\\/]*)
14313 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14317 as_dummy="/sbin:/usr/sbin:$PATH"
14318 for as_dir in $as_dummy
14320 IFS=$as_save_IFS
14321 test -z "$as_dir" && as_dir=.
14322 for ac_exec_ext in '' $ac_executable_extensions; do
14323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14324 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14326 break 2
14328 done
14329 done
14330 IFS=$as_save_IFS
14332 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14334 esac
14336 LDD=$ac_cv_path_LDD
14337 if test -n "$LDD"; then
14338 { echo "$as_me:$LINENO: result: $LDD" >&5
14339 echo "${ECHO_T}$LDD" >&6; }
14340 else
14341 { echo "$as_me:$LINENO: result: no" >&5
14342 echo "${ECHO_T}no" >&6; }
14346 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14347 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
14348 if test "${ac_cv_lib_soname_X11+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351 ac_get_soname_save_LIBS=$LIBS
14352 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14353 cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h. */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14360 /* Override any GCC internal prototype to avoid an error.
14361 Use char because int might match the return type of a GCC
14362 builtin and then its argument prototype would still apply. */
14363 #ifdef __cplusplus
14364 extern "C"
14365 #endif
14366 char XCreateWindow ();
14368 main ()
14370 return XCreateWindow ();
14372 return 0;
14374 _ACEOF
14375 rm -f conftest.$ac_objext conftest$ac_exeext
14376 if { (ac_try="$ac_link"
14377 case "(($ac_try" in
14378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379 *) ac_try_echo=$ac_try;;
14380 esac
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_link") 2>conftest.er1
14383 ac_status=$?
14384 grep -v '^ *+' conftest.er1 >conftest.err
14385 rm -f conftest.er1
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } && {
14389 test -z "$ac_c_werror_flag" ||
14390 test ! -s conftest.err
14391 } && test -s conftest$ac_exeext &&
14392 $as_test_x conftest$ac_exeext; then
14393 case "$LIBEXT" in
14394 dylib) ac_cv_lib_soname_X11=`otool -L conftest$ac_exeext | grep libX11\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libX11\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14395 so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14396 esac
14397 if test "x$ac_cv_lib_soname_X11" = "x"
14398 then
14399 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14401 else
14402 echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14405 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14409 conftest$ac_exeext conftest.$ac_ext
14410 LIBS=$ac_get_soname_save_LIBS
14412 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14413 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
14414 if test "${ac_cv_lib_soname_X11+set}" = set; then
14416 cat >>confdefs.h <<_ACEOF
14417 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14418 _ACEOF
14422 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
14423 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
14424 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427 ac_get_soname_save_LIBS=$LIBS
14428 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14429 cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h. */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14436 /* Override any GCC internal prototype to avoid an error.
14437 Use char because int might match the return type of a GCC
14438 builtin and then its argument prototype would still apply. */
14439 #ifdef __cplusplus
14440 extern "C"
14441 #endif
14442 char XextCreateExtension ();
14444 main ()
14446 return XextCreateExtension ();
14448 return 0;
14450 _ACEOF
14451 rm -f conftest.$ac_objext conftest$ac_exeext
14452 if { (ac_try="$ac_link"
14453 case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456 esac
14457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_link") 2>conftest.er1
14459 ac_status=$?
14460 grep -v '^ *+' conftest.er1 >conftest.err
14461 rm -f conftest.er1
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } && {
14465 test -z "$ac_c_werror_flag" ||
14466 test ! -s conftest.err
14467 } && test -s conftest$ac_exeext &&
14468 $as_test_x conftest$ac_exeext; then
14469 case "$LIBEXT" in
14470 dylib) ac_cv_lib_soname_Xext=`otool -L conftest$ac_exeext | grep libXext\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXext\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14471 so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14472 esac
14473 if test "x$ac_cv_lib_soname_Xext" = "x"
14474 then
14475 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14477 else
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14485 conftest$ac_exeext conftest.$ac_ext
14486 LIBS=$ac_get_soname_save_LIBS
14488 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14489 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
14490 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14492 cat >>confdefs.h <<_ACEOF
14493 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14494 _ACEOF
14498 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
14499 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
14500 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503 ac_get_soname_save_LIBS=$LIBS
14504 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14505 cat >conftest.$ac_ext <<_ACEOF
14506 /* confdefs.h. */
14507 _ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14515 #ifdef __cplusplus
14516 extern "C"
14517 #endif
14518 char XOpenDevice ();
14520 main ()
14522 return XOpenDevice ();
14524 return 0;
14526 _ACEOF
14527 rm -f conftest.$ac_objext conftest$ac_exeext
14528 if { (ac_try="$ac_link"
14529 case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532 esac
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_link") 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } && {
14541 test -z "$ac_c_werror_flag" ||
14542 test ! -s conftest.err
14543 } && test -s conftest$ac_exeext &&
14544 $as_test_x conftest$ac_exeext; then
14545 case "$LIBEXT" in
14546 dylib) ac_cv_lib_soname_Xi=`otool -L conftest$ac_exeext | grep libXi\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14547 so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14548 esac
14549 if test "x$ac_cv_lib_soname_Xi" = "x"
14550 then
14551 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14553 else
14554 echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14557 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14561 conftest$ac_exeext conftest.$ac_ext
14562 LIBS=$ac_get_soname_save_LIBS
14564 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14565 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
14566 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14568 cat >>confdefs.h <<_ACEOF
14569 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14570 _ACEOF
14574 { echo "$as_me:$LINENO: checking for -lXinerama soname" >&5
14575 echo $ECHO_N "checking for -lXinerama soname... $ECHO_C" >&6; }
14576 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579 ac_get_soname_save_LIBS=$LIBS
14580 LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14588 /* Override any GCC internal prototype to avoid an error.
14589 Use char because int might match the return type of a GCC
14590 builtin and then its argument prototype would still apply. */
14591 #ifdef __cplusplus
14592 extern "C"
14593 #endif
14594 char XineramaQueryScreens ();
14596 main ()
14598 return XineramaQueryScreens ();
14600 return 0;
14602 _ACEOF
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (ac_try="$ac_link"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14608 esac
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610 (eval "$ac_link") 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } && {
14617 test -z "$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14619 } && test -s conftest$ac_exeext &&
14620 $as_test_x conftest$ac_exeext; then
14621 case "$LIBEXT" in
14622 dylib) ac_cv_lib_soname_Xinerama=`otool -L conftest$ac_exeext | grep libXinerama\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXinerama\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14623 so) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep libXinerama\\.so | sed -e "s/^.*\(libXinerama\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14624 esac
14625 if test "x$ac_cv_lib_soname_Xinerama" = "x"
14626 then
14627 ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14629 else
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14633 ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14637 conftest$ac_exeext conftest.$ac_ext
14638 LIBS=$ac_get_soname_save_LIBS
14640 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
14641 echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
14642 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14644 cat >>confdefs.h <<_ACEOF
14645 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
14646 _ACEOF
14650 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14651 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
14652 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 else
14655 ac_get_soname_save_LIBS=$LIBS
14656 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14657 cat >conftest.$ac_ext <<_ACEOF
14658 /* confdefs.h. */
14659 _ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14664 /* Override any GCC internal prototype to avoid an error.
14665 Use char because int might match the return type of a GCC
14666 builtin and then its argument prototype would still apply. */
14667 #ifdef __cplusplus
14668 extern "C"
14669 #endif
14670 char XRenderQueryExtension ();
14672 main ()
14674 return XRenderQueryExtension ();
14676 return 0;
14678 _ACEOF
14679 rm -f conftest.$ac_objext conftest$ac_exeext
14680 if { (ac_try="$ac_link"
14681 case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14684 esac
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_link") 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } && {
14693 test -z "$ac_c_werror_flag" ||
14694 test ! -s conftest.err
14695 } && test -s conftest$ac_exeext &&
14696 $as_test_x conftest$ac_exeext; then
14697 case "$LIBEXT" in
14698 dylib) ac_cv_lib_soname_Xrender=`otool -L conftest$ac_exeext | grep libXrender\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXrender\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14699 so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14700 esac
14701 if test "x$ac_cv_lib_soname_Xrender" = "x"
14702 then
14703 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14705 else
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14713 conftest$ac_exeext conftest.$ac_ext
14714 LIBS=$ac_get_soname_save_LIBS
14716 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14717 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
14718 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14720 cat >>confdefs.h <<_ACEOF
14721 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14722 _ACEOF
14726 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14727 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
14728 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14730 else
14731 ac_get_soname_save_LIBS=$LIBS
14732 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14733 cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h. */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14740 /* Override any GCC internal prototype to avoid an error.
14741 Use char because int might match the return type of a GCC
14742 builtin and then its argument prototype would still apply. */
14743 #ifdef __cplusplus
14744 extern "C"
14745 #endif
14746 char XRRQueryExtension ();
14748 main ()
14750 return XRRQueryExtension ();
14752 return 0;
14754 _ACEOF
14755 rm -f conftest.$ac_objext conftest$ac_exeext
14756 if { (ac_try="$ac_link"
14757 case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14760 esac
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_link") 2>conftest.er1
14763 ac_status=$?
14764 grep -v '^ *+' conftest.er1 >conftest.err
14765 rm -f conftest.er1
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } && {
14769 test -z "$ac_c_werror_flag" ||
14770 test ! -s conftest.err
14771 } && test -s conftest$ac_exeext &&
14772 $as_test_x conftest$ac_exeext; then
14773 case "$LIBEXT" in
14774 dylib) ac_cv_lib_soname_Xrandr=`otool -L conftest$ac_exeext | grep libXrandr\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXrandr\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14775 so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14776 esac
14777 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14778 then
14779 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14781 else
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14785 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14789 conftest$ac_exeext conftest.$ac_ext
14790 LIBS=$ac_get_soname_save_LIBS
14792 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14793 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
14794 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14796 cat >>confdefs.h <<_ACEOF
14797 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14798 _ACEOF
14802 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14803 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
14804 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 else
14807 ac_get_soname_save_LIBS=$LIBS
14808 LIBS="-lfreetype $X_LIBS $LIBS"
14809 cat >conftest.$ac_ext <<_ACEOF
14810 /* confdefs.h. */
14811 _ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14816 /* Override any GCC internal prototype to avoid an error.
14817 Use char because int might match the return type of a GCC
14818 builtin and then its argument prototype would still apply. */
14819 #ifdef __cplusplus
14820 extern "C"
14821 #endif
14822 char FT_Init_FreeType ();
14824 main ()
14826 return FT_Init_FreeType ();
14828 return 0;
14830 _ACEOF
14831 rm -f conftest.$ac_objext conftest$ac_exeext
14832 if { (ac_try="$ac_link"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836 esac
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_link") 2>conftest.er1
14839 ac_status=$?
14840 grep -v '^ *+' conftest.er1 >conftest.err
14841 rm -f conftest.er1
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest$ac_exeext &&
14848 $as_test_x conftest$ac_exeext; then
14849 case "$LIBEXT" in
14850 dylib) ac_cv_lib_soname_freetype=`otool -L conftest$ac_exeext | grep libfreetype\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libfreetype\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14851 so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14852 esac
14853 if test "x$ac_cv_lib_soname_freetype" = "x"
14854 then
14855 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14857 else
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14861 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14865 conftest$ac_exeext conftest.$ac_ext
14866 LIBS=$ac_get_soname_save_LIBS
14868 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14869 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
14870 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14872 cat >>confdefs.h <<_ACEOF
14873 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14874 _ACEOF
14878 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
14879 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
14880 if test "${ac_cv_lib_soname_GL+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883 ac_get_soname_save_LIBS=$LIBS
14884 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14885 cat >conftest.$ac_ext <<_ACEOF
14886 /* confdefs.h. */
14887 _ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14892 /* Override any GCC internal prototype to avoid an error.
14893 Use char because int might match the return type of a GCC
14894 builtin and then its argument prototype would still apply. */
14895 #ifdef __cplusplus
14896 extern "C"
14897 #endif
14898 char glXQueryExtension ();
14900 main ()
14902 return glXQueryExtension ();
14904 return 0;
14906 _ACEOF
14907 rm -f conftest.$ac_objext conftest$ac_exeext
14908 if { (ac_try="$ac_link"
14909 case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14912 esac
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_link") 2>conftest.er1
14915 ac_status=$?
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } && {
14921 test -z "$ac_c_werror_flag" ||
14922 test ! -s conftest.err
14923 } && test -s conftest$ac_exeext &&
14924 $as_test_x conftest$ac_exeext; then
14925 case "$LIBEXT" in
14926 dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep libGL\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14927 so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14928 esac
14929 if test "x$ac_cv_lib_soname_GL" = "x"
14930 then
14931 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14933 else
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14937 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14941 conftest$ac_exeext conftest.$ac_ext
14942 LIBS=$ac_get_soname_save_LIBS
14944 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14945 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
14946 if test "${ac_cv_lib_soname_GL+set}" = set; then
14948 cat >>confdefs.h <<_ACEOF
14949 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14950 _ACEOF
14954 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
14955 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
14956 if test "${ac_cv_lib_soname_hal+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 else
14959 ac_get_soname_save_LIBS=$LIBS
14960 LIBS="-lhal $LIBS"
14961 cat >conftest.$ac_ext <<_ACEOF
14962 /* confdefs.h. */
14963 _ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14968 /* Override any GCC internal prototype to avoid an error.
14969 Use char because int might match the return type of a GCC
14970 builtin and then its argument prototype would still apply. */
14971 #ifdef __cplusplus
14972 extern "C"
14973 #endif
14974 char libhal_ctx_new ();
14976 main ()
14978 return libhal_ctx_new ();
14980 return 0;
14982 _ACEOF
14983 rm -f conftest.$ac_objext conftest$ac_exeext
14984 if { (ac_try="$ac_link"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988 esac
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_link") 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } && {
14997 test -z "$ac_c_werror_flag" ||
14998 test ! -s conftest.err
14999 } && test -s conftest$ac_exeext &&
15000 $as_test_x conftest$ac_exeext; then
15001 case "$LIBEXT" in
15002 dylib) ac_cv_lib_soname_hal=`otool -L conftest$ac_exeext | grep libhal\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libhal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15003 so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15004 esac
15005 if test "x$ac_cv_lib_soname_hal" = "x"
15006 then
15007 ac_cv_lib_soname_hal="libhal.$LIBEXT"
15009 else
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 ac_cv_lib_soname_hal="libhal.$LIBEXT"
15016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15017 conftest$ac_exeext conftest.$ac_ext
15018 LIBS=$ac_get_soname_save_LIBS
15020 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
15021 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
15022 if test "${ac_cv_lib_soname_hal+set}" = set; then
15024 cat >>confdefs.h <<_ACEOF
15025 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
15026 _ACEOF
15030 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
15031 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
15032 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15034 else
15035 ac_get_soname_save_LIBS=$LIBS
15036 LIBS="-ltxc_dxtn $LIBS"
15037 cat >conftest.$ac_ext <<_ACEOF
15038 /* confdefs.h. */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15044 /* Override any GCC internal prototype to avoid an error.
15045 Use char because int might match the return type of a GCC
15046 builtin and then its argument prototype would still apply. */
15047 #ifdef __cplusplus
15048 extern "C"
15049 #endif
15050 char fetch_2d_texel_rgba_dxt1 ();
15052 main ()
15054 return fetch_2d_texel_rgba_dxt1 ();
15056 return 0;
15058 _ACEOF
15059 rm -f conftest.$ac_objext conftest$ac_exeext
15060 if { (ac_try="$ac_link"
15061 case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_link") 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } && {
15073 test -z "$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15075 } && test -s conftest$ac_exeext &&
15076 $as_test_x conftest$ac_exeext; then
15077 case "$LIBEXT" in
15078 dylib) ac_cv_lib_soname_txc_dxtn=`otool -L conftest$ac_exeext | grep libtxc_dxtn\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libtxc_dxtn\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15079 so) ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.so | sed -e "s/^.*\(libtxc_dxtn\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15080 esac
15081 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
15082 then
15083 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15085 else
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15093 conftest$ac_exeext conftest.$ac_ext
15094 LIBS=$ac_get_soname_save_LIBS
15096 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15097 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
15098 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15100 cat >>confdefs.h <<_ACEOF
15101 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15102 _ACEOF
15106 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
15107 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
15108 if test "${ac_cv_lib_soname_cups+set}" = set; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 else
15111 ac_get_soname_save_LIBS=$LIBS
15112 LIBS="-lcups $LIBS"
15113 cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h. */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15120 /* Override any GCC internal prototype to avoid an error.
15121 Use char because int might match the return type of a GCC
15122 builtin and then its argument prototype would still apply. */
15123 #ifdef __cplusplus
15124 extern "C"
15125 #endif
15126 char cupsGetDefault ();
15128 main ()
15130 return cupsGetDefault ();
15132 return 0;
15134 _ACEOF
15135 rm -f conftest.$ac_objext conftest$ac_exeext
15136 if { (ac_try="$ac_link"
15137 case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15140 esac
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_link") 2>conftest.er1
15143 ac_status=$?
15144 grep -v '^ *+' conftest.er1 >conftest.err
15145 rm -f conftest.er1
15146 cat conftest.err >&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } && {
15149 test -z "$ac_c_werror_flag" ||
15150 test ! -s conftest.err
15151 } && test -s conftest$ac_exeext &&
15152 $as_test_x conftest$ac_exeext; then
15153 case "$LIBEXT" in
15154 dylib) ac_cv_lib_soname_cups=`otool -L conftest$ac_exeext | grep libcups\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcups\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15155 so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15156 esac
15157 if test "x$ac_cv_lib_soname_cups" = "x"
15158 then
15159 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15161 else
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15169 conftest$ac_exeext conftest.$ac_ext
15170 LIBS=$ac_get_soname_save_LIBS
15172 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15173 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
15174 if test "${ac_cv_lib_soname_cups+set}" = set; then
15176 cat >>confdefs.h <<_ACEOF
15177 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15178 _ACEOF
15182 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
15183 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
15184 if test "${ac_cv_lib_soname_jack+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187 ac_get_soname_save_LIBS=$LIBS
15188 LIBS="-ljack $LIBS"
15189 cat >conftest.$ac_ext <<_ACEOF
15190 /* confdefs.h. */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15196 /* Override any GCC internal prototype to avoid an error.
15197 Use char because int might match the return type of a GCC
15198 builtin and then its argument prototype would still apply. */
15199 #ifdef __cplusplus
15200 extern "C"
15201 #endif
15202 char jack_client_new ();
15204 main ()
15206 return jack_client_new ();
15208 return 0;
15210 _ACEOF
15211 rm -f conftest.$ac_objext conftest$ac_exeext
15212 if { (ac_try="$ac_link"
15213 case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216 esac
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_link") 2>conftest.er1
15219 ac_status=$?
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } && {
15225 test -z "$ac_c_werror_flag" ||
15226 test ! -s conftest.err
15227 } && test -s conftest$ac_exeext &&
15228 $as_test_x conftest$ac_exeext; then
15229 case "$LIBEXT" in
15230 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep libjack\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libjack\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15231 so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15232 esac
15233 if test "x$ac_cv_lib_soname_jack" = "x"
15234 then
15235 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15237 else
15238 echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15241 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15245 conftest$ac_exeext conftest.$ac_ext
15246 LIBS=$ac_get_soname_save_LIBS
15248 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15249 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
15250 if test "${ac_cv_lib_soname_jack+set}" = set; then
15252 cat >>confdefs.h <<_ACEOF
15253 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15254 _ACEOF
15258 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15259 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
15260 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 else
15263 ac_get_soname_save_LIBS=$LIBS
15264 LIBS="-lfontconfig $LIBS"
15265 cat >conftest.$ac_ext <<_ACEOF
15266 /* confdefs.h. */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15272 /* Override any GCC internal prototype to avoid an error.
15273 Use char because int might match the return type of a GCC
15274 builtin and then its argument prototype would still apply. */
15275 #ifdef __cplusplus
15276 extern "C"
15277 #endif
15278 char FcInit ();
15280 main ()
15282 return FcInit ();
15284 return 0;
15286 _ACEOF
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (ac_try="$ac_link"
15289 case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292 esac
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_link") 2>conftest.er1
15295 ac_status=$?
15296 grep -v '^ *+' conftest.er1 >conftest.err
15297 rm -f conftest.er1
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } && {
15301 test -z "$ac_c_werror_flag" ||
15302 test ! -s conftest.err
15303 } && test -s conftest$ac_exeext &&
15304 $as_test_x conftest$ac_exeext; then
15305 case "$LIBEXT" in
15306 dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep libfontconfig\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15307 so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15308 esac
15309 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15310 then
15311 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15313 else
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15321 conftest$ac_exeext conftest.$ac_ext
15322 LIBS=$ac_get_soname_save_LIBS
15324 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15325 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
15326 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15328 cat >>confdefs.h <<_ACEOF
15329 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15330 _ACEOF
15334 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
15335 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
15336 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15339 ac_get_soname_save_LIBS=$LIBS
15340 LIBS="-lssl $LIBS"
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15348 /* Override any GCC internal prototype to avoid an error.
15349 Use char because int might match the return type of a GCC
15350 builtin and then its argument prototype would still apply. */
15351 #ifdef __cplusplus
15352 extern "C"
15353 #endif
15354 char SSL_library_init ();
15356 main ()
15358 return SSL_library_init ();
15360 return 0;
15362 _ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (ac_try="$ac_link"
15365 case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368 esac
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_link") 2>conftest.er1
15371 ac_status=$?
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } && {
15377 test -z "$ac_c_werror_flag" ||
15378 test ! -s conftest.err
15379 } && test -s conftest$ac_exeext &&
15380 $as_test_x conftest$ac_exeext; then
15381 case "$LIBEXT" in
15382 dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep libssl\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15383 so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15384 esac
15385 if test "x$ac_cv_lib_soname_ssl" = "x"
15386 then
15387 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15389 else
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15397 conftest$ac_exeext conftest.$ac_ext
15398 LIBS=$ac_get_soname_save_LIBS
15400 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15401 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
15402 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15404 cat >>confdefs.h <<_ACEOF
15405 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15406 _ACEOF
15410 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15411 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
15412 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 else
15415 ac_get_soname_save_LIBS=$LIBS
15416 LIBS="-lcrypto $LIBS"
15417 cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h. */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15424 /* Override any GCC internal prototype to avoid an error.
15425 Use char because int might match the return type of a GCC
15426 builtin and then its argument prototype would still apply. */
15427 #ifdef __cplusplus
15428 extern "C"
15429 #endif
15430 char BIO_new_socket ();
15432 main ()
15434 return BIO_new_socket ();
15436 return 0;
15438 _ACEOF
15439 rm -f conftest.$ac_objext conftest$ac_exeext
15440 if { (ac_try="$ac_link"
15441 case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15444 esac
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_link") 2>conftest.er1
15447 ac_status=$?
15448 grep -v '^ *+' conftest.er1 >conftest.err
15449 rm -f conftest.er1
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } && {
15453 test -z "$ac_c_werror_flag" ||
15454 test ! -s conftest.err
15455 } && test -s conftest$ac_exeext &&
15456 $as_test_x conftest$ac_exeext; then
15457 case "$LIBEXT" in
15458 dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep libcrypto\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15459 so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15460 esac
15461 if test "x$ac_cv_lib_soname_crypto" = "x"
15462 then
15463 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15465 else
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15469 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15473 conftest$ac_exeext conftest.$ac_ext
15474 LIBS=$ac_get_soname_save_LIBS
15476 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15477 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
15478 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15480 cat >>confdefs.h <<_ACEOF
15481 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15482 _ACEOF
15486 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15487 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
15488 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 else
15491 ac_get_soname_save_LIBS=$LIBS
15492 LIBS="-lncurses $LIBS"
15493 cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h. */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15500 /* Override any GCC internal prototype to avoid an error.
15501 Use char because int might match the return type of a GCC
15502 builtin and then its argument prototype would still apply. */
15503 #ifdef __cplusplus
15504 extern "C"
15505 #endif
15506 char waddch ();
15508 main ()
15510 return waddch ();
15512 return 0;
15514 _ACEOF
15515 rm -f conftest.$ac_objext conftest$ac_exeext
15516 if { (ac_try="$ac_link"
15517 case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15520 esac
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_link") 2>conftest.er1
15523 ac_status=$?
15524 grep -v '^ *+' conftest.er1 >conftest.err
15525 rm -f conftest.er1
15526 cat conftest.err >&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } && {
15529 test -z "$ac_c_werror_flag" ||
15530 test ! -s conftest.err
15531 } && test -s conftest$ac_exeext &&
15532 $as_test_x conftest$ac_exeext; then
15533 case "$LIBEXT" in
15534 dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep libncurses\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15535 so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15536 esac
15537 if test "x$ac_cv_lib_soname_ncurses" = "x"
15538 then
15539 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15541 else
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15545 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15549 conftest$ac_exeext conftest.$ac_ext
15550 LIBS=$ac_get_soname_save_LIBS
15552 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15553 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
15554 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15556 cat >>confdefs.h <<_ACEOF
15557 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15558 _ACEOF
15562 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15563 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
15564 if test "${ac_cv_lib_soname_curses+set}" = set; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15566 else
15567 ac_get_soname_save_LIBS=$LIBS
15568 LIBS="-lcurses $LIBS"
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. */
15576 /* Override any GCC internal prototype to avoid an error.
15577 Use char because int might match the return type of a GCC
15578 builtin and then its argument prototype would still apply. */
15579 #ifdef __cplusplus
15580 extern "C"
15581 #endif
15582 char waddch ();
15584 main ()
15586 return waddch ();
15588 return 0;
15590 _ACEOF
15591 rm -f conftest.$ac_objext conftest$ac_exeext
15592 if { (ac_try="$ac_link"
15593 case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15596 esac
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_link") 2>conftest.er1
15599 ac_status=$?
15600 grep -v '^ *+' conftest.er1 >conftest.err
15601 rm -f conftest.er1
15602 cat conftest.err >&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } && {
15605 test -z "$ac_c_werror_flag" ||
15606 test ! -s conftest.err
15607 } && test -s conftest$ac_exeext &&
15608 $as_test_x conftest$ac_exeext; then
15609 case "$LIBEXT" in
15610 dylib) ac_cv_lib_soname_curses=`otool -L conftest$ac_exeext | grep libcurses\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15611 so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15612 esac
15613 if test "x$ac_cv_lib_soname_curses" = "x"
15614 then
15615 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15617 else
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15625 conftest$ac_exeext conftest.$ac_ext
15626 LIBS=$ac_get_soname_save_LIBS
15628 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15629 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
15630 if test "${ac_cv_lib_soname_curses+set}" = set; then
15632 cat >>confdefs.h <<_ACEOF
15633 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15634 _ACEOF
15638 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15639 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
15640 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 else
15643 ac_get_soname_save_LIBS=$LIBS
15644 LIBS="-ljpeg $LIBS"
15645 cat >conftest.$ac_ext <<_ACEOF
15646 /* confdefs.h. */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15652 /* Override any GCC internal prototype to avoid an error.
15653 Use char because int might match the return type of a GCC
15654 builtin and then its argument prototype would still apply. */
15655 #ifdef __cplusplus
15656 extern "C"
15657 #endif
15658 char jpeg_start_decompress ();
15660 main ()
15662 return jpeg_start_decompress ();
15664 return 0;
15666 _ACEOF
15667 rm -f conftest.$ac_objext conftest$ac_exeext
15668 if { (ac_try="$ac_link"
15669 case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_link") 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } && {
15681 test -z "$ac_c_werror_flag" ||
15682 test ! -s conftest.err
15683 } && test -s conftest$ac_exeext &&
15684 $as_test_x conftest$ac_exeext; then
15685 case "$LIBEXT" in
15686 dylib) ac_cv_lib_soname_jpeg=`otool -L conftest$ac_exeext | grep libjpeg\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libjpeg\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15687 so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15688 esac
15689 if test "x$ac_cv_lib_soname_jpeg" = "x"
15690 then
15691 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15693 else
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15697 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15701 conftest$ac_exeext conftest.$ac_ext
15702 LIBS=$ac_get_soname_save_LIBS
15704 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15705 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
15706 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15708 cat >>confdefs.h <<_ACEOF
15709 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15710 _ACEOF
15714 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15715 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
15716 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719 ac_get_soname_save_LIBS=$LIBS
15720 LIBS="-lcapi20 $LIBS"
15721 cat >conftest.$ac_ext <<_ACEOF
15722 /* confdefs.h. */
15723 _ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15728 /* Override any GCC internal prototype to avoid an error.
15729 Use char because int might match the return type of a GCC
15730 builtin and then its argument prototype would still apply. */
15731 #ifdef __cplusplus
15732 extern "C"
15733 #endif
15734 char capi20_isinstalled ();
15736 main ()
15738 return capi20_isinstalled ();
15740 return 0;
15742 _ACEOF
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_link") 2>conftest.er1
15751 ac_status=$?
15752 grep -v '^ *+' conftest.er1 >conftest.err
15753 rm -f conftest.er1
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } && {
15757 test -z "$ac_c_werror_flag" ||
15758 test ! -s conftest.err
15759 } && test -s conftest$ac_exeext &&
15760 $as_test_x conftest$ac_exeext; then
15761 case "$LIBEXT" in
15762 dylib) ac_cv_lib_soname_capi20=`otool -L conftest$ac_exeext | grep libcapi20\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcapi20\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15763 so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15764 esac
15765 if test "x$ac_cv_lib_soname_capi20" = "x"
15766 then
15767 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15769 else
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15777 conftest$ac_exeext conftest.$ac_ext
15778 LIBS=$ac_get_soname_save_LIBS
15780 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15781 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
15782 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15784 cat >>confdefs.h <<_ACEOF
15785 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15786 _ACEOF
15865 for ac_func in \
15866 _pclose \
15867 _popen \
15868 _snprintf \
15869 _spawnvp \
15870 _stricmp \
15871 _strnicmp \
15872 _vsnprintf \
15873 asctime_r \
15874 chsize \
15875 clone \
15876 connect \
15877 dlopen \
15878 epoll_create \
15879 ffs \
15880 finite \
15881 fork \
15882 fpclass \
15883 fstatfs \
15884 fstatvfs \
15885 ftruncate \
15886 futimes \
15887 futimesat \
15888 getaddrinfo \
15889 getdirentries \
15890 gethostbyname \
15891 getnameinfo \
15892 getnetbyname \
15893 getopt_long \
15894 getpagesize \
15895 getprotobyname \
15896 getprotobynumber \
15897 getpwuid \
15898 getservbyport \
15899 gettid \
15900 gettimeofday \
15901 getuid \
15902 inet_aton \
15903 inet_network \
15904 kqueue \
15905 lstat \
15906 memmove \
15907 mmap \
15908 pclose \
15909 poll \
15910 popen \
15911 prctl \
15912 pread \
15913 pwrite \
15914 readlink \
15915 rfork \
15916 sched_yield \
15917 select \
15918 sendmsg \
15919 setrlimit \
15920 settimeofday \
15921 sigaltstack \
15922 sigprocmask \
15923 snprintf \
15924 spawnvp \
15925 statfs \
15926 statvfs \
15927 strcasecmp \
15928 strerror \
15929 strncasecmp \
15930 strtold \
15931 tcgetattr \
15932 timegm \
15933 usleep \
15934 vsnprintf \
15935 wait4 \
15936 waitpid \
15939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 else
15945 cat >conftest.$ac_ext <<_ACEOF
15946 /* confdefs.h. */
15947 _ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15953 #define $ac_func innocuous_$ac_func
15955 /* System header to define __stub macros and hopefully few prototypes,
15956 which can conflict with char $ac_func (); below.
15957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15958 <limits.h> exists even on freestanding compilers. */
15960 #ifdef __STDC__
15961 # include <limits.h>
15962 #else
15963 # include <assert.h>
15964 #endif
15966 #undef $ac_func
15968 /* Override any GCC internal prototype to avoid an error.
15969 Use char because int might match the return type of a GCC
15970 builtin and then its argument prototype would still apply. */
15971 #ifdef __cplusplus
15972 extern "C"
15973 #endif
15974 char $ac_func ();
15975 /* The GNU C library defines this for functions which it implements
15976 to always fail with ENOSYS. Some functions are actually named
15977 something starting with __ and the normal name is an alias. */
15978 #if defined __stub_$ac_func || defined __stub___$ac_func
15979 choke me
15980 #endif
15983 main ()
15985 return $ac_func ();
15987 return 0;
15989 _ACEOF
15990 rm -f conftest.$ac_objext conftest$ac_exeext
15991 if { (ac_try="$ac_link"
15992 case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_link") 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } && {
16004 test -z "$ac_c_werror_flag" ||
16005 test ! -s conftest.err
16006 } && test -s conftest$ac_exeext &&
16007 $as_test_x conftest$ac_exeext; then
16008 eval "$as_ac_var=yes"
16009 else
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 eval "$as_ac_var=no"
16016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16017 conftest$ac_exeext conftest.$ac_ext
16019 ac_res=`eval echo '${'$as_ac_var'}'`
16020 { echo "$as_me:$LINENO: result: $ac_res" >&5
16021 echo "${ECHO_T}$ac_res" >&6; }
16022 if test `eval echo '${'$as_ac_var'}'` = yes; then
16023 cat >>confdefs.h <<_ACEOF
16024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16025 _ACEOF
16028 done
16031 if test "$ac_cv_func_dlopen" = no
16032 then
16033 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16034 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16035 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16037 else
16038 ac_check_lib_save_LIBS=$LIBS
16039 LIBS="-ldl $LIBS"
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h. */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16047 /* Override any GCC internal prototype to avoid an error.
16048 Use char because int might match the return type of a GCC
16049 builtin and then its argument prototype would still apply. */
16050 #ifdef __cplusplus
16051 extern "C"
16052 #endif
16053 char dlopen ();
16055 main ()
16057 return dlopen ();
16059 return 0;
16061 _ACEOF
16062 rm -f conftest.$ac_objext conftest$ac_exeext
16063 if { (ac_try="$ac_link"
16064 case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16067 esac
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_link") 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } && {
16076 test -z "$ac_c_werror_flag" ||
16077 test ! -s conftest.err
16078 } && test -s conftest$ac_exeext &&
16079 $as_test_x conftest$ac_exeext; then
16080 ac_cv_lib_dl_dlopen=yes
16081 else
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 ac_cv_lib_dl_dlopen=no
16088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16089 conftest$ac_exeext conftest.$ac_ext
16090 LIBS=$ac_check_lib_save_LIBS
16092 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16093 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16094 if test $ac_cv_lib_dl_dlopen = yes; then
16095 cat >>confdefs.h <<\_ACEOF
16096 #define HAVE_DLOPEN 1
16097 _ACEOF
16098 LIBDL="-ldl"
16103 ac_wine_check_funcs_save_LIBS="$LIBS"
16104 LIBS="$LIBS $LIBDL"
16106 for ac_func in dladdr
16108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114 cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h. */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16122 #define $ac_func innocuous_$ac_func
16124 /* System header to define __stub macros and hopefully few prototypes,
16125 which can conflict with char $ac_func (); below.
16126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16127 <limits.h> exists even on freestanding compilers. */
16129 #ifdef __STDC__
16130 # include <limits.h>
16131 #else
16132 # include <assert.h>
16133 #endif
16135 #undef $ac_func
16137 /* Override any GCC internal prototype to avoid an error.
16138 Use char because int might match the return type of a GCC
16139 builtin and then its argument prototype would still apply. */
16140 #ifdef __cplusplus
16141 extern "C"
16142 #endif
16143 char $ac_func ();
16144 /* The GNU C library defines this for functions which it implements
16145 to always fail with ENOSYS. Some functions are actually named
16146 something starting with __ and the normal name is an alias. */
16147 #if defined __stub_$ac_func || defined __stub___$ac_func
16148 choke me
16149 #endif
16152 main ()
16154 return $ac_func ();
16156 return 0;
16158 _ACEOF
16159 rm -f conftest.$ac_objext conftest$ac_exeext
16160 if { (ac_try="$ac_link"
16161 case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16164 esac
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_link") 2>conftest.er1
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } && {
16173 test -z "$ac_c_werror_flag" ||
16174 test ! -s conftest.err
16175 } && test -s conftest$ac_exeext &&
16176 $as_test_x conftest$ac_exeext; then
16177 eval "$as_ac_var=yes"
16178 else
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16182 eval "$as_ac_var=no"
16185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16186 conftest$ac_exeext conftest.$ac_ext
16188 ac_res=`eval echo '${'$as_ac_var'}'`
16189 { echo "$as_me:$LINENO: result: $ac_res" >&5
16190 echo "${ECHO_T}$ac_res" >&6; }
16191 if test `eval echo '${'$as_ac_var'}'` = yes; then
16192 cat >>confdefs.h <<_ACEOF
16193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16194 _ACEOF
16197 done
16199 LIBS="$ac_wine_check_funcs_save_LIBS"
16201 if test "$ac_cv_func_poll" = no
16202 then
16203 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
16204 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
16205 if test "${ac_cv_lib_poll_poll+set}" = set; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16207 else
16208 ac_check_lib_save_LIBS=$LIBS
16209 LIBS="-lpoll $LIBS"
16210 cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h. */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16217 /* Override any GCC internal prototype to avoid an error.
16218 Use char because int might match the return type of a GCC
16219 builtin and then its argument prototype would still apply. */
16220 #ifdef __cplusplus
16221 extern "C"
16222 #endif
16223 char poll ();
16225 main ()
16227 return poll ();
16229 return 0;
16231 _ACEOF
16232 rm -f conftest.$ac_objext conftest$ac_exeext
16233 if { (ac_try="$ac_link"
16234 case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16237 esac
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_link") 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } && {
16246 test -z "$ac_c_werror_flag" ||
16247 test ! -s conftest.err
16248 } && test -s conftest$ac_exeext &&
16249 $as_test_x conftest$ac_exeext; then
16250 ac_cv_lib_poll_poll=yes
16251 else
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16255 ac_cv_lib_poll_poll=no
16258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16259 conftest$ac_exeext conftest.$ac_ext
16260 LIBS=$ac_check_lib_save_LIBS
16262 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
16263 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
16264 if test $ac_cv_lib_poll_poll = yes; then
16265 cat >>confdefs.h <<\_ACEOF
16266 #define HAVE_POLL 1
16267 _ACEOF
16268 LIBPOLL="-lpoll"
16274 if test "$ac_cv_func_gethostbyname" = no
16275 then
16277 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
16278 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
16279 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282 ac_check_lib_save_LIBS=$LIBS
16283 LIBS="-lnsl $LIBS"
16284 cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h. */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16291 /* Override any GCC internal prototype to avoid an error.
16292 Use char because int might match the return type of a GCC
16293 builtin and then its argument prototype would still apply. */
16294 #ifdef __cplusplus
16295 extern "C"
16296 #endif
16297 char gethostbyname ();
16299 main ()
16301 return gethostbyname ();
16303 return 0;
16305 _ACEOF
16306 rm -f conftest.$ac_objext conftest$ac_exeext
16307 if { (ac_try="$ac_link"
16308 case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16311 esac
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313 (eval "$ac_link") 2>conftest.er1
16314 ac_status=$?
16315 grep -v '^ *+' conftest.er1 >conftest.err
16316 rm -f conftest.er1
16317 cat conftest.err >&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } && {
16320 test -z "$ac_c_werror_flag" ||
16321 test ! -s conftest.err
16322 } && test -s conftest$ac_exeext &&
16323 $as_test_x conftest$ac_exeext; then
16324 ac_cv_lib_nsl_gethostbyname=yes
16325 else
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 ac_cv_lib_nsl_gethostbyname=no
16332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16333 conftest$ac_exeext conftest.$ac_ext
16334 LIBS=$ac_check_lib_save_LIBS
16336 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
16337 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
16338 if test $ac_cv_lib_nsl_gethostbyname = yes; then
16339 cat >>confdefs.h <<_ACEOF
16340 #define HAVE_LIBNSL 1
16341 _ACEOF
16343 LIBS="-lnsl $LIBS"
16349 if test "$ac_cv_func_connect" = no
16350 then
16352 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
16353 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
16354 if test "${ac_cv_lib_socket_connect+set}" = set; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357 ac_check_lib_save_LIBS=$LIBS
16358 LIBS="-lsocket $LIBS"
16359 cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h. */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16366 /* Override any GCC internal prototype to avoid an error.
16367 Use char because int might match the return type of a GCC
16368 builtin and then its argument prototype would still apply. */
16369 #ifdef __cplusplus
16370 extern "C"
16371 #endif
16372 char connect ();
16374 main ()
16376 return connect ();
16378 return 0;
16380 _ACEOF
16381 rm -f conftest.$ac_objext conftest$ac_exeext
16382 if { (ac_try="$ac_link"
16383 case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_link") 2>conftest.er1
16389 ac_status=$?
16390 grep -v '^ *+' conftest.er1 >conftest.err
16391 rm -f conftest.er1
16392 cat conftest.err >&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } && {
16395 test -z "$ac_c_werror_flag" ||
16396 test ! -s conftest.err
16397 } && test -s conftest$ac_exeext &&
16398 $as_test_x conftest$ac_exeext; then
16399 ac_cv_lib_socket_connect=yes
16400 else
16401 echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16404 ac_cv_lib_socket_connect=no
16407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16408 conftest$ac_exeext conftest.$ac_ext
16409 LIBS=$ac_check_lib_save_LIBS
16411 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
16412 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
16413 if test $ac_cv_lib_socket_connect = yes; then
16414 cat >>confdefs.h <<_ACEOF
16415 #define HAVE_LIBSOCKET 1
16416 _ACEOF
16418 LIBS="-lsocket $LIBS"
16424 if test "$ac_cv_func_inet_aton" = no
16425 then
16427 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16428 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16429 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16431 else
16432 ac_check_lib_save_LIBS=$LIBS
16433 LIBS="-lresolv $LIBS"
16434 cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h. */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16441 /* Override any GCC internal prototype to avoid an error.
16442 Use char because int might match the return type of a GCC
16443 builtin and then its argument prototype would still apply. */
16444 #ifdef __cplusplus
16445 extern "C"
16446 #endif
16447 char inet_aton ();
16449 main ()
16451 return inet_aton ();
16453 return 0;
16455 _ACEOF
16456 rm -f conftest.$ac_objext conftest$ac_exeext
16457 if { (ac_try="$ac_link"
16458 case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_link") 2>conftest.er1
16464 ac_status=$?
16465 grep -v '^ *+' conftest.er1 >conftest.err
16466 rm -f conftest.er1
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } && {
16470 test -z "$ac_c_werror_flag" ||
16471 test ! -s conftest.err
16472 } && test -s conftest$ac_exeext &&
16473 $as_test_x conftest$ac_exeext; then
16474 ac_cv_lib_resolv_inet_aton=yes
16475 else
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_cv_lib_resolv_inet_aton=no
16482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16483 conftest$ac_exeext conftest.$ac_ext
16484 LIBS=$ac_check_lib_save_LIBS
16486 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16487 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16488 if test $ac_cv_lib_resolv_inet_aton = yes; then
16489 cat >>confdefs.h <<_ACEOF
16490 #define HAVE_LIBRESOLV 1
16491 _ACEOF
16493 LIBS="-lresolv $LIBS"
16500 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16501 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
16502 if test "${ac_cv_c_const+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505 cat >conftest.$ac_ext <<_ACEOF
16506 /* confdefs.h. */
16507 _ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16513 main ()
16515 /* FIXME: Include the comments suggested by Paul. */
16516 #ifndef __cplusplus
16517 /* Ultrix mips cc rejects this. */
16518 typedef int charset[2];
16519 const charset cs;
16520 /* SunOS 4.1.1 cc rejects this. */
16521 char const *const *pcpcc;
16522 char **ppc;
16523 /* NEC SVR4.0.2 mips cc rejects this. */
16524 struct point {int x, y;};
16525 static struct point const zero = {0,0};
16526 /* AIX XL C 1.02.0.0 rejects this.
16527 It does not let you subtract one const X* pointer from another in
16528 an arm of an if-expression whose if-part is not a constant
16529 expression */
16530 const char *g = "string";
16531 pcpcc = &g + (g ? g-g : 0);
16532 /* HPUX 7.0 cc rejects these. */
16533 ++pcpcc;
16534 ppc = (char**) pcpcc;
16535 pcpcc = (char const *const *) ppc;
16536 { /* SCO 3.2v4 cc rejects this. */
16537 char *t;
16538 char const *s = 0 ? (char *) 0 : (char const *) 0;
16540 *t++ = 0;
16541 if (s) return 0;
16543 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16544 int x[] = {25, 17};
16545 const int *foo = &x[0];
16546 ++foo;
16548 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16549 typedef const int *iptr;
16550 iptr p = 0;
16551 ++p;
16553 { /* AIX XL C 1.02.0.0 rejects this saying
16554 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16555 struct s { int j; const int *ap[3]; };
16556 struct s *b; b->j = 5;
16558 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16559 const int foo = 10;
16560 if (!foo) return 0;
16562 return !cs[0] && !zero.x;
16563 #endif
16566 return 0;
16568 _ACEOF
16569 rm -f conftest.$ac_objext
16570 if { (ac_try="$ac_compile"
16571 case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_compile") 2>conftest.er1
16577 ac_status=$?
16578 grep -v '^ *+' conftest.er1 >conftest.err
16579 rm -f conftest.er1
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } && {
16583 test -z "$ac_c_werror_flag" ||
16584 test ! -s conftest.err
16585 } && test -s conftest.$ac_objext; then
16586 ac_cv_c_const=yes
16587 else
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_cv_c_const=no
16594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16596 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16597 echo "${ECHO_T}$ac_cv_c_const" >&6; }
16598 if test $ac_cv_c_const = no; then
16600 cat >>confdefs.h <<\_ACEOF
16601 #define const
16602 _ACEOF
16606 { echo "$as_me:$LINENO: checking for inline" >&5
16607 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
16608 if test "${ac_cv_c_inline+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611 ac_cv_c_inline=no
16612 for ac_kw in inline __inline__ __inline; do
16613 cat >conftest.$ac_ext <<_ACEOF
16614 /* confdefs.h. */
16615 _ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h. */
16619 #ifndef __cplusplus
16620 typedef int foo_t;
16621 static $ac_kw foo_t static_foo () {return 0; }
16622 $ac_kw foo_t foo () {return 0; }
16623 #endif
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (ac_try="$ac_compile"
16628 case "(($ac_try" in
16629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16631 esac
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633 (eval "$ac_compile") 2>conftest.er1
16634 ac_status=$?
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } && {
16640 test -z "$ac_c_werror_flag" ||
16641 test ! -s conftest.err
16642 } && test -s conftest.$ac_objext; then
16643 ac_cv_c_inline=$ac_kw
16644 else
16645 echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652 test "$ac_cv_c_inline" != no && break
16653 done
16656 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16657 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
16660 case $ac_cv_c_inline in
16661 inline | yes) ;;
16663 case $ac_cv_c_inline in
16664 no) ac_val=;;
16665 *) ac_val=$ac_cv_c_inline;;
16666 esac
16667 cat >>confdefs.h <<_ACEOF
16668 #ifndef __cplusplus
16669 #define inline $ac_val
16670 #endif
16671 _ACEOF
16673 esac
16675 { echo "$as_me:$LINENO: checking for mode_t" >&5
16676 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
16677 if test "${ac_cv_type_mode_t+set}" = set; then
16678 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 else
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h. */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 $ac_includes_default
16687 typedef mode_t ac__type_new_;
16689 main ()
16691 if ((ac__type_new_ *) 0)
16692 return 0;
16693 if (sizeof (ac__type_new_))
16694 return 0;
16696 return 0;
16698 _ACEOF
16699 rm -f conftest.$ac_objext
16700 if { (ac_try="$ac_compile"
16701 case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16704 esac
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_compile") 2>conftest.er1
16707 ac_status=$?
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } && {
16713 test -z "$ac_c_werror_flag" ||
16714 test ! -s conftest.err
16715 } && test -s conftest.$ac_objext; then
16716 ac_cv_type_mode_t=yes
16717 else
16718 echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16721 ac_cv_type_mode_t=no
16724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16727 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
16728 if test $ac_cv_type_mode_t = yes; then
16730 cat >>confdefs.h <<_ACEOF
16731 #define HAVE_MODE_T 1
16732 _ACEOF
16736 { echo "$as_me:$LINENO: checking for off_t" >&5
16737 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
16738 if test "${ac_cv_type_off_t+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741 cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h. */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 $ac_includes_default
16748 typedef off_t ac__type_new_;
16750 main ()
16752 if ((ac__type_new_ *) 0)
16753 return 0;
16754 if (sizeof (ac__type_new_))
16755 return 0;
16757 return 0;
16759 _ACEOF
16760 rm -f conftest.$ac_objext
16761 if { (ac_try="$ac_compile"
16762 case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_compile") 2>conftest.er1
16768 ac_status=$?
16769 grep -v '^ *+' conftest.er1 >conftest.err
16770 rm -f conftest.er1
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && {
16774 test -z "$ac_c_werror_flag" ||
16775 test ! -s conftest.err
16776 } && test -s conftest.$ac_objext; then
16777 ac_cv_type_off_t=yes
16778 else
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ac_cv_type_off_t=no
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16788 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
16789 if test $ac_cv_type_off_t = yes; then
16791 cat >>confdefs.h <<_ACEOF
16792 #define HAVE_OFF_T 1
16793 _ACEOF
16797 { echo "$as_me:$LINENO: checking for pid_t" >&5
16798 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16799 if test "${ac_cv_type_pid_t+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16801 else
16802 cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h. */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 $ac_includes_default
16809 typedef pid_t ac__type_new_;
16811 main ()
16813 if ((ac__type_new_ *) 0)
16814 return 0;
16815 if (sizeof (ac__type_new_))
16816 return 0;
16818 return 0;
16820 _ACEOF
16821 rm -f conftest.$ac_objext
16822 if { (ac_try="$ac_compile"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_compile") 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } && {
16835 test -z "$ac_c_werror_flag" ||
16836 test ! -s conftest.err
16837 } && test -s conftest.$ac_objext; then
16838 ac_cv_type_pid_t=yes
16839 else
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 ac_cv_type_pid_t=no
16846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16849 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16850 if test $ac_cv_type_pid_t = yes; then
16852 cat >>confdefs.h <<_ACEOF
16853 #define HAVE_PID_T 1
16854 _ACEOF
16858 { echo "$as_me:$LINENO: checking for size_t" >&5
16859 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16860 if test "${ac_cv_type_size_t+set}" = set; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16862 else
16863 cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h. */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16869 $ac_includes_default
16870 typedef size_t ac__type_new_;
16872 main ()
16874 if ((ac__type_new_ *) 0)
16875 return 0;
16876 if (sizeof (ac__type_new_))
16877 return 0;
16879 return 0;
16881 _ACEOF
16882 rm -f conftest.$ac_objext
16883 if { (ac_try="$ac_compile"
16884 case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16887 esac
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_compile") 2>conftest.er1
16890 ac_status=$?
16891 grep -v '^ *+' conftest.er1 >conftest.err
16892 rm -f conftest.er1
16893 cat conftest.err >&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } && {
16896 test -z "$ac_c_werror_flag" ||
16897 test ! -s conftest.err
16898 } && test -s conftest.$ac_objext; then
16899 ac_cv_type_size_t=yes
16900 else
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16904 ac_cv_type_size_t=no
16907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16909 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16910 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16911 if test $ac_cv_type_size_t = yes; then
16913 cat >>confdefs.h <<_ACEOF
16914 #define HAVE_SIZE_T 1
16915 _ACEOF
16919 { echo "$as_me:$LINENO: checking for ssize_t" >&5
16920 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
16921 if test "${ac_cv_type_ssize_t+set}" = set; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16923 else
16924 cat >conftest.$ac_ext <<_ACEOF
16925 /* confdefs.h. */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16930 $ac_includes_default
16931 typedef ssize_t ac__type_new_;
16933 main ()
16935 if ((ac__type_new_ *) 0)
16936 return 0;
16937 if (sizeof (ac__type_new_))
16938 return 0;
16940 return 0;
16942 _ACEOF
16943 rm -f conftest.$ac_objext
16944 if { (ac_try="$ac_compile"
16945 case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16948 esac
16949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_compile") 2>conftest.er1
16951 ac_status=$?
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -f conftest.er1
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } && {
16957 test -z "$ac_c_werror_flag" ||
16958 test ! -s conftest.err
16959 } && test -s conftest.$ac_objext; then
16960 ac_cv_type_ssize_t=yes
16961 else
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_cv_type_ssize_t=no
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16970 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16971 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
16972 if test $ac_cv_type_ssize_t = yes; then
16974 cat >>confdefs.h <<_ACEOF
16975 #define HAVE_SSIZE_T 1
16976 _ACEOF
16980 { echo "$as_me:$LINENO: checking for long long" >&5
16981 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
16982 if test "${ac_cv_type_long_long+set}" = set; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 else
16985 cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h. */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991 $ac_includes_default
16992 typedef long long ac__type_new_;
16994 main ()
16996 if ((ac__type_new_ *) 0)
16997 return 0;
16998 if (sizeof (ac__type_new_))
16999 return 0;
17001 return 0;
17003 _ACEOF
17004 rm -f conftest.$ac_objext
17005 if { (ac_try="$ac_compile"
17006 case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_compile") 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest.$ac_objext; then
17021 ac_cv_type_long_long=yes
17022 else
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 ac_cv_type_long_long=no
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17031 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17032 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
17033 if test $ac_cv_type_long_long = yes; then
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_LONG_LONG 1
17037 _ACEOF
17041 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17042 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
17043 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 else
17046 cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h. */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17052 $ac_includes_default
17053 typedef fsblkcnt_t ac__type_new_;
17055 main ()
17057 if ((ac__type_new_ *) 0)
17058 return 0;
17059 if (sizeof (ac__type_new_))
17060 return 0;
17062 return 0;
17064 _ACEOF
17065 rm -f conftest.$ac_objext
17066 if { (ac_try="$ac_compile"
17067 case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17070 esac
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_compile") 2>conftest.er1
17073 ac_status=$?
17074 grep -v '^ *+' conftest.er1 >conftest.err
17075 rm -f conftest.er1
17076 cat conftest.err >&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } && {
17079 test -z "$ac_c_werror_flag" ||
17080 test ! -s conftest.err
17081 } && test -s conftest.$ac_objext; then
17082 ac_cv_type_fsblkcnt_t=yes
17083 else
17084 echo "$as_me: failed program was:" >&5
17085 sed 's/^/| /' conftest.$ac_ext >&5
17087 ac_cv_type_fsblkcnt_t=no
17090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17093 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
17094 if test $ac_cv_type_fsblkcnt_t = yes; then
17096 cat >>confdefs.h <<_ACEOF
17097 #define HAVE_FSBLKCNT_T 1
17098 _ACEOF
17102 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17103 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
17104 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 else
17107 cat >conftest.$ac_ext <<_ACEOF
17108 /* confdefs.h. */
17109 _ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17113 $ac_includes_default
17114 typedef fsfilcnt_t ac__type_new_;
17116 main ()
17118 if ((ac__type_new_ *) 0)
17119 return 0;
17120 if (sizeof (ac__type_new_))
17121 return 0;
17123 return 0;
17125 _ACEOF
17126 rm -f conftest.$ac_objext
17127 if { (ac_try="$ac_compile"
17128 case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17131 esac
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_compile") 2>conftest.er1
17134 ac_status=$?
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } && {
17140 test -z "$ac_c_werror_flag" ||
17141 test ! -s conftest.err
17142 } && test -s conftest.$ac_objext; then
17143 ac_cv_type_fsfilcnt_t=yes
17144 else
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 ac_cv_type_fsfilcnt_t=no
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17153 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17154 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
17155 if test $ac_cv_type_fsfilcnt_t = yes; then
17157 cat >>confdefs.h <<_ACEOF
17158 #define HAVE_FSFILCNT_T 1
17159 _ACEOF
17164 { echo "$as_me:$LINENO: checking for sigset_t" >&5
17165 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
17166 if test "${ac_cv_type_sigset_t+set}" = set; then
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 else
17169 cat >conftest.$ac_ext <<_ACEOF
17170 /* confdefs.h. */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17175 #include <signal.h>
17177 typedef sigset_t ac__type_new_;
17179 main ()
17181 if ((ac__type_new_ *) 0)
17182 return 0;
17183 if (sizeof (ac__type_new_))
17184 return 0;
17186 return 0;
17188 _ACEOF
17189 rm -f conftest.$ac_objext
17190 if { (ac_try="$ac_compile"
17191 case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_compile") 2>conftest.er1
17197 ac_status=$?
17198 grep -v '^ *+' conftest.er1 >conftest.err
17199 rm -f conftest.er1
17200 cat conftest.err >&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } && {
17203 test -z "$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17205 } && test -s conftest.$ac_objext; then
17206 ac_cv_type_sigset_t=yes
17207 else
17208 echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17211 ac_cv_type_sigset_t=no
17214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17216 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17217 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
17218 if test $ac_cv_type_sigset_t = yes; then
17220 cat >>confdefs.h <<_ACEOF
17221 #define HAVE_SIGSET_T 1
17222 _ACEOF
17227 { echo "$as_me:$LINENO: checking for request_sense" >&5
17228 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
17229 if test "${ac_cv_type_request_sense+set}" = set; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 else
17232 cat >conftest.$ac_ext <<_ACEOF
17233 /* confdefs.h. */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238 #include <linux/cdrom.h>
17240 typedef request_sense ac__type_new_;
17242 main ()
17244 if ((ac__type_new_ *) 0)
17245 return 0;
17246 if (sizeof (ac__type_new_))
17247 return 0;
17249 return 0;
17251 _ACEOF
17252 rm -f conftest.$ac_objext
17253 if { (ac_try="$ac_compile"
17254 case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_compile") 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && {
17266 test -z "$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 } && test -s conftest.$ac_objext; then
17269 ac_cv_type_request_sense=yes
17270 else
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17274 ac_cv_type_request_sense=no
17277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17279 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
17280 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
17281 if test $ac_cv_type_request_sense = yes; then
17283 cat >>confdefs.h <<_ACEOF
17284 #define HAVE_REQUEST_SENSE 1
17285 _ACEOF
17291 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
17292 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
17293 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296 cat >conftest.$ac_ext <<_ACEOF
17297 /* confdefs.h. */
17298 _ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17302 #ifdef HAVE_LINUX_INPUT_H
17303 #include <linux/input.h>
17304 #endif
17307 main ()
17309 static struct ff_effect ac_aggr;
17310 if (ac_aggr.direction)
17311 return 0;
17313 return 0;
17315 _ACEOF
17316 rm -f conftest.$ac_objext
17317 if { (ac_try="$ac_compile"
17318 case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_compile") 2>conftest.er1
17324 ac_status=$?
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } && {
17330 test -z "$ac_c_werror_flag" ||
17331 test ! -s conftest.err
17332 } && test -s conftest.$ac_objext; then
17333 ac_cv_member_struct_ff_effect_direction=yes
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h. */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 #ifdef HAVE_LINUX_INPUT_H
17345 #include <linux/input.h>
17346 #endif
17349 main ()
17351 static struct ff_effect ac_aggr;
17352 if (sizeof ac_aggr.direction)
17353 return 0;
17355 return 0;
17357 _ACEOF
17358 rm -f conftest.$ac_objext
17359 if { (ac_try="$ac_compile"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17363 esac
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_compile") 2>conftest.er1
17366 ac_status=$?
17367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && {
17372 test -z "$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17374 } && test -s conftest.$ac_objext; then
17375 ac_cv_member_struct_ff_effect_direction=yes
17376 else
17377 echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17380 ac_cv_member_struct_ff_effect_direction=no
17383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17388 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
17389 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
17390 if test $ac_cv_member_struct_ff_effect_direction = yes; then
17392 cat >>confdefs.h <<_ACEOF
17393 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
17394 _ACEOF
17400 { echo "$as_me:$LINENO: checking for sigaddset" >&5
17401 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
17402 if test "${wine_cv_have_sigaddset+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405 cat >conftest.$ac_ext <<_ACEOF
17406 /* confdefs.h. */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h. */
17411 #include <signal.h>
17413 main ()
17415 sigset_t set; sigaddset(&set,SIGTERM);
17417 return 0;
17419 _ACEOF
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (ac_try="$ac_link"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_link") 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && {
17434 test -z "$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17436 } && test -s conftest$ac_exeext &&
17437 $as_test_x conftest$ac_exeext; then
17438 wine_cv_have_sigaddset=yes
17439 else
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 wine_cv_have_sigaddset=no
17446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17447 conftest$ac_exeext conftest.$ac_ext
17449 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17450 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
17451 if test "$wine_cv_have_sigaddset" = "yes"
17452 then
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_SIGADDSET 1
17456 _ACEOF
17461 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17462 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
17463 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17465 else
17466 cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h. */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17473 #include <netdb.h>
17476 main ()
17479 char *name=NULL;
17480 struct hostent he;
17481 struct hostent *result;
17482 char *buf=NULL;
17483 int bufsize=0;
17484 int res,errnr;
17485 char *addr=NULL;
17486 int addrlen=0;
17487 int addrtype=0;
17488 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17489 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17492 return 0;
17494 _ACEOF
17495 rm -f conftest.$ac_objext conftest$ac_exeext
17496 if { (ac_try="$ac_link"
17497 case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_link") 2>conftest.er1
17503 ac_status=$?
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } && {
17509 test -z "$ac_c_werror_flag" ||
17510 test ! -s conftest.err
17511 } && test -s conftest$ac_exeext &&
17512 $as_test_x conftest$ac_exeext; then
17513 wine_cv_linux_gethostbyname_r_6=yes
17514 else
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 wine_cv_linux_gethostbyname_r_6=no
17522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17523 conftest$ac_exeext conftest.$ac_ext
17526 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17527 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
17528 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17529 then
17531 cat >>confdefs.h <<\_ACEOF
17532 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17533 _ACEOF
17537 if test "$ac_cv_header_linux_joystick_h" = "yes"
17538 then
17539 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17540 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
17541 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544 cat >conftest.$ac_ext <<_ACEOF
17545 /* confdefs.h. */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17551 #include <sys/ioctl.h>
17552 #include <linux/joystick.h>
17554 struct js_event blub;
17555 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17556 #error "no 2.2 header"
17557 #endif
17560 main ()
17562 /*empty*/
17564 return 0;
17566 _ACEOF
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17572 esac
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_compile") 2>conftest.er1
17575 ac_status=$?
17576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } && {
17581 test -z "$ac_c_werror_flag" ||
17582 test ! -s conftest.err
17583 } && test -s conftest.$ac_objext; then
17584 wine_cv_linux_joystick_22_api=yes
17585 else
17586 echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17589 wine_cv_linux_joystick_22_api=no
17592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17595 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17596 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
17597 if test "$wine_cv_linux_joystick_22_api" = "yes"
17598 then
17600 cat >>confdefs.h <<\_ACEOF
17601 #define HAVE_LINUX_22_JOYSTICK_API 1
17602 _ACEOF
17608 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17609 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
17610 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613 cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h. */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 #include <sys/types.h>
17620 #ifdef HAVE_SYS_PARAM_H
17621 # include <sys/param.h>
17622 #endif
17623 #ifdef HAVE_SYS_MOUNT_H
17624 # include <sys/mount.h>
17625 #endif
17626 #ifdef HAVE_SYS_VFS_H
17627 # include <sys/vfs.h>
17628 #endif
17629 #ifdef HAVE_SYS_STATFS_H
17630 # include <sys/statfs.h>
17631 #endif
17634 main ()
17636 static struct statfs ac_aggr;
17637 if (ac_aggr.f_bfree)
17638 return 0;
17640 return 0;
17642 _ACEOF
17643 rm -f conftest.$ac_objext
17644 if { (ac_try="$ac_compile"
17645 case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_compile") 2>conftest.er1
17651 ac_status=$?
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } && {
17657 test -z "$ac_c_werror_flag" ||
17658 test ! -s conftest.err
17659 } && test -s conftest.$ac_objext; then
17660 ac_cv_member_struct_statfs_f_bfree=yes
17661 else
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h. */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17671 #include <sys/types.h>
17672 #ifdef HAVE_SYS_PARAM_H
17673 # include <sys/param.h>
17674 #endif
17675 #ifdef HAVE_SYS_MOUNT_H
17676 # include <sys/mount.h>
17677 #endif
17678 #ifdef HAVE_SYS_VFS_H
17679 # include <sys/vfs.h>
17680 #endif
17681 #ifdef HAVE_SYS_STATFS_H
17682 # include <sys/statfs.h>
17683 #endif
17686 main ()
17688 static struct statfs ac_aggr;
17689 if (sizeof ac_aggr.f_bfree)
17690 return 0;
17692 return 0;
17694 _ACEOF
17695 rm -f conftest.$ac_objext
17696 if { (ac_try="$ac_compile"
17697 case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17700 esac
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_compile") 2>conftest.er1
17703 ac_status=$?
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } && {
17709 test -z "$ac_c_werror_flag" ||
17710 test ! -s conftest.err
17711 } && test -s conftest.$ac_objext; then
17712 ac_cv_member_struct_statfs_f_bfree=yes
17713 else
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17717 ac_cv_member_struct_statfs_f_bfree=no
17720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17725 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17726 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
17727 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17729 cat >>confdefs.h <<_ACEOF
17730 #define HAVE_STRUCT_STATFS_F_BFREE 1
17731 _ACEOF
17735 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17736 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
17737 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17739 else
17740 cat >conftest.$ac_ext <<_ACEOF
17741 /* confdefs.h. */
17742 _ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h. */
17746 #include <sys/types.h>
17747 #ifdef HAVE_SYS_PARAM_H
17748 # include <sys/param.h>
17749 #endif
17750 #ifdef HAVE_SYS_MOUNT_H
17751 # include <sys/mount.h>
17752 #endif
17753 #ifdef HAVE_SYS_VFS_H
17754 # include <sys/vfs.h>
17755 #endif
17756 #ifdef HAVE_SYS_STATFS_H
17757 # include <sys/statfs.h>
17758 #endif
17761 main ()
17763 static struct statfs ac_aggr;
17764 if (ac_aggr.f_bavail)
17765 return 0;
17767 return 0;
17769 _ACEOF
17770 rm -f conftest.$ac_objext
17771 if { (ac_try="$ac_compile"
17772 case "(($ac_try" in
17773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17774 *) ac_try_echo=$ac_try;;
17775 esac
17776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17777 (eval "$ac_compile") 2>conftest.er1
17778 ac_status=$?
17779 grep -v '^ *+' conftest.er1 >conftest.err
17780 rm -f conftest.er1
17781 cat conftest.err >&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } && {
17784 test -z "$ac_c_werror_flag" ||
17785 test ! -s conftest.err
17786 } && test -s conftest.$ac_objext; then
17787 ac_cv_member_struct_statfs_f_bavail=yes
17788 else
17789 echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17792 cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h. */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17798 #include <sys/types.h>
17799 #ifdef HAVE_SYS_PARAM_H
17800 # include <sys/param.h>
17801 #endif
17802 #ifdef HAVE_SYS_MOUNT_H
17803 # include <sys/mount.h>
17804 #endif
17805 #ifdef HAVE_SYS_VFS_H
17806 # include <sys/vfs.h>
17807 #endif
17808 #ifdef HAVE_SYS_STATFS_H
17809 # include <sys/statfs.h>
17810 #endif
17813 main ()
17815 static struct statfs ac_aggr;
17816 if (sizeof ac_aggr.f_bavail)
17817 return 0;
17819 return 0;
17821 _ACEOF
17822 rm -f conftest.$ac_objext
17823 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17830 ac_status=$?
17831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -f conftest.er1
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } && {
17836 test -z "$ac_c_werror_flag" ||
17837 test ! -s conftest.err
17838 } && test -s conftest.$ac_objext; then
17839 ac_cv_member_struct_statfs_f_bavail=yes
17840 else
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 ac_cv_member_struct_statfs_f_bavail=no
17847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17853 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
17854 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
17856 cat >>confdefs.h <<_ACEOF
17857 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
17858 _ACEOF
17862 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
17863 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
17864 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867 cat >conftest.$ac_ext <<_ACEOF
17868 /* confdefs.h. */
17869 _ACEOF
17870 cat confdefs.h >>conftest.$ac_ext
17871 cat >>conftest.$ac_ext <<_ACEOF
17872 /* end confdefs.h. */
17873 #include <sys/types.h>
17874 #ifdef HAVE_SYS_PARAM_H
17875 # include <sys/param.h>
17876 #endif
17877 #ifdef HAVE_SYS_MOUNT_H
17878 # include <sys/mount.h>
17879 #endif
17880 #ifdef HAVE_SYS_VFS_H
17881 # include <sys/vfs.h>
17882 #endif
17883 #ifdef HAVE_SYS_STATFS_H
17884 # include <sys/statfs.h>
17885 #endif
17888 main ()
17890 static struct statfs ac_aggr;
17891 if (ac_aggr.f_frsize)
17892 return 0;
17894 return 0;
17896 _ACEOF
17897 rm -f conftest.$ac_objext
17898 if { (ac_try="$ac_compile"
17899 case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17902 esac
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_compile") 2>conftest.er1
17905 ac_status=$?
17906 grep -v '^ *+' conftest.er1 >conftest.err
17907 rm -f conftest.er1
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } && {
17911 test -z "$ac_c_werror_flag" ||
17912 test ! -s conftest.err
17913 } && test -s conftest.$ac_objext; then
17914 ac_cv_member_struct_statfs_f_frsize=yes
17915 else
17916 echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h. */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 #include <sys/types.h>
17926 #ifdef HAVE_SYS_PARAM_H
17927 # include <sys/param.h>
17928 #endif
17929 #ifdef HAVE_SYS_MOUNT_H
17930 # include <sys/mount.h>
17931 #endif
17932 #ifdef HAVE_SYS_VFS_H
17933 # include <sys/vfs.h>
17934 #endif
17935 #ifdef HAVE_SYS_STATFS_H
17936 # include <sys/statfs.h>
17937 #endif
17940 main ()
17942 static struct statfs ac_aggr;
17943 if (sizeof ac_aggr.f_frsize)
17944 return 0;
17946 return 0;
17948 _ACEOF
17949 rm -f conftest.$ac_objext
17950 if { (ac_try="$ac_compile"
17951 case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_compile") 2>conftest.er1
17957 ac_status=$?
17958 grep -v '^ *+' conftest.er1 >conftest.err
17959 rm -f conftest.er1
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } && {
17963 test -z "$ac_c_werror_flag" ||
17964 test ! -s conftest.err
17965 } && test -s conftest.$ac_objext; then
17966 ac_cv_member_struct_statfs_f_frsize=yes
17967 else
17968 echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17971 ac_cv_member_struct_statfs_f_frsize=no
17974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17979 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
17980 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
17981 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
17983 cat >>confdefs.h <<_ACEOF
17984 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
17985 _ACEOF
17989 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
17990 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
17991 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 else
17994 cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h. */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000 #include <sys/types.h>
18001 #ifdef HAVE_SYS_PARAM_H
18002 # include <sys/param.h>
18003 #endif
18004 #ifdef HAVE_SYS_MOUNT_H
18005 # include <sys/mount.h>
18006 #endif
18007 #ifdef HAVE_SYS_VFS_H
18008 # include <sys/vfs.h>
18009 #endif
18010 #ifdef HAVE_SYS_STATFS_H
18011 # include <sys/statfs.h>
18012 #endif
18015 main ()
18017 static struct statfs ac_aggr;
18018 if (ac_aggr.f_ffree)
18019 return 0;
18021 return 0;
18023 _ACEOF
18024 rm -f conftest.$ac_objext
18025 if { (ac_try="$ac_compile"
18026 case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18029 esac
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_compile") 2>conftest.er1
18032 ac_status=$?
18033 grep -v '^ *+' conftest.er1 >conftest.err
18034 rm -f conftest.er1
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } && {
18038 test -z "$ac_c_werror_flag" ||
18039 test ! -s conftest.err
18040 } && test -s conftest.$ac_objext; then
18041 ac_cv_member_struct_statfs_f_ffree=yes
18042 else
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18046 cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h. */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 #include <sys/types.h>
18053 #ifdef HAVE_SYS_PARAM_H
18054 # include <sys/param.h>
18055 #endif
18056 #ifdef HAVE_SYS_MOUNT_H
18057 # include <sys/mount.h>
18058 #endif
18059 #ifdef HAVE_SYS_VFS_H
18060 # include <sys/vfs.h>
18061 #endif
18062 #ifdef HAVE_SYS_STATFS_H
18063 # include <sys/statfs.h>
18064 #endif
18067 main ()
18069 static struct statfs ac_aggr;
18070 if (sizeof ac_aggr.f_ffree)
18071 return 0;
18073 return 0;
18075 _ACEOF
18076 rm -f conftest.$ac_objext
18077 if { (ac_try="$ac_compile"
18078 case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18081 esac
18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_compile") 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } && {
18090 test -z "$ac_c_werror_flag" ||
18091 test ! -s conftest.err
18092 } && test -s conftest.$ac_objext; then
18093 ac_cv_member_struct_statfs_f_ffree=yes
18094 else
18095 echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18098 ac_cv_member_struct_statfs_f_ffree=no
18101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18106 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18107 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
18108 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18110 cat >>confdefs.h <<_ACEOF
18111 #define HAVE_STRUCT_STATFS_F_FFREE 1
18112 _ACEOF
18116 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18117 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
18118 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
18120 else
18121 cat >conftest.$ac_ext <<_ACEOF
18122 /* confdefs.h. */
18123 _ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18127 #include <sys/types.h>
18128 #ifdef HAVE_SYS_PARAM_H
18129 # include <sys/param.h>
18130 #endif
18131 #ifdef HAVE_SYS_MOUNT_H
18132 # include <sys/mount.h>
18133 #endif
18134 #ifdef HAVE_SYS_VFS_H
18135 # include <sys/vfs.h>
18136 #endif
18137 #ifdef HAVE_SYS_STATFS_H
18138 # include <sys/statfs.h>
18139 #endif
18142 main ()
18144 static struct statfs ac_aggr;
18145 if (ac_aggr.f_favail)
18146 return 0;
18148 return 0;
18150 _ACEOF
18151 rm -f conftest.$ac_objext
18152 if { (ac_try="$ac_compile"
18153 case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18156 esac
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_compile") 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } && {
18165 test -z "$ac_c_werror_flag" ||
18166 test ! -s conftest.err
18167 } && test -s conftest.$ac_objext; then
18168 ac_cv_member_struct_statfs_f_favail=yes
18169 else
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 cat >conftest.$ac_ext <<_ACEOF
18174 /* confdefs.h. */
18175 _ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18179 #include <sys/types.h>
18180 #ifdef HAVE_SYS_PARAM_H
18181 # include <sys/param.h>
18182 #endif
18183 #ifdef HAVE_SYS_MOUNT_H
18184 # include <sys/mount.h>
18185 #endif
18186 #ifdef HAVE_SYS_VFS_H
18187 # include <sys/vfs.h>
18188 #endif
18189 #ifdef HAVE_SYS_STATFS_H
18190 # include <sys/statfs.h>
18191 #endif
18194 main ()
18196 static struct statfs ac_aggr;
18197 if (sizeof ac_aggr.f_favail)
18198 return 0;
18200 return 0;
18202 _ACEOF
18203 rm -f conftest.$ac_objext
18204 if { (ac_try="$ac_compile"
18205 case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208 esac
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_compile") 2>conftest.er1
18211 ac_status=$?
18212 grep -v '^ *+' conftest.er1 >conftest.err
18213 rm -f conftest.er1
18214 cat conftest.err >&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } && {
18217 test -z "$ac_c_werror_flag" ||
18218 test ! -s conftest.err
18219 } && test -s conftest.$ac_objext; then
18220 ac_cv_member_struct_statfs_f_favail=yes
18221 else
18222 echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18225 ac_cv_member_struct_statfs_f_favail=no
18228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18234 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
18235 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18237 cat >>confdefs.h <<_ACEOF
18238 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18239 _ACEOF
18243 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18244 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
18245 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248 cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h. */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18254 #include <sys/types.h>
18255 #ifdef HAVE_SYS_PARAM_H
18256 # include <sys/param.h>
18257 #endif
18258 #ifdef HAVE_SYS_MOUNT_H
18259 # include <sys/mount.h>
18260 #endif
18261 #ifdef HAVE_SYS_VFS_H
18262 # include <sys/vfs.h>
18263 #endif
18264 #ifdef HAVE_SYS_STATFS_H
18265 # include <sys/statfs.h>
18266 #endif
18269 main ()
18271 static struct statfs ac_aggr;
18272 if (ac_aggr.f_namelen)
18273 return 0;
18275 return 0;
18277 _ACEOF
18278 rm -f conftest.$ac_objext
18279 if { (ac_try="$ac_compile"
18280 case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18283 esac
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_compile") 2>conftest.er1
18286 ac_status=$?
18287 grep -v '^ *+' conftest.er1 >conftest.err
18288 rm -f conftest.er1
18289 cat conftest.err >&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); } && {
18292 test -z "$ac_c_werror_flag" ||
18293 test ! -s conftest.err
18294 } && test -s conftest.$ac_objext; then
18295 ac_cv_member_struct_statfs_f_namelen=yes
18296 else
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18300 cat >conftest.$ac_ext <<_ACEOF
18301 /* confdefs.h. */
18302 _ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h. */
18306 #include <sys/types.h>
18307 #ifdef HAVE_SYS_PARAM_H
18308 # include <sys/param.h>
18309 #endif
18310 #ifdef HAVE_SYS_MOUNT_H
18311 # include <sys/mount.h>
18312 #endif
18313 #ifdef HAVE_SYS_VFS_H
18314 # include <sys/vfs.h>
18315 #endif
18316 #ifdef HAVE_SYS_STATFS_H
18317 # include <sys/statfs.h>
18318 #endif
18321 main ()
18323 static struct statfs ac_aggr;
18324 if (sizeof ac_aggr.f_namelen)
18325 return 0;
18327 return 0;
18329 _ACEOF
18330 rm -f conftest.$ac_objext
18331 if { (ac_try="$ac_compile"
18332 case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18335 esac
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_compile") 2>conftest.er1
18338 ac_status=$?
18339 grep -v '^ *+' conftest.er1 >conftest.err
18340 rm -f conftest.er1
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } && {
18344 test -z "$ac_c_werror_flag" ||
18345 test ! -s conftest.err
18346 } && test -s conftest.$ac_objext; then
18347 ac_cv_member_struct_statfs_f_namelen=yes
18348 else
18349 echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18352 ac_cv_member_struct_statfs_f_namelen=no
18355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18360 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18361 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
18362 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18364 cat >>confdefs.h <<_ACEOF
18365 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18366 _ACEOF
18372 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18373 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
18374 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 else
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 #ifdef HAVE_SYS_STATVFS_H
18384 #include <sys/statvfs.h>
18385 #endif
18388 main ()
18390 static struct statvfs ac_aggr;
18391 if (ac_aggr.f_blocks)
18392 return 0;
18394 return 0;
18396 _ACEOF
18397 rm -f conftest.$ac_objext
18398 if { (ac_try="$ac_compile"
18399 case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18402 esac
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_compile") 2>conftest.er1
18405 ac_status=$?
18406 grep -v '^ *+' conftest.er1 >conftest.err
18407 rm -f conftest.er1
18408 cat conftest.err >&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } && {
18411 test -z "$ac_c_werror_flag" ||
18412 test ! -s conftest.err
18413 } && test -s conftest.$ac_objext; then
18414 ac_cv_member_struct_statvfs_f_blocks=yes
18415 else
18416 echo "$as_me: failed program was:" >&5
18417 sed 's/^/| /' conftest.$ac_ext >&5
18419 cat >conftest.$ac_ext <<_ACEOF
18420 /* confdefs.h. */
18421 _ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h. */
18425 #ifdef HAVE_SYS_STATVFS_H
18426 #include <sys/statvfs.h>
18427 #endif
18430 main ()
18432 static struct statvfs ac_aggr;
18433 if (sizeof ac_aggr.f_blocks)
18434 return 0;
18436 return 0;
18438 _ACEOF
18439 rm -f conftest.$ac_objext
18440 if { (ac_try="$ac_compile"
18441 case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_compile") 2>conftest.er1
18447 ac_status=$?
18448 grep -v '^ *+' conftest.er1 >conftest.err
18449 rm -f conftest.er1
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } && {
18453 test -z "$ac_c_werror_flag" ||
18454 test ! -s conftest.err
18455 } && test -s conftest.$ac_objext; then
18456 ac_cv_member_struct_statvfs_f_blocks=yes
18457 else
18458 echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18461 ac_cv_member_struct_statvfs_f_blocks=no
18464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18469 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18470 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
18471 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18473 cat >>confdefs.h <<_ACEOF
18474 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18475 _ACEOF
18481 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18482 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
18483 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18484 echo $ECHO_N "(cached) $ECHO_C" >&6
18485 else
18486 cat >conftest.$ac_ext <<_ACEOF
18487 /* confdefs.h. */
18488 _ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h. */
18492 #include <sys/types.h>
18493 #ifdef HAVE_SYS_SOCKET_H
18494 # include <sys/socket.h>
18495 #endif
18496 #ifdef HAVE_SYS_UN_H
18497 # include <sys/un.h>
18498 #endif
18501 main ()
18503 static struct msghdr ac_aggr;
18504 if (ac_aggr.msg_accrights)
18505 return 0;
18507 return 0;
18509 _ACEOF
18510 rm -f conftest.$ac_objext
18511 if { (ac_try="$ac_compile"
18512 case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18515 esac
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_compile") 2>conftest.er1
18518 ac_status=$?
18519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } && {
18524 test -z "$ac_c_werror_flag" ||
18525 test ! -s conftest.err
18526 } && test -s conftest.$ac_objext; then
18527 ac_cv_member_struct_msghdr_msg_accrights=yes
18528 else
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h. */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538 #include <sys/types.h>
18539 #ifdef HAVE_SYS_SOCKET_H
18540 # include <sys/socket.h>
18541 #endif
18542 #ifdef HAVE_SYS_UN_H
18543 # include <sys/un.h>
18544 #endif
18547 main ()
18549 static struct msghdr ac_aggr;
18550 if (sizeof ac_aggr.msg_accrights)
18551 return 0;
18553 return 0;
18555 _ACEOF
18556 rm -f conftest.$ac_objext
18557 if { (ac_try="$ac_compile"
18558 case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18561 esac
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_compile") 2>conftest.er1
18564 ac_status=$?
18565 grep -v '^ *+' conftest.er1 >conftest.err
18566 rm -f conftest.er1
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } && {
18570 test -z "$ac_c_werror_flag" ||
18571 test ! -s conftest.err
18572 } && test -s conftest.$ac_objext; then
18573 ac_cv_member_struct_msghdr_msg_accrights=yes
18574 else
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18578 ac_cv_member_struct_msghdr_msg_accrights=no
18581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18586 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18587 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
18588 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18590 cat >>confdefs.h <<_ACEOF
18591 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18592 _ACEOF
18596 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18597 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
18598 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601 cat >conftest.$ac_ext <<_ACEOF
18602 /* confdefs.h. */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18607 #include <sys/types.h>
18608 #ifdef HAVE_SYS_SOCKET_H
18609 # include <sys/socket.h>
18610 #endif
18611 #ifdef HAVE_SYS_UN_H
18612 # include <sys/un.h>
18613 #endif
18616 main ()
18618 static struct sockaddr ac_aggr;
18619 if (ac_aggr.sa_len)
18620 return 0;
18622 return 0;
18624 _ACEOF
18625 rm -f conftest.$ac_objext
18626 if { (ac_try="$ac_compile"
18627 case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18630 esac
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_compile") 2>conftest.er1
18633 ac_status=$?
18634 grep -v '^ *+' conftest.er1 >conftest.err
18635 rm -f conftest.er1
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } && {
18639 test -z "$ac_c_werror_flag" ||
18640 test ! -s conftest.err
18641 } && test -s conftest.$ac_objext; then
18642 ac_cv_member_struct_sockaddr_sa_len=yes
18643 else
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h. */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18653 #include <sys/types.h>
18654 #ifdef HAVE_SYS_SOCKET_H
18655 # include <sys/socket.h>
18656 #endif
18657 #ifdef HAVE_SYS_UN_H
18658 # include <sys/un.h>
18659 #endif
18662 main ()
18664 static struct sockaddr ac_aggr;
18665 if (sizeof ac_aggr.sa_len)
18666 return 0;
18668 return 0;
18670 _ACEOF
18671 rm -f conftest.$ac_objext
18672 if { (ac_try="$ac_compile"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676 esac
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_compile") 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } && {
18685 test -z "$ac_c_werror_flag" ||
18686 test ! -s conftest.err
18687 } && test -s conftest.$ac_objext; then
18688 ac_cv_member_struct_sockaddr_sa_len=yes
18689 else
18690 echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18693 ac_cv_member_struct_sockaddr_sa_len=no
18696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18702 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
18703 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18705 cat >>confdefs.h <<_ACEOF
18706 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18707 _ACEOF
18711 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18712 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
18713 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716 cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h. */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18722 #include <sys/types.h>
18723 #ifdef HAVE_SYS_SOCKET_H
18724 # include <sys/socket.h>
18725 #endif
18726 #ifdef HAVE_SYS_UN_H
18727 # include <sys/un.h>
18728 #endif
18731 main ()
18733 static struct sockaddr_un ac_aggr;
18734 if (ac_aggr.sun_len)
18735 return 0;
18737 return 0;
18739 _ACEOF
18740 rm -f conftest.$ac_objext
18741 if { (ac_try="$ac_compile"
18742 case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18745 esac
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_compile") 2>conftest.er1
18748 ac_status=$?
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } && {
18754 test -z "$ac_c_werror_flag" ||
18755 test ! -s conftest.err
18756 } && test -s conftest.$ac_objext; then
18757 ac_cv_member_struct_sockaddr_un_sun_len=yes
18758 else
18759 echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18762 cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h. */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 #include <sys/types.h>
18769 #ifdef HAVE_SYS_SOCKET_H
18770 # include <sys/socket.h>
18771 #endif
18772 #ifdef HAVE_SYS_UN_H
18773 # include <sys/un.h>
18774 #endif
18777 main ()
18779 static struct sockaddr_un ac_aggr;
18780 if (sizeof ac_aggr.sun_len)
18781 return 0;
18783 return 0;
18785 _ACEOF
18786 rm -f conftest.$ac_objext
18787 if { (ac_try="$ac_compile"
18788 case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18791 esac
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_compile") 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } && {
18800 test -z "$ac_c_werror_flag" ||
18801 test ! -s conftest.err
18802 } && test -s conftest.$ac_objext; then
18803 ac_cv_member_struct_sockaddr_un_sun_len=yes
18804 else
18805 echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18808 ac_cv_member_struct_sockaddr_un_sun_len=no
18811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18816 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18817 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
18818 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18820 cat >>confdefs.h <<_ACEOF
18821 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18822 _ACEOF
18828 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18829 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
18830 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18831 echo $ECHO_N "(cached) $ECHO_C" >&6
18832 else
18833 cat >conftest.$ac_ext <<_ACEOF
18834 /* confdefs.h. */
18835 _ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18839 #include <sys/types.h>
18840 #ifdef HAVE_SCSI_SG_H
18841 #include <scsi/sg.h>
18842 #endif
18845 main ()
18847 static scsireq_t ac_aggr;
18848 if (ac_aggr.cmd)
18849 return 0;
18851 return 0;
18853 _ACEOF
18854 rm -f conftest.$ac_objext
18855 if { (ac_try="$ac_compile"
18856 case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18859 esac
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_compile") 2>conftest.er1
18862 ac_status=$?
18863 grep -v '^ *+' conftest.er1 >conftest.err
18864 rm -f conftest.er1
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } && {
18868 test -z "$ac_c_werror_flag" ||
18869 test ! -s conftest.err
18870 } && test -s conftest.$ac_objext; then
18871 ac_cv_member_scsireq_t_cmd=yes
18872 else
18873 echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18876 cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h. */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18882 #include <sys/types.h>
18883 #ifdef HAVE_SCSI_SG_H
18884 #include <scsi/sg.h>
18885 #endif
18888 main ()
18890 static scsireq_t ac_aggr;
18891 if (sizeof ac_aggr.cmd)
18892 return 0;
18894 return 0;
18896 _ACEOF
18897 rm -f conftest.$ac_objext
18898 if { (ac_try="$ac_compile"
18899 case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18902 esac
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904 (eval "$ac_compile") 2>conftest.er1
18905 ac_status=$?
18906 grep -v '^ *+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } && {
18911 test -z "$ac_c_werror_flag" ||
18912 test ! -s conftest.err
18913 } && test -s conftest.$ac_objext; then
18914 ac_cv_member_scsireq_t_cmd=yes
18915 else
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18919 ac_cv_member_scsireq_t_cmd=no
18922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18927 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
18928 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
18929 if test $ac_cv_member_scsireq_t_cmd = yes; then
18931 cat >>confdefs.h <<_ACEOF
18932 #define HAVE_SCSIREQ_T_CMD 1
18933 _ACEOF
18937 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
18938 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
18939 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
18940 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 else
18942 cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h. */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18948 #include <sys/types.h>
18949 #ifdef HAVE_SCSI_SG_H
18950 #include <scsi/sg.h>
18951 #endif
18954 main ()
18956 static sg_io_hdr_t ac_aggr;
18957 if (ac_aggr.interface_id)
18958 return 0;
18960 return 0;
18962 _ACEOF
18963 rm -f conftest.$ac_objext
18964 if { (ac_try="$ac_compile"
18965 case "(($ac_try" in
18966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967 *) ac_try_echo=$ac_try;;
18968 esac
18969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970 (eval "$ac_compile") 2>conftest.er1
18971 ac_status=$?
18972 grep -v '^ *+' conftest.er1 >conftest.err
18973 rm -f conftest.er1
18974 cat conftest.err >&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } && {
18977 test -z "$ac_c_werror_flag" ||
18978 test ! -s conftest.err
18979 } && test -s conftest.$ac_objext; then
18980 ac_cv_member_sg_io_hdr_t_interface_id=yes
18981 else
18982 echo "$as_me: failed program was:" >&5
18983 sed 's/^/| /' conftest.$ac_ext >&5
18985 cat >conftest.$ac_ext <<_ACEOF
18986 /* confdefs.h. */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 #include <sys/types.h>
18992 #ifdef HAVE_SCSI_SG_H
18993 #include <scsi/sg.h>
18994 #endif
18997 main ()
18999 static sg_io_hdr_t ac_aggr;
19000 if (sizeof ac_aggr.interface_id)
19001 return 0;
19003 return 0;
19005 _ACEOF
19006 rm -f conftest.$ac_objext
19007 if { (ac_try="$ac_compile"
19008 case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011 esac
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_compile") 2>conftest.er1
19014 ac_status=$?
19015 grep -v '^ *+' conftest.er1 >conftest.err
19016 rm -f conftest.er1
19017 cat conftest.err >&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } && {
19020 test -z "$ac_c_werror_flag" ||
19021 test ! -s conftest.err
19022 } && test -s conftest.$ac_objext; then
19023 ac_cv_member_sg_io_hdr_t_interface_id=yes
19024 else
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 ac_cv_member_sg_io_hdr_t_interface_id=no
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19036 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19037 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
19038 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19040 cat >>confdefs.h <<_ACEOF
19041 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19042 _ACEOF
19048 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19049 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
19050 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
19052 else
19053 cat >conftest.$ac_ext <<_ACEOF
19054 /* confdefs.h. */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19059 #include <signal.h>
19062 main ()
19064 static siginfo_t ac_aggr;
19065 if (ac_aggr.si_fd)
19066 return 0;
19068 return 0;
19070 _ACEOF
19071 rm -f conftest.$ac_objext
19072 if { (ac_try="$ac_compile"
19073 case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19076 esac
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078 (eval "$ac_compile") 2>conftest.er1
19079 ac_status=$?
19080 grep -v '^ *+' conftest.er1 >conftest.err
19081 rm -f conftest.er1
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } && {
19085 test -z "$ac_c_werror_flag" ||
19086 test ! -s conftest.err
19087 } && test -s conftest.$ac_objext; then
19088 ac_cv_member_siginfo_t_si_fd=yes
19089 else
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h. */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 #include <signal.h>
19102 main ()
19104 static siginfo_t ac_aggr;
19105 if (sizeof ac_aggr.si_fd)
19106 return 0;
19108 return 0;
19110 _ACEOF
19111 rm -f conftest.$ac_objext
19112 if { (ac_try="$ac_compile"
19113 case "(($ac_try" in
19114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115 *) ac_try_echo=$ac_try;;
19116 esac
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118 (eval "$ac_compile") 2>conftest.er1
19119 ac_status=$?
19120 grep -v '^ *+' conftest.er1 >conftest.err
19121 rm -f conftest.er1
19122 cat conftest.err >&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } && {
19125 test -z "$ac_c_werror_flag" ||
19126 test ! -s conftest.err
19127 } && test -s conftest.$ac_objext; then
19128 ac_cv_member_siginfo_t_si_fd=yes
19129 else
19130 echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 ac_cv_member_siginfo_t_si_fd=no
19136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19141 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19142 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
19143 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19145 cat >>confdefs.h <<_ACEOF
19146 #define HAVE_SIGINFO_T_SI_FD 1
19147 _ACEOF
19153 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
19154 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
19155 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
19157 else
19158 cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h. */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 #include <sys/types.h>
19165 #ifdef HAVE_SYS_MTIO_H
19166 #include <sys/mtio.h>
19167 #endif
19170 main ()
19172 static struct mtget ac_aggr;
19173 if (ac_aggr.mt_blksiz)
19174 return 0;
19176 return 0;
19178 _ACEOF
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_compile") 2>conftest.er1
19187 ac_status=$?
19188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } && {
19193 test -z "$ac_c_werror_flag" ||
19194 test ! -s conftest.err
19195 } && test -s conftest.$ac_objext; then
19196 ac_cv_member_struct_mtget_mt_blksiz=yes
19197 else
19198 echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
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. */
19207 #include <sys/types.h>
19208 #ifdef HAVE_SYS_MTIO_H
19209 #include <sys/mtio.h>
19210 #endif
19213 main ()
19215 static struct mtget ac_aggr;
19216 if (sizeof ac_aggr.mt_blksiz)
19217 return 0;
19219 return 0;
19221 _ACEOF
19222 rm -f conftest.$ac_objext
19223 if { (ac_try="$ac_compile"
19224 case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19227 esac
19228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_compile") 2>conftest.er1
19230 ac_status=$?
19231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } && {
19236 test -z "$ac_c_werror_flag" ||
19237 test ! -s conftest.err
19238 } && test -s conftest.$ac_objext; then
19239 ac_cv_member_struct_mtget_mt_blksiz=yes
19240 else
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19244 ac_cv_member_struct_mtget_mt_blksiz=no
19247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
19253 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
19254 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
19256 cat >>confdefs.h <<_ACEOF
19257 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
19258 _ACEOF
19262 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
19263 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
19264 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 else
19267 cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h. */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273 #include <sys/types.h>
19274 #ifdef HAVE_SYS_MTIO_H
19275 #include <sys/mtio.h>
19276 #endif
19279 main ()
19281 static struct mtget ac_aggr;
19282 if (ac_aggr.mt_gstat)
19283 return 0;
19285 return 0;
19287 _ACEOF
19288 rm -f conftest.$ac_objext
19289 if { (ac_try="$ac_compile"
19290 case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19293 esac
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_compile") 2>conftest.er1
19296 ac_status=$?
19297 grep -v '^ *+' conftest.er1 >conftest.err
19298 rm -f conftest.er1
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } && {
19302 test -z "$ac_c_werror_flag" ||
19303 test ! -s conftest.err
19304 } && test -s conftest.$ac_objext; then
19305 ac_cv_member_struct_mtget_mt_gstat=yes
19306 else
19307 echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19310 cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h. */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h. */
19316 #include <sys/types.h>
19317 #ifdef HAVE_SYS_MTIO_H
19318 #include <sys/mtio.h>
19319 #endif
19322 main ()
19324 static struct mtget ac_aggr;
19325 if (sizeof ac_aggr.mt_gstat)
19326 return 0;
19328 return 0;
19330 _ACEOF
19331 rm -f conftest.$ac_objext
19332 if { (ac_try="$ac_compile"
19333 case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19336 esac
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_compile") 2>conftest.er1
19339 ac_status=$?
19340 grep -v '^ *+' conftest.er1 >conftest.err
19341 rm -f conftest.er1
19342 cat conftest.err >&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } && {
19345 test -z "$ac_c_werror_flag" ||
19346 test ! -s conftest.err
19347 } && test -s conftest.$ac_objext; then
19348 ac_cv_member_struct_mtget_mt_gstat=yes
19349 else
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19353 ac_cv_member_struct_mtget_mt_gstat=no
19356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19361 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
19362 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
19363 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
19365 cat >>confdefs.h <<_ACEOF
19366 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
19367 _ACEOF
19371 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
19372 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
19373 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h. */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 #include <sys/types.h>
19383 #ifdef HAVE_SYS_MTIO_H
19384 #include <sys/mtio.h>
19385 #endif
19388 main ()
19390 static struct mtget ac_aggr;
19391 if (ac_aggr.mt_blkno)
19392 return 0;
19394 return 0;
19396 _ACEOF
19397 rm -f conftest.$ac_objext
19398 if { (ac_try="$ac_compile"
19399 case "(($ac_try" in
19400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401 *) ac_try_echo=$ac_try;;
19402 esac
19403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404 (eval "$ac_compile") 2>conftest.er1
19405 ac_status=$?
19406 grep -v '^ *+' conftest.er1 >conftest.err
19407 rm -f conftest.er1
19408 cat conftest.err >&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } && {
19411 test -z "$ac_c_werror_flag" ||
19412 test ! -s conftest.err
19413 } && test -s conftest.$ac_objext; then
19414 ac_cv_member_struct_mtget_mt_blkno=yes
19415 else
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19419 cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h. */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h. */
19425 #include <sys/types.h>
19426 #ifdef HAVE_SYS_MTIO_H
19427 #include <sys/mtio.h>
19428 #endif
19431 main ()
19433 static struct mtget ac_aggr;
19434 if (sizeof ac_aggr.mt_blkno)
19435 return 0;
19437 return 0;
19439 _ACEOF
19440 rm -f conftest.$ac_objext
19441 if { (ac_try="$ac_compile"
19442 case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_compile") 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } && {
19454 test -z "$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19456 } && test -s conftest.$ac_objext; then
19457 ac_cv_member_struct_mtget_mt_blkno=yes
19458 else
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 ac_cv_member_struct_mtget_mt_blkno=no
19465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19470 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19471 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
19472 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19474 cat >>confdefs.h <<_ACEOF
19475 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
19476 _ACEOF
19482 { echo "$as_me:$LINENO: checking for struct option.name" >&5
19483 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
19484 if test "${ac_cv_member_struct_option_name+set}" = set; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19486 else
19487 cat >conftest.$ac_ext <<_ACEOF
19488 /* confdefs.h. */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19493 #ifdef HAVE_GETOPT_H
19494 #include <getopt.h>
19495 #endif
19498 main ()
19500 static struct option ac_aggr;
19501 if (ac_aggr.name)
19502 return 0;
19504 return 0;
19506 _ACEOF
19507 rm -f conftest.$ac_objext
19508 if { (ac_try="$ac_compile"
19509 case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_compile") 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest.$ac_objext; then
19524 ac_cv_member_struct_option_name=yes
19525 else
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h. */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19535 #ifdef HAVE_GETOPT_H
19536 #include <getopt.h>
19537 #endif
19540 main ()
19542 static struct option ac_aggr;
19543 if (sizeof ac_aggr.name)
19544 return 0;
19546 return 0;
19548 _ACEOF
19549 rm -f conftest.$ac_objext
19550 if { (ac_try="$ac_compile"
19551 case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19554 esac
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_compile") 2>conftest.er1
19557 ac_status=$?
19558 grep -v '^ *+' conftest.er1 >conftest.err
19559 rm -f conftest.er1
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } && {
19563 test -z "$ac_c_werror_flag" ||
19564 test ! -s conftest.err
19565 } && test -s conftest.$ac_objext; then
19566 ac_cv_member_struct_option_name=yes
19567 else
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19571 ac_cv_member_struct_option_name=no
19574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19579 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19580 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
19581 if test $ac_cv_member_struct_option_name = yes; then
19583 cat >>confdefs.h <<_ACEOF
19584 #define HAVE_STRUCT_OPTION_NAME 1
19585 _ACEOF
19591 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19592 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19593 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596 cat >conftest.$ac_ext <<_ACEOF
19597 /* confdefs.h. */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19602 $ac_includes_default
19604 main ()
19606 static struct stat ac_aggr;
19607 if (ac_aggr.st_blocks)
19608 return 0;
19610 return 0;
19612 _ACEOF
19613 rm -f conftest.$ac_objext
19614 if { (ac_try="$ac_compile"
19615 case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19618 esac
19619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620 (eval "$ac_compile") 2>conftest.er1
19621 ac_status=$?
19622 grep -v '^ *+' conftest.er1 >conftest.err
19623 rm -f conftest.er1
19624 cat conftest.err >&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } && {
19627 test -z "$ac_c_werror_flag" ||
19628 test ! -s conftest.err
19629 } && test -s conftest.$ac_objext; then
19630 ac_cv_member_struct_stat_st_blocks=yes
19631 else
19632 echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19635 cat >conftest.$ac_ext <<_ACEOF
19636 /* confdefs.h. */
19637 _ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h. */
19641 $ac_includes_default
19643 main ()
19645 static struct stat ac_aggr;
19646 if (sizeof ac_aggr.st_blocks)
19647 return 0;
19649 return 0;
19651 _ACEOF
19652 rm -f conftest.$ac_objext
19653 if { (ac_try="$ac_compile"
19654 case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19657 esac
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_compile") 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest.$ac_objext; then
19669 ac_cv_member_struct_stat_st_blocks=yes
19670 else
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19674 ac_cv_member_struct_stat_st_blocks=no
19677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19682 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19683 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19684 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19686 cat >>confdefs.h <<_ACEOF
19687 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19688 _ACEOF
19694 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19695 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
19696 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699 cat >conftest.$ac_ext <<_ACEOF
19700 /* confdefs.h. */
19701 _ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19705 #ifdef HAVE_SYS_TYPES_H
19706 #include <sys/types.h>
19707 #endif
19708 #ifdef HAVE_NETINET_IN_H
19709 #include <netinet/in.h>
19710 #endif
19713 main ()
19715 static struct sockaddr_in6 ac_aggr;
19716 if (ac_aggr.sin6_scope_id)
19717 return 0;
19719 return 0;
19721 _ACEOF
19722 rm -f conftest.$ac_objext
19723 if { (ac_try="$ac_compile"
19724 case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19727 esac
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_compile") 2>conftest.er1
19730 ac_status=$?
19731 grep -v '^ *+' conftest.er1 >conftest.err
19732 rm -f conftest.er1
19733 cat conftest.err >&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } && {
19736 test -z "$ac_c_werror_flag" ||
19737 test ! -s conftest.err
19738 } && test -s conftest.$ac_objext; then
19739 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19740 else
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
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 #ifdef HAVE_SYS_TYPES_H
19751 #include <sys/types.h>
19752 #endif
19753 #ifdef HAVE_NETINET_IN_H
19754 #include <netinet/in.h>
19755 #endif
19758 main ()
19760 static struct sockaddr_in6 ac_aggr;
19761 if (sizeof ac_aggr.sin6_scope_id)
19762 return 0;
19764 return 0;
19766 _ACEOF
19767 rm -f conftest.$ac_objext
19768 if { (ac_try="$ac_compile"
19769 case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_compile") 2>conftest.er1
19775 ac_status=$?
19776 grep -v '^ *+' conftest.er1 >conftest.err
19777 rm -f conftest.er1
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && {
19781 test -z "$ac_c_werror_flag" ||
19782 test ! -s conftest.err
19783 } && test -s conftest.$ac_objext; then
19784 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19785 else
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19789 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
19792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19797 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19798 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
19799 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19801 cat >>confdefs.h <<_ACEOF
19802 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19803 _ACEOF
19809 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
19810 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
19811 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 else
19814 cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h. */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 #ifdef HAVE_SYS_TYPES_H
19821 #include <sys/types.h>
19822 #endif
19823 #ifdef HAVE_NETINET_IN_H
19824 # include <netinet/in.h>
19825 #endif
19826 #ifdef HAVE_ARPA_NAMESER_H
19827 # include <arpa/nameser.h>
19828 #endif
19831 main ()
19833 static ns_msg ac_aggr;
19834 if (ac_aggr._msg_ptr)
19835 return 0;
19837 return 0;
19839 _ACEOF
19840 rm -f conftest.$ac_objext
19841 if { (ac_try="$ac_compile"
19842 case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19845 esac
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847 (eval "$ac_compile") 2>conftest.er1
19848 ac_status=$?
19849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } && {
19854 test -z "$ac_c_werror_flag" ||
19855 test ! -s conftest.err
19856 } && test -s conftest.$ac_objext; then
19857 ac_cv_member_ns_msg__msg_ptr=yes
19858 else
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19862 cat >conftest.$ac_ext <<_ACEOF
19863 /* confdefs.h. */
19864 _ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h. */
19868 #ifdef HAVE_SYS_TYPES_H
19869 #include <sys/types.h>
19870 #endif
19871 #ifdef HAVE_NETINET_IN_H
19872 # include <netinet/in.h>
19873 #endif
19874 #ifdef HAVE_ARPA_NAMESER_H
19875 # include <arpa/nameser.h>
19876 #endif
19879 main ()
19881 static ns_msg ac_aggr;
19882 if (sizeof ac_aggr._msg_ptr)
19883 return 0;
19885 return 0;
19887 _ACEOF
19888 rm -f conftest.$ac_objext
19889 if { (ac_try="$ac_compile"
19890 case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19893 esac
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_compile") 2>conftest.er1
19896 ac_status=$?
19897 grep -v '^ *+' conftest.er1 >conftest.err
19898 rm -f conftest.er1
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } && {
19902 test -z "$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19904 } && test -s conftest.$ac_objext; then
19905 ac_cv_member_ns_msg__msg_ptr=yes
19906 else
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_cv_member_ns_msg__msg_ptr=no
19913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19918 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
19919 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
19920 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
19922 cat >>confdefs.h <<_ACEOF
19923 #define HAVE_NS_MSG__MSG_PTR 1
19924 _ACEOF
19930 { echo "$as_me:$LINENO: checking for timezone variable" >&5
19931 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
19932 if test "${ac_cv_have_timezone+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935 cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h. */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19941 #include <time.h>
19943 main ()
19945 timezone = 1
19947 return 0;
19949 _ACEOF
19950 rm -f conftest.$ac_objext conftest$ac_exeext
19951 if { (ac_try="$ac_link"
19952 case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19955 esac
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_link") 2>conftest.er1
19958 ac_status=$?
19959 grep -v '^ *+' conftest.er1 >conftest.err
19960 rm -f conftest.er1
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } && {
19964 test -z "$ac_c_werror_flag" ||
19965 test ! -s conftest.err
19966 } && test -s conftest$ac_exeext &&
19967 $as_test_x conftest$ac_exeext; then
19968 ac_cv_have_timezone="yes"
19969 else
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19973 ac_cv_have_timezone="no"
19976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19977 conftest$ac_exeext conftest.$ac_ext
19979 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19980 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
19981 if test "$ac_cv_have_timezone" = "yes"
19982 then
19984 cat >>confdefs.h <<\_ACEOF
19985 #define HAVE_TIMEZONE 1
19986 _ACEOF
19989 { echo "$as_me:$LINENO: checking for daylight variable" >&5
19990 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
19991 if test "${ac_cv_have_daylight+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19993 else
19994 cat >conftest.$ac_ext <<_ACEOF
19995 /* confdefs.h. */
19996 _ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h. */
20000 #include <time.h>
20002 main ()
20004 daylight = 1
20006 return 0;
20008 _ACEOF
20009 rm -f conftest.$ac_objext conftest$ac_exeext
20010 if { (ac_try="$ac_link"
20011 case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20014 esac
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_link") 2>conftest.er1
20017 ac_status=$?
20018 grep -v '^ *+' conftest.er1 >conftest.err
20019 rm -f conftest.er1
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest$ac_exeext &&
20026 $as_test_x conftest$ac_exeext; then
20027 ac_cv_have_daylight="yes"
20028 else
20029 echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20032 ac_cv_have_daylight="no"
20035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20036 conftest$ac_exeext conftest.$ac_ext
20038 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20039 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
20040 if test "$ac_cv_have_daylight" = "yes"
20041 then
20043 cat >>confdefs.h <<\_ACEOF
20044 #define HAVE_DAYLIGHT 1
20045 _ACEOF
20050 case $host_cpu in
20051 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20052 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
20053 if test "${ac_cv_cpp_def___i386__+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 #ifndef __i386__
20064 #endif
20065 _ACEOF
20066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20067 $EGREP "yes" >/dev/null 2>&1; then
20068 ac_cv_cpp_def___i386__=yes
20069 else
20070 ac_cv_cpp_def___i386__=no
20072 rm -f conftest*
20075 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20076 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
20077 if test $ac_cv_cpp_def___i386__ = yes; then
20078 CFLAGS="$CFLAGS -D__i386__"
20079 LINTFLAGS="$LINTFLAGS -D__i386__"
20082 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
20083 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
20084 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087 cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h. */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20093 #ifndef __x86_64__
20095 #endif
20096 _ACEOF
20097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20098 $EGREP "yes" >/dev/null 2>&1; then
20099 ac_cv_cpp_def___x86_64__=yes
20100 else
20101 ac_cv_cpp_def___x86_64__=no
20103 rm -f conftest*
20106 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
20107 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
20108 if test $ac_cv_cpp_def___x86_64__ = yes; then
20109 CFLAGS="$CFLAGS -D__x86_64__"
20110 LINTFLAGS="$LINTFLAGS -D__x86_64__"
20113 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20114 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
20115 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20118 cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h. */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 #ifndef __ALPHA__
20126 #endif
20127 _ACEOF
20128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20129 $EGREP "yes" >/dev/null 2>&1; then
20130 ac_cv_cpp_def___ALPHA__=yes
20131 else
20132 ac_cv_cpp_def___ALPHA__=no
20134 rm -f conftest*
20137 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20138 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
20139 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20140 CFLAGS="$CFLAGS -D__ALPHA__"
20141 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20144 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20145 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
20146 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 else
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h. */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #ifndef __sparc__
20157 #endif
20158 _ACEOF
20159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20160 $EGREP "yes" >/dev/null 2>&1; then
20161 ac_cv_cpp_def___sparc__=yes
20162 else
20163 ac_cv_cpp_def___sparc__=no
20165 rm -f conftest*
20168 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20169 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
20170 if test $ac_cv_cpp_def___sparc__ = yes; then
20171 CFLAGS="$CFLAGS -D__sparc__"
20172 LINTFLAGS="$LINTFLAGS -D__sparc__"
20175 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20176 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
20177 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20179 else
20180 cat >conftest.$ac_ext <<_ACEOF
20181 /* confdefs.h. */
20182 _ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h. */
20186 #ifndef __powerpc__
20188 #endif
20189 _ACEOF
20190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20191 $EGREP "yes" >/dev/null 2>&1; then
20192 ac_cv_cpp_def___powerpc__=yes
20193 else
20194 ac_cv_cpp_def___powerpc__=no
20196 rm -f conftest*
20199 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20200 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
20201 if test $ac_cv_cpp_def___powerpc__ = yes; then
20202 CFLAGS="$CFLAGS -D__powerpc__"
20203 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20206 esac
20208 case $host_vendor in
20209 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20210 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
20211 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20213 else
20214 cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h. */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20220 #ifndef __sun__
20222 #endif
20223 _ACEOF
20224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20225 $EGREP "yes" >/dev/null 2>&1; then
20226 ac_cv_cpp_def___sun__=yes
20227 else
20228 ac_cv_cpp_def___sun__=no
20230 rm -f conftest*
20233 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20234 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
20235 if test $ac_cv_cpp_def___sun__ = yes; then
20236 CFLAGS="$CFLAGS -D__sun__"
20237 LINTFLAGS="$LINTFLAGS -D__sun__"
20240 esac
20243 DEPENDENCIES="### Dependencies:
20245 .INIT: Makefile
20246 .BEGIN: Makefile
20247 Makefile: dummy
20248 -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
20250 \$(ALL_OBJS): \$(IDL_H_SRCS:.idl=.h)
20251 \$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
20252 \$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
20253 \$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
20259 ac_config_commands="$ac_config_commands include/stamp-h"
20262 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
20264 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
20266 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
20268 ac_config_commands="$ac_config_commands dlls/user32/resources"
20270 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
20272 ac_config_commands="$ac_config_commands include/wine"
20275 MAKE_RULES=Make.rules
20278 MAKE_DLL_RULES=dlls/Makedll.rules
20281 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
20284 MAKE_TEST_RULES=dlls/Maketest.rules
20287 MAKE_PROG_RULES=programs/Makeprog.rules
20290 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.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/clusapi/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/ddrawex/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/gdi32/Makefile dlls/gdi32/tests/Makefile dlls/glu32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hid/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/infosoft/tests/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/itss/tests/Makefile dlls/kernel32/Makefile dlls/kernel32/tests/Makefile dlls/localspl/Makefile dlls/localspl/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/mscoree/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/nddeapi/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/pstorec/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/resutils/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/shdoclc/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/svrapi/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user32/Makefile dlls/user32/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/winejoystick.drv/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winequartz.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/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/wintrust/tests/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/cmd/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/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/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
20293 cat >confcache <<\_ACEOF
20294 # This file is a shell script that caches the results of configure
20295 # tests run on this system so they can be shared between configure
20296 # scripts and configure runs, see configure's option --config-cache.
20297 # It is not useful on other systems. If it contains results you don't
20298 # want to keep, you may remove or edit it.
20300 # config.status only pays attention to the cache file if you give it
20301 # the --recheck option to rerun configure.
20303 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20304 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20305 # following values.
20307 _ACEOF
20309 # The following way of writing the cache mishandles newlines in values,
20310 # but we know of no workaround that is simple, portable, and efficient.
20311 # So, we kill variables containing newlines.
20312 # Ultrix sh set writes to stderr and can't be redirected directly,
20313 # and sets the high bit in the cache file unless we assign to the vars.
20315 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20316 eval ac_val=\$$ac_var
20317 case $ac_val in #(
20318 *${as_nl}*)
20319 case $ac_var in #(
20320 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20321 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20322 esac
20323 case $ac_var in #(
20324 _ | IFS | as_nl) ;; #(
20325 *) $as_unset $ac_var ;;
20326 esac ;;
20327 esac
20328 done
20330 (set) 2>&1 |
20331 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20332 *${as_nl}ac_space=\ *)
20333 # `set' does not quote correctly, so add quotes (double-quote
20334 # substitution turns \\\\ into \\, and sed turns \\ into \).
20335 sed -n \
20336 "s/'/'\\\\''/g;
20337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20338 ;; #(
20340 # `set' quotes correctly as required by POSIX, so do not add quotes.
20341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20343 esac |
20344 sort
20346 sed '
20347 /^ac_cv_env_/b end
20348 t clear
20349 :clear
20350 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20351 t end
20352 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20353 :end' >>confcache
20354 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20355 if test -w "$cache_file"; then
20356 test "x$cache_file" != "x/dev/null" &&
20357 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20358 echo "$as_me: updating cache $cache_file" >&6;}
20359 cat confcache >$cache_file
20360 else
20361 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20362 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20365 rm -f confcache
20367 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20368 # Let make expand exec_prefix.
20369 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20371 DEFS=-DHAVE_CONFIG_H
20373 ac_libobjs=
20374 ac_ltlibobjs=
20375 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20376 # 1. Remove the extension, and $U if already installed.
20377 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20378 ac_i=`echo "$ac_i" | sed "$ac_script"`
20379 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20380 # will be set to the directory where LIBOBJS objects are built.
20381 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20382 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20383 done
20384 LIBOBJS=$ac_libobjs
20386 LTLIBOBJS=$ac_ltlibobjs
20390 : ${CONFIG_STATUS=./config.status}
20391 ac_clean_files_save=$ac_clean_files
20392 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20393 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20394 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20395 cat >$CONFIG_STATUS <<_ACEOF
20396 #! $SHELL
20397 # Generated by $as_me.
20398 # Run this file to recreate the current configuration.
20399 # Compiler output produced by configure, useful for debugging
20400 # configure, is in config.log if it exists.
20402 debug=false
20403 ac_cs_recheck=false
20404 ac_cs_silent=false
20405 SHELL=\${CONFIG_SHELL-$SHELL}
20406 _ACEOF
20408 cat >>$CONFIG_STATUS <<\_ACEOF
20409 ## --------------------- ##
20410 ## M4sh Initialization. ##
20411 ## --------------------- ##
20413 # Be more Bourne compatible
20414 DUALCASE=1; export DUALCASE # for MKS sh
20415 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20416 emulate sh
20417 NULLCMD=:
20418 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20419 # is contrary to our usage. Disable this feature.
20420 alias -g '${1+"$@"}'='"$@"'
20421 setopt NO_GLOB_SUBST
20422 else
20423 case `(set -o) 2>/dev/null` in
20424 *posix*) set -o posix ;;
20425 esac
20432 # PATH needs CR
20433 # Avoid depending upon Character Ranges.
20434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20437 as_cr_digits='0123456789'
20438 as_cr_alnum=$as_cr_Letters$as_cr_digits
20440 # The user is always right.
20441 if test "${PATH_SEPARATOR+set}" != set; then
20442 echo "#! /bin/sh" >conf$$.sh
20443 echo "exit 0" >>conf$$.sh
20444 chmod +x conf$$.sh
20445 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20446 PATH_SEPARATOR=';'
20447 else
20448 PATH_SEPARATOR=:
20450 rm -f conf$$.sh
20453 # Support unset when possible.
20454 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20455 as_unset=unset
20456 else
20457 as_unset=false
20461 # IFS
20462 # We need space, tab and new line, in precisely that order. Quoting is
20463 # there to prevent editors from complaining about space-tab.
20464 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20465 # splitting by setting IFS to empty value.)
20466 as_nl='
20468 IFS=" "" $as_nl"
20470 # Find who we are. Look in the path if we contain no directory separator.
20471 case $0 in
20472 *[\\/]* ) as_myself=$0 ;;
20473 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20474 for as_dir in $PATH
20476 IFS=$as_save_IFS
20477 test -z "$as_dir" && as_dir=.
20478 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20479 done
20480 IFS=$as_save_IFS
20483 esac
20484 # We did not find ourselves, most probably we were run as `sh COMMAND'
20485 # in which case we are not to be found in the path.
20486 if test "x$as_myself" = x; then
20487 as_myself=$0
20489 if test ! -f "$as_myself"; then
20490 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20491 { (exit 1); exit 1; }
20494 # Work around bugs in pre-3.0 UWIN ksh.
20495 for as_var in ENV MAIL MAILPATH
20496 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20497 done
20498 PS1='$ '
20499 PS2='> '
20500 PS4='+ '
20502 # NLS nuisances.
20503 for as_var in \
20504 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20505 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20506 LC_TELEPHONE LC_TIME
20508 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20509 eval $as_var=C; export $as_var
20510 else
20511 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20513 done
20515 # Required to use basename.
20516 if expr a : '\(a\)' >/dev/null 2>&1 &&
20517 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20518 as_expr=expr
20519 else
20520 as_expr=false
20523 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20524 as_basename=basename
20525 else
20526 as_basename=false
20530 # Name of the executable.
20531 as_me=`$as_basename -- "$0" ||
20532 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20533 X"$0" : 'X\(//\)$' \| \
20534 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20535 echo X/"$0" |
20536 sed '/^.*\/\([^/][^/]*\)\/*$/{
20537 s//\1/
20540 /^X\/\(\/\/\)$/{
20541 s//\1/
20544 /^X\/\(\/\).*/{
20545 s//\1/
20548 s/.*/./; q'`
20550 # CDPATH.
20551 $as_unset CDPATH
20555 as_lineno_1=$LINENO
20556 as_lineno_2=$LINENO
20557 test "x$as_lineno_1" != "x$as_lineno_2" &&
20558 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20560 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20561 # uniformly replaced by the line number. The first 'sed' inserts a
20562 # line-number line after each line using $LINENO; the second 'sed'
20563 # does the real work. The second script uses 'N' to pair each
20564 # line-number line with the line containing $LINENO, and appends
20565 # trailing '-' during substitution so that $LINENO is not a special
20566 # case at line end.
20567 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20568 # scripts with optimization help from Paolo Bonzini. Blame Lee
20569 # E. McMahon (1931-1989) for sed's syntax. :-)
20570 sed -n '
20572 /[$]LINENO/=
20573 ' <$as_myself |
20574 sed '
20575 s/[$]LINENO.*/&-/
20576 t lineno
20578 :lineno
20580 :loop
20581 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20582 t loop
20583 s/-\n.*//
20584 ' >$as_me.lineno &&
20585 chmod +x "$as_me.lineno" ||
20586 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20587 { (exit 1); exit 1; }; }
20589 # Don't try to exec as it changes $[0], causing all sort of problems
20590 # (the dirname of $[0] is not the place where we might find the
20591 # original and so on. Autoconf is especially sensitive to this).
20592 . "./$as_me.lineno"
20593 # Exit status is that of the last command.
20594 exit
20598 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20599 as_dirname=dirname
20600 else
20601 as_dirname=false
20604 ECHO_C= ECHO_N= ECHO_T=
20605 case `echo -n x` in
20606 -n*)
20607 case `echo 'x\c'` in
20608 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20609 *) ECHO_C='\c';;
20610 esac;;
20612 ECHO_N='-n';;
20613 esac
20615 if expr a : '\(a\)' >/dev/null 2>&1 &&
20616 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20617 as_expr=expr
20618 else
20619 as_expr=false
20622 rm -f conf$$ conf$$.exe conf$$.file
20623 if test -d conf$$.dir; then
20624 rm -f conf$$.dir/conf$$.file
20625 else
20626 rm -f conf$$.dir
20627 mkdir conf$$.dir
20629 echo >conf$$.file
20630 if ln -s conf$$.file conf$$ 2>/dev/null; then
20631 as_ln_s='ln -s'
20632 # ... but there are two gotchas:
20633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20635 # In both cases, we have to default to `cp -p'.
20636 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20637 as_ln_s='cp -p'
20638 elif ln conf$$.file conf$$ 2>/dev/null; then
20639 as_ln_s=ln
20640 else
20641 as_ln_s='cp -p'
20643 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20644 rmdir conf$$.dir 2>/dev/null
20646 if mkdir -p . 2>/dev/null; then
20647 as_mkdir_p=:
20648 else
20649 test -d ./-p && rmdir ./-p
20650 as_mkdir_p=false
20653 if test -x / >/dev/null 2>&1; then
20654 as_test_x='test -x'
20655 else
20656 if ls -dL / >/dev/null 2>&1; then
20657 as_ls_L_option=L
20658 else
20659 as_ls_L_option=
20661 as_test_x='
20662 eval sh -c '\''
20663 if test -d "$1"; then
20664 test -d "$1/.";
20665 else
20666 case $1 in
20667 -*)set "./$1";;
20668 esac;
20669 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20670 ???[sx]*):;;*)false;;esac;fi
20671 '\'' sh
20674 as_executable_p=$as_test_x
20676 # Sed expression to map a string onto a valid CPP name.
20677 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20679 # Sed expression to map a string onto a valid variable name.
20680 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20683 exec 6>&1
20685 # Save the log message, to keep $[0] and so on meaningful, and to
20686 # report actual input values of CONFIG_FILES etc. instead of their
20687 # values after options handling.
20688 ac_log="
20689 This file was extended by Wine $as_me 0.9.28, which was
20690 generated by GNU Autoconf 2.61. Invocation command line was
20692 CONFIG_FILES = $CONFIG_FILES
20693 CONFIG_HEADERS = $CONFIG_HEADERS
20694 CONFIG_LINKS = $CONFIG_LINKS
20695 CONFIG_COMMANDS = $CONFIG_COMMANDS
20696 $ $0 $@
20698 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20701 _ACEOF
20703 cat >>$CONFIG_STATUS <<_ACEOF
20704 # Files that config.status was made for.
20705 config_files="$ac_config_files"
20706 config_headers="$ac_config_headers"
20707 config_commands="$ac_config_commands"
20709 _ACEOF
20711 cat >>$CONFIG_STATUS <<\_ACEOF
20712 ac_cs_usage="\
20713 \`$as_me' instantiates files from templates according to the
20714 current configuration.
20716 Usage: $0 [OPTIONS] [FILE]...
20718 -h, --help print this help, then exit
20719 -V, --version print version number and configuration settings, then exit
20720 -q, --quiet do not print progress messages
20721 -d, --debug don't remove temporary files
20722 --recheck update $as_me by reconfiguring in the same conditions
20723 --file=FILE[:TEMPLATE]
20724 instantiate the configuration file FILE
20725 --header=FILE[:TEMPLATE]
20726 instantiate the configuration header FILE
20728 Configuration files:
20729 $config_files
20731 Configuration headers:
20732 $config_headers
20734 Configuration commands:
20735 $config_commands
20737 Report bugs to <bug-autoconf@gnu.org>."
20739 _ACEOF
20740 cat >>$CONFIG_STATUS <<_ACEOF
20741 ac_cs_version="\\
20742 Wine config.status 0.9.28
20743 configured by $0, generated by GNU Autoconf 2.61,
20744 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20746 Copyright (C) 2006 Free Software Foundation, Inc.
20747 This config.status script is free software; the Free Software Foundation
20748 gives unlimited permission to copy, distribute and modify it."
20750 ac_pwd='$ac_pwd'
20751 srcdir='$srcdir'
20752 INSTALL='$INSTALL'
20753 _ACEOF
20755 cat >>$CONFIG_STATUS <<\_ACEOF
20756 # If no file are specified by the user, then we need to provide default
20757 # value. By we need to know if files were specified by the user.
20758 ac_need_defaults=:
20759 while test $# != 0
20761 case $1 in
20762 --*=*)
20763 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20764 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20765 ac_shift=:
20768 ac_option=$1
20769 ac_optarg=$2
20770 ac_shift=shift
20772 esac
20774 case $ac_option in
20775 # Handling of the options.
20776 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20777 ac_cs_recheck=: ;;
20778 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20779 echo "$ac_cs_version"; exit ;;
20780 --debug | --debu | --deb | --de | --d | -d )
20781 debug=: ;;
20782 --file | --fil | --fi | --f )
20783 $ac_shift
20784 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20785 ac_need_defaults=false;;
20786 --header | --heade | --head | --hea )
20787 $ac_shift
20788 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20789 ac_need_defaults=false;;
20790 --he | --h)
20791 # Conflict between --help and --header
20792 { echo "$as_me: error: ambiguous option: $1
20793 Try \`$0 --help' for more information." >&2
20794 { (exit 1); exit 1; }; };;
20795 --help | --hel | -h )
20796 echo "$ac_cs_usage"; exit ;;
20797 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20798 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20799 ac_cs_silent=: ;;
20801 # This is an error.
20802 -*) { echo "$as_me: error: unrecognized option: $1
20803 Try \`$0 --help' for more information." >&2
20804 { (exit 1); exit 1; }; } ;;
20806 *) ac_config_targets="$ac_config_targets $1"
20807 ac_need_defaults=false ;;
20809 esac
20810 shift
20811 done
20813 ac_configure_extra_args=
20815 if $ac_cs_silent; then
20816 exec 6>/dev/null
20817 ac_configure_extra_args="$ac_configure_extra_args --silent"
20820 _ACEOF
20821 cat >>$CONFIG_STATUS <<_ACEOF
20822 if \$ac_cs_recheck; then
20823 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20824 CONFIG_SHELL=$SHELL
20825 export CONFIG_SHELL
20826 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20829 _ACEOF
20830 cat >>$CONFIG_STATUS <<\_ACEOF
20831 exec 5>>config.log
20833 echo
20834 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20835 ## Running $as_me. ##
20836 _ASBOX
20837 echo "$ac_log"
20838 } >&5
20840 _ACEOF
20841 cat >>$CONFIG_STATUS <<_ACEOF
20842 _ACEOF
20844 cat >>$CONFIG_STATUS <<\_ACEOF
20846 # Handling of arguments.
20847 for ac_config_target in $ac_config_targets
20849 case $ac_config_target in
20850 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20851 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
20852 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
20853 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
20854 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
20855 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
20856 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
20857 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20858 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20859 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20860 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
20861 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20862 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20863 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20864 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20865 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
20866 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20867 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20868 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20869 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
20870 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20871 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20872 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20873 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20874 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20875 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
20876 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20877 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20878 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20879 "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
20880 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20881 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
20882 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20883 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20884 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
20885 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
20886 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
20887 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20888 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20889 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
20890 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
20891 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
20892 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
20893 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20894 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
20895 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20896 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
20897 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20898 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20899 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20900 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20901 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20902 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20903 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20904 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20905 "dlls/ddrawex/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddrawex/Makefile" ;;
20906 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20907 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20908 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
20909 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20910 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20911 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20912 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20913 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20914 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20915 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20916 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20917 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20918 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20919 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
20920 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
20921 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20922 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20923 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20924 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20925 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20926 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20927 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20928 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20929 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20930 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20931 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20932 "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
20933 "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
20934 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20935 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
20936 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20937 "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
20938 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
20939 "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
20940 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20941 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20942 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20943 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
20944 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20945 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20946 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
20947 "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
20948 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
20949 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20950 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20951 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20952 "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
20953 "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
20954 "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
20955 "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
20956 "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
20957 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
20958 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
20959 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20960 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20961 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
20962 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
20963 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
20964 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
20965 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
20966 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20967 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20968 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20969 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20970 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20971 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
20972 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
20973 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
20974 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
20975 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
20976 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20977 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20978 "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
20979 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20980 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
20981 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
20982 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20983 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
20984 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20985 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
20986 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20987 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
20988 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20989 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20990 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20991 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20992 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20993 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20994 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20995 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20996 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
20997 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20998 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20999 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
21000 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
21001 "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
21002 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
21003 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
21004 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
21005 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
21006 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
21007 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
21008 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
21009 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
21010 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
21011 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
21012 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21013 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21014 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21015 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21016 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21017 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21018 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21019 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
21020 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
21021 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
21022 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21023 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
21024 "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
21025 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
21026 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21027 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
21028 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
21029 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
21030 "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
21031 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21032 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21033 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21034 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21035 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21036 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21037 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21038 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21039 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21040 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
21041 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21042 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21043 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21044 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21045 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
21046 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21047 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21048 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
21049 "dlls/shdoclc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdoclc/Makefile" ;;
21050 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21051 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21052 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21053 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21054 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21055 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21056 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21057 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
21058 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
21059 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21060 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21061 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21062 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
21063 "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
21064 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21065 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21066 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21067 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21068 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21069 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
21070 "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;;
21071 "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;;
21072 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
21073 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21074 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21075 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21076 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
21077 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
21078 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21079 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21080 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21081 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21082 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21083 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21084 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21085 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21086 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21087 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
21088 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21089 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21090 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
21091 "dlls/winejoystick.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejoystick.drv/Makefile" ;;
21092 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
21093 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
21094 "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
21095 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
21096 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21097 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
21098 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
21099 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
21100 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
21101 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
21102 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
21103 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
21104 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
21105 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
21106 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
21107 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
21108 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
21109 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
21110 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
21111 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
21112 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
21113 "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
21114 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
21115 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
21116 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
21117 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
21118 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
21119 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
21120 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
21121 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
21122 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
21123 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21124 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
21125 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
21126 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
21127 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
21128 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
21129 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21130 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
21131 "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
21132 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21133 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
21134 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
21135 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
21136 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
21137 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
21138 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
21139 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
21140 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
21141 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
21142 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
21143 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
21144 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
21145 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
21146 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
21147 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
21148 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
21149 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
21150 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21151 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
21152 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21153 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21154 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21155 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21156 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
21157 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21158 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21159 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21160 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21161 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21162 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21163 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21164 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21165 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
21166 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21167 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21168 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21169 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21170 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21171 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21172 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21173 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21175 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21176 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21177 { (exit 1); exit 1; }; };;
21178 esac
21179 done
21182 # If the user did not use the arguments to specify the items to instantiate,
21183 # then the envvar interface is used. Set only those that are not.
21184 # We use the long form for the default assignment because of an extremely
21185 # bizarre bug on SunOS 4.1.3.
21186 if $ac_need_defaults; then
21187 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21188 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21189 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21192 # Have a temporary directory for convenience. Make it in the build tree
21193 # simply because there is no reason against having it here, and in addition,
21194 # creating and moving files from /tmp can sometimes cause problems.
21195 # Hook for its removal unless debugging.
21196 # Note that there is a small window in which the directory will not be cleaned:
21197 # after its creation but before its name has been assigned to `$tmp'.
21198 $debug ||
21200 tmp=
21201 trap 'exit_status=$?
21202 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21204 trap '{ (exit 1); exit 1; }' 1 2 13 15
21206 # Create a (secure) tmp directory for tmp files.
21209 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21210 test -n "$tmp" && test -d "$tmp"
21211 } ||
21213 tmp=./conf$$-$RANDOM
21214 (umask 077 && mkdir "$tmp")
21215 } ||
21217 echo "$me: cannot create a temporary directory in ." >&2
21218 { (exit 1); exit 1; }
21222 # Set up the sed scripts for CONFIG_FILES section.
21225 # No need to generate the scripts if there are no CONFIG_FILES.
21226 # This happens for instance when ./config.status config.h
21227 if test -n "$CONFIG_FILES"; then
21229 _ACEOF
21231 # Create sed commands to just substitute file output variables.
21233 # Remaining file output variables are in a fragment that also has non-file
21234 # output varibles.
21238 ac_delim='%!_!# '
21239 for ac_last_try in false false false false false :; do
21240 cat >conf$$subs.sed <<_ACEOF
21241 SHELL!$SHELL$ac_delim
21242 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21243 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21244 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21245 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21246 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21247 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21248 exec_prefix!$exec_prefix$ac_delim
21249 prefix!$prefix$ac_delim
21250 program_transform_name!$program_transform_name$ac_delim
21251 bindir!$bindir$ac_delim
21252 sbindir!$sbindir$ac_delim
21253 libexecdir!$libexecdir$ac_delim
21254 datarootdir!$datarootdir$ac_delim
21255 datadir!$datadir$ac_delim
21256 sysconfdir!$sysconfdir$ac_delim
21257 sharedstatedir!$sharedstatedir$ac_delim
21258 localstatedir!$localstatedir$ac_delim
21259 includedir!$includedir$ac_delim
21260 oldincludedir!$oldincludedir$ac_delim
21261 docdir!$docdir$ac_delim
21262 infodir!$infodir$ac_delim
21263 htmldir!$htmldir$ac_delim
21264 dvidir!$dvidir$ac_delim
21265 pdfdir!$pdfdir$ac_delim
21266 psdir!$psdir$ac_delim
21267 libdir!$libdir$ac_delim
21268 localedir!$localedir$ac_delim
21269 mandir!$mandir$ac_delim
21270 DEFS!$DEFS$ac_delim
21271 ECHO_C!$ECHO_C$ac_delim
21272 ECHO_N!$ECHO_N$ac_delim
21273 ECHO_T!$ECHO_T$ac_delim
21274 LIBS!$LIBS$ac_delim
21275 build_alias!$build_alias$ac_delim
21276 host_alias!$host_alias$ac_delim
21277 target_alias!$target_alias$ac_delim
21278 build!$build$ac_delim
21279 build_cpu!$build_cpu$ac_delim
21280 build_vendor!$build_vendor$ac_delim
21281 build_os!$build_os$ac_delim
21282 host!$host$ac_delim
21283 host_cpu!$host_cpu$ac_delim
21284 host_vendor!$host_vendor$ac_delim
21285 host_os!$host_os$ac_delim
21286 WIN16_FILES!$WIN16_FILES$ac_delim
21287 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
21288 SET_MAKE!$SET_MAKE$ac_delim
21289 CC!$CC$ac_delim
21290 CFLAGS!$CFLAGS$ac_delim
21291 LDFLAGS!$LDFLAGS$ac_delim
21292 CPPFLAGS!$CPPFLAGS$ac_delim
21293 ac_ct_CC!$ac_ct_CC$ac_delim
21294 EXEEXT!$EXEEXT$ac_delim
21295 OBJEXT!$OBJEXT$ac_delim
21296 CXX!$CXX$ac_delim
21297 CXXFLAGS!$CXXFLAGS$ac_delim
21298 ac_ct_CXX!$ac_ct_CXX$ac_delim
21299 CPPBIN!$CPPBIN$ac_delim
21300 TOOLSDIR!$TOOLSDIR$ac_delim
21301 XMKMF!$XMKMF$ac_delim
21302 CPP!$CPP$ac_delim
21303 X_CFLAGS!$X_CFLAGS$ac_delim
21304 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
21305 X_LIBS!$X_LIBS$ac_delim
21306 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
21307 LEX!$LEX$ac_delim
21308 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
21309 LEXLIB!$LEXLIB$ac_delim
21310 XLEX!$XLEX$ac_delim
21311 BISON!$BISON$ac_delim
21312 AS!$AS$ac_delim
21313 ac_ct_AS!$ac_ct_AS$ac_delim
21314 LD!$LD$ac_delim
21315 AR!$AR$ac_delim
21316 RANLIB!$RANLIB$ac_delim
21317 STRIP!$STRIP$ac_delim
21318 WINDRES!$WINDRES$ac_delim
21319 LN_S!$LN_S$ac_delim
21320 LN!$LN$ac_delim
21321 GREP!$GREP$ac_delim
21322 EGREP!$EGREP$ac_delim
21323 _ACEOF
21325 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
21326 break
21327 elif $ac_last_try; then
21328 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21329 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21330 { (exit 1); exit 1; }; }
21331 else
21332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21334 done
21336 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21337 if test -n "$ac_eof"; then
21338 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21339 ac_eof=`expr $ac_eof + 1`
21342 cat >>$CONFIG_STATUS <<_ACEOF
21343 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21345 /^[ ]*@MAKE_RULES@[ ]*$/{
21346 r $MAKE_RULES
21349 /^[ ]*@MAKE_DLL_RULES@[ ]*$/{
21350 r $MAKE_DLL_RULES
21353 /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
21354 r $MAKE_IMPLIB_RULES
21357 /^[ ]*@MAKE_TEST_RULES@[ ]*$/{
21358 r $MAKE_TEST_RULES
21361 /^[ ]*@MAKE_PROG_RULES@[ ]*$/{
21362 r $MAKE_PROG_RULES
21365 _ACEOF
21366 sed '
21367 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21368 s/^/s,@/; s/!/@,|#_!!_#|/
21371 s/'"$ac_delim"'$/,g/; t
21372 s/$/\\/; p
21373 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21374 ' >>$CONFIG_STATUS <conf$$subs.sed
21375 rm -f conf$$subs.sed
21376 cat >>$CONFIG_STATUS <<_ACEOF
21377 CEOF$ac_eof
21378 _ACEOF
21381 ac_delim='%!_!# '
21382 for ac_last_try in false false false false false :; do
21383 cat >conf$$subs.sed <<_ACEOF
21384 LDCONFIG!$LDCONFIG$ac_delim
21385 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21386 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21387 INSTALL_DATA!$INSTALL_DATA$ac_delim
21388 LINT!$LINT$ac_delim
21389 LINTFLAGS!$LINTFLAGS$ac_delim
21390 FONTFORGE!$FONTFORGE$ac_delim
21391 PKG_CONFIG!$PKG_CONFIG$ac_delim
21392 PRELINK!$PRELINK$ac_delim
21393 LIBPTHREAD!$LIBPTHREAD$ac_delim
21394 XLIB!$XLIB$ac_delim
21395 XFILES!$XFILES$ac_delim
21396 OPENGLFILES!$OPENGLFILES$ac_delim
21397 GLU32FILES!$GLU32FILES$ac_delim
21398 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
21399 QUARTZFILES!$QUARTZFILES$ac_delim
21400 NASLIBS!$NASLIBS$ac_delim
21401 XML2LIBS!$XML2LIBS$ac_delim
21402 XML2INCL!$XML2INCL$ac_delim
21403 XSLTLIBS!$XSLTLIBS$ac_delim
21404 XSLTINCL!$XSLTINCL$ac_delim
21405 HALINCL!$HALINCL$ac_delim
21406 sane_devel!$sane_devel$ac_delim
21407 SANELIBS!$SANELIBS$ac_delim
21408 SANEINCL!$SANEINCL$ac_delim
21409 gphoto2_devel!$gphoto2_devel$ac_delim
21410 gphoto2port_devel!$gphoto2port_devel$ac_delim
21411 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
21412 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
21413 ICULIBS!$ICULIBS$ac_delim
21414 RESOLVLIBS!$RESOLVLIBS$ac_delim
21415 LCMSLIBS!$LCMSLIBS$ac_delim
21416 LDAPLIBS!$LDAPLIBS$ac_delim
21417 FREETYPELIBS!$FREETYPELIBS$ac_delim
21418 FREETYPEINCL!$FREETYPEINCL$ac_delim
21419 ft_devel!$ft_devel$ac_delim
21420 ft_devel2!$ft_devel2$ac_delim
21421 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
21422 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
21423 ARTSLIBS!$ARTSLIBS$ac_delim
21424 ARTSINCL!$ARTSINCL$ac_delim
21425 ESDCONFIG!$ESDCONFIG$ac_delim
21426 ESDLIBS!$ESDLIBS$ac_delim
21427 ESDINCL!$ESDINCL$ac_delim
21428 ALSALIBS!$ALSALIBS$ac_delim
21429 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
21430 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
21431 BUILTINFLAG!$BUILTINFLAG$ac_delim
21432 DLLEXT!$DLLEXT$ac_delim
21433 DLLFLAGS!$DLLFLAGS$ac_delim
21434 LDSHARED!$LDSHARED$ac_delim
21435 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
21436 LIBEXT!$LIBEXT$ac_delim
21437 IMPLIBEXT!$IMPLIBEXT$ac_delim
21438 LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim
21439 DLLTOOL!$DLLTOOL$ac_delim
21440 DLLWRAP!$DLLWRAP$ac_delim
21441 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
21442 IOKITLIB!$IOKITLIB$ac_delim
21443 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
21444 DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
21445 COREAUDIO!$COREAUDIO$ac_delim
21446 CARBONLIB!$CARBONLIB$ac_delim
21447 CROSSTEST!$CROSSTEST$ac_delim
21448 CROSSCC!$CROSSCC$ac_delim
21449 CROSSWINDRES!$CROSSWINDRES$ac_delim
21450 LDPATH!$LDPATH$ac_delim
21451 CRTLIBS!$CRTLIBS$ac_delim
21452 SOCKETLIBS!$SOCKETLIBS$ac_delim
21453 MAIN_BINARY!$MAIN_BINARY$ac_delim
21454 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
21455 LDD!$LDD$ac_delim
21456 LIBDL!$LIBDL$ac_delim
21457 LIBPOLL!$LIBPOLL$ac_delim
21458 DEPENDENCIES!$DEPENDENCIES$ac_delim
21459 LIBOBJS!$LIBOBJS$ac_delim
21460 LTLIBOBJS!$LTLIBOBJS$ac_delim
21461 _ACEOF
21463 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
21464 break
21465 elif $ac_last_try; then
21466 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21467 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21468 { (exit 1); exit 1; }; }
21469 else
21470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21472 done
21474 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21475 if test -n "$ac_eof"; then
21476 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21477 ac_eof=`expr $ac_eof + 1`
21480 cat >>$CONFIG_STATUS <<_ACEOF
21481 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21483 _ACEOF
21484 sed '
21485 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21486 s/^/s,@/; s/!/@,|#_!!_#|/
21489 s/'"$ac_delim"'$/,g/; t
21490 s/$/\\/; p
21491 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21492 ' >>$CONFIG_STATUS <conf$$subs.sed
21493 rm -f conf$$subs.sed
21494 cat >>$CONFIG_STATUS <<_ACEOF
21495 :end
21496 s/|#_!!_#|//g
21497 CEOF$ac_eof
21498 _ACEOF
21501 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21502 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21503 # trailing colons and then remove the whole line if VPATH becomes empty
21504 # (actually we leave an empty line to preserve line numbers).
21505 if test "x$srcdir" = x.; then
21506 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21507 s/:*\$(srcdir):*/:/
21508 s/:*\${srcdir}:*/:/
21509 s/:*@srcdir@:*/:/
21510 s/^\([^=]*=[ ]*\):*/\1/
21511 s/:*$//
21512 s/^[^=]*=[ ]*$//
21516 cat >>$CONFIG_STATUS <<\_ACEOF
21517 fi # test -n "$CONFIG_FILES"
21520 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21522 case $ac_tag in
21523 :[FHLC]) ac_mode=$ac_tag; continue;;
21524 esac
21525 case $ac_mode$ac_tag in
21526 :[FHL]*:*);;
21527 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21528 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21529 { (exit 1); exit 1; }; };;
21530 :[FH]-) ac_tag=-:-;;
21531 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21532 esac
21533 ac_save_IFS=$IFS
21534 IFS=:
21535 set x $ac_tag
21536 IFS=$ac_save_IFS
21537 shift
21538 ac_file=$1
21539 shift
21541 case $ac_mode in
21542 :L) ac_source=$1;;
21543 :[FH])
21544 ac_file_inputs=
21545 for ac_f
21547 case $ac_f in
21548 -) ac_f="$tmp/stdin";;
21549 *) # Look for the file first in the build tree, then in the source tree
21550 # (if the path is not absolute). The absolute path cannot be DOS-style,
21551 # because $ac_f cannot contain `:'.
21552 test -f "$ac_f" ||
21553 case $ac_f in
21554 [\\/$]*) false;;
21555 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21556 esac ||
21557 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21558 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21559 { (exit 1); exit 1; }; };;
21560 esac
21561 ac_file_inputs="$ac_file_inputs $ac_f"
21562 done
21564 # Let's still pretend it is `configure' which instantiates (i.e., don't
21565 # use $as_me), people would be surprised to read:
21566 # /* config.h. Generated by config.status. */
21567 configure_input="Generated from "`IFS=:
21568 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21569 if test x"$ac_file" != x-; then
21570 configure_input="$ac_file. $configure_input"
21571 { echo "$as_me:$LINENO: creating $ac_file" >&5
21572 echo "$as_me: creating $ac_file" >&6;}
21575 case $ac_tag in
21576 *:-:* | *:-) cat >"$tmp/stdin";;
21577 esac
21579 esac
21581 ac_dir=`$as_dirname -- "$ac_file" ||
21582 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21583 X"$ac_file" : 'X\(//\)[^/]' \| \
21584 X"$ac_file" : 'X\(//\)$' \| \
21585 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21586 echo X"$ac_file" |
21587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21588 s//\1/
21591 /^X\(\/\/\)[^/].*/{
21592 s//\1/
21595 /^X\(\/\/\)$/{
21596 s//\1/
21599 /^X\(\/\).*/{
21600 s//\1/
21603 s/.*/./; q'`
21604 { as_dir="$ac_dir"
21605 case $as_dir in #(
21606 -*) as_dir=./$as_dir;;
21607 esac
21608 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21609 as_dirs=
21610 while :; do
21611 case $as_dir in #(
21612 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21613 *) as_qdir=$as_dir;;
21614 esac
21615 as_dirs="'$as_qdir' $as_dirs"
21616 as_dir=`$as_dirname -- "$as_dir" ||
21617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21618 X"$as_dir" : 'X\(//\)[^/]' \| \
21619 X"$as_dir" : 'X\(//\)$' \| \
21620 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21621 echo X"$as_dir" |
21622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21623 s//\1/
21626 /^X\(\/\/\)[^/].*/{
21627 s//\1/
21630 /^X\(\/\/\)$/{
21631 s//\1/
21634 /^X\(\/\).*/{
21635 s//\1/
21638 s/.*/./; q'`
21639 test -d "$as_dir" && break
21640 done
21641 test -z "$as_dirs" || eval "mkdir $as_dirs"
21642 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21643 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21644 { (exit 1); exit 1; }; }; }
21645 ac_builddir=.
21647 case "$ac_dir" in
21648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21651 # A ".." for each directory in $ac_dir_suffix.
21652 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21653 case $ac_top_builddir_sub in
21654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21656 esac ;;
21657 esac
21658 ac_abs_top_builddir=$ac_pwd
21659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21660 # for backward compatibility:
21661 ac_top_builddir=$ac_top_build_prefix
21663 case $srcdir in
21664 .) # We are building in place.
21665 ac_srcdir=.
21666 ac_top_srcdir=$ac_top_builddir_sub
21667 ac_abs_top_srcdir=$ac_pwd ;;
21668 [\\/]* | ?:[\\/]* ) # Absolute name.
21669 ac_srcdir=$srcdir$ac_dir_suffix;
21670 ac_top_srcdir=$srcdir
21671 ac_abs_top_srcdir=$srcdir ;;
21672 *) # Relative name.
21673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21674 ac_top_srcdir=$ac_top_build_prefix$srcdir
21675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21676 esac
21677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21680 case $ac_mode in
21683 # CONFIG_FILE
21686 case $INSTALL in
21687 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21688 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21689 esac
21690 _ACEOF
21692 cat >>$CONFIG_STATUS <<\_ACEOF
21693 # If the template does not know about datarootdir, expand it.
21694 # FIXME: This hack should be removed a few years after 2.60.
21695 ac_datarootdir_hack=; ac_datarootdir_seen=
21697 case `sed -n '/datarootdir/ {
21701 /@datadir@/p
21702 /@docdir@/p
21703 /@infodir@/p
21704 /@localedir@/p
21705 /@mandir@/p
21706 ' $ac_file_inputs` in
21707 *datarootdir*) ac_datarootdir_seen=yes;;
21708 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21709 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21710 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21711 _ACEOF
21712 cat >>$CONFIG_STATUS <<_ACEOF
21713 ac_datarootdir_hack='
21714 s&@datadir@&$datadir&g
21715 s&@docdir@&$docdir&g
21716 s&@infodir@&$infodir&g
21717 s&@localedir@&$localedir&g
21718 s&@mandir@&$mandir&g
21719 s&\\\${datarootdir}&$datarootdir&g' ;;
21720 esac
21721 _ACEOF
21723 # Neutralize VPATH when `$srcdir' = `.'.
21724 # Shell code in configure.ac might set extrasub.
21725 # FIXME: do we really want to maintain this feature?
21726 cat >>$CONFIG_STATUS <<_ACEOF
21727 sed "$ac_vpsub
21728 $extrasub
21729 _ACEOF
21730 cat >>$CONFIG_STATUS <<\_ACEOF
21732 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21733 s&@configure_input@&$configure_input&;t t
21734 s&@top_builddir@&$ac_top_builddir_sub&;t t
21735 s&@srcdir@&$ac_srcdir&;t t
21736 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21737 s&@top_srcdir@&$ac_top_srcdir&;t t
21738 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21739 s&@builddir@&$ac_builddir&;t t
21740 s&@abs_builddir@&$ac_abs_builddir&;t t
21741 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21742 s&@INSTALL@&$ac_INSTALL&;t t
21743 $ac_datarootdir_hack
21744 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21746 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21747 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21748 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21749 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21750 which seems to be undefined. Please make sure it is defined." >&5
21751 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21752 which seems to be undefined. Please make sure it is defined." >&2;}
21754 rm -f "$tmp/stdin"
21755 case $ac_file in
21756 -) cat "$tmp/out"; rm -f "$tmp/out";;
21757 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21758 esac
21762 # CONFIG_HEADER
21764 _ACEOF
21766 # Transform confdefs.h into a sed script `conftest.defines', that
21767 # substitutes the proper values into config.h.in to produce config.h.
21768 rm -f conftest.defines conftest.tail
21769 # First, append a space to every undef/define line, to ease matching.
21770 echo 's/$/ /' >conftest.defines
21771 # Then, protect against being on the right side of a sed subst, or in
21772 # an unquoted here document, in config.status. If some macros were
21773 # called several times there might be several #defines for the same
21774 # symbol, which is useless. But do not sort them, since the last
21775 # AC_DEFINE must be honored.
21776 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21777 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21778 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21779 # PARAMS is the parameter list in the macro definition--in most cases, it's
21780 # just an empty string.
21781 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21782 ac_dB='\\)[ (].*,\\1define\\2'
21783 ac_dC=' '
21784 ac_dD=' ,'
21786 uniq confdefs.h |
21787 sed -n '
21788 t rset
21789 :rset
21790 s/^[ ]*#[ ]*define[ ][ ]*//
21791 t ok
21794 s/[\\&,]/\\&/g
21795 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21796 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21797 ' >>conftest.defines
21799 # Remove the space that was appended to ease matching.
21800 # Then replace #undef with comments. This is necessary, for
21801 # example, in the case of _POSIX_SOURCE, which is predefined and required
21802 # on some systems where configure will not decide to define it.
21803 # (The regexp can be short, since the line contains either #define or #undef.)
21804 echo 's/ $//
21805 s,^[ #]*u.*,/* & */,' >>conftest.defines
21807 # Break up conftest.defines:
21808 ac_max_sed_lines=50
21810 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21811 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21812 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21813 # et cetera.
21814 ac_in='$ac_file_inputs'
21815 ac_out='"$tmp/out1"'
21816 ac_nxt='"$tmp/out2"'
21818 while :
21820 # Write a here document:
21821 cat >>$CONFIG_STATUS <<_ACEOF
21822 # First, check the format of the line:
21823 cat >"\$tmp/defines.sed" <<\\CEOF
21824 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21825 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21827 :def
21828 _ACEOF
21829 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21830 echo 'CEOF
21831 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21832 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21833 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21834 grep . conftest.tail >/dev/null || break
21835 rm -f conftest.defines
21836 mv conftest.tail conftest.defines
21837 done
21838 rm -f conftest.defines conftest.tail
21840 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21841 cat >>$CONFIG_STATUS <<\_ACEOF
21842 if test x"$ac_file" != x-; then
21843 echo "/* $configure_input */" >"$tmp/config.h"
21844 cat "$ac_result" >>"$tmp/config.h"
21845 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21846 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21847 echo "$as_me: $ac_file is unchanged" >&6;}
21848 else
21849 rm -f $ac_file
21850 mv "$tmp/config.h" $ac_file
21852 else
21853 echo "/* $configure_input */"
21854 cat "$ac_result"
21856 rm -f "$tmp/out12"
21859 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21860 echo "$as_me: executing $ac_file commands" >&6;}
21862 esac
21865 case $ac_file$ac_mode in
21866 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
21867 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
21868 echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
21869 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
21870 echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
21871 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
21872 echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
21873 "dlls/user32/resources":C) test -d "dlls/user32/resources" || ({ echo "$as_me:$LINENO: creating dlls/user32/resources" >&5
21874 echo "$as_me: creating dlls/user32/resources" >&6;} && mkdir "dlls/user32/resources") ;;
21875 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
21876 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
21877 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21878 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21880 esac
21881 done # for ac_tag
21884 { (exit 0); exit 0; }
21885 _ACEOF
21886 chmod +x $CONFIG_STATUS
21887 ac_clean_files=$ac_clean_files_save
21890 # configure is writing to config.log, and then calls config.status.
21891 # config.status does its own redirection, appending to config.log.
21892 # Unfortunately, on DOS this fails, as config.log is still kept open
21893 # by configure, so config.status won't be able to write to it; its
21894 # output is simply discarded. So we exec the FD to /dev/null,
21895 # effectively closing config.log, so it can be properly (re)opened and
21896 # appended to by config.status. When coming back to configure, we
21897 # need to make the FD available again.
21898 if test "$no_create" != yes; then
21899 ac_cs_success=:
21900 ac_config_status_args=
21901 test "$silent" = yes &&
21902 ac_config_status_args="$ac_config_status_args --quiet"
21903 exec 5>/dev/null
21904 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21905 exec 5>>config.log
21906 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21907 # would make configure fail if this is the last instruction.
21908 $ac_cs_success || { (exit 1); exit 1; }
21913 if test "$no_create" = "yes"
21914 then
21915 exit 0
21918 if test "$verbose" = "yes"
21919 then
21920 if test "$ac_cv_header_capi20_h" != "yes" -o "$ac_cv_header_linux_capi_h" != "yes"
21921 then
21922 echo >&2
21923 { echo "$as_me:$LINENO: libcapi20 development files not found." >&5
21924 echo "$as_me: libcapi20 development files not found." >&6;}
21925 { echo "$as_me:$LINENO: Wine will be built without ISDN support. (capi2032.dll)" >&5
21926 echo "$as_me: Wine will be built without ISDN support. (capi2032.dll)" >&6;}
21929 if test "$ac_cv_header_cups_cups_h" != "yes"
21930 then
21931 echo >&2
21932 { echo "$as_me:$LINENO: libcups development files not found." >&5
21933 echo "$as_me: libcups development files not found." >&6;}
21934 { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
21935 echo "$as_me: Wine will be built without CUPS support." >&6;}
21939 if test "$ac_cv_header_gphoto2_camera_h" != "yes"
21940 then
21941 echo >&2
21942 { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
21943 echo "$as_me: libgphoto2 development files not found." >&6;}
21944 if test "$ac_cv_header_sane_sane_h" = "yes"
21945 then
21946 { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
21947 echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
21948 else
21949 { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
21950 echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
21954 if test "$ac_cv_header_hal_libhal_h" != "yes"
21955 then
21956 echo >&2
21957 { echo "$as_me:$LINENO: libhal development files not found." >&5
21958 echo "$as_me: libhal development files not found." >&6;}
21959 { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
21960 echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
21963 if test "$ac_cv_header_unicode_ubidi_h" != "yes"
21964 then
21965 echo >&2
21966 { echo "$as_me:$LINENO: libicu development files not found." >&5
21967 echo "$as_me: libicu development files not found." >&6;}
21968 { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
21969 echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
21972 if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
21973 then
21974 echo >&2
21975 { echo "$as_me:$LINENO: liblcms development files not found." >&5
21976 echo "$as_me: liblcms development files not found." >&6;}
21977 { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
21978 echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
21981 if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
21982 then
21983 echo >&2
21984 { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
21985 echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
21986 { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
21987 echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
21990 if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
21991 then
21992 echo >&2
21993 { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
21994 echo "$as_me: lib(n)curses development files not found." >&6;}
21995 { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
21996 echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
21999 if test "$ac_cv_header_sane_sane_h" != "yes"
22000 then
22001 echo >&2
22002 { echo "$as_me:$LINENO: libsane development files not found." >&5
22003 echo "$as_me: libsane development files not found." >&6;}
22004 { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
22005 echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
22008 if test "$have_x" = "yes"
22009 then
22010 if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
22011 then
22012 echo >&2
22013 { echo "$as_me:$LINENO: libxext development files not found." >&5
22014 echo "$as_me: libxext development files not found." >&6;}
22015 { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
22016 echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
22019 if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
22020 then
22021 echo >&2
22022 { echo "$as_me:$LINENO: libXrandr development files not found." >&5
22023 echo "$as_me: libXrandr development files not found." >&6;}
22024 { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
22025 echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
22028 if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
22029 then
22030 echo >&2
22031 { echo "$as_me:$LINENO: libXrender development files not found." >&5
22032 echo "$as_me: libXrender development files not found." >&6;}
22033 { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
22034 echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
22037 if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
22038 then
22039 echo >&2
22040 { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
22041 echo "$as_me: libXxf86vm development files not found." >&6;}
22042 { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
22043 echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
22047 if test "$ac_cv_header_libxml_parser_h" != "yes"
22048 then
22049 echo >&2
22050 { echo "$as_me:$LINENO: libxml2 development files not found." >&5
22051 echo "$as_me: libxml2 development files not found." >&6;}
22052 { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
22053 echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
22056 if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
22057 then
22058 echo >&2
22059 { echo "$as_me:$LINENO: libxslt development files not found." >&5
22060 echo "$as_me: libxslt development files not found." >&6;}
22061 { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
22062 echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
22067 if test "$have_x" = "no"
22068 then
22069 echo >&2
22070 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
22071 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
22072 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
22073 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
22074 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
22075 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
22076 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
22077 echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
22080 if test -z "$OPENGLFILES"
22081 then
22082 echo >&2
22083 { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
22084 echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
22085 { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
22086 echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
22087 if test "$wine_cv_opengl_headers_found" = "no"
22088 then
22089 { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
22090 echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
22092 if test "$wine_cv_opengl_header_version_OK" = "no"
22093 then
22094 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
22095 echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
22096 elif test "$ac_cv_lib_GL_glXCreateContext" = "no"
22097 then
22098 if test -f /usr/X11R6/lib/libGL.a
22099 then
22100 { echo "$as_me:$LINENO: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22101 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&5
22102 echo "$as_me: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22103 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&2;}
22104 else
22105 { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
22106 echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
22111 if test "$wine_cv_msg_freetype" = "yes"
22112 then
22113 echo >&2
22114 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
22115 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
22116 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
22117 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
22118 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
22119 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
22120 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
22121 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
22124 if test -z "$FONTSSUBDIRS"
22125 then
22126 echo >&2
22127 if test "$FONTFORGE" = "false"
22128 then
22129 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
22130 echo "$as_me: WARNING: FontForge is missing." >&2;}
22131 else
22132 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
22133 echo "$as_me: WARNING: FreeType is missing." >&2;}
22135 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
22136 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
22139 if test -z "$ALSALIBS" -a \
22140 -z "$ARTSC_LIBS" -a \
22141 -z "$AUDIOIOLIBS" -a \
22142 -z "$NASLIBS" -a \
22143 -z "$ESD_LIBS" -a \
22144 -z "$ac_cv_lib_soname_jack" -a \
22145 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
22146 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
22147 "$ac_cv_header_soundcard_h" != "yes"
22148 then
22149 echo >&2
22150 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
22151 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
22152 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
22153 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
22154 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
22155 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
22158 echo
22159 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
22160 echo