winecoreaudio: Add AudioUnit_CreateInputUnit to create an input audio unit.
[wine/wine64.git] / configure
blob6e7728fad2bbb26d307d48ebfbe820b8b7f7c07c
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
7031 for ac_header in \
7032 AudioUnit/AudioUnit.h \
7033 Carbon/Carbon.h \
7034 CoreAudio/CoreAudio.h \
7035 DiskArbitration/DiskArbitration.h \
7036 IOKit/IOKitLib.h \
7037 alsa/asoundlib.h \
7038 arpa/inet.h \
7039 arpa/nameser.h \
7040 asm/types.h \
7041 capi20.h \
7042 cups/cups.h \
7043 curses.h \
7044 direct.h \
7045 dlfcn.h \
7046 elf.h \
7047 float.h \
7048 fontconfig/fontconfig.h \
7049 getopt.h \
7050 ieeefp.h \
7051 io.h \
7052 jack/jack.h \
7053 jpeglib.h \
7054 lber.h \
7055 lcms.h \
7056 lcms/lcms.h \
7057 ldap.h \
7058 libaudioio.h \
7059 link.h \
7060 linux/cdrom.h \
7061 linux/compiler.h \
7062 linux/hdreg.h \
7063 linux/input.h \
7064 linux/ioctl.h \
7065 linux/joystick.h \
7066 linux/major.h \
7067 linux/param.h \
7068 linux/serial.h \
7069 linux/ucdrom.h \
7070 mach/machine.h \
7071 machine/cpu.h \
7072 machine/limits.h \
7073 machine/soundcard.h \
7074 mntent.h \
7075 ncurses.h \
7076 netdb.h \
7077 netinet/in.h \
7078 netinet/in_systm.h \
7079 netinet/tcp.h \
7080 netinet/tcp_fsm.h \
7081 openssl/err.h \
7082 openssl/ssl.h \
7083 poll.h \
7084 process.h \
7085 pthread.h \
7086 pwd.h \
7087 regex.h \
7088 sched.h \
7089 scsi/scsi.h \
7090 scsi/scsi_ioctl.h \
7091 scsi/sg.h \
7092 soundcard.h \
7093 stdint.h \
7094 strings.h \
7095 sys/asoundlib.h \
7096 sys/cdio.h \
7097 sys/elf32.h \
7098 sys/epoll.h \
7099 sys/errno.h \
7100 sys/event.h \
7101 sys/exec_elf.h \
7102 sys/filio.h \
7103 sys/ioctl.h \
7104 sys/ipc.h \
7105 sys/limits.h \
7106 sys/link.h \
7107 sys/lwp.h \
7108 sys/mman.h \
7109 sys/modem.h \
7110 sys/msg.h \
7111 sys/mtio.h \
7112 sys/param.h \
7113 sys/poll.h \
7114 sys/prctl.h \
7115 sys/ptrace.h \
7116 sys/reg.h \
7117 sys/resource.h \
7118 sys/scsiio.h \
7119 sys/shm.h \
7120 sys/signal.h \
7121 sys/socket.h \
7122 sys/sockio.h \
7123 sys/soundcard.h \
7124 sys/statvfs.h \
7125 sys/strtio.h \
7126 sys/syscall.h \
7127 sys/sysctl.h \
7128 sys/time.h \
7129 sys/times.h \
7130 sys/uio.h \
7131 sys/un.h \
7132 sys/vm86.h \
7133 sys/wait.h \
7134 syscall.h \
7135 termios.h \
7136 unicode/ubidi.h \
7137 unistd.h \
7138 utime.h \
7139 valgrind/memcheck.h
7142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 ac_res=`eval echo '${'$as_ac_Header'}'`
7150 { echo "$as_me:$LINENO: result: $ac_res" >&5
7151 echo "${ECHO_T}$ac_res" >&6; }
7152 else
7153 # Is the header compilable?
7154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 $ac_includes_default
7163 #include <$ac_header>
7164 _ACEOF
7165 rm -f conftest.$ac_objext
7166 if { (ac_try="$ac_compile"
7167 case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170 esac
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_compile") 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest.$ac_objext; then
7182 ac_header_compiler=yes
7183 else
7184 echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7187 ac_header_compiler=no
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7192 echo "${ECHO_T}$ac_header_compiler" >&6; }
7194 # Is the header present?
7195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7197 cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h. */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 #include <$ac_header>
7204 _ACEOF
7205 if { (ac_try="$ac_cpp conftest.$ac_ext"
7206 case "(($ac_try" in
7207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208 *) ac_try_echo=$ac_try;;
7209 esac
7210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } >/dev/null && {
7218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7219 test ! -s conftest.err
7220 }; then
7221 ac_header_preproc=yes
7222 else
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7226 ac_header_preproc=no
7229 rm -f conftest.err conftest.$ac_ext
7230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7231 echo "${ECHO_T}$ac_header_preproc" >&6; }
7233 # So? What about this header?
7234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7235 yes:no: )
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7240 ac_header_preproc=yes
7242 no:yes:* )
7243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7255 ( cat <<\_ASBOX
7256 ## ------------------------------------ ##
7257 ## Report this to wine-devel@winehq.org ##
7258 ## ------------------------------------ ##
7259 _ASBOX
7260 ) | sed "s/^/$as_me: WARNING: /" >&2
7262 esac
7263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 eval "$as_ac_Header=\$ac_header_preproc"
7270 ac_res=`eval echo '${'$as_ac_Header'}'`
7271 { echo "$as_me:$LINENO: result: $ac_res" >&5
7272 echo "${ECHO_T}$ac_res" >&6; }
7275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7276 cat >>confdefs.h <<_ACEOF
7277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7278 _ACEOF
7282 done
7284 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7285 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7286 if test "${ac_cv_header_stat_broken+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h. */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295 #include <sys/types.h>
7296 #include <sys/stat.h>
7298 #if defined S_ISBLK && defined S_IFDIR
7299 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7300 #endif
7302 #if defined S_ISBLK && defined S_IFCHR
7303 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7304 #endif
7306 #if defined S_ISLNK && defined S_IFREG
7307 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7308 #endif
7310 #if defined S_ISSOCK && defined S_IFREG
7311 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7312 #endif
7314 _ACEOF
7315 rm -f conftest.$ac_objext
7316 if { (ac_try="$ac_compile"
7317 case "(($ac_try" in
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7320 esac
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322 (eval "$ac_compile") 2>conftest.er1
7323 ac_status=$?
7324 grep -v '^ *+' conftest.er1 >conftest.err
7325 rm -f conftest.er1
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && {
7329 test -z "$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7331 } && test -s conftest.$ac_objext; then
7332 ac_cv_header_stat_broken=no
7333 else
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7337 ac_cv_header_stat_broken=yes
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7343 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7344 if test $ac_cv_header_stat_broken = yes; then
7346 cat >>confdefs.h <<\_ACEOF
7347 #define STAT_MACROS_BROKEN 1
7348 _ACEOF
7358 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #include <sys/types.h>
7373 #if HAVE_SYS_PARAM_H
7374 # include <sys/param.h>
7375 #endif
7377 #include <$ac_header>
7378 _ACEOF
7379 rm -f conftest.$ac_objext
7380 if { (ac_try="$ac_compile"
7381 case "(($ac_try" in
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7384 esac
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_compile") 2>conftest.er1
7387 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest.$ac_objext; then
7396 eval "$as_ac_Header=yes"
7397 else
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 eval "$as_ac_Header=no"
7404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7406 ac_res=`eval echo '${'$as_ac_Header'}'`
7407 { echo "$as_me:$LINENO: result: $ac_res" >&5
7408 echo "${ECHO_T}$ac_res" >&6; }
7409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7410 cat >>confdefs.h <<_ACEOF
7411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7412 _ACEOF
7416 done
7425 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
7427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h. */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 #include <sys/types.h>
7440 #if HAVE_SYS_SOCKET_H
7441 # include <sys/socket.h>
7442 #endif
7444 #include <$ac_header>
7445 _ACEOF
7446 rm -f conftest.$ac_objext
7447 if { (ac_try="$ac_compile"
7448 case "(($ac_try" in
7449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450 *) ac_try_echo=$ac_try;;
7451 esac
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453 (eval "$ac_compile") 2>conftest.er1
7454 ac_status=$?
7455 grep -v '^ *+' conftest.er1 >conftest.err
7456 rm -f conftest.er1
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && {
7460 test -z "$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 } && test -s conftest.$ac_objext; then
7463 eval "$as_ac_Header=yes"
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 eval "$as_ac_Header=no"
7471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473 ac_res=`eval echo '${'$as_ac_Header'}'`
7474 { echo "$as_me:$LINENO: result: $ac_res" >&5
7475 echo "${ECHO_T}$ac_res" >&6; }
7476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7477 cat >>confdefs.h <<_ACEOF
7478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7479 _ACEOF
7483 done
7487 for ac_header in linux/ipx.h
7489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 #include <sys/types.h>
7502 #ifdef HAVE_ASM_TYPES_H
7503 # include <asm/types.h>
7504 #endif
7505 #if HAVE_SYS_SOCKET_H
7506 # include <sys/socket.h>
7507 #endif
7509 #include <$ac_header>
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (ac_try="$ac_compile"
7513 case "(($ac_try" in
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516 esac
7517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518 (eval "$ac_compile") 2>conftest.er1
7519 ac_status=$?
7520 grep -v '^ *+' conftest.er1 >conftest.err
7521 rm -f conftest.er1
7522 cat conftest.err >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } && {
7525 test -z "$ac_c_werror_flag" ||
7526 test ! -s conftest.err
7527 } && test -s conftest.$ac_objext; then
7528 eval "$as_ac_Header=yes"
7529 else
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7533 eval "$as_ac_Header=no"
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 ac_res=`eval echo '${'$as_ac_Header'}'`
7539 { echo "$as_me:$LINENO: result: $ac_res" >&5
7540 echo "${ECHO_T}$ac_res" >&6; }
7541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7542 cat >>confdefs.h <<_ACEOF
7543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7544 _ACEOF
7548 done
7552 for ac_header in resolv.h
7554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 #include <sys/types.h>
7567 #if HAVE_SYS_SOCKET_H
7568 # include <sys/socket.h>
7569 #endif
7570 #if HAVE_NETINET_IN_H
7571 # include <netinet/in.h>
7572 #endif
7573 #if HAVE_ARPA_NAMESER_H
7574 # include <arpa/nameser.h>
7575 #endif
7577 #include <$ac_header>
7578 _ACEOF
7579 rm -f conftest.$ac_objext
7580 if { (ac_try="$ac_compile"
7581 case "(($ac_try" in
7582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7583 *) ac_try_echo=$ac_try;;
7584 esac
7585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586 (eval "$ac_compile") 2>conftest.er1
7587 ac_status=$?
7588 grep -v '^ *+' conftest.er1 >conftest.err
7589 rm -f conftest.er1
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } && {
7593 test -z "$ac_c_werror_flag" ||
7594 test ! -s conftest.err
7595 } && test -s conftest.$ac_objext; then
7596 eval "$as_ac_Header=yes"
7597 else
7598 echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.$ac_ext >&5
7601 eval "$as_ac_Header=no"
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606 ac_res=`eval echo '${'$as_ac_Header'}'`
7607 { echo "$as_me:$LINENO: result: $ac_res" >&5
7608 echo "${ECHO_T}$ac_res" >&6; }
7609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7610 cat >>confdefs.h <<_ACEOF
7611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7612 _ACEOF
7616 done
7620 for ac_header in ucontext.h
7622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h. */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 #include <signal.h>
7636 #include <$ac_header>
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (ac_try="$ac_compile"
7640 case "(($ac_try" in
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7643 esac
7644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7645 (eval "$ac_compile") 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } && {
7652 test -z "$ac_c_werror_flag" ||
7653 test ! -s conftest.err
7654 } && test -s conftest.$ac_objext; then
7655 eval "$as_ac_Header=yes"
7656 else
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7660 eval "$as_ac_Header=no"
7663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665 ac_res=`eval echo '${'$as_ac_Header'}'`
7666 { echo "$as_me:$LINENO: result: $ac_res" >&5
7667 echo "${ECHO_T}$ac_res" >&6; }
7668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7669 cat >>confdefs.h <<_ACEOF
7670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7671 _ACEOF
7675 done
7679 for ac_header in pthread_np.h
7681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687 cat >conftest.$ac_ext <<_ACEOF
7688 /* confdefs.h. */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693 #ifdef HAVE_PTHREAD_H
7694 #include <pthread.h>
7695 #endif
7697 #include <$ac_header>
7698 _ACEOF
7699 rm -f conftest.$ac_objext
7700 if { (ac_try="$ac_compile"
7701 case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704 esac
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_compile") 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest.$ac_objext; then
7716 eval "$as_ac_Header=yes"
7717 else
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7721 eval "$as_ac_Header=no"
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 ac_res=`eval echo '${'$as_ac_Header'}'`
7727 { echo "$as_me:$LINENO: result: $ac_res" >&5
7728 echo "${ECHO_T}$ac_res" >&6; }
7729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7730 cat >>confdefs.h <<_ACEOF
7731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7732 _ACEOF
7736 done
7740 for ac_header in linux/videodev.h
7742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h. */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7754 #ifdef HAVE_SYS_TIME_H
7755 #include <sys/time.h>
7756 #endif
7757 #include <sys/types.h>
7758 #ifdef HAVE_ASM_TYPES_H
7759 #include <asm/types.h>
7760 #endif
7762 #include <$ac_header>
7763 _ACEOF
7764 rm -f conftest.$ac_objext
7765 if { (ac_try="$ac_compile"
7766 case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769 esac
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_compile") 2>conftest.er1
7772 ac_status=$?
7773 grep -v '^ *+' conftest.er1 >conftest.err
7774 rm -f conftest.er1
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest.$ac_objext; then
7781 eval "$as_ac_Header=yes"
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 eval "$as_ac_Header=no"
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 ac_res=`eval echo '${'$as_ac_Header'}'`
7792 { echo "$as_me:$LINENO: result: $ac_res" >&5
7793 echo "${ECHO_T}$ac_res" >&6; }
7794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7795 cat >>confdefs.h <<_ACEOF
7796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7797 _ACEOF
7801 done
7805 for ac_header in linux/capi.h
7807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813 cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h. */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 #define __user
7821 #include <$ac_header>
7822 _ACEOF
7823 rm -f conftest.$ac_objext
7824 if { (ac_try="$ac_compile"
7825 case "(($ac_try" in
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7828 esac
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830 (eval "$ac_compile") 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && {
7837 test -z "$ac_c_werror_flag" ||
7838 test ! -s conftest.err
7839 } && test -s conftest.$ac_objext; then
7840 eval "$as_ac_Header=yes"
7841 else
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7845 eval "$as_ac_Header=no"
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 ac_res=`eval echo '${'$as_ac_Header'}'`
7851 { echo "$as_me:$LINENO: result: $ac_res" >&5
7852 echo "${ECHO_T}$ac_res" >&6; }
7853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7854 cat >>confdefs.h <<_ACEOF
7855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7856 _ACEOF
7860 done
7864 if test "$have_x" = "yes"
7865 then
7866 XLIB="-lXext -lX11"
7867 ac_save_CPPFLAGS="$CPPFLAGS"
7868 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7880 for ac_header in X11/Xlib.h \
7881 X11/XKBlib.h \
7882 X11/Xutil.h \
7883 X11/extensions/shape.h \
7884 X11/extensions/XInput.h \
7885 X11/extensions/XShm.h \
7886 X11/extensions/Xinerama.h \
7887 X11/extensions/Xrandr.h \
7888 X11/extensions/Xrender.h \
7889 X11/extensions/xf86vmode.h
7891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #ifdef HAVE_X11_XLIB_H
7904 # include <X11/Xlib.h>
7905 #endif
7906 #ifdef HAVE_X11_XUTIL_H
7907 # include <X11/Xutil.h>
7908 #endif
7910 #include <$ac_header>
7911 _ACEOF
7912 rm -f conftest.$ac_objext
7913 if { (ac_try="$ac_compile"
7914 case "(($ac_try" in
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7917 esac
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_compile") 2>conftest.er1
7920 ac_status=$?
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } && {
7926 test -z "$ac_c_werror_flag" ||
7927 test ! -s conftest.err
7928 } && test -s conftest.$ac_objext; then
7929 eval "$as_ac_Header=yes"
7930 else
7931 echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7934 eval "$as_ac_Header=no"
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939 ac_res=`eval echo '${'$as_ac_Header'}'`
7940 { echo "$as_me:$LINENO: result: $ac_res" >&5
7941 echo "${ECHO_T}$ac_res" >&6; }
7942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7943 cat >>confdefs.h <<_ACEOF
7944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7945 _ACEOF
7949 done
7952 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7953 then
7954 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7955 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
7956 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959 ac_check_lib_save_LIBS=$LIBS
7960 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7968 /* Override any GCC internal prototype to avoid an error.
7969 Use char because int might match the return type of a GCC
7970 builtin and then its argument prototype would still apply. */
7971 #ifdef __cplusplus
7972 extern "C"
7973 #endif
7974 char XkbQueryExtension ();
7976 main ()
7978 return XkbQueryExtension ();
7980 return 0;
7982 _ACEOF
7983 rm -f conftest.$ac_objext conftest$ac_exeext
7984 if { (ac_try="$ac_link"
7985 case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_link") 2>conftest.er1
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } && {
7997 test -z "$ac_c_werror_flag" ||
7998 test ! -s conftest.err
7999 } && test -s conftest$ac_exeext &&
8000 $as_test_x conftest$ac_exeext; then
8001 ac_cv_lib_X11_XkbQueryExtension=yes
8002 else
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8006 ac_cv_lib_X11_XkbQueryExtension=no
8009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8010 conftest$ac_exeext conftest.$ac_ext
8011 LIBS=$ac_check_lib_save_LIBS
8013 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8014 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8015 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
8017 cat >>confdefs.h <<\_ACEOF
8018 #define HAVE_XKB 1
8019 _ACEOF
8025 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8026 then
8027 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
8028 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
8029 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032 ac_check_lib_save_LIBS=$LIBS
8033 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8034 cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h. */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8041 /* Override any GCC internal prototype to avoid an error.
8042 Use char because int might match the return type of a GCC
8043 builtin and then its argument prototype would still apply. */
8044 #ifdef __cplusplus
8045 extern "C"
8046 #endif
8047 char XShmQueryExtension ();
8049 main ()
8051 return XShmQueryExtension ();
8053 return 0;
8055 _ACEOF
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (ac_try="$ac_link"
8058 case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8061 esac
8062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8063 (eval "$ac_link") 2>conftest.er1
8064 ac_status=$?
8065 grep -v '^ *+' conftest.er1 >conftest.err
8066 rm -f conftest.er1
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } && {
8070 test -z "$ac_c_werror_flag" ||
8071 test ! -s conftest.err
8072 } && test -s conftest$ac_exeext &&
8073 $as_test_x conftest$ac_exeext; then
8074 ac_cv_lib_Xext_XShmQueryExtension=yes
8075 else
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 ac_cv_lib_Xext_XShmQueryExtension=no
8082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8083 conftest$ac_exeext conftest.$ac_ext
8084 LIBS=$ac_check_lib_save_LIBS
8086 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8087 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8088 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8090 cat >>confdefs.h <<\_ACEOF
8091 #define HAVE_LIBXXSHM 1
8092 _ACEOF
8098 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8099 then
8100 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8101 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
8102 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105 ac_check_lib_save_LIBS=$LIBS
8106 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8107 cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h. */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8114 /* Override any GCC internal prototype to avoid an error.
8115 Use char because int might match the return type of a GCC
8116 builtin and then its argument prototype would still apply. */
8117 #ifdef __cplusplus
8118 extern "C"
8119 #endif
8120 char XShapeQueryExtension ();
8122 main ()
8124 return XShapeQueryExtension ();
8126 return 0;
8128 _ACEOF
8129 rm -f conftest.$ac_objext conftest$ac_exeext
8130 if { (ac_try="$ac_link"
8131 case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134 esac
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_link") 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } && {
8143 test -z "$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 } && test -s conftest$ac_exeext &&
8146 $as_test_x conftest$ac_exeext; then
8147 ac_cv_lib_Xext_XShapeQueryExtension=yes
8148 else
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 ac_cv_lib_Xext_XShapeQueryExtension=no
8155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8156 conftest$ac_exeext conftest.$ac_ext
8157 LIBS=$ac_check_lib_save_LIBS
8159 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8160 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8161 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8163 cat >>confdefs.h <<\_ACEOF
8164 #define HAVE_LIBXSHAPE 1
8165 _ACEOF
8171 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8172 then
8173 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8174 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
8175 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178 ac_check_lib_save_LIBS=$LIBS
8179 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h. */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8187 /* Override any GCC internal prototype to avoid an error.
8188 Use char because int might match the return type of a GCC
8189 builtin and then its argument prototype would still apply. */
8190 #ifdef __cplusplus
8191 extern "C"
8192 #endif
8193 char XF86VidModeQueryExtension ();
8195 main ()
8197 return XF86VidModeQueryExtension ();
8199 return 0;
8201 _ACEOF
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (ac_try="$ac_link"
8204 case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_link") 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest$ac_exeext &&
8219 $as_test_x conftest$ac_exeext; then
8220 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8221 else
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8225 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8229 conftest$ac_exeext conftest.$ac_ext
8230 LIBS=$ac_check_lib_save_LIBS
8232 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8233 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
8234 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8236 cat >>confdefs.h <<\_ACEOF
8237 #define HAVE_LIBXXF86VM 1
8238 _ACEOF
8240 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8246 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8247 then
8248 cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h. */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8254 #include <X11/Xlib.h>
8255 #include <X11/extensions/Xrandr.h>
8257 main ()
8259 static typeof(XRRSetScreenConfigAndRate) * func;
8261 return 0;
8263 _ACEOF
8264 rm -f conftest.$ac_objext
8265 if { (ac_try="$ac_compile"
8266 case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then
8282 cat >>confdefs.h <<\_ACEOF
8283 #define HAVE_LIBXRANDR 1
8284 _ACEOF
8286 else
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8297 then
8298 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8299 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
8300 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 else
8303 ac_check_lib_save_LIBS=$LIBS
8304 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h. */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8312 /* Override any GCC internal prototype to avoid an error.
8313 Use char because int might match the return type of a GCC
8314 builtin and then its argument prototype would still apply. */
8315 #ifdef __cplusplus
8316 extern "C"
8317 #endif
8318 char XRenderSetPictureTransform ();
8320 main ()
8322 return XRenderSetPictureTransform ();
8324 return 0;
8326 _ACEOF
8327 rm -f conftest.$ac_objext conftest$ac_exeext
8328 if { (ac_try="$ac_link"
8329 case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8332 esac
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_link") 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } && {
8341 test -z "$ac_c_werror_flag" ||
8342 test ! -s conftest.err
8343 } && test -s conftest$ac_exeext &&
8344 $as_test_x conftest$ac_exeext; then
8345 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8346 else
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8350 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8354 conftest$ac_exeext conftest.$ac_ext
8355 LIBS=$ac_check_lib_save_LIBS
8357 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8358 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8359 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8361 cat >>confdefs.h <<\_ACEOF
8362 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8363 _ACEOF
8369 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8370 then
8371 cat >conftest.$ac_ext <<_ACEOF
8372 /* confdefs.h. */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8377 #include <X11/Xlib.h>
8378 #include <X11/extensions/Xinerama.h>
8380 main ()
8382 static typeof(XineramaQueryScreens) * func;
8384 return 0;
8386 _ACEOF
8387 rm -f conftest.$ac_objext
8388 if { (ac_try="$ac_compile"
8389 case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392 esac
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_compile") 2>conftest.er1
8395 ac_status=$?
8396 grep -v '^ *+' conftest.er1 >conftest.err
8397 rm -f conftest.er1
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } && {
8401 test -z "$ac_c_werror_flag" ||
8402 test ! -s conftest.err
8403 } && test -s conftest.$ac_objext; then
8405 cat >>confdefs.h <<\_ACEOF
8406 #define HAVE_LIBXINERAMA 1
8407 _ACEOF
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 if test "x$with_opengl" != "xno"
8421 then
8426 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
8428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h. */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 #ifdef HAVE_GL_GLX_H
8441 # include <GL/glx.h>
8442 #endif
8444 #include <$ac_header>
8445 _ACEOF
8446 rm -f conftest.$ac_objext
8447 if { (ac_try="$ac_compile"
8448 case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_compile") 2>conftest.er1
8454 ac_status=$?
8455 grep -v '^ *+' conftest.er1 >conftest.err
8456 rm -f conftest.er1
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } && {
8460 test -z "$ac_c_werror_flag" ||
8461 test ! -s conftest.err
8462 } && test -s conftest.$ac_objext; then
8463 eval "$as_ac_Header=yes"
8464 else
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8468 eval "$as_ac_Header=no"
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 ac_res=`eval echo '${'$as_ac_Header'}'`
8474 { echo "$as_me:$LINENO: result: $ac_res" >&5
8475 echo "${ECHO_T}$ac_res" >&6; }
8476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8477 cat >>confdefs.h <<_ACEOF
8478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8479 _ACEOF
8483 done
8485 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8486 then
8487 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8488 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
8489 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h. */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 #include <GL/gl.h>
8500 main ()
8502 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8504 return 0;
8506 _ACEOF
8507 rm -f conftest.$ac_objext
8508 if { (ac_try="$ac_compile"
8509 case "(($ac_try" in
8510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511 *) ac_try_echo=$ac_try;;
8512 esac
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514 (eval "$ac_compile") 2>conftest.er1
8515 ac_status=$?
8516 grep -v '^ *+' conftest.er1 >conftest.err
8517 rm -f conftest.er1
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest.$ac_objext; then
8524 wine_cv_opengl_header_version_OK="yes"
8525 else
8526 echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8529 wine_cv_opengl_header_version_OK="no"
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
8537 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
8539 if test "$wine_cv_opengl_header_version_OK" = "yes"
8540 then
8541 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8542 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
8543 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546 ac_check_lib_save_LIBS=$LIBS
8547 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8555 /* Override any GCC internal prototype to avoid an error.
8556 Use char because int might match the return type of a GCC
8557 builtin and then its argument prototype would still apply. */
8558 #ifdef __cplusplus
8559 extern "C"
8560 #endif
8561 char glXCreateContext ();
8563 main ()
8565 return glXCreateContext ();
8567 return 0;
8569 _ACEOF
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (ac_try="$ac_link"
8572 case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575 esac
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_link") 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } && {
8584 test -z "$ac_c_werror_flag" ||
8585 test ! -s conftest.err
8586 } && test -s conftest$ac_exeext &&
8587 $as_test_x conftest$ac_exeext; then
8588 ac_cv_lib_GL_glXCreateContext=yes
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_cv_lib_GL_glXCreateContext=no
8596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8597 conftest$ac_exeext conftest.$ac_ext
8598 LIBS=$ac_check_lib_save_LIBS
8600 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8601 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
8602 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8603 OPENGL_LIBS="-lGL"
8604 OPENGLFILES='$(OPENGLFILES)'
8606 cat >>confdefs.h <<\_ACEOF
8607 #define HAVE_OPENGL 1
8608 _ACEOF
8614 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8615 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
8616 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619 ac_check_lib_save_LIBS=$LIBS
8620 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8621 $LIBS"
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8629 /* Override any GCC internal prototype to avoid an error.
8630 Use char because int might match the return type of a GCC
8631 builtin and then its argument prototype would still apply. */
8632 #ifdef __cplusplus
8633 extern "C"
8634 #endif
8635 char gluLookAt ();
8637 main ()
8639 return gluLookAt ();
8641 return 0;
8643 _ACEOF
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (ac_try="$ac_link"
8646 case "(($ac_try" in
8647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648 *) ac_try_echo=$ac_try;;
8649 esac
8650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651 (eval "$ac_link") 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest$ac_exeext &&
8661 $as_test_x conftest$ac_exeext; then
8662 ac_cv_lib_GLU_gluLookAt=yes
8663 else
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8667 ac_cv_lib_GLU_gluLookAt=no
8670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8671 conftest$ac_exeext conftest.$ac_ext
8672 LIBS=$ac_check_lib_save_LIBS
8674 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8675 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
8676 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8677 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8678 GLU32FILES='$(GLU32FILES)'
8683 else
8684 wine_cv_opengl_headers_found="no"
8687 NASLIBS=""
8690 for ac_header in audio/audiolib.h
8692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 ac_res=`eval echo '${'$as_ac_Header'}'`
8700 { echo "$as_me:$LINENO: result: $ac_res" >&5
8701 echo "${ECHO_T}$ac_res" >&6; }
8702 else
8703 # Is the header compilable?
8704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8706 cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h. */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 $ac_includes_default
8713 #include <$ac_header>
8714 _ACEOF
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8717 case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720 esac
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && {
8729 test -z "$ac_c_werror_flag" ||
8730 test ! -s conftest.err
8731 } && test -s conftest.$ac_objext; then
8732 ac_header_compiler=yes
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 ac_header_compiler=no
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8742 echo "${ECHO_T}$ac_header_compiler" >&6; }
8744 # Is the header present?
8745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 #include <$ac_header>
8754 _ACEOF
8755 if { (ac_try="$ac_cpp conftest.$ac_ext"
8756 case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759 esac
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } >/dev/null && {
8768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 }; then
8771 ac_header_preproc=yes
8772 else
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ac_header_preproc=no
8779 rm -f conftest.err conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8781 echo "${ECHO_T}$ac_header_preproc" >&6; }
8783 # So? What about this header?
8784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8785 yes:no: )
8786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8790 ac_header_preproc=yes
8792 no:yes:* )
8793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8805 ( cat <<\_ASBOX
8806 ## ------------------------------------ ##
8807 ## Report this to wine-devel@winehq.org ##
8808 ## ------------------------------------ ##
8809 _ASBOX
8810 ) | sed "s/^/$as_me: WARNING: /" >&2
8812 esac
8813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818 eval "$as_ac_Header=\$ac_header_preproc"
8820 ac_res=`eval echo '${'$as_ac_Header'}'`
8821 { echo "$as_me:$LINENO: result: $ac_res" >&5
8822 echo "${ECHO_T}$ac_res" >&6; }
8825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8826 cat >>confdefs.h <<_ACEOF
8827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8828 _ACEOF
8830 for ac_header in audio/soundlib.h
8832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 #include <audio/audiolib.h>
8846 #include <$ac_header>
8847 _ACEOF
8848 rm -f conftest.$ac_objext
8849 if { (ac_try="$ac_compile"
8850 case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8853 esac
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_compile") 2>conftest.er1
8856 ac_status=$?
8857 grep -v '^ *+' conftest.er1 >conftest.err
8858 rm -f conftest.er1
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } && {
8862 test -z "$ac_c_werror_flag" ||
8863 test ! -s conftest.err
8864 } && test -s conftest.$ac_objext; then
8865 eval "$as_ac_Header=yes"
8866 else
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 eval "$as_ac_Header=no"
8873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 ac_res=`eval echo '${'$as_ac_Header'}'`
8876 { echo "$as_me:$LINENO: result: $ac_res" >&5
8877 echo "${ECHO_T}$ac_res" >&6; }
8878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8879 cat >>confdefs.h <<_ACEOF
8880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8881 _ACEOF
8885 done
8887 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8888 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
8889 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892 ac_check_lib_save_LIBS=$LIBS
8893 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h. */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8901 /* Override any GCC internal prototype to avoid an error.
8902 Use char because int might match the return type of a GCC
8903 builtin and then its argument prototype would still apply. */
8904 #ifdef __cplusplus
8905 extern "C"
8906 #endif
8907 char AuCreateFlow ();
8909 main ()
8911 return AuCreateFlow ();
8913 return 0;
8915 _ACEOF
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8918 case "(($ac_try" in
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_link") 2>conftest.er1
8924 ac_status=$?
8925 grep -v '^ *+' conftest.er1 >conftest.err
8926 rm -f conftest.er1
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest$ac_exeext &&
8933 $as_test_x conftest$ac_exeext; then
8934 ac_cv_lib_audio_AuCreateFlow=yes
8935 else
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_cv_lib_audio_AuCreateFlow=no
8942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8943 conftest$ac_exeext conftest.$ac_ext
8944 LIBS=$ac_check_lib_save_LIBS
8946 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8947 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
8948 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8950 cat >>confdefs.h <<\_ACEOF
8951 #define HAVE_NAS 1
8952 _ACEOF
8954 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8959 done
8962 CPPFLAGS="$ac_save_CPPFLAGS"
8963 XFILES='$(XFILES)'
8964 else
8965 XLIB=""
8966 X_CFLAGS=""
8967 X_LIBS=""
8971 XML2LIBS=""
8973 XML2INCL=""
8975 XSLTLIBS=""
8977 XSLTINCL=""
8979 if test "$PKG_CONFIG" != "false"
8980 then
8981 ac_save_CPPFLAGS="$CPPFLAGS"
8982 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8983 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8984 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8986 for ac_header in libxml/parser.h
8988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 ac_res=`eval echo '${'$as_ac_Header'}'`
8996 { echo "$as_me:$LINENO: result: $ac_res" >&5
8997 echo "${ECHO_T}$ac_res" >&6; }
8998 else
8999 # Is the header compilable?
9000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9002 cat >conftest.$ac_ext <<_ACEOF
9003 /* confdefs.h. */
9004 _ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9008 $ac_includes_default
9009 #include <$ac_header>
9010 _ACEOF
9011 rm -f conftest.$ac_objext
9012 if { (ac_try="$ac_compile"
9013 case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9016 esac
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_compile") 2>conftest.er1
9019 ac_status=$?
9020 grep -v '^ *+' conftest.er1 >conftest.err
9021 rm -f conftest.er1
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } && {
9025 test -z "$ac_c_werror_flag" ||
9026 test ! -s conftest.err
9027 } && test -s conftest.$ac_objext; then
9028 ac_header_compiler=yes
9029 else
9030 echo "$as_me: failed program was:" >&5
9031 sed 's/^/| /' conftest.$ac_ext >&5
9033 ac_header_compiler=no
9036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9038 echo "${ECHO_T}$ac_header_compiler" >&6; }
9040 # Is the header present?
9041 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9043 cat >conftest.$ac_ext <<_ACEOF
9044 /* confdefs.h. */
9045 _ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9049 #include <$ac_header>
9050 _ACEOF
9051 if { (ac_try="$ac_cpp conftest.$ac_ext"
9052 case "(($ac_try" in
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9055 esac
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } >/dev/null && {
9064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9065 test ! -s conftest.err
9066 }; then
9067 ac_header_preproc=yes
9068 else
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9072 ac_header_preproc=no
9075 rm -f conftest.err conftest.$ac_ext
9076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9077 echo "${ECHO_T}$ac_header_preproc" >&6; }
9079 # So? What about this header?
9080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9081 yes:no: )
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9086 ac_header_preproc=yes
9088 no:yes:* )
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9101 ( cat <<\_ASBOX
9102 ## ------------------------------------ ##
9103 ## Report this to wine-devel@winehq.org ##
9104 ## ------------------------------------ ##
9105 _ASBOX
9106 ) | sed "s/^/$as_me: WARNING: /" >&2
9108 esac
9109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 else
9114 eval "$as_ac_Header=\$ac_header_preproc"
9116 ac_res=`eval echo '${'$as_ac_Header'}'`
9117 { echo "$as_me:$LINENO: result: $ac_res" >&5
9118 echo "${ECHO_T}$ac_res" >&6; }
9121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9122 cat >>confdefs.h <<_ACEOF
9123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9124 _ACEOF
9125 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
9126 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
9127 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130 ac_check_lib_save_LIBS=$LIBS
9131 LIBS="-lxml2 $ac_xml_libs $LIBS"
9132 cat >conftest.$ac_ext <<_ACEOF
9133 /* confdefs.h. */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9139 /* Override any GCC internal prototype to avoid an error.
9140 Use char because int might match the return type of a GCC
9141 builtin and then its argument prototype would still apply. */
9142 #ifdef __cplusplus
9143 extern "C"
9144 #endif
9145 char xmlParseMemory ();
9147 main ()
9149 return xmlParseMemory ();
9151 return 0;
9153 _ACEOF
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (ac_try="$ac_link"
9156 case "(($ac_try" in
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9159 esac
9160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161 (eval "$ac_link") 2>conftest.er1
9162 ac_status=$?
9163 grep -v '^ *+' conftest.er1 >conftest.err
9164 rm -f conftest.er1
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } && {
9168 test -z "$ac_c_werror_flag" ||
9169 test ! -s conftest.err
9170 } && test -s conftest$ac_exeext &&
9171 $as_test_x conftest$ac_exeext; then
9172 ac_cv_lib_xml2_xmlParseMemory=yes
9173 else
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 ac_cv_lib_xml2_xmlParseMemory=no
9180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9181 conftest$ac_exeext conftest.$ac_ext
9182 LIBS=$ac_check_lib_save_LIBS
9184 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9185 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9186 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
9188 cat >>confdefs.h <<\_ACEOF
9189 #define HAVE_LIBXML2 1
9190 _ACEOF
9192 XML2LIBS="$ac_xml_libs"
9193 XML2INCL="$ac_xml_cflags"
9196 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
9197 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
9198 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 else
9201 ac_check_lib_save_LIBS=$LIBS
9202 LIBS="-lxml2 $ac_xml_libs $LIBS"
9203 cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h. */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9210 /* Override any GCC internal prototype to avoid an error.
9211 Use char because int might match the return type of a GCC
9212 builtin and then its argument prototype would still apply. */
9213 #ifdef __cplusplus
9214 extern "C"
9215 #endif
9216 char xmlReadMemory ();
9218 main ()
9220 return xmlReadMemory ();
9222 return 0;
9224 _ACEOF
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (ac_try="$ac_link"
9227 case "(($ac_try" in
9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9230 esac
9231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232 (eval "$ac_link") 2>conftest.er1
9233 ac_status=$?
9234 grep -v '^ *+' conftest.er1 >conftest.err
9235 rm -f conftest.er1
9236 cat conftest.err >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } && {
9239 test -z "$ac_c_werror_flag" ||
9240 test ! -s conftest.err
9241 } && test -s conftest$ac_exeext &&
9242 $as_test_x conftest$ac_exeext; then
9243 ac_cv_lib_xml2_xmlReadMemory=yes
9244 else
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9248 ac_cv_lib_xml2_xmlReadMemory=no
9251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9252 conftest$ac_exeext conftest.$ac_ext
9253 LIBS=$ac_check_lib_save_LIBS
9255 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9256 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9257 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
9259 cat >>confdefs.h <<\_ACEOF
9260 #define HAVE_XMLREADMEMORY 1
9261 _ACEOF
9265 { echo "$as_me:$LINENO: checking for xmlNewDocPI in -lxml2" >&5
9266 echo $ECHO_N "checking for xmlNewDocPI in -lxml2... $ECHO_C" >&6; }
9267 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270 ac_check_lib_save_LIBS=$LIBS
9271 LIBS="-lxml2 $ac_xml_libs $LIBS"
9272 cat >conftest.$ac_ext <<_ACEOF
9273 /* confdefs.h. */
9274 _ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9279 /* Override any GCC internal prototype to avoid an error.
9280 Use char because int might match the return type of a GCC
9281 builtin and then its argument prototype would still apply. */
9282 #ifdef __cplusplus
9283 extern "C"
9284 #endif
9285 char xmlNewDocPI ();
9287 main ()
9289 return xmlNewDocPI ();
9291 return 0;
9293 _ACEOF
9294 rm -f conftest.$ac_objext conftest$ac_exeext
9295 if { (ac_try="$ac_link"
9296 case "(($ac_try" in
9297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298 *) ac_try_echo=$ac_try;;
9299 esac
9300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9301 (eval "$ac_link") 2>conftest.er1
9302 ac_status=$?
9303 grep -v '^ *+' conftest.er1 >conftest.err
9304 rm -f conftest.er1
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } && {
9308 test -z "$ac_c_werror_flag" ||
9309 test ! -s conftest.err
9310 } && test -s conftest$ac_exeext &&
9311 $as_test_x conftest$ac_exeext; then
9312 ac_cv_lib_xml2_xmlNewDocPI=yes
9313 else
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 ac_cv_lib_xml2_xmlNewDocPI=no
9320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9321 conftest$ac_exeext conftest.$ac_ext
9322 LIBS=$ac_check_lib_save_LIBS
9324 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9325 echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9326 if test $ac_cv_lib_xml2_xmlNewDocPI = yes; then
9328 cat >>confdefs.h <<\_ACEOF
9329 #define HAVE_XMLNEWDOCPI 1
9330 _ACEOF
9337 done
9339 CPPFLAGS="$ac_save_CPPFLAGS"
9340 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9341 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9342 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9345 for ac_header in libxslt/pattern.h libxslt/transform.h
9347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h. */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359 #ifdef HAVE_LIBXSLT_PATTERN_H
9360 # include <libxslt/pattern.h>
9361 #endif
9363 #include <$ac_header>
9364 _ACEOF
9365 rm -f conftest.$ac_objext
9366 if { (ac_try="$ac_compile"
9367 case "(($ac_try" in
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9370 esac
9371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_compile") 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest.$ac_objext; then
9382 eval "$as_ac_Header=yes"
9383 else
9384 echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9387 eval "$as_ac_Header=no"
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 ac_res=`eval echo '${'$as_ac_Header'}'`
9393 { echo "$as_me:$LINENO: result: $ac_res" >&5
9394 echo "${ECHO_T}$ac_res" >&6; }
9395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9396 cat >>confdefs.h <<_ACEOF
9397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9398 _ACEOF
9399 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
9400 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
9401 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404 ac_check_lib_save_LIBS=$LIBS
9405 LIBS="-lxslt $ac_xslt_libs $LIBS"
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h. */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9413 /* Override any GCC internal prototype to avoid an error.
9414 Use char because int might match the return type of a GCC
9415 builtin and then its argument prototype would still apply. */
9416 #ifdef __cplusplus
9417 extern "C"
9418 #endif
9419 char xsltCompilePattern ();
9421 main ()
9423 return xsltCompilePattern ();
9425 return 0;
9427 _ACEOF
9428 rm -f conftest.$ac_objext conftest$ac_exeext
9429 if { (ac_try="$ac_link"
9430 case "(($ac_try" in
9431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432 *) ac_try_echo=$ac_try;;
9433 esac
9434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435 (eval "$ac_link") 2>conftest.er1
9436 ac_status=$?
9437 grep -v '^ *+' conftest.er1 >conftest.err
9438 rm -f conftest.er1
9439 cat conftest.err >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } && {
9442 test -z "$ac_c_werror_flag" ||
9443 test ! -s conftest.err
9444 } && test -s conftest$ac_exeext &&
9445 $as_test_x conftest$ac_exeext; then
9446 ac_cv_lib_xslt_xsltCompilePattern=yes
9447 else
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 ac_cv_lib_xslt_xsltCompilePattern=no
9454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9455 conftest$ac_exeext conftest.$ac_ext
9456 LIBS=$ac_check_lib_save_LIBS
9458 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
9459 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
9460 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
9462 cat >>confdefs.h <<\_ACEOF
9463 #define HAVE_LIBXSLT 1
9464 _ACEOF
9466 XSLTLIBS="$ac_xslt_libs"
9467 XSLTINCL="$ac_xslt_cflags"
9473 done
9475 CPPFLAGS="$ac_save_CPPFLAGS"
9478 HALINCL=""
9480 if test "$PKG_CONFIG" != "false"
9481 then
9482 ac_save_CPPFLAGS="$CPPFLAGS"
9483 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9484 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9485 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9488 for ac_header in dbus/dbus.h hal/libhal.h
9490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 ac_res=`eval echo '${'$as_ac_Header'}'`
9498 { echo "$as_me:$LINENO: result: $ac_res" >&5
9499 echo "${ECHO_T}$ac_res" >&6; }
9500 else
9501 # Is the header compilable?
9502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9504 cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h. */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 $ac_includes_default
9511 #include <$ac_header>
9512 _ACEOF
9513 rm -f conftest.$ac_objext
9514 if { (ac_try="$ac_compile"
9515 case "(($ac_try" in
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9518 esac
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520 (eval "$ac_compile") 2>conftest.er1
9521 ac_status=$?
9522 grep -v '^ *+' conftest.er1 >conftest.err
9523 rm -f conftest.er1
9524 cat conftest.err >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && {
9527 test -z "$ac_c_werror_flag" ||
9528 test ! -s conftest.err
9529 } && test -s conftest.$ac_objext; then
9530 ac_header_compiler=yes
9531 else
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9535 ac_header_compiler=no
9538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9540 echo "${ECHO_T}$ac_header_compiler" >&6; }
9542 # Is the header present?
9543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9545 cat >conftest.$ac_ext <<_ACEOF
9546 /* confdefs.h. */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551 #include <$ac_header>
9552 _ACEOF
9553 if { (ac_try="$ac_cpp conftest.$ac_ext"
9554 case "(($ac_try" in
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9557 esac
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } >/dev/null && {
9566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9567 test ! -s conftest.err
9568 }; then
9569 ac_header_preproc=yes
9570 else
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9574 ac_header_preproc=no
9577 rm -f conftest.err conftest.$ac_ext
9578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9579 echo "${ECHO_T}$ac_header_preproc" >&6; }
9581 # So? What about this header?
9582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9583 yes:no: )
9584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9588 ac_header_preproc=yes
9590 no:yes:* )
9591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9603 ( cat <<\_ASBOX
9604 ## ------------------------------------ ##
9605 ## Report this to wine-devel@winehq.org ##
9606 ## ------------------------------------ ##
9607 _ASBOX
9608 ) | sed "s/^/$as_me: WARNING: /" >&2
9610 esac
9611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 else
9616 eval "$as_ac_Header=\$ac_header_preproc"
9618 ac_res=`eval echo '${'$as_ac_Header'}'`
9619 { echo "$as_me:$LINENO: result: $ac_res" >&5
9620 echo "${ECHO_T}$ac_res" >&6; }
9623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9624 cat >>confdefs.h <<_ACEOF
9625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9626 _ACEOF
9630 done
9632 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9633 then
9634 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
9635 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
9636 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639 ac_check_lib_save_LIBS=$LIBS
9640 LIBS="-lhal $LIBS"
9641 cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h. */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9648 /* Override any GCC internal prototype to avoid an error.
9649 Use char because int might match the return type of a GCC
9650 builtin and then its argument prototype would still apply. */
9651 #ifdef __cplusplus
9652 extern "C"
9653 #endif
9654 char libhal_ctx_new ();
9656 main ()
9658 return libhal_ctx_new ();
9660 return 0;
9662 _ACEOF
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (ac_try="$ac_link"
9665 case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_link") 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest$ac_exeext &&
9680 $as_test_x conftest$ac_exeext; then
9681 ac_cv_lib_hal_libhal_ctx_new=yes
9682 else
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9686 ac_cv_lib_hal_libhal_ctx_new=no
9689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690 conftest$ac_exeext conftest.$ac_ext
9691 LIBS=$ac_check_lib_save_LIBS
9693 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
9694 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
9695 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
9696 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
9697 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
9698 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701 ac_check_lib_save_LIBS=$LIBS
9702 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h. */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9710 /* Override any GCC internal prototype to avoid an error.
9711 Use char because int might match the return type of a GCC
9712 builtin and then its argument prototype would still apply. */
9713 #ifdef __cplusplus
9714 extern "C"
9715 #endif
9716 char dbus_connection_close ();
9718 main ()
9720 return dbus_connection_close ();
9722 return 0;
9724 _ACEOF
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (ac_try="$ac_link"
9727 case "(($ac_try" in
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9730 esac
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732 (eval "$ac_link") 2>conftest.er1
9733 ac_status=$?
9734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } && {
9739 test -z "$ac_c_werror_flag" ||
9740 test ! -s conftest.err
9741 } && test -s conftest$ac_exeext &&
9742 $as_test_x conftest$ac_exeext; then
9743 ac_cv_lib_dbus_1_dbus_connection_close=yes
9744 else
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9748 ac_cv_lib_dbus_1_dbus_connection_close=no
9751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9752 conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9755 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9756 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9757 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
9759 cat >>confdefs.h <<\_ACEOF
9760 #define HAVE_LIBHAL 1
9761 _ACEOF
9763 HALINCL="$ac_hal_cflags"
9769 CPPFLAGS="$ac_save_CPPFLAGS"
9772 CURSESLIBS=""
9773 if test "$ac_cv_header_ncurses_h" = "yes"
9774 then
9775 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9776 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
9777 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780 ac_check_lib_save_LIBS=$LIBS
9781 LIBS="-lncurses $LIBS"
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9789 /* Override any GCC internal prototype to avoid an error.
9790 Use char because int might match the return type of a GCC
9791 builtin and then its argument prototype would still apply. */
9792 #ifdef __cplusplus
9793 extern "C"
9794 #endif
9795 char waddch ();
9797 main ()
9799 return waddch ();
9801 return 0;
9803 _ACEOF
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (ac_try="$ac_link"
9806 case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9809 esac
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_link") 2>conftest.er1
9812 ac_status=$?
9813 grep -v '^ *+' conftest.er1 >conftest.err
9814 rm -f conftest.er1
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } && {
9818 test -z "$ac_c_werror_flag" ||
9819 test ! -s conftest.err
9820 } && test -s conftest$ac_exeext &&
9821 $as_test_x conftest$ac_exeext; then
9822 ac_cv_lib_ncurses_waddch=yes
9823 else
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_cv_lib_ncurses_waddch=no
9830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9831 conftest$ac_exeext conftest.$ac_ext
9832 LIBS=$ac_check_lib_save_LIBS
9834 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9835 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
9836 if test $ac_cv_lib_ncurses_waddch = yes; then
9837 CURSESLIBS="-lncurses"
9840 elif test "$ac_cv_header_curses_h" = "yes"
9841 then
9842 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9843 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
9844 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847 ac_check_lib_save_LIBS=$LIBS
9848 LIBS="-lcurses $LIBS"
9849 cat >conftest.$ac_ext <<_ACEOF
9850 /* confdefs.h. */
9851 _ACEOF
9852 cat confdefs.h >>conftest.$ac_ext
9853 cat >>conftest.$ac_ext <<_ACEOF
9854 /* end confdefs.h. */
9856 /* Override any GCC internal prototype to avoid an error.
9857 Use char because int might match the return type of a GCC
9858 builtin and then its argument prototype would still apply. */
9859 #ifdef __cplusplus
9860 extern "C"
9861 #endif
9862 char waddch ();
9864 main ()
9866 return waddch ();
9868 return 0;
9870 _ACEOF
9871 rm -f conftest.$ac_objext conftest$ac_exeext
9872 if { (ac_try="$ac_link"
9873 case "(($ac_try" in
9874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875 *) ac_try_echo=$ac_try;;
9876 esac
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878 (eval "$ac_link") 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } && {
9885 test -z "$ac_c_werror_flag" ||
9886 test ! -s conftest.err
9887 } && test -s conftest$ac_exeext &&
9888 $as_test_x conftest$ac_exeext; then
9889 ac_cv_lib_curses_waddch=yes
9890 else
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9894 ac_cv_lib_curses_waddch=no
9897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9898 conftest$ac_exeext conftest.$ac_ext
9899 LIBS=$ac_check_lib_save_LIBS
9901 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9902 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
9903 if test $ac_cv_lib_curses_waddch = yes; then
9904 CURSESLIBS="-lcurses"
9908 ac_save_LIBS="$LIBS"
9909 LIBS="$LIBS $CURSESLIBS"
9911 for ac_func in mousemask
9913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919 cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h. */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9927 #define $ac_func innocuous_$ac_func
9929 /* System header to define __stub macros and hopefully few prototypes,
9930 which can conflict with char $ac_func (); below.
9931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9932 <limits.h> exists even on freestanding compilers. */
9934 #ifdef __STDC__
9935 # include <limits.h>
9936 #else
9937 # include <assert.h>
9938 #endif
9940 #undef $ac_func
9942 /* Override any GCC internal prototype to avoid an error.
9943 Use char because int might match the return type of a GCC
9944 builtin and then its argument prototype would still apply. */
9945 #ifdef __cplusplus
9946 extern "C"
9947 #endif
9948 char $ac_func ();
9949 /* The GNU C library defines this for functions which it implements
9950 to always fail with ENOSYS. Some functions are actually named
9951 something starting with __ and the normal name is an alias. */
9952 #if defined __stub_$ac_func || defined __stub___$ac_func
9953 choke me
9954 #endif
9957 main ()
9959 return $ac_func ();
9961 return 0;
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9966 case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_link") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest$ac_exeext &&
9981 $as_test_x conftest$ac_exeext; then
9982 eval "$as_ac_var=yes"
9983 else
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 eval "$as_ac_var=no"
9990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9991 conftest$ac_exeext conftest.$ac_ext
9993 ac_res=`eval echo '${'$as_ac_var'}'`
9994 { echo "$as_me:$LINENO: result: $ac_res" >&5
9995 echo "${ECHO_T}$ac_res" >&6; }
9996 if test `eval echo '${'$as_ac_var'}'` = yes; then
9997 cat >>confdefs.h <<_ACEOF
9998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9999 _ACEOF
10002 done
10004 LIBS="$ac_save_LIBS"
10006 # Extract the first word of "sane-config", so it can be a program name with args.
10007 set dummy sane-config; ac_word=$2
10008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10010 if test "${ac_cv_prog_sane_devel+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013 if test -n "$sane_devel"; then
10014 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
10015 else
10016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017 for as_dir in $PATH
10019 IFS=$as_save_IFS
10020 test -z "$as_dir" && as_dir=.
10021 for ac_exec_ext in '' $ac_executable_extensions; do
10022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10023 ac_cv_prog_sane_devel="sane-config"
10024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10025 break 2
10027 done
10028 done
10029 IFS=$as_save_IFS
10031 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10034 sane_devel=$ac_cv_prog_sane_devel
10035 if test -n "$sane_devel"; then
10036 { echo "$as_me:$LINENO: result: $sane_devel" >&5
10037 echo "${ECHO_T}$sane_devel" >&6; }
10038 else
10039 { echo "$as_me:$LINENO: result: no" >&5
10040 echo "${ECHO_T}no" >&6; }
10044 SANELIBS=""
10046 SANEINCL=""
10048 if test "$sane_devel" != "no"
10049 then
10050 SANELIBS="`$sane_devel --libs`"
10051 SANEINCL="`$sane_devel --cflags`"
10052 ac_save_CPPFLAGS="$CPPFLAGS"
10053 ac_save_LIBS="$LIBS"
10054 CPPFLAGS="$CPPFLAGS $SANEINCL"
10055 LIBS="$LIBS $SANELIBS"
10056 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10057 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10058 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
10059 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10063 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
10064 else
10065 # Is the header compilable?
10066 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10067 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 #include <sane/sane.h>
10076 _ACEOF
10077 rm -f conftest.$ac_objext
10078 if { (ac_try="$ac_compile"
10079 case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10082 esac
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_compile") 2>conftest.er1
10085 ac_status=$?
10086 grep -v '^ *+' conftest.er1 >conftest.err
10087 rm -f conftest.er1
10088 cat conftest.err >&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } && {
10091 test -z "$ac_c_werror_flag" ||
10092 test ! -s conftest.err
10093 } && test -s conftest.$ac_objext; then
10094 ac_header_compiler=yes
10095 else
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10099 ac_header_compiler=no
10102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10104 echo "${ECHO_T}$ac_header_compiler" >&6; }
10106 # Is the header present?
10107 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10108 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 #include <sane/sane.h>
10116 _ACEOF
10117 if { (ac_try="$ac_cpp conftest.$ac_ext"
10118 case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10121 esac
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10124 ac_status=$?
10125 grep -v '^ *+' conftest.er1 >conftest.err
10126 rm -f conftest.er1
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } >/dev/null && {
10130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10131 test ! -s conftest.err
10132 }; then
10133 ac_header_preproc=yes
10134 else
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ac_header_preproc=no
10141 rm -f conftest.err conftest.$ac_ext
10142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10143 echo "${ECHO_T}$ac_header_preproc" >&6; }
10145 # So? What about this header?
10146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10147 yes:no: )
10148 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10149 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10150 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10151 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10152 ac_header_preproc=yes
10154 no:yes:* )
10155 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10156 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10157 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10158 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10159 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10160 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10161 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10162 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10163 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10164 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10166 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10167 ( cat <<\_ASBOX
10168 ## ------------------------------------ ##
10169 ## Report this to wine-devel@winehq.org ##
10170 ## ------------------------------------ ##
10171 _ASBOX
10172 ) | sed "s/^/$as_me: WARNING: /" >&2
10174 esac
10175 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10176 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
10177 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180 ac_cv_header_sane_sane_h=$ac_header_preproc
10182 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10183 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
10186 if test $ac_cv_header_sane_sane_h = yes; then
10187 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10188 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
10189 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192 ac_check_lib_save_LIBS=$LIBS
10193 LIBS="-lsane $LIBS"
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h. */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10201 /* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
10203 builtin and then its argument prototype would still apply. */
10204 #ifdef __cplusplus
10205 extern "C"
10206 #endif
10207 char sane_open ();
10209 main ()
10211 return sane_open ();
10213 return 0;
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (ac_try="$ac_link"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_link") 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest$ac_exeext &&
10233 $as_test_x conftest$ac_exeext; then
10234 ac_cv_lib_sane_sane_open=yes
10235 else
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10239 ac_cv_lib_sane_sane_open=no
10242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10243 conftest$ac_exeext conftest.$ac_ext
10244 LIBS=$ac_check_lib_save_LIBS
10246 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10247 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
10248 if test $ac_cv_lib_sane_sane_open = yes; then
10250 cat >>confdefs.h <<\_ACEOF
10251 #define HAVE_SANE 1
10252 _ACEOF
10254 else
10255 SANELIBS=""
10256 SANEINCL=""
10259 else
10260 SANELIBS=""
10261 SANEINCL=""
10265 LIBS="$ac_save_LIBS"
10266 CPPFLAGS="$ac_save_CPPFLAGS"
10269 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10270 set dummy gphoto2-config; ac_word=$2
10271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10273 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276 if test -n "$gphoto2_devel"; then
10277 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10278 else
10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280 for as_dir in $PATH
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
10285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10286 ac_cv_prog_gphoto2_devel="gphoto2-config"
10287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 break 2
10290 done
10291 done
10292 IFS=$as_save_IFS
10294 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10297 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10298 if test -n "$gphoto2_devel"; then
10299 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
10300 echo "${ECHO_T}$gphoto2_devel" >&6; }
10301 else
10302 { echo "$as_me:$LINENO: result: no" >&5
10303 echo "${ECHO_T}no" >&6; }
10307 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10308 set dummy gphoto2-port-config; ac_word=$2
10309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10311 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314 if test -n "$gphoto2port_devel"; then
10315 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10316 else
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10324 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 break 2
10328 done
10329 done
10330 IFS=$as_save_IFS
10332 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10335 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10336 if test -n "$gphoto2port_devel"; then
10337 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
10338 echo "${ECHO_T}$gphoto2port_devel" >&6; }
10339 else
10340 { echo "$as_me:$LINENO: result: no" >&5
10341 echo "${ECHO_T}no" >&6; }
10345 GPHOTO2LIBS=""
10347 GPHOTO2INCL=""
10349 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10350 then
10351 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10352 GPHOTO2LIBS=""
10353 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10355 case "$i" in
10356 -L/usr/lib|-L/usr/lib64) ;;
10357 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
10358 esac
10359 done
10360 ac_save_CPPFLAGS="$CPPFLAGS"
10361 ac_save_LIBS="$LIBS"
10362 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
10363 LIBS="$LIBS $GPHOTO2LIBS"
10364 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10365 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10366 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10367 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10371 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10372 else
10373 # Is the header compilable?
10374 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
10375 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
10376 cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h. */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10382 $ac_includes_default
10383 #include <gphoto2-camera.h>
10384 _ACEOF
10385 rm -f conftest.$ac_objext
10386 if { (ac_try="$ac_compile"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_compile") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest.$ac_objext; then
10402 ac_header_compiler=yes
10403 else
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 ac_header_compiler=no
10410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10412 echo "${ECHO_T}$ac_header_compiler" >&6; }
10414 # Is the header present?
10415 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
10416 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h. */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423 #include <gphoto2-camera.h>
10424 _ACEOF
10425 if { (ac_try="$ac_cpp conftest.$ac_ext"
10426 case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429 esac
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10432 ac_status=$?
10433 grep -v '^ *+' conftest.er1 >conftest.err
10434 rm -f conftest.er1
10435 cat conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } >/dev/null && {
10438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10439 test ! -s conftest.err
10440 }; then
10441 ac_header_preproc=yes
10442 else
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 ac_header_preproc=no
10449 rm -f conftest.err conftest.$ac_ext
10450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10451 echo "${ECHO_T}$ac_header_preproc" >&6; }
10453 # So? What about this header?
10454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10455 yes:no: )
10456 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
10457 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
10459 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
10460 ac_header_preproc=yes
10462 no:yes:* )
10463 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
10464 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
10465 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
10466 echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
10467 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
10468 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
10470 echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
10472 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
10474 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
10475 ( cat <<\_ASBOX
10476 ## ------------------------------------ ##
10477 ## Report this to wine-devel@winehq.org ##
10478 ## ------------------------------------ ##
10479 _ASBOX
10480 ) | sed "s/^/$as_me: WARNING: /" >&2
10482 esac
10483 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10484 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10485 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
10490 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10491 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10494 if test $ac_cv_header_gphoto2_camera_h = yes; then
10495 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
10496 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
10497 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500 ac_check_lib_save_LIBS=$LIBS
10501 LIBS="-lgphoto2 $LIBS"
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h. */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10509 /* Override any GCC internal prototype to avoid an error.
10510 Use char because int might match the return type of a GCC
10511 builtin and then its argument prototype would still apply. */
10512 #ifdef __cplusplus
10513 extern "C"
10514 #endif
10515 char gp_camera_new ();
10517 main ()
10519 return gp_camera_new ();
10521 return 0;
10523 _ACEOF
10524 rm -f conftest.$ac_objext conftest$ac_exeext
10525 if { (ac_try="$ac_link"
10526 case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10529 esac
10530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531 (eval "$ac_link") 2>conftest.er1
10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } && {
10538 test -z "$ac_c_werror_flag" ||
10539 test ! -s conftest.err
10540 } && test -s conftest$ac_exeext &&
10541 $as_test_x conftest$ac_exeext; then
10542 ac_cv_lib_gphoto2_gp_camera_new=yes
10543 else
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_cv_lib_gphoto2_gp_camera_new=no
10550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10551 conftest$ac_exeext conftest.$ac_ext
10552 LIBS=$ac_check_lib_save_LIBS
10554 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10555 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10556 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
10558 cat >>confdefs.h <<\_ACEOF
10559 #define HAVE_GPHOTO2 1
10560 _ACEOF
10562 else
10563 GPHOTO2LIBS=""
10564 GPHOTO2INCL=""
10567 else
10568 GPHOTO2LIBS=""
10569 GPHOTO2INCL=""
10573 LIBS="$ac_save_LIBS"
10574 CPPFLAGS="$ac_save_CPPFLAGS"
10577 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10578 then
10579 saved_libs="$LIBS"
10580 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
10582 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
10583 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
10584 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
10585 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
10586 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593 #include <unicode/ubidi.h>
10595 main ()
10597 ubidi_open()
10599 return 0;
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (ac_try="$ac_link"
10604 case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10607 esac
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_link") 2>conftest.er1
10610 ac_status=$?
10611 grep -v '^ *+' conftest.er1 >conftest.err
10612 rm -f conftest.er1
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && {
10616 test -z "$ac_c_werror_flag" ||
10617 test ! -s conftest.err
10618 } && test -s conftest$ac_exeext &&
10619 $as_test_x conftest$ac_exeext; then
10621 cat >>confdefs.h <<\_ACEOF
10622 #define HAVE_ICU 1
10623 _ACEOF
10625 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
10627 { echo "$as_me:$LINENO: result: yes" >&5
10628 echo "${ECHO_T}yes" >&6; }
10629 else
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 { echo "$as_me:$LINENO: result: no" >&5
10634 echo "${ECHO_T}no" >&6; }
10637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10638 conftest$ac_exeext conftest.$ac_ext
10639 done
10640 LIBS="$saved_libs"
10643 RESOLVLIBS=""
10645 if test "$ac_cv_header_resolv_h" = "yes"
10646 then
10647 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
10648 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
10649 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652 ac_check_lib_save_LIBS=$LIBS
10653 LIBS="-lresolv $LIBS"
10654 cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h. */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10661 /* Override any GCC internal prototype to avoid an error.
10662 Use char because int might match the return type of a GCC
10663 builtin and then its argument prototype would still apply. */
10664 #ifdef __cplusplus
10665 extern "C"
10666 #endif
10667 char res_query ();
10669 main ()
10671 return res_query ();
10673 return 0;
10675 _ACEOF
10676 rm -f conftest.$ac_objext conftest$ac_exeext
10677 if { (ac_try="$ac_link"
10678 case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10681 esac
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_link") 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } && {
10690 test -z "$ac_c_werror_flag" ||
10691 test ! -s conftest.err
10692 } && test -s conftest$ac_exeext &&
10693 $as_test_x conftest$ac_exeext; then
10694 ac_cv_lib_resolv_res_query=yes
10695 else
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10699 ac_cv_lib_resolv_res_query=no
10702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10703 conftest$ac_exeext conftest.$ac_ext
10704 LIBS=$ac_check_lib_save_LIBS
10706 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
10707 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
10708 if test $ac_cv_lib_resolv_res_query = yes; then
10710 cat >>confdefs.h <<\_ACEOF
10711 #define HAVE_RESOLV 1
10712 _ACEOF
10714 RESOLVLIBS="-lresolv"
10719 LCMSLIBS=""
10721 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10722 then
10723 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
10724 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
10725 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728 ac_check_lib_save_LIBS=$LIBS
10729 LIBS="-llcms $LIBS"
10730 cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h. */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10737 /* Override any GCC internal prototype to avoid an error.
10738 Use char because int might match the return type of a GCC
10739 builtin and then its argument prototype would still apply. */
10740 #ifdef __cplusplus
10741 extern "C"
10742 #endif
10743 char cmsOpenProfileFromFile ();
10745 main ()
10747 return cmsOpenProfileFromFile ();
10749 return 0;
10751 _ACEOF
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (ac_try="$ac_link"
10754 case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757 esac
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_link") 2>conftest.er1
10760 ac_status=$?
10761 grep -v '^ *+' conftest.er1 >conftest.err
10762 rm -f conftest.er1
10763 cat conftest.err >&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } && {
10766 test -z "$ac_c_werror_flag" ||
10767 test ! -s conftest.err
10768 } && test -s conftest$ac_exeext &&
10769 $as_test_x conftest$ac_exeext; then
10770 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10779 conftest$ac_exeext conftest.$ac_ext
10780 LIBS=$ac_check_lib_save_LIBS
10782 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10783 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10784 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
10786 cat >>confdefs.h <<\_ACEOF
10787 #define HAVE_LCMS 1
10788 _ACEOF
10790 LCMSLIBS="-llcms"
10795 LDAPLIBS=""
10797 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
10798 then
10799 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
10800 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
10801 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804 ac_check_lib_save_LIBS=$LIBS
10805 LIBS="-lldap_r $LIBPTHREAD $LIBS"
10806 cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h. */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10813 /* Override any GCC internal prototype to avoid an error.
10814 Use char because int might match the return type of a GCC
10815 builtin and then its argument prototype would still apply. */
10816 #ifdef __cplusplus
10817 extern "C"
10818 #endif
10819 char ldap_initialize ();
10821 main ()
10823 return ldap_initialize ();
10825 return 0;
10827 _ACEOF
10828 rm -f conftest.$ac_objext conftest$ac_exeext
10829 if { (ac_try="$ac_link"
10830 case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10833 esac
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_link") 2>conftest.er1
10836 ac_status=$?
10837 grep -v '^ *+' conftest.er1 >conftest.err
10838 rm -f conftest.er1
10839 cat conftest.err >&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } && {
10842 test -z "$ac_c_werror_flag" ||
10843 test ! -s conftest.err
10844 } && test -s conftest$ac_exeext &&
10845 $as_test_x conftest$ac_exeext; then
10846 ac_cv_lib_ldap_r_ldap_initialize=yes
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ac_cv_lib_ldap_r_ldap_initialize=no
10854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10855 conftest$ac_exeext conftest.$ac_ext
10856 LIBS=$ac_check_lib_save_LIBS
10858 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
10859 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
10860 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
10861 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
10862 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
10863 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 else
10866 ac_check_lib_save_LIBS=$LIBS
10867 LIBS="-llber $LIBPTHREAD $LIBS"
10868 cat >conftest.$ac_ext <<_ACEOF
10869 /* confdefs.h. */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h. */
10875 /* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
10878 #ifdef __cplusplus
10879 extern "C"
10880 #endif
10881 char ber_init ();
10883 main ()
10885 return ber_init ();
10887 return 0;
10889 _ACEOF
10890 rm -f conftest.$ac_objext conftest$ac_exeext
10891 if { (ac_try="$ac_link"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext &&
10907 $as_test_x conftest$ac_exeext; then
10908 ac_cv_lib_lber_ber_init=yes
10909 else
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 ac_cv_lib_lber_ber_init=no
10916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10920 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
10921 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
10922 if test $ac_cv_lib_lber_ber_init = yes; then
10924 cat >>confdefs.h <<\_ACEOF
10925 #define HAVE_LDAP 1
10926 _ACEOF
10928 LDAPLIBS="-lldap_r -llber"
10933 ac_wine_check_funcs_save_LIBS="$LIBS"
10934 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
10939 for ac_func in \
10940 ldap_count_references \
10941 ldap_first_reference \
10942 ldap_next_reference \
10943 ldap_parse_reference
10945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951 cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h. */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10959 #define $ac_func innocuous_$ac_func
10961 /* System header to define __stub macros and hopefully few prototypes,
10962 which can conflict with char $ac_func (); below.
10963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10964 <limits.h> exists even on freestanding compilers. */
10966 #ifdef __STDC__
10967 # include <limits.h>
10968 #else
10969 # include <assert.h>
10970 #endif
10972 #undef $ac_func
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10977 #ifdef __cplusplus
10978 extern "C"
10979 #endif
10980 char $ac_func ();
10981 /* The GNU C library defines this for functions which it implements
10982 to always fail with ENOSYS. Some functions are actually named
10983 something starting with __ and the normal name is an alias. */
10984 #if defined __stub_$ac_func || defined __stub___$ac_func
10985 choke me
10986 #endif
10989 main ()
10991 return $ac_func ();
10993 return 0;
10995 _ACEOF
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (ac_try="$ac_link"
10998 case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_link") 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } && {
11010 test -z "$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11012 } && test -s conftest$ac_exeext &&
11013 $as_test_x conftest$ac_exeext; then
11014 eval "$as_ac_var=yes"
11015 else
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 eval "$as_ac_var=no"
11022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11023 conftest$ac_exeext conftest.$ac_ext
11025 ac_res=`eval echo '${'$as_ac_var'}'`
11026 { echo "$as_me:$LINENO: result: $ac_res" >&5
11027 echo "${ECHO_T}$ac_res" >&6; }
11028 if test `eval echo '${'$as_ac_var'}'` = yes; then
11029 cat >>confdefs.h <<_ACEOF
11030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11031 _ACEOF
11034 done
11036 LIBS="$ac_wine_check_funcs_save_LIBS"
11039 FREETYPELIBS=""
11041 FREETYPEINCL=""
11043 # Extract the first word of "freetype-config", so it can be a program name with args.
11044 set dummy freetype-config; ac_word=$2
11045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11047 if test "${ac_cv_prog_ft_devel+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050 if test -n "$ft_devel"; then
11051 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
11052 else
11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11056 IFS=$as_save_IFS
11057 test -z "$as_dir" && as_dir=.
11058 for ac_exec_ext in '' $ac_executable_extensions; do
11059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11060 ac_cv_prog_ft_devel="freetype-config"
11061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11062 break 2
11064 done
11065 done
11066 IFS=$as_save_IFS
11068 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
11071 ft_devel=$ac_cv_prog_ft_devel
11072 if test -n "$ft_devel"; then
11073 { echo "$as_me:$LINENO: result: $ft_devel" >&5
11074 echo "${ECHO_T}$ft_devel" >&6; }
11075 else
11076 { echo "$as_me:$LINENO: result: no" >&5
11077 echo "${ECHO_T}no" >&6; }
11081 if test "$ft_devel" = "no"
11082 then
11083 # Extract the first word of "freetype2-config", so it can be a program name with args.
11084 set dummy freetype2-config; ac_word=$2
11085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11087 if test "${ac_cv_prog_ft_devel2+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090 if test -n "$ft_devel2"; then
11091 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
11092 else
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100 ac_cv_prog_ft_devel2="freetype2-config"
11101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 break 2
11104 done
11105 done
11106 IFS=$as_save_IFS
11108 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
11111 ft_devel2=$ac_cv_prog_ft_devel2
11112 if test -n "$ft_devel2"; then
11113 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
11114 echo "${ECHO_T}$ft_devel2" >&6; }
11115 else
11116 { echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6; }
11121 if test "$ft_devel2" = "freetype2-config"
11122 then
11123 ft_devel=$ft_devel2
11127 if test "$ft_devel" = "no"
11128 then
11129 wine_cv_msg_freetype=yes
11130 else
11131 FREETYPELIBS=`$ft_devel --libs`
11132 FREETYPEINCL=`$ft_devel --cflags`
11133 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
11134 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
11135 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138 ac_check_lib_save_LIBS=$LIBS
11139 LIBS="-lfreetype $FREETYPELIBS $LIBS"
11140 cat >conftest.$ac_ext <<_ACEOF
11141 /* confdefs.h. */
11142 _ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h. */
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11150 #ifdef __cplusplus
11151 extern "C"
11152 #endif
11153 char FT_Init_FreeType ();
11155 main ()
11157 return FT_Init_FreeType ();
11159 return 0;
11161 _ACEOF
11162 rm -f conftest.$ac_objext conftest$ac_exeext
11163 if { (ac_try="$ac_link"
11164 case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_link") 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } && {
11176 test -z "$ac_c_werror_flag" ||
11177 test ! -s conftest.err
11178 } && test -s conftest$ac_exeext &&
11179 $as_test_x conftest$ac_exeext; then
11180 ac_cv_lib_freetype_FT_Init_FreeType=yes
11181 else
11182 echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11185 ac_cv_lib_freetype_FT_Init_FreeType=no
11188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11189 conftest$ac_exeext conftest.$ac_ext
11190 LIBS=$ac_check_lib_save_LIBS
11192 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
11193 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
11194 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
11195 ft_lib=yes
11196 else
11197 ft_lib=no
11200 if test "$ft_lib" = "no"
11201 then
11202 wine_cv_msg_freetype=yes
11203 FREETYPELIBS=""
11204 FREETYPEINCL=""
11205 else
11206 ac_save_CPPFLAGS="$CPPFLAGS"
11207 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
11219 for ac_header in ft2build.h \
11220 freetype/freetype.h \
11221 freetype/ftglyph.h \
11222 freetype/tttables.h \
11223 freetype/ftnames.h \
11224 freetype/ftsnames.h \
11225 freetype/ttnameid.h \
11226 freetype/ftoutln.h \
11227 freetype/ftwinfnt.h \
11228 freetype/ftmodapi.h \
11229 freetype/internal/sfnt.h
11231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h. */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 #if HAVE_FT2BUILD_H
11244 #include <ft2build.h>
11245 #endif
11247 #include <$ac_header>
11248 _ACEOF
11249 rm -f conftest.$ac_objext
11250 if { (ac_try="$ac_compile"
11251 case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11254 esac
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_compile") 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } && {
11263 test -z "$ac_c_werror_flag" ||
11264 test ! -s conftest.err
11265 } && test -s conftest.$ac_objext; then
11266 eval "$as_ac_Header=yes"
11267 else
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 eval "$as_ac_Header=no"
11274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11276 ac_res=`eval echo '${'$as_ac_Header'}'`
11277 { echo "$as_me:$LINENO: result: $ac_res" >&5
11278 echo "${ECHO_T}$ac_res" >&6; }
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11282 _ACEOF
11286 done
11288 cat >conftest.$ac_ext <<_ACEOF
11289 /* confdefs.h. */
11290 _ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 #include <ft2build.h>
11295 #include <freetype/fttrigon.h>
11296 _ACEOF
11297 if { (ac_try="$ac_cpp conftest.$ac_ext"
11298 case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11301 esac
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11304 ac_status=$?
11305 grep -v '^ *+' conftest.er1 >conftest.err
11306 rm -f conftest.er1
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } >/dev/null && {
11310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 }; then
11314 cat >>confdefs.h <<\_ACEOF
11315 #define HAVE_FREETYPE_FTTRIGON_H 1
11316 _ACEOF
11318 wine_cv_fttrigon=yes
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11323 wine_cv_fttrigon=no
11326 rm -f conftest.err conftest.$ac_ext
11327 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
11328 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
11329 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332 cat >conftest.$ac_ext <<_ACEOF
11333 /* confdefs.h. */
11334 _ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h. */
11338 #include <freetype/ftmodapi.h>
11340 typedef FT_TrueTypeEngineType ac__type_new_;
11342 main ()
11344 if ((ac__type_new_ *) 0)
11345 return 0;
11346 if (sizeof (ac__type_new_))
11347 return 0;
11349 return 0;
11351 _ACEOF
11352 rm -f conftest.$ac_objext
11353 if { (ac_try="$ac_compile"
11354 case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357 esac
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest.$ac_objext; then
11369 ac_cv_type_FT_TrueTypeEngineType=yes
11370 else
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_cv_type_FT_TrueTypeEngineType=no
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
11380 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
11381 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
11383 cat >>confdefs.h <<_ACEOF
11384 #define HAVE_FT_TRUETYPEENGINETYPE 1
11385 _ACEOF
11390 ac_save_CFLAGS="$CFLAGS"
11391 CFLAGS="$CFLAGS $FREETYPELIBS"
11393 for ac_func in FT_Load_Sfnt_Table
11395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401 cat >conftest.$ac_ext <<_ACEOF
11402 /* confdefs.h. */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11409 #define $ac_func innocuous_$ac_func
11411 /* System header to define __stub macros and hopefully few prototypes,
11412 which can conflict with char $ac_func (); below.
11413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11414 <limits.h> exists even on freestanding compilers. */
11416 #ifdef __STDC__
11417 # include <limits.h>
11418 #else
11419 # include <assert.h>
11420 #endif
11422 #undef $ac_func
11424 /* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char $ac_func ();
11431 /* The GNU C library defines this for functions which it implements
11432 to always fail with ENOSYS. Some functions are actually named
11433 something starting with __ and the normal name is an alias. */
11434 #if defined __stub_$ac_func || defined __stub___$ac_func
11435 choke me
11436 #endif
11439 main ()
11441 return $ac_func ();
11443 return 0;
11445 _ACEOF
11446 rm -f conftest.$ac_objext conftest$ac_exeext
11447 if { (ac_try="$ac_link"
11448 case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11451 esac
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_link") 2>conftest.er1
11454 ac_status=$?
11455 grep -v '^ *+' conftest.er1 >conftest.err
11456 rm -f conftest.er1
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } && {
11460 test -z "$ac_c_werror_flag" ||
11461 test ! -s conftest.err
11462 } && test -s conftest$ac_exeext &&
11463 $as_test_x conftest$ac_exeext; then
11464 eval "$as_ac_var=yes"
11465 else
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11469 eval "$as_ac_var=no"
11472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11473 conftest$ac_exeext conftest.$ac_ext
11475 ac_res=`eval echo '${'$as_ac_var'}'`
11476 { echo "$as_me:$LINENO: result: $ac_res" >&5
11477 echo "${ECHO_T}$ac_res" >&6; }
11478 if test `eval echo '${'$as_ac_var'}'` = yes; then
11479 cat >>confdefs.h <<_ACEOF
11480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11481 _ACEOF
11484 done
11486 CFLAGS="$ac_save_CFLAGS"
11487 CPPFLAGS="$ac_save_CPPFLAGS"
11488 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11489 then
11491 cat >>confdefs.h <<\_ACEOF
11492 #define HAVE_FREETYPE 1
11493 _ACEOF
11495 wine_cv_msg_freetype=no
11496 else
11497 FREETYPELIBS=""
11498 FREETYPEINCL=""
11499 wine_cv_msg_freetype=yes
11504 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
11505 then
11506 FONTSSUBDIRS="fonts"
11510 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
11511 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
11512 if test "${ac_cv_c_ppdev+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 else
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h. */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 #include <linux/ppdev.h>
11523 main ()
11525 ioctl (1,PPCLAIM,0)
11527 return 0;
11529 _ACEOF
11530 rm -f conftest.$ac_objext
11531 if { (ac_try="$ac_compile"
11532 case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11535 esac
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_compile") 2>conftest.er1
11538 ac_status=$?
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } && {
11544 test -z "$ac_c_werror_flag" ||
11545 test ! -s conftest.err
11546 } && test -s conftest.$ac_objext; then
11547 ac_cv_c_ppdev="yes"
11548 else
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11552 ac_cv_c_ppdev="no"
11555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11558 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
11559 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
11560 if test "$ac_cv_c_ppdev" = "yes"
11561 then
11563 cat >>confdefs.h <<\_ACEOF
11564 #define HAVE_PPDEV 1
11565 _ACEOF
11569 { echo "$as_me:$LINENO: checking for va_copy" >&5
11570 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
11571 if test "${ac_cv_c_va_copy+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574 cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h. */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580 #include <stdarg.h>
11582 main ()
11584 va_list ap1, ap2;
11585 va_copy(ap1,ap2);
11588 return 0;
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (ac_try="$ac_link"
11593 case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_link") 2>conftest.er1
11599 ac_status=$?
11600 grep -v '^ *+' conftest.er1 >conftest.err
11601 rm -f conftest.er1
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } && {
11605 test -z "$ac_c_werror_flag" ||
11606 test ! -s conftest.err
11607 } && test -s conftest$ac_exeext &&
11608 $as_test_x conftest$ac_exeext; then
11609 ac_cv_c_va_copy="yes"
11610 else
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11614 ac_cv_c_va_copy="no"
11617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11618 conftest$ac_exeext conftest.$ac_ext
11621 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
11622 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
11623 if test "$ac_cv_c_va_copy" = "yes"
11624 then
11626 cat >>confdefs.h <<\_ACEOF
11627 #define HAVE_VA_COPY 1
11628 _ACEOF
11631 { echo "$as_me:$LINENO: checking for __va_copy" >&5
11632 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
11633 if test "${ac_cv_c___va_copy+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 #include <stdarg.h>
11644 main ()
11646 va_list ap1, ap2;
11647 __va_copy(ap1,ap2);
11650 return 0;
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (ac_try="$ac_link"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_link") 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && {
11667 test -z "$ac_c_werror_flag" ||
11668 test ! -s conftest.err
11669 } && test -s conftest$ac_exeext &&
11670 $as_test_x conftest$ac_exeext; then
11671 ac_cv_c___va_copy="yes"
11672 else
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_cv_c___va_copy="no"
11679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11680 conftest$ac_exeext conftest.$ac_ext
11683 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
11684 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
11685 if test "$ac_cv_c___va_copy" = "yes"
11686 then
11688 cat >>confdefs.h <<\_ACEOF
11689 #define HAVE___VA_COPY 1
11690 _ACEOF
11694 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11695 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
11696 if test "${ac_cv_c_sigsetjmp+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699 cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h. */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11705 #include <setjmp.h>
11707 main ()
11709 sigjmp_buf buf;
11710 sigsetjmp( buf, 1 );
11711 siglongjmp( buf, 1 );
11713 return 0;
11715 _ACEOF
11716 rm -f conftest.$ac_objext conftest$ac_exeext
11717 if { (ac_try="$ac_link"
11718 case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11721 esac
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_link") 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } && {
11730 test -z "$ac_c_werror_flag" ||
11731 test ! -s conftest.err
11732 } && test -s conftest$ac_exeext &&
11733 $as_test_x conftest$ac_exeext; then
11734 ac_cv_c_sigsetjmp="yes"
11735 else
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11739 ac_cv_c_sigsetjmp="no"
11742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11743 conftest$ac_exeext conftest.$ac_ext
11746 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11747 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
11748 if test "$ac_cv_c_sigsetjmp" = "yes"
11749 then
11751 cat >>confdefs.h <<\_ACEOF
11752 #define HAVE_SIGSETJMP 1
11753 _ACEOF
11757 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11758 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
11759 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 #define _GNU_SOURCE
11769 #include <pthread.h>
11771 typedef pthread_rwlock_t ac__type_new_;
11773 main ()
11775 if ((ac__type_new_ *) 0)
11776 return 0;
11777 if (sizeof (ac__type_new_))
11778 return 0;
11780 return 0;
11782 _ACEOF
11783 rm -f conftest.$ac_objext
11784 if { (ac_try="$ac_compile"
11785 case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_compile") 2>conftest.er1
11791 ac_status=$?
11792 grep -v '^ *+' conftest.er1 >conftest.err
11793 rm -f conftest.er1
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } && {
11797 test -z "$ac_c_werror_flag" ||
11798 test ! -s conftest.err
11799 } && test -s conftest.$ac_objext; then
11800 ac_cv_type_pthread_rwlock_t=yes
11801 else
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_cv_type_pthread_rwlock_t=no
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11811 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
11812 if test $ac_cv_type_pthread_rwlock_t = yes; then
11814 cat >>confdefs.h <<_ACEOF
11815 #define HAVE_PTHREAD_RWLOCK_T 1
11816 _ACEOF
11820 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11821 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
11822 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 else
11825 cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h. */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 #define _GNU_SOURCE
11832 #include <pthread.h>
11834 typedef pthread_rwlockattr_t ac__type_new_;
11836 main ()
11838 if ((ac__type_new_ *) 0)
11839 return 0;
11840 if (sizeof (ac__type_new_))
11841 return 0;
11843 return 0;
11845 _ACEOF
11846 rm -f conftest.$ac_objext
11847 if { (ac_try="$ac_compile"
11848 case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_compile") 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } && {
11860 test -z "$ac_c_werror_flag" ||
11861 test ! -s conftest.err
11862 } && test -s conftest.$ac_objext; then
11863 ac_cv_type_pthread_rwlockattr_t=yes
11864 else
11865 echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11868 ac_cv_type_pthread_rwlockattr_t=no
11871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11874 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
11875 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11877 cat >>confdefs.h <<_ACEOF
11878 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11879 _ACEOF
11885 ac_wine_check_funcs_save_LIBS="$LIBS"
11886 LIBS="$LIBS $LIBPTHREAD"
11891 for ac_func in \
11892 pthread_attr_get_np \
11893 pthread_getattr_np \
11894 pthread_get_stackaddr_np \
11895 pthread_get_stacksize_np
11897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903 cat >conftest.$ac_ext <<_ACEOF
11904 /* confdefs.h. */
11905 _ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11911 #define $ac_func innocuous_$ac_func
11913 /* System header to define __stub macros and hopefully few prototypes,
11914 which can conflict with char $ac_func (); below.
11915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916 <limits.h> exists even on freestanding compilers. */
11918 #ifdef __STDC__
11919 # include <limits.h>
11920 #else
11921 # include <assert.h>
11922 #endif
11924 #undef $ac_func
11926 /* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 char $ac_func ();
11933 /* The GNU C library defines this for functions which it implements
11934 to always fail with ENOSYS. Some functions are actually named
11935 something starting with __ and the normal name is an alias. */
11936 #if defined __stub_$ac_func || defined __stub___$ac_func
11937 choke me
11938 #endif
11941 main ()
11943 return $ac_func ();
11945 return 0;
11947 _ACEOF
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (ac_try="$ac_link"
11950 case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11953 esac
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_link") 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } && {
11962 test -z "$ac_c_werror_flag" ||
11963 test ! -s conftest.err
11964 } && test -s conftest$ac_exeext &&
11965 $as_test_x conftest$ac_exeext; then
11966 eval "$as_ac_var=yes"
11967 else
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 eval "$as_ac_var=no"
11974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11975 conftest$ac_exeext conftest.$ac_ext
11977 ac_res=`eval echo '${'$as_ac_var'}'`
11978 { echo "$as_me:$LINENO: result: $ac_res" >&5
11979 echo "${ECHO_T}$ac_res" >&6; }
11980 if test `eval echo '${'$as_ac_var'}'` = yes; then
11981 cat >>confdefs.h <<_ACEOF
11982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11983 _ACEOF
11986 done
11988 LIBS="$ac_wine_check_funcs_save_LIBS"
11990 # Extract the first word of "artsc-config", so it can be a program name with args.
11991 set dummy artsc-config; ac_word=$2
11992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11994 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997 case $ARTSCCONFIG in
11998 [\\/]* | ?:[\\/]*)
11999 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
12010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 break 2
12013 done
12014 done
12015 IFS=$as_save_IFS
12018 esac
12020 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
12021 if test -n "$ARTSCCONFIG"; then
12022 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
12023 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
12024 else
12025 { echo "$as_me:$LINENO: result: no" >&5
12026 echo "${ECHO_T}no" >&6; }
12030 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
12031 then
12032 ARTSC_CFLAGS=""
12033 for i in `$ARTSCCONFIG --cflags`
12035 case "$i" in
12036 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
12037 esac
12038 done
12039 ARTSC_LIBS=""
12040 for i in `$ARTSCCONFIG --libs`
12042 case "$i" in
12043 -L/usr/lib|-L/usr/lib64) ;;
12044 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
12045 esac
12046 done
12047 save_CFLAGS="$CFLAGS"
12048 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
12049 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
12050 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
12051 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054 ac_check_lib_save_LIBS=$LIBS
12055 LIBS="-lartsc $ARTSC_LIBS $LIBS"
12056 cat >conftest.$ac_ext <<_ACEOF
12057 /* confdefs.h. */
12058 _ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12066 #ifdef __cplusplus
12067 extern "C"
12068 #endif
12069 char arts_init ();
12071 main ()
12073 return arts_init ();
12075 return 0;
12077 _ACEOF
12078 rm -f conftest.$ac_objext conftest$ac_exeext
12079 if { (ac_try="$ac_link"
12080 case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12083 esac
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_link") 2>conftest.er1
12086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } && {
12092 test -z "$ac_c_werror_flag" ||
12093 test ! -s conftest.err
12094 } && test -s conftest$ac_exeext &&
12095 $as_test_x conftest$ac_exeext; then
12096 ac_cv_lib_artsc_arts_init=yes
12097 else
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12101 ac_cv_lib_artsc_arts_init=no
12104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12105 conftest$ac_exeext conftest.$ac_ext
12106 LIBS=$ac_check_lib_save_LIBS
12108 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
12109 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
12110 if test $ac_cv_lib_artsc_arts_init = yes; then
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h. */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 #include <artsc.h>
12119 main ()
12121 arts_stream_t stream;
12123 return 0;
12125 _ACEOF
12126 rm -f conftest.$ac_objext
12127 if { (ac_try="$ac_compile"
12128 case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131 esac
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_compile") 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } && {
12140 test -z "$ac_c_werror_flag" ||
12141 test ! -s conftest.err
12142 } && test -s conftest.$ac_objext; then
12143 ARTSLIBS=$ARTSC_LIBS
12145 ARTSINCL=$ARTSC_CFLAGS
12148 cat >>confdefs.h <<\_ACEOF
12149 #define HAVE_ARTS 1
12150 _ACEOF
12152 else
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162 CFLAGS="$save_CFLAGS"
12165 # Extract the first word of "esd-config", so it can be a program name with args.
12166 set dummy esd-config; ac_word=$2
12167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12169 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172 case $ESDCONFIG in
12173 [\\/]* | ?:[\\/]*)
12174 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12180 IFS=$as_save_IFS
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12184 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12186 break 2
12188 done
12189 done
12190 IFS=$as_save_IFS
12193 esac
12195 ESDCONFIG=$ac_cv_path_ESDCONFIG
12196 if test -n "$ESDCONFIG"; then
12197 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
12198 echo "${ECHO_T}$ESDCONFIG" >&6; }
12199 else
12200 { echo "$as_me:$LINENO: result: no" >&5
12201 echo "${ECHO_T}no" >&6; }
12205 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
12206 then
12207 ESD_CFLAGS=""
12208 for i in `$ESDCONFIG --cflags`
12210 case "$i" in
12211 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
12212 esac
12213 done
12214 ESD_LIBS=`$ESDCONFIG --libs`
12215 save_CFLAGS="$CFLAGS"
12216 CFLAGS="$CFLAGS $ESD_CFLAGS"
12217 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
12218 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
12219 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222 ac_check_lib_save_LIBS=$LIBS
12223 LIBS="-lesd $LIBS"
12224 cat >conftest.$ac_ext <<_ACEOF
12225 /* confdefs.h. */
12226 _ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h. */
12231 /* Override any GCC internal prototype to avoid an error.
12232 Use char because int might match the return type of a GCC
12233 builtin and then its argument prototype would still apply. */
12234 #ifdef __cplusplus
12235 extern "C"
12236 #endif
12237 char esd_open_sound ();
12239 main ()
12241 return esd_open_sound ();
12243 return 0;
12245 _ACEOF
12246 rm -f conftest.$ac_objext conftest$ac_exeext
12247 if { (ac_try="$ac_link"
12248 case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_link") 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } && {
12260 test -z "$ac_c_werror_flag" ||
12261 test ! -s conftest.err
12262 } && test -s conftest$ac_exeext &&
12263 $as_test_x conftest$ac_exeext; then
12264 ac_cv_lib_esd_esd_open_sound=yes
12265 else
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 ac_cv_lib_esd_esd_open_sound=no
12272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12273 conftest$ac_exeext conftest.$ac_ext
12274 LIBS=$ac_check_lib_save_LIBS
12276 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
12277 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
12278 if test $ac_cv_lib_esd_esd_open_sound = yes; then
12279 ESDLIBS=$ESD_LIBS
12281 ESDINCL=$ESD_CFLAGS
12284 cat >>confdefs.h <<\_ACEOF
12285 #define HAVE_ESD 1
12286 _ACEOF
12290 CFLAGS="$save_CFLAGS"
12293 ALSALIBS=""
12295 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12296 then
12297 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
12298 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
12299 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302 ac_check_lib_save_LIBS=$LIBS
12303 LIBS="-lasound $LIBS"
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12314 #ifdef __cplusplus
12315 extern "C"
12316 #endif
12317 char snd_pcm_hw_params_get_access ();
12319 main ()
12321 return snd_pcm_hw_params_get_access ();
12323 return 0;
12325 _ACEOF
12326 rm -f conftest.$ac_objext conftest$ac_exeext
12327 if { (ac_try="$ac_link"
12328 case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12331 esac
12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333 (eval "$ac_link") 2>conftest.er1
12334 ac_status=$?
12335 grep -v '^ *+' conftest.er1 >conftest.err
12336 rm -f conftest.er1
12337 cat conftest.err >&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } && {
12340 test -z "$ac_c_werror_flag" ||
12341 test ! -s conftest.err
12342 } && test -s conftest$ac_exeext &&
12343 $as_test_x conftest$ac_exeext; then
12344 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
12345 else
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
12352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12353 conftest$ac_exeext conftest.$ac_ext
12354 LIBS=$ac_check_lib_save_LIBS
12356 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
12357 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
12358 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h. */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 #ifdef HAVE_ALSA_ASOUNDLIB_H
12366 #include <alsa/asoundlib.h>
12367 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12368 #include <sys/asoundlib.h>
12369 #endif
12371 main ()
12373 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
12375 return 0;
12377 _ACEOF
12378 rm -f conftest.$ac_objext
12379 if { (ac_try="$ac_compile"
12380 case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383 esac
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_compile") 2>conftest.er1
12386 ac_status=$?
12387 grep -v '^ *+' conftest.er1 >conftest.err
12388 rm -f conftest.er1
12389 cat conftest.err >&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } && {
12392 test -z "$ac_c_werror_flag" ||
12393 test ! -s conftest.err
12394 } && test -s conftest.$ac_objext; then
12396 cat >>confdefs.h <<\_ACEOF
12397 #define HAVE_ALSA 1
12398 _ACEOF
12400 ALSALIBS="-lasound"
12401 else
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414 AUDIOIOLIBS=""
12416 if test "$ac_cv_header_libaudioio_h" = "yes"
12417 then
12418 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12419 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
12420 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 else
12423 ac_check_lib_save_LIBS=$LIBS
12424 LIBS="-laudioio $LIBS"
12425 cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h. */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12432 /* Override any GCC internal prototype to avoid an error.
12433 Use char because int might match the return type of a GCC
12434 builtin and then its argument prototype would still apply. */
12435 #ifdef __cplusplus
12436 extern "C"
12437 #endif
12438 char AudioIOGetVersion ();
12440 main ()
12442 return AudioIOGetVersion ();
12444 return 0;
12446 _ACEOF
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (ac_try="$ac_link"
12449 case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_link") 2>conftest.er1
12455 ac_status=$?
12456 grep -v '^ *+' conftest.er1 >conftest.err
12457 rm -f conftest.er1
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } && {
12461 test -z "$ac_c_werror_flag" ||
12462 test ! -s conftest.err
12463 } && test -s conftest$ac_exeext &&
12464 $as_test_x conftest$ac_exeext; then
12465 ac_cv_lib_audioio_AudioIOGetVersion=yes
12466 else
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ac_cv_lib_audioio_AudioIOGetVersion=no
12473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12474 conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12477 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12478 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
12479 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12480 AUDIOIOLIBS="-laudioio"
12482 cat >>confdefs.h <<\_ACEOF
12483 #define HAVE_LIBAUDIOIO 1
12484 _ACEOF
12491 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12492 then
12493 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12494 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
12495 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498 ac_check_lib_save_LIBS=$LIBS
12499 LIBS="-lcapi20 $LIBS"
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h. */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12507 /* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply. */
12510 #ifdef __cplusplus
12511 extern "C"
12512 #endif
12513 char capi20_register ();
12515 main ()
12517 return capi20_register ();
12519 return 0;
12521 _ACEOF
12522 rm -f conftest.$ac_objext conftest$ac_exeext
12523 if { (ac_try="$ac_link"
12524 case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12527 esac
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_link") 2>conftest.er1
12530 ac_status=$?
12531 grep -v '^ *+' conftest.er1 >conftest.err
12532 rm -f conftest.er1
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } && {
12536 test -z "$ac_c_werror_flag" ||
12537 test ! -s conftest.err
12538 } && test -s conftest$ac_exeext &&
12539 $as_test_x conftest$ac_exeext; then
12540 ac_cv_lib_capi20_capi20_register=yes
12541 else
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ac_cv_lib_capi20_capi20_register=no
12548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12549 conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12552 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12553 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
12554 if test $ac_cv_lib_capi20_capi20_register = yes; then
12556 cat >>confdefs.h <<\_ACEOF
12557 #define HAVE_CAPI4LINUX 1
12558 _ACEOF
12565 EXTRACFLAGS=""
12567 if test "x${GCC}" = "xyes"
12568 then
12569 EXTRACFLAGS="-Wall -pipe"
12571 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12572 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
12573 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 else
12576 if test "$cross_compiling" = yes; then
12577 ac_cv_c_gcc_strength_bug="yes"
12578 else
12579 cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h. */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12586 int L[4] = {0,1,2,3};
12587 int main(void) {
12588 static int Array[3];
12589 unsigned int B = 3;
12590 int i;
12591 for(i=0; i<B; i++) Array[i] = i - 3;
12592 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12593 L[i] = 4;
12595 exit( Array[1] != -2 || L[2] != 3);
12597 _ACEOF
12598 rm -f conftest$ac_exeext
12599 if { (ac_try="$ac_link"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12609 { (case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_try") 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12618 ac_cv_c_gcc_strength_bug="no"
12619 else
12620 echo "$as_me: program exited with status $ac_status" >&5
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12624 ( exit $ac_status )
12625 ac_cv_c_gcc_strength_bug="yes"
12627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12632 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12633 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
12634 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12635 then
12636 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12640 { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
12641 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
12642 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 else
12645 ac_wine_try_cflags_saved=$CFLAGS
12646 CFLAGS="$CFLAGS -fshort-wchar"
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12655 main ()
12659 return 0;
12661 _ACEOF
12662 rm -f conftest.$ac_objext conftest$ac_exeext
12663 if { (ac_try="$ac_link"
12664 case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667 esac
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_link") 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest$ac_exeext &&
12679 $as_test_x conftest$ac_exeext; then
12680 ac_cv_cflags__fshort_wchar=yes
12681 else
12682 echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12685 ac_cv_cflags__fshort_wchar=no
12688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12689 conftest$ac_exeext conftest.$ac_ext
12690 CFLAGS=$ac_wine_try_cflags_saved
12692 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
12693 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
12694 if test $ac_cv_cflags__fshort_wchar = yes; then
12696 cat >>confdefs.h <<\_ACEOF
12697 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12698 _ACEOF
12702 { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
12703 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
12704 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707 ac_wine_try_cflags_saved=$CFLAGS
12708 CFLAGS="$CFLAGS -fno-strict-aliasing"
12709 cat >conftest.$ac_ext <<_ACEOF
12710 /* confdefs.h. */
12711 _ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h. */
12717 main ()
12721 return 0;
12723 _ACEOF
12724 rm -f conftest.$ac_objext conftest$ac_exeext
12725 if { (ac_try="$ac_link"
12726 case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12729 esac
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_link") 2>conftest.er1
12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest$ac_exeext &&
12741 $as_test_x conftest$ac_exeext; then
12742 ac_cv_cflags__fno_strict_aliasing=yes
12743 else
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 ac_cv_cflags__fno_strict_aliasing=no
12750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12751 conftest$ac_exeext conftest.$ac_ext
12752 CFLAGS=$ac_wine_try_cflags_saved
12754 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12755 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
12756 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
12757 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12760 { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12761 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
12762 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765 ac_wine_try_cflags_saved=$CFLAGS
12766 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12767 cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h. */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12775 main ()
12779 return 0;
12781 _ACEOF
12782 rm -f conftest.$ac_objext conftest$ac_exeext
12783 if { (ac_try="$ac_link"
12784 case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12787 esac
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_link") 2>conftest.er1
12790 ac_status=$?
12791 grep -v '^ *+' conftest.er1 >conftest.err
12792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } && {
12796 test -z "$ac_c_werror_flag" ||
12797 test ! -s conftest.err
12798 } && test -s conftest$ac_exeext &&
12799 $as_test_x conftest$ac_exeext; then
12800 ac_cv_cflags__Wdeclaration_after_statement=yes
12801 else
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12805 ac_cv_cflags__Wdeclaration_after_statement=no
12808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12809 conftest$ac_exeext conftest.$ac_ext
12810 CFLAGS=$ac_wine_try_cflags_saved
12812 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12813 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12814 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
12815 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12818 { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
12819 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
12820 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 else
12823 ac_wine_try_cflags_saved=$CFLAGS
12824 CFLAGS="$CFLAGS -Wwrite-strings"
12825 cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h. */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12833 main ()
12837 return 0;
12839 _ACEOF
12840 rm -f conftest.$ac_objext conftest$ac_exeext
12841 if { (ac_try="$ac_link"
12842 case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_link") 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } && {
12854 test -z "$ac_c_werror_flag" ||
12855 test ! -s conftest.err
12856 } && test -s conftest$ac_exeext &&
12857 $as_test_x conftest$ac_exeext; then
12858 ac_cv_cflags__Wwrite_strings=yes
12859 else
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ac_cv_cflags__Wwrite_strings=no
12866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12867 conftest$ac_exeext conftest.$ac_ext
12868 CFLAGS=$ac_wine_try_cflags_saved
12870 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
12871 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
12872 if test $ac_cv_cflags__Wwrite_strings = yes; then
12873 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12877 saved_CFLAGS="$CFLAGS"
12878 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12879 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12880 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
12881 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884 cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h. */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 #include <string.h>
12892 main ()
12896 return 0;
12898 _ACEOF
12899 rm -f conftest.$ac_objext
12900 if { (ac_try="$ac_compile"
12901 case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904 esac
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_compile") 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } && {
12913 test -z "$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12915 } && test -s conftest.$ac_objext; then
12916 ac_cv_c_string_h_warnings=no
12917 else
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 ac_cv_c_string_h_warnings=yes
12924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12926 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12927 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
12928 CFLAGS="$saved_CFLAGS"
12929 if test "$ac_cv_c_string_h_warnings" = "no"
12930 then
12931 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12934 BUILTINFLAG=""
12936 saved_CFLAGS="$CFLAGS"
12937 CFLAGS="$CFLAGS -Werror"
12938 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
12939 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
12940 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943 cat >conftest.$ac_ext <<_ACEOF
12944 /* confdefs.h. */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12951 main ()
12953 int iswlower(unsigned short);
12955 return 0;
12957 _ACEOF
12958 rm -f conftest.$ac_objext
12959 if { (ac_try="$ac_compile"
12960 case "(($ac_try" in
12961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962 *) ac_try_echo=$ac_try;;
12963 esac
12964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965 (eval "$ac_compile") 2>conftest.er1
12966 ac_status=$?
12967 grep -v '^ *+' conftest.er1 >conftest.err
12968 rm -f conftest.er1
12969 cat conftest.err >&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } && {
12972 test -z "$ac_c_werror_flag" ||
12973 test ! -s conftest.err
12974 } && test -s conftest.$ac_objext; then
12975 ac_cv_c_builtin_wchar_ctype=no
12976 else
12977 echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12980 ac_cv_c_builtin_wchar_ctype=yes
12983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
12986 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
12987 CFLAGS="$saved_CFLAGS"
12988 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
12989 then
12990 BUILTINFLAG="-fno-builtin"
12995 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12996 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
12997 if test "${ac_cv_asm_func_def+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 else
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 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"); }
13009 main ()
13013 return 0;
13015 _ACEOF
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020 *) ac_try_echo=$ac_try;;
13021 esac
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023 (eval "$ac_link") 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } && {
13030 test -z "$ac_c_werror_flag" ||
13031 test ! -s conftest.err
13032 } && test -s conftest$ac_exeext &&
13033 $as_test_x conftest$ac_exeext; then
13034 ac_cv_asm_func_def=".def"
13035 else
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
13048 main ()
13052 return 0;
13054 _ACEOF
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (ac_try="$ac_link"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060 esac
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_link") 2>conftest.er1
13063 ac_status=$?
13064 grep -v '^ *+' conftest.er1 >conftest.err
13065 rm -f conftest.er1
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } && {
13069 test -z "$ac_c_werror_flag" ||
13070 test ! -s conftest.err
13071 } && test -s conftest$ac_exeext &&
13072 $as_test_x conftest$ac_exeext; then
13073 ac_cv_asm_func_def=".type @function"
13074 else
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h. */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
13087 main ()
13091 return 0;
13093 _ACEOF
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (ac_try="$ac_link"
13096 case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099 esac
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_link") 2>conftest.er1
13102 ac_status=$?
13103 grep -v '^ *+' conftest.er1 >conftest.err
13104 rm -f conftest.er1
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } && {
13108 test -z "$ac_c_werror_flag" ||
13109 test ! -s conftest.err
13110 } && test -s conftest$ac_exeext &&
13111 $as_test_x conftest$ac_exeext; then
13112 ac_cv_asm_func_def=".type 2"
13113 else
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13117 ac_cv_asm_func_def="unknown"
13120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13121 conftest$ac_exeext conftest.$ac_ext
13124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13125 conftest$ac_exeext conftest.$ac_ext
13128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13129 conftest$ac_exeext conftest.$ac_ext
13131 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13132 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
13136 case "$ac_cv_asm_func_def" in
13137 ".def")
13138 cat >>confdefs.h <<\_ACEOF
13139 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13140 _ACEOF
13142 ".type @function")
13143 cat >>confdefs.h <<\_ACEOF
13144 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13145 _ACEOF
13147 ".type 2")
13148 cat >>confdefs.h <<\_ACEOF
13149 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13150 _ACEOF
13153 cat >>confdefs.h <<\_ACEOF
13154 #define __ASM_FUNC(name) ""
13155 _ACEOF
13157 esac
13160 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13161 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
13162 if test "${ac_cv_c_extern_prefix+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165 cat >conftest.$ac_ext <<_ACEOF
13166 /* confdefs.h. */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13172 extern int ac_test;
13174 main ()
13176 if (ac_test) return 1
13178 return 0;
13180 _ACEOF
13181 rm -f conftest.$ac_objext conftest$ac_exeext
13182 if { (ac_try="$ac_link"
13183 case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13186 esac
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_link") 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } && {
13195 test -z "$ac_c_werror_flag" ||
13196 test ! -s conftest.err
13197 } && test -s conftest$ac_exeext &&
13198 $as_test_x conftest$ac_exeext; then
13199 ac_cv_c_extern_prefix="yes"
13200 else
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13204 ac_cv_c_extern_prefix="no"
13207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13208 conftest$ac_exeext conftest.$ac_ext
13210 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13211 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
13215 if test "$ac_cv_c_extern_prefix" = "yes"
13216 then
13217 cat >>confdefs.h <<\_ACEOF
13218 #define __ASM_NAME(name) "_" name
13219 _ACEOF
13221 else
13222 cat >>confdefs.h <<\_ACEOF
13223 #define __ASM_NAME(name) name
13224 _ACEOF
13229 DLLEXT=""
13231 DLLFLAGS="-D_REENTRANT"
13233 LDSHARED=""
13235 LDDLLFLAGS=""
13237 LIBEXT="so"
13239 IMPLIBEXT="def"
13241 LIBWINE_LDFLAGS=""
13244 case $host_os in
13245 cygwin*|mingw32*)
13246 if test -n "$ac_tool_prefix"; then
13247 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13248 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13251 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 else
13254 if test -n "$DLLTOOL"; then
13255 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13256 else
13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
13263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13264 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13268 done
13269 done
13270 IFS=$as_save_IFS
13274 DLLTOOL=$ac_cv_prog_DLLTOOL
13275 if test -n "$DLLTOOL"; then
13276 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13277 echo "${ECHO_T}$DLLTOOL" >&6; }
13278 else
13279 { echo "$as_me:$LINENO: result: no" >&5
13280 echo "${ECHO_T}no" >&6; }
13285 if test -z "$ac_cv_prog_DLLTOOL"; then
13286 ac_ct_DLLTOOL=$DLLTOOL
13287 # Extract the first word of "dlltool", so it can be a program name with args.
13288 set dummy dlltool; ac_word=$2
13289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13291 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 else
13294 if test -n "$ac_ct_DLLTOOL"; then
13295 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13296 else
13297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298 for as_dir in $PATH
13300 IFS=$as_save_IFS
13301 test -z "$as_dir" && as_dir=.
13302 for ac_exec_ext in '' $ac_executable_extensions; do
13303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13304 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13306 break 2
13308 done
13309 done
13310 IFS=$as_save_IFS
13314 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13315 if test -n "$ac_ct_DLLTOOL"; then
13316 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13317 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
13318 else
13319 { echo "$as_me:$LINENO: result: no" >&5
13320 echo "${ECHO_T}no" >&6; }
13323 if test "x$ac_ct_DLLTOOL" = x; then
13324 DLLTOOL="false"
13325 else
13326 case $cross_compiling:$ac_tool_warned in
13327 yes:)
13328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13329 whose name does not start with the host triplet. If you think this
13330 configuration is useful to you, please write to autoconf@gnu.org." >&5
13331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13332 whose name does not start with the host triplet. If you think this
13333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13334 ac_tool_warned=yes ;;
13335 esac
13336 DLLTOOL=$ac_ct_DLLTOOL
13338 else
13339 DLLTOOL="$ac_cv_prog_DLLTOOL"
13342 if test -n "$ac_tool_prefix"; then
13343 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13344 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13347 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 else
13350 if test -n "$DLLWRAP"; then
13351 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13352 else
13353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13354 for as_dir in $PATH
13356 IFS=$as_save_IFS
13357 test -z "$as_dir" && as_dir=.
13358 for ac_exec_ext in '' $ac_executable_extensions; do
13359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13360 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13362 break 2
13364 done
13365 done
13366 IFS=$as_save_IFS
13370 DLLWRAP=$ac_cv_prog_DLLWRAP
13371 if test -n "$DLLWRAP"; then
13372 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13373 echo "${ECHO_T}$DLLWRAP" >&6; }
13374 else
13375 { echo "$as_me:$LINENO: result: no" >&5
13376 echo "${ECHO_T}no" >&6; }
13381 if test -z "$ac_cv_prog_DLLWRAP"; then
13382 ac_ct_DLLWRAP=$DLLWRAP
13383 # Extract the first word of "dllwrap", so it can be a program name with args.
13384 set dummy dllwrap; ac_word=$2
13385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13387 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390 if test -n "$ac_ct_DLLWRAP"; then
13391 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13392 else
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13396 IFS=$as_save_IFS
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13400 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 break 2
13404 done
13405 done
13406 IFS=$as_save_IFS
13410 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13411 if test -n "$ac_ct_DLLWRAP"; then
13412 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13413 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
13414 else
13415 { echo "$as_me:$LINENO: result: no" >&5
13416 echo "${ECHO_T}no" >&6; }
13419 if test "x$ac_ct_DLLWRAP" = x; then
13420 DLLWRAP="false"
13421 else
13422 case $cross_compiling:$ac_tool_warned in
13423 yes:)
13424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13425 whose name does not start with the host triplet. If you think this
13426 configuration is useful to you, please write to autoconf@gnu.org." >&5
13427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13428 whose name does not start with the host triplet. If you think this
13429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13430 ac_tool_warned=yes ;;
13431 esac
13432 DLLWRAP=$ac_ct_DLLWRAP
13434 else
13435 DLLWRAP="$ac_cv_prog_DLLWRAP"
13438 if test "$DLLWRAP" = "false"; then
13439 LIBEXT="a"
13440 else
13441 LIBEXT="dll"
13443 IMPLIBEXT="a"
13444 WIN16_FILES=""
13445 WIN16_INSTALL=""
13447 darwin*|macosx*)
13448 DLLEXT=".so"
13449 LIBEXT="dylib"
13450 DLLFLAGS="$DLLFLAGS -fPIC"
13451 LDDLLFLAGS="-bundle -multiply_defined suppress"
13452 LIBWINE_LDFLAGS="-multiply_defined suppress"
13453 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
13454 STRIP="$STRIP -u -r"
13455 COREFOUNDATIONLIB="-framework CoreFoundation"
13457 IOKITLIB="-framework IOKit -framework CoreFoundation"
13459 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
13461 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
13462 then
13463 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
13466 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
13467 then
13468 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
13471 case $host_cpu in
13472 *powerpc*)
13473 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
13474 esac
13475 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
13476 then
13477 CARBONLIB="-framework Carbon"
13479 QUARTZFILES='$(QUARTZFILES)'
13483 DLLFLAGS="$DLLFLAGS -fPIC"
13484 DLLEXT=".so"
13485 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13486 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
13487 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490 ac_wine_try_cflags_saved=$CFLAGS
13491 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
13492 cat >conftest.$ac_ext <<_ACEOF
13493 void myfunc() {}
13494 _ACEOF
13495 rm -f conftest.$ac_objext conftest$ac_exeext
13496 if { (ac_try="$ac_link"
13497 case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500 esac
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_link") 2>conftest.er1
13503 ac_status=$?
13504 grep -v '^ *+' conftest.er1 >conftest.err
13505 rm -f conftest.er1
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } && {
13509 test -z "$ac_c_werror_flag" ||
13510 test ! -s conftest.err
13511 } && test -s conftest$ac_exeext &&
13512 $as_test_x conftest$ac_exeext; then
13513 ac_cv_c_dll_gnuelf="yes"
13514 else
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 ac_cv_c_dll_gnuelf="no"
13521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13522 conftest$ac_exeext conftest.$ac_ext
13523 CFLAGS=$ac_wine_try_cflags_saved
13525 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13526 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
13527 if test "$ac_cv_c_dll_gnuelf" = "yes"
13528 then
13529 LDSHARED="\$(CC) -shared"
13530 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13531 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
13532 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
13533 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536 ac_wine_try_cflags_saved=$CFLAGS
13537 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
13538 cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h. */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13546 main ()
13550 return 0;
13552 _ACEOF
13553 rm -f conftest.$ac_objext conftest$ac_exeext
13554 if { (ac_try="$ac_link"
13555 case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558 esac
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_link") 2>conftest.er1
13561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } && {
13567 test -z "$ac_c_werror_flag" ||
13568 test ! -s conftest.err
13569 } && test -s conftest$ac_exeext &&
13570 $as_test_x conftest$ac_exeext; then
13571 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
13572 else
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13576 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
13579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13580 conftest$ac_exeext conftest.$ac_ext
13581 CFLAGS=$ac_wine_try_cflags_saved
13583 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
13584 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
13585 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
13586 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13587 else
13588 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
13589 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
13590 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 else
13593 ac_wine_try_cflags_saved=$CFLAGS
13594 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
13595 cat >conftest.$ac_ext <<_ACEOF
13596 /* confdefs.h. */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13603 main ()
13607 return 0;
13609 _ACEOF
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (ac_try="$ac_link"
13612 case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13615 esac
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_link") 2>conftest.er1
13618 ac_status=$?
13619 grep -v '^ *+' conftest.er1 >conftest.err
13620 rm -f conftest.er1
13621 cat conftest.err >&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } && {
13624 test -z "$ac_c_werror_flag" ||
13625 test ! -s conftest.err
13626 } && test -s conftest$ac_exeext &&
13627 $as_test_x conftest$ac_exeext; then
13628 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
13629 else
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13633 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
13636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13637 conftest$ac_exeext conftest.$ac_ext
13638 CFLAGS=$ac_wine_try_cflags_saved
13640 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
13641 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
13642 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
13643 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
13649 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
13650 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
13651 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654 ac_wine_try_cflags_saved=$CFLAGS
13655 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13656 cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h. */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13664 main ()
13668 return 0;
13670 _ACEOF
13671 rm -f conftest.$ac_objext conftest$ac_exeext
13672 if { (ac_try="$ac_link"
13673 case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13676 esac
13677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13678 (eval "$ac_link") 2>conftest.er1
13679 ac_status=$?
13680 grep -v '^ *+' conftest.er1 >conftest.err
13681 rm -f conftest.er1
13682 cat conftest.err >&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && {
13685 test -z "$ac_c_werror_flag" ||
13686 test ! -s conftest.err
13687 } && test -s conftest$ac_exeext &&
13688 $as_test_x conftest$ac_exeext; then
13689 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
13690 else
13691 echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13694 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
13697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13698 conftest$ac_exeext conftest.$ac_ext
13699 CFLAGS=$ac_wine_try_cflags_saved
13701 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
13702 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
13703 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
13704 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13708 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
13709 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
13710 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 else
13713 ac_wine_try_cflags_saved=$CFLAGS
13714 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13715 cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13723 main ()
13727 return 0;
13729 _ACEOF
13730 rm -f conftest.$ac_objext conftest$ac_exeext
13731 if { (ac_try="$ac_link"
13732 case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735 esac
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_link") 2>conftest.er1
13738 ac_status=$?
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } && {
13744 test -z "$ac_c_werror_flag" ||
13745 test ! -s conftest.err
13746 } && test -s conftest$ac_exeext &&
13747 $as_test_x conftest$ac_exeext; then
13748 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
13749 else
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
13756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13757 conftest$ac_exeext conftest.$ac_ext
13758 CFLAGS=$ac_wine_try_cflags_saved
13760 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
13761 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
13762 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
13763 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13767 echo '{ global: *; };' >conftest.map
13768 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
13769 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
13770 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 ac_wine_try_cflags_saved=$CFLAGS
13774 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h. */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13783 main ()
13787 return 0;
13789 _ACEOF
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (ac_try="$ac_link"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795 esac
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_link") 2>conftest.er1
13798 ac_status=$?
13799 grep -v '^ *+' conftest.er1 >conftest.err
13800 rm -f conftest.er1
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } && {
13804 test -z "$ac_c_werror_flag" ||
13805 test ! -s conftest.err
13806 } && test -s conftest$ac_exeext &&
13807 $as_test_x conftest$ac_exeext; then
13808 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
13809 else
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
13816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13817 conftest$ac_exeext conftest.$ac_ext
13818 CFLAGS=$ac_wine_try_cflags_saved
13820 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
13821 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
13822 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
13823 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13826 rm -f conftest.map
13828 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
13829 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
13830 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 else
13833 ac_wine_try_cflags_saved=$CFLAGS
13834 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13835 cat >conftest.$ac_ext <<_ACEOF
13836 /* confdefs.h. */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13843 main ()
13847 return 0;
13849 _ACEOF
13850 rm -f conftest.$ac_objext conftest$ac_exeext
13851 if { (ac_try="$ac_link"
13852 case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855 esac
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_link") 2>conftest.er1
13858 ac_status=$?
13859 grep -v '^ *+' conftest.er1 >conftest.err
13860 rm -f conftest.er1
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } && {
13864 test -z "$ac_c_werror_flag" ||
13865 test ! -s conftest.err
13866 } && test -s conftest$ac_exeext &&
13867 $as_test_x conftest$ac_exeext; then
13868 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
13869 else
13870 echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13873 ac_cv_cflags__fPIC__Wl___export_dynamic=no
13876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13877 conftest$ac_exeext conftest.$ac_ext
13878 CFLAGS=$ac_wine_try_cflags_saved
13880 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
13881 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
13882 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
13883 LDEXECFLAGS="-Wl,--export-dynamic"
13888 as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
13889 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
13890 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
13891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894 ac_wine_try_cflags_saved=$CFLAGS
13895 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
13896 cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h. */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13904 main ()
13908 return 0;
13910 _ACEOF
13911 rm -f conftest.$ac_objext conftest$ac_exeext
13912 if { (ac_try="$ac_link"
13913 case "(($ac_try" in
13914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915 *) ac_try_echo=$ac_try;;
13916 esac
13917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918 (eval "$ac_link") 2>conftest.er1
13919 ac_status=$?
13920 grep -v '^ *+' conftest.er1 >conftest.err
13921 rm -f conftest.er1
13922 cat conftest.err >&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } && {
13925 test -z "$ac_c_werror_flag" ||
13926 test ! -s conftest.err
13927 } && test -s conftest$ac_exeext &&
13928 $as_test_x conftest$ac_exeext; then
13929 eval "$as_ac_var=yes"
13930 else
13931 echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.$ac_ext >&5
13934 eval "$as_ac_var=no"
13937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13938 conftest$ac_exeext conftest.$ac_ext
13939 CFLAGS=$ac_wine_try_cflags_saved
13941 ac_res=`eval echo '${'$as_ac_var'}'`
13942 { echo "$as_me:$LINENO: result: $ac_res" >&5
13943 echo "${ECHO_T}$ac_res" >&6; }
13944 if test `eval echo '${'$as_ac_var'}'` = yes; then
13945 LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
13949 case $host_cpu in
13950 *i[3456789]86* | x86_64)
13951 { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
13952 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
13953 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955 else
13956 ac_wine_try_cflags_saved=$CFLAGS
13957 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
13958 cat >conftest.$ac_ext <<_ACEOF
13959 /* confdefs.h. */
13960 _ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13966 main ()
13970 return 0;
13972 _ACEOF
13973 rm -f conftest.$ac_objext conftest$ac_exeext
13974 if { (ac_try="$ac_link"
13975 case "(($ac_try" in
13976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13978 esac
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980 (eval "$ac_link") 2>conftest.er1
13981 ac_status=$?
13982 grep -v '^ *+' conftest.er1 >conftest.err
13983 rm -f conftest.er1
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } && {
13987 test -z "$ac_c_werror_flag" ||
13988 test ! -s conftest.err
13989 } && test -s conftest$ac_exeext &&
13990 $as_test_x conftest$ac_exeext; then
13991 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
13992 else
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
13999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14000 conftest$ac_exeext conftest.$ac_ext
14001 CFLAGS=$ac_wine_try_cflags_saved
14003 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
14004 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
14005 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
14006 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
14010 esac
14012 else
14013 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14014 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
14015 if test "${ac_cv_c_dll_unixware+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018 ac_wine_try_cflags_saved=$CFLAGS
14019 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14020 cat >conftest.$ac_ext <<_ACEOF
14021 void myfunc() {}
14022 _ACEOF
14023 rm -f conftest.$ac_objext conftest$ac_exeext
14024 if { (ac_try="$ac_link"
14025 case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14028 esac
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_link") 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } && {
14037 test -z "$ac_c_werror_flag" ||
14038 test ! -s conftest.err
14039 } && test -s conftest$ac_exeext &&
14040 $as_test_x conftest$ac_exeext; then
14041 ac_cv_c_dll_unixware="yes"
14042 else
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ac_cv_c_dll_unixware="no"
14049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14050 conftest$ac_exeext conftest.$ac_ext
14051 CFLAGS=$ac_wine_try_cflags_saved
14053 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14054 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
14055 if test "$ac_cv_c_dll_unixware" = "yes"
14056 then
14057 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14058 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14060 else
14061 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14062 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
14063 if test "${ac_cv_c_dll_hpux+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066 ac_wine_try_cflags_saved=$CFLAGS
14067 CFLAGS="$CFLAGS -shared"
14068 cat >conftest.$ac_ext <<_ACEOF
14069 void myfunc() {}
14070 _ACEOF
14071 rm -f conftest.$ac_objext conftest$ac_exeext
14072 if { (ac_try="$ac_link"
14073 case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_link") 2>conftest.er1
14079 ac_status=$?
14080 grep -v '^ *+' conftest.er1 >conftest.err
14081 rm -f conftest.er1
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } && {
14085 test -z "$ac_c_werror_flag" ||
14086 test ! -s conftest.err
14087 } && test -s conftest$ac_exeext &&
14088 $as_test_x conftest$ac_exeext; then
14089 ac_cv_c_dll_hpux="yes"
14090 else
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14094 ac_cv_c_dll_hpux="no"
14097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14098 conftest$ac_exeext conftest.$ac_ext
14099 CFLAGS=$ac_wine_try_cflags_saved
14101 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14102 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
14103 if test "$ac_cv_c_dll_hpux" = "yes"
14104 then
14105 LIBEXT="sl"
14106 DLLEXT=".sl"
14107 LDDLLFLAGS="-shared -fPIC"
14108 LDSHARED="\$(CC) -shared"
14113 CROSSTEST=""
14115 if test "$cross_compiling" = "no"
14116 then
14117 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
14119 # Extract the first word of "$ac_prog", so it can be a program name with args.
14120 set dummy $ac_prog; ac_word=$2
14121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14123 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126 if test -n "$CROSSCC"; then
14127 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14128 else
14129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130 for as_dir in $PATH
14132 IFS=$as_save_IFS
14133 test -z "$as_dir" && as_dir=.
14134 for ac_exec_ext in '' $ac_executable_extensions; do
14135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14136 ac_cv_prog_CROSSCC="$ac_prog"
14137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14138 break 2
14140 done
14141 done
14142 IFS=$as_save_IFS
14146 CROSSCC=$ac_cv_prog_CROSSCC
14147 if test -n "$CROSSCC"; then
14148 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
14149 echo "${ECHO_T}$CROSSCC" >&6; }
14150 else
14151 { echo "$as_me:$LINENO: result: no" >&5
14152 echo "${ECHO_T}no" >&6; }
14156 test -n "$CROSSCC" && break
14157 done
14158 test -n "$CROSSCC" || CROSSCC="false"
14160 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
14162 # Extract the first word of "$ac_prog", so it can be a program name with args.
14163 set dummy $ac_prog; ac_word=$2
14164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14166 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169 if test -n "$DLLTOOL"; then
14170 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14171 else
14172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173 for as_dir in $PATH
14175 IFS=$as_save_IFS
14176 test -z "$as_dir" && as_dir=.
14177 for ac_exec_ext in '' $ac_executable_extensions; do
14178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14179 ac_cv_prog_DLLTOOL="$ac_prog"
14180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14181 break 2
14183 done
14184 done
14185 IFS=$as_save_IFS
14189 DLLTOOL=$ac_cv_prog_DLLTOOL
14190 if test -n "$DLLTOOL"; then
14191 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14192 echo "${ECHO_T}$DLLTOOL" >&6; }
14193 else
14194 { echo "$as_me:$LINENO: result: no" >&5
14195 echo "${ECHO_T}no" >&6; }
14199 test -n "$DLLTOOL" && break
14200 done
14201 test -n "$DLLTOOL" || DLLTOOL="false"
14203 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres
14205 # Extract the first word of "$ac_prog", so it can be a program name with args.
14206 set dummy $ac_prog; ac_word=$2
14207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14209 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 else
14212 if test -n "$CROSSWINDRES"; then
14213 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14214 else
14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14218 IFS=$as_save_IFS
14219 test -z "$as_dir" && as_dir=.
14220 for ac_exec_ext in '' $ac_executable_extensions; do
14221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14222 ac_cv_prog_CROSSWINDRES="$ac_prog"
14223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14224 break 2
14226 done
14227 done
14228 IFS=$as_save_IFS
14232 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14233 if test -n "$CROSSWINDRES"; then
14234 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14235 echo "${ECHO_T}$CROSSWINDRES" >&6; }
14236 else
14237 { echo "$as_me:$LINENO: result: no" >&5
14238 echo "${ECHO_T}no" >&6; }
14242 test -n "$CROSSWINDRES" && break
14243 done
14244 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14246 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14249 esac
14251 if test "$LIBEXT" = "a"; then
14252 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14253 It is currently not possible to build Wine without shared library
14254 (.so) support to allow transparent switch between .so and .dll files.
14255 If you are using Linux, you will need a newer binutils.
14256 " >&5
14257 echo "$as_me: error: could not find a way to build shared libraries.
14258 It is currently not possible to build Wine without shared library
14259 (.so) support to allow transparent switch between .so and .dll files.
14260 If you are using Linux, you will need a newer binutils.
14261 " >&2;}
14262 { (exit 1); exit 1; }; }
14265 case $build_os in
14266 cygwin*|mingw32*)
14267 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
14269 darwin*|macosx*)
14270 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
14273 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
14275 esac
14277 case $host_os in
14278 mingw32*)
14279 CRTLIBS="-lmsvcrt"
14281 SOCKETLIBS="-lws2_32"
14284 esac
14286 MAIN_BINARY="wine-pthread"
14287 case $host_cpu in
14288 *i[3456789]86*)
14289 case $host_os in
14290 linux* | k*bsd*-gnu)
14291 MAIN_BINARY="wine-glibc"
14293 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
14295 esac
14297 esac
14300 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14301 then
14302 # Extract the first word of "ldd", so it can be a program name with args.
14303 set dummy ldd; ac_word=$2
14304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14306 if test "${ac_cv_path_LDD+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 else
14309 case $LDD in
14310 [\\/]* | ?:[\\/]*)
14311 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315 as_dummy="/sbin:/usr/sbin:$PATH"
14316 for as_dir in $as_dummy
14318 IFS=$as_save_IFS
14319 test -z "$as_dir" && as_dir=.
14320 for ac_exec_ext in '' $ac_executable_extensions; do
14321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14322 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14324 break 2
14326 done
14327 done
14328 IFS=$as_save_IFS
14330 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14332 esac
14334 LDD=$ac_cv_path_LDD
14335 if test -n "$LDD"; then
14336 { echo "$as_me:$LINENO: result: $LDD" >&5
14337 echo "${ECHO_T}$LDD" >&6; }
14338 else
14339 { echo "$as_me:$LINENO: result: no" >&5
14340 echo "${ECHO_T}no" >&6; }
14344 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14345 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
14346 if test "${ac_cv_lib_soname_X11+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349 ac_get_soname_save_LIBS=$LIBS
14350 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14351 cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h. */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14361 #ifdef __cplusplus
14362 extern "C"
14363 #endif
14364 char XCreateWindow ();
14366 main ()
14368 return XCreateWindow ();
14370 return 0;
14372 _ACEOF
14373 rm -f conftest.$ac_objext conftest$ac_exeext
14374 if { (ac_try="$ac_link"
14375 case "(($ac_try" in
14376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14377 *) ac_try_echo=$ac_try;;
14378 esac
14379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14380 (eval "$ac_link") 2>conftest.er1
14381 ac_status=$?
14382 grep -v '^ *+' conftest.er1 >conftest.err
14383 rm -f conftest.er1
14384 cat conftest.err >&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } && {
14387 test -z "$ac_c_werror_flag" ||
14388 test ! -s conftest.err
14389 } && test -s conftest$ac_exeext &&
14390 $as_test_x conftest$ac_exeext; then
14391 case "$LIBEXT" in
14392 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'` ;;
14393 so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14394 esac
14395 if test "x$ac_cv_lib_soname_X11" = "x"
14396 then
14397 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14399 else
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14407 conftest$ac_exeext conftest.$ac_ext
14408 LIBS=$ac_get_soname_save_LIBS
14410 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14411 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
14412 if test "${ac_cv_lib_soname_X11+set}" = set; then
14414 cat >>confdefs.h <<_ACEOF
14415 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14416 _ACEOF
14420 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
14421 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
14422 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 else
14425 ac_get_soname_save_LIBS=$LIBS
14426 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14427 cat >conftest.$ac_ext <<_ACEOF
14428 /* confdefs.h. */
14429 _ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14434 /* Override any GCC internal prototype to avoid an error.
14435 Use char because int might match the return type of a GCC
14436 builtin and then its argument prototype would still apply. */
14437 #ifdef __cplusplus
14438 extern "C"
14439 #endif
14440 char XextCreateExtension ();
14442 main ()
14444 return XextCreateExtension ();
14446 return 0;
14448 _ACEOF
14449 rm -f conftest.$ac_objext conftest$ac_exeext
14450 if { (ac_try="$ac_link"
14451 case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14454 esac
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_link") 2>conftest.er1
14457 ac_status=$?
14458 grep -v '^ *+' conftest.er1 >conftest.err
14459 rm -f conftest.er1
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } && {
14463 test -z "$ac_c_werror_flag" ||
14464 test ! -s conftest.err
14465 } && test -s conftest$ac_exeext &&
14466 $as_test_x conftest$ac_exeext; then
14467 case "$LIBEXT" in
14468 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'` ;;
14469 so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14470 esac
14471 if test "x$ac_cv_lib_soname_Xext" = "x"
14472 then
14473 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14475 else
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14479 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14483 conftest$ac_exeext conftest.$ac_ext
14484 LIBS=$ac_get_soname_save_LIBS
14486 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14487 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
14488 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14490 cat >>confdefs.h <<_ACEOF
14491 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14492 _ACEOF
14496 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
14497 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
14498 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501 ac_get_soname_save_LIBS=$LIBS
14502 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14503 cat >conftest.$ac_ext <<_ACEOF
14504 /* confdefs.h. */
14505 _ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14510 /* Override any GCC internal prototype to avoid an error.
14511 Use char because int might match the return type of a GCC
14512 builtin and then its argument prototype would still apply. */
14513 #ifdef __cplusplus
14514 extern "C"
14515 #endif
14516 char XOpenDevice ();
14518 main ()
14520 return XOpenDevice ();
14522 return 0;
14524 _ACEOF
14525 rm -f conftest.$ac_objext conftest$ac_exeext
14526 if { (ac_try="$ac_link"
14527 case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14530 esac
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532 (eval "$ac_link") 2>conftest.er1
14533 ac_status=$?
14534 grep -v '^ *+' conftest.er1 >conftest.err
14535 rm -f conftest.er1
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } && {
14539 test -z "$ac_c_werror_flag" ||
14540 test ! -s conftest.err
14541 } && test -s conftest$ac_exeext &&
14542 $as_test_x conftest$ac_exeext; then
14543 case "$LIBEXT" in
14544 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'` ;;
14545 so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14546 esac
14547 if test "x$ac_cv_lib_soname_Xi" = "x"
14548 then
14549 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14551 else
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14555 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14559 conftest$ac_exeext conftest.$ac_ext
14560 LIBS=$ac_get_soname_save_LIBS
14562 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14563 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
14564 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14566 cat >>confdefs.h <<_ACEOF
14567 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14568 _ACEOF
14572 { echo "$as_me:$LINENO: checking for -lXinerama soname" >&5
14573 echo $ECHO_N "checking for -lXinerama soname... $ECHO_C" >&6; }
14574 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 else
14577 ac_get_soname_save_LIBS=$LIBS
14578 LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14579 cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h. */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14586 /* Override any GCC internal prototype to avoid an error.
14587 Use char because int might match the return type of a GCC
14588 builtin and then its argument prototype would still apply. */
14589 #ifdef __cplusplus
14590 extern "C"
14591 #endif
14592 char XineramaQueryScreens ();
14594 main ()
14596 return XineramaQueryScreens ();
14598 return 0;
14600 _ACEOF
14601 rm -f conftest.$ac_objext conftest$ac_exeext
14602 if { (ac_try="$ac_link"
14603 case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14606 esac
14607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_link") 2>conftest.er1
14609 ac_status=$?
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } && {
14615 test -z "$ac_c_werror_flag" ||
14616 test ! -s conftest.err
14617 } && test -s conftest$ac_exeext &&
14618 $as_test_x conftest$ac_exeext; then
14619 case "$LIBEXT" in
14620 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'` ;;
14621 so) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep libXinerama\\.so | sed -e "s/^.*\(libXinerama\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14622 esac
14623 if test "x$ac_cv_lib_soname_Xinerama" = "x"
14624 then
14625 ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14627 else
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14631 ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14635 conftest$ac_exeext conftest.$ac_ext
14636 LIBS=$ac_get_soname_save_LIBS
14638 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
14639 echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
14640 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14642 cat >>confdefs.h <<_ACEOF
14643 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
14644 _ACEOF
14648 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14649 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
14650 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 else
14653 ac_get_soname_save_LIBS=$LIBS
14654 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14655 cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h. */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14662 /* Override any GCC internal prototype to avoid an error.
14663 Use char because int might match the return type of a GCC
14664 builtin and then its argument prototype would still apply. */
14665 #ifdef __cplusplus
14666 extern "C"
14667 #endif
14668 char XRenderQueryExtension ();
14670 main ()
14672 return XRenderQueryExtension ();
14674 return 0;
14676 _ACEOF
14677 rm -f conftest.$ac_objext conftest$ac_exeext
14678 if { (ac_try="$ac_link"
14679 case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14682 esac
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_link") 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } && {
14691 test -z "$ac_c_werror_flag" ||
14692 test ! -s conftest.err
14693 } && test -s conftest$ac_exeext &&
14694 $as_test_x conftest$ac_exeext; then
14695 case "$LIBEXT" in
14696 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'` ;;
14697 so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14698 esac
14699 if test "x$ac_cv_lib_soname_Xrender" = "x"
14700 then
14701 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14703 else
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14707 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14711 conftest$ac_exeext conftest.$ac_ext
14712 LIBS=$ac_get_soname_save_LIBS
14714 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14715 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
14716 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14718 cat >>confdefs.h <<_ACEOF
14719 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14720 _ACEOF
14724 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14725 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
14726 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729 ac_get_soname_save_LIBS=$LIBS
14730 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14731 cat >conftest.$ac_ext <<_ACEOF
14732 /* confdefs.h. */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14738 /* Override any GCC internal prototype to avoid an error.
14739 Use char because int might match the return type of a GCC
14740 builtin and then its argument prototype would still apply. */
14741 #ifdef __cplusplus
14742 extern "C"
14743 #endif
14744 char XRRQueryExtension ();
14746 main ()
14748 return XRRQueryExtension ();
14750 return 0;
14752 _ACEOF
14753 rm -f conftest.$ac_objext conftest$ac_exeext
14754 if { (ac_try="$ac_link"
14755 case "(($ac_try" in
14756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757 *) ac_try_echo=$ac_try;;
14758 esac
14759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760 (eval "$ac_link") 2>conftest.er1
14761 ac_status=$?
14762 grep -v '^ *+' conftest.er1 >conftest.err
14763 rm -f conftest.er1
14764 cat conftest.err >&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); } && {
14767 test -z "$ac_c_werror_flag" ||
14768 test ! -s conftest.err
14769 } && test -s conftest$ac_exeext &&
14770 $as_test_x conftest$ac_exeext; then
14771 case "$LIBEXT" in
14772 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'` ;;
14773 so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14774 esac
14775 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14776 then
14777 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14779 else
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14787 conftest$ac_exeext conftest.$ac_ext
14788 LIBS=$ac_get_soname_save_LIBS
14790 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14791 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
14792 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14794 cat >>confdefs.h <<_ACEOF
14795 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14796 _ACEOF
14800 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14801 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
14802 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805 ac_get_soname_save_LIBS=$LIBS
14806 LIBS="-lfreetype $X_LIBS $LIBS"
14807 cat >conftest.$ac_ext <<_ACEOF
14808 /* confdefs.h. */
14809 _ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14814 /* Override any GCC internal prototype to avoid an error.
14815 Use char because int might match the return type of a GCC
14816 builtin and then its argument prototype would still apply. */
14817 #ifdef __cplusplus
14818 extern "C"
14819 #endif
14820 char FT_Init_FreeType ();
14822 main ()
14824 return FT_Init_FreeType ();
14826 return 0;
14828 _ACEOF
14829 rm -f conftest.$ac_objext conftest$ac_exeext
14830 if { (ac_try="$ac_link"
14831 case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14834 esac
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_link") 2>conftest.er1
14837 ac_status=$?
14838 grep -v '^ *+' conftest.er1 >conftest.err
14839 rm -f conftest.er1
14840 cat conftest.err >&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } && {
14843 test -z "$ac_c_werror_flag" ||
14844 test ! -s conftest.err
14845 } && test -s conftest$ac_exeext &&
14846 $as_test_x conftest$ac_exeext; then
14847 case "$LIBEXT" in
14848 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'` ;;
14849 so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14850 esac
14851 if test "x$ac_cv_lib_soname_freetype" = "x"
14852 then
14853 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14855 else
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14863 conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_get_soname_save_LIBS
14866 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14867 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
14868 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14870 cat >>confdefs.h <<_ACEOF
14871 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14872 _ACEOF
14876 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
14877 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
14878 if test "${ac_cv_lib_soname_GL+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881 ac_get_soname_save_LIBS=$LIBS
14882 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14883 cat >conftest.$ac_ext <<_ACEOF
14884 /* confdefs.h. */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14890 /* Override any GCC internal prototype to avoid an error.
14891 Use char because int might match the return type of a GCC
14892 builtin and then its argument prototype would still apply. */
14893 #ifdef __cplusplus
14894 extern "C"
14895 #endif
14896 char glXQueryExtension ();
14898 main ()
14900 return glXQueryExtension ();
14902 return 0;
14904 _ACEOF
14905 rm -f conftest.$ac_objext conftest$ac_exeext
14906 if { (ac_try="$ac_link"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_link") 2>conftest.er1
14913 ac_status=$?
14914 grep -v '^ *+' conftest.er1 >conftest.err
14915 rm -f conftest.er1
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } && {
14919 test -z "$ac_c_werror_flag" ||
14920 test ! -s conftest.err
14921 } && test -s conftest$ac_exeext &&
14922 $as_test_x conftest$ac_exeext; then
14923 case "$LIBEXT" in
14924 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'` ;;
14925 so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^ ]*\).*$/\1/"';2,$d'` ;;
14926 esac
14927 if test "x$ac_cv_lib_soname_GL" = "x"
14928 then
14929 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14931 else
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14939 conftest$ac_exeext conftest.$ac_ext
14940 LIBS=$ac_get_soname_save_LIBS
14942 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14943 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
14944 if test "${ac_cv_lib_soname_GL+set}" = set; then
14946 cat >>confdefs.h <<_ACEOF
14947 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14948 _ACEOF
14952 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
14953 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
14954 if test "${ac_cv_lib_soname_hal+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957 ac_get_soname_save_LIBS=$LIBS
14958 LIBS="-lhal $LIBS"
14959 cat >conftest.$ac_ext <<_ACEOF
14960 /* confdefs.h. */
14961 _ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h. */
14966 /* Override any GCC internal prototype to avoid an error.
14967 Use char because int might match the return type of a GCC
14968 builtin and then its argument prototype would still apply. */
14969 #ifdef __cplusplus
14970 extern "C"
14971 #endif
14972 char libhal_ctx_new ();
14974 main ()
14976 return libhal_ctx_new ();
14978 return 0;
14980 _ACEOF
14981 rm -f conftest.$ac_objext conftest$ac_exeext
14982 if { (ac_try="$ac_link"
14983 case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_link") 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } && {
14995 test -z "$ac_c_werror_flag" ||
14996 test ! -s conftest.err
14997 } && test -s conftest$ac_exeext &&
14998 $as_test_x conftest$ac_exeext; then
14999 case "$LIBEXT" in
15000 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'` ;;
15001 so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15002 esac
15003 if test "x$ac_cv_lib_soname_hal" = "x"
15004 then
15005 ac_cv_lib_soname_hal="libhal.$LIBEXT"
15007 else
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 ac_cv_lib_soname_hal="libhal.$LIBEXT"
15014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15015 conftest$ac_exeext conftest.$ac_ext
15016 LIBS=$ac_get_soname_save_LIBS
15018 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
15019 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
15020 if test "${ac_cv_lib_soname_hal+set}" = set; then
15022 cat >>confdefs.h <<_ACEOF
15023 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
15024 _ACEOF
15028 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
15029 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
15030 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032 else
15033 ac_get_soname_save_LIBS=$LIBS
15034 LIBS="-ltxc_dxtn $LIBS"
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h. */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15042 /* Override any GCC internal prototype to avoid an error.
15043 Use char because int might match the return type of a GCC
15044 builtin and then its argument prototype would still apply. */
15045 #ifdef __cplusplus
15046 extern "C"
15047 #endif
15048 char fetch_2d_texel_rgba_dxt1 ();
15050 main ()
15052 return fetch_2d_texel_rgba_dxt1 ();
15054 return 0;
15056 _ACEOF
15057 rm -f conftest.$ac_objext conftest$ac_exeext
15058 if { (ac_try="$ac_link"
15059 case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15062 esac
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_link") 2>conftest.er1
15065 ac_status=$?
15066 grep -v '^ *+' conftest.er1 >conftest.err
15067 rm -f conftest.er1
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } && {
15071 test -z "$ac_c_werror_flag" ||
15072 test ! -s conftest.err
15073 } && test -s conftest$ac_exeext &&
15074 $as_test_x conftest$ac_exeext; then
15075 case "$LIBEXT" in
15076 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'` ;;
15077 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'` ;;
15078 esac
15079 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
15080 then
15081 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15083 else
15084 echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15087 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15091 conftest$ac_exeext conftest.$ac_ext
15092 LIBS=$ac_get_soname_save_LIBS
15094 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15095 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
15096 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15098 cat >>confdefs.h <<_ACEOF
15099 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15100 _ACEOF
15104 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
15105 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
15106 if test "${ac_cv_lib_soname_cups+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 else
15109 ac_get_soname_save_LIBS=$LIBS
15110 LIBS="-lcups $LIBS"
15111 cat >conftest.$ac_ext <<_ACEOF
15112 /* confdefs.h. */
15113 _ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15118 /* Override any GCC internal prototype to avoid an error.
15119 Use char because int might match the return type of a GCC
15120 builtin and then its argument prototype would still apply. */
15121 #ifdef __cplusplus
15122 extern "C"
15123 #endif
15124 char cupsGetDefault ();
15126 main ()
15128 return cupsGetDefault ();
15130 return 0;
15132 _ACEOF
15133 rm -f conftest.$ac_objext conftest$ac_exeext
15134 if { (ac_try="$ac_link"
15135 case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_link") 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } && {
15147 test -z "$ac_c_werror_flag" ||
15148 test ! -s conftest.err
15149 } && test -s conftest$ac_exeext &&
15150 $as_test_x conftest$ac_exeext; then
15151 case "$LIBEXT" in
15152 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'` ;;
15153 so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15154 esac
15155 if test "x$ac_cv_lib_soname_cups" = "x"
15156 then
15157 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15159 else
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15167 conftest$ac_exeext conftest.$ac_ext
15168 LIBS=$ac_get_soname_save_LIBS
15170 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15171 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
15172 if test "${ac_cv_lib_soname_cups+set}" = set; then
15174 cat >>confdefs.h <<_ACEOF
15175 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15176 _ACEOF
15180 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
15181 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
15182 if test "${ac_cv_lib_soname_jack+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185 ac_get_soname_save_LIBS=$LIBS
15186 LIBS="-ljack $LIBS"
15187 cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h. */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15194 /* Override any GCC internal prototype to avoid an error.
15195 Use char because int might match the return type of a GCC
15196 builtin and then its argument prototype would still apply. */
15197 #ifdef __cplusplus
15198 extern "C"
15199 #endif
15200 char jack_client_new ();
15202 main ()
15204 return jack_client_new ();
15206 return 0;
15208 _ACEOF
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (ac_try="$ac_link"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_link") 2>conftest.er1
15217 ac_status=$?
15218 grep -v '^ *+' conftest.er1 >conftest.err
15219 rm -f conftest.er1
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } && {
15223 test -z "$ac_c_werror_flag" ||
15224 test ! -s conftest.err
15225 } && test -s conftest$ac_exeext &&
15226 $as_test_x conftest$ac_exeext; then
15227 case "$LIBEXT" in
15228 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'` ;;
15229 so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15230 esac
15231 if test "x$ac_cv_lib_soname_jack" = "x"
15232 then
15233 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15235 else
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15243 conftest$ac_exeext conftest.$ac_ext
15244 LIBS=$ac_get_soname_save_LIBS
15246 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15247 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
15248 if test "${ac_cv_lib_soname_jack+set}" = set; then
15250 cat >>confdefs.h <<_ACEOF
15251 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15252 _ACEOF
15256 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15257 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
15258 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15260 else
15261 ac_get_soname_save_LIBS=$LIBS
15262 LIBS="-lfontconfig $LIBS"
15263 cat >conftest.$ac_ext <<_ACEOF
15264 /* confdefs.h. */
15265 _ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15270 /* Override any GCC internal prototype to avoid an error.
15271 Use char because int might match the return type of a GCC
15272 builtin and then its argument prototype would still apply. */
15273 #ifdef __cplusplus
15274 extern "C"
15275 #endif
15276 char FcInit ();
15278 main ()
15280 return FcInit ();
15282 return 0;
15284 _ACEOF
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (ac_try="$ac_link"
15287 case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15290 esac
15291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_link") 2>conftest.er1
15293 ac_status=$?
15294 grep -v '^ *+' conftest.er1 >conftest.err
15295 rm -f conftest.er1
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } && {
15299 test -z "$ac_c_werror_flag" ||
15300 test ! -s conftest.err
15301 } && test -s conftest$ac_exeext &&
15302 $as_test_x conftest$ac_exeext; then
15303 case "$LIBEXT" in
15304 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'` ;;
15305 so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15306 esac
15307 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15308 then
15309 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15311 else
15312 echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15315 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15319 conftest$ac_exeext conftest.$ac_ext
15320 LIBS=$ac_get_soname_save_LIBS
15322 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15323 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
15324 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15326 cat >>confdefs.h <<_ACEOF
15327 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15328 _ACEOF
15332 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
15333 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
15334 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336 else
15337 ac_get_soname_save_LIBS=$LIBS
15338 LIBS="-lssl $LIBS"
15339 cat >conftest.$ac_ext <<_ACEOF
15340 /* confdefs.h. */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15346 /* Override any GCC internal prototype to avoid an error.
15347 Use char because int might match the return type of a GCC
15348 builtin and then its argument prototype would still apply. */
15349 #ifdef __cplusplus
15350 extern "C"
15351 #endif
15352 char SSL_library_init ();
15354 main ()
15356 return SSL_library_init ();
15358 return 0;
15360 _ACEOF
15361 rm -f conftest.$ac_objext conftest$ac_exeext
15362 if { (ac_try="$ac_link"
15363 case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366 esac
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_link") 2>conftest.er1
15369 ac_status=$?
15370 grep -v '^ *+' conftest.er1 >conftest.err
15371 rm -f conftest.er1
15372 cat conftest.err >&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } && {
15375 test -z "$ac_c_werror_flag" ||
15376 test ! -s conftest.err
15377 } && test -s conftest$ac_exeext &&
15378 $as_test_x conftest$ac_exeext; then
15379 case "$LIBEXT" in
15380 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'` ;;
15381 so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15382 esac
15383 if test "x$ac_cv_lib_soname_ssl" = "x"
15384 then
15385 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15387 else
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15391 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15395 conftest$ac_exeext conftest.$ac_ext
15396 LIBS=$ac_get_soname_save_LIBS
15398 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15399 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
15400 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15402 cat >>confdefs.h <<_ACEOF
15403 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15404 _ACEOF
15408 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15409 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
15410 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413 ac_get_soname_save_LIBS=$LIBS
15414 LIBS="-lcrypto $LIBS"
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h. */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15422 /* Override any GCC internal prototype to avoid an error.
15423 Use char because int might match the return type of a GCC
15424 builtin and then its argument prototype would still apply. */
15425 #ifdef __cplusplus
15426 extern "C"
15427 #endif
15428 char BIO_new_socket ();
15430 main ()
15432 return BIO_new_socket ();
15434 return 0;
15436 _ACEOF
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (ac_try="$ac_link"
15439 case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15442 esac
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_link") 2>conftest.er1
15445 ac_status=$?
15446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } && {
15451 test -z "$ac_c_werror_flag" ||
15452 test ! -s conftest.err
15453 } && test -s conftest$ac_exeext &&
15454 $as_test_x conftest$ac_exeext; then
15455 case "$LIBEXT" in
15456 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'` ;;
15457 so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15458 esac
15459 if test "x$ac_cv_lib_soname_crypto" = "x"
15460 then
15461 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15463 else
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15467 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15471 conftest$ac_exeext conftest.$ac_ext
15472 LIBS=$ac_get_soname_save_LIBS
15474 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15475 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
15476 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15478 cat >>confdefs.h <<_ACEOF
15479 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15480 _ACEOF
15484 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15485 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
15486 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489 ac_get_soname_save_LIBS=$LIBS
15490 LIBS="-lncurses $LIBS"
15491 cat >conftest.$ac_ext <<_ACEOF
15492 /* confdefs.h. */
15493 _ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15498 /* Override any GCC internal prototype to avoid an error.
15499 Use char because int might match the return type of a GCC
15500 builtin and then its argument prototype would still apply. */
15501 #ifdef __cplusplus
15502 extern "C"
15503 #endif
15504 char waddch ();
15506 main ()
15508 return waddch ();
15510 return 0;
15512 _ACEOF
15513 rm -f conftest.$ac_objext conftest$ac_exeext
15514 if { (ac_try="$ac_link"
15515 case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_link") 2>conftest.er1
15521 ac_status=$?
15522 grep -v '^ *+' conftest.er1 >conftest.err
15523 rm -f conftest.er1
15524 cat conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest$ac_exeext &&
15530 $as_test_x conftest$ac_exeext; then
15531 case "$LIBEXT" in
15532 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'` ;;
15533 so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15534 esac
15535 if test "x$ac_cv_lib_soname_ncurses" = "x"
15536 then
15537 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15539 else
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15547 conftest$ac_exeext conftest.$ac_ext
15548 LIBS=$ac_get_soname_save_LIBS
15550 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15551 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
15552 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15554 cat >>confdefs.h <<_ACEOF
15555 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15556 _ACEOF
15560 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15561 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
15562 if test "${ac_cv_lib_soname_curses+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 else
15565 ac_get_soname_save_LIBS=$LIBS
15566 LIBS="-lcurses $LIBS"
15567 cat >conftest.$ac_ext <<_ACEOF
15568 /* confdefs.h. */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15574 /* Override any GCC internal prototype to avoid an error.
15575 Use char because int might match the return type of a GCC
15576 builtin and then its argument prototype would still apply. */
15577 #ifdef __cplusplus
15578 extern "C"
15579 #endif
15580 char waddch ();
15582 main ()
15584 return waddch ();
15586 return 0;
15588 _ACEOF
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (ac_try="$ac_link"
15591 case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15594 esac
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_link") 2>conftest.er1
15597 ac_status=$?
15598 grep -v '^ *+' conftest.er1 >conftest.err
15599 rm -f conftest.er1
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && {
15603 test -z "$ac_c_werror_flag" ||
15604 test ! -s conftest.err
15605 } && test -s conftest$ac_exeext &&
15606 $as_test_x conftest$ac_exeext; then
15607 case "$LIBEXT" in
15608 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'` ;;
15609 so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15610 esac
15611 if test "x$ac_cv_lib_soname_curses" = "x"
15612 then
15613 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15615 else
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15623 conftest$ac_exeext conftest.$ac_ext
15624 LIBS=$ac_get_soname_save_LIBS
15626 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15627 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
15628 if test "${ac_cv_lib_soname_curses+set}" = set; then
15630 cat >>confdefs.h <<_ACEOF
15631 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15632 _ACEOF
15636 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15637 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
15638 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15639 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 else
15641 ac_get_soname_save_LIBS=$LIBS
15642 LIBS="-ljpeg $LIBS"
15643 cat >conftest.$ac_ext <<_ACEOF
15644 /* confdefs.h. */
15645 _ACEOF
15646 cat confdefs.h >>conftest.$ac_ext
15647 cat >>conftest.$ac_ext <<_ACEOF
15648 /* end confdefs.h. */
15650 /* Override any GCC internal prototype to avoid an error.
15651 Use char because int might match the return type of a GCC
15652 builtin and then its argument prototype would still apply. */
15653 #ifdef __cplusplus
15654 extern "C"
15655 #endif
15656 char jpeg_start_decompress ();
15658 main ()
15660 return jpeg_start_decompress ();
15662 return 0;
15664 _ACEOF
15665 rm -f conftest.$ac_objext conftest$ac_exeext
15666 if { (ac_try="$ac_link"
15667 case "(($ac_try" in
15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15670 esac
15671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_link") 2>conftest.er1
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } && {
15679 test -z "$ac_c_werror_flag" ||
15680 test ! -s conftest.err
15681 } && test -s conftest$ac_exeext &&
15682 $as_test_x conftest$ac_exeext; then
15683 case "$LIBEXT" in
15684 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'` ;;
15685 so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15686 esac
15687 if test "x$ac_cv_lib_soname_jpeg" = "x"
15688 then
15689 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15691 else
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15699 conftest$ac_exeext conftest.$ac_ext
15700 LIBS=$ac_get_soname_save_LIBS
15702 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15703 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
15704 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15706 cat >>confdefs.h <<_ACEOF
15707 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15708 _ACEOF
15712 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15713 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
15714 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15716 else
15717 ac_get_soname_save_LIBS=$LIBS
15718 LIBS="-lcapi20 $LIBS"
15719 cat >conftest.$ac_ext <<_ACEOF
15720 /* confdefs.h. */
15721 _ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h. */
15726 /* Override any GCC internal prototype to avoid an error.
15727 Use char because int might match the return type of a GCC
15728 builtin and then its argument prototype would still apply. */
15729 #ifdef __cplusplus
15730 extern "C"
15731 #endif
15732 char capi20_isinstalled ();
15734 main ()
15736 return capi20_isinstalled ();
15738 return 0;
15740 _ACEOF
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (ac_try="$ac_link"
15743 case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_link") 2>conftest.er1
15749 ac_status=$?
15750 grep -v '^ *+' conftest.er1 >conftest.err
15751 rm -f conftest.er1
15752 cat conftest.err >&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } && {
15755 test -z "$ac_c_werror_flag" ||
15756 test ! -s conftest.err
15757 } && test -s conftest$ac_exeext &&
15758 $as_test_x conftest$ac_exeext; then
15759 case "$LIBEXT" in
15760 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'` ;;
15761 so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^ ]*\).*$/\1/"';2,$d'` ;;
15762 esac
15763 if test "x$ac_cv_lib_soname_capi20" = "x"
15764 then
15765 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15767 else
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15775 conftest$ac_exeext conftest.$ac_ext
15776 LIBS=$ac_get_soname_save_LIBS
15778 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15779 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
15780 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15782 cat >>confdefs.h <<_ACEOF
15783 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15784 _ACEOF
15863 for ac_func in \
15864 _pclose \
15865 _popen \
15866 _snprintf \
15867 _spawnvp \
15868 _stricmp \
15869 _strnicmp \
15870 _vsnprintf \
15871 asctime_r \
15872 chsize \
15873 clone \
15874 connect \
15875 dlopen \
15876 epoll_create \
15877 ffs \
15878 finite \
15879 fork \
15880 fpclass \
15881 fstatfs \
15882 fstatvfs \
15883 ftruncate \
15884 futimes \
15885 futimesat \
15886 getaddrinfo \
15887 getdirentries \
15888 gethostbyname \
15889 getnameinfo \
15890 getnetbyname \
15891 getopt_long \
15892 getpagesize \
15893 getprotobyname \
15894 getprotobynumber \
15895 getpwuid \
15896 getservbyport \
15897 gettid \
15898 gettimeofday \
15899 getuid \
15900 inet_aton \
15901 inet_network \
15902 kqueue \
15903 lstat \
15904 memmove \
15905 mmap \
15906 pclose \
15907 poll \
15908 popen \
15909 prctl \
15910 pread \
15911 pwrite \
15912 readlink \
15913 rfork \
15914 sched_yield \
15915 select \
15916 sendmsg \
15917 setrlimit \
15918 settimeofday \
15919 sigaltstack \
15920 sigprocmask \
15921 snprintf \
15922 spawnvp \
15923 statfs \
15924 statvfs \
15925 strcasecmp \
15926 strerror \
15927 strncasecmp \
15928 strtold \
15929 tcgetattr \
15930 timegm \
15931 usleep \
15932 vsnprintf \
15933 wait4 \
15934 waitpid \
15937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15942 else
15943 cat >conftest.$ac_ext <<_ACEOF
15944 /* confdefs.h. */
15945 _ACEOF
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h. */
15949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15951 #define $ac_func innocuous_$ac_func
15953 /* System header to define __stub macros and hopefully few prototypes,
15954 which can conflict with char $ac_func (); below.
15955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15956 <limits.h> exists even on freestanding compilers. */
15958 #ifdef __STDC__
15959 # include <limits.h>
15960 #else
15961 # include <assert.h>
15962 #endif
15964 #undef $ac_func
15966 /* Override any GCC internal prototype to avoid an error.
15967 Use char because int might match the return type of a GCC
15968 builtin and then its argument prototype would still apply. */
15969 #ifdef __cplusplus
15970 extern "C"
15971 #endif
15972 char $ac_func ();
15973 /* The GNU C library defines this for functions which it implements
15974 to always fail with ENOSYS. Some functions are actually named
15975 something starting with __ and the normal name is an alias. */
15976 #if defined __stub_$ac_func || defined __stub___$ac_func
15977 choke me
15978 #endif
15981 main ()
15983 return $ac_func ();
15985 return 0;
15987 _ACEOF
15988 rm -f conftest.$ac_objext conftest$ac_exeext
15989 if { (ac_try="$ac_link"
15990 case "(($ac_try" in
15991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992 *) ac_try_echo=$ac_try;;
15993 esac
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995 (eval "$ac_link") 2>conftest.er1
15996 ac_status=$?
15997 grep -v '^ *+' conftest.er1 >conftest.err
15998 rm -f conftest.er1
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } && {
16002 test -z "$ac_c_werror_flag" ||
16003 test ! -s conftest.err
16004 } && test -s conftest$ac_exeext &&
16005 $as_test_x conftest$ac_exeext; then
16006 eval "$as_ac_var=yes"
16007 else
16008 echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16011 eval "$as_ac_var=no"
16014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16015 conftest$ac_exeext conftest.$ac_ext
16017 ac_res=`eval echo '${'$as_ac_var'}'`
16018 { echo "$as_me:$LINENO: result: $ac_res" >&5
16019 echo "${ECHO_T}$ac_res" >&6; }
16020 if test `eval echo '${'$as_ac_var'}'` = yes; then
16021 cat >>confdefs.h <<_ACEOF
16022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16023 _ACEOF
16026 done
16029 if test "$ac_cv_func_dlopen" = no
16030 then
16031 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16032 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16033 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036 ac_check_lib_save_LIBS=$LIBS
16037 LIBS="-ldl $LIBS"
16038 cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h. */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16045 /* Override any GCC internal prototype to avoid an error.
16046 Use char because int might match the return type of a GCC
16047 builtin and then its argument prototype would still apply. */
16048 #ifdef __cplusplus
16049 extern "C"
16050 #endif
16051 char dlopen ();
16053 main ()
16055 return dlopen ();
16057 return 0;
16059 _ACEOF
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (ac_try="$ac_link"
16062 case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16065 esac
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_link") 2>conftest.er1
16068 ac_status=$?
16069 grep -v '^ *+' conftest.er1 >conftest.err
16070 rm -f conftest.er1
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } && {
16074 test -z "$ac_c_werror_flag" ||
16075 test ! -s conftest.err
16076 } && test -s conftest$ac_exeext &&
16077 $as_test_x conftest$ac_exeext; then
16078 ac_cv_lib_dl_dlopen=yes
16079 else
16080 echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16083 ac_cv_lib_dl_dlopen=no
16086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16087 conftest$ac_exeext conftest.$ac_ext
16088 LIBS=$ac_check_lib_save_LIBS
16090 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16091 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16092 if test $ac_cv_lib_dl_dlopen = yes; then
16093 cat >>confdefs.h <<\_ACEOF
16094 #define HAVE_DLOPEN 1
16095 _ACEOF
16096 LIBDL="-ldl"
16101 ac_wine_check_funcs_save_LIBS="$LIBS"
16102 LIBS="$LIBS $LIBDL"
16104 for ac_func in dladdr
16106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16110 echo $ECHO_N "(cached) $ECHO_C" >&6
16111 else
16112 cat >conftest.$ac_ext <<_ACEOF
16113 /* confdefs.h. */
16114 _ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h. */
16118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16120 #define $ac_func innocuous_$ac_func
16122 /* System header to define __stub macros and hopefully few prototypes,
16123 which can conflict with char $ac_func (); below.
16124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16125 <limits.h> exists even on freestanding compilers. */
16127 #ifdef __STDC__
16128 # include <limits.h>
16129 #else
16130 # include <assert.h>
16131 #endif
16133 #undef $ac_func
16135 /* Override any GCC internal prototype to avoid an error.
16136 Use char because int might match the return type of a GCC
16137 builtin and then its argument prototype would still apply. */
16138 #ifdef __cplusplus
16139 extern "C"
16140 #endif
16141 char $ac_func ();
16142 /* The GNU C library defines this for functions which it implements
16143 to always fail with ENOSYS. Some functions are actually named
16144 something starting with __ and the normal name is an alias. */
16145 #if defined __stub_$ac_func || defined __stub___$ac_func
16146 choke me
16147 #endif
16150 main ()
16152 return $ac_func ();
16154 return 0;
16156 _ACEOF
16157 rm -f conftest.$ac_objext conftest$ac_exeext
16158 if { (ac_try="$ac_link"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162 esac
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_link") 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } && {
16171 test -z "$ac_c_werror_flag" ||
16172 test ! -s conftest.err
16173 } && test -s conftest$ac_exeext &&
16174 $as_test_x conftest$ac_exeext; then
16175 eval "$as_ac_var=yes"
16176 else
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16180 eval "$as_ac_var=no"
16183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16184 conftest$ac_exeext conftest.$ac_ext
16186 ac_res=`eval echo '${'$as_ac_var'}'`
16187 { echo "$as_me:$LINENO: result: $ac_res" >&5
16188 echo "${ECHO_T}$ac_res" >&6; }
16189 if test `eval echo '${'$as_ac_var'}'` = yes; then
16190 cat >>confdefs.h <<_ACEOF
16191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16192 _ACEOF
16195 done
16197 LIBS="$ac_wine_check_funcs_save_LIBS"
16199 if test "$ac_cv_func_poll" = no
16200 then
16201 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
16202 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
16203 if test "${ac_cv_lib_poll_poll+set}" = set; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 else
16206 ac_check_lib_save_LIBS=$LIBS
16207 LIBS="-lpoll $LIBS"
16208 cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h. */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16215 /* Override any GCC internal prototype to avoid an error.
16216 Use char because int might match the return type of a GCC
16217 builtin and then its argument prototype would still apply. */
16218 #ifdef __cplusplus
16219 extern "C"
16220 #endif
16221 char poll ();
16223 main ()
16225 return poll ();
16227 return 0;
16229 _ACEOF
16230 rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (ac_try="$ac_link"
16232 case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_link") 2>conftest.er1
16238 ac_status=$?
16239 grep -v '^ *+' conftest.er1 >conftest.err
16240 rm -f conftest.er1
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } && {
16244 test -z "$ac_c_werror_flag" ||
16245 test ! -s conftest.err
16246 } && test -s conftest$ac_exeext &&
16247 $as_test_x conftest$ac_exeext; then
16248 ac_cv_lib_poll_poll=yes
16249 else
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 ac_cv_lib_poll_poll=no
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257 conftest$ac_exeext conftest.$ac_ext
16258 LIBS=$ac_check_lib_save_LIBS
16260 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
16261 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
16262 if test $ac_cv_lib_poll_poll = yes; then
16263 cat >>confdefs.h <<\_ACEOF
16264 #define HAVE_POLL 1
16265 _ACEOF
16266 LIBPOLL="-lpoll"
16272 if test "$ac_cv_func_gethostbyname" = no
16273 then
16275 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
16276 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
16277 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 else
16280 ac_check_lib_save_LIBS=$LIBS
16281 LIBS="-lnsl $LIBS"
16282 cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h. */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16289 /* Override any GCC internal prototype to avoid an error.
16290 Use char because int might match the return type of a GCC
16291 builtin and then its argument prototype would still apply. */
16292 #ifdef __cplusplus
16293 extern "C"
16294 #endif
16295 char gethostbyname ();
16297 main ()
16299 return gethostbyname ();
16301 return 0;
16303 _ACEOF
16304 rm -f conftest.$ac_objext conftest$ac_exeext
16305 if { (ac_try="$ac_link"
16306 case "(($ac_try" in
16307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308 *) ac_try_echo=$ac_try;;
16309 esac
16310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16311 (eval "$ac_link") 2>conftest.er1
16312 ac_status=$?
16313 grep -v '^ *+' conftest.er1 >conftest.err
16314 rm -f conftest.er1
16315 cat conftest.err >&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } && {
16318 test -z "$ac_c_werror_flag" ||
16319 test ! -s conftest.err
16320 } && test -s conftest$ac_exeext &&
16321 $as_test_x conftest$ac_exeext; then
16322 ac_cv_lib_nsl_gethostbyname=yes
16323 else
16324 echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16327 ac_cv_lib_nsl_gethostbyname=no
16330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16331 conftest$ac_exeext conftest.$ac_ext
16332 LIBS=$ac_check_lib_save_LIBS
16334 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
16335 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
16336 if test $ac_cv_lib_nsl_gethostbyname = yes; then
16337 cat >>confdefs.h <<_ACEOF
16338 #define HAVE_LIBNSL 1
16339 _ACEOF
16341 LIBS="-lnsl $LIBS"
16347 if test "$ac_cv_func_connect" = no
16348 then
16350 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
16351 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
16352 if test "${ac_cv_lib_socket_connect+set}" = set; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 else
16355 ac_check_lib_save_LIBS=$LIBS
16356 LIBS="-lsocket $LIBS"
16357 cat >conftest.$ac_ext <<_ACEOF
16358 /* confdefs.h. */
16359 _ACEOF
16360 cat confdefs.h >>conftest.$ac_ext
16361 cat >>conftest.$ac_ext <<_ACEOF
16362 /* end confdefs.h. */
16364 /* Override any GCC internal prototype to avoid an error.
16365 Use char because int might match the return type of a GCC
16366 builtin and then its argument prototype would still apply. */
16367 #ifdef __cplusplus
16368 extern "C"
16369 #endif
16370 char connect ();
16372 main ()
16374 return connect ();
16376 return 0;
16378 _ACEOF
16379 rm -f conftest.$ac_objext conftest$ac_exeext
16380 if { (ac_try="$ac_link"
16381 case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16384 esac
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_link") 2>conftest.er1
16387 ac_status=$?
16388 grep -v '^ *+' conftest.er1 >conftest.err
16389 rm -f conftest.er1
16390 cat conftest.err >&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } && {
16393 test -z "$ac_c_werror_flag" ||
16394 test ! -s conftest.err
16395 } && test -s conftest$ac_exeext &&
16396 $as_test_x conftest$ac_exeext; then
16397 ac_cv_lib_socket_connect=yes
16398 else
16399 echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16402 ac_cv_lib_socket_connect=no
16405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16406 conftest$ac_exeext conftest.$ac_ext
16407 LIBS=$ac_check_lib_save_LIBS
16409 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
16410 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
16411 if test $ac_cv_lib_socket_connect = yes; then
16412 cat >>confdefs.h <<_ACEOF
16413 #define HAVE_LIBSOCKET 1
16414 _ACEOF
16416 LIBS="-lsocket $LIBS"
16422 if test "$ac_cv_func_inet_aton" = no
16423 then
16425 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16426 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16427 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430 ac_check_lib_save_LIBS=$LIBS
16431 LIBS="-lresolv $LIBS"
16432 cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h. */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16439 /* Override any GCC internal prototype to avoid an error.
16440 Use char because int might match the return type of a GCC
16441 builtin and then its argument prototype would still apply. */
16442 #ifdef __cplusplus
16443 extern "C"
16444 #endif
16445 char inet_aton ();
16447 main ()
16449 return inet_aton ();
16451 return 0;
16453 _ACEOF
16454 rm -f conftest.$ac_objext conftest$ac_exeext
16455 if { (ac_try="$ac_link"
16456 case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16459 esac
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_link") 2>conftest.er1
16462 ac_status=$?
16463 grep -v '^ *+' conftest.er1 >conftest.err
16464 rm -f conftest.er1
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } && {
16468 test -z "$ac_c_werror_flag" ||
16469 test ! -s conftest.err
16470 } && test -s conftest$ac_exeext &&
16471 $as_test_x conftest$ac_exeext; then
16472 ac_cv_lib_resolv_inet_aton=yes
16473 else
16474 echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16477 ac_cv_lib_resolv_inet_aton=no
16480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16481 conftest$ac_exeext conftest.$ac_ext
16482 LIBS=$ac_check_lib_save_LIBS
16484 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16485 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16486 if test $ac_cv_lib_resolv_inet_aton = yes; then
16487 cat >>confdefs.h <<_ACEOF
16488 #define HAVE_LIBRESOLV 1
16489 _ACEOF
16491 LIBS="-lresolv $LIBS"
16498 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16499 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
16500 if test "${ac_cv_c_const+set}" = set; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 else
16503 cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h. */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16511 main ()
16513 /* FIXME: Include the comments suggested by Paul. */
16514 #ifndef __cplusplus
16515 /* Ultrix mips cc rejects this. */
16516 typedef int charset[2];
16517 const charset cs;
16518 /* SunOS 4.1.1 cc rejects this. */
16519 char const *const *pcpcc;
16520 char **ppc;
16521 /* NEC SVR4.0.2 mips cc rejects this. */
16522 struct point {int x, y;};
16523 static struct point const zero = {0,0};
16524 /* AIX XL C 1.02.0.0 rejects this.
16525 It does not let you subtract one const X* pointer from another in
16526 an arm of an if-expression whose if-part is not a constant
16527 expression */
16528 const char *g = "string";
16529 pcpcc = &g + (g ? g-g : 0);
16530 /* HPUX 7.0 cc rejects these. */
16531 ++pcpcc;
16532 ppc = (char**) pcpcc;
16533 pcpcc = (char const *const *) ppc;
16534 { /* SCO 3.2v4 cc rejects this. */
16535 char *t;
16536 char const *s = 0 ? (char *) 0 : (char const *) 0;
16538 *t++ = 0;
16539 if (s) return 0;
16541 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16542 int x[] = {25, 17};
16543 const int *foo = &x[0];
16544 ++foo;
16546 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16547 typedef const int *iptr;
16548 iptr p = 0;
16549 ++p;
16551 { /* AIX XL C 1.02.0.0 rejects this saying
16552 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16553 struct s { int j; const int *ap[3]; };
16554 struct s *b; b->j = 5;
16556 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16557 const int foo = 10;
16558 if (!foo) return 0;
16560 return !cs[0] && !zero.x;
16561 #endif
16564 return 0;
16566 _ACEOF
16567 rm -f conftest.$ac_objext
16568 if { (ac_try="$ac_compile"
16569 case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16572 esac
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_compile") 2>conftest.er1
16575 ac_status=$?
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } && {
16581 test -z "$ac_c_werror_flag" ||
16582 test ! -s conftest.err
16583 } && test -s conftest.$ac_objext; then
16584 ac_cv_c_const=yes
16585 else
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 ac_cv_c_const=no
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16594 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16595 echo "${ECHO_T}$ac_cv_c_const" >&6; }
16596 if test $ac_cv_c_const = no; then
16598 cat >>confdefs.h <<\_ACEOF
16599 #define const
16600 _ACEOF
16604 { echo "$as_me:$LINENO: checking for inline" >&5
16605 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
16606 if test "${ac_cv_c_inline+set}" = set; then
16607 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 else
16609 ac_cv_c_inline=no
16610 for ac_kw in inline __inline__ __inline; do
16611 cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h. */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16617 #ifndef __cplusplus
16618 typedef int foo_t;
16619 static $ac_kw foo_t static_foo () {return 0; }
16620 $ac_kw foo_t foo () {return 0; }
16621 #endif
16623 _ACEOF
16624 rm -f conftest.$ac_objext
16625 if { (ac_try="$ac_compile"
16626 case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16629 esac
16630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631 (eval "$ac_compile") 2>conftest.er1
16632 ac_status=$?
16633 grep -v '^ *+' conftest.er1 >conftest.err
16634 rm -f conftest.er1
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } && {
16638 test -z "$ac_c_werror_flag" ||
16639 test ! -s conftest.err
16640 } && test -s conftest.$ac_objext; then
16641 ac_cv_c_inline=$ac_kw
16642 else
16643 echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16650 test "$ac_cv_c_inline" != no && break
16651 done
16654 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16655 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
16658 case $ac_cv_c_inline in
16659 inline | yes) ;;
16661 case $ac_cv_c_inline in
16662 no) ac_val=;;
16663 *) ac_val=$ac_cv_c_inline;;
16664 esac
16665 cat >>confdefs.h <<_ACEOF
16666 #ifndef __cplusplus
16667 #define inline $ac_val
16668 #endif
16669 _ACEOF
16671 esac
16673 { echo "$as_me:$LINENO: checking for mode_t" >&5
16674 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
16675 if test "${ac_cv_type_mode_t+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678 cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h. */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 $ac_includes_default
16685 typedef mode_t ac__type_new_;
16687 main ()
16689 if ((ac__type_new_ *) 0)
16690 return 0;
16691 if (sizeof (ac__type_new_))
16692 return 0;
16694 return 0;
16696 _ACEOF
16697 rm -f conftest.$ac_objext
16698 if { (ac_try="$ac_compile"
16699 case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16702 esac
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_compile") 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } && {
16711 test -z "$ac_c_werror_flag" ||
16712 test ! -s conftest.err
16713 } && test -s conftest.$ac_objext; then
16714 ac_cv_type_mode_t=yes
16715 else
16716 echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 ac_cv_type_mode_t=no
16722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16724 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16725 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
16726 if test $ac_cv_type_mode_t = yes; then
16728 cat >>confdefs.h <<_ACEOF
16729 #define HAVE_MODE_T 1
16730 _ACEOF
16734 { echo "$as_me:$LINENO: checking for off_t" >&5
16735 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
16736 if test "${ac_cv_type_off_t+set}" = set; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16738 else
16739 cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h. */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16745 $ac_includes_default
16746 typedef off_t ac__type_new_;
16748 main ()
16750 if ((ac__type_new_ *) 0)
16751 return 0;
16752 if (sizeof (ac__type_new_))
16753 return 0;
16755 return 0;
16757 _ACEOF
16758 rm -f conftest.$ac_objext
16759 if { (ac_try="$ac_compile"
16760 case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16763 esac
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_compile") 2>conftest.er1
16766 ac_status=$?
16767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } && {
16772 test -z "$ac_c_werror_flag" ||
16773 test ! -s conftest.err
16774 } && test -s conftest.$ac_objext; then
16775 ac_cv_type_off_t=yes
16776 else
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16780 ac_cv_type_off_t=no
16783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16785 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16786 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
16787 if test $ac_cv_type_off_t = yes; then
16789 cat >>confdefs.h <<_ACEOF
16790 #define HAVE_OFF_T 1
16791 _ACEOF
16795 { echo "$as_me:$LINENO: checking for pid_t" >&5
16796 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16797 if test "${ac_cv_type_pid_t+set}" = set; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800 cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h. */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 $ac_includes_default
16807 typedef pid_t ac__type_new_;
16809 main ()
16811 if ((ac__type_new_ *) 0)
16812 return 0;
16813 if (sizeof (ac__type_new_))
16814 return 0;
16816 return 0;
16818 _ACEOF
16819 rm -f conftest.$ac_objext
16820 if { (ac_try="$ac_compile"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_compile") 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest.$ac_objext; then
16836 ac_cv_type_pid_t=yes
16837 else
16838 echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16841 ac_cv_type_pid_t=no
16844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16847 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16848 if test $ac_cv_type_pid_t = yes; then
16850 cat >>confdefs.h <<_ACEOF
16851 #define HAVE_PID_T 1
16852 _ACEOF
16856 { echo "$as_me:$LINENO: checking for size_t" >&5
16857 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16858 if test "${ac_cv_type_size_t+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861 cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h. */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 $ac_includes_default
16868 typedef size_t ac__type_new_;
16870 main ()
16872 if ((ac__type_new_ *) 0)
16873 return 0;
16874 if (sizeof (ac__type_new_))
16875 return 0;
16877 return 0;
16879 _ACEOF
16880 rm -f conftest.$ac_objext
16881 if { (ac_try="$ac_compile"
16882 case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_compile") 2>conftest.er1
16888 ac_status=$?
16889 grep -v '^ *+' conftest.er1 >conftest.err
16890 rm -f conftest.er1
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } && {
16894 test -z "$ac_c_werror_flag" ||
16895 test ! -s conftest.err
16896 } && test -s conftest.$ac_objext; then
16897 ac_cv_type_size_t=yes
16898 else
16899 echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 ac_cv_type_size_t=no
16905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16908 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16909 if test $ac_cv_type_size_t = yes; then
16911 cat >>confdefs.h <<_ACEOF
16912 #define HAVE_SIZE_T 1
16913 _ACEOF
16917 { echo "$as_me:$LINENO: checking for ssize_t" >&5
16918 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
16919 if test "${ac_cv_type_ssize_t+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922 cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h. */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 $ac_includes_default
16929 typedef ssize_t ac__type_new_;
16931 main ()
16933 if ((ac__type_new_ *) 0)
16934 return 0;
16935 if (sizeof (ac__type_new_))
16936 return 0;
16938 return 0;
16940 _ACEOF
16941 rm -f conftest.$ac_objext
16942 if { (ac_try="$ac_compile"
16943 case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_compile") 2>conftest.er1
16949 ac_status=$?
16950 grep -v '^ *+' conftest.er1 >conftest.err
16951 rm -f conftest.er1
16952 cat conftest.err >&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } && {
16955 test -z "$ac_c_werror_flag" ||
16956 test ! -s conftest.err
16957 } && test -s conftest.$ac_objext; then
16958 ac_cv_type_ssize_t=yes
16959 else
16960 echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16963 ac_cv_type_ssize_t=no
16966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16969 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
16970 if test $ac_cv_type_ssize_t = yes; then
16972 cat >>confdefs.h <<_ACEOF
16973 #define HAVE_SSIZE_T 1
16974 _ACEOF
16978 { echo "$as_me:$LINENO: checking for long long" >&5
16979 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
16980 if test "${ac_cv_type_long_long+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16982 else
16983 cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h. */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989 $ac_includes_default
16990 typedef long long ac__type_new_;
16992 main ()
16994 if ((ac__type_new_ *) 0)
16995 return 0;
16996 if (sizeof (ac__type_new_))
16997 return 0;
16999 return 0;
17001 _ACEOF
17002 rm -f conftest.$ac_objext
17003 if { (ac_try="$ac_compile"
17004 case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17007 esac
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_compile") 2>conftest.er1
17010 ac_status=$?
17011 grep -v '^ *+' conftest.er1 >conftest.err
17012 rm -f conftest.er1
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } && {
17016 test -z "$ac_c_werror_flag" ||
17017 test ! -s conftest.err
17018 } && test -s conftest.$ac_objext; then
17019 ac_cv_type_long_long=yes
17020 else
17021 echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17024 ac_cv_type_long_long=no
17027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17029 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17030 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
17031 if test $ac_cv_type_long_long = yes; then
17033 cat >>confdefs.h <<_ACEOF
17034 #define HAVE_LONG_LONG 1
17035 _ACEOF
17039 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17040 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
17041 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17043 else
17044 cat >conftest.$ac_ext <<_ACEOF
17045 /* confdefs.h. */
17046 _ACEOF
17047 cat confdefs.h >>conftest.$ac_ext
17048 cat >>conftest.$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17050 $ac_includes_default
17051 typedef fsblkcnt_t ac__type_new_;
17053 main ()
17055 if ((ac__type_new_ *) 0)
17056 return 0;
17057 if (sizeof (ac__type_new_))
17058 return 0;
17060 return 0;
17062 _ACEOF
17063 rm -f conftest.$ac_objext
17064 if { (ac_try="$ac_compile"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_compile") 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } && {
17077 test -z "$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17079 } && test -s conftest.$ac_objext; then
17080 ac_cv_type_fsblkcnt_t=yes
17081 else
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 ac_cv_type_fsblkcnt_t=no
17088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17090 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17091 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
17092 if test $ac_cv_type_fsblkcnt_t = yes; then
17094 cat >>confdefs.h <<_ACEOF
17095 #define HAVE_FSBLKCNT_T 1
17096 _ACEOF
17100 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17101 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
17102 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 else
17105 cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h. */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 $ac_includes_default
17112 typedef fsfilcnt_t ac__type_new_;
17114 main ()
17116 if ((ac__type_new_ *) 0)
17117 return 0;
17118 if (sizeof (ac__type_new_))
17119 return 0;
17121 return 0;
17123 _ACEOF
17124 rm -f conftest.$ac_objext
17125 if { (ac_try="$ac_compile"
17126 case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17129 esac
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_compile") 2>conftest.er1
17132 ac_status=$?
17133 grep -v '^ *+' conftest.er1 >conftest.err
17134 rm -f conftest.er1
17135 cat conftest.err >&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } && {
17138 test -z "$ac_c_werror_flag" ||
17139 test ! -s conftest.err
17140 } && test -s conftest.$ac_objext; then
17141 ac_cv_type_fsfilcnt_t=yes
17142 else
17143 echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17146 ac_cv_type_fsfilcnt_t=no
17149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17151 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17152 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
17153 if test $ac_cv_type_fsfilcnt_t = yes; then
17155 cat >>confdefs.h <<_ACEOF
17156 #define HAVE_FSFILCNT_T 1
17157 _ACEOF
17162 { echo "$as_me:$LINENO: checking for sigset_t" >&5
17163 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
17164 if test "${ac_cv_type_sigset_t+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167 cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h. */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 #include <signal.h>
17175 typedef sigset_t ac__type_new_;
17177 main ()
17179 if ((ac__type_new_ *) 0)
17180 return 0;
17181 if (sizeof (ac__type_new_))
17182 return 0;
17184 return 0;
17186 _ACEOF
17187 rm -f conftest.$ac_objext
17188 if { (ac_try="$ac_compile"
17189 case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17192 esac
17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194 (eval "$ac_compile") 2>conftest.er1
17195 ac_status=$?
17196 grep -v '^ *+' conftest.er1 >conftest.err
17197 rm -f conftest.er1
17198 cat conftest.err >&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } && {
17201 test -z "$ac_c_werror_flag" ||
17202 test ! -s conftest.err
17203 } && test -s conftest.$ac_objext; then
17204 ac_cv_type_sigset_t=yes
17205 else
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17209 ac_cv_type_sigset_t=no
17212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17214 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17215 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
17216 if test $ac_cv_type_sigset_t = yes; then
17218 cat >>confdefs.h <<_ACEOF
17219 #define HAVE_SIGSET_T 1
17220 _ACEOF
17225 { echo "$as_me:$LINENO: checking for request_sense" >&5
17226 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
17227 if test "${ac_cv_type_request_sense+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230 cat >conftest.$ac_ext <<_ACEOF
17231 /* confdefs.h. */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 #include <linux/cdrom.h>
17238 typedef request_sense ac__type_new_;
17240 main ()
17242 if ((ac__type_new_ *) 0)
17243 return 0;
17244 if (sizeof (ac__type_new_))
17245 return 0;
17247 return 0;
17249 _ACEOF
17250 rm -f conftest.$ac_objext
17251 if { (ac_try="$ac_compile"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_compile") 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } && {
17264 test -z "$ac_c_werror_flag" ||
17265 test ! -s conftest.err
17266 } && test -s conftest.$ac_objext; then
17267 ac_cv_type_request_sense=yes
17268 else
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 ac_cv_type_request_sense=no
17275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17277 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
17278 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
17279 if test $ac_cv_type_request_sense = yes; then
17281 cat >>confdefs.h <<_ACEOF
17282 #define HAVE_REQUEST_SENSE 1
17283 _ACEOF
17289 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
17290 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
17291 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17293 else
17294 cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h. */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 #ifdef HAVE_LINUX_INPUT_H
17301 #include <linux/input.h>
17302 #endif
17305 main ()
17307 static struct ff_effect ac_aggr;
17308 if (ac_aggr.direction)
17309 return 0;
17311 return 0;
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (ac_try="$ac_compile"
17316 case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_compile") 2>conftest.er1
17322 ac_status=$?
17323 grep -v '^ *+' conftest.er1 >conftest.err
17324 rm -f conftest.er1
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } && {
17328 test -z "$ac_c_werror_flag" ||
17329 test ! -s conftest.err
17330 } && test -s conftest.$ac_objext; then
17331 ac_cv_member_struct_ff_effect_direction=yes
17332 else
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 cat >conftest.$ac_ext <<_ACEOF
17337 /* confdefs.h. */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h. */
17342 #ifdef HAVE_LINUX_INPUT_H
17343 #include <linux/input.h>
17344 #endif
17347 main ()
17349 static struct ff_effect ac_aggr;
17350 if (sizeof ac_aggr.direction)
17351 return 0;
17353 return 0;
17355 _ACEOF
17356 rm -f conftest.$ac_objext
17357 if { (ac_try="$ac_compile"
17358 case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_compile") 2>conftest.er1
17364 ac_status=$?
17365 grep -v '^ *+' conftest.er1 >conftest.err
17366 rm -f conftest.er1
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } && {
17370 test -z "$ac_c_werror_flag" ||
17371 test ! -s conftest.err
17372 } && test -s conftest.$ac_objext; then
17373 ac_cv_member_struct_ff_effect_direction=yes
17374 else
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 ac_cv_member_struct_ff_effect_direction=no
17381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17386 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
17387 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
17388 if test $ac_cv_member_struct_ff_effect_direction = yes; then
17390 cat >>confdefs.h <<_ACEOF
17391 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
17392 _ACEOF
17398 { echo "$as_me:$LINENO: checking for sigaddset" >&5
17399 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
17400 if test "${wine_cv_have_sigaddset+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403 cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h. */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17409 #include <signal.h>
17411 main ()
17413 sigset_t set; sigaddset(&set,SIGTERM);
17415 return 0;
17417 _ACEOF
17418 rm -f conftest.$ac_objext conftest$ac_exeext
17419 if { (ac_try="$ac_link"
17420 case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17423 esac
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_link") 2>conftest.er1
17426 ac_status=$?
17427 grep -v '^ *+' conftest.er1 >conftest.err
17428 rm -f conftest.er1
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } && {
17432 test -z "$ac_c_werror_flag" ||
17433 test ! -s conftest.err
17434 } && test -s conftest$ac_exeext &&
17435 $as_test_x conftest$ac_exeext; then
17436 wine_cv_have_sigaddset=yes
17437 else
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 wine_cv_have_sigaddset=no
17444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17445 conftest$ac_exeext conftest.$ac_ext
17447 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17448 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
17449 if test "$wine_cv_have_sigaddset" = "yes"
17450 then
17452 cat >>confdefs.h <<\_ACEOF
17453 #define HAVE_SIGADDSET 1
17454 _ACEOF
17459 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17460 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
17461 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464 cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h. */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17471 #include <netdb.h>
17474 main ()
17477 char *name=NULL;
17478 struct hostent he;
17479 struct hostent *result;
17480 char *buf=NULL;
17481 int bufsize=0;
17482 int res,errnr;
17483 char *addr=NULL;
17484 int addrlen=0;
17485 int addrtype=0;
17486 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17487 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17490 return 0;
17492 _ACEOF
17493 rm -f conftest.$ac_objext conftest$ac_exeext
17494 if { (ac_try="$ac_link"
17495 case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_link") 2>conftest.er1
17501 ac_status=$?
17502 grep -v '^ *+' conftest.er1 >conftest.err
17503 rm -f conftest.er1
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } && {
17507 test -z "$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 } && test -s conftest$ac_exeext &&
17510 $as_test_x conftest$ac_exeext; then
17511 wine_cv_linux_gethostbyname_r_6=yes
17512 else
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17516 wine_cv_linux_gethostbyname_r_6=no
17520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17521 conftest$ac_exeext conftest.$ac_ext
17524 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17525 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
17526 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17527 then
17529 cat >>confdefs.h <<\_ACEOF
17530 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17531 _ACEOF
17535 if test "$ac_cv_header_linux_joystick_h" = "yes"
17536 then
17537 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17538 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
17539 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 else
17542 cat >conftest.$ac_ext <<_ACEOF
17543 /* confdefs.h. */
17544 _ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h. */
17549 #include <sys/ioctl.h>
17550 #include <linux/joystick.h>
17552 struct js_event blub;
17553 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17554 #error "no 2.2 header"
17555 #endif
17558 main ()
17560 /*empty*/
17562 return 0;
17564 _ACEOF
17565 rm -f conftest.$ac_objext
17566 if { (ac_try="$ac_compile"
17567 case "(($ac_try" in
17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17570 esac
17571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_compile") 2>conftest.er1
17573 ac_status=$?
17574 grep -v '^ *+' conftest.er1 >conftest.err
17575 rm -f conftest.er1
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } && {
17579 test -z "$ac_c_werror_flag" ||
17580 test ! -s conftest.err
17581 } && test -s conftest.$ac_objext; then
17582 wine_cv_linux_joystick_22_api=yes
17583 else
17584 echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17587 wine_cv_linux_joystick_22_api=no
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17593 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17594 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
17595 if test "$wine_cv_linux_joystick_22_api" = "yes"
17596 then
17598 cat >>confdefs.h <<\_ACEOF
17599 #define HAVE_LINUX_22_JOYSTICK_API 1
17600 _ACEOF
17606 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17607 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
17608 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17610 else
17611 cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h. */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h. */
17617 #include <sys/types.h>
17618 #ifdef HAVE_SYS_PARAM_H
17619 # include <sys/param.h>
17620 #endif
17621 #ifdef HAVE_SYS_MOUNT_H
17622 # include <sys/mount.h>
17623 #endif
17624 #ifdef HAVE_SYS_VFS_H
17625 # include <sys/vfs.h>
17626 #endif
17627 #ifdef HAVE_SYS_STATFS_H
17628 # include <sys/statfs.h>
17629 #endif
17632 main ()
17634 static struct statfs ac_aggr;
17635 if (ac_aggr.f_bfree)
17636 return 0;
17638 return 0;
17640 _ACEOF
17641 rm -f conftest.$ac_objext
17642 if { (ac_try="$ac_compile"
17643 case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17646 esac
17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_compile") 2>conftest.er1
17649 ac_status=$?
17650 grep -v '^ *+' conftest.er1 >conftest.err
17651 rm -f conftest.er1
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } && {
17655 test -z "$ac_c_werror_flag" ||
17656 test ! -s conftest.err
17657 } && test -s conftest.$ac_objext; then
17658 ac_cv_member_struct_statfs_f_bfree=yes
17659 else
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 cat >conftest.$ac_ext <<_ACEOF
17664 /* confdefs.h. */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669 #include <sys/types.h>
17670 #ifdef HAVE_SYS_PARAM_H
17671 # include <sys/param.h>
17672 #endif
17673 #ifdef HAVE_SYS_MOUNT_H
17674 # include <sys/mount.h>
17675 #endif
17676 #ifdef HAVE_SYS_VFS_H
17677 # include <sys/vfs.h>
17678 #endif
17679 #ifdef HAVE_SYS_STATFS_H
17680 # include <sys/statfs.h>
17681 #endif
17684 main ()
17686 static struct statfs ac_aggr;
17687 if (sizeof ac_aggr.f_bfree)
17688 return 0;
17690 return 0;
17692 _ACEOF
17693 rm -f conftest.$ac_objext
17694 if { (ac_try="$ac_compile"
17695 case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17698 esac
17699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700 (eval "$ac_compile") 2>conftest.er1
17701 ac_status=$?
17702 grep -v '^ *+' conftest.er1 >conftest.err
17703 rm -f conftest.er1
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } && {
17707 test -z "$ac_c_werror_flag" ||
17708 test ! -s conftest.err
17709 } && test -s conftest.$ac_objext; then
17710 ac_cv_member_struct_statfs_f_bfree=yes
17711 else
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17715 ac_cv_member_struct_statfs_f_bfree=no
17718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17723 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17724 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
17725 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17727 cat >>confdefs.h <<_ACEOF
17728 #define HAVE_STRUCT_STATFS_F_BFREE 1
17729 _ACEOF
17733 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17734 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
17735 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738 cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h. */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17744 #include <sys/types.h>
17745 #ifdef HAVE_SYS_PARAM_H
17746 # include <sys/param.h>
17747 #endif
17748 #ifdef HAVE_SYS_MOUNT_H
17749 # include <sys/mount.h>
17750 #endif
17751 #ifdef HAVE_SYS_VFS_H
17752 # include <sys/vfs.h>
17753 #endif
17754 #ifdef HAVE_SYS_STATFS_H
17755 # include <sys/statfs.h>
17756 #endif
17759 main ()
17761 static struct statfs ac_aggr;
17762 if (ac_aggr.f_bavail)
17763 return 0;
17765 return 0;
17767 _ACEOF
17768 rm -f conftest.$ac_objext
17769 if { (ac_try="$ac_compile"
17770 case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_compile") 2>conftest.er1
17776 ac_status=$?
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } && {
17782 test -z "$ac_c_werror_flag" ||
17783 test ! -s conftest.err
17784 } && test -s conftest.$ac_objext; then
17785 ac_cv_member_struct_statfs_f_bavail=yes
17786 else
17787 echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17790 cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h. */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796 #include <sys/types.h>
17797 #ifdef HAVE_SYS_PARAM_H
17798 # include <sys/param.h>
17799 #endif
17800 #ifdef HAVE_SYS_MOUNT_H
17801 # include <sys/mount.h>
17802 #endif
17803 #ifdef HAVE_SYS_VFS_H
17804 # include <sys/vfs.h>
17805 #endif
17806 #ifdef HAVE_SYS_STATFS_H
17807 # include <sys/statfs.h>
17808 #endif
17811 main ()
17813 static struct statfs ac_aggr;
17814 if (sizeof ac_aggr.f_bavail)
17815 return 0;
17817 return 0;
17819 _ACEOF
17820 rm -f conftest.$ac_objext
17821 if { (ac_try="$ac_compile"
17822 case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17825 esac
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_compile") 2>conftest.er1
17828 ac_status=$?
17829 grep -v '^ *+' conftest.er1 >conftest.err
17830 rm -f conftest.er1
17831 cat conftest.err >&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } && {
17834 test -z "$ac_c_werror_flag" ||
17835 test ! -s conftest.err
17836 } && test -s conftest.$ac_objext; then
17837 ac_cv_member_struct_statfs_f_bavail=yes
17838 else
17839 echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17842 ac_cv_member_struct_statfs_f_bavail=no
17845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17851 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
17852 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
17856 _ACEOF
17860 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
17861 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
17862 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17864 else
17865 cat >conftest.$ac_ext <<_ACEOF
17866 /* confdefs.h. */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17871 #include <sys/types.h>
17872 #ifdef HAVE_SYS_PARAM_H
17873 # include <sys/param.h>
17874 #endif
17875 #ifdef HAVE_SYS_MOUNT_H
17876 # include <sys/mount.h>
17877 #endif
17878 #ifdef HAVE_SYS_VFS_H
17879 # include <sys/vfs.h>
17880 #endif
17881 #ifdef HAVE_SYS_STATFS_H
17882 # include <sys/statfs.h>
17883 #endif
17886 main ()
17888 static struct statfs ac_aggr;
17889 if (ac_aggr.f_frsize)
17890 return 0;
17892 return 0;
17894 _ACEOF
17895 rm -f conftest.$ac_objext
17896 if { (ac_try="$ac_compile"
17897 case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17900 esac
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_compile") 2>conftest.er1
17903 ac_status=$?
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } && {
17909 test -z "$ac_c_werror_flag" ||
17910 test ! -s conftest.err
17911 } && test -s conftest.$ac_objext; then
17912 ac_cv_member_struct_statfs_f_frsize=yes
17913 else
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h. */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 #include <sys/types.h>
17924 #ifdef HAVE_SYS_PARAM_H
17925 # include <sys/param.h>
17926 #endif
17927 #ifdef HAVE_SYS_MOUNT_H
17928 # include <sys/mount.h>
17929 #endif
17930 #ifdef HAVE_SYS_VFS_H
17931 # include <sys/vfs.h>
17932 #endif
17933 #ifdef HAVE_SYS_STATFS_H
17934 # include <sys/statfs.h>
17935 #endif
17938 main ()
17940 static struct statfs ac_aggr;
17941 if (sizeof ac_aggr.f_frsize)
17942 return 0;
17944 return 0;
17946 _ACEOF
17947 rm -f conftest.$ac_objext
17948 if { (ac_try="$ac_compile"
17949 case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17952 esac
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_compile") 2>conftest.er1
17955 ac_status=$?
17956 grep -v '^ *+' conftest.er1 >conftest.err
17957 rm -f conftest.er1
17958 cat conftest.err >&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); } && {
17961 test -z "$ac_c_werror_flag" ||
17962 test ! -s conftest.err
17963 } && test -s conftest.$ac_objext; then
17964 ac_cv_member_struct_statfs_f_frsize=yes
17965 else
17966 echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17969 ac_cv_member_struct_statfs_f_frsize=no
17972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17977 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
17978 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
17979 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
17981 cat >>confdefs.h <<_ACEOF
17982 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
17983 _ACEOF
17987 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
17988 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
17989 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 else
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h. */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 #include <sys/types.h>
17999 #ifdef HAVE_SYS_PARAM_H
18000 # include <sys/param.h>
18001 #endif
18002 #ifdef HAVE_SYS_MOUNT_H
18003 # include <sys/mount.h>
18004 #endif
18005 #ifdef HAVE_SYS_VFS_H
18006 # include <sys/vfs.h>
18007 #endif
18008 #ifdef HAVE_SYS_STATFS_H
18009 # include <sys/statfs.h>
18010 #endif
18013 main ()
18015 static struct statfs ac_aggr;
18016 if (ac_aggr.f_ffree)
18017 return 0;
18019 return 0;
18021 _ACEOF
18022 rm -f conftest.$ac_objext
18023 if { (ac_try="$ac_compile"
18024 case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18027 esac
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_compile") 2>conftest.er1
18030 ac_status=$?
18031 grep -v '^ *+' conftest.er1 >conftest.err
18032 rm -f conftest.er1
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } && {
18036 test -z "$ac_c_werror_flag" ||
18037 test ! -s conftest.err
18038 } && test -s conftest.$ac_objext; then
18039 ac_cv_member_struct_statfs_f_ffree=yes
18040 else
18041 echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18044 cat >conftest.$ac_ext <<_ACEOF
18045 /* confdefs.h. */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 #include <sys/types.h>
18051 #ifdef HAVE_SYS_PARAM_H
18052 # include <sys/param.h>
18053 #endif
18054 #ifdef HAVE_SYS_MOUNT_H
18055 # include <sys/mount.h>
18056 #endif
18057 #ifdef HAVE_SYS_VFS_H
18058 # include <sys/vfs.h>
18059 #endif
18060 #ifdef HAVE_SYS_STATFS_H
18061 # include <sys/statfs.h>
18062 #endif
18065 main ()
18067 static struct statfs ac_aggr;
18068 if (sizeof ac_aggr.f_ffree)
18069 return 0;
18071 return 0;
18073 _ACEOF
18074 rm -f conftest.$ac_objext
18075 if { (ac_try="$ac_compile"
18076 case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_compile") 2>conftest.er1
18082 ac_status=$?
18083 grep -v '^ *+' conftest.er1 >conftest.err
18084 rm -f conftest.er1
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } && {
18088 test -z "$ac_c_werror_flag" ||
18089 test ! -s conftest.err
18090 } && test -s conftest.$ac_objext; then
18091 ac_cv_member_struct_statfs_f_ffree=yes
18092 else
18093 echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 ac_cv_member_struct_statfs_f_ffree=no
18099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18104 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18105 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
18106 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18108 cat >>confdefs.h <<_ACEOF
18109 #define HAVE_STRUCT_STATFS_F_FFREE 1
18110 _ACEOF
18114 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18115 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
18116 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18117 echo $ECHO_N "(cached) $ECHO_C" >&6
18118 else
18119 cat >conftest.$ac_ext <<_ACEOF
18120 /* confdefs.h. */
18121 _ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h. */
18125 #include <sys/types.h>
18126 #ifdef HAVE_SYS_PARAM_H
18127 # include <sys/param.h>
18128 #endif
18129 #ifdef HAVE_SYS_MOUNT_H
18130 # include <sys/mount.h>
18131 #endif
18132 #ifdef HAVE_SYS_VFS_H
18133 # include <sys/vfs.h>
18134 #endif
18135 #ifdef HAVE_SYS_STATFS_H
18136 # include <sys/statfs.h>
18137 #endif
18140 main ()
18142 static struct statfs ac_aggr;
18143 if (ac_aggr.f_favail)
18144 return 0;
18146 return 0;
18148 _ACEOF
18149 rm -f conftest.$ac_objext
18150 if { (ac_try="$ac_compile"
18151 case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18154 esac
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_compile") 2>conftest.er1
18157 ac_status=$?
18158 grep -v '^ *+' conftest.er1 >conftest.err
18159 rm -f conftest.er1
18160 cat conftest.err >&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } && {
18163 test -z "$ac_c_werror_flag" ||
18164 test ! -s conftest.err
18165 } && test -s conftest.$ac_objext; then
18166 ac_cv_member_struct_statfs_f_favail=yes
18167 else
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h. */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h. */
18177 #include <sys/types.h>
18178 #ifdef HAVE_SYS_PARAM_H
18179 # include <sys/param.h>
18180 #endif
18181 #ifdef HAVE_SYS_MOUNT_H
18182 # include <sys/mount.h>
18183 #endif
18184 #ifdef HAVE_SYS_VFS_H
18185 # include <sys/vfs.h>
18186 #endif
18187 #ifdef HAVE_SYS_STATFS_H
18188 # include <sys/statfs.h>
18189 #endif
18192 main ()
18194 static struct statfs ac_aggr;
18195 if (sizeof ac_aggr.f_favail)
18196 return 0;
18198 return 0;
18200 _ACEOF
18201 rm -f conftest.$ac_objext
18202 if { (ac_try="$ac_compile"
18203 case "(($ac_try" in
18204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205 *) ac_try_echo=$ac_try;;
18206 esac
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208 (eval "$ac_compile") 2>conftest.er1
18209 ac_status=$?
18210 grep -v '^ *+' conftest.er1 >conftest.err
18211 rm -f conftest.er1
18212 cat conftest.err >&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } && {
18215 test -z "$ac_c_werror_flag" ||
18216 test ! -s conftest.err
18217 } && test -s conftest.$ac_objext; then
18218 ac_cv_member_struct_statfs_f_favail=yes
18219 else
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18223 ac_cv_member_struct_statfs_f_favail=no
18226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18232 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
18233 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18235 cat >>confdefs.h <<_ACEOF
18236 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18237 _ACEOF
18241 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18242 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
18243 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246 cat >conftest.$ac_ext <<_ACEOF
18247 /* confdefs.h. */
18248 _ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h. */
18252 #include <sys/types.h>
18253 #ifdef HAVE_SYS_PARAM_H
18254 # include <sys/param.h>
18255 #endif
18256 #ifdef HAVE_SYS_MOUNT_H
18257 # include <sys/mount.h>
18258 #endif
18259 #ifdef HAVE_SYS_VFS_H
18260 # include <sys/vfs.h>
18261 #endif
18262 #ifdef HAVE_SYS_STATFS_H
18263 # include <sys/statfs.h>
18264 #endif
18267 main ()
18269 static struct statfs ac_aggr;
18270 if (ac_aggr.f_namelen)
18271 return 0;
18273 return 0;
18275 _ACEOF
18276 rm -f conftest.$ac_objext
18277 if { (ac_try="$ac_compile"
18278 case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18281 esac
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_compile") 2>conftest.er1
18284 ac_status=$?
18285 grep -v '^ *+' conftest.er1 >conftest.err
18286 rm -f conftest.er1
18287 cat conftest.err >&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } && {
18290 test -z "$ac_c_werror_flag" ||
18291 test ! -s conftest.err
18292 } && test -s conftest.$ac_objext; then
18293 ac_cv_member_struct_statfs_f_namelen=yes
18294 else
18295 echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18298 cat >conftest.$ac_ext <<_ACEOF
18299 /* confdefs.h. */
18300 _ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18304 #include <sys/types.h>
18305 #ifdef HAVE_SYS_PARAM_H
18306 # include <sys/param.h>
18307 #endif
18308 #ifdef HAVE_SYS_MOUNT_H
18309 # include <sys/mount.h>
18310 #endif
18311 #ifdef HAVE_SYS_VFS_H
18312 # include <sys/vfs.h>
18313 #endif
18314 #ifdef HAVE_SYS_STATFS_H
18315 # include <sys/statfs.h>
18316 #endif
18319 main ()
18321 static struct statfs ac_aggr;
18322 if (sizeof ac_aggr.f_namelen)
18323 return 0;
18325 return 0;
18327 _ACEOF
18328 rm -f conftest.$ac_objext
18329 if { (ac_try="$ac_compile"
18330 case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_compile") 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } && {
18342 test -z "$ac_c_werror_flag" ||
18343 test ! -s conftest.err
18344 } && test -s conftest.$ac_objext; then
18345 ac_cv_member_struct_statfs_f_namelen=yes
18346 else
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 ac_cv_member_struct_statfs_f_namelen=no
18353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18358 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18359 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
18360 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18362 cat >>confdefs.h <<_ACEOF
18363 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18364 _ACEOF
18370 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18371 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
18372 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18373 echo $ECHO_N "(cached) $ECHO_C" >&6
18374 else
18375 cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h. */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18381 #ifdef HAVE_SYS_STATVFS_H
18382 #include <sys/statvfs.h>
18383 #endif
18386 main ()
18388 static struct statvfs ac_aggr;
18389 if (ac_aggr.f_blocks)
18390 return 0;
18392 return 0;
18394 _ACEOF
18395 rm -f conftest.$ac_objext
18396 if { (ac_try="$ac_compile"
18397 case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18400 esac
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_compile") 2>conftest.er1
18403 ac_status=$?
18404 grep -v '^ *+' conftest.er1 >conftest.err
18405 rm -f conftest.er1
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } && {
18409 test -z "$ac_c_werror_flag" ||
18410 test ! -s conftest.err
18411 } && test -s conftest.$ac_objext; then
18412 ac_cv_member_struct_statvfs_f_blocks=yes
18413 else
18414 echo "$as_me: failed program was:" >&5
18415 sed 's/^/| /' conftest.$ac_ext >&5
18417 cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h. */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 #ifdef HAVE_SYS_STATVFS_H
18424 #include <sys/statvfs.h>
18425 #endif
18428 main ()
18430 static struct statvfs ac_aggr;
18431 if (sizeof ac_aggr.f_blocks)
18432 return 0;
18434 return 0;
18436 _ACEOF
18437 rm -f conftest.$ac_objext
18438 if { (ac_try="$ac_compile"
18439 case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18442 esac
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_compile") 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } && {
18451 test -z "$ac_c_werror_flag" ||
18452 test ! -s conftest.err
18453 } && test -s conftest.$ac_objext; then
18454 ac_cv_member_struct_statvfs_f_blocks=yes
18455 else
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 ac_cv_member_struct_statvfs_f_blocks=no
18462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18468 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
18469 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18471 cat >>confdefs.h <<_ACEOF
18472 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18473 _ACEOF
18479 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18480 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
18481 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484 cat >conftest.$ac_ext <<_ACEOF
18485 /* confdefs.h. */
18486 _ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h. */
18490 #include <sys/types.h>
18491 #ifdef HAVE_SYS_SOCKET_H
18492 # include <sys/socket.h>
18493 #endif
18494 #ifdef HAVE_SYS_UN_H
18495 # include <sys/un.h>
18496 #endif
18499 main ()
18501 static struct msghdr ac_aggr;
18502 if (ac_aggr.msg_accrights)
18503 return 0;
18505 return 0;
18507 _ACEOF
18508 rm -f conftest.$ac_objext
18509 if { (ac_try="$ac_compile"
18510 case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18513 esac
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_compile") 2>conftest.er1
18516 ac_status=$?
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } && {
18522 test -z "$ac_c_werror_flag" ||
18523 test ! -s conftest.err
18524 } && test -s conftest.$ac_objext; then
18525 ac_cv_member_struct_msghdr_msg_accrights=yes
18526 else
18527 echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18530 cat >conftest.$ac_ext <<_ACEOF
18531 /* confdefs.h. */
18532 _ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18536 #include <sys/types.h>
18537 #ifdef HAVE_SYS_SOCKET_H
18538 # include <sys/socket.h>
18539 #endif
18540 #ifdef HAVE_SYS_UN_H
18541 # include <sys/un.h>
18542 #endif
18545 main ()
18547 static struct msghdr ac_aggr;
18548 if (sizeof ac_aggr.msg_accrights)
18549 return 0;
18551 return 0;
18553 _ACEOF
18554 rm -f conftest.$ac_objext
18555 if { (ac_try="$ac_compile"
18556 case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18559 esac
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_compile") 2>conftest.er1
18562 ac_status=$?
18563 grep -v '^ *+' conftest.er1 >conftest.err
18564 rm -f conftest.er1
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } && {
18568 test -z "$ac_c_werror_flag" ||
18569 test ! -s conftest.err
18570 } && test -s conftest.$ac_objext; then
18571 ac_cv_member_struct_msghdr_msg_accrights=yes
18572 else
18573 echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18576 ac_cv_member_struct_msghdr_msg_accrights=no
18579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18584 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18585 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
18586 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18588 cat >>confdefs.h <<_ACEOF
18589 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18590 _ACEOF
18594 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18595 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
18596 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18597 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 else
18599 cat >conftest.$ac_ext <<_ACEOF
18600 /* confdefs.h. */
18601 _ACEOF
18602 cat confdefs.h >>conftest.$ac_ext
18603 cat >>conftest.$ac_ext <<_ACEOF
18604 /* end confdefs.h. */
18605 #include <sys/types.h>
18606 #ifdef HAVE_SYS_SOCKET_H
18607 # include <sys/socket.h>
18608 #endif
18609 #ifdef HAVE_SYS_UN_H
18610 # include <sys/un.h>
18611 #endif
18614 main ()
18616 static struct sockaddr ac_aggr;
18617 if (ac_aggr.sa_len)
18618 return 0;
18620 return 0;
18622 _ACEOF
18623 rm -f conftest.$ac_objext
18624 if { (ac_try="$ac_compile"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_compile") 2>conftest.er1
18631 ac_status=$?
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } && {
18637 test -z "$ac_c_werror_flag" ||
18638 test ! -s conftest.err
18639 } && test -s conftest.$ac_objext; then
18640 ac_cv_member_struct_sockaddr_sa_len=yes
18641 else
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h. */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18651 #include <sys/types.h>
18652 #ifdef HAVE_SYS_SOCKET_H
18653 # include <sys/socket.h>
18654 #endif
18655 #ifdef HAVE_SYS_UN_H
18656 # include <sys/un.h>
18657 #endif
18660 main ()
18662 static struct sockaddr ac_aggr;
18663 if (sizeof ac_aggr.sa_len)
18664 return 0;
18666 return 0;
18668 _ACEOF
18669 rm -f conftest.$ac_objext
18670 if { (ac_try="$ac_compile"
18671 case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18674 esac
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676 (eval "$ac_compile") 2>conftest.er1
18677 ac_status=$?
18678 grep -v '^ *+' conftest.er1 >conftest.err
18679 rm -f conftest.er1
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } && {
18683 test -z "$ac_c_werror_flag" ||
18684 test ! -s conftest.err
18685 } && test -s conftest.$ac_objext; then
18686 ac_cv_member_struct_sockaddr_sa_len=yes
18687 else
18688 echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18691 ac_cv_member_struct_sockaddr_sa_len=no
18694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18699 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18700 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
18701 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18703 cat >>confdefs.h <<_ACEOF
18704 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18705 _ACEOF
18709 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18710 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
18711 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 else
18714 cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h. */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 #include <sys/types.h>
18721 #ifdef HAVE_SYS_SOCKET_H
18722 # include <sys/socket.h>
18723 #endif
18724 #ifdef HAVE_SYS_UN_H
18725 # include <sys/un.h>
18726 #endif
18729 main ()
18731 static struct sockaddr_un ac_aggr;
18732 if (ac_aggr.sun_len)
18733 return 0;
18735 return 0;
18737 _ACEOF
18738 rm -f conftest.$ac_objext
18739 if { (ac_try="$ac_compile"
18740 case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_compile") 2>conftest.er1
18746 ac_status=$?
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } && {
18752 test -z "$ac_c_werror_flag" ||
18753 test ! -s conftest.err
18754 } && test -s conftest.$ac_objext; then
18755 ac_cv_member_struct_sockaddr_un_sun_len=yes
18756 else
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18760 cat >conftest.$ac_ext <<_ACEOF
18761 /* confdefs.h. */
18762 _ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18766 #include <sys/types.h>
18767 #ifdef HAVE_SYS_SOCKET_H
18768 # include <sys/socket.h>
18769 #endif
18770 #ifdef HAVE_SYS_UN_H
18771 # include <sys/un.h>
18772 #endif
18775 main ()
18777 static struct sockaddr_un ac_aggr;
18778 if (sizeof ac_aggr.sun_len)
18779 return 0;
18781 return 0;
18783 _ACEOF
18784 rm -f conftest.$ac_objext
18785 if { (ac_try="$ac_compile"
18786 case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_compile") 2>conftest.er1
18792 ac_status=$?
18793 grep -v '^ *+' conftest.er1 >conftest.err
18794 rm -f conftest.er1
18795 cat conftest.err >&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } && {
18798 test -z "$ac_c_werror_flag" ||
18799 test ! -s conftest.err
18800 } && test -s conftest.$ac_objext; then
18801 ac_cv_member_struct_sockaddr_un_sun_len=yes
18802 else
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_cv_member_struct_sockaddr_un_sun_len=no
18809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18814 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18815 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
18816 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18818 cat >>confdefs.h <<_ACEOF
18819 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18820 _ACEOF
18826 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18827 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
18828 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 else
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h. */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 #include <sys/types.h>
18838 #ifdef HAVE_SCSI_SG_H
18839 #include <scsi/sg.h>
18840 #endif
18843 main ()
18845 static scsireq_t ac_aggr;
18846 if (ac_aggr.cmd)
18847 return 0;
18849 return 0;
18851 _ACEOF
18852 rm -f conftest.$ac_objext
18853 if { (ac_try="$ac_compile"
18854 case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18857 esac
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_compile") 2>conftest.er1
18860 ac_status=$?
18861 grep -v '^ *+' conftest.er1 >conftest.err
18862 rm -f conftest.er1
18863 cat conftest.err >&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } && {
18866 test -z "$ac_c_werror_flag" ||
18867 test ! -s conftest.err
18868 } && test -s conftest.$ac_objext; then
18869 ac_cv_member_scsireq_t_cmd=yes
18870 else
18871 echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h. */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 #include <sys/types.h>
18881 #ifdef HAVE_SCSI_SG_H
18882 #include <scsi/sg.h>
18883 #endif
18886 main ()
18888 static scsireq_t ac_aggr;
18889 if (sizeof ac_aggr.cmd)
18890 return 0;
18892 return 0;
18894 _ACEOF
18895 rm -f conftest.$ac_objext
18896 if { (ac_try="$ac_compile"
18897 case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18900 esac
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_compile") 2>conftest.er1
18903 ac_status=$?
18904 grep -v '^ *+' conftest.er1 >conftest.err
18905 rm -f conftest.er1
18906 cat conftest.err >&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } && {
18909 test -z "$ac_c_werror_flag" ||
18910 test ! -s conftest.err
18911 } && test -s conftest.$ac_objext; then
18912 ac_cv_member_scsireq_t_cmd=yes
18913 else
18914 echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18917 ac_cv_member_scsireq_t_cmd=no
18920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18925 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
18926 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
18927 if test $ac_cv_member_scsireq_t_cmd = yes; then
18929 cat >>confdefs.h <<_ACEOF
18930 #define HAVE_SCSIREQ_T_CMD 1
18931 _ACEOF
18935 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
18936 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
18937 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18939 else
18940 cat >conftest.$ac_ext <<_ACEOF
18941 /* confdefs.h. */
18942 _ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18946 #include <sys/types.h>
18947 #ifdef HAVE_SCSI_SG_H
18948 #include <scsi/sg.h>
18949 #endif
18952 main ()
18954 static sg_io_hdr_t ac_aggr;
18955 if (ac_aggr.interface_id)
18956 return 0;
18958 return 0;
18960 _ACEOF
18961 rm -f conftest.$ac_objext
18962 if { (ac_try="$ac_compile"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_compile") 2>conftest.er1
18969 ac_status=$?
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } && {
18975 test -z "$ac_c_werror_flag" ||
18976 test ! -s conftest.err
18977 } && test -s conftest.$ac_objext; then
18978 ac_cv_member_sg_io_hdr_t_interface_id=yes
18979 else
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h. */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 #include <sys/types.h>
18990 #ifdef HAVE_SCSI_SG_H
18991 #include <scsi/sg.h>
18992 #endif
18995 main ()
18997 static sg_io_hdr_t ac_aggr;
18998 if (sizeof ac_aggr.interface_id)
18999 return 0;
19001 return 0;
19003 _ACEOF
19004 rm -f conftest.$ac_objext
19005 if { (ac_try="$ac_compile"
19006 case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19009 esac
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_compile") 2>conftest.er1
19012 ac_status=$?
19013 grep -v '^ *+' conftest.er1 >conftest.err
19014 rm -f conftest.er1
19015 cat conftest.err >&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } && {
19018 test -z "$ac_c_werror_flag" ||
19019 test ! -s conftest.err
19020 } && test -s conftest.$ac_objext; then
19021 ac_cv_member_sg_io_hdr_t_interface_id=yes
19022 else
19023 echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.$ac_ext >&5
19026 ac_cv_member_sg_io_hdr_t_interface_id=no
19029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19034 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19035 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
19036 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19038 cat >>confdefs.h <<_ACEOF
19039 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19040 _ACEOF
19046 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19047 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
19048 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19050 else
19051 cat >conftest.$ac_ext <<_ACEOF
19052 /* confdefs.h. */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19057 #include <signal.h>
19060 main ()
19062 static siginfo_t ac_aggr;
19063 if (ac_aggr.si_fd)
19064 return 0;
19066 return 0;
19068 _ACEOF
19069 rm -f conftest.$ac_objext
19070 if { (ac_try="$ac_compile"
19071 case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19074 esac
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_compile") 2>conftest.er1
19077 ac_status=$?
19078 grep -v '^ *+' conftest.er1 >conftest.err
19079 rm -f conftest.er1
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } && {
19083 test -z "$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 } && test -s conftest.$ac_objext; then
19086 ac_cv_member_siginfo_t_si_fd=yes
19087 else
19088 echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.$ac_ext >&5
19091 cat >conftest.$ac_ext <<_ACEOF
19092 /* confdefs.h. */
19093 _ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19097 #include <signal.h>
19100 main ()
19102 static siginfo_t ac_aggr;
19103 if (sizeof ac_aggr.si_fd)
19104 return 0;
19106 return 0;
19108 _ACEOF
19109 rm -f conftest.$ac_objext
19110 if { (ac_try="$ac_compile"
19111 case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19114 esac
19115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116 (eval "$ac_compile") 2>conftest.er1
19117 ac_status=$?
19118 grep -v '^ *+' conftest.er1 >conftest.err
19119 rm -f conftest.er1
19120 cat conftest.err >&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } && {
19123 test -z "$ac_c_werror_flag" ||
19124 test ! -s conftest.err
19125 } && test -s conftest.$ac_objext; then
19126 ac_cv_member_siginfo_t_si_fd=yes
19127 else
19128 echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19131 ac_cv_member_siginfo_t_si_fd=no
19134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19139 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19140 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
19141 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19143 cat >>confdefs.h <<_ACEOF
19144 #define HAVE_SIGINFO_T_SI_FD 1
19145 _ACEOF
19151 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
19152 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
19153 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
19154 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 else
19156 cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h. */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19162 #include <sys/types.h>
19163 #ifdef HAVE_SYS_MTIO_H
19164 #include <sys/mtio.h>
19165 #endif
19168 main ()
19170 static struct mtget ac_aggr;
19171 if (ac_aggr.mt_blksiz)
19172 return 0;
19174 return 0;
19176 _ACEOF
19177 rm -f conftest.$ac_objext
19178 if { (ac_try="$ac_compile"
19179 case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19182 esac
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_compile") 2>conftest.er1
19185 ac_status=$?
19186 grep -v '^ *+' conftest.er1 >conftest.err
19187 rm -f conftest.er1
19188 cat conftest.err >&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && {
19191 test -z "$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 } && test -s conftest.$ac_objext; then
19194 ac_cv_member_struct_mtget_mt_blksiz=yes
19195 else
19196 echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19199 cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h. */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19205 #include <sys/types.h>
19206 #ifdef HAVE_SYS_MTIO_H
19207 #include <sys/mtio.h>
19208 #endif
19211 main ()
19213 static struct mtget ac_aggr;
19214 if (sizeof ac_aggr.mt_blksiz)
19215 return 0;
19217 return 0;
19219 _ACEOF
19220 rm -f conftest.$ac_objext
19221 if { (ac_try="$ac_compile"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_compile") 2>conftest.er1
19228 ac_status=$?
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } && {
19234 test -z "$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19236 } && test -s conftest.$ac_objext; then
19237 ac_cv_member_struct_mtget_mt_blksiz=yes
19238 else
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19242 ac_cv_member_struct_mtget_mt_blksiz=no
19245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19250 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
19251 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
19252 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
19254 cat >>confdefs.h <<_ACEOF
19255 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
19256 _ACEOF
19260 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
19261 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
19262 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265 cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h. */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 #include <sys/types.h>
19272 #ifdef HAVE_SYS_MTIO_H
19273 #include <sys/mtio.h>
19274 #endif
19277 main ()
19279 static struct mtget ac_aggr;
19280 if (ac_aggr.mt_gstat)
19281 return 0;
19283 return 0;
19285 _ACEOF
19286 rm -f conftest.$ac_objext
19287 if { (ac_try="$ac_compile"
19288 case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19291 esac
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_compile") 2>conftest.er1
19294 ac_status=$?
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } && {
19300 test -z "$ac_c_werror_flag" ||
19301 test ! -s conftest.err
19302 } && test -s conftest.$ac_objext; then
19303 ac_cv_member_struct_mtget_mt_gstat=yes
19304 else
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19308 cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h. */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19314 #include <sys/types.h>
19315 #ifdef HAVE_SYS_MTIO_H
19316 #include <sys/mtio.h>
19317 #endif
19320 main ()
19322 static struct mtget ac_aggr;
19323 if (sizeof ac_aggr.mt_gstat)
19324 return 0;
19326 return 0;
19328 _ACEOF
19329 rm -f conftest.$ac_objext
19330 if { (ac_try="$ac_compile"
19331 case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19334 esac
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336 (eval "$ac_compile") 2>conftest.er1
19337 ac_status=$?
19338 grep -v '^ *+' conftest.er1 >conftest.err
19339 rm -f conftest.er1
19340 cat conftest.err >&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } && {
19343 test -z "$ac_c_werror_flag" ||
19344 test ! -s conftest.err
19345 } && test -s conftest.$ac_objext; then
19346 ac_cv_member_struct_mtget_mt_gstat=yes
19347 else
19348 echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19351 ac_cv_member_struct_mtget_mt_gstat=no
19354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19359 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
19360 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
19361 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
19363 cat >>confdefs.h <<_ACEOF
19364 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
19365 _ACEOF
19369 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
19370 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
19371 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374 cat >conftest.$ac_ext <<_ACEOF
19375 /* confdefs.h. */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19380 #include <sys/types.h>
19381 #ifdef HAVE_SYS_MTIO_H
19382 #include <sys/mtio.h>
19383 #endif
19386 main ()
19388 static struct mtget ac_aggr;
19389 if (ac_aggr.mt_blkno)
19390 return 0;
19392 return 0;
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19403 ac_status=$?
19404 grep -v '^ *+' conftest.er1 >conftest.err
19405 rm -f conftest.er1
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } && {
19409 test -z "$ac_c_werror_flag" ||
19410 test ! -s conftest.err
19411 } && test -s conftest.$ac_objext; then
19412 ac_cv_member_struct_mtget_mt_blkno=yes
19413 else
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19417 cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h. */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19423 #include <sys/types.h>
19424 #ifdef HAVE_SYS_MTIO_H
19425 #include <sys/mtio.h>
19426 #endif
19429 main ()
19431 static struct mtget ac_aggr;
19432 if (sizeof ac_aggr.mt_blkno)
19433 return 0;
19435 return 0;
19437 _ACEOF
19438 rm -f conftest.$ac_objext
19439 if { (ac_try="$ac_compile"
19440 case "(($ac_try" in
19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19443 esac
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445 (eval "$ac_compile") 2>conftest.er1
19446 ac_status=$?
19447 grep -v '^ *+' conftest.er1 >conftest.err
19448 rm -f conftest.er1
19449 cat conftest.err >&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } && {
19452 test -z "$ac_c_werror_flag" ||
19453 test ! -s conftest.err
19454 } && test -s conftest.$ac_objext; then
19455 ac_cv_member_struct_mtget_mt_blkno=yes
19456 else
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19460 ac_cv_member_struct_mtget_mt_blkno=no
19463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19468 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19469 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
19470 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19472 cat >>confdefs.h <<_ACEOF
19473 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
19474 _ACEOF
19480 { echo "$as_me:$LINENO: checking for struct option.name" >&5
19481 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
19482 if test "${ac_cv_member_struct_option_name+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485 cat >conftest.$ac_ext <<_ACEOF
19486 /* confdefs.h. */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19491 #ifdef HAVE_GETOPT_H
19492 #include <getopt.h>
19493 #endif
19496 main ()
19498 static struct option ac_aggr;
19499 if (ac_aggr.name)
19500 return 0;
19502 return 0;
19504 _ACEOF
19505 rm -f conftest.$ac_objext
19506 if { (ac_try="$ac_compile"
19507 case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_compile") 2>conftest.er1
19513 ac_status=$?
19514 grep -v '^ *+' conftest.er1 >conftest.err
19515 rm -f conftest.er1
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } && {
19519 test -z "$ac_c_werror_flag" ||
19520 test ! -s conftest.err
19521 } && test -s conftest.$ac_objext; then
19522 ac_cv_member_struct_option_name=yes
19523 else
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h. */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 #ifdef HAVE_GETOPT_H
19534 #include <getopt.h>
19535 #endif
19538 main ()
19540 static struct option ac_aggr;
19541 if (sizeof ac_aggr.name)
19542 return 0;
19544 return 0;
19546 _ACEOF
19547 rm -f conftest.$ac_objext
19548 if { (ac_try="$ac_compile"
19549 case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_compile") 2>conftest.er1
19555 ac_status=$?
19556 grep -v '^ *+' conftest.er1 >conftest.err
19557 rm -f conftest.er1
19558 cat conftest.err >&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest.$ac_objext; then
19564 ac_cv_member_struct_option_name=yes
19565 else
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_cv_member_struct_option_name=no
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19577 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19578 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
19579 if test $ac_cv_member_struct_option_name = yes; then
19581 cat >>confdefs.h <<_ACEOF
19582 #define HAVE_STRUCT_OPTION_NAME 1
19583 _ACEOF
19589 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19590 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19591 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594 cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h. */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 $ac_includes_default
19602 main ()
19604 static struct stat ac_aggr;
19605 if (ac_aggr.st_blocks)
19606 return 0;
19608 return 0;
19610 _ACEOF
19611 rm -f conftest.$ac_objext
19612 if { (ac_try="$ac_compile"
19613 case "(($ac_try" in
19614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19615 *) ac_try_echo=$ac_try;;
19616 esac
19617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19618 (eval "$ac_compile") 2>conftest.er1
19619 ac_status=$?
19620 grep -v '^ *+' conftest.er1 >conftest.err
19621 rm -f conftest.er1
19622 cat conftest.err >&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); } && {
19625 test -z "$ac_c_werror_flag" ||
19626 test ! -s conftest.err
19627 } && test -s conftest.$ac_objext; then
19628 ac_cv_member_struct_stat_st_blocks=yes
19629 else
19630 echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19633 cat >conftest.$ac_ext <<_ACEOF
19634 /* confdefs.h. */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 $ac_includes_default
19641 main ()
19643 static struct stat ac_aggr;
19644 if (sizeof ac_aggr.st_blocks)
19645 return 0;
19647 return 0;
19649 _ACEOF
19650 rm -f conftest.$ac_objext
19651 if { (ac_try="$ac_compile"
19652 case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19655 esac
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_compile") 2>conftest.er1
19658 ac_status=$?
19659 grep -v '^ *+' conftest.er1 >conftest.err
19660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } && {
19664 test -z "$ac_c_werror_flag" ||
19665 test ! -s conftest.err
19666 } && test -s conftest.$ac_objext; then
19667 ac_cv_member_struct_stat_st_blocks=yes
19668 else
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19672 ac_cv_member_struct_stat_st_blocks=no
19675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19680 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19681 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19682 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19684 cat >>confdefs.h <<_ACEOF
19685 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19686 _ACEOF
19692 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19693 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
19694 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 else
19697 cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h. */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703 #ifdef HAVE_SYS_TYPES_H
19704 #include <sys/types.h>
19705 #endif
19706 #ifdef HAVE_NETINET_IN_H
19707 #include <netinet/in.h>
19708 #endif
19711 main ()
19713 static struct sockaddr_in6 ac_aggr;
19714 if (ac_aggr.sin6_scope_id)
19715 return 0;
19717 return 0;
19719 _ACEOF
19720 rm -f conftest.$ac_objext
19721 if { (ac_try="$ac_compile"
19722 case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19725 esac
19726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_compile") 2>conftest.er1
19728 ac_status=$?
19729 grep -v '^ *+' conftest.er1 >conftest.err
19730 rm -f conftest.er1
19731 cat conftest.err >&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } && {
19734 test -z "$ac_c_werror_flag" ||
19735 test ! -s conftest.err
19736 } && test -s conftest.$ac_objext; then
19737 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19738 else
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19742 cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h. */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 #ifdef HAVE_SYS_TYPES_H
19749 #include <sys/types.h>
19750 #endif
19751 #ifdef HAVE_NETINET_IN_H
19752 #include <netinet/in.h>
19753 #endif
19756 main ()
19758 static struct sockaddr_in6 ac_aggr;
19759 if (sizeof ac_aggr.sin6_scope_id)
19760 return 0;
19762 return 0;
19764 _ACEOF
19765 rm -f conftest.$ac_objext
19766 if { (ac_try="$ac_compile"
19767 case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19770 esac
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_compile") 2>conftest.er1
19773 ac_status=$?
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && {
19779 test -z "$ac_c_werror_flag" ||
19780 test ! -s conftest.err
19781 } && test -s conftest.$ac_objext; then
19782 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19783 else
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19796 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
19797 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19799 cat >>confdefs.h <<_ACEOF
19800 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19801 _ACEOF
19807 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
19808 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
19809 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812 cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h. */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 #ifdef HAVE_SYS_TYPES_H
19819 #include <sys/types.h>
19820 #endif
19821 #ifdef HAVE_NETINET_IN_H
19822 # include <netinet/in.h>
19823 #endif
19824 #ifdef HAVE_ARPA_NAMESER_H
19825 # include <arpa/nameser.h>
19826 #endif
19829 main ()
19831 static ns_msg ac_aggr;
19832 if (ac_aggr._msg_ptr)
19833 return 0;
19835 return 0;
19837 _ACEOF
19838 rm -f conftest.$ac_objext
19839 if { (ac_try="$ac_compile"
19840 case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19843 esac
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_compile") 2>conftest.er1
19846 ac_status=$?
19847 grep -v '^ *+' conftest.er1 >conftest.err
19848 rm -f conftest.er1
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } && {
19852 test -z "$ac_c_werror_flag" ||
19853 test ! -s conftest.err
19854 } && test -s conftest.$ac_objext; then
19855 ac_cv_member_ns_msg__msg_ptr=yes
19856 else
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h. */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 #ifdef HAVE_SYS_TYPES_H
19867 #include <sys/types.h>
19868 #endif
19869 #ifdef HAVE_NETINET_IN_H
19870 # include <netinet/in.h>
19871 #endif
19872 #ifdef HAVE_ARPA_NAMESER_H
19873 # include <arpa/nameser.h>
19874 #endif
19877 main ()
19879 static ns_msg ac_aggr;
19880 if (sizeof ac_aggr._msg_ptr)
19881 return 0;
19883 return 0;
19885 _ACEOF
19886 rm -f conftest.$ac_objext
19887 if { (ac_try="$ac_compile"
19888 case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_compile") 2>conftest.er1
19894 ac_status=$?
19895 grep -v '^ *+' conftest.er1 >conftest.err
19896 rm -f conftest.er1
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } && {
19900 test -z "$ac_c_werror_flag" ||
19901 test ! -s conftest.err
19902 } && test -s conftest.$ac_objext; then
19903 ac_cv_member_ns_msg__msg_ptr=yes
19904 else
19905 echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19908 ac_cv_member_ns_msg__msg_ptr=no
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19916 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
19917 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
19918 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
19920 cat >>confdefs.h <<_ACEOF
19921 #define HAVE_NS_MSG__MSG_PTR 1
19922 _ACEOF
19928 { echo "$as_me:$LINENO: checking for timezone variable" >&5
19929 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
19930 if test "${ac_cv_have_timezone+set}" = set; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 else
19933 cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h. */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 #include <time.h>
19941 main ()
19943 timezone = 1
19945 return 0;
19947 _ACEOF
19948 rm -f conftest.$ac_objext conftest$ac_exeext
19949 if { (ac_try="$ac_link"
19950 case "(($ac_try" in
19951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952 *) ac_try_echo=$ac_try;;
19953 esac
19954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955 (eval "$ac_link") 2>conftest.er1
19956 ac_status=$?
19957 grep -v '^ *+' conftest.er1 >conftest.err
19958 rm -f conftest.er1
19959 cat conftest.err >&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } && {
19962 test -z "$ac_c_werror_flag" ||
19963 test ! -s conftest.err
19964 } && test -s conftest$ac_exeext &&
19965 $as_test_x conftest$ac_exeext; then
19966 ac_cv_have_timezone="yes"
19967 else
19968 echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19971 ac_cv_have_timezone="no"
19974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19975 conftest$ac_exeext conftest.$ac_ext
19977 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19978 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
19979 if test "$ac_cv_have_timezone" = "yes"
19980 then
19982 cat >>confdefs.h <<\_ACEOF
19983 #define HAVE_TIMEZONE 1
19984 _ACEOF
19987 { echo "$as_me:$LINENO: checking for daylight variable" >&5
19988 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
19989 if test "${ac_cv_have_daylight+set}" = set; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
19991 else
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 #include <time.h>
20000 main ()
20002 daylight = 1
20004 return 0;
20006 _ACEOF
20007 rm -f conftest.$ac_objext conftest$ac_exeext
20008 if { (ac_try="$ac_link"
20009 case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20012 esac
20013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014 (eval "$ac_link") 2>conftest.er1
20015 ac_status=$?
20016 grep -v '^ *+' conftest.er1 >conftest.err
20017 rm -f conftest.er1
20018 cat conftest.err >&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } && {
20021 test -z "$ac_c_werror_flag" ||
20022 test ! -s conftest.err
20023 } && test -s conftest$ac_exeext &&
20024 $as_test_x conftest$ac_exeext; then
20025 ac_cv_have_daylight="yes"
20026 else
20027 echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20030 ac_cv_have_daylight="no"
20033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20034 conftest$ac_exeext conftest.$ac_ext
20036 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20037 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
20038 if test "$ac_cv_have_daylight" = "yes"
20039 then
20041 cat >>confdefs.h <<\_ACEOF
20042 #define HAVE_DAYLIGHT 1
20043 _ACEOF
20048 case $host_cpu in
20049 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20050 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
20051 if test "${ac_cv_cpp_def___i386__+set}" = set; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 else
20054 cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h. */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060 #ifndef __i386__
20062 #endif
20063 _ACEOF
20064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20065 $EGREP "yes" >/dev/null 2>&1; then
20066 ac_cv_cpp_def___i386__=yes
20067 else
20068 ac_cv_cpp_def___i386__=no
20070 rm -f conftest*
20073 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20074 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
20075 if test $ac_cv_cpp_def___i386__ = yes; then
20076 CFLAGS="$CFLAGS -D__i386__"
20077 LINTFLAGS="$LINTFLAGS -D__i386__"
20080 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
20081 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
20082 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 else
20085 cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h. */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20091 #ifndef __x86_64__
20093 #endif
20094 _ACEOF
20095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20096 $EGREP "yes" >/dev/null 2>&1; then
20097 ac_cv_cpp_def___x86_64__=yes
20098 else
20099 ac_cv_cpp_def___x86_64__=no
20101 rm -f conftest*
20104 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
20105 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
20106 if test $ac_cv_cpp_def___x86_64__ = yes; then
20107 CFLAGS="$CFLAGS -D__x86_64__"
20108 LINTFLAGS="$LINTFLAGS -D__x86_64__"
20111 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20112 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
20113 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116 cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h. */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 #ifndef __ALPHA__
20124 #endif
20125 _ACEOF
20126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20127 $EGREP "yes" >/dev/null 2>&1; then
20128 ac_cv_cpp_def___ALPHA__=yes
20129 else
20130 ac_cv_cpp_def___ALPHA__=no
20132 rm -f conftest*
20135 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20136 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
20137 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20138 CFLAGS="$CFLAGS -D__ALPHA__"
20139 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20142 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20143 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
20144 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147 cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h. */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 #ifndef __sparc__
20155 #endif
20156 _ACEOF
20157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20158 $EGREP "yes" >/dev/null 2>&1; then
20159 ac_cv_cpp_def___sparc__=yes
20160 else
20161 ac_cv_cpp_def___sparc__=no
20163 rm -f conftest*
20166 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20167 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
20168 if test $ac_cv_cpp_def___sparc__ = yes; then
20169 CFLAGS="$CFLAGS -D__sparc__"
20170 LINTFLAGS="$LINTFLAGS -D__sparc__"
20173 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20174 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
20175 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20176 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 else
20178 cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h. */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h. */
20184 #ifndef __powerpc__
20186 #endif
20187 _ACEOF
20188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20189 $EGREP "yes" >/dev/null 2>&1; then
20190 ac_cv_cpp_def___powerpc__=yes
20191 else
20192 ac_cv_cpp_def___powerpc__=no
20194 rm -f conftest*
20197 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20198 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
20199 if test $ac_cv_cpp_def___powerpc__ = yes; then
20200 CFLAGS="$CFLAGS -D__powerpc__"
20201 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20204 esac
20206 case $host_vendor in
20207 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20208 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
20209 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212 cat >conftest.$ac_ext <<_ACEOF
20213 /* confdefs.h. */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 #ifndef __sun__
20220 #endif
20221 _ACEOF
20222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20223 $EGREP "yes" >/dev/null 2>&1; then
20224 ac_cv_cpp_def___sun__=yes
20225 else
20226 ac_cv_cpp_def___sun__=no
20228 rm -f conftest*
20231 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20232 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
20233 if test $ac_cv_cpp_def___sun__ = yes; then
20234 CFLAGS="$CFLAGS -D__sun__"
20235 LINTFLAGS="$LINTFLAGS -D__sun__"
20238 esac
20241 DEPENDENCIES="### Dependencies:
20243 .INIT: Makefile
20244 .BEGIN: Makefile
20245 Makefile: dummy
20246 -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
20248 \$(ALL_OBJS): \$(IDL_H_SRCS:.idl=.h)
20249 \$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
20250 \$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
20251 \$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
20257 ac_config_commands="$ac_config_commands include/stamp-h"
20260 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
20262 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
20264 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
20266 ac_config_commands="$ac_config_commands dlls/user32/resources"
20268 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
20270 ac_config_commands="$ac_config_commands include/wine"
20273 MAKE_RULES=Make.rules
20276 MAKE_DLL_RULES=dlls/Makedll.rules
20279 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
20282 MAKE_TEST_RULES=dlls/Maketest.rules
20285 MAKE_PROG_RULES=programs/Makeprog.rules
20288 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/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/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/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"
20291 cat >confcache <<\_ACEOF
20292 # This file is a shell script that caches the results of configure
20293 # tests run on this system so they can be shared between configure
20294 # scripts and configure runs, see configure's option --config-cache.
20295 # It is not useful on other systems. If it contains results you don't
20296 # want to keep, you may remove or edit it.
20298 # config.status only pays attention to the cache file if you give it
20299 # the --recheck option to rerun configure.
20301 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20302 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20303 # following values.
20305 _ACEOF
20307 # The following way of writing the cache mishandles newlines in values,
20308 # but we know of no workaround that is simple, portable, and efficient.
20309 # So, we kill variables containing newlines.
20310 # Ultrix sh set writes to stderr and can't be redirected directly,
20311 # and sets the high bit in the cache file unless we assign to the vars.
20313 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20314 eval ac_val=\$$ac_var
20315 case $ac_val in #(
20316 *${as_nl}*)
20317 case $ac_var in #(
20318 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20319 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20320 esac
20321 case $ac_var in #(
20322 _ | IFS | as_nl) ;; #(
20323 *) $as_unset $ac_var ;;
20324 esac ;;
20325 esac
20326 done
20328 (set) 2>&1 |
20329 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20330 *${as_nl}ac_space=\ *)
20331 # `set' does not quote correctly, so add quotes (double-quote
20332 # substitution turns \\\\ into \\, and sed turns \\ into \).
20333 sed -n \
20334 "s/'/'\\\\''/g;
20335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20336 ;; #(
20338 # `set' quotes correctly as required by POSIX, so do not add quotes.
20339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20341 esac |
20342 sort
20344 sed '
20345 /^ac_cv_env_/b end
20346 t clear
20347 :clear
20348 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20349 t end
20350 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20351 :end' >>confcache
20352 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20353 if test -w "$cache_file"; then
20354 test "x$cache_file" != "x/dev/null" &&
20355 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20356 echo "$as_me: updating cache $cache_file" >&6;}
20357 cat confcache >$cache_file
20358 else
20359 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20360 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20363 rm -f confcache
20365 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20366 # Let make expand exec_prefix.
20367 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20369 DEFS=-DHAVE_CONFIG_H
20371 ac_libobjs=
20372 ac_ltlibobjs=
20373 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20374 # 1. Remove the extension, and $U if already installed.
20375 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20376 ac_i=`echo "$ac_i" | sed "$ac_script"`
20377 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20378 # will be set to the directory where LIBOBJS objects are built.
20379 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20380 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20381 done
20382 LIBOBJS=$ac_libobjs
20384 LTLIBOBJS=$ac_ltlibobjs
20388 : ${CONFIG_STATUS=./config.status}
20389 ac_clean_files_save=$ac_clean_files
20390 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20391 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20392 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20393 cat >$CONFIG_STATUS <<_ACEOF
20394 #! $SHELL
20395 # Generated by $as_me.
20396 # Run this file to recreate the current configuration.
20397 # Compiler output produced by configure, useful for debugging
20398 # configure, is in config.log if it exists.
20400 debug=false
20401 ac_cs_recheck=false
20402 ac_cs_silent=false
20403 SHELL=\${CONFIG_SHELL-$SHELL}
20404 _ACEOF
20406 cat >>$CONFIG_STATUS <<\_ACEOF
20407 ## --------------------- ##
20408 ## M4sh Initialization. ##
20409 ## --------------------- ##
20411 # Be more Bourne compatible
20412 DUALCASE=1; export DUALCASE # for MKS sh
20413 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20414 emulate sh
20415 NULLCMD=:
20416 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20417 # is contrary to our usage. Disable this feature.
20418 alias -g '${1+"$@"}'='"$@"'
20419 setopt NO_GLOB_SUBST
20420 else
20421 case `(set -o) 2>/dev/null` in
20422 *posix*) set -o posix ;;
20423 esac
20430 # PATH needs CR
20431 # Avoid depending upon Character Ranges.
20432 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20433 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20434 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20435 as_cr_digits='0123456789'
20436 as_cr_alnum=$as_cr_Letters$as_cr_digits
20438 # The user is always right.
20439 if test "${PATH_SEPARATOR+set}" != set; then
20440 echo "#! /bin/sh" >conf$$.sh
20441 echo "exit 0" >>conf$$.sh
20442 chmod +x conf$$.sh
20443 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20444 PATH_SEPARATOR=';'
20445 else
20446 PATH_SEPARATOR=:
20448 rm -f conf$$.sh
20451 # Support unset when possible.
20452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20453 as_unset=unset
20454 else
20455 as_unset=false
20459 # IFS
20460 # We need space, tab and new line, in precisely that order. Quoting is
20461 # there to prevent editors from complaining about space-tab.
20462 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20463 # splitting by setting IFS to empty value.)
20464 as_nl='
20466 IFS=" "" $as_nl"
20468 # Find who we are. Look in the path if we contain no directory separator.
20469 case $0 in
20470 *[\\/]* ) as_myself=$0 ;;
20471 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20472 for as_dir in $PATH
20474 IFS=$as_save_IFS
20475 test -z "$as_dir" && as_dir=.
20476 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20477 done
20478 IFS=$as_save_IFS
20481 esac
20482 # We did not find ourselves, most probably we were run as `sh COMMAND'
20483 # in which case we are not to be found in the path.
20484 if test "x$as_myself" = x; then
20485 as_myself=$0
20487 if test ! -f "$as_myself"; then
20488 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20489 { (exit 1); exit 1; }
20492 # Work around bugs in pre-3.0 UWIN ksh.
20493 for as_var in ENV MAIL MAILPATH
20494 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20495 done
20496 PS1='$ '
20497 PS2='> '
20498 PS4='+ '
20500 # NLS nuisances.
20501 for as_var in \
20502 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20503 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20504 LC_TELEPHONE LC_TIME
20506 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20507 eval $as_var=C; export $as_var
20508 else
20509 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20511 done
20513 # Required to use basename.
20514 if expr a : '\(a\)' >/dev/null 2>&1 &&
20515 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20516 as_expr=expr
20517 else
20518 as_expr=false
20521 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20522 as_basename=basename
20523 else
20524 as_basename=false
20528 # Name of the executable.
20529 as_me=`$as_basename -- "$0" ||
20530 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20531 X"$0" : 'X\(//\)$' \| \
20532 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20533 echo X/"$0" |
20534 sed '/^.*\/\([^/][^/]*\)\/*$/{
20535 s//\1/
20538 /^X\/\(\/\/\)$/{
20539 s//\1/
20542 /^X\/\(\/\).*/{
20543 s//\1/
20546 s/.*/./; q'`
20548 # CDPATH.
20549 $as_unset CDPATH
20553 as_lineno_1=$LINENO
20554 as_lineno_2=$LINENO
20555 test "x$as_lineno_1" != "x$as_lineno_2" &&
20556 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20558 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20559 # uniformly replaced by the line number. The first 'sed' inserts a
20560 # line-number line after each line using $LINENO; the second 'sed'
20561 # does the real work. The second script uses 'N' to pair each
20562 # line-number line with the line containing $LINENO, and appends
20563 # trailing '-' during substitution so that $LINENO is not a special
20564 # case at line end.
20565 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20566 # scripts with optimization help from Paolo Bonzini. Blame Lee
20567 # E. McMahon (1931-1989) for sed's syntax. :-)
20568 sed -n '
20570 /[$]LINENO/=
20571 ' <$as_myself |
20572 sed '
20573 s/[$]LINENO.*/&-/
20574 t lineno
20576 :lineno
20578 :loop
20579 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20580 t loop
20581 s/-\n.*//
20582 ' >$as_me.lineno &&
20583 chmod +x "$as_me.lineno" ||
20584 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20585 { (exit 1); exit 1; }; }
20587 # Don't try to exec as it changes $[0], causing all sort of problems
20588 # (the dirname of $[0] is not the place where we might find the
20589 # original and so on. Autoconf is especially sensitive to this).
20590 . "./$as_me.lineno"
20591 # Exit status is that of the last command.
20592 exit
20596 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20597 as_dirname=dirname
20598 else
20599 as_dirname=false
20602 ECHO_C= ECHO_N= ECHO_T=
20603 case `echo -n x` in
20604 -n*)
20605 case `echo 'x\c'` in
20606 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20607 *) ECHO_C='\c';;
20608 esac;;
20610 ECHO_N='-n';;
20611 esac
20613 if expr a : '\(a\)' >/dev/null 2>&1 &&
20614 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20615 as_expr=expr
20616 else
20617 as_expr=false
20620 rm -f conf$$ conf$$.exe conf$$.file
20621 if test -d conf$$.dir; then
20622 rm -f conf$$.dir/conf$$.file
20623 else
20624 rm -f conf$$.dir
20625 mkdir conf$$.dir
20627 echo >conf$$.file
20628 if ln -s conf$$.file conf$$ 2>/dev/null; then
20629 as_ln_s='ln -s'
20630 # ... but there are two gotchas:
20631 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20632 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20633 # In both cases, we have to default to `cp -p'.
20634 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20635 as_ln_s='cp -p'
20636 elif ln conf$$.file conf$$ 2>/dev/null; then
20637 as_ln_s=ln
20638 else
20639 as_ln_s='cp -p'
20641 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20642 rmdir conf$$.dir 2>/dev/null
20644 if mkdir -p . 2>/dev/null; then
20645 as_mkdir_p=:
20646 else
20647 test -d ./-p && rmdir ./-p
20648 as_mkdir_p=false
20651 if test -x / >/dev/null 2>&1; then
20652 as_test_x='test -x'
20653 else
20654 if ls -dL / >/dev/null 2>&1; then
20655 as_ls_L_option=L
20656 else
20657 as_ls_L_option=
20659 as_test_x='
20660 eval sh -c '\''
20661 if test -d "$1"; then
20662 test -d "$1/.";
20663 else
20664 case $1 in
20665 -*)set "./$1";;
20666 esac;
20667 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20668 ???[sx]*):;;*)false;;esac;fi
20669 '\'' sh
20672 as_executable_p=$as_test_x
20674 # Sed expression to map a string onto a valid CPP name.
20675 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20677 # Sed expression to map a string onto a valid variable name.
20678 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20681 exec 6>&1
20683 # Save the log message, to keep $[0] and so on meaningful, and to
20684 # report actual input values of CONFIG_FILES etc. instead of their
20685 # values after options handling.
20686 ac_log="
20687 This file was extended by Wine $as_me 0.9.28, which was
20688 generated by GNU Autoconf 2.61. Invocation command line was
20690 CONFIG_FILES = $CONFIG_FILES
20691 CONFIG_HEADERS = $CONFIG_HEADERS
20692 CONFIG_LINKS = $CONFIG_LINKS
20693 CONFIG_COMMANDS = $CONFIG_COMMANDS
20694 $ $0 $@
20696 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20699 _ACEOF
20701 cat >>$CONFIG_STATUS <<_ACEOF
20702 # Files that config.status was made for.
20703 config_files="$ac_config_files"
20704 config_headers="$ac_config_headers"
20705 config_commands="$ac_config_commands"
20707 _ACEOF
20709 cat >>$CONFIG_STATUS <<\_ACEOF
20710 ac_cs_usage="\
20711 \`$as_me' instantiates files from templates according to the
20712 current configuration.
20714 Usage: $0 [OPTIONS] [FILE]...
20716 -h, --help print this help, then exit
20717 -V, --version print version number and configuration settings, then exit
20718 -q, --quiet do not print progress messages
20719 -d, --debug don't remove temporary files
20720 --recheck update $as_me by reconfiguring in the same conditions
20721 --file=FILE[:TEMPLATE]
20722 instantiate the configuration file FILE
20723 --header=FILE[:TEMPLATE]
20724 instantiate the configuration header FILE
20726 Configuration files:
20727 $config_files
20729 Configuration headers:
20730 $config_headers
20732 Configuration commands:
20733 $config_commands
20735 Report bugs to <bug-autoconf@gnu.org>."
20737 _ACEOF
20738 cat >>$CONFIG_STATUS <<_ACEOF
20739 ac_cs_version="\\
20740 Wine config.status 0.9.28
20741 configured by $0, generated by GNU Autoconf 2.61,
20742 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20744 Copyright (C) 2006 Free Software Foundation, Inc.
20745 This config.status script is free software; the Free Software Foundation
20746 gives unlimited permission to copy, distribute and modify it."
20748 ac_pwd='$ac_pwd'
20749 srcdir='$srcdir'
20750 INSTALL='$INSTALL'
20751 _ACEOF
20753 cat >>$CONFIG_STATUS <<\_ACEOF
20754 # If no file are specified by the user, then we need to provide default
20755 # value. By we need to know if files were specified by the user.
20756 ac_need_defaults=:
20757 while test $# != 0
20759 case $1 in
20760 --*=*)
20761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20762 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20763 ac_shift=:
20766 ac_option=$1
20767 ac_optarg=$2
20768 ac_shift=shift
20770 esac
20772 case $ac_option in
20773 # Handling of the options.
20774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20775 ac_cs_recheck=: ;;
20776 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20777 echo "$ac_cs_version"; exit ;;
20778 --debug | --debu | --deb | --de | --d | -d )
20779 debug=: ;;
20780 --file | --fil | --fi | --f )
20781 $ac_shift
20782 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20783 ac_need_defaults=false;;
20784 --header | --heade | --head | --hea )
20785 $ac_shift
20786 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20787 ac_need_defaults=false;;
20788 --he | --h)
20789 # Conflict between --help and --header
20790 { echo "$as_me: error: ambiguous option: $1
20791 Try \`$0 --help' for more information." >&2
20792 { (exit 1); exit 1; }; };;
20793 --help | --hel | -h )
20794 echo "$ac_cs_usage"; exit ;;
20795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20796 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20797 ac_cs_silent=: ;;
20799 # This is an error.
20800 -*) { echo "$as_me: error: unrecognized option: $1
20801 Try \`$0 --help' for more information." >&2
20802 { (exit 1); exit 1; }; } ;;
20804 *) ac_config_targets="$ac_config_targets $1"
20805 ac_need_defaults=false ;;
20807 esac
20808 shift
20809 done
20811 ac_configure_extra_args=
20813 if $ac_cs_silent; then
20814 exec 6>/dev/null
20815 ac_configure_extra_args="$ac_configure_extra_args --silent"
20818 _ACEOF
20819 cat >>$CONFIG_STATUS <<_ACEOF
20820 if \$ac_cs_recheck; then
20821 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20822 CONFIG_SHELL=$SHELL
20823 export CONFIG_SHELL
20824 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20827 _ACEOF
20828 cat >>$CONFIG_STATUS <<\_ACEOF
20829 exec 5>>config.log
20831 echo
20832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20833 ## Running $as_me. ##
20834 _ASBOX
20835 echo "$ac_log"
20836 } >&5
20838 _ACEOF
20839 cat >>$CONFIG_STATUS <<_ACEOF
20840 _ACEOF
20842 cat >>$CONFIG_STATUS <<\_ACEOF
20844 # Handling of arguments.
20845 for ac_config_target in $ac_config_targets
20847 case $ac_config_target in
20848 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20849 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
20850 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
20851 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
20852 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
20853 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
20854 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
20855 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20856 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20857 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20858 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
20859 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20860 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20861 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20862 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20863 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
20864 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20865 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20866 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20867 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
20868 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20869 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20870 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20871 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20872 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20873 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
20874 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20875 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20876 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20877 "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
20878 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20879 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
20880 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20881 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20882 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
20883 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
20884 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
20885 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20886 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20887 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
20888 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
20889 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
20890 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
20891 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20892 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
20893 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20894 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
20895 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20896 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20897 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20898 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20899 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20900 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20901 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20902 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20903 "dlls/ddrawex/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddrawex/Makefile" ;;
20904 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20905 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20906 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
20907 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20908 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20909 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20910 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20911 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20912 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20913 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20914 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20915 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20916 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20917 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
20918 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
20919 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20920 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20921 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20922 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20923 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20924 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20925 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20926 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20927 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20928 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20929 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20930 "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
20931 "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
20932 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20933 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
20934 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20935 "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
20936 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
20937 "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
20938 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20939 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20940 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20941 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
20942 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20943 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20944 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
20945 "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
20946 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
20947 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20948 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20949 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20950 "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
20951 "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
20952 "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
20953 "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
20954 "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
20955 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
20956 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
20957 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20958 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20959 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
20960 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
20961 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
20962 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
20963 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
20964 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20965 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20966 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20967 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20968 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20969 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
20970 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
20971 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
20972 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
20973 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
20974 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20975 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20976 "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
20977 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20978 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
20979 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
20980 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20981 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
20982 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20983 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
20984 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20985 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
20986 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20987 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20988 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20989 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20990 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20991 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20992 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20993 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20994 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
20995 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20996 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20997 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
20998 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
20999 "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
21000 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
21001 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
21002 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
21003 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
21004 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
21005 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
21006 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
21007 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
21008 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
21009 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
21010 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21011 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21012 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21013 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21014 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21015 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21016 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21017 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
21018 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
21019 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
21020 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21021 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
21022 "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
21023 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
21024 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21025 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
21026 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
21027 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
21028 "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
21029 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21030 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21031 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21032 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21033 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21034 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21035 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21036 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21037 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21038 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
21039 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21040 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21041 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21042 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21043 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
21044 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21045 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21046 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
21047 "dlls/shdoclc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdoclc/Makefile" ;;
21048 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21049 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21050 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21051 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21052 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21053 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21054 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21055 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
21056 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
21057 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21058 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21059 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21060 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
21061 "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
21062 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21063 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21064 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21065 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21066 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21067 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
21068 "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;;
21069 "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;;
21070 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
21071 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21072 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21073 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21074 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
21075 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
21076 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21077 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21078 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21079 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21080 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21081 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21082 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21083 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21084 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21085 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
21086 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21087 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21088 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
21089 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
21090 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
21091 "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
21092 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
21093 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21094 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
21095 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
21096 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
21097 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
21098 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
21099 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
21100 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
21101 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
21102 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
21103 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
21104 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
21105 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
21106 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
21107 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
21108 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
21109 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
21110 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
21111 "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
21112 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
21113 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
21114 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
21115 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
21116 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
21117 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
21118 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
21119 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
21120 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
21121 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21122 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
21123 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
21124 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
21125 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
21126 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
21127 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21128 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
21129 "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
21130 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21131 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
21132 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
21133 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
21134 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
21135 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
21136 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
21137 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
21138 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
21139 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
21140 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
21141 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
21142 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
21143 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
21144 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
21145 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
21146 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
21147 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
21148 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21149 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
21150 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21151 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21152 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21153 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21154 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
21155 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21156 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21157 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21158 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21159 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21160 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21161 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21162 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21163 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
21164 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21165 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21166 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21167 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21168 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21169 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21170 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21171 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21173 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21174 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21175 { (exit 1); exit 1; }; };;
21176 esac
21177 done
21180 # If the user did not use the arguments to specify the items to instantiate,
21181 # then the envvar interface is used. Set only those that are not.
21182 # We use the long form for the default assignment because of an extremely
21183 # bizarre bug on SunOS 4.1.3.
21184 if $ac_need_defaults; then
21185 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21186 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21187 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21190 # Have a temporary directory for convenience. Make it in the build tree
21191 # simply because there is no reason against having it here, and in addition,
21192 # creating and moving files from /tmp can sometimes cause problems.
21193 # Hook for its removal unless debugging.
21194 # Note that there is a small window in which the directory will not be cleaned:
21195 # after its creation but before its name has been assigned to `$tmp'.
21196 $debug ||
21198 tmp=
21199 trap 'exit_status=$?
21200 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21202 trap '{ (exit 1); exit 1; }' 1 2 13 15
21204 # Create a (secure) tmp directory for tmp files.
21207 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21208 test -n "$tmp" && test -d "$tmp"
21209 } ||
21211 tmp=./conf$$-$RANDOM
21212 (umask 077 && mkdir "$tmp")
21213 } ||
21215 echo "$me: cannot create a temporary directory in ." >&2
21216 { (exit 1); exit 1; }
21220 # Set up the sed scripts for CONFIG_FILES section.
21223 # No need to generate the scripts if there are no CONFIG_FILES.
21224 # This happens for instance when ./config.status config.h
21225 if test -n "$CONFIG_FILES"; then
21227 _ACEOF
21229 # Create sed commands to just substitute file output variables.
21231 # Remaining file output variables are in a fragment that also has non-file
21232 # output varibles.
21236 ac_delim='%!_!# '
21237 for ac_last_try in false false false false false :; do
21238 cat >conf$$subs.sed <<_ACEOF
21239 SHELL!$SHELL$ac_delim
21240 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21241 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21242 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21243 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21244 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21245 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21246 exec_prefix!$exec_prefix$ac_delim
21247 prefix!$prefix$ac_delim
21248 program_transform_name!$program_transform_name$ac_delim
21249 bindir!$bindir$ac_delim
21250 sbindir!$sbindir$ac_delim
21251 libexecdir!$libexecdir$ac_delim
21252 datarootdir!$datarootdir$ac_delim
21253 datadir!$datadir$ac_delim
21254 sysconfdir!$sysconfdir$ac_delim
21255 sharedstatedir!$sharedstatedir$ac_delim
21256 localstatedir!$localstatedir$ac_delim
21257 includedir!$includedir$ac_delim
21258 oldincludedir!$oldincludedir$ac_delim
21259 docdir!$docdir$ac_delim
21260 infodir!$infodir$ac_delim
21261 htmldir!$htmldir$ac_delim
21262 dvidir!$dvidir$ac_delim
21263 pdfdir!$pdfdir$ac_delim
21264 psdir!$psdir$ac_delim
21265 libdir!$libdir$ac_delim
21266 localedir!$localedir$ac_delim
21267 mandir!$mandir$ac_delim
21268 DEFS!$DEFS$ac_delim
21269 ECHO_C!$ECHO_C$ac_delim
21270 ECHO_N!$ECHO_N$ac_delim
21271 ECHO_T!$ECHO_T$ac_delim
21272 LIBS!$LIBS$ac_delim
21273 build_alias!$build_alias$ac_delim
21274 host_alias!$host_alias$ac_delim
21275 target_alias!$target_alias$ac_delim
21276 build!$build$ac_delim
21277 build_cpu!$build_cpu$ac_delim
21278 build_vendor!$build_vendor$ac_delim
21279 build_os!$build_os$ac_delim
21280 host!$host$ac_delim
21281 host_cpu!$host_cpu$ac_delim
21282 host_vendor!$host_vendor$ac_delim
21283 host_os!$host_os$ac_delim
21284 WIN16_FILES!$WIN16_FILES$ac_delim
21285 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
21286 SET_MAKE!$SET_MAKE$ac_delim
21287 CC!$CC$ac_delim
21288 CFLAGS!$CFLAGS$ac_delim
21289 LDFLAGS!$LDFLAGS$ac_delim
21290 CPPFLAGS!$CPPFLAGS$ac_delim
21291 ac_ct_CC!$ac_ct_CC$ac_delim
21292 EXEEXT!$EXEEXT$ac_delim
21293 OBJEXT!$OBJEXT$ac_delim
21294 CXX!$CXX$ac_delim
21295 CXXFLAGS!$CXXFLAGS$ac_delim
21296 ac_ct_CXX!$ac_ct_CXX$ac_delim
21297 CPPBIN!$CPPBIN$ac_delim
21298 TOOLSDIR!$TOOLSDIR$ac_delim
21299 XMKMF!$XMKMF$ac_delim
21300 CPP!$CPP$ac_delim
21301 X_CFLAGS!$X_CFLAGS$ac_delim
21302 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
21303 X_LIBS!$X_LIBS$ac_delim
21304 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
21305 LEX!$LEX$ac_delim
21306 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
21307 LEXLIB!$LEXLIB$ac_delim
21308 XLEX!$XLEX$ac_delim
21309 BISON!$BISON$ac_delim
21310 AS!$AS$ac_delim
21311 ac_ct_AS!$ac_ct_AS$ac_delim
21312 LD!$LD$ac_delim
21313 AR!$AR$ac_delim
21314 RANLIB!$RANLIB$ac_delim
21315 STRIP!$STRIP$ac_delim
21316 WINDRES!$WINDRES$ac_delim
21317 LN_S!$LN_S$ac_delim
21318 LN!$LN$ac_delim
21319 GREP!$GREP$ac_delim
21320 EGREP!$EGREP$ac_delim
21321 _ACEOF
21323 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
21324 break
21325 elif $ac_last_try; then
21326 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21327 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21328 { (exit 1); exit 1; }; }
21329 else
21330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21332 done
21334 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21335 if test -n "$ac_eof"; then
21336 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21337 ac_eof=`expr $ac_eof + 1`
21340 cat >>$CONFIG_STATUS <<_ACEOF
21341 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21343 /^[ ]*@MAKE_RULES@[ ]*$/{
21344 r $MAKE_RULES
21347 /^[ ]*@MAKE_DLL_RULES@[ ]*$/{
21348 r $MAKE_DLL_RULES
21351 /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
21352 r $MAKE_IMPLIB_RULES
21355 /^[ ]*@MAKE_TEST_RULES@[ ]*$/{
21356 r $MAKE_TEST_RULES
21359 /^[ ]*@MAKE_PROG_RULES@[ ]*$/{
21360 r $MAKE_PROG_RULES
21363 _ACEOF
21364 sed '
21365 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21366 s/^/s,@/; s/!/@,|#_!!_#|/
21369 s/'"$ac_delim"'$/,g/; t
21370 s/$/\\/; p
21371 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21372 ' >>$CONFIG_STATUS <conf$$subs.sed
21373 rm -f conf$$subs.sed
21374 cat >>$CONFIG_STATUS <<_ACEOF
21375 CEOF$ac_eof
21376 _ACEOF
21379 ac_delim='%!_!# '
21380 for ac_last_try in false false false false false :; do
21381 cat >conf$$subs.sed <<_ACEOF
21382 LDCONFIG!$LDCONFIG$ac_delim
21383 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21384 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21385 INSTALL_DATA!$INSTALL_DATA$ac_delim
21386 LINT!$LINT$ac_delim
21387 LINTFLAGS!$LINTFLAGS$ac_delim
21388 FONTFORGE!$FONTFORGE$ac_delim
21389 PKG_CONFIG!$PKG_CONFIG$ac_delim
21390 PRELINK!$PRELINK$ac_delim
21391 LIBPTHREAD!$LIBPTHREAD$ac_delim
21392 XLIB!$XLIB$ac_delim
21393 XFILES!$XFILES$ac_delim
21394 OPENGLFILES!$OPENGLFILES$ac_delim
21395 GLU32FILES!$GLU32FILES$ac_delim
21396 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
21397 QUARTZFILES!$QUARTZFILES$ac_delim
21398 NASLIBS!$NASLIBS$ac_delim
21399 XML2LIBS!$XML2LIBS$ac_delim
21400 XML2INCL!$XML2INCL$ac_delim
21401 XSLTLIBS!$XSLTLIBS$ac_delim
21402 XSLTINCL!$XSLTINCL$ac_delim
21403 HALINCL!$HALINCL$ac_delim
21404 sane_devel!$sane_devel$ac_delim
21405 SANELIBS!$SANELIBS$ac_delim
21406 SANEINCL!$SANEINCL$ac_delim
21407 gphoto2_devel!$gphoto2_devel$ac_delim
21408 gphoto2port_devel!$gphoto2port_devel$ac_delim
21409 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
21410 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
21411 ICULIBS!$ICULIBS$ac_delim
21412 RESOLVLIBS!$RESOLVLIBS$ac_delim
21413 LCMSLIBS!$LCMSLIBS$ac_delim
21414 LDAPLIBS!$LDAPLIBS$ac_delim
21415 FREETYPELIBS!$FREETYPELIBS$ac_delim
21416 FREETYPEINCL!$FREETYPEINCL$ac_delim
21417 ft_devel!$ft_devel$ac_delim
21418 ft_devel2!$ft_devel2$ac_delim
21419 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
21420 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
21421 ARTSLIBS!$ARTSLIBS$ac_delim
21422 ARTSINCL!$ARTSINCL$ac_delim
21423 ESDCONFIG!$ESDCONFIG$ac_delim
21424 ESDLIBS!$ESDLIBS$ac_delim
21425 ESDINCL!$ESDINCL$ac_delim
21426 ALSALIBS!$ALSALIBS$ac_delim
21427 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
21428 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
21429 BUILTINFLAG!$BUILTINFLAG$ac_delim
21430 DLLEXT!$DLLEXT$ac_delim
21431 DLLFLAGS!$DLLFLAGS$ac_delim
21432 LDSHARED!$LDSHARED$ac_delim
21433 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
21434 LIBEXT!$LIBEXT$ac_delim
21435 IMPLIBEXT!$IMPLIBEXT$ac_delim
21436 LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim
21437 DLLTOOL!$DLLTOOL$ac_delim
21438 DLLWRAP!$DLLWRAP$ac_delim
21439 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
21440 IOKITLIB!$IOKITLIB$ac_delim
21441 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
21442 DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
21443 COREAUDIO!$COREAUDIO$ac_delim
21444 CARBONLIB!$CARBONLIB$ac_delim
21445 CROSSTEST!$CROSSTEST$ac_delim
21446 CROSSCC!$CROSSCC$ac_delim
21447 CROSSWINDRES!$CROSSWINDRES$ac_delim
21448 LDPATH!$LDPATH$ac_delim
21449 CRTLIBS!$CRTLIBS$ac_delim
21450 SOCKETLIBS!$SOCKETLIBS$ac_delim
21451 MAIN_BINARY!$MAIN_BINARY$ac_delim
21452 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
21453 LDD!$LDD$ac_delim
21454 LIBDL!$LIBDL$ac_delim
21455 LIBPOLL!$LIBPOLL$ac_delim
21456 DEPENDENCIES!$DEPENDENCIES$ac_delim
21457 LIBOBJS!$LIBOBJS$ac_delim
21458 LTLIBOBJS!$LTLIBOBJS$ac_delim
21459 _ACEOF
21461 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
21462 break
21463 elif $ac_last_try; then
21464 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21465 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21466 { (exit 1); exit 1; }; }
21467 else
21468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21470 done
21472 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21473 if test -n "$ac_eof"; then
21474 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21475 ac_eof=`expr $ac_eof + 1`
21478 cat >>$CONFIG_STATUS <<_ACEOF
21479 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21480 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21481 _ACEOF
21482 sed '
21483 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21484 s/^/s,@/; s/!/@,|#_!!_#|/
21487 s/'"$ac_delim"'$/,g/; t
21488 s/$/\\/; p
21489 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21490 ' >>$CONFIG_STATUS <conf$$subs.sed
21491 rm -f conf$$subs.sed
21492 cat >>$CONFIG_STATUS <<_ACEOF
21493 :end
21494 s/|#_!!_#|//g
21495 CEOF$ac_eof
21496 _ACEOF
21499 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21500 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21501 # trailing colons and then remove the whole line if VPATH becomes empty
21502 # (actually we leave an empty line to preserve line numbers).
21503 if test "x$srcdir" = x.; then
21504 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21505 s/:*\$(srcdir):*/:/
21506 s/:*\${srcdir}:*/:/
21507 s/:*@srcdir@:*/:/
21508 s/^\([^=]*=[ ]*\):*/\1/
21509 s/:*$//
21510 s/^[^=]*=[ ]*$//
21514 cat >>$CONFIG_STATUS <<\_ACEOF
21515 fi # test -n "$CONFIG_FILES"
21518 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21520 case $ac_tag in
21521 :[FHLC]) ac_mode=$ac_tag; continue;;
21522 esac
21523 case $ac_mode$ac_tag in
21524 :[FHL]*:*);;
21525 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21526 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21527 { (exit 1); exit 1; }; };;
21528 :[FH]-) ac_tag=-:-;;
21529 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21530 esac
21531 ac_save_IFS=$IFS
21532 IFS=:
21533 set x $ac_tag
21534 IFS=$ac_save_IFS
21535 shift
21536 ac_file=$1
21537 shift
21539 case $ac_mode in
21540 :L) ac_source=$1;;
21541 :[FH])
21542 ac_file_inputs=
21543 for ac_f
21545 case $ac_f in
21546 -) ac_f="$tmp/stdin";;
21547 *) # Look for the file first in the build tree, then in the source tree
21548 # (if the path is not absolute). The absolute path cannot be DOS-style,
21549 # because $ac_f cannot contain `:'.
21550 test -f "$ac_f" ||
21551 case $ac_f in
21552 [\\/$]*) false;;
21553 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21554 esac ||
21555 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21556 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21557 { (exit 1); exit 1; }; };;
21558 esac
21559 ac_file_inputs="$ac_file_inputs $ac_f"
21560 done
21562 # Let's still pretend it is `configure' which instantiates (i.e., don't
21563 # use $as_me), people would be surprised to read:
21564 # /* config.h. Generated by config.status. */
21565 configure_input="Generated from "`IFS=:
21566 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21567 if test x"$ac_file" != x-; then
21568 configure_input="$ac_file. $configure_input"
21569 { echo "$as_me:$LINENO: creating $ac_file" >&5
21570 echo "$as_me: creating $ac_file" >&6;}
21573 case $ac_tag in
21574 *:-:* | *:-) cat >"$tmp/stdin";;
21575 esac
21577 esac
21579 ac_dir=`$as_dirname -- "$ac_file" ||
21580 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21581 X"$ac_file" : 'X\(//\)[^/]' \| \
21582 X"$ac_file" : 'X\(//\)$' \| \
21583 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21584 echo X"$ac_file" |
21585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21586 s//\1/
21589 /^X\(\/\/\)[^/].*/{
21590 s//\1/
21593 /^X\(\/\/\)$/{
21594 s//\1/
21597 /^X\(\/\).*/{
21598 s//\1/
21601 s/.*/./; q'`
21602 { as_dir="$ac_dir"
21603 case $as_dir in #(
21604 -*) as_dir=./$as_dir;;
21605 esac
21606 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21607 as_dirs=
21608 while :; do
21609 case $as_dir in #(
21610 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21611 *) as_qdir=$as_dir;;
21612 esac
21613 as_dirs="'$as_qdir' $as_dirs"
21614 as_dir=`$as_dirname -- "$as_dir" ||
21615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21616 X"$as_dir" : 'X\(//\)[^/]' \| \
21617 X"$as_dir" : 'X\(//\)$' \| \
21618 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21619 echo X"$as_dir" |
21620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21621 s//\1/
21624 /^X\(\/\/\)[^/].*/{
21625 s//\1/
21628 /^X\(\/\/\)$/{
21629 s//\1/
21632 /^X\(\/\).*/{
21633 s//\1/
21636 s/.*/./; q'`
21637 test -d "$as_dir" && break
21638 done
21639 test -z "$as_dirs" || eval "mkdir $as_dirs"
21640 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21641 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21642 { (exit 1); exit 1; }; }; }
21643 ac_builddir=.
21645 case "$ac_dir" in
21646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21648 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21649 # A ".." for each directory in $ac_dir_suffix.
21650 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21651 case $ac_top_builddir_sub in
21652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21654 esac ;;
21655 esac
21656 ac_abs_top_builddir=$ac_pwd
21657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21658 # for backward compatibility:
21659 ac_top_builddir=$ac_top_build_prefix
21661 case $srcdir in
21662 .) # We are building in place.
21663 ac_srcdir=.
21664 ac_top_srcdir=$ac_top_builddir_sub
21665 ac_abs_top_srcdir=$ac_pwd ;;
21666 [\\/]* | ?:[\\/]* ) # Absolute name.
21667 ac_srcdir=$srcdir$ac_dir_suffix;
21668 ac_top_srcdir=$srcdir
21669 ac_abs_top_srcdir=$srcdir ;;
21670 *) # Relative name.
21671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21672 ac_top_srcdir=$ac_top_build_prefix$srcdir
21673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21674 esac
21675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21678 case $ac_mode in
21681 # CONFIG_FILE
21684 case $INSTALL in
21685 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21686 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21687 esac
21688 _ACEOF
21690 cat >>$CONFIG_STATUS <<\_ACEOF
21691 # If the template does not know about datarootdir, expand it.
21692 # FIXME: This hack should be removed a few years after 2.60.
21693 ac_datarootdir_hack=; ac_datarootdir_seen=
21695 case `sed -n '/datarootdir/ {
21699 /@datadir@/p
21700 /@docdir@/p
21701 /@infodir@/p
21702 /@localedir@/p
21703 /@mandir@/p
21704 ' $ac_file_inputs` in
21705 *datarootdir*) ac_datarootdir_seen=yes;;
21706 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21707 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21708 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21709 _ACEOF
21710 cat >>$CONFIG_STATUS <<_ACEOF
21711 ac_datarootdir_hack='
21712 s&@datadir@&$datadir&g
21713 s&@docdir@&$docdir&g
21714 s&@infodir@&$infodir&g
21715 s&@localedir@&$localedir&g
21716 s&@mandir@&$mandir&g
21717 s&\\\${datarootdir}&$datarootdir&g' ;;
21718 esac
21719 _ACEOF
21721 # Neutralize VPATH when `$srcdir' = `.'.
21722 # Shell code in configure.ac might set extrasub.
21723 # FIXME: do we really want to maintain this feature?
21724 cat >>$CONFIG_STATUS <<_ACEOF
21725 sed "$ac_vpsub
21726 $extrasub
21727 _ACEOF
21728 cat >>$CONFIG_STATUS <<\_ACEOF
21730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21731 s&@configure_input@&$configure_input&;t t
21732 s&@top_builddir@&$ac_top_builddir_sub&;t t
21733 s&@srcdir@&$ac_srcdir&;t t
21734 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21735 s&@top_srcdir@&$ac_top_srcdir&;t t
21736 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21737 s&@builddir@&$ac_builddir&;t t
21738 s&@abs_builddir@&$ac_abs_builddir&;t t
21739 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21740 s&@INSTALL@&$ac_INSTALL&;t t
21741 $ac_datarootdir_hack
21742 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21744 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21745 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21746 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21747 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21748 which seems to be undefined. Please make sure it is defined." >&5
21749 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21750 which seems to be undefined. Please make sure it is defined." >&2;}
21752 rm -f "$tmp/stdin"
21753 case $ac_file in
21754 -) cat "$tmp/out"; rm -f "$tmp/out";;
21755 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21756 esac
21760 # CONFIG_HEADER
21762 _ACEOF
21764 # Transform confdefs.h into a sed script `conftest.defines', that
21765 # substitutes the proper values into config.h.in to produce config.h.
21766 rm -f conftest.defines conftest.tail
21767 # First, append a space to every undef/define line, to ease matching.
21768 echo 's/$/ /' >conftest.defines
21769 # Then, protect against being on the right side of a sed subst, or in
21770 # an unquoted here document, in config.status. If some macros were
21771 # called several times there might be several #defines for the same
21772 # symbol, which is useless. But do not sort them, since the last
21773 # AC_DEFINE must be honored.
21774 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21775 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21776 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21777 # PARAMS is the parameter list in the macro definition--in most cases, it's
21778 # just an empty string.
21779 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21780 ac_dB='\\)[ (].*,\\1define\\2'
21781 ac_dC=' '
21782 ac_dD=' ,'
21784 uniq confdefs.h |
21785 sed -n '
21786 t rset
21787 :rset
21788 s/^[ ]*#[ ]*define[ ][ ]*//
21789 t ok
21792 s/[\\&,]/\\&/g
21793 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21794 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21795 ' >>conftest.defines
21797 # Remove the space that was appended to ease matching.
21798 # Then replace #undef with comments. This is necessary, for
21799 # example, in the case of _POSIX_SOURCE, which is predefined and required
21800 # on some systems where configure will not decide to define it.
21801 # (The regexp can be short, since the line contains either #define or #undef.)
21802 echo 's/ $//
21803 s,^[ #]*u.*,/* & */,' >>conftest.defines
21805 # Break up conftest.defines:
21806 ac_max_sed_lines=50
21808 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21809 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21810 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21811 # et cetera.
21812 ac_in='$ac_file_inputs'
21813 ac_out='"$tmp/out1"'
21814 ac_nxt='"$tmp/out2"'
21816 while :
21818 # Write a here document:
21819 cat >>$CONFIG_STATUS <<_ACEOF
21820 # First, check the format of the line:
21821 cat >"\$tmp/defines.sed" <<\\CEOF
21822 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21823 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21825 :def
21826 _ACEOF
21827 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21828 echo 'CEOF
21829 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21830 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21831 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21832 grep . conftest.tail >/dev/null || break
21833 rm -f conftest.defines
21834 mv conftest.tail conftest.defines
21835 done
21836 rm -f conftest.defines conftest.tail
21838 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21839 cat >>$CONFIG_STATUS <<\_ACEOF
21840 if test x"$ac_file" != x-; then
21841 echo "/* $configure_input */" >"$tmp/config.h"
21842 cat "$ac_result" >>"$tmp/config.h"
21843 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21844 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21845 echo "$as_me: $ac_file is unchanged" >&6;}
21846 else
21847 rm -f $ac_file
21848 mv "$tmp/config.h" $ac_file
21850 else
21851 echo "/* $configure_input */"
21852 cat "$ac_result"
21854 rm -f "$tmp/out12"
21857 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21858 echo "$as_me: executing $ac_file commands" >&6;}
21860 esac
21863 case $ac_file$ac_mode in
21864 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
21865 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
21866 echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
21867 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
21868 echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
21869 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
21870 echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
21871 "dlls/user32/resources":C) test -d "dlls/user32/resources" || ({ echo "$as_me:$LINENO: creating dlls/user32/resources" >&5
21872 echo "$as_me: creating dlls/user32/resources" >&6;} && mkdir "dlls/user32/resources") ;;
21873 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
21874 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
21875 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21876 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21878 esac
21879 done # for ac_tag
21882 { (exit 0); exit 0; }
21883 _ACEOF
21884 chmod +x $CONFIG_STATUS
21885 ac_clean_files=$ac_clean_files_save
21888 # configure is writing to config.log, and then calls config.status.
21889 # config.status does its own redirection, appending to config.log.
21890 # Unfortunately, on DOS this fails, as config.log is still kept open
21891 # by configure, so config.status won't be able to write to it; its
21892 # output is simply discarded. So we exec the FD to /dev/null,
21893 # effectively closing config.log, so it can be properly (re)opened and
21894 # appended to by config.status. When coming back to configure, we
21895 # need to make the FD available again.
21896 if test "$no_create" != yes; then
21897 ac_cs_success=:
21898 ac_config_status_args=
21899 test "$silent" = yes &&
21900 ac_config_status_args="$ac_config_status_args --quiet"
21901 exec 5>/dev/null
21902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21903 exec 5>>config.log
21904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21905 # would make configure fail if this is the last instruction.
21906 $ac_cs_success || { (exit 1); exit 1; }
21911 if test "$no_create" = "yes"
21912 then
21913 exit 0
21916 if test "$verbose" = "yes"
21917 then
21918 if test "$ac_cv_header_capi20_h" != "yes" -o "$ac_cv_header_linux_capi_h" != "yes"
21919 then
21920 echo >&2
21921 { echo "$as_me:$LINENO: libcapi20 development files not found." >&5
21922 echo "$as_me: libcapi20 development files not found." >&6;}
21923 { echo "$as_me:$LINENO: Wine will be built without ISDN support. (capi2032.dll)" >&5
21924 echo "$as_me: Wine will be built without ISDN support. (capi2032.dll)" >&6;}
21927 if test "$ac_cv_header_cups_cups_h" != "yes"
21928 then
21929 echo >&2
21930 { echo "$as_me:$LINENO: libcups development files not found." >&5
21931 echo "$as_me: libcups development files not found." >&6;}
21932 { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
21933 echo "$as_me: Wine will be built without CUPS support." >&6;}
21937 if test "$ac_cv_header_gphoto2_camera_h" != "yes"
21938 then
21939 echo >&2
21940 { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
21941 echo "$as_me: libgphoto2 development files not found." >&6;}
21942 if test "$ac_cv_header_sane_sane_h" = "yes"
21943 then
21944 { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
21945 echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
21946 else
21947 { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
21948 echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
21952 if test "$ac_cv_header_hal_libhal_h" != "yes"
21953 then
21954 echo >&2
21955 { echo "$as_me:$LINENO: libhal development files not found." >&5
21956 echo "$as_me: libhal development files not found." >&6;}
21957 { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
21958 echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
21961 if test "$ac_cv_header_unicode_ubidi_h" != "yes"
21962 then
21963 echo >&2
21964 { echo "$as_me:$LINENO: libicu development files not found." >&5
21965 echo "$as_me: libicu development files not found." >&6;}
21966 { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
21967 echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
21970 if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
21971 then
21972 echo >&2
21973 { echo "$as_me:$LINENO: liblcms development files not found." >&5
21974 echo "$as_me: liblcms development files not found." >&6;}
21975 { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
21976 echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
21979 if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
21980 then
21981 echo >&2
21982 { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
21983 echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
21984 { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
21985 echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
21988 if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
21989 then
21990 echo >&2
21991 { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
21992 echo "$as_me: lib(n)curses development files not found." >&6;}
21993 { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
21994 echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
21997 if test "$ac_cv_header_sane_sane_h" != "yes"
21998 then
21999 echo >&2
22000 { echo "$as_me:$LINENO: libsane development files not found." >&5
22001 echo "$as_me: libsane development files not found." >&6;}
22002 { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
22003 echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
22006 if test "$have_x" = "yes"
22007 then
22008 if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
22009 then
22010 echo >&2
22011 { echo "$as_me:$LINENO: libxext development files not found." >&5
22012 echo "$as_me: libxext development files not found." >&6;}
22013 { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
22014 echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
22017 if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
22018 then
22019 echo >&2
22020 { echo "$as_me:$LINENO: libXrandr development files not found." >&5
22021 echo "$as_me: libXrandr development files not found." >&6;}
22022 { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
22023 echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
22026 if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
22027 then
22028 echo >&2
22029 { echo "$as_me:$LINENO: libXrender development files not found." >&5
22030 echo "$as_me: libXrender development files not found." >&6;}
22031 { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
22032 echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
22035 if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
22036 then
22037 echo >&2
22038 { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
22039 echo "$as_me: libXxf86vm development files not found." >&6;}
22040 { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
22041 echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
22045 if test "$ac_cv_header_libxml_parser_h" != "yes"
22046 then
22047 echo >&2
22048 { echo "$as_me:$LINENO: libxml2 development files not found." >&5
22049 echo "$as_me: libxml2 development files not found." >&6;}
22050 { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
22051 echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
22054 if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
22055 then
22056 echo >&2
22057 { echo "$as_me:$LINENO: libxslt development files not found." >&5
22058 echo "$as_me: libxslt development files not found." >&6;}
22059 { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
22060 echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
22065 if test "$have_x" = "no"
22066 then
22067 echo >&2
22068 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
22069 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
22070 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
22071 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
22072 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
22073 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
22074 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
22075 echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
22078 if test -z "$OPENGLFILES"
22079 then
22080 echo >&2
22081 { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
22082 echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
22083 { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
22084 echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
22085 if test "$wine_cv_opengl_headers_found" = "no"
22086 then
22087 { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
22088 echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
22090 if test "$wine_cv_opengl_header_version_OK" = "no"
22091 then
22092 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
22093 echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
22094 elif test "$ac_cv_lib_GL_glXCreateContext" = "no"
22095 then
22096 if test -f /usr/X11R6/lib/libGL.a
22097 then
22098 { echo "$as_me:$LINENO: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22099 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&5
22100 echo "$as_me: 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." >&2;}
22102 else
22103 { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
22104 echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
22109 if test "$wine_cv_msg_freetype" = "yes"
22110 then
22111 echo >&2
22112 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
22113 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
22114 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
22115 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
22116 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
22117 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
22118 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
22119 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
22122 if test -z "$FONTSSUBDIRS"
22123 then
22124 echo >&2
22125 if test "$FONTFORGE" = "false"
22126 then
22127 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
22128 echo "$as_me: WARNING: FontForge is missing." >&2;}
22129 else
22130 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
22131 echo "$as_me: WARNING: FreeType is missing." >&2;}
22133 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
22134 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
22137 if test -z "$ALSALIBS" -a \
22138 -z "$ARTSC_LIBS" -a \
22139 -z "$AUDIOIOLIBS" -a \
22140 -z "$NASLIBS" -a \
22141 -z "$ESD_LIBS" -a \
22142 -z "$ac_cv_lib_soname_jack" -a \
22143 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
22144 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
22145 "$ac_cv_header_soundcard_h" != "yes"
22146 then
22147 echo >&2
22148 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
22149 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
22150 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
22151 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
22152 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
22153 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
22156 echo
22157 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
22158 echo