configure: Fix left-over reference to kernel directory.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60a for Wine 0.9.20.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
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 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='Wine'
561 PACKAGE_TARNAME='wine'
562 PACKAGE_VERSION='0.9.20'
563 PACKAGE_STRING='Wine 0.9.20'
564 PACKAGE_BUGREPORT='wine-devel@winehq.org'
565
566 ac_unique_file="server/atom.c"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 build
641 build_cpu
642 build_vendor
643 build_os
644 host
645 host_cpu
646 host_vendor
647 host_os
648 WIN16_FILES
649 WIN16_INSTALL
650 SET_MAKE
651 CC
652 CFLAGS
653 LDFLAGS
654 CPPFLAGS
655 ac_ct_CC
656 EXEEXT
657 OBJEXT
658 CXX
659 CXXFLAGS
660 ac_ct_CXX
661 CPPBIN
662 TOOLSDIR
663 XMKMF
664 CPP
665 X_CFLAGS
666 X_PRE_LIBS
667 X_LIBS
668 X_EXTRA_LIBS
669 LEX
670 LEXLIB
671 LEX_OUTPUT_ROOT
672 XLEX
673 BISON
674 AS
675 ac_ct_AS
676 LD
677 AR
678 RANLIB
679 STRIP
680 WINDRES
681 LN_S
682 LN
683 GREP
684 EGREP
685 LDCONFIG
686 INSTALL_PROGRAM
687 INSTALL_SCRIPT
688 INSTALL_DATA
689 LINT
690 LINTFLAGS
691 FONTFORGE
692 PKG_CONFIG
693 PRELINK
694 LIBPTHREAD
695 XLIB
696 XFILES
697 OPENGLFILES
698 GLU32FILES
699 OPENGL_LIBS
700 GLUT_LIBS
701 GLUT32FILES
702 NASLIBS
703 XML2LIBS
704 XML2INCL
705 XSLTLIBS
706 XSLTINCL
707 HALINCL
708 CURSESLIBS
709 sane_devel
710 SANELIBS
711 SANEINCL
712 gphoto2_devel
713 gphoto2port_devel
714 GPHOTO2LIBS
715 GPHOTO2INCL
716 ICULIBS
717 RESOLVLIBS
718 LCMSLIBS
719 LDAPLIBS
720 FREETYPELIBS
721 FREETYPEINCL
722 ft_devel
723 ft_devel2
724 FONTSSUBDIRS
725 ARTSCCONFIG
726 ARTSLIBS
727 ARTSINCL
728 ESDCONFIG
729 ESDLIBS
730 ESDINCL
731 ALSALIBS
732 AUDIOIOLIBS
733 EXTRACFLAGS
734 BUILTINFLAG
735 DLLEXT
736 DLLFLAGS
737 LDSHARED
738 LDDLLFLAGS
739 LIBEXT
740 IMPLIBEXT
741 LIBWINE_LDFLAGS
742 DLLTOOL
743 DLLWRAP
744 COREFOUNDATIONLIB
745 IOKITLIB
746 LDEXECFLAGS
747 COREAUDIO
748 CROSSTEST
749 CROSSCC
750 CROSSWINDRES
751 LDPATH
752 CRTLIBS
753 SOCKETLIBS
754 MAIN_BINARY
755 EXTRA_BINARIES
756 LDD
757 LIBDL
758 LIBPOLL
759 LIBOBJS
760 LTLIBOBJS'
761 ac_subst_files='MAKE_RULES
762 MAKE_DLL_RULES
763 MAKE_IMPLIB_RULES
764 MAKE_TEST_RULES
765 MAKE_PROG_RULES'
766       ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 CPPFLAGS
773 CXX
774 CXXFLAGS
775 CCC
776 XMKMF
777 CPP'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
825
826 ac_prev=
827 ac_dashdash=
828 for ac_option
829 do
830   # If the previous option needs an argument, assign it.
831   if test -n "$ac_prev"; then
832     eval $ac_prev=\$ac_option
833     ac_prev=
834     continue
835   fi
836
837   case $ac_option in
838   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839   *)    ac_optarg=yes ;;
840   esac
841
842   # Accept the important Cygnus configure options, so we can diagnose typos.
843
844   case $ac_dashdash$ac_option in
845   --)
846     ac_dashdash=yes ;;
847
848   -bindir | --bindir | --bindi | --bind | --bin | --bi)
849     ac_prev=bindir ;;
850   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851     bindir=$ac_optarg ;;
852
853   -build | --build | --buil | --bui | --bu)
854     ac_prev=build_alias ;;
855   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856     build_alias=$ac_optarg ;;
857
858   -cache-file | --cache-file | --cache-fil | --cache-fi \
859   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860     ac_prev=cache_file ;;
861   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863     cache_file=$ac_optarg ;;
864
865   --config-cache | -C)
866     cache_file=config.cache ;;
867
868   -datadir | --datadir | --datadi | --datad)
869     ac_prev=datadir ;;
870   -datadir=* | --datadir=* | --datadi=* | --datad=*)
871     datadir=$ac_optarg ;;
872
873   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874   | --dataroo | --dataro | --datar)
875     ac_prev=datarootdir ;;
876   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878     datarootdir=$ac_optarg ;;
879
880   -disable-* | --disable-*)
881     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
884       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885    { (exit 1); exit 1; }; }
886     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
887     eval enable_$ac_feature=no ;;
888
889   -docdir | --docdir | --docdi | --doc | --do)
890     ac_prev=docdir ;;
891   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892     docdir=$ac_optarg ;;
893
894   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895     ac_prev=dvidir ;;
896   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897     dvidir=$ac_optarg ;;
898
899   -enable-* | --enable-*)
900     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901     # Reject names that are not valid shell variable names.
902     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
903       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904    { (exit 1); exit 1; }; }
905     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
906     eval enable_$ac_feature=\$ac_optarg ;;
907
908   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910   | --exec | --exe | --ex)
911     ac_prev=exec_prefix ;;
912   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914   | --exec=* | --exe=* | --ex=*)
915     exec_prefix=$ac_optarg ;;
916
917   -gas | --gas | --ga | --g)
918     # Obsolete; use --with-gas.
919     with_gas=yes ;;
920
921   -help | --help | --hel | --he | -h)
922     ac_init_help=long ;;
923   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924     ac_init_help=recursive ;;
925   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926     ac_init_help=short ;;
927
928   -host | --host | --hos | --ho)
929     ac_prev=host_alias ;;
930   -host=* | --host=* | --hos=* | --ho=*)
931     host_alias=$ac_optarg ;;
932
933   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934     ac_prev=htmldir ;;
935   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936   | --ht=*)
937     htmldir=$ac_optarg ;;
938
939   -includedir | --includedir | --includedi | --included | --include \
940   | --includ | --inclu | --incl | --inc)
941     ac_prev=includedir ;;
942   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943   | --includ=* | --inclu=* | --incl=* | --inc=*)
944     includedir=$ac_optarg ;;
945
946   -infodir | --infodir | --infodi | --infod | --info | --inf)
947     ac_prev=infodir ;;
948   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949     infodir=$ac_optarg ;;
950
951   -libdir | --libdir | --libdi | --libd)
952     ac_prev=libdir ;;
953   -libdir=* | --libdir=* | --libdi=* | --libd=*)
954     libdir=$ac_optarg ;;
955
956   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957   | --libexe | --libex | --libe)
958     ac_prev=libexecdir ;;
959   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960   | --libexe=* | --libex=* | --libe=*)
961     libexecdir=$ac_optarg ;;
962
963   -localedir | --localedir | --localedi | --localed | --locale)
964     ac_prev=localedir ;;
965   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966     localedir=$ac_optarg ;;
967
968   -localstatedir | --localstatedir | --localstatedi | --localstated \
969   | --localstate | --localstat | --localsta | --localst | --locals)
970     ac_prev=localstatedir ;;
971   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973     localstatedir=$ac_optarg ;;
974
975   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976     ac_prev=mandir ;;
977   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978     mandir=$ac_optarg ;;
979
980   -nfp | --nfp | --nf)
981     # Obsolete; use --without-fp.
982     with_fp=no ;;
983
984   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985   | --no-cr | --no-c | -n)
986     no_create=yes ;;
987
988   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990     no_recursion=yes ;;
991
992   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994   | --oldin | --oldi | --old | --ol | --o)
995     ac_prev=oldincludedir ;;
996   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999     oldincludedir=$ac_optarg ;;
1000
1001   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002     ac_prev=prefix ;;
1003   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004     prefix=$ac_optarg ;;
1005
1006   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007   | --program-pre | --program-pr | --program-p)
1008     ac_prev=program_prefix ;;
1009   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011     program_prefix=$ac_optarg ;;
1012
1013   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014   | --program-suf | --program-su | --program-s)
1015     ac_prev=program_suffix ;;
1016   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018     program_suffix=$ac_optarg ;;
1019
1020   -program-transform-name | --program-transform-name \
1021   | --program-transform-nam | --program-transform-na \
1022   | --program-transform-n | --program-transform- \
1023   | --program-transform | --program-transfor \
1024   | --program-transfo | --program-transf \
1025   | --program-trans | --program-tran \
1026   | --progr-tra | --program-tr | --program-t)
1027     ac_prev=program_transform_name ;;
1028   -program-transform-name=* | --program-transform-name=* \
1029   | --program-transform-nam=* | --program-transform-na=* \
1030   | --program-transform-n=* | --program-transform-=* \
1031   | --program-transform=* | --program-transfor=* \
1032   | --program-transfo=* | --program-transf=* \
1033   | --program-trans=* | --program-tran=* \
1034   | --progr-tra=* | --program-tr=* | --program-t=*)
1035     program_transform_name=$ac_optarg ;;
1036
1037   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038     ac_prev=pdfdir ;;
1039   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040     pdfdir=$ac_optarg ;;
1041
1042   -psdir | --psdir | --psdi | --psd | --ps)
1043     ac_prev=psdir ;;
1044   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045     psdir=$ac_optarg ;;
1046
1047   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048   | -silent | --silent | --silen | --sile | --sil)
1049     silent=yes ;;
1050
1051   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052     ac_prev=sbindir ;;
1053   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054   | --sbi=* | --sb=*)
1055     sbindir=$ac_optarg ;;
1056
1057   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059   | --sharedst | --shareds | --shared | --share | --shar \
1060   | --sha | --sh)
1061     ac_prev=sharedstatedir ;;
1062   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065   | --sha=* | --sh=*)
1066     sharedstatedir=$ac_optarg ;;
1067
1068   -site | --site | --sit)
1069     ac_prev=site ;;
1070   -site=* | --site=* | --sit=*)
1071     site=$ac_optarg ;;
1072
1073   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074     ac_prev=srcdir ;;
1075   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076     srcdir=$ac_optarg ;;
1077
1078   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079   | --syscon | --sysco | --sysc | --sys | --sy)
1080     ac_prev=sysconfdir ;;
1081   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083     sysconfdir=$ac_optarg ;;
1084
1085   -target | --target | --targe | --targ | --tar | --ta | --t)
1086     ac_prev=target_alias ;;
1087   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088     target_alias=$ac_optarg ;;
1089
1090   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091     verbose=yes ;;
1092
1093   -version | --version | --versio | --versi | --vers | -V)
1094     ac_init_version=: ;;
1095
1096   -with-* | --with-*)
1097     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1100       { echo "$as_me: error: invalid package name: $ac_package" >&2
1101    { (exit 1); exit 1; }; }
1102     ac_package=`echo $ac_package| sed 's/-/_/g'`
1103     eval with_$ac_package=\$ac_optarg ;;
1104
1105   -without-* | --without-*)
1106     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1109       { echo "$as_me: error: invalid package name: $ac_package" >&2
1110    { (exit 1); exit 1; }; }
1111     ac_package=`echo $ac_package | sed 's/-/_/g'`
1112     eval with_$ac_package=no ;;
1113
1114   --x)
1115     # Obsolete; use --with-x.
1116     with_x=yes ;;
1117
1118   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119   | --x-incl | --x-inc | --x-in | --x-i)
1120     ac_prev=x_includes ;;
1121   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123     x_includes=$ac_optarg ;;
1124
1125   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127     ac_prev=x_libraries ;;
1128   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130     x_libraries=$ac_optarg ;;
1131
1132   -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134    { (exit 1); exit 1; }; }
1135     ;;
1136
1137   *=*)
1138     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142    { (exit 1); exit 1; }; }
1143     eval $ac_envvar=\$ac_optarg
1144     export $ac_envvar ;;
1145
1146   *)
1147     # FIXME: should be removed in autoconf 3.0.
1148     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1152     ;;
1153
1154   esac
1155 done
1156
1157 if test -n "$ac_prev"; then
1158   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159   { echo "$as_me: error: missing argument to $ac_option" >&2
1160    { (exit 1); exit 1; }; }
1161 fi
1162
1163 # Be sure to have absolute directory names.
1164 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165                 datadir sysconfdir sharedstatedir localstatedir includedir \
1166                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167                 libdir localedir mandir
1168 do
1169   eval ac_val=\$$ac_var
1170   case $ac_val in
1171     [\\/$]* | ?:[\\/]* )  continue;;
1172     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173   esac
1174   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175    { (exit 1); exit 1; }; }
1176 done
1177
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1181 build=$build_alias
1182 host=$host_alias
1183 target=$target_alias
1184
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187   if test "x$build_alias" = x; then
1188     cross_compiling=maybe
1189     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190     If a cross compiler is detected then cross compile mode will be used." >&2
1191   elif test "x$build_alias" != "x$host_alias"; then
1192     cross_compiling=yes
1193   fi
1194 fi
1195
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198
1199 test "$silent" = yes && exec 6>/dev/null
1200
1201
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205   { echo "$as_me: error: Working directory cannot be determined" >&2
1206    { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208   { echo "$as_me: error: pwd does not report name of working directory" >&2
1209    { (exit 1); exit 1; }; }
1210
1211
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214   ac_srcdir_defaulted=yes
1215   # Try the directory containing this script, then the parent directory.
1216   ac_confdir=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218          X"$0" : 'X\(//\)[^/]' \| \
1219          X"$0" : 'X\(//\)$' \| \
1220          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1221 echo X"$0" |
1222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223             s//\1/
1224             q
1225           }
1226           /^X\(\/\/\)[^/].*/{
1227             s//\1/
1228             q
1229           }
1230           /^X\(\/\/\)$/{
1231             s//\1/
1232             q
1233           }
1234           /^X\(\/\).*/{
1235             s//\1/
1236             q
1237           }
1238           s/.*/./; q'`
1239   srcdir=$ac_confdir
1240   if test ! -r "$srcdir/$ac_unique_file"; then
1241     srcdir=..
1242   fi
1243 else
1244   ac_srcdir_defaulted=no
1245 fi
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249    { (exit 1); exit 1; }; }
1250 fi
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 ac_abs_confdir=`(
1253         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254    { (exit 1); exit 1; }; }
1255         pwd)`
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258   srcdir=.
1259 fi
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1263 case $srcdir in
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 esac
1266 for ac_var in $ac_precious_vars; do
1267   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268   eval ac_env_${ac_var}_value=\$${ac_var}
1269   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271 done
1272
1273 #
1274 # Report the --help message.
1275 #
1276 if test "$ac_init_help" = "long"; then
1277   # Omit some internal or obsolete options to make the list less imposing.
1278   # This message is too long to be a string in the A/UX 3.1 sh.
1279   cat <<_ACEOF
1280 \`configure' configures Wine 0.9.20 to adapt to many kinds of systems.
1281
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1283
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE.  See below for descriptions of some of the useful variables.
1286
1287 Defaults for the options are specified in brackets.
1288
1289 Configuration:
1290   -h, --help              display this help and exit
1291       --help=short        display options specific to this package
1292       --help=recursive    display the short help of all the included packages
1293   -V, --version           display version information and exit
1294   -q, --quiet, --silent   do not print \`checking...' messages
1295       --cache-file=FILE   cache test results in FILE [disabled]
1296   -C, --config-cache      alias for \`--cache-file=config.cache'
1297   -n, --no-create         do not create output files
1298       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1299
1300 Installation directories:
1301   --prefix=PREFIX         install architecture-independent files in PREFIX
1302                           [$ac_default_prefix]
1303   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1304                           [PREFIX]
1305
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1310
1311 For better control, use the options below.
1312
1313 Fine tuning of the installation directories:
1314   --bindir=DIR           user executables [EPREFIX/bin]
1315   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1316   --libexecdir=DIR       program executables [EPREFIX/libexec]
1317   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1318   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1319   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1320   --libdir=DIR           object code libraries [EPREFIX/lib]
1321   --includedir=DIR       C header files [PREFIX/include]
1322   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1323   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1324   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1325   --infodir=DIR          info documentation [DATAROOTDIR/info]
1326   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1327   --mandir=DIR           man documentation [DATAROOTDIR/man]
1328   --docdir=DIR           documentation root [DATAROOTDIR/doc/wine]
1329   --htmldir=DIR          html documentation [DOCDIR]
1330   --dvidir=DIR           dvi documentation [DOCDIR]
1331   --pdfdir=DIR           pdf documentation [DOCDIR]
1332   --psdir=DIR            ps documentation [DOCDIR]
1333 _ACEOF
1334
1335   cat <<\_ACEOF
1336
1337 X features:
1338   --x-includes=DIR    X include files are in DIR
1339   --x-libraries=DIR   X library files are in DIR
1340
1341 System types:
1342   --build=BUILD     configure for building on BUILD [guessed]
1343   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1344 _ACEOF
1345 fi
1346
1347 if test -n "$ac_init_help"; then
1348   case $ac_init_help in
1349      short | recursive ) echo "Configuration of Wine 0.9.20:";;
1350    esac
1351   cat <<\_ACEOF
1352
1353 Optional Features:
1354   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1355   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1356   --disable-win16         do not include Win16 support
1357   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1358                           binaries)
1359
1360 Optional Packages:
1361   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1362   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1363   --without-opengl        do not use OpenGL
1364   --without-curses        do not use curses
1365   --with-wine-tools=<dir> use Wine tools from directory <dir>
1366   --with-x                use the X Window System
1367
1368 Some influential environment variables:
1369   CC          C compiler command
1370   CFLAGS      C compiler flags
1371   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1372               nonstandard directory <lib dir>
1373   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1374               you have headers in a nonstandard directory <include dir>
1375   CXX         C++ compiler command
1376   CXXFLAGS    C++ compiler flags
1377   XMKMF       Path to xmkmf, Makefile generator for X Window System
1378   CPP         C preprocessor
1379
1380 Use these variables to override the choices made by `configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1382
1383 Report bugs to <wine-devel@winehq.org>.
1384 _ACEOF
1385 ac_status=$?
1386 fi
1387
1388 if test "$ac_init_help" = "recursive"; then
1389   # If there are subdirs, report their specific --help.
1390   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391     test -d "$ac_dir" || continue
1392     ac_builddir=.
1393
1394 case "$ac_dir" in
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *)
1397   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1398   # A ".." for each directory in $ac_dir_suffix.
1399   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1400   case $ac_top_builddir_sub in
1401   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403   esac ;;
1404 esac
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1409
1410 case $srcdir in
1411   .)  # We are building in place.
1412     ac_srcdir=.
1413     ac_top_srcdir=$ac_top_builddir_sub
1414     ac_abs_top_srcdir=$ac_pwd ;;
1415   [\\/]* | ?:[\\/]* )  # Absolute name.
1416     ac_srcdir=$srcdir$ac_dir_suffix;
1417     ac_top_srcdir=$srcdir
1418     ac_abs_top_srcdir=$srcdir ;;
1419   *) # Relative name.
1420     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421     ac_top_srcdir=$ac_top_build_prefix$srcdir
1422     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 esac
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425
1426     cd "$ac_dir" || { ac_status=$?; continue; }
1427     # Check for guested configure.
1428     if test -f "$ac_srcdir/configure.gnu"; then
1429       echo &&
1430       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431     elif test -f "$ac_srcdir/configure"; then
1432       echo &&
1433       $SHELL "$ac_srcdir/configure" --help=recursive
1434     else
1435       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436     fi || ac_status=$?
1437     cd "$ac_pwd" || { ac_status=$?; break; }
1438   done
1439 fi
1440
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1443   cat <<\_ACEOF
1444 Wine configure 0.9.20
1445 generated by GNU Autoconf 2.60a
1446
1447 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1448 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1451 _ACEOF
1452   exit
1453 fi
1454 cat >config.log <<_ACEOF
1455 This file contains any messages produced by compilers while
1456 running configure, to aid debugging if configure makes a mistake.
1457
1458 It was created by Wine $as_me 0.9.20, which was
1459 generated by GNU Autoconf 2.60a.  Invocation command line was
1460
1461   $ $0 $@
1462
1463 _ACEOF
1464 exec 5>>config.log
1465 {
1466 cat <<_ASUNAME
1467 ## --------- ##
1468 ## Platform. ##
1469 ## --------- ##
1470
1471 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1472 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1473 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1474 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1475 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1476
1477 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1478 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1479
1480 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1481 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1482 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1483 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1484 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1485 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1486 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1487
1488 _ASUNAME
1489
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1492 do
1493   IFS=$as_save_IFS
1494   test -z "$as_dir" && as_dir=.
1495   echo "PATH: $as_dir"
1496 done
1497 IFS=$as_save_IFS
1498
1499 } >&5
1500
1501 cat >&5 <<_ACEOF
1502
1503
1504 ## ----------- ##
1505 ## Core tests. ##
1506 ## ----------- ##
1507
1508 _ACEOF
1509
1510
1511 # Keep a trace of the command line.
1512 # Strip out --no-create and --no-recursion so they do not pile up.
1513 # Strip out --silent because we don't want to record it for future runs.
1514 # Also quote any args containing shell meta-characters.
1515 # Make two passes to allow for proper duplicate-argument suppression.
1516 ac_configure_args=
1517 ac_configure_args0=
1518 ac_configure_args1=
1519 ac_must_keep_next=false
1520 for ac_pass in 1 2
1521 do
1522   for ac_arg
1523   do
1524     case $ac_arg in
1525     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527     | -silent | --silent | --silen | --sile | --sil)
1528       continue ;;
1529     *\'*)
1530       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1531     esac
1532     case $ac_pass in
1533     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1534     2)
1535       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536       if test $ac_must_keep_next = true; then
1537         ac_must_keep_next=false # Got value, back to normal.
1538       else
1539         case $ac_arg in
1540           *=* | --config-cache | -C | -disable-* | --disable-* \
1541           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543           | -with-* | --with-* | -without-* | --without-* | --x)
1544             case "$ac_configure_args0 " in
1545               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1546             esac
1547             ;;
1548           -* ) ac_must_keep_next=true ;;
1549         esac
1550       fi
1551       ac_configure_args="$ac_configure_args '$ac_arg'"
1552       ;;
1553     esac
1554   done
1555 done
1556 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1558
1559 # When interrupted or exit'd, cleanup temporary files, and complete
1560 # config.log.  We remove comments because anyway the quotes in there
1561 # would cause problems or look ugly.
1562 # WARNING: Use '\'' to represent an apostrophe within the trap.
1563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1564 trap 'exit_status=$?
1565   # Save into config.log some information that might help in debugging.
1566   {
1567     echo
1568
1569     cat <<\_ASBOX
1570 ## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##
1573 _ASBOX
1574     echo
1575     # The following way of writing the cache mishandles newlines in values,
1576 (
1577   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1578     eval ac_val=\$$ac_var
1579     case $ac_val in #(
1580     *${as_nl}*)
1581       case $ac_var in #(
1582       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1584       esac
1585       case $ac_var in #(
1586       _ | IFS | as_nl) ;; #(
1587       *) $as_unset $ac_var ;;
1588       esac ;;
1589     esac
1590   done
1591   (set) 2>&1 |
1592     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593     *${as_nl}ac_space=\ *)
1594       sed -n \
1595         "s/'\''/'\''\\\\'\'''\''/g;
1596           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597       ;; #(
1598     *)
1599       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1600       ;;
1601     esac |
1602     sort
1603 )
1604     echo
1605
1606     cat <<\_ASBOX
1607 ## ----------------- ##
1608 ## Output variables. ##
1609 ## ----------------- ##
1610 _ASBOX
1611     echo
1612     for ac_var in $ac_subst_vars
1613     do
1614       eval ac_val=\$$ac_var
1615       case $ac_val in
1616       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617       esac
1618       echo "$ac_var='\''$ac_val'\''"
1619     done | sort
1620     echo
1621
1622     if test -n "$ac_subst_files"; then
1623       cat <<\_ASBOX
1624 ## ------------------- ##
1625 ## File substitutions. ##
1626 ## ------------------- ##
1627 _ASBOX
1628       echo
1629       for ac_var in $ac_subst_files
1630       do
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
1638     fi
1639
1640     if test -s confdefs.h; then
1641       cat <<\_ASBOX
1642 ## ----------- ##
1643 ## confdefs.h. ##
1644 ## ----------- ##
1645 _ASBOX
1646       echo
1647       cat confdefs.h
1648       echo
1649     fi
1650     test "$ac_signal" != 0 &&
1651       echo "$as_me: caught signal $ac_signal"
1652     echo "$as_me: exit $exit_status"
1653   } >&5
1654   rm -f core *.core core.conftest.* &&
1655     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1656     exit $exit_status
1657 ' 0
1658 for ac_signal in 1 2 13 15; do
1659   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660 done
1661 ac_signal=0
1662
1663 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1664 rm -f -r conftest* confdefs.h
1665
1666 # Predefined preprocessor variables.
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_NAME "$PACKAGE_NAME"
1670 _ACEOF
1671
1672
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675 _ACEOF
1676
1677
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1680 _ACEOF
1681
1682
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_STRING "$PACKAGE_STRING"
1685 _ACEOF
1686
1687
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690 _ACEOF
1691
1692
1693 # Let the site file select an alternate cache file if it wants to.
1694 # Prefer explicitly selected file to automatically selected ones.
1695 if test -n "$CONFIG_SITE"; then
1696   set x "$CONFIG_SITE"
1697 elif test "x$prefix" != xNONE; then
1698   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699 else
1700   set x "$ac_default_prefix/share/config.site" \
1701         "$ac_default_prefix/etc/config.site"
1702 fi
1703 shift
1704 for ac_site_file
1705 do
1706   if test -r "$ac_site_file"; then
1707     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708 echo "$as_me: loading site script $ac_site_file" >&6;}
1709     sed 's/^/| /' "$ac_site_file" >&5
1710     . "$ac_site_file"
1711   fi
1712 done
1713
1714 if test -r "$cache_file"; then
1715   # Some versions of bash will fail to source /dev/null (special
1716   # files actually), so we avoid doing that.
1717   if test -f "$cache_file"; then
1718     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719 echo "$as_me: loading cache $cache_file" >&6;}
1720     case $cache_file in
1721       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722       *)                      . "./$cache_file";;
1723     esac
1724   fi
1725 else
1726   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727 echo "$as_me: creating cache $cache_file" >&6;}
1728   >$cache_file
1729 fi
1730
1731 # Check that the precious variables saved in the cache have kept the same
1732 # value.
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736   eval ac_new_set=\$ac_env_${ac_var}_set
1737   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738   eval ac_new_val=\$ac_env_${ac_var}_value
1739   case $ac_old_set,$ac_new_set in
1740     set,)
1741       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1742 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743       ac_cache_corrupted=: ;;
1744     ,set)
1745       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1746 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747       ac_cache_corrupted=: ;;
1748     ,);;
1749     *)
1750       if test "x$ac_old_val" != "x$ac_new_val"; then
1751         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1752 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1753         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1754 echo "$as_me:   former value:  $ac_old_val" >&2;}
1755         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1756 echo "$as_me:   current value: $ac_new_val" >&2;}
1757         ac_cache_corrupted=:
1758       fi;;
1759   esac
1760   # Pass precious variables to config.status.
1761   if test "$ac_new_set" = set; then
1762     case $ac_new_val in
1763     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1764     *) ac_arg=$ac_var=$ac_new_val ;;
1765     esac
1766     case " $ac_configure_args " in
1767       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1768       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1769     esac
1770   fi
1771 done
1772 if $ac_cache_corrupted; then
1773   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1774 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1775   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1776 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1777    { (exit 1); exit 1; }; }
1778 fi
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804 ac_ext=c
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809
1810
1811
1812 ac_config_headers="$ac_config_headers include/config.h"
1813
1814 ac_aux_dir=
1815 for ac_dir in tools "$srcdir"/tools; do
1816   if test -f "$ac_dir/install-sh"; then
1817     ac_aux_dir=$ac_dir
1818     ac_install_sh="$ac_aux_dir/install-sh -c"
1819     break
1820   elif test -f "$ac_dir/install.sh"; then
1821     ac_aux_dir=$ac_dir
1822     ac_install_sh="$ac_aux_dir/install.sh -c"
1823     break
1824   elif test -f "$ac_dir/shtool"; then
1825     ac_aux_dir=$ac_dir
1826     ac_install_sh="$ac_aux_dir/shtool install -c"
1827     break
1828   fi
1829 done
1830 if test -z "$ac_aux_dir"; then
1831   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1832 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1833    { (exit 1); exit 1; }; }
1834 fi
1835
1836 # These three variables are undocumented and unsupported,
1837 # and are intended to be withdrawn in a future Autoconf release.
1838 # They can cause serious problems if a builder's source tree is in a directory
1839 # whose full name contains unusual characters.
1840 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1841 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1842 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1843
1844
1845
1846
1847 # Check whether --enable-win16 was given.
1848 if test "${enable_win16+set}" = set; then
1849   enableval=$enable_win16;
1850 fi
1851
1852 # Check whether --enable-win64 was given.
1853 if test "${enable_win64+set}" = set; then
1854   enableval=$enable_win64;
1855 fi
1856
1857
1858
1859 # Check whether --with-opengl was given.
1860 if test "${with_opengl+set}" = set; then
1861   withval=$with_opengl;
1862 fi
1863
1864
1865 # Check whether --with-curses was given.
1866 if test "${with_curses+set}" = set; then
1867   withval=$with_curses;
1868 fi
1869
1870
1871 # Check whether --with-wine-tools was given.
1872 if test "${with_wine_tools+set}" = set; then
1873   withval=$with_wine_tools;
1874 fi
1875
1876
1877 # Make sure we can run config.sub.
1878 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1879   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1880 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1881    { (exit 1); exit 1; }; }
1882
1883 { echo "$as_me:$LINENO: checking build system type" >&5
1884 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1885 if test "${ac_cv_build+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   ac_build_alias=$build_alias
1889 test "x$ac_build_alias" = x &&
1890   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1891 test "x$ac_build_alias" = x &&
1892   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1893 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1894    { (exit 1); exit 1; }; }
1895 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1896   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1897 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1898    { (exit 1); exit 1; }; }
1899
1900 fi
1901 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1902 echo "${ECHO_T}$ac_cv_build" >&6; }
1903 case $ac_cv_build in
1904 *-*-*) ;;
1905 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1906 echo "$as_me: error: invalid value of canonical build" >&2;}
1907    { (exit 1); exit 1; }; };;
1908 esac
1909 build=$ac_cv_build
1910 ac_save_IFS=$IFS; IFS='-'
1911 set x $ac_cv_build
1912 shift
1913 build_cpu=$1
1914 build_vendor=$2
1915 shift; shift
1916 # Remember, the first character of IFS is used to create $*,
1917 # except with old shells:
1918 build_os=$*
1919 IFS=$ac_save_IFS
1920 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1921
1922
1923 { echo "$as_me:$LINENO: checking host system type" >&5
1924 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1925 if test "${ac_cv_host+set}" = set; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   if test "x$host_alias" = x; then
1929   ac_cv_host=$ac_cv_build
1930 else
1931   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1932     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937 fi
1938 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1939 echo "${ECHO_T}$ac_cv_host" >&6; }
1940 case $ac_cv_host in
1941 *-*-*) ;;
1942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1943 echo "$as_me: error: invalid value of canonical host" >&2;}
1944    { (exit 1); exit 1; }; };;
1945 esac
1946 host=$ac_cv_host
1947 ac_save_IFS=$IFS; IFS='-'
1948 set x $ac_cv_host
1949 shift
1950 host_cpu=$1
1951 host_vendor=$2
1952 shift; shift
1953 # Remember, the first character of IFS is used to create $*,
1954 # except with old shells:
1955 host_os=$*
1956 IFS=$ac_save_IFS
1957 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1958
1959
1960 case $host in
1961   x86_64*linux*)
1962     if test "x$enable_win64" != "xyes"
1963     then
1964       test -n "$CC" || CC="gcc -m32"
1965       test -n "$LD" || LD="ld -m elf_i386"
1966       test -n "$AS" || AS="as --32"
1967       host_cpu="i386"
1968     fi
1969     ;;
1970 esac
1971
1972 case $host_cpu in
1973   *i[3456789]86*)
1974     if test "x$enable_win16" != "xno"
1975     then
1976       enable_win16="yes"
1977     fi
1978     ;;
1979 esac
1980
1981 WIN16_FILES="\$(WIN16_FILES)"
1982
1983 WIN16_INSTALL="\$(WIN16_INSTALL)"
1984
1985 if test "x$enable_win16" != "xyes"
1986 then
1987   WIN16_FILES=""
1988   WIN16_INSTALL=""
1989 fi
1990
1991
1992 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1993 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1994 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1995 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   cat >conftest.make <<\_ACEOF
1999 SHELL = /bin/sh
2000 all:
2001         @echo '@@@%%%=$(MAKE)=@@@%%%'
2002 _ACEOF
2003 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2004 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2005   *@@@%%%=?*=@@@%%%*)
2006     eval ac_cv_prog_make_${ac_make}_set=yes;;
2007   *)
2008     eval ac_cv_prog_make_${ac_make}_set=no;;
2009 esac
2010 rm -f conftest.make
2011 fi
2012 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2013   { echo "$as_me:$LINENO: result: yes" >&5
2014 echo "${ECHO_T}yes" >&6; }
2015   SET_MAKE=
2016 else
2017   { echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6; }
2019   SET_MAKE="MAKE=${MAKE-make}"
2020 fi
2021
2022 ac_ext=c
2023 ac_cpp='$CPP $CPPFLAGS'
2024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027 if test -n "$ac_tool_prefix"; then
2028   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032 if test "${ac_cv_prog_CC+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$CC"; then
2036   ac_cv_prog_CC="$CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2045     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051 IFS=$as_save_IFS
2052
2053 fi
2054 fi
2055 CC=$ac_cv_prog_CC
2056 if test -n "$CC"; then
2057   { echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6; }
2059 else
2060   { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2062 fi
2063
2064
2065 fi
2066 if test -z "$ac_cv_prog_CC"; then
2067   ac_ct_CC=$CC
2068   # Extract the first word of "gcc", so it can be a program name with args.
2069 set dummy gcc; ac_word=$2
2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   if test -n "$ac_ct_CC"; then
2076   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2085     ac_cv_prog_ac_ct_CC="gcc"
2086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091 IFS=$as_save_IFS
2092
2093 fi
2094 fi
2095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096 if test -n "$ac_ct_CC"; then
2097   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098 echo "${ECHO_T}$ac_ct_CC" >&6; }
2099 else
2100   { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2102 fi
2103
2104   if test "x$ac_ct_CC" = x; then
2105     CC=""
2106   else
2107     case $cross_compiling:$ac_tool_warned in
2108 yes:)
2109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2110 whose name does not start with the host triplet.  If you think this
2111 configuration is useful to you, please write to autoconf@gnu.org." >&5
2112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2113 whose name does not start with the host triplet.  If you think this
2114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2115 ac_tool_warned=yes ;;
2116 esac
2117     CC=$ac_ct_CC
2118   fi
2119 else
2120   CC="$ac_cv_prog_CC"
2121 fi
2122
2123 if test -z "$CC"; then
2124           if test -n "$ac_tool_prefix"; then
2125     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2126 set dummy ${ac_tool_prefix}cc; ac_word=$2
2127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130   echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132   if test -n "$CC"; then
2133   ac_cv_prog_CC="$CC" # Let the user override the test.
2134 else
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138   IFS=$as_save_IFS
2139   test -z "$as_dir" && as_dir=.
2140   for ac_exec_ext in '' $ac_executable_extensions; do
2141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2142     ac_cv_prog_CC="${ac_tool_prefix}cc"
2143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144     break 2
2145   fi
2146 done
2147 done
2148 IFS=$as_save_IFS
2149
2150 fi
2151 fi
2152 CC=$ac_cv_prog_CC
2153 if test -n "$CC"; then
2154   { echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6; }
2156 else
2157   { echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6; }
2159 fi
2160
2161
2162   fi
2163 fi
2164 if test -z "$CC"; then
2165   # Extract the first word of "cc", so it can be a program name with args.
2166 set dummy cc; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_CC+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   if test -n "$CC"; then
2173   ac_cv_prog_CC="$CC" # Let the user override the test.
2174 else
2175   ac_prog_rejected=no
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   for ac_exec_ext in '' $ac_executable_extensions; do
2182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2183     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2184        ac_prog_rejected=yes
2185        continue
2186      fi
2187     ac_cv_prog_CC="cc"
2188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189     break 2
2190   fi
2191 done
2192 done
2193 IFS=$as_save_IFS
2194
2195 if test $ac_prog_rejected = yes; then
2196   # We found a bogon in the path, so make sure we never use it.
2197   set dummy $ac_cv_prog_CC
2198   shift
2199   if test $# != 0; then
2200     # We chose a different compiler from the bogus one.
2201     # However, it has the same basename, so the bogon will be chosen
2202     # first if we set CC to just the basename; use the full file name.
2203     shift
2204     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2205   fi
2206 fi
2207 fi
2208 fi
2209 CC=$ac_cv_prog_CC
2210 if test -n "$CC"; then
2211   { echo "$as_me:$LINENO: result: $CC" >&5
2212 echo "${ECHO_T}$CC" >&6; }
2213 else
2214   { echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6; }
2216 fi
2217
2218
2219 fi
2220 if test -z "$CC"; then
2221   if test -n "$ac_tool_prefix"; then
2222   for ac_prog in cl.exe
2223   do
2224     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test -n "$CC"; then
2232   ac_cv_prog_CC="$CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237   IFS=$as_save_IFS
2238   test -z "$as_dir" && as_dir=.
2239   for ac_exec_ext in '' $ac_executable_extensions; do
2240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2241     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243     break 2
2244   fi
2245 done
2246 done
2247 IFS=$as_save_IFS
2248
2249 fi
2250 fi
2251 CC=$ac_cv_prog_CC
2252 if test -n "$CC"; then
2253   { echo "$as_me:$LINENO: result: $CC" >&5
2254 echo "${ECHO_T}$CC" >&6; }
2255 else
2256   { echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6; }
2258 fi
2259
2260
2261     test -n "$CC" && break
2262   done
2263 fi
2264 if test -z "$CC"; then
2265   ac_ct_CC=$CC
2266   for ac_prog in cl.exe
2267 do
2268   # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275   if test -n "$ac_ct_CC"; then
2276   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   for ac_exec_ext in '' $ac_executable_extensions; do
2284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2285     ac_cv_prog_ac_ct_CC="$ac_prog"
2286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287     break 2
2288   fi
2289 done
2290 done
2291 IFS=$as_save_IFS
2292
2293 fi
2294 fi
2295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2296 if test -n "$ac_ct_CC"; then
2297   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2298 echo "${ECHO_T}$ac_ct_CC" >&6; }
2299 else
2300   { echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6; }
2302 fi
2303
2304
2305   test -n "$ac_ct_CC" && break
2306 done
2307
2308   if test "x$ac_ct_CC" = x; then
2309     CC=""
2310   else
2311     case $cross_compiling:$ac_tool_warned in
2312 yes:)
2313 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2314 whose name does not start with the host triplet.  If you think this
2315 configuration is useful to you, please write to autoconf@gnu.org." >&5
2316 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2317 whose name does not start with the host triplet.  If you think this
2318 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2319 ac_tool_warned=yes ;;
2320 esac
2321     CC=$ac_ct_CC
2322   fi
2323 fi
2324
2325 fi
2326
2327
2328 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: no acceptable C compiler found in \$PATH
2331 See \`config.log' for more details." >&2;}
2332    { (exit 1); exit 1; }; }
2333
2334 # Provide some information about the compiler.
2335 echo "$as_me:$LINENO: checking for C compiler version" >&5
2336 ac_compiler=`set X $ac_compile; echo $2`
2337 { (ac_try="$ac_compiler --version >&5"
2338 case "(($ac_try" in
2339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340   *) ac_try_echo=$ac_try;;
2341 esac
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343   (eval "$ac_compiler --version >&5") 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }
2347 { (ac_try="$ac_compiler -v >&5"
2348 case "(($ac_try" in
2349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350   *) ac_try_echo=$ac_try;;
2351 esac
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353   (eval "$ac_compiler -v >&5") 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }
2357 { (ac_try="$ac_compiler -V >&5"
2358 case "(($ac_try" in
2359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360   *) ac_try_echo=$ac_try;;
2361 esac
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363   (eval "$ac_compiler -V >&5") 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }
2367
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374
2375 int
2376 main ()
2377 {
2378
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 ac_clean_files_save=$ac_clean_files
2384 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2385 # Try to create an executable without -o first, disregard a.out.
2386 # It will help us diagnose broken compilers, and finding out an intuition
2387 # of exeext.
2388 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2389 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2390 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2391 #
2392 # List of possible output files, starting from the most likely.
2393 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2394 # only as a last resort.  b.out is created by i960 compilers.
2395 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2396 #
2397 # The IRIX 6 linker writes into existing files which may not be
2398 # executable, retaining their permissions.  Remove them first so a
2399 # subsequent execution test works.
2400 ac_rmfiles=
2401 for ac_file in $ac_files
2402 do
2403   case $ac_file in
2404     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2405     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2406   esac
2407 done
2408 rm -f $ac_rmfiles
2409
2410 if { (ac_try="$ac_link_default"
2411 case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416   (eval "$ac_link_default") 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; then
2420   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2421 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2422 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2423 # so that the user can short-circuit this test for compilers unknown to
2424 # Autoconf.
2425 for ac_file in $ac_files ''
2426 do
2427   test -f "$ac_file" || continue
2428   case $ac_file in
2429     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2430         ;;
2431     [ab].out )
2432         # We found the default executable, but exeext='' is most
2433         # certainly right.
2434         break;;
2435     *.* )
2436         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2437         then :; else
2438            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2439         fi
2440         # We set ac_cv_exeext here because the later test for it is not
2441         # safe: cross compilers may not add the suffix if given an `-o'
2442         # argument, so we may need to know it at that point already.
2443         # Even if this section looks crufty: it has the advantage of
2444         # actually working.
2445         break;;
2446     * )
2447         break;;
2448   esac
2449 done
2450 test "$ac_cv_exeext" = no && ac_cv_exeext=
2451
2452 else
2453   ac_file=''
2454 fi
2455
2456 { echo "$as_me:$LINENO: result: $ac_file" >&5
2457 echo "${ECHO_T}$ac_file" >&6; }
2458 if test -z "$ac_file"; then
2459   echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: C compiler cannot create executables
2465 See \`config.log' for more details." >&2;}
2466    { (exit 77); exit 77; }; }
2467 fi
2468
2469 ac_exeext=$ac_cv_exeext
2470
2471 # Check that the compiler produces executables we can run.  If not, either
2472 # the compiler is broken, or we cross compile.
2473 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2474 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2475 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2476 # If not cross compiling, check that we can run a simple program.
2477 if test "$cross_compiling" != yes; then
2478   if { ac_try='./$ac_file'
2479   { (case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484   (eval "$ac_try") 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488     cross_compiling=no
2489   else
2490     if test "$cross_compiling" = maybe; then
2491         cross_compiling=yes
2492     else
2493         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2494 If you meant to cross compile, use \`--host'.
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: cannot run C compiled programs.
2497 If you meant to cross compile, use \`--host'.
2498 See \`config.log' for more details." >&2;}
2499    { (exit 1); exit 1; }; }
2500     fi
2501   fi
2502 fi
2503 { echo "$as_me:$LINENO: result: yes" >&5
2504 echo "${ECHO_T}yes" >&6; }
2505
2506 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2507 ac_clean_files=$ac_clean_files_save
2508 # Check that the compiler produces executables we can run.  If not, either
2509 # the compiler is broken, or we cross compile.
2510 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2511 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2512 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2513 echo "${ECHO_T}$cross_compiling" >&6; }
2514
2515 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2516 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2517 if { (ac_try="$ac_link"
2518 case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_link") 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; then
2527   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2528 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2529 # work properly (i.e., refer to `conftest.exe'), while it won't with
2530 # `rm'.
2531 for ac_file in conftest.exe conftest conftest.*; do
2532   test -f "$ac_file" || continue
2533   case $ac_file in
2534     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2535     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2536           break;;
2537     * ) break;;
2538   esac
2539 done
2540 else
2541   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2542 See \`config.log' for more details." >&5
2543 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2544 See \`config.log' for more details." >&2;}
2545    { (exit 1); exit 1; }; }
2546 fi
2547
2548 rm -f conftest$ac_cv_exeext
2549 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2550 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2551
2552 rm -f conftest.$ac_ext
2553 EXEEXT=$ac_cv_exeext
2554 ac_exeext=$EXEEXT
2555 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2556 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2557 if test "${ac_cv_objext+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   cat >conftest.$ac_ext <<_ACEOF
2561 /* confdefs.h.  */
2562 _ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h.  */
2566
2567 int
2568 main ()
2569 {
2570
2571   ;
2572   return 0;
2573 }
2574 _ACEOF
2575 rm -f conftest.o conftest.obj
2576 if { (ac_try="$ac_compile"
2577 case "(($ac_try" in
2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579   *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582   (eval "$ac_compile") 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; then
2586   for ac_file in conftest.o conftest.obj conftest.*; do
2587   test -f "$ac_file" || continue;
2588   case $ac_file in
2589     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2590     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2591        break;;
2592   esac
2593 done
2594 else
2595   echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2597
2598 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2599 See \`config.log' for more details." >&5
2600 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2601 See \`config.log' for more details." >&2;}
2602    { (exit 1); exit 1; }; }
2603 fi
2604
2605 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2606 fi
2607 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2608 echo "${ECHO_T}$ac_cv_objext" >&6; }
2609 OBJEXT=$ac_cv_objext
2610 ac_objext=$OBJEXT
2611 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2612 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2613 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h.  */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h.  */
2622
2623 int
2624 main ()
2625 {
2626 #ifndef __GNUC__
2627        choke me
2628 #endif
2629
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 rm -f conftest.$ac_objext
2635 if { (ac_try="$ac_compile"
2636 case "(($ac_try" in
2637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638   *) ac_try_echo=$ac_try;;
2639 esac
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641   (eval "$ac_compile") 2>conftest.er1
2642   ac_status=$?
2643   grep -v '^ *+' conftest.er1 >conftest.err
2644   rm -f conftest.er1
2645   cat conftest.err >&5
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } &&
2648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2649   { (case "(($ac_try" in
2650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651   *) ac_try_echo=$ac_try;;
2652 esac
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654   (eval "$ac_try") 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); }; } &&
2658          { ac_try='test -s conftest.$ac_objext'
2659   { (case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_try") 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; }; then
2668   ac_compiler_gnu=yes
2669 else
2670   echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673         ac_compiler_gnu=no
2674 fi
2675
2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2678
2679 fi
2680 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2681 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2682 GCC=`test $ac_compiler_gnu = yes && echo yes`
2683 ac_test_CFLAGS=${CFLAGS+set}
2684 ac_save_CFLAGS=$CFLAGS
2685 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2686 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2687 if test "${ac_cv_prog_cc_g+set}" = set; then
2688   echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690   ac_save_c_werror_flag=$ac_c_werror_flag
2691    ac_c_werror_flag=yes
2692    ac_cv_prog_cc_g=no
2693    CFLAGS="-g"
2694    cat >conftest.$ac_ext <<_ACEOF
2695 /* confdefs.h.  */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h.  */
2700
2701 int
2702 main ()
2703 {
2704
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (ac_try="$ac_compile"
2711 case "(($ac_try" in
2712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713   *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716   (eval "$ac_compile") 2>conftest.er1
2717   ac_status=$?
2718   grep -v '^ *+' conftest.er1 >conftest.err
2719   rm -f conftest.er1
2720   cat conftest.err >&5
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); } &&
2723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2724   { (case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_try") 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; } &&
2733          { ac_try='test -s conftest.$ac_objext'
2734   { (case "(($ac_try" in
2735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736   *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739   (eval "$ac_try") 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; }; then
2743   ac_cv_prog_cc_g=yes
2744 else
2745   echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2747
2748         CFLAGS=""
2749       cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h.  */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h.  */
2755
2756 int
2757 main ()
2758 {
2759
2760   ;
2761   return 0;
2762 }
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (ac_try="$ac_compile"
2766 case "(($ac_try" in
2767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768   *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771   (eval "$ac_compile") 2>conftest.er1
2772   ac_status=$?
2773   grep -v '^ *+' conftest.er1 >conftest.err
2774   rm -f conftest.er1
2775   cat conftest.err >&5
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); } &&
2778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2779   { (case "(($ac_try" in
2780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781   *) ac_try_echo=$ac_try;;
2782 esac
2783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784   (eval "$ac_try") 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest.$ac_objext'
2789   { (case "(($ac_try" in
2790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791   *) ac_try_echo=$ac_try;;
2792 esac
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794   (eval "$ac_try") 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   :
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803         ac_c_werror_flag=$ac_save_c_werror_flag
2804          CFLAGS="-g"
2805          cat >conftest.$ac_ext <<_ACEOF
2806 /* confdefs.h.  */
2807 _ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h.  */
2811
2812 int
2813 main ()
2814 {
2815
2816   ;
2817   return 0;
2818 }
2819 _ACEOF
2820 rm -f conftest.$ac_objext
2821 if { (ac_try="$ac_compile"
2822 case "(($ac_try" in
2823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824   *) ac_try_echo=$ac_try;;
2825 esac
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827   (eval "$ac_compile") 2>conftest.er1
2828   ac_status=$?
2829   grep -v '^ *+' conftest.er1 >conftest.err
2830   rm -f conftest.er1
2831   cat conftest.err >&5
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } &&
2834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2835   { (case "(($ac_try" in
2836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837   *) ac_try_echo=$ac_try;;
2838 esac
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840   (eval "$ac_try") 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); }; } &&
2844          { ac_try='test -s conftest.$ac_objext'
2845   { (case "(($ac_try" in
2846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847   *) ac_try_echo=$ac_try;;
2848 esac
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850   (eval "$ac_try") 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; }; then
2854   ac_cv_prog_cc_g=yes
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859
2860 fi
2861
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 fi
2864
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 fi
2867
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869    ac_c_werror_flag=$ac_save_c_werror_flag
2870 fi
2871 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2873 if test "$ac_test_CFLAGS" = set; then
2874   CFLAGS=$ac_save_CFLAGS
2875 elif test $ac_cv_prog_cc_g = yes; then
2876   if test "$GCC" = yes; then
2877     CFLAGS="-g -O2"
2878   else
2879     CFLAGS="-g"
2880   fi
2881 else
2882   if test "$GCC" = yes; then
2883     CFLAGS="-O2"
2884   else
2885     CFLAGS=
2886   fi
2887 fi
2888 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2889 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2890 if test "${ac_cv_prog_cc_c89+set}" = set; then
2891   echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893   ac_cv_prog_cc_c89=no
2894 ac_save_CC=$CC
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h.  */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h.  */
2901 #include <stdarg.h>
2902 #include <stdio.h>
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2906 struct buf { int x; };
2907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908 static char *e (p, i)
2909      char **p;
2910      int i;
2911 {
2912   return p[i];
2913 }
2914 static char *f (char * (*g) (char **, int), char **p, ...)
2915 {
2916   char *s;
2917   va_list v;
2918   va_start (v,p);
2919   s = g (p, va_arg (v,int));
2920   va_end (v);
2921   return s;
2922 }
2923
2924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2925    function prototypes and stuff, but not '\xHH' hex character constants.
2926    These don't provoke an error unfortunately, instead are silently treated
2927    as 'x'.  The following induces an error, until -std is added to get
2928    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2929    array size at least.  It's necessary to write '\x00'==0 to get something
2930    that's true only with -std.  */
2931 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2932
2933 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2934    inside strings and character constants.  */
2935 #define FOO(x) 'x'
2936 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2937
2938 int test (int i, double x);
2939 struct s1 {int (*f) (int a);};
2940 struct s2 {int (*f) (double a);};
2941 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2942 int argc;
2943 char **argv;
2944 int
2945 main ()
2946 {
2947 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2953         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2954 do
2955   CC="$ac_save_CC $ac_arg"
2956   rm -f conftest.$ac_objext
2957 if { (ac_try="$ac_compile"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_compile") 2>conftest.er1
2964   ac_status=$?
2965   grep -v '^ *+' conftest.er1 >conftest.err
2966   rm -f conftest.er1
2967   cat conftest.err >&5
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); } &&
2970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2971   { (case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_try") 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; } &&
2980          { ac_try='test -s conftest.$ac_objext'
2981   { (case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_try") 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; }; then
2990   ac_cv_prog_cc_c89=$ac_arg
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995
2996 fi
2997
2998 rm -f core conftest.err conftest.$ac_objext
2999   test "x$ac_cv_prog_cc_c89" != "xno" && break
3000 done
3001 rm -f conftest.$ac_ext
3002 CC=$ac_save_CC
3003
3004 fi
3005 # AC_CACHE_VAL
3006 case "x$ac_cv_prog_cc_c89" in
3007   x)
3008     { echo "$as_me:$LINENO: result: none needed" >&5
3009 echo "${ECHO_T}none needed" >&6; } ;;
3010   xno)
3011     { echo "$as_me:$LINENO: result: unsupported" >&5
3012 echo "${ECHO_T}unsupported" >&6; } ;;
3013   *)
3014     CC="$CC $ac_cv_prog_cc_c89"
3015     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3016 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3017 esac
3018
3019
3020 ac_ext=c
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025
3026 ac_ext=cpp
3027 ac_cpp='$CXXCPP $CPPFLAGS'
3028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3031 if test -z "$CXX"; then
3032   if test -n "$CCC"; then
3033     CXX=$CCC
3034   else
3035     if test -n "$ac_tool_prefix"; then
3036   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3037   do
3038     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3039 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3042 if test "${ac_cv_prog_CXX+set}" = set; then
3043   echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045   if test -n "$CXX"; then
3046   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051   IFS=$as_save_IFS
3052   test -z "$as_dir" && as_dir=.
3053   for ac_exec_ext in '' $ac_executable_extensions; do
3054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3055     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057     break 2
3058   fi
3059 done
3060 done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 CXX=$ac_cv_prog_CXX
3066 if test -n "$CXX"; then
3067   { echo "$as_me:$LINENO: result: $CXX" >&5
3068 echo "${ECHO_T}$CXX" >&6; }
3069 else
3070   { echo "$as_me:$LINENO: result: no" >&5
3071 echo "${ECHO_T}no" >&6; }
3072 fi
3073
3074
3075     test -n "$CXX" && break
3076   done
3077 fi
3078 if test -z "$CXX"; then
3079   ac_ct_CXX=$CXX
3080   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3081 do
3082   # Extract the first word of "$ac_prog", so it can be a program name with args.
3083 set dummy $ac_prog; ac_word=$2
3084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3086 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3087   echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089   if test -n "$ac_ct_CXX"; then
3090   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095   IFS=$as_save_IFS
3096   test -z "$as_dir" && as_dir=.
3097   for ac_exec_ext in '' $ac_executable_extensions; do
3098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3099     ac_cv_prog_ac_ct_CXX="$ac_prog"
3100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101     break 2
3102   fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3110 if test -n "$ac_ct_CXX"; then
3111   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3112 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3113 else
3114   { echo "$as_me:$LINENO: result: no" >&5
3115 echo "${ECHO_T}no" >&6; }
3116 fi
3117
3118
3119   test -n "$ac_ct_CXX" && break
3120 done
3121
3122   if test "x$ac_ct_CXX" = x; then
3123     CXX="g++"
3124   else
3125     case $cross_compiling:$ac_tool_warned in
3126 yes:)
3127 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3128 whose name does not start with the host triplet.  If you think this
3129 configuration is useful to you, please write to autoconf@gnu.org." >&5
3130 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3131 whose name does not start with the host triplet.  If you think this
3132 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3133 ac_tool_warned=yes ;;
3134 esac
3135     CXX=$ac_ct_CXX
3136   fi
3137 fi
3138
3139   fi
3140 fi
3141 # Provide some information about the compiler.
3142 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3143 ac_compiler=`set X $ac_compile; echo $2`
3144 { (ac_try="$ac_compiler --version >&5"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_compiler --version >&5") 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); }
3154 { (ac_try="$ac_compiler -v >&5"
3155 case "(($ac_try" in
3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157   *) ac_try_echo=$ac_try;;
3158 esac
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160   (eval "$ac_compiler -v >&5") 2>&5
3161   ac_status=$?
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }
3164 { (ac_try="$ac_compiler -V >&5"
3165 case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170   (eval "$ac_compiler -V >&5") 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }
3174
3175 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3176 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3177 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186
3187 int
3188 main ()
3189 {
3190 #ifndef __GNUC__
3191        choke me
3192 #endif
3193
3194   ;
3195   return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_compile") 2>conftest.er1
3206   ac_status=$?
3207   grep -v '^ *+' conftest.er1 >conftest.err
3208   rm -f conftest.er1
3209   cat conftest.err >&5
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); } &&
3212          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3213   { (case "(($ac_try" in
3214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215   *) ac_try_echo=$ac_try;;
3216 esac
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218   (eval "$ac_try") 2>&5
3219   ac_status=$?
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); }; } &&
3222          { ac_try='test -s conftest.$ac_objext'
3223   { (case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228   (eval "$ac_try") 2>&5
3229   ac_status=$?
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); }; }; then
3232   ac_compiler_gnu=yes
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237         ac_compiler_gnu=no
3238 fi
3239
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3242
3243 fi
3244 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3245 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3246 GXX=`test $ac_compiler_gnu = yes && echo yes`
3247 ac_test_CXXFLAGS=${CXXFLAGS+set}
3248 ac_save_CXXFLAGS=$CXXFLAGS
3249 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3250 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cxx_g+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3255    ac_cxx_werror_flag=yes
3256    ac_cv_prog_cxx_g=no
3257    CXXFLAGS="-g"
3258    cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_compile") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } &&
3287          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3288   { (case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_try") 2>&5
3294   ac_status=$?
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); }; } &&
3297          { ac_try='test -s conftest.$ac_objext'
3298   { (case "(($ac_try" in
3299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300   *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303   (eval "$ac_try") 2>&5
3304   ac_status=$?
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); }; }; then
3307   ac_cv_prog_cxx_g=yes
3308 else
3309   echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312         CXXFLAGS=""
3313       cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h.  */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h.  */
3319
3320 int
3321 main ()
3322 {
3323
3324   ;
3325   return 0;
3326 }
3327 _ACEOF
3328 rm -f conftest.$ac_objext
3329 if { (ac_try="$ac_compile"
3330 case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335   (eval "$ac_compile") 2>conftest.er1
3336   ac_status=$?
3337   grep -v '^ *+' conftest.er1 >conftest.err
3338   rm -f conftest.er1
3339   cat conftest.err >&5
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); } &&
3342          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3343   { (case "(($ac_try" in
3344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345   *) ac_try_echo=$ac_try;;
3346 esac
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348   (eval "$ac_try") 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; } &&
3352          { ac_try='test -s conftest.$ac_objext'
3353   { (case "(($ac_try" in
3354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355   *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358   (eval "$ac_try") 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; }; then
3362   :
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3368          CXXFLAGS="-g"
3369          cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375
3376 int
3377 main ()
3378 {
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391   (eval "$ac_compile") 2>conftest.er1
3392   ac_status=$?
3393   grep -v '^ *+' conftest.er1 >conftest.err
3394   rm -f conftest.er1
3395   cat conftest.err >&5
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); } &&
3398          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3399   { (case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_try") 2>&5
3405   ac_status=$?
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); }; } &&
3408          { ac_try='test -s conftest.$ac_objext'
3409   { (case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414   (eval "$ac_try") 2>&5
3415   ac_status=$?
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); }; }; then
3418   ac_cv_prog_cxx_g=yes
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423
3424 fi
3425
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 fi
3428
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 fi
3431
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3434 fi
3435 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3436 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3437 if test "$ac_test_CXXFLAGS" = set; then
3438   CXXFLAGS=$ac_save_CXXFLAGS
3439 elif test $ac_cv_prog_cxx_g = yes; then
3440   if test "$GXX" = yes; then
3441     CXXFLAGS="-g -O2"
3442   else
3443     CXXFLAGS="-g"
3444   fi
3445 else
3446   if test "$GXX" = yes; then
3447     CXXFLAGS="-O2"
3448   else
3449     CXXFLAGS=
3450   fi
3451 fi
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457
3458 if test -n "$ac_tool_prefix"; then
3459   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3463 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   if test -n "$CPPBIN"; then
3467   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474   for ac_exec_ext in '' $ac_executable_extensions; do
3475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3476     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478     break 2
3479   fi
3480 done
3481 done
3482 IFS=$as_save_IFS
3483
3484 fi
3485 fi
3486 CPPBIN=$ac_cv_prog_CPPBIN
3487 if test -n "$CPPBIN"; then
3488   { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3489 echo "${ECHO_T}$CPPBIN" >&6; }
3490 else
3491   { echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6; }
3493 fi
3494
3495
3496 fi
3497 if test -z "$ac_cv_prog_CPPBIN"; then
3498   ac_ct_CPPBIN=$CPPBIN
3499   # Extract the first word of "cpp", so it can be a program name with args.
3500 set dummy cpp; ac_word=$2
3501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3503 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   if test -n "$ac_ct_CPPBIN"; then
3507   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514   for ac_exec_ext in '' $ac_executable_extensions; do
3515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3516     ac_cv_prog_ac_ct_CPPBIN="cpp"
3517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518     break 2
3519   fi
3520 done
3521 done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3527 if test -n "$ac_ct_CPPBIN"; then
3528   { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3529 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3530 else
3531   { echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6; }
3533 fi
3534
3535   if test "x$ac_ct_CPPBIN" = x; then
3536     CPPBIN="cpp"
3537   else
3538     case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3541 whose name does not start with the host triplet.  If you think this
3542 configuration is useful to you, please write to autoconf@gnu.org." >&5
3543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3544 whose name does not start with the host triplet.  If you think this
3545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3546 ac_tool_warned=yes ;;
3547 esac
3548     CPPBIN=$ac_ct_CPPBIN
3549   fi
3550 else
3551   CPPBIN="$ac_cv_prog_CPPBIN"
3552 fi
3553
3554
3555 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3556 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3557 if test "${wine_cv_toolsdir+set}" = set; then
3558   echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560   if test -z "$with_wine_tools"; then
3561      if test "$cross_compiling" = "yes"; then
3562        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3563 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3564    { (exit 1); exit 1; }; }
3565      else
3566        wine_cv_toolsdir="\$(TOPOBJDIR)"
3567      fi
3568    elif test -d "$with_wine_tools/tools/winebuild"; then
3569      case $with_wine_tools in
3570        /*) wine_cv_toolsdir="$with_wine_tools" ;;
3571        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3572      esac
3573    else
3574      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3575 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3576    { (exit 1); exit 1; }; }
3577    fi
3578 fi
3579 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3580 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3581 TOOLSDIR=$wine_cv_toolsdir
3582
3583
3584
3585 ac_ext=c
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3591 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3592 # On Suns, sometimes $CPP names a directory.
3593 if test -n "$CPP" && test -d "$CPP"; then
3594   CPP=
3595 fi
3596 if test -z "$CPP"; then
3597   if test "${ac_cv_prog_CPP+set}" = set; then
3598   echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600       # Double quotes because CPP needs to be expanded
3601     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3602     do
3603       ac_preproc_ok=false
3604 for ac_c_preproc_warn_flag in '' yes
3605 do
3606   # Use a header file that comes with gcc, so configuring glibc
3607   # with a fresh cross-compiler works.
3608   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3609   # <limits.h> exists even on freestanding compilers.
3610   # On the NeXT, cc -E runs the code through the compiler's parser,
3611   # not just through cpp. "Syntax error" is here to catch this case.
3612   cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h.  */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h.  */
3618 #ifdef __STDC__
3619 # include <limits.h>
3620 #else
3621 # include <assert.h>
3622 #endif
3623                      Syntax error
3624 _ACEOF
3625 if { (ac_try="$ac_cpp conftest.$ac_ext"
3626 case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3632   ac_status=$?
3633   grep -v '^ *+' conftest.er1 >conftest.err
3634   rm -f conftest.er1
3635   cat conftest.err >&5
3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); } >/dev/null; then
3638   if test -s conftest.err; then
3639     ac_cpp_err=$ac_c_preproc_warn_flag
3640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3641   else
3642     ac_cpp_err=
3643   fi
3644 else
3645   ac_cpp_err=yes
3646 fi
3647 if test -z "$ac_cpp_err"; then
3648   :
3649 else
3650   echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653   # Broken: fails on valid input.
3654 continue
3655 fi
3656
3657 rm -f conftest.err conftest.$ac_ext
3658
3659   # OK, works on sane cases.  Now check whether nonexistent headers
3660   # can be detected and how.
3661   cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 #include <ac_nonexistent.h>
3668 _ACEOF
3669 if { (ac_try="$ac_cpp conftest.$ac_ext"
3670 case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } >/dev/null; then
3682   if test -s conftest.err; then
3683     ac_cpp_err=$ac_c_preproc_warn_flag
3684     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3685   else
3686     ac_cpp_err=
3687   fi
3688 else
3689   ac_cpp_err=yes
3690 fi
3691 if test -z "$ac_cpp_err"; then
3692   # Broken: success on invalid input.
3693 continue
3694 else
3695   echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698   # Passes both tests.
3699 ac_preproc_ok=:
3700 break
3701 fi
3702
3703 rm -f conftest.err conftest.$ac_ext
3704
3705 done
3706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3707 rm -f conftest.err conftest.$ac_ext
3708 if $ac_preproc_ok; then
3709   break
3710 fi
3711
3712     done
3713     ac_cv_prog_CPP=$CPP
3714
3715 fi
3716   CPP=$ac_cv_prog_CPP
3717 else
3718   ac_cv_prog_CPP=$CPP
3719 fi
3720 { echo "$as_me:$LINENO: result: $CPP" >&5
3721 echo "${ECHO_T}$CPP" >&6; }
3722 ac_preproc_ok=false
3723 for ac_c_preproc_warn_flag in '' yes
3724 do
3725   # Use a header file that comes with gcc, so configuring glibc
3726   # with a fresh cross-compiler works.
3727   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3728   # <limits.h> exists even on freestanding compilers.
3729   # On the NeXT, cc -E runs the code through the compiler's parser,
3730   # not just through cpp. "Syntax error" is here to catch this case.
3731   cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h.  */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h.  */
3737 #ifdef __STDC__
3738 # include <limits.h>
3739 #else
3740 # include <assert.h>
3741 #endif
3742                      Syntax error
3743 _ACEOF
3744 if { (ac_try="$ac_cpp conftest.$ac_ext"
3745 case "(($ac_try" in
3746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747   *) ac_try_echo=$ac_try;;
3748 esac
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3751   ac_status=$?
3752   grep -v '^ *+' conftest.er1 >conftest.err
3753   rm -f conftest.er1
3754   cat conftest.err >&5
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); } >/dev/null; then
3757   if test -s conftest.err; then
3758     ac_cpp_err=$ac_c_preproc_warn_flag
3759     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3760   else
3761     ac_cpp_err=
3762   fi
3763 else
3764   ac_cpp_err=yes
3765 fi
3766 if test -z "$ac_cpp_err"; then
3767   :
3768 else
3769   echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3771
3772   # Broken: fails on valid input.
3773 continue
3774 fi
3775
3776 rm -f conftest.err conftest.$ac_ext
3777
3778   # OK, works on sane cases.  Now check whether nonexistent headers
3779   # can be detected and how.
3780   cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h.  */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h.  */
3786 #include <ac_nonexistent.h>
3787 _ACEOF
3788 if { (ac_try="$ac_cpp conftest.$ac_ext"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } >/dev/null; then
3801   if test -s conftest.err; then
3802     ac_cpp_err=$ac_c_preproc_warn_flag
3803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3804   else
3805     ac_cpp_err=
3806   fi
3807 else
3808   ac_cpp_err=yes
3809 fi
3810 if test -z "$ac_cpp_err"; then
3811   # Broken: success on invalid input.
3812 continue
3813 else
3814   echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817   # Passes both tests.
3818 ac_preproc_ok=:
3819 break
3820 fi
3821
3822 rm -f conftest.err conftest.$ac_ext
3823
3824 done
3825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3826 rm -f conftest.err conftest.$ac_ext
3827 if $ac_preproc_ok; then
3828   :
3829 else
3830   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3831 See \`config.log' for more details." >&5
3832 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3833 See \`config.log' for more details." >&2;}
3834    { (exit 1); exit 1; }; }
3835 fi
3836
3837 ac_ext=c
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
3843
3844 { echo "$as_me:$LINENO: checking for X" >&5
3845 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3846
3847
3848 # Check whether --with-x was given.
3849 if test "${with_x+set}" = set; then
3850   withval=$with_x;
3851 fi
3852
3853 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3854 if test "x$with_x" = xno; then
3855   # The user explicitly disabled X.
3856   have_x=disabled
3857 else
3858   case $x_includes,$x_libraries in #(
3859     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3860 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3861    { (exit 1); exit 1; }; };; #(
3862     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   # One or both of the vars are not set, and there is no cached value.
3866 ac_x_includes=no ac_x_libraries=no
3867 rm -f -r conftest.dir
3868 if mkdir conftest.dir; then
3869   cd conftest.dir
3870   cat >Imakefile <<'_ACEOF'
3871 incroot:
3872         @echo incroot='${INCROOT}'
3873 usrlibdir:
3874         @echo usrlibdir='${USRLIBDIR}'
3875 libdir:
3876         @echo libdir='${LIBDIR}'
3877 _ACEOF
3878   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3879     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3880     for ac_var in incroot usrlibdir libdir; do
3881       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3882     done
3883     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3884     for ac_extension in a so sl; do
3885       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3886          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3887         ac_im_usrlibdir=$ac_im_libdir; break
3888       fi
3889     done
3890     # Screen out bogus values from the imake configuration.  They are
3891     # bogus both because they are the default anyway, and because
3892     # using them would break gcc on systems where it needs fixed includes.
3893     case $ac_im_incroot in
3894         /usr/include) ac_x_includes= ;;
3895         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3896     esac
3897     case $ac_im_usrlibdir in
3898         /usr/lib | /lib) ;;
3899         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3900     esac
3901   fi
3902   cd ..
3903   rm -f -r conftest.dir
3904 fi
3905
3906 # Standard set of common directories for X headers.
3907 # Check X11 before X11Rn because it is often a symlink to the current release.
3908 ac_x_header_dirs='
3909 /usr/X11/include
3910 /usr/X11R6/include
3911 /usr/X11R5/include
3912 /usr/X11R4/include
3913
3914 /usr/include/X11
3915 /usr/include/X11R6
3916 /usr/include/X11R5
3917 /usr/include/X11R4
3918
3919 /usr/local/X11/include
3920 /usr/local/X11R6/include
3921 /usr/local/X11R5/include
3922 /usr/local/X11R4/include
3923
3924 /usr/local/include/X11
3925 /usr/local/include/X11R6
3926 /usr/local/include/X11R5
3927 /usr/local/include/X11R4
3928
3929 /usr/X386/include
3930 /usr/x386/include
3931 /usr/XFree86/include/X11
3932
3933 /usr/include
3934 /usr/local/include
3935 /usr/unsupported/include
3936 /usr/athena/include
3937 /usr/local/x11r5/include
3938 /usr/lpp/Xamples/include
3939
3940 /usr/openwin/include
3941 /usr/openwin/share/include'
3942
3943 if test "$ac_x_includes" = no; then
3944   # Guess where to find include files, by looking for Xlib.h.
3945   # First, try using that file with no special directory specified.
3946   cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h.  */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h.  */
3952 #include <X11/Xlib.h>
3953 _ACEOF
3954 if { (ac_try="$ac_cpp conftest.$ac_ext"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3961   ac_status=$?
3962   grep -v '^ *+' conftest.er1 >conftest.err
3963   rm -f conftest.er1
3964   cat conftest.err >&5
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); } >/dev/null; then
3967   if test -s conftest.err; then
3968     ac_cpp_err=$ac_c_preproc_warn_flag
3969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3970   else
3971     ac_cpp_err=
3972   fi
3973 else
3974   ac_cpp_err=yes
3975 fi
3976 if test -z "$ac_cpp_err"; then
3977   # We can compile using X headers with no special include directory.
3978 ac_x_includes=
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983   for ac_dir in $ac_x_header_dirs; do
3984   if test -r "$ac_dir/X11/Xlib.h"; then
3985     ac_x_includes=$ac_dir
3986     break
3987   fi
3988 done
3989 fi
3990
3991 rm -f conftest.err conftest.$ac_ext
3992 fi # $ac_x_includes = no
3993
3994 if test "$ac_x_libraries" = no; then
3995   # Check for the libraries.
3996   # See if we find them without any special options.
3997   # Don't add to $LIBS permanently.
3998   ac_save_LIBS=$LIBS
3999   LIBS="-lX11 $LIBS"
4000   cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h.  */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h.  */
4006 #include <X11/Xlib.h>
4007 int
4008 main ()
4009 {
4010 XrmInitialize ()
4011   ;
4012   return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.$ac_objext conftest$ac_exeext
4016 if { (ac_try="$ac_link"
4017 case "(($ac_try" in
4018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019   *) ac_try_echo=$ac_try;;
4020 esac
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022   (eval "$ac_link") 2>conftest.er1
4023   ac_status=$?
4024   grep -v '^ *+' conftest.er1 >conftest.err
4025   rm -f conftest.er1
4026   cat conftest.err >&5
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); } &&
4029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4030   { (case "(($ac_try" in
4031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032   *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035   (eval "$ac_try") 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); }; } &&
4039          { ac_try='test -s conftest$ac_exeext'
4040   { (case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045   (eval "$ac_try") 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; }; then
4049   LIBS=$ac_save_LIBS
4050 # We can link X programs with no special library path.
4051 ac_x_libraries=
4052 else
4053   echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4055
4056         LIBS=$ac_save_LIBS
4057 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4058 do
4059   # Don't even attempt the hair of trying to link an X program!
4060   for ac_extension in a so sl; do
4061     if test -r "$ac_dir/libX11.$ac_extension"; then
4062       ac_x_libraries=$ac_dir
4063       break 2
4064     fi
4065   done
4066 done
4067 fi
4068
4069 rm -f core conftest.err conftest.$ac_objext \
4070       conftest$ac_exeext conftest.$ac_ext
4071 fi # $ac_x_libraries = no
4072
4073 case $ac_x_includes,$ac_x_libraries in #(
4074   no,* | *,no | *\'*)
4075     # Didn't find X, or a directory has "'" in its name.
4076     ac_cv_have_x="have_x=no";; #(
4077   *)
4078     # Record where we found X for the cache.
4079     ac_cv_have_x="have_x=yes\
4080         ac_x_includes='$ac_x_includes'\
4081         ac_x_libraries='$ac_x_libraries'"
4082 esac
4083 fi
4084 ;; #(
4085     *) have_x=yes;;
4086   esac
4087   eval "$ac_cv_have_x"
4088 fi # $with_x != no
4089
4090 if test "$have_x" != yes; then
4091   { echo "$as_me:$LINENO: result: $have_x" >&5
4092 echo "${ECHO_T}$have_x" >&6; }
4093   no_x=yes
4094 else
4095   # If each of the values was on the command line, it overrides each guess.
4096   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4097   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4098   # Update the cache value to reflect the command line values.
4099   ac_cv_have_x="have_x=yes\
4100         ac_x_includes='$x_includes'\
4101         ac_x_libraries='$x_libraries'"
4102   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4103 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4104 fi
4105
4106 if test "$no_x" = yes; then
4107   # Not all programs may use this symbol, but it does not hurt to define it.
4108
4109 cat >>confdefs.h <<\_ACEOF
4110 #define X_DISPLAY_MISSING 1
4111 _ACEOF
4112
4113   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4114 else
4115   if test -n "$x_includes"; then
4116     X_CFLAGS="$X_CFLAGS -I$x_includes"
4117   fi
4118
4119   # It would also be nice to do this for all -L options, not just this one.
4120   if test -n "$x_libraries"; then
4121     X_LIBS="$X_LIBS -L$x_libraries"
4122     # For Solaris; some versions of Sun CC require a space after -R and
4123     # others require no space.  Words are not sufficient . . . .
4124     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4125 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4126     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4127     ac_xsave_c_werror_flag=$ac_c_werror_flag
4128     ac_c_werror_flag=yes
4129     cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135
4136 int
4137 main ()
4138 {
4139
4140   ;
4141   return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest.$ac_objext conftest$ac_exeext
4145 if { (ac_try="$ac_link"
4146 case "(($ac_try" in
4147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148   *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151   (eval "$ac_link") 2>conftest.er1
4152   ac_status=$?
4153   grep -v '^ *+' conftest.er1 >conftest.err
4154   rm -f conftest.er1
4155   cat conftest.err >&5
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); } &&
4158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4159   { (case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_try") 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; } &&
4168          { ac_try='test -s conftest$ac_exeext'
4169   { (case "(($ac_try" in
4170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171   *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174   (eval "$ac_try") 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; }; then
4178   { echo "$as_me:$LINENO: result: no" >&5
4179 echo "${ECHO_T}no" >&6; }
4180        X_LIBS="$X_LIBS -R$x_libraries"
4181 else
4182   echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4184
4185         LIBS="$ac_xsave_LIBS -R $x_libraries"
4186        cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192
4193 int
4194 main ()
4195 {
4196
4197   ;
4198   return 0;
4199 }
4200 _ACEOF
4201 rm -f conftest.$ac_objext conftest$ac_exeext
4202 if { (ac_try="$ac_link"
4203 case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_link") 2>conftest.er1
4209   ac_status=$?
4210   grep -v '^ *+' conftest.er1 >conftest.err
4211   rm -f conftest.er1
4212   cat conftest.err >&5
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); } &&
4215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4216   { (case "(($ac_try" in
4217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218   *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221   (eval "$ac_try") 2>&5
4222   ac_status=$?
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); }; } &&
4225          { ac_try='test -s conftest$ac_exeext'
4226   { (case "(($ac_try" in
4227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228   *) ac_try_echo=$ac_try;;
4229 esac
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231   (eval "$ac_try") 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; }; then
4235   { echo "$as_me:$LINENO: result: yes" >&5
4236 echo "${ECHO_T}yes" >&6; }
4237           X_LIBS="$X_LIBS -R $x_libraries"
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242         { echo "$as_me:$LINENO: result: neither works" >&5
4243 echo "${ECHO_T}neither works" >&6; }
4244 fi
4245
4246 rm -f core conftest.err conftest.$ac_objext \
4247       conftest$ac_exeext conftest.$ac_ext
4248 fi
4249
4250 rm -f core conftest.err conftest.$ac_objext \
4251       conftest$ac_exeext conftest.$ac_ext
4252     ac_c_werror_flag=$ac_xsave_c_werror_flag
4253     LIBS=$ac_xsave_LIBS
4254   fi
4255
4256   # Check for system-dependent libraries X programs must link with.
4257   # Do this before checking for the system-independent R6 libraries
4258   # (-lICE), since we may need -lsocket or whatever for X linking.
4259
4260   if test "$ISC" = yes; then
4261     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4262   else
4263     # Martyn Johnson says this is needed for Ultrix, if the X
4264     # libraries were built with DECnet support.  And Karl Berry says
4265     # the Alpha needs dnet_stub (dnet does not exist).
4266     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4267     cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273
4274 /* Override any GCC internal prototype to avoid an error.
4275    Use char because int might match the return type of a GCC
4276    builtin and then its argument prototype would still apply.  */
4277 #ifdef __cplusplus
4278 extern "C"
4279 #endif
4280 char XOpenDisplay ();
4281 int
4282 main ()
4283 {
4284 return XOpenDisplay ();
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 rm -f conftest.$ac_objext conftest$ac_exeext
4290 if { (ac_try="$ac_link"
4291 case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296   (eval "$ac_link") 2>conftest.er1
4297   ac_status=$?
4298   grep -v '^ *+' conftest.er1 >conftest.err
4299   rm -f conftest.er1
4300   cat conftest.err >&5
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); } &&
4303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4304   { (case "(($ac_try" in
4305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306   *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309   (eval "$ac_try") 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; } &&
4313          { ac_try='test -s conftest$ac_exeext'
4314   { (case "(($ac_try" in
4315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316   *) ac_try_echo=$ac_try;;
4317 esac
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319   (eval "$ac_try") 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; }; then
4323   :
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4329 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4330 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   ac_check_lib_save_LIBS=$LIBS
4334 LIBS="-ldnet  $LIBS"
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341
4342 /* Override any GCC internal prototype to avoid an error.
4343    Use char because int might match the return type of a GCC
4344    builtin and then its argument prototype would still apply.  */
4345 #ifdef __cplusplus
4346 extern "C"
4347 #endif
4348 char dnet_ntoa ();
4349 int
4350 main ()
4351 {
4352 return dnet_ntoa ();
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 rm -f conftest.$ac_objext conftest$ac_exeext
4358 if { (ac_try="$ac_link"
4359 case "(($ac_try" in
4360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361   *) ac_try_echo=$ac_try;;
4362 esac
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364   (eval "$ac_link") 2>conftest.er1
4365   ac_status=$?
4366   grep -v '^ *+' conftest.er1 >conftest.err
4367   rm -f conftest.er1
4368   cat conftest.err >&5
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } &&
4371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4372   { (case "(($ac_try" in
4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374   *) ac_try_echo=$ac_try;;
4375 esac
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377   (eval "$ac_try") 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }; } &&
4381          { ac_try='test -s conftest$ac_exeext'
4382   { (case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387   (eval "$ac_try") 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; }; then
4391   ac_cv_lib_dnet_dnet_ntoa=yes
4392 else
4393   echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4395
4396         ac_cv_lib_dnet_dnet_ntoa=no
4397 fi
4398
4399 rm -f core conftest.err conftest.$ac_objext \
4400       conftest$ac_exeext conftest.$ac_ext
4401 LIBS=$ac_check_lib_save_LIBS
4402 fi
4403 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4404 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4405 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4406   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4407 fi
4408
4409     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4410       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4411 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4412 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   ac_check_lib_save_LIBS=$LIBS
4416 LIBS="-ldnet_stub  $LIBS"
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h.  */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h.  */
4423
4424 /* Override any GCC internal prototype to avoid an error.
4425    Use char because int might match the return type of a GCC
4426    builtin and then its argument prototype would still apply.  */
4427 #ifdef __cplusplus
4428 extern "C"
4429 #endif
4430 char dnet_ntoa ();
4431 int
4432 main ()
4433 {
4434 return dnet_ntoa ();
4435   ;
4436   return 0;
4437 }
4438 _ACEOF
4439 rm -f conftest.$ac_objext conftest$ac_exeext
4440 if { (ac_try="$ac_link"
4441 case "(($ac_try" in
4442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443   *) ac_try_echo=$ac_try;;
4444 esac
4445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446   (eval "$ac_link") 2>conftest.er1
4447   ac_status=$?
4448   grep -v '^ *+' conftest.er1 >conftest.err
4449   rm -f conftest.er1
4450   cat conftest.err >&5
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); } &&
4453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4454   { (case "(($ac_try" in
4455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456   *) ac_try_echo=$ac_try;;
4457 esac
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459   (eval "$ac_try") 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }; } &&
4463          { ac_try='test -s conftest$ac_exeext'
4464   { (case "(($ac_try" in
4465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466   *) ac_try_echo=$ac_try;;
4467 esac
4468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469   (eval "$ac_try") 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; }; then
4473   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478         ac_cv_lib_dnet_stub_dnet_ntoa=no
4479 fi
4480
4481 rm -f core conftest.err conftest.$ac_objext \
4482       conftest$ac_exeext conftest.$ac_ext
4483 LIBS=$ac_check_lib_save_LIBS
4484 fi
4485 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4486 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4487 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4488   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4489 fi
4490
4491     fi
4492 fi
4493
4494 rm -f core conftest.err conftest.$ac_objext \
4495       conftest$ac_exeext conftest.$ac_ext
4496     LIBS="$ac_xsave_LIBS"
4497
4498     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4499     # to get the SysV transport functions.
4500     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4501     # needs -lnsl.
4502     # The nsl library prevents programs from opening the X display
4503     # on Irix 5.2, according to T.E. Dickey.
4504     # The functions gethostbyname, getservbyname, and inet_addr are
4505     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4506     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4507 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4508 if test "${ac_cv_func_gethostbyname+set}" = set; then
4509   echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511   cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h.  */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h.  */
4517 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4519 #define gethostbyname innocuous_gethostbyname
4520
4521 /* System header to define __stub macros and hopefully few prototypes,
4522     which can conflict with char gethostbyname (); below.
4523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4524     <limits.h> exists even on freestanding compilers.  */
4525
4526 #ifdef __STDC__
4527 # include <limits.h>
4528 #else
4529 # include <assert.h>
4530 #endif
4531
4532 #undef gethostbyname
4533
4534 /* Override any GCC internal prototype to avoid an error.
4535    Use char because int might match the return type of a GCC
4536    builtin and then its argument prototype would still apply.  */
4537 #ifdef __cplusplus
4538 extern "C"
4539 #endif
4540 char gethostbyname ();
4541 /* The GNU C library defines this for functions which it implements
4542     to always fail with ENOSYS.  Some functions are actually named
4543     something starting with __ and the normal name is an alias.  */
4544 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4545 choke me
4546 #endif
4547
4548 int
4549 main ()
4550 {
4551 return gethostbyname ();
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext conftest$ac_exeext
4557 if { (ac_try="$ac_link"
4558 case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563   (eval "$ac_link") 2>conftest.er1
4564   ac_status=$?
4565   grep -v '^ *+' conftest.er1 >conftest.err
4566   rm -f conftest.er1
4567   cat conftest.err >&5
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); } &&
4570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4571   { (case "(($ac_try" in
4572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573   *) ac_try_echo=$ac_try;;
4574 esac
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576   (eval "$ac_try") 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; } &&
4580          { ac_try='test -s conftest$ac_exeext'
4581   { (case "(($ac_try" in
4582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583   *) ac_try_echo=$ac_try;;
4584 esac
4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586   (eval "$ac_try") 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; }; then
4590   ac_cv_func_gethostbyname=yes
4591 else
4592   echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4594
4595         ac_cv_func_gethostbyname=no
4596 fi
4597
4598 rm -f core conftest.err conftest.$ac_objext \
4599       conftest$ac_exeext conftest.$ac_ext
4600 fi
4601 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4602 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4603
4604     if test $ac_cv_func_gethostbyname = no; then
4605       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4606 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4607 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   ac_check_lib_save_LIBS=$LIBS
4611 LIBS="-lnsl  $LIBS"
4612 cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h.  */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h.  */
4618
4619 /* Override any GCC internal prototype to avoid an error.
4620    Use char because int might match the return type of a GCC
4621    builtin and then its argument prototype would still apply.  */
4622 #ifdef __cplusplus
4623 extern "C"
4624 #endif
4625 char gethostbyname ();
4626 int
4627 main ()
4628 {
4629 return gethostbyname ();
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 rm -f conftest.$ac_objext conftest$ac_exeext
4635 if { (ac_try="$ac_link"
4636 case "(($ac_try" in
4637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638   *) ac_try_echo=$ac_try;;
4639 esac
4640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641   (eval "$ac_link") 2>conftest.er1
4642   ac_status=$?
4643   grep -v '^ *+' conftest.er1 >conftest.err
4644   rm -f conftest.er1
4645   cat conftest.err >&5
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } &&
4648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4649   { (case "(($ac_try" in
4650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651   *) ac_try_echo=$ac_try;;
4652 esac
4653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654   (eval "$ac_try") 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; } &&
4658          { ac_try='test -s conftest$ac_exeext'
4659   { (case "(($ac_try" in
4660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661   *) ac_try_echo=$ac_try;;
4662 esac
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664   (eval "$ac_try") 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; }; then
4668   ac_cv_lib_nsl_gethostbyname=yes
4669 else
4670   echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673         ac_cv_lib_nsl_gethostbyname=no
4674 fi
4675
4676 rm -f core conftest.err conftest.$ac_objext \
4677       conftest$ac_exeext conftest.$ac_ext
4678 LIBS=$ac_check_lib_save_LIBS
4679 fi
4680 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4681 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4682 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4683   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4684 fi
4685
4686       if test $ac_cv_lib_nsl_gethostbyname = no; then
4687         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4688 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4689 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4690   echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692   ac_check_lib_save_LIBS=$LIBS
4693 LIBS="-lbsd  $LIBS"
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h.  */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h.  */
4700
4701 /* Override any GCC internal prototype to avoid an error.
4702    Use char because int might match the return type of a GCC
4703    builtin and then its argument prototype would still apply.  */
4704 #ifdef __cplusplus
4705 extern "C"
4706 #endif
4707 char gethostbyname ();
4708 int
4709 main ()
4710 {
4711 return gethostbyname ();
4712   ;
4713   return 0;
4714 }
4715 _ACEOF
4716 rm -f conftest.$ac_objext conftest$ac_exeext
4717 if { (ac_try="$ac_link"
4718 case "(($ac_try" in
4719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720   *) ac_try_echo=$ac_try;;
4721 esac
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723   (eval "$ac_link") 2>conftest.er1
4724   ac_status=$?
4725   grep -v '^ *+' conftest.er1 >conftest.err
4726   rm -f conftest.er1
4727   cat conftest.err >&5
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); } &&
4730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4731   { (case "(($ac_try" in
4732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733   *) ac_try_echo=$ac_try;;
4734 esac
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736   (eval "$ac_try") 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); }; } &&
4740          { ac_try='test -s conftest$ac_exeext'
4741   { (case "(($ac_try" in
4742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743   *) ac_try_echo=$ac_try;;
4744 esac
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746   (eval "$ac_try") 2>&5
4747   ac_status=$?
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); }; }; then
4750   ac_cv_lib_bsd_gethostbyname=yes
4751 else
4752   echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4754
4755         ac_cv_lib_bsd_gethostbyname=no
4756 fi
4757
4758 rm -f core conftest.err conftest.$ac_objext \
4759       conftest$ac_exeext conftest.$ac_ext
4760 LIBS=$ac_check_lib_save_LIBS
4761 fi
4762 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4763 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4764 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4765   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4766 fi
4767
4768       fi
4769     fi
4770
4771     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4772     # socket/setsockopt and other routines are undefined under SCO ODT
4773     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4774     # on later versions), says Simon Leinen: it contains gethostby*
4775     # variants that don't use the name server (or something).  -lsocket
4776     # must be given before -lnsl if both are needed.  We assume that
4777     # if connect needs -lnsl, so does gethostbyname.
4778     { echo "$as_me:$LINENO: checking for connect" >&5
4779 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4780 if test "${ac_cv_func_connect+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h.  */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h.  */
4789 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4791 #define connect innocuous_connect
4792
4793 /* System header to define __stub macros and hopefully few prototypes,
4794     which can conflict with char connect (); below.
4795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4796     <limits.h> exists even on freestanding compilers.  */
4797
4798 #ifdef __STDC__
4799 # include <limits.h>
4800 #else
4801 # include <assert.h>
4802 #endif
4803
4804 #undef connect
4805
4806 /* Override any GCC internal prototype to avoid an error.
4807    Use char because int might match the return type of a GCC
4808    builtin and then its argument prototype would still apply.  */
4809 #ifdef __cplusplus
4810 extern "C"
4811 #endif
4812 char connect ();
4813 /* The GNU C library defines this for functions which it implements
4814     to always fail with ENOSYS.  Some functions are actually named
4815     something starting with __ and the normal name is an alias.  */
4816 #if defined __stub_connect || defined __stub___connect
4817 choke me
4818 #endif
4819
4820 int
4821 main ()
4822 {
4823 return connect ();
4824   ;
4825   return 0;
4826 }
4827 _ACEOF
4828 rm -f conftest.$ac_objext conftest$ac_exeext
4829 if { (ac_try="$ac_link"
4830 case "(($ac_try" in
4831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832   *) ac_try_echo=$ac_try;;
4833 esac
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835   (eval "$ac_link") 2>conftest.er1
4836   ac_status=$?
4837   grep -v '^ *+' conftest.er1 >conftest.err
4838   rm -f conftest.er1
4839   cat conftest.err >&5
4840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841   (exit $ac_status); } &&
4842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4843   { (case "(($ac_try" in
4844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845   *) ac_try_echo=$ac_try;;
4846 esac
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848   (eval "$ac_try") 2>&5
4849   ac_status=$?
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); }; } &&
4852          { ac_try='test -s conftest$ac_exeext'
4853   { (case "(($ac_try" in
4854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855   *) ac_try_echo=$ac_try;;
4856 esac
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858   (eval "$ac_try") 2>&5
4859   ac_status=$?
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); }; }; then
4862   ac_cv_func_connect=yes
4863 else
4864   echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4866
4867         ac_cv_func_connect=no
4868 fi
4869
4870 rm -f core conftest.err conftest.$ac_objext \
4871       conftest$ac_exeext conftest.$ac_ext
4872 fi
4873 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4874 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4875
4876     if test $ac_cv_func_connect = no; then
4877       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4878 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4879 if test "${ac_cv_lib_socket_connect+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   ac_check_lib_save_LIBS=$LIBS
4883 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h.  */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h.  */
4890
4891 /* Override any GCC internal prototype to avoid an error.
4892    Use char because int might match the return type of a GCC
4893    builtin and then its argument prototype would still apply.  */
4894 #ifdef __cplusplus
4895 extern "C"
4896 #endif
4897 char connect ();
4898 int
4899 main ()
4900 {
4901 return connect ();
4902   ;
4903   return 0;
4904 }
4905 _ACEOF
4906 rm -f conftest.$ac_objext conftest$ac_exeext
4907 if { (ac_try="$ac_link"
4908 case "(($ac_try" in
4909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910   *) ac_try_echo=$ac_try;;
4911 esac
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913   (eval "$ac_link") 2>conftest.er1
4914   ac_status=$?
4915   grep -v '^ *+' conftest.er1 >conftest.err
4916   rm -f conftest.er1
4917   cat conftest.err >&5
4918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919   (exit $ac_status); } &&
4920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4921   { (case "(($ac_try" in
4922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923   *) ac_try_echo=$ac_try;;
4924 esac
4925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926   (eval "$ac_try") 2>&5
4927   ac_status=$?
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); }; } &&
4930          { ac_try='test -s conftest$ac_exeext'
4931   { (case "(($ac_try" in
4932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933   *) ac_try_echo=$ac_try;;
4934 esac
4935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936   (eval "$ac_try") 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); }; }; then
4940   ac_cv_lib_socket_connect=yes
4941 else
4942   echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945         ac_cv_lib_socket_connect=no
4946 fi
4947
4948 rm -f core conftest.err conftest.$ac_objext \
4949       conftest$ac_exeext conftest.$ac_ext
4950 LIBS=$ac_check_lib_save_LIBS
4951 fi
4952 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4953 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4954 if test $ac_cv_lib_socket_connect = yes; then
4955   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4956 fi
4957
4958     fi
4959
4960     # Guillermo Gomez says -lposix is necessary on A/UX.
4961     { echo "$as_me:$LINENO: checking for remove" >&5
4962 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4963 if test "${ac_cv_func_remove+set}" = set; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966   cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h.  */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h.  */
4972 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4974 #define remove innocuous_remove
4975
4976 /* System header to define __stub macros and hopefully few prototypes,
4977     which can conflict with char remove (); below.
4978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4979     <limits.h> exists even on freestanding compilers.  */
4980
4981 #ifdef __STDC__
4982 # include <limits.h>
4983 #else
4984 # include <assert.h>
4985 #endif
4986
4987 #undef remove
4988
4989 /* Override any GCC internal prototype to avoid an error.
4990    Use char because int might match the return type of a GCC
4991    builtin and then its argument prototype would still apply.  */
4992 #ifdef __cplusplus
4993 extern "C"
4994 #endif
4995 char remove ();
4996 /* The GNU C library defines this for functions which it implements
4997     to always fail with ENOSYS.  Some functions are actually named
4998     something starting with __ and the normal name is an alias.  */
4999 #if defined __stub_remove || defined __stub___remove
5000 choke me
5001 #endif
5002
5003 int
5004 main ()
5005 {
5006 return remove ();
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 rm -f conftest.$ac_objext conftest$ac_exeext
5012 if { (ac_try="$ac_link"
5013 case "(($ac_try" in
5014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015   *) ac_try_echo=$ac_try;;
5016 esac
5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018   (eval "$ac_link") 2>conftest.er1
5019   ac_status=$?
5020   grep -v '^ *+' conftest.er1 >conftest.err
5021   rm -f conftest.er1
5022   cat conftest.err >&5
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); } &&
5025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5026   { (case "(($ac_try" in
5027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028   *) ac_try_echo=$ac_try;;
5029 esac
5030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031   (eval "$ac_try") 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; } &&
5035          { ac_try='test -s conftest$ac_exeext'
5036   { (case "(($ac_try" in
5037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038   *) ac_try_echo=$ac_try;;
5039 esac
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041   (eval "$ac_try") 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }; }; then
5045   ac_cv_func_remove=yes
5046 else
5047   echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050         ac_cv_func_remove=no
5051 fi
5052
5053 rm -f core conftest.err conftest.$ac_objext \
5054       conftest$ac_exeext conftest.$ac_ext
5055 fi
5056 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5057 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5058
5059     if test $ac_cv_func_remove = no; then
5060       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5061 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5062 if test "${ac_cv_lib_posix_remove+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   ac_check_lib_save_LIBS=$LIBS
5066 LIBS="-lposix  $LIBS"
5067 cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073
5074 /* Override any GCC internal prototype to avoid an error.
5075    Use char because int might match the return type of a GCC
5076    builtin and then its argument prototype would still apply.  */
5077 #ifdef __cplusplus
5078 extern "C"
5079 #endif
5080 char remove ();
5081 int
5082 main ()
5083 {
5084 return remove ();
5085   ;
5086   return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext conftest$ac_exeext
5090 if { (ac_try="$ac_link"
5091 case "(($ac_try" in
5092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093   *) ac_try_echo=$ac_try;;
5094 esac
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096   (eval "$ac_link") 2>conftest.er1
5097   ac_status=$?
5098   grep -v '^ *+' conftest.er1 >conftest.err
5099   rm -f conftest.er1
5100   cat conftest.err >&5
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } &&
5103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5104   { (case "(($ac_try" in
5105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106   *) ac_try_echo=$ac_try;;
5107 esac
5108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109   (eval "$ac_try") 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; } &&
5113          { ac_try='test -s conftest$ac_exeext'
5114   { (case "(($ac_try" in
5115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116   *) ac_try_echo=$ac_try;;
5117 esac
5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119   (eval "$ac_try") 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; }; then
5123   ac_cv_lib_posix_remove=yes
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128         ac_cv_lib_posix_remove=no
5129 fi
5130
5131 rm -f core conftest.err conftest.$ac_objext \
5132       conftest$ac_exeext conftest.$ac_ext
5133 LIBS=$ac_check_lib_save_LIBS
5134 fi
5135 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5136 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5137 if test $ac_cv_lib_posix_remove = yes; then
5138   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5139 fi
5140
5141     fi
5142
5143     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5144     { echo "$as_me:$LINENO: checking for shmat" >&5
5145 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5146 if test "${ac_cv_func_shmat+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h.  */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h.  */
5155 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5157 #define shmat innocuous_shmat
5158
5159 /* System header to define __stub macros and hopefully few prototypes,
5160     which can conflict with char shmat (); below.
5161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162     <limits.h> exists even on freestanding compilers.  */
5163
5164 #ifdef __STDC__
5165 # include <limits.h>
5166 #else
5167 # include <assert.h>
5168 #endif
5169
5170 #undef shmat
5171
5172 /* Override any GCC internal prototype to avoid an error.
5173    Use char because int might match the return type of a GCC
5174    builtin and then its argument prototype would still apply.  */
5175 #ifdef __cplusplus
5176 extern "C"
5177 #endif
5178 char shmat ();
5179 /* The GNU C library defines this for functions which it implements
5180     to always fail with ENOSYS.  Some functions are actually named
5181     something starting with __ and the normal name is an alias.  */
5182 #if defined __stub_shmat || defined __stub___shmat
5183 choke me
5184 #endif
5185
5186 int
5187 main ()
5188 {
5189 return shmat ();
5190   ;
5191   return 0;
5192 }
5193 _ACEOF
5194 rm -f conftest.$ac_objext conftest$ac_exeext
5195 if { (ac_try="$ac_link"
5196 case "(($ac_try" in
5197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198   *) ac_try_echo=$ac_try;;
5199 esac
5200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5201   (eval "$ac_link") 2>conftest.er1
5202   ac_status=$?
5203   grep -v '^ *+' conftest.er1 >conftest.err
5204   rm -f conftest.er1
5205   cat conftest.err >&5
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); } &&
5208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5209   { (case "(($ac_try" in
5210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211   *) ac_try_echo=$ac_try;;
5212 esac
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214   (eval "$ac_try") 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; } &&
5218          { ac_try='test -s conftest$ac_exeext'
5219   { (case "(($ac_try" in
5220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221   *) ac_try_echo=$ac_try;;
5222 esac
5223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224   (eval "$ac_try") 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; }; then
5228   ac_cv_func_shmat=yes
5229 else
5230   echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5232
5233         ac_cv_func_shmat=no
5234 fi
5235
5236 rm -f core conftest.err conftest.$ac_objext \
5237       conftest$ac_exeext conftest.$ac_ext
5238 fi
5239 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5240 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5241
5242     if test $ac_cv_func_shmat = no; then
5243       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5244 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5245 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   ac_check_lib_save_LIBS=$LIBS
5249 LIBS="-lipc  $LIBS"
5250 cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h.  */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h.  */
5256
5257 /* Override any GCC internal prototype to avoid an error.
5258    Use char because int might match the return type of a GCC
5259    builtin and then its argument prototype would still apply.  */
5260 #ifdef __cplusplus
5261 extern "C"
5262 #endif
5263 char shmat ();
5264 int
5265 main ()
5266 {
5267 return shmat ();
5268   ;
5269   return 0;
5270 }
5271 _ACEOF
5272 rm -f conftest.$ac_objext conftest$ac_exeext
5273 if { (ac_try="$ac_link"
5274 case "(($ac_try" in
5275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276   *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279   (eval "$ac_link") 2>conftest.er1
5280   ac_status=$?
5281   grep -v '^ *+' conftest.er1 >conftest.err
5282   rm -f conftest.er1
5283   cat conftest.err >&5
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); } &&
5286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5287   { (case "(($ac_try" in
5288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289   *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292   (eval "$ac_try") 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }; } &&
5296          { ac_try='test -s conftest$ac_exeext'
5297   { (case "(($ac_try" in
5298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299   *) ac_try_echo=$ac_try;;
5300 esac
5301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302   (eval "$ac_try") 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }; }; then
5306   ac_cv_lib_ipc_shmat=yes
5307 else
5308   echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5310
5311         ac_cv_lib_ipc_shmat=no
5312 fi
5313
5314 rm -f core conftest.err conftest.$ac_objext \
5315       conftest$ac_exeext conftest.$ac_ext
5316 LIBS=$ac_check_lib_save_LIBS
5317 fi
5318 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5319 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5320 if test $ac_cv_lib_ipc_shmat = yes; then
5321   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5322 fi
5323
5324     fi
5325   fi
5326
5327   # Check for libraries that X11R6 Xt/Xaw programs need.
5328   ac_save_LDFLAGS=$LDFLAGS
5329   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5330   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5331   # check for ICE first), but we must link in the order -lSM -lICE or
5332   # we get undefined symbols.  So assume we have SM if we have ICE.
5333   # These have to be linked with before -lX11, unlike the other
5334   # libraries we check for below, so use a different variable.
5335   # John Interrante, Karl Berry
5336   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5337 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5338 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5339   echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341   ac_check_lib_save_LIBS=$LIBS
5342 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h.  */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h.  */
5349
5350 /* Override any GCC internal prototype to avoid an error.
5351    Use char because int might match the return type of a GCC
5352    builtin and then its argument prototype would still apply.  */
5353 #ifdef __cplusplus
5354 extern "C"
5355 #endif
5356 char IceConnectionNumber ();
5357 int
5358 main ()
5359 {
5360 return IceConnectionNumber ();
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.$ac_objext conftest$ac_exeext
5366 if { (ac_try="$ac_link"
5367 case "(($ac_try" in
5368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369   *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372   (eval "$ac_link") 2>conftest.er1
5373   ac_status=$?
5374   grep -v '^ *+' conftest.er1 >conftest.err
5375   rm -f conftest.er1
5376   cat conftest.err >&5
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); } &&
5379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5380   { (case "(($ac_try" in
5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382   *) ac_try_echo=$ac_try;;
5383 esac
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385   (eval "$ac_try") 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); }; } &&
5389          { ac_try='test -s conftest$ac_exeext'
5390   { (case "(($ac_try" in
5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392   *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395   (eval "$ac_try") 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; }; then
5399   ac_cv_lib_ICE_IceConnectionNumber=yes
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404         ac_cv_lib_ICE_IceConnectionNumber=no
5405 fi
5406
5407 rm -f core conftest.err conftest.$ac_objext \
5408       conftest$ac_exeext conftest.$ac_ext
5409 LIBS=$ac_check_lib_save_LIBS
5410 fi
5411 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5412 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5413 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5414   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5415 fi
5416
5417   LDFLAGS=$ac_save_LDFLAGS
5418
5419 fi
5420
5421 for ac_prog in flex lex
5422 do
5423   # Extract the first word of "$ac_prog", so it can be a program name with args.
5424 set dummy $ac_prog; ac_word=$2
5425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5427 if test "${ac_cv_prog_LEX+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   if test -n "$LEX"; then
5431   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438   for ac_exec_ext in '' $ac_executable_extensions; do
5439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5440     ac_cv_prog_LEX="$ac_prog"
5441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445 done
5446 IFS=$as_save_IFS
5447
5448 fi
5449 fi
5450 LEX=$ac_cv_prog_LEX
5451 if test -n "$LEX"; then
5452   { echo "$as_me:$LINENO: result: $LEX" >&5
5453 echo "${ECHO_T}$LEX" >&6; }
5454 else
5455   { echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6; }
5457 fi
5458
5459
5460   test -n "$LEX" && break
5461 done
5462 test -n "$LEX" || LEX=":"
5463
5464 if test -z "$LEXLIB"
5465 then
5466   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5467 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
5468 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   ac_check_lib_save_LIBS=$LIBS
5472 LIBS="-lfl  $LIBS"
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h.  */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h.  */
5479
5480 /* Override any GCC internal prototype to avoid an error.
5481    Use char because int might match the return type of a GCC
5482    builtin and then its argument prototype would still apply.  */
5483 #ifdef __cplusplus
5484 extern "C"
5485 #endif
5486 char yywrap ();
5487 int
5488 main ()
5489 {
5490 return yywrap ();
5491   ;
5492   return 0;
5493 }
5494 _ACEOF
5495 rm -f conftest.$ac_objext conftest$ac_exeext
5496 if { (ac_try="$ac_link"
5497 case "(($ac_try" in
5498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499   *) ac_try_echo=$ac_try;;
5500 esac
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502   (eval "$ac_link") 2>conftest.er1
5503   ac_status=$?
5504   grep -v '^ *+' conftest.er1 >conftest.err
5505   rm -f conftest.er1
5506   cat conftest.err >&5
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); } &&
5509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5510   { (case "(($ac_try" in
5511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512   *) ac_try_echo=$ac_try;;
5513 esac
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515   (eval "$ac_try") 2>&5
5516   ac_status=$?
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); }; } &&
5519          { ac_try='test -s conftest$ac_exeext'
5520   { (case "(($ac_try" in
5521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522   *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525   (eval "$ac_try") 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; }; then
5529   ac_cv_lib_fl_yywrap=yes
5530 else
5531   echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5533
5534         ac_cv_lib_fl_yywrap=no
5535 fi
5536
5537 rm -f core conftest.err conftest.$ac_objext \
5538       conftest$ac_exeext conftest.$ac_ext
5539 LIBS=$ac_check_lib_save_LIBS
5540 fi
5541 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5542 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
5543 if test $ac_cv_lib_fl_yywrap = yes; then
5544   LEXLIB="-lfl"
5545 else
5546   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5547 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
5548 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   ac_check_lib_save_LIBS=$LIBS
5552 LIBS="-ll  $LIBS"
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5559
5560 /* Override any GCC internal prototype to avoid an error.
5561    Use char because int might match the return type of a GCC
5562    builtin and then its argument prototype would still apply.  */
5563 #ifdef __cplusplus
5564 extern "C"
5565 #endif
5566 char yywrap ();
5567 int
5568 main ()
5569 {
5570 return yywrap ();
5571   ;
5572   return 0;
5573 }
5574 _ACEOF
5575 rm -f conftest.$ac_objext conftest$ac_exeext
5576 if { (ac_try="$ac_link"
5577 case "(($ac_try" in
5578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579   *) ac_try_echo=$ac_try;;
5580 esac
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582   (eval "$ac_link") 2>conftest.er1
5583   ac_status=$?
5584   grep -v '^ *+' conftest.er1 >conftest.err
5585   rm -f conftest.er1
5586   cat conftest.err >&5
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); } &&
5589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5590   { (case "(($ac_try" in
5591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592   *) ac_try_echo=$ac_try;;
5593 esac
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595   (eval "$ac_try") 2>&5
5596   ac_status=$?
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); }; } &&
5599          { ac_try='test -s conftest$ac_exeext'
5600   { (case "(($ac_try" in
5601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602   *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605   (eval "$ac_try") 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); }; }; then
5609   ac_cv_lib_l_yywrap=yes
5610 else
5611   echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5613
5614         ac_cv_lib_l_yywrap=no
5615 fi
5616
5617 rm -f core conftest.err conftest.$ac_objext \
5618       conftest$ac_exeext conftest.$ac_ext
5619 LIBS=$ac_check_lib_save_LIBS
5620 fi
5621 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5622 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
5623 if test $ac_cv_lib_l_yywrap = yes; then
5624   LEXLIB="-ll"
5625 fi
5626
5627 fi
5628
5629 fi
5630
5631 if test "x$LEX" != "x:"; then
5632   { echo "$as_me:$LINENO: checking lex output file root" >&5
5633 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5634 if test "${ac_cv_prog_lex_root+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   # The minimal lex program is just a single line: %%.  But some broken lexes
5638 # (Solaris, I think it was) want two %% lines, so accommodate them.
5639 cat >conftest.l <<_ACEOF
5640 %%
5641 %%
5642 _ACEOF
5643 { (ac_try="$LEX conftest.l"
5644 case "(($ac_try" in
5645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646   *) ac_try_echo=$ac_try;;
5647 esac
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649   (eval "$LEX conftest.l") 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }
5653 if test -f lex.yy.c; then
5654   ac_cv_prog_lex_root=lex.yy
5655 elif test -f lexyy.c; then
5656   ac_cv_prog_lex_root=lexyy
5657 else
5658   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5659 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5660    { (exit 1); exit 1; }; }
5661 fi
5662 fi
5663 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5664 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5665 rm -f conftest.l
5666 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5667
5668 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5669 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5670 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   # POSIX says lex can declare yytext either as a pointer or an array; the
5674 # default is implementation-dependent. Figure out which it is, since
5675 # not all implementations provide the %pointer and %array declarations.
5676 ac_cv_prog_lex_yytext_pointer=no
5677 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5678 ac_save_LIBS=$LIBS
5679 LIBS="$LIBS $LEXLIB"
5680 cat >conftest.$ac_ext <<_ACEOF
5681 `cat $LEX_OUTPUT_ROOT.c`
5682 _ACEOF
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (ac_try="$ac_link"
5685 case "(($ac_try" in
5686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687   *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690   (eval "$ac_link") 2>conftest.er1
5691   ac_status=$?
5692   grep -v '^ *+' conftest.er1 >conftest.err
5693   rm -f conftest.er1
5694   cat conftest.err >&5
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); } &&
5697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5698   { (case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_try") 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }; } &&
5707          { ac_try='test -s conftest$ac_exeext'
5708   { (case "(($ac_try" in
5709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710   *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713   (eval "$ac_try") 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; }; then
5717   ac_cv_prog_lex_yytext_pointer=yes
5718 else
5719   echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5721
5722
5723 fi
5724
5725 rm -f core conftest.err conftest.$ac_objext \
5726       conftest$ac_exeext conftest.$ac_ext
5727 LIBS=$ac_save_LIBS
5728 rm -f "${LEX_OUTPUT_ROOT}.c"
5729
5730 fi
5731 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5732 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5733 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5734
5735 cat >>confdefs.h <<\_ACEOF
5736 #define YYTEXT_POINTER 1
5737 _ACEOF
5738
5739 fi
5740
5741 fi
5742
5743 for ac_prog in $LEX flex lex
5744 do
5745   # Extract the first word of "$ac_prog", so it can be a program name with args.
5746 set dummy $ac_prog; ac_word=$2
5747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749 if test "${ac_cv_prog_XLEX+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -n "$XLEX"; then
5753   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758   IFS=$as_save_IFS
5759   test -z "$as_dir" && as_dir=.
5760   for ac_exec_ext in '' $ac_executable_extensions; do
5761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5762     ac_cv_prog_XLEX="$ac_prog"
5763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765   fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 XLEX=$ac_cv_prog_XLEX
5773 if test -n "$XLEX"; then
5774   { echo "$as_me:$LINENO: result: $XLEX" >&5
5775 echo "${ECHO_T}$XLEX" >&6; }
5776 else
5777   { echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6; }
5779 fi
5780
5781
5782   test -n "$XLEX" && break
5783 done
5784 test -n "$XLEX" || XLEX="none"
5785
5786 if test "$XLEX" = "none"
5787 then
5788   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5789 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5790    { (exit 1); exit 1; }; }
5791 fi
5792
5793 for ac_prog in bison
5794 do
5795   # Extract the first word of "$ac_prog", so it can be a program name with args.
5796 set dummy $ac_prog; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_prog_BISON+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   if test -n "$BISON"; then
5803   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810   for ac_exec_ext in '' $ac_executable_extensions; do
5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5812     ac_cv_prog_BISON="$ac_prog"
5813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817 done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 BISON=$ac_cv_prog_BISON
5823 if test -n "$BISON"; then
5824   { echo "$as_me:$LINENO: result: $BISON" >&5
5825 echo "${ECHO_T}$BISON" >&6; }
5826 else
5827   { echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6; }
5829 fi
5830
5831
5832   test -n "$BISON" && break
5833 done
5834 test -n "$BISON" || BISON="none"
5835
5836 if test "$BISON" = "none"
5837 then
5838   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5839 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5840    { (exit 1); exit 1; }; }
5841 fi
5842
5843 if test -n "$ac_tool_prefix"; then
5844   for ac_prog in gas as
5845   do
5846     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5850 if test "${ac_cv_prog_AS+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   if test -n "$AS"; then
5854   ac_cv_prog_AS="$AS" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861   for ac_exec_ext in '' $ac_executable_extensions; do
5862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5863     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865     break 2
5866   fi
5867 done
5868 done
5869 IFS=$as_save_IFS
5870
5871 fi
5872 fi
5873 AS=$ac_cv_prog_AS
5874 if test -n "$AS"; then
5875   { echo "$as_me:$LINENO: result: $AS" >&5
5876 echo "${ECHO_T}$AS" >&6; }
5877 else
5878   { echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6; }
5880 fi
5881
5882
5883     test -n "$AS" && break
5884   done
5885 fi
5886 if test -z "$AS"; then
5887   ac_ct_AS=$AS
5888   for ac_prog in gas as
5889 do
5890   # Extract the first word of "$ac_prog", so it can be a program name with args.
5891 set dummy $ac_prog; ac_word=$2
5892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5894 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   if test -n "$ac_ct_AS"; then
5898   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905   for ac_exec_ext in '' $ac_executable_extensions; do
5906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5907     ac_cv_prog_ac_ct_AS="$ac_prog"
5908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912 done
5913 IFS=$as_save_IFS
5914
5915 fi
5916 fi
5917 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5918 if test -n "$ac_ct_AS"; then
5919   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5920 echo "${ECHO_T}$ac_ct_AS" >&6; }
5921 else
5922   { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5924 fi
5925
5926
5927   test -n "$ac_ct_AS" && break
5928 done
5929
5930   if test "x$ac_ct_AS" = x; then
5931     AS="as"
5932   else
5933     case $cross_compiling:$ac_tool_warned in
5934 yes:)
5935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5936 whose name does not start with the host triplet.  If you think this
5937 configuration is useful to you, please write to autoconf@gnu.org." >&5
5938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5939 whose name does not start with the host triplet.  If you think this
5940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5941 ac_tool_warned=yes ;;
5942 esac
5943     AS=$ac_ct_AS
5944   fi
5945 fi
5946
5947 if test -n "$ac_tool_prefix"; then
5948   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5949 set dummy ${ac_tool_prefix}ld; ac_word=$2
5950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5952 if test "${ac_cv_prog_LD+set}" = set; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   if test -n "$LD"; then
5956   ac_cv_prog_LD="$LD" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963   for ac_exec_ext in '' $ac_executable_extensions; do
5964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5965     ac_cv_prog_LD="${ac_tool_prefix}ld"
5966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967     break 2
5968   fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973 fi
5974 fi
5975 LD=$ac_cv_prog_LD
5976 if test -n "$LD"; then
5977   { echo "$as_me:$LINENO: result: $LD" >&5
5978 echo "${ECHO_T}$LD" >&6; }
5979 else
5980   { echo "$as_me:$LINENO: result: no" >&5
5981 echo "${ECHO_T}no" >&6; }
5982 fi
5983
5984
5985 fi
5986 if test -z "$ac_cv_prog_LD"; then
5987   ac_ct_LD=$LD
5988   # Extract the first word of "ld", so it can be a program name with args.
5989 set dummy ld; ac_word=$2
5990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5992 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   if test -n "$ac_ct_LD"; then
5996   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003   for ac_exec_ext in '' $ac_executable_extensions; do
6004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6005     ac_cv_prog_ac_ct_LD="ld"
6006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007     break 2
6008   fi
6009 done
6010 done
6011 IFS=$as_save_IFS
6012
6013 fi
6014 fi
6015 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6016 if test -n "$ac_ct_LD"; then
6017   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6018 echo "${ECHO_T}$ac_ct_LD" >&6; }
6019 else
6020   { echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6; }
6022 fi
6023
6024   if test "x$ac_ct_LD" = x; then
6025     LD="ld"
6026   else
6027     case $cross_compiling:$ac_tool_warned in
6028 yes:)
6029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6030 whose name does not start with the host triplet.  If you think this
6031 configuration is useful to you, please write to autoconf@gnu.org." >&5
6032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6033 whose name does not start with the host triplet.  If you think this
6034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6035 ac_tool_warned=yes ;;
6036 esac
6037     LD=$ac_ct_LD
6038   fi
6039 else
6040   LD="$ac_cv_prog_LD"
6041 fi
6042
6043 if test -n "$ac_tool_prefix"; then
6044   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6045 set dummy ${ac_tool_prefix}ar; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048 if test "${ac_cv_prog_AR+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   if test -n "$AR"; then
6052   ac_cv_prog_AR="$AR" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057   IFS=$as_save_IFS
6058   test -z "$as_dir" && as_dir=.
6059   for ac_exec_ext in '' $ac_executable_extensions; do
6060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6061     ac_cv_prog_AR="${ac_tool_prefix}ar"
6062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063     break 2
6064   fi
6065 done
6066 done
6067 IFS=$as_save_IFS
6068
6069 fi
6070 fi
6071 AR=$ac_cv_prog_AR
6072 if test -n "$AR"; then
6073   { echo "$as_me:$LINENO: result: $AR" >&5
6074 echo "${ECHO_T}$AR" >&6; }
6075 else
6076   { echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6; }
6078 fi
6079
6080
6081 fi
6082 if test -z "$ac_cv_prog_AR"; then
6083   ac_ct_AR=$AR
6084   # Extract the first word of "ar", so it can be a program name with args.
6085 set dummy ar; ac_word=$2
6086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6089   echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091   if test -n "$ac_ct_AR"; then
6092   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6093 else
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097   IFS=$as_save_IFS
6098   test -z "$as_dir" && as_dir=.
6099   for ac_exec_ext in '' $ac_executable_extensions; do
6100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6101     ac_cv_prog_ac_ct_AR="ar"
6102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6103     break 2
6104   fi
6105 done
6106 done
6107 IFS=$as_save_IFS
6108
6109 fi
6110 fi
6111 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6112 if test -n "$ac_ct_AR"; then
6113   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6114 echo "${ECHO_T}$ac_ct_AR" >&6; }
6115 else
6116   { echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6; }
6118 fi
6119
6120   if test "x$ac_ct_AR" = x; then
6121     AR="ar"
6122   else
6123     case $cross_compiling:$ac_tool_warned in
6124 yes:)
6125 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6126 whose name does not start with the host triplet.  If you think this
6127 configuration is useful to you, please write to autoconf@gnu.org." >&5
6128 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6129 whose name does not start with the host triplet.  If you think this
6130 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6131 ac_tool_warned=yes ;;
6132 esac
6133     AR=$ac_ct_AR
6134   fi
6135 else
6136   AR="$ac_cv_prog_AR"
6137 fi
6138
6139 if test -n "$ac_tool_prefix"; then
6140   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6144 if test "${ac_cv_prog_RANLIB+set}" = set; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147   if test -n "$RANLIB"; then
6148   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153   IFS=$as_save_IFS
6154   test -z "$as_dir" && as_dir=.
6155   for ac_exec_ext in '' $ac_executable_extensions; do
6156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6157     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159     break 2
6160   fi
6161 done
6162 done
6163 IFS=$as_save_IFS
6164
6165 fi
6166 fi
6167 RANLIB=$ac_cv_prog_RANLIB
6168 if test -n "$RANLIB"; then
6169   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6170 echo "${ECHO_T}$RANLIB" >&6; }
6171 else
6172   { echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6; }
6174 fi
6175
6176
6177 fi
6178 if test -z "$ac_cv_prog_RANLIB"; then
6179   ac_ct_RANLIB=$RANLIB
6180   # Extract the first word of "ranlib", so it can be a program name with args.
6181 set dummy ranlib; ac_word=$2
6182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187   if test -n "$ac_ct_RANLIB"; then
6188   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195   for ac_exec_ext in '' $ac_executable_extensions; do
6196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197     ac_cv_prog_ac_ct_RANLIB="ranlib"
6198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199     break 2
6200   fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6208 if test -n "$ac_ct_RANLIB"; then
6209   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6210 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6211 else
6212   { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6214 fi
6215
6216   if test "x$ac_ct_RANLIB" = x; then
6217     RANLIB=":"
6218   else
6219     case $cross_compiling:$ac_tool_warned in
6220 yes:)
6221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet.  If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&5
6224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6225 whose name does not start with the host triplet.  If you think this
6226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6227 ac_tool_warned=yes ;;
6228 esac
6229     RANLIB=$ac_ct_RANLIB
6230   fi
6231 else
6232   RANLIB="$ac_cv_prog_RANLIB"
6233 fi
6234
6235 if test -n "$ac_tool_prefix"; then
6236   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6237 set dummy ${ac_tool_prefix}strip; ac_word=$2
6238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6240 if test "${ac_cv_prog_STRIP+set}" = set; then
6241   echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243   if test -n "$STRIP"; then
6244   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251   for ac_exec_ext in '' $ac_executable_extensions; do
6252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6253     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 STRIP=$ac_cv_prog_STRIP
6264 if test -n "$STRIP"; then
6265   { echo "$as_me:$LINENO: result: $STRIP" >&5
6266 echo "${ECHO_T}$STRIP" >&6; }
6267 else
6268   { echo "$as_me:$LINENO: result: no" >&5
6269 echo "${ECHO_T}no" >&6; }
6270 fi
6271
6272
6273 fi
6274 if test -z "$ac_cv_prog_STRIP"; then
6275   ac_ct_STRIP=$STRIP
6276   # Extract the first word of "strip", so it can be a program name with args.
6277 set dummy strip; ac_word=$2
6278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6280 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6281   echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283   if test -n "$ac_ct_STRIP"; then
6284   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6285 else
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6288 do
6289   IFS=$as_save_IFS
6290   test -z "$as_dir" && as_dir=.
6291   for ac_exec_ext in '' $ac_executable_extensions; do
6292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6293     ac_cv_prog_ac_ct_STRIP="strip"
6294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295     break 2
6296   fi
6297 done
6298 done
6299 IFS=$as_save_IFS
6300
6301 fi
6302 fi
6303 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6304 if test -n "$ac_ct_STRIP"; then
6305   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6306 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6307 else
6308   { echo "$as_me:$LINENO: result: no" >&5
6309 echo "${ECHO_T}no" >&6; }
6310 fi
6311
6312   if test "x$ac_ct_STRIP" = x; then
6313     STRIP="strip"
6314   else
6315     case $cross_compiling:$ac_tool_warned in
6316 yes:)
6317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6318 whose name does not start with the host triplet.  If you think this
6319 configuration is useful to you, please write to autoconf@gnu.org." >&5
6320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6321 whose name does not start with the host triplet.  If you think this
6322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6323 ac_tool_warned=yes ;;
6324 esac
6325     STRIP=$ac_ct_STRIP
6326   fi
6327 else
6328   STRIP="$ac_cv_prog_STRIP"
6329 fi
6330
6331 if test -n "$ac_tool_prefix"; then
6332   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}windres; ac_word=$2
6334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_WINDRES+set}" = set; then
6337   echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339   if test -n "$WINDRES"; then
6340   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345   IFS=$as_save_IFS
6346   test -z "$as_dir" && as_dir=.
6347   for ac_exec_ext in '' $ac_executable_extensions; do
6348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6349     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351     break 2
6352   fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 WINDRES=$ac_cv_prog_WINDRES
6360 if test -n "$WINDRES"; then
6361   { echo "$as_me:$LINENO: result: $WINDRES" >&5
6362 echo "${ECHO_T}$WINDRES" >&6; }
6363 else
6364   { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6366 fi
6367
6368
6369 fi
6370 if test -z "$ac_cv_prog_WINDRES"; then
6371   ac_ct_WINDRES=$WINDRES
6372   # Extract the first word of "windres", so it can be a program name with args.
6373 set dummy windres; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379   if test -n "$ac_ct_WINDRES"; then
6380   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385   IFS=$as_save_IFS
6386   test -z "$as_dir" && as_dir=.
6387   for ac_exec_ext in '' $ac_executable_extensions; do
6388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6389     ac_cv_prog_ac_ct_WINDRES="windres"
6390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391     break 2
6392   fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6400 if test -n "$ac_ct_WINDRES"; then
6401   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6402 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6403 else
6404   { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6406 fi
6407
6408   if test "x$ac_ct_WINDRES" = x; then
6409     WINDRES="false"
6410   else
6411     case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6414 whose name does not start with the host triplet.  If you think this
6415 configuration is useful to you, please write to autoconf@gnu.org." >&5
6416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6417 whose name does not start with the host triplet.  If you think this
6418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421     WINDRES=$ac_ct_WINDRES
6422   fi
6423 else
6424   WINDRES="$ac_cv_prog_WINDRES"
6425 fi
6426
6427 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6428 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6429 LN_S=$as_ln_s
6430 if test "$LN_S" = "ln -s"; then
6431   { echo "$as_me:$LINENO: result: yes" >&5
6432 echo "${ECHO_T}yes" >&6; }
6433 else
6434   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6435 echo "${ECHO_T}no, using $LN_S" >&6; }
6436 fi
6437
6438 { echo "$as_me:$LINENO: checking whether ln works" >&5
6439 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
6440 rm -f conf$$ conf$$.file
6441 echo >conf$$.file
6442 if ln conf$$.file conf$$ 2>/dev/null; then
6443   LN=ln
6444
6445   { echo "$as_me:$LINENO: result: yes" >&5
6446 echo "${ECHO_T}yes" >&6; }
6447 else
6448   LN="cp -p"
6449
6450   { echo "$as_me:$LINENO: result: no, using $LN" >&5
6451 echo "${ECHO_T}no, using $LN" >&6; }
6452 fi
6453 rm -f conf$$ conf$$.file
6454 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6455 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6456 if test "${ac_cv_path_GREP+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   # Extract the first word of "grep ggrep" to use in msg output
6460 if test -z "$GREP"; then
6461 set dummy grep ggrep; ac_prog_name=$2
6462 if test "${ac_cv_path_GREP+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   ac_path_GREP_found=false
6466 # Loop through the user's path and test for each of PROGNAME-LIST
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6469 do
6470   IFS=$as_save_IFS
6471   test -z "$as_dir" && as_dir=.
6472   for ac_prog in grep ggrep; do
6473   for ac_exec_ext in '' $ac_executable_extensions; do
6474     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6475     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6476     # Check for GNU ac_path_GREP and select it if it is found.
6477   # Check for GNU $ac_path_GREP
6478 case `"$ac_path_GREP" --version 2>&1` in
6479 *GNU*)
6480   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6481 *)
6482   ac_count=0
6483   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6484   while :
6485   do
6486     cat "conftest.in" "conftest.in" >"conftest.tmp"
6487     mv "conftest.tmp" "conftest.in"
6488     cp "conftest.in" "conftest.nl"
6489     echo 'GREP' >> "conftest.nl"
6490     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6491     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6492     ac_count=`expr $ac_count + 1`
6493     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6494       # Best one so far, save it but keep looking for a better one
6495       ac_cv_path_GREP="$ac_path_GREP"
6496       ac_path_GREP_max=$ac_count
6497     fi
6498     # 10*(2^10) chars as input seems more than enough
6499     test $ac_count -gt 10 && break
6500   done
6501   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6502 esac
6503
6504
6505     $ac_path_GREP_found && break 3
6506   done
6507 done
6508
6509 done
6510 IFS=$as_save_IFS
6511
6512
6513 fi
6514
6515 GREP="$ac_cv_path_GREP"
6516 if test -z "$GREP"; then
6517   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6518 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6519    { (exit 1); exit 1; }; }
6520 fi
6521
6522 else
6523   ac_cv_path_GREP=$GREP
6524 fi
6525
6526
6527 fi
6528 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6529 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6530  GREP="$ac_cv_path_GREP"
6531
6532
6533 { echo "$as_me:$LINENO: checking for egrep" >&5
6534 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6535 if test "${ac_cv_path_EGREP+set}" = set; then
6536   echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6539    then ac_cv_path_EGREP="$GREP -E"
6540    else
6541      # Extract the first word of "egrep" to use in msg output
6542 if test -z "$EGREP"; then
6543 set dummy egrep; ac_prog_name=$2
6544 if test "${ac_cv_path_EGREP+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   ac_path_EGREP_found=false
6548 # Loop through the user's path and test for each of PROGNAME-LIST
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6551 do
6552   IFS=$as_save_IFS
6553   test -z "$as_dir" && as_dir=.
6554   for ac_prog in egrep; do
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6557     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6558     # Check for GNU ac_path_EGREP and select it if it is found.
6559   # Check for GNU $ac_path_EGREP
6560 case `"$ac_path_EGREP" --version 2>&1` in
6561 *GNU*)
6562   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6563 *)
6564   ac_count=0
6565   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6566   while :
6567   do
6568     cat "conftest.in" "conftest.in" >"conftest.tmp"
6569     mv "conftest.tmp" "conftest.in"
6570     cp "conftest.in" "conftest.nl"
6571     echo 'EGREP' >> "conftest.nl"
6572     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6573     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6574     ac_count=`expr $ac_count + 1`
6575     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6576       # Best one so far, save it but keep looking for a better one
6577       ac_cv_path_EGREP="$ac_path_EGREP"
6578       ac_path_EGREP_max=$ac_count
6579     fi
6580     # 10*(2^10) chars as input seems more than enough
6581     test $ac_count -gt 10 && break
6582   done
6583   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6584 esac
6585
6586
6587     $ac_path_EGREP_found && break 3
6588   done
6589 done
6590
6591 done
6592 IFS=$as_save_IFS
6593
6594
6595 fi
6596
6597 EGREP="$ac_cv_path_EGREP"
6598 if test -z "$EGREP"; then
6599   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6600 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6601    { (exit 1); exit 1; }; }
6602 fi
6603
6604 else
6605   ac_cv_path_EGREP=$EGREP
6606 fi
6607
6608
6609    fi
6610 fi
6611 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6612 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6613  EGREP="$ac_cv_path_EGREP"
6614
6615
6616 # Extract the first word of "ldconfig", so it can be a program name with args.
6617 set dummy ldconfig; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   case $LDCONFIG in
6624   [\\/]* | ?:[\\/]*)
6625   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6626   ;;
6627   *)
6628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in /sbin /usr/sbin $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633   for ac_exec_ext in '' $ac_executable_extensions; do
6634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6635     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640 done
6641 IFS=$as_save_IFS
6642
6643   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6644   ;;
6645 esac
6646 fi
6647 LDCONFIG=$ac_cv_path_LDCONFIG
6648 if test -n "$LDCONFIG"; then
6649   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6650 echo "${ECHO_T}$LDCONFIG" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6654 fi
6655
6656
6657 # Find a good install program.  We prefer a C program (faster),
6658 # so one script is as good as another.  But avoid the broken or
6659 # incompatible versions:
6660 # SysV /etc/install, /usr/sbin/install
6661 # SunOS /usr/etc/install
6662 # IRIX /sbin/install
6663 # AIX /bin/install
6664 # AmigaOS /C/install, which installs bootblocks on floppy discs
6665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6668 # OS/2's system install, which has a completely different semantic
6669 # ./install, which can be erroneously created by make from ./install.sh.
6670 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6671 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6672 if test -z "$INSTALL"; then
6673 if test "${ac_cv_path_install+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681   # Account for people who put trailing slashes in PATH elements.
6682 case $as_dir/ in
6683   ./ | .// | /cC/* | \
6684   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6685   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6686   /usr/ucb/* ) ;;
6687   *)
6688     # OSF1 and SCO ODT 3.0 have their own names for install.
6689     # Don't use installbsd from OSF since it installs stuff as root
6690     # by default.
6691     for ac_prog in ginstall scoinst install; do
6692       for ac_exec_ext in '' $ac_executable_extensions; do
6693         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6694           if test $ac_prog = install &&
6695             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6696             # AIX install.  It has an incompatible calling convention.
6697             :
6698           elif test $ac_prog = install &&
6699             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6700             # program-specific install script used by HP pwplus--don't use.
6701             :
6702           else
6703             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6704             break 3
6705           fi
6706         fi
6707       done
6708     done
6709     ;;
6710 esac
6711 done
6712 IFS=$as_save_IFS
6713
6714
6715 fi
6716   if test "${ac_cv_path_install+set}" = set; then
6717     INSTALL=$ac_cv_path_install
6718   else
6719     # As a last resort, use the slow shell script.  Don't cache a
6720     # value for INSTALL within a source directory, because that will
6721     # break other packages using the cache if that directory is
6722     # removed, or if the value is a relative name.
6723     INSTALL=$ac_install_sh
6724   fi
6725 fi
6726 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6727 echo "${ECHO_T}$INSTALL" >&6; }
6728
6729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6730 # It thinks the first close brace ends the variable substitution.
6731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6732
6733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6734
6735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6736
6737 case "$INSTALL" in
6738   [\\/$]* | ?:[\\/]* ) ;;
6739   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6740 esac
6741
6742 for ac_prog in lclint lint
6743 do
6744   # Extract the first word of "$ac_prog", so it can be a program name with args.
6745 set dummy $ac_prog; ac_word=$2
6746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6748 if test "${ac_cv_prog_LINT+set}" = set; then
6749   echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751   if test -n "$LINT"; then
6752   ac_cv_prog_LINT="$LINT" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757   IFS=$as_save_IFS
6758   test -z "$as_dir" && as_dir=.
6759   for ac_exec_ext in '' $ac_executable_extensions; do
6760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6761     ac_cv_prog_LINT="$ac_prog"
6762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763     break 2
6764   fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 LINT=$ac_cv_prog_LINT
6772 if test -n "$LINT"; then
6773   { echo "$as_me:$LINENO: result: $LINT" >&5
6774 echo "${ECHO_T}$LINT" >&6; }
6775 else
6776   { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6778 fi
6779
6780
6781   test -n "$LINT" && break
6782 done
6783
6784 if test "$LINT" = "lint"
6785 then
6786   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6787   fi
6788
6789
6790
6791 for ac_prog in fontforge
6792 do
6793   # Extract the first word of "$ac_prog", so it can be a program name with args.
6794 set dummy $ac_prog; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   if test -n "$FONTFORGE"; then
6801   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808   for ac_exec_ext in '' $ac_executable_extensions; do
6809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6810     ac_cv_prog_FONTFORGE="$ac_prog"
6811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815 done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 FONTFORGE=$ac_cv_prog_FONTFORGE
6821 if test -n "$FONTFORGE"; then
6822   { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6823 echo "${ECHO_T}$FONTFORGE" >&6; }
6824 else
6825   { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6827 fi
6828
6829
6830   test -n "$FONTFORGE" && break
6831 done
6832 test -n "$FONTFORGE" || FONTFORGE="false"
6833
6834 for ac_prog in pkg-config
6835 do
6836   # Extract the first word of "$ac_prog", so it can be a program name with args.
6837 set dummy $ac_prog; ac_word=$2
6838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6840 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6841   echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843   if test -n "$PKG_CONFIG"; then
6844   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849   IFS=$as_save_IFS
6850   test -z "$as_dir" && as_dir=.
6851   for ac_exec_ext in '' $ac_executable_extensions; do
6852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6853     ac_cv_prog_PKG_CONFIG="$ac_prog"
6854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855     break 2
6856   fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6864 if test -n "$PKG_CONFIG"; then
6865   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6866 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6867 else
6868   { echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6; }
6870 fi
6871
6872
6873   test -n "$PKG_CONFIG" && break
6874 done
6875 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6876
6877
6878 case $host_cpu in
6879   *i[3456789]86*)
6880     # Extract the first word of "prelink", so it can be a program name with args.
6881 set dummy prelink; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_PRELINK+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   case $PRELINK in
6888   [\\/]* | ?:[\\/]*)
6889   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6890   ;;
6891   *)
6892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in /sbin /usr/sbin $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897   for ac_exec_ext in '' $ac_executable_extensions; do
6898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6908   ;;
6909 esac
6910 fi
6911 PRELINK=$ac_cv_path_PRELINK
6912 if test -n "$PRELINK"; then
6913   { echo "$as_me:$LINENO: result: $PRELINK" >&5
6914 echo "${ECHO_T}$PRELINK" >&6; }
6915 else
6916   { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6918 fi
6919
6920
6921     ;;
6922 esac
6923
6924
6925
6926 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6927 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6928 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   ac_check_lib_save_LIBS=$LIBS
6932 LIBS="-li386  $LIBS"
6933 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939
6940 /* Override any GCC internal prototype to avoid an error.
6941    Use char because int might match the return type of a GCC
6942    builtin and then its argument prototype would still apply.  */
6943 #ifdef __cplusplus
6944 extern "C"
6945 #endif
6946 char i386_set_ldt ();
6947 int
6948 main ()
6949 {
6950 return i386_set_ldt ();
6951   ;
6952   return 0;
6953 }
6954 _ACEOF
6955 rm -f conftest.$ac_objext conftest$ac_exeext
6956 if { (ac_try="$ac_link"
6957 case "(($ac_try" in
6958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959   *) ac_try_echo=$ac_try;;
6960 esac
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962   (eval "$ac_link") 2>conftest.er1
6963   ac_status=$?
6964   grep -v '^ *+' conftest.er1 >conftest.err
6965   rm -f conftest.er1
6966   cat conftest.err >&5
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } &&
6969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6970   { (case "(($ac_try" in
6971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6972   *) ac_try_echo=$ac_try;;
6973 esac
6974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6975   (eval "$ac_try") 2>&5
6976   ac_status=$?
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); }; } &&
6979          { ac_try='test -s conftest$ac_exeext'
6980   { (case "(($ac_try" in
6981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982   *) ac_try_echo=$ac_try;;
6983 esac
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985   (eval "$ac_try") 2>&5
6986   ac_status=$?
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); }; }; then
6989   ac_cv_lib_i386_i386_set_ldt=yes
6990 else
6991   echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994         ac_cv_lib_i386_i386_set_ldt=no
6995 fi
6996
6997 rm -f core conftest.err conftest.$ac_objext \
6998       conftest$ac_exeext conftest.$ac_ext
6999 LIBS=$ac_check_lib_save_LIBS
7000 fi
7001 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
7002 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
7003 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
7004   cat >>confdefs.h <<_ACEOF
7005 #define HAVE_LIBI386 1
7006 _ACEOF
7007
7008   LIBS="-li386 $LIBS"
7009
7010 fi
7011
7012
7013 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7014 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
7015 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   ac_check_lib_save_LIBS=$LIBS
7019 LIBS="-lossaudio  $LIBS"
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h.  */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h.  */
7026
7027 /* Override any GCC internal prototype to avoid an error.
7028    Use char because int might match the return type of a GCC
7029    builtin and then its argument prototype would still apply.  */
7030 #ifdef __cplusplus
7031 extern "C"
7032 #endif
7033 char _oss_ioctl ();
7034 int
7035 main ()
7036 {
7037 return _oss_ioctl ();
7038   ;
7039   return 0;
7040 }
7041 _ACEOF
7042 rm -f conftest.$ac_objext conftest$ac_exeext
7043 if { (ac_try="$ac_link"
7044 case "(($ac_try" in
7045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046   *) ac_try_echo=$ac_try;;
7047 esac
7048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7049   (eval "$ac_link") 2>conftest.er1
7050   ac_status=$?
7051   grep -v '^ *+' conftest.er1 >conftest.err
7052   rm -f conftest.er1
7053   cat conftest.err >&5
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); } &&
7056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7057   { (case "(($ac_try" in
7058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059   *) ac_try_echo=$ac_try;;
7060 esac
7061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062   (eval "$ac_try") 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); }; } &&
7066          { ac_try='test -s conftest$ac_exeext'
7067   { (case "(($ac_try" in
7068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069   *) ac_try_echo=$ac_try;;
7070 esac
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072   (eval "$ac_try") 2>&5
7073   ac_status=$?
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); }; }; then
7076   ac_cv_lib_ossaudio__oss_ioctl=yes
7077 else
7078   echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7080
7081         ac_cv_lib_ossaudio__oss_ioctl=no
7082 fi
7083
7084 rm -f core conftest.err conftest.$ac_objext \
7085       conftest$ac_exeext conftest.$ac_ext
7086 LIBS=$ac_check_lib_save_LIBS
7087 fi
7088 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7089 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7090 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
7091   cat >>confdefs.h <<_ACEOF
7092 #define HAVE_LIBOSSAUDIO 1
7093 _ACEOF
7094
7095   LIBS="-lossaudio $LIBS"
7096
7097 fi
7098
7099
7100 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7101 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
7102 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   ac_check_lib_save_LIBS=$LIBS
7106 LIBS="-lxpg4  $LIBS"
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h.  */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h.  */
7113
7114 /* Override any GCC internal prototype to avoid an error.
7115    Use char because int might match the return type of a GCC
7116    builtin and then its argument prototype would still apply.  */
7117 #ifdef __cplusplus
7118 extern "C"
7119 #endif
7120 char _xpg4_setrunelocale ();
7121 int
7122 main ()
7123 {
7124 return _xpg4_setrunelocale ();
7125   ;
7126   return 0;
7127 }
7128 _ACEOF
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (ac_try="$ac_link"
7131 case "(($ac_try" in
7132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133   *) ac_try_echo=$ac_try;;
7134 esac
7135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136   (eval "$ac_link") 2>conftest.er1
7137   ac_status=$?
7138   grep -v '^ *+' conftest.er1 >conftest.err
7139   rm -f conftest.er1
7140   cat conftest.err >&5
7141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); } &&
7143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7144   { (case "(($ac_try" in
7145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7146   *) ac_try_echo=$ac_try;;
7147 esac
7148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7149   (eval "$ac_try") 2>&5
7150   ac_status=$?
7151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); }; } &&
7153          { ac_try='test -s conftest$ac_exeext'
7154   { (case "(($ac_try" in
7155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156   *) ac_try_echo=$ac_try;;
7157 esac
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159   (eval "$ac_try") 2>&5
7160   ac_status=$?
7161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162   (exit $ac_status); }; }; then
7163   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
7164 else
7165   echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7167
7168         ac_cv_lib_xpg4__xpg4_setrunelocale=no
7169 fi
7170
7171 rm -f core conftest.err conftest.$ac_objext \
7172       conftest$ac_exeext conftest.$ac_ext
7173 LIBS=$ac_check_lib_save_LIBS
7174 fi
7175 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7176 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
7177 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
7178   cat >>confdefs.h <<_ACEOF
7179 #define HAVE_LIBXPG4 1
7180 _ACEOF
7181
7182   LIBS="-lxpg4 $LIBS"
7183
7184 fi
7185
7186 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7187 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
7188 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   ac_check_lib_save_LIBS=$LIBS
7192 LIBS="-lpthread  $LIBS"
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h.  */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h.  */
7199
7200 /* Override any GCC internal prototype to avoid an error.
7201    Use char because int might match the return type of a GCC
7202    builtin and then its argument prototype would still apply.  */
7203 #ifdef __cplusplus
7204 extern "C"
7205 #endif
7206 char pthread_create ();
7207 int
7208 main ()
7209 {
7210 return pthread_create ();
7211   ;
7212   return 0;
7213 }
7214 _ACEOF
7215 rm -f conftest.$ac_objext conftest$ac_exeext
7216 if { (ac_try="$ac_link"
7217 case "(($ac_try" in
7218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219   *) ac_try_echo=$ac_try;;
7220 esac
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222   (eval "$ac_link") 2>conftest.er1
7223   ac_status=$?
7224   grep -v '^ *+' conftest.er1 >conftest.err
7225   rm -f conftest.er1
7226   cat conftest.err >&5
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } &&
7229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7230   { (case "(($ac_try" in
7231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7232   *) ac_try_echo=$ac_try;;
7233 esac
7234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7235   (eval "$ac_try") 2>&5
7236   ac_status=$?
7237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238   (exit $ac_status); }; } &&
7239          { ac_try='test -s conftest$ac_exeext'
7240   { (case "(($ac_try" in
7241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242   *) ac_try_echo=$ac_try;;
7243 esac
7244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7245   (eval "$ac_try") 2>&5
7246   ac_status=$?
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); }; }; then
7249   ac_cv_lib_pthread_pthread_create=yes
7250 else
7251   echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7253
7254         ac_cv_lib_pthread_pthread_create=no
7255 fi
7256
7257 rm -f core conftest.err conftest.$ac_objext \
7258       conftest$ac_exeext conftest.$ac_ext
7259 LIBS=$ac_check_lib_save_LIBS
7260 fi
7261 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
7262 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
7263 if test $ac_cv_lib_pthread_pthread_create = yes; then
7264   LIBPTHREAD="-lpthread"
7265
7266 fi
7267
7268
7269 XLIB=""
7270
7271 XFILES=""
7272
7273 OPENGLFILES=""
7274
7275 GLU32FILES=""
7276
7277 OPENGL_LIBS=""
7278
7279
7280
7281 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7282 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7283 if test "${ac_cv_header_stdc+set}" = set; then
7284   echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286   cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h.  */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h.  */
7292 #include <stdlib.h>
7293 #include <stdarg.h>
7294 #include <string.h>
7295 #include <float.h>
7296
7297 int
7298 main ()
7299 {
7300
7301   ;
7302   return 0;
7303 }
7304 _ACEOF
7305 rm -f conftest.$ac_objext
7306 if { (ac_try="$ac_compile"
7307 case "(($ac_try" in
7308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309   *) ac_try_echo=$ac_try;;
7310 esac
7311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7312   (eval "$ac_compile") 2>conftest.er1
7313   ac_status=$?
7314   grep -v '^ *+' conftest.er1 >conftest.err
7315   rm -f conftest.er1
7316   cat conftest.err >&5
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); } &&
7319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7320   { (case "(($ac_try" in
7321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322   *) ac_try_echo=$ac_try;;
7323 esac
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325   (eval "$ac_try") 2>&5
7326   ac_status=$?
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); }; } &&
7329          { ac_try='test -s conftest.$ac_objext'
7330   { (case "(($ac_try" in
7331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332   *) ac_try_echo=$ac_try;;
7333 esac
7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335   (eval "$ac_try") 2>&5
7336   ac_status=$?
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); }; }; then
7339   ac_cv_header_stdc=yes
7340 else
7341   echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7343
7344         ac_cv_header_stdc=no
7345 fi
7346
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348
7349 if test $ac_cv_header_stdc = yes; then
7350   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7351   cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h.  */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h.  */
7357 #include <string.h>
7358
7359 _ACEOF
7360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7361   $EGREP "memchr" >/dev/null 2>&1; then
7362   :
7363 else
7364   ac_cv_header_stdc=no
7365 fi
7366 rm -f conftest*
7367
7368 fi
7369
7370 if test $ac_cv_header_stdc = yes; then
7371   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7372   cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h.  */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h.  */
7378 #include <stdlib.h>
7379
7380 _ACEOF
7381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7382   $EGREP "free" >/dev/null 2>&1; then
7383   :
7384 else
7385   ac_cv_header_stdc=no
7386 fi
7387 rm -f conftest*
7388
7389 fi
7390
7391 if test $ac_cv_header_stdc = yes; then
7392   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7393   if test "$cross_compiling" = yes; then
7394   :
7395 else
7396   cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h.  */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h.  */
7402 #include <ctype.h>
7403 #include <stdlib.h>
7404 #if ((' ' & 0x0FF) == 0x020)
7405 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7406 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7407 #else
7408 # define ISLOWER(c) \
7409                    (('a' <= (c) && (c) <= 'i') \
7410                      || ('j' <= (c) && (c) <= 'r') \
7411                      || ('s' <= (c) && (c) <= 'z'))
7412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7413 #endif
7414
7415 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7416 int
7417 main ()
7418 {
7419   int i;
7420   for (i = 0; i < 256; i++)
7421     if (XOR (islower (i), ISLOWER (i))
7422         || toupper (i) != TOUPPER (i))
7423       return 2;
7424   return 0;
7425 }
7426 _ACEOF
7427 rm -f conftest$ac_exeext
7428 if { (ac_try="$ac_link"
7429 case "(($ac_try" in
7430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431   *) ac_try_echo=$ac_try;;
7432 esac
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434   (eval "$ac_link") 2>&5
7435   ac_status=$?
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7438   { (case "(($ac_try" in
7439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7440   *) ac_try_echo=$ac_try;;
7441 esac
7442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7443   (eval "$ac_try") 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); }; }; then
7447   :
7448 else
7449   echo "$as_me: program exited with status $ac_status" >&5
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 ( exit $ac_status )
7454 ac_cv_header_stdc=no
7455 fi
7456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7457 fi
7458
7459
7460 fi
7461 fi
7462 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7463 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7464 if test $ac_cv_header_stdc = yes; then
7465
7466 cat >>confdefs.h <<\_ACEOF
7467 #define STDC_HEADERS 1
7468 _ACEOF
7469
7470 fi
7471
7472 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7483                   inttypes.h stdint.h unistd.h
7484 do
7485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7489   echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491   cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h.  */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h.  */
7497 $ac_includes_default
7498
7499 #include <$ac_header>
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (ac_try="$ac_compile"
7503 case "(($ac_try" in
7504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505   *) ac_try_echo=$ac_try;;
7506 esac
7507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508   (eval "$ac_compile") 2>conftest.er1
7509   ac_status=$?
7510   grep -v '^ *+' conftest.er1 >conftest.err
7511   rm -f conftest.er1
7512   cat conftest.err >&5
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); } &&
7515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7516   { (case "(($ac_try" in
7517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518   *) ac_try_echo=$ac_try;;
7519 esac
7520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521   (eval "$ac_try") 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); }; } &&
7525          { ac_try='test -s conftest.$ac_objext'
7526   { (case "(($ac_try" in
7527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528   *) ac_try_echo=$ac_try;;
7529 esac
7530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7531   (eval "$ac_try") 2>&5
7532   ac_status=$?
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); }; }; then
7535   eval "$as_ac_Header=yes"
7536 else
7537   echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7539
7540         eval "$as_ac_Header=no"
7541 fi
7542
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 fi
7545 ac_res=`eval echo '${'$as_ac_Header'}'`
7546                { echo "$as_me:$LINENO: result: $ac_res" >&5
7547 echo "${ECHO_T}$ac_res" >&6; }
7548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7549   cat >>confdefs.h <<_ACEOF
7550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7551 _ACEOF
7552
7553 fi
7554
7555 done
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664 for ac_header in \
7665         AudioUnit/AudioUnit.h \
7666         CoreAudio/CoreAudio.h \
7667         IOKit/IOKitLib.h \
7668         alsa/asoundlib.h \
7669         arpa/inet.h \
7670         arpa/nameser.h \
7671         asm/types.h \
7672         capi20.h \
7673         cups/cups.h \
7674         curses.h \
7675         direct.h \
7676         dlfcn.h \
7677         elf.h \
7678         float.h \
7679         fontconfig/fontconfig.h \
7680         getopt.h \
7681         ieeefp.h \
7682         io.h \
7683         jack/jack.h \
7684         jpeglib.h \
7685         lber.h \
7686         lcms.h \
7687         lcms/lcms.h \
7688         ldap.h \
7689         libaudioio.h \
7690         link.h \
7691         linux/cdrom.h \
7692         linux/compiler.h \
7693         linux/hdreg.h \
7694         linux/input.h \
7695         linux/ioctl.h \
7696         linux/joystick.h \
7697         linux/major.h \
7698         linux/param.h \
7699         linux/serial.h \
7700         linux/ucdrom.h \
7701         mach/machine.h \
7702         machine/cpu.h \
7703         machine/limits.h \
7704         machine/soundcard.h \
7705         mntent.h \
7706         ncurses.h \
7707         netdb.h \
7708         netinet/in.h \
7709         netinet/in_systm.h \
7710         netinet/tcp.h \
7711         netinet/tcp_fsm.h \
7712         openssl/err.h \
7713         openssl/ssl.h \
7714         poll.h \
7715         process.h \
7716         pthread.h \
7717         pwd.h \
7718         regex.h \
7719         sched.h \
7720         scsi/scsi.h \
7721         scsi/scsi_ioctl.h \
7722         scsi/sg.h \
7723         soundcard.h \
7724         stdint.h \
7725         strings.h \
7726         sys/asoundlib.h \
7727         sys/cdio.h \
7728         sys/elf32.h \
7729         sys/epoll.h \
7730         sys/errno.h \
7731         sys/event.h \
7732         sys/exec_elf.h \
7733         sys/filio.h \
7734         sys/ioctl.h \
7735         sys/ipc.h \
7736         sys/limits.h \
7737         sys/link.h \
7738         sys/lwp.h \
7739         sys/mman.h \
7740         sys/modem.h \
7741         sys/msg.h \
7742         sys/mtio.h \
7743         sys/param.h \
7744         sys/poll.h \
7745         sys/prctl.h \
7746         sys/ptrace.h \
7747         sys/reg.h \
7748         sys/resource.h \
7749         sys/scsiio.h \
7750         sys/shm.h \
7751         sys/signal.h \
7752         sys/socket.h \
7753         sys/sockio.h \
7754         sys/soundcard.h \
7755         sys/statvfs.h \
7756         sys/strtio.h \
7757         sys/syscall.h \
7758         sys/sysctl.h \
7759         sys/time.h \
7760         sys/times.h \
7761         sys/uio.h \
7762         sys/un.h \
7763         sys/vm86.h \
7764         sys/wait.h \
7765         syscall.h \
7766         termios.h \
7767         unicode/ubidi.h \
7768         unistd.h \
7769         utime.h \
7770         valgrind/memcheck.h
7771
7772 do
7773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7775   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7778   echo $ECHO_N "(cached) $ECHO_C" >&6
7779 fi
7780 ac_res=`eval echo '${'$as_ac_Header'}'`
7781                { echo "$as_me:$LINENO: result: $ac_res" >&5
7782 echo "${ECHO_T}$ac_res" >&6; }
7783 else
7784   # Is the header compilable?
7785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7787 cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h.  */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h.  */
7793 $ac_includes_default
7794 #include <$ac_header>
7795 _ACEOF
7796 rm -f conftest.$ac_objext
7797 if { (ac_try="$ac_compile"
7798 case "(($ac_try" in
7799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800   *) ac_try_echo=$ac_try;;
7801 esac
7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803   (eval "$ac_compile") 2>conftest.er1
7804   ac_status=$?
7805   grep -v '^ *+' conftest.er1 >conftest.err
7806   rm -f conftest.er1
7807   cat conftest.err >&5
7808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809   (exit $ac_status); } &&
7810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7811   { (case "(($ac_try" in
7812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813   *) ac_try_echo=$ac_try;;
7814 esac
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816   (eval "$ac_try") 2>&5
7817   ac_status=$?
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); }; } &&
7820          { ac_try='test -s conftest.$ac_objext'
7821   { (case "(($ac_try" in
7822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823   *) ac_try_echo=$ac_try;;
7824 esac
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826   (eval "$ac_try") 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; }; then
7830   ac_header_compiler=yes
7831 else
7832   echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835         ac_header_compiler=no
7836 fi
7837
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7840 echo "${ECHO_T}$ac_header_compiler" >&6; }
7841
7842 # Is the header present?
7843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7845 cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h.  */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h.  */
7851 #include <$ac_header>
7852 _ACEOF
7853 if { (ac_try="$ac_cpp conftest.$ac_ext"
7854 case "(($ac_try" in
7855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856   *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7860   ac_status=$?
7861   grep -v '^ *+' conftest.er1 >conftest.err
7862   rm -f conftest.er1
7863   cat conftest.err >&5
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); } >/dev/null; then
7866   if test -s conftest.err; then
7867     ac_cpp_err=$ac_c_preproc_warn_flag
7868     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7869   else
7870     ac_cpp_err=
7871   fi
7872 else
7873   ac_cpp_err=yes
7874 fi
7875 if test -z "$ac_cpp_err"; then
7876   ac_header_preproc=yes
7877 else
7878   echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7880
7881   ac_header_preproc=no
7882 fi
7883
7884 rm -f conftest.err conftest.$ac_ext
7885 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7886 echo "${ECHO_T}$ac_header_preproc" >&6; }
7887
7888 # So?  What about this header?
7889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7890   yes:no: )
7891     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7895     ac_header_preproc=yes
7896     ;;
7897   no:yes:* )
7898     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7900     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7901 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7902     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7904     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7905 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7908     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7910     ( cat <<\_ASBOX
7911 ## ------------------------------------ ##
7912 ## Report this to wine-devel@winehq.org ##
7913 ## ------------------------------------ ##
7914 _ASBOX
7915      ) | sed "s/^/$as_me: WARNING:     /" >&2
7916     ;;
7917 esac
7918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923   eval "$as_ac_Header=\$ac_header_preproc"
7924 fi
7925 ac_res=`eval echo '${'$as_ac_Header'}'`
7926                { echo "$as_me:$LINENO: result: $ac_res" >&5
7927 echo "${ECHO_T}$ac_res" >&6; }
7928
7929 fi
7930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7931   cat >>confdefs.h <<_ACEOF
7932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7933 _ACEOF
7934
7935 fi
7936
7937 done
7938
7939 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7940 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7941 if test "${ac_cv_header_stat_broken+set}" = set; then
7942   echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944   cat >conftest.$ac_ext <<_ACEOF
7945 /* confdefs.h.  */
7946 _ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h.  */
7950 #include <sys/types.h>
7951 #include <sys/stat.h>
7952
7953 #if defined S_ISBLK && defined S_IFDIR
7954 # if S_ISBLK (S_IFDIR)
7955 You lose.
7956 # endif
7957 #endif
7958
7959 #if defined S_ISBLK && defined S_IFCHR
7960 # if S_ISBLK (S_IFCHR)
7961 You lose.
7962 # endif
7963 #endif
7964
7965 #if defined S_ISLNK && defined S_IFREG
7966 # if S_ISLNK (S_IFREG)
7967 You lose.
7968 # endif
7969 #endif
7970
7971 #if defined S_ISSOCK && defined S_IFREG
7972 # if S_ISSOCK (S_IFREG)
7973 You lose.
7974 # endif
7975 #endif
7976
7977 _ACEOF
7978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7979   $EGREP "You lose" >/dev/null 2>&1; then
7980   ac_cv_header_stat_broken=yes
7981 else
7982   ac_cv_header_stat_broken=no
7983 fi
7984 rm -f conftest*
7985
7986 fi
7987 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7988 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7989 if test $ac_cv_header_stat_broken = yes; then
7990
7991 cat >>confdefs.h <<\_ACEOF
7992 #define STAT_MACROS_BROKEN 1
7993 _ACEOF
7994
7995 fi
7996
7997
7998
7999
8000
8001
8002
8003 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8004 do
8005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011   cat >conftest.$ac_ext <<_ACEOF
8012 /* confdefs.h.  */
8013 _ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h.  */
8017 #include <sys/types.h>
8018      #if HAVE_SYS_PARAM_H
8019      # include <sys/param.h>
8020      #endif
8021
8022 #include <$ac_header>
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8026 case "(($ac_try" in
8027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028   *) ac_try_echo=$ac_try;;
8029 esac
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031   (eval "$ac_compile") 2>conftest.er1
8032   ac_status=$?
8033   grep -v '^ *+' conftest.er1 >conftest.err
8034   rm -f conftest.er1
8035   cat conftest.err >&5
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); } &&
8038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8039   { (case "(($ac_try" in
8040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041   *) ac_try_echo=$ac_try;;
8042 esac
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044   (eval "$ac_try") 2>&5
8045   ac_status=$?
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); }; } &&
8048          { ac_try='test -s conftest.$ac_objext'
8049   { (case "(($ac_try" in
8050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051   *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054   (eval "$ac_try") 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; }; then
8058   eval "$as_ac_Header=yes"
8059 else
8060   echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8062
8063         eval "$as_ac_Header=no"
8064 fi
8065
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067 fi
8068 ac_res=`eval echo '${'$as_ac_Header'}'`
8069                { echo "$as_me:$LINENO: result: $ac_res" >&5
8070 echo "${ECHO_T}$ac_res" >&6; }
8071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8072   cat >>confdefs.h <<_ACEOF
8073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8074 _ACEOF
8075
8076 fi
8077
8078 done
8079
8080
8081
8082
8083
8084
8085
8086
8087 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
8088 do
8089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8093   echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095   cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h.  */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h.  */
8101 #include <sys/types.h>
8102      #if HAVE_SYS_SOCKET_H
8103      # include <sys/socket.h>
8104      #endif
8105
8106 #include <$ac_header>
8107 _ACEOF
8108 rm -f conftest.$ac_objext
8109 if { (ac_try="$ac_compile"
8110 case "(($ac_try" in
8111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112   *) ac_try_echo=$ac_try;;
8113 esac
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115   (eval "$ac_compile") 2>conftest.er1
8116   ac_status=$?
8117   grep -v '^ *+' conftest.er1 >conftest.err
8118   rm -f conftest.er1
8119   cat conftest.err >&5
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8123   { (case "(($ac_try" in
8124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125   *) ac_try_echo=$ac_try;;
8126 esac
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128   (eval "$ac_try") 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); }; } &&
8132          { ac_try='test -s conftest.$ac_objext'
8133   { (case "(($ac_try" in
8134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135   *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138   (eval "$ac_try") 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); }; }; then
8142   eval "$as_ac_Header=yes"
8143 else
8144   echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8146
8147         eval "$as_ac_Header=no"
8148 fi
8149
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 fi
8152 ac_res=`eval echo '${'$as_ac_Header'}'`
8153                { echo "$as_me:$LINENO: result: $ac_res" >&5
8154 echo "${ECHO_T}$ac_res" >&6; }
8155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8156   cat >>confdefs.h <<_ACEOF
8157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8158 _ACEOF
8159
8160 fi
8161
8162 done
8163
8164
8165
8166 for ac_header in linux/ipx.h
8167 do
8168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8172   echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174   cat >conftest.$ac_ext <<_ACEOF
8175 /* confdefs.h.  */
8176 _ACEOF
8177 cat confdefs.h >>conftest.$ac_ext
8178 cat >>conftest.$ac_ext <<_ACEOF
8179 /* end confdefs.h.  */
8180 #include <sys/types.h>
8181      #ifdef HAVE_ASM_TYPES_H
8182      # include <asm/types.h>
8183      #endif
8184      #if HAVE_SYS_SOCKET_H
8185      # include <sys/socket.h>
8186      #endif
8187
8188 #include <$ac_header>
8189 _ACEOF
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8192 case "(($ac_try" in
8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194   *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197   (eval "$ac_compile") 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } &&
8204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8205   { (case "(($ac_try" in
8206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207   *) ac_try_echo=$ac_try;;
8208 esac
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210   (eval "$ac_try") 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; } &&
8214          { ac_try='test -s conftest.$ac_objext'
8215   { (case "(($ac_try" in
8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217   *) ac_try_echo=$ac_try;;
8218 esac
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220   (eval "$ac_try") 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; }; then
8224   eval "$as_ac_Header=yes"
8225 else
8226   echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229         eval "$as_ac_Header=no"
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 fi
8234 ac_res=`eval echo '${'$as_ac_Header'}'`
8235                { echo "$as_me:$LINENO: result: $ac_res" >&5
8236 echo "${ECHO_T}$ac_res" >&6; }
8237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8238   cat >>confdefs.h <<_ACEOF
8239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8240 _ACEOF
8241
8242 fi
8243
8244 done
8245
8246
8247
8248 for ac_header in resolv.h
8249 do
8250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8254   echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256   cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h.  */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h.  */
8262 #include <sys/types.h>
8263      #if HAVE_SYS_SOCKET_H
8264      # include <sys/socket.h>
8265      #endif
8266      #if HAVE_NETINET_IN_H
8267      # include <netinet/in.h>
8268      #endif
8269      #if HAVE_ARPA_NAMESER_H
8270      # include <arpa/nameser.h>
8271      #endif
8272
8273 #include <$ac_header>
8274 _ACEOF
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8277 case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282   (eval "$ac_compile") 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } &&
8289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290   { (case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295   (eval "$ac_try") 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; } &&
8299          { ac_try='test -s conftest.$ac_objext'
8300   { (case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_try") 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; }; then
8309   eval "$as_ac_Header=yes"
8310 else
8311   echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314         eval "$as_ac_Header=no"
8315 fi
8316
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 fi
8319 ac_res=`eval echo '${'$as_ac_Header'}'`
8320                { echo "$as_me:$LINENO: result: $ac_res" >&5
8321 echo "${ECHO_T}$ac_res" >&6; }
8322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8323   cat >>confdefs.h <<_ACEOF
8324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8325 _ACEOF
8326
8327 fi
8328
8329 done
8330
8331
8332
8333 for ac_header in ucontext.h
8334 do
8335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h.  */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h.  */
8347 #include <signal.h>
8348
8349 #include <$ac_header>
8350 _ACEOF
8351 rm -f conftest.$ac_objext
8352 if { (ac_try="$ac_compile"
8353 case "(($ac_try" in
8354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355   *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358   (eval "$ac_compile") 2>conftest.er1
8359   ac_status=$?
8360   grep -v '^ *+' conftest.er1 >conftest.err
8361   rm -f conftest.er1
8362   cat conftest.err >&5
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8366   { (case "(($ac_try" in
8367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368   *) ac_try_echo=$ac_try;;
8369 esac
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371   (eval "$ac_try") 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; } &&
8375          { ac_try='test -s conftest.$ac_objext'
8376   { (case "(($ac_try" in
8377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378   *) ac_try_echo=$ac_try;;
8379 esac
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381   (eval "$ac_try") 2>&5
8382   ac_status=$?
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); }; }; then
8385   eval "$as_ac_Header=yes"
8386 else
8387   echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390         eval "$as_ac_Header=no"
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 fi
8395 ac_res=`eval echo '${'$as_ac_Header'}'`
8396                { echo "$as_me:$LINENO: result: $ac_res" >&5
8397 echo "${ECHO_T}$ac_res" >&6; }
8398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8399   cat >>confdefs.h <<_ACEOF
8400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8401 _ACEOF
8402
8403 fi
8404
8405 done
8406
8407
8408
8409 for ac_header in pthread_np.h
8410 do
8411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417   cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423 #ifdef HAVE_PTHREAD_H
8424 #include <pthread.h>
8425 #endif
8426
8427 #include <$ac_header>
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8431 case "(($ac_try" in
8432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433   *) ac_try_echo=$ac_try;;
8434 esac
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436   (eval "$ac_compile") 2>conftest.er1
8437   ac_status=$?
8438   grep -v '^ *+' conftest.er1 >conftest.err
8439   rm -f conftest.er1
8440   cat conftest.err >&5
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); } &&
8443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8444   { (case "(($ac_try" in
8445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446   *) ac_try_echo=$ac_try;;
8447 esac
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449   (eval "$ac_try") 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; } &&
8453          { ac_try='test -s conftest.$ac_objext'
8454   { (case "(($ac_try" in
8455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456   *) ac_try_echo=$ac_try;;
8457 esac
8458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459   (eval "$ac_try") 2>&5
8460   ac_status=$?
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); }; }; then
8463   eval "$as_ac_Header=yes"
8464 else
8465   echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8467
8468         eval "$as_ac_Header=no"
8469 fi
8470
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 fi
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
8480
8481 fi
8482
8483 done
8484
8485
8486
8487 for ac_header in linux/videodev.h
8488 do
8489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501 #ifdef HAVE_SYS_TIME_H
8502 #include <sys/time.h>
8503 #endif
8504 #include <sys/types.h>
8505 #ifdef HAVE_ASM_TYPES_H
8506 #include <asm/types.h>
8507 #endif
8508
8509 #include <$ac_header>
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8513 case "(($ac_try" in
8514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515   *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518   (eval "$ac_compile") 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } &&
8525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8526   { (case "(($ac_try" in
8527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528   *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531   (eval "$ac_try") 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }; } &&
8535          { ac_try='test -s conftest.$ac_objext'
8536   { (case "(($ac_try" in
8537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538   *) ac_try_echo=$ac_try;;
8539 esac
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541   (eval "$ac_try") 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; }; then
8545   eval "$as_ac_Header=yes"
8546 else
8547   echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550         eval "$as_ac_Header=no"
8551 fi
8552
8553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554 fi
8555 ac_res=`eval echo '${'$as_ac_Header'}'`
8556                { echo "$as_me:$LINENO: result: $ac_res" >&5
8557 echo "${ECHO_T}$ac_res" >&6; }
8558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8559   cat >>confdefs.h <<_ACEOF
8560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8561 _ACEOF
8562
8563 fi
8564
8565 done
8566
8567
8568
8569 for ac_header in linux/capi.h
8570 do
8571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8575   echo $ECHO_N "(cached) $ECHO_C" >&6
8576 else
8577   cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h.  */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h.  */
8583 #define __user
8584
8585 #include <$ac_header>
8586 _ACEOF
8587 rm -f conftest.$ac_objext
8588 if { (ac_try="$ac_compile"
8589 case "(($ac_try" in
8590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591   *) ac_try_echo=$ac_try;;
8592 esac
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594   (eval "$ac_compile") 2>conftest.er1
8595   ac_status=$?
8596   grep -v '^ *+' conftest.er1 >conftest.err
8597   rm -f conftest.er1
8598   cat conftest.err >&5
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); } &&
8601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8602   { (case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607   (eval "$ac_try") 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; } &&
8611          { ac_try='test -s conftest.$ac_objext'
8612   { (case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_try") 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   eval "$as_ac_Header=yes"
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626         eval "$as_ac_Header=no"
8627 fi
8628
8629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8630 fi
8631 ac_res=`eval echo '${'$as_ac_Header'}'`
8632                { echo "$as_me:$LINENO: result: $ac_res" >&5
8633 echo "${ECHO_T}$ac_res" >&6; }
8634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8635   cat >>confdefs.h <<_ACEOF
8636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8637 _ACEOF
8638
8639 fi
8640
8641 done
8642
8643
8644
8645 if test "$have_x" = "yes"
8646 then
8647     XLIB="-lXext -lX11"
8648     ac_save_CPPFLAGS="$CPPFLAGS"
8649     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660 for ac_header in X11/Xlib.h \
8661                       X11/XKBlib.h \
8662                       X11/Xutil.h \
8663                       X11/extensions/shape.h \
8664                       X11/extensions/XInput.h \
8665                       X11/extensions/XShm.h \
8666                       X11/extensions/Xrandr.h \
8667                       X11/extensions/Xrender.h \
8668                       X11/extensions/xf86vmode.h
8669 do
8670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8674   echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676   cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h.  */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h.  */
8682 #ifdef HAVE_X11_XLIB_H
8683 # include <X11/Xlib.h>
8684 #endif
8685 #ifdef HAVE_X11_XUTIL_H
8686 # include <X11/Xutil.h>
8687 #endif
8688
8689 #include <$ac_header>
8690 _ACEOF
8691 rm -f conftest.$ac_objext
8692 if { (ac_try="$ac_compile"
8693 case "(($ac_try" in
8694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695   *) ac_try_echo=$ac_try;;
8696 esac
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698   (eval "$ac_compile") 2>conftest.er1
8699   ac_status=$?
8700   grep -v '^ *+' conftest.er1 >conftest.err
8701   rm -f conftest.er1
8702   cat conftest.err >&5
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } &&
8705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8706   { (case "(($ac_try" in
8707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708   *) ac_try_echo=$ac_try;;
8709 esac
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711   (eval "$ac_try") 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); }; } &&
8715          { ac_try='test -s conftest.$ac_objext'
8716   { (case "(($ac_try" in
8717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718   *) ac_try_echo=$ac_try;;
8719 esac
8720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721   (eval "$ac_try") 2>&5
8722   ac_status=$?
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); }; }; then
8725   eval "$as_ac_Header=yes"
8726 else
8727   echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8729
8730         eval "$as_ac_Header=no"
8731 fi
8732
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734 fi
8735 ac_res=`eval echo '${'$as_ac_Header'}'`
8736                { echo "$as_me:$LINENO: result: $ac_res" >&5
8737 echo "${ECHO_T}$ac_res" >&6; }
8738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8739   cat >>confdefs.h <<_ACEOF
8740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8741 _ACEOF
8742
8743 fi
8744
8745 done
8746
8747
8748                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8749         then
8750               { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
8751 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
8752 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
8753   echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755   ac_check_lib_save_LIBS=$LIBS
8756 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8757 cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h.  */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h.  */
8763
8764 /* Override any GCC internal prototype to avoid an error.
8765    Use char because int might match the return type of a GCC
8766    builtin and then its argument prototype would still apply.  */
8767 #ifdef __cplusplus
8768 extern "C"
8769 #endif
8770 char XkbQueryExtension ();
8771 int
8772 main ()
8773 {
8774 return XkbQueryExtension ();
8775   ;
8776   return 0;
8777 }
8778 _ACEOF
8779 rm -f conftest.$ac_objext conftest$ac_exeext
8780 if { (ac_try="$ac_link"
8781 case "(($ac_try" in
8782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783   *) ac_try_echo=$ac_try;;
8784 esac
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786   (eval "$ac_link") 2>conftest.er1
8787   ac_status=$?
8788   grep -v '^ *+' conftest.er1 >conftest.err
8789   rm -f conftest.er1
8790   cat conftest.err >&5
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } &&
8793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8794   { (case "(($ac_try" in
8795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796   *) ac_try_echo=$ac_try;;
8797 esac
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799   (eval "$ac_try") 2>&5
8800   ac_status=$?
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); }; } &&
8803          { ac_try='test -s conftest$ac_exeext'
8804   { (case "(($ac_try" in
8805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806   *) ac_try_echo=$ac_try;;
8807 esac
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809   (eval "$ac_try") 2>&5
8810   ac_status=$?
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); }; }; then
8813   ac_cv_lib_X11_XkbQueryExtension=yes
8814 else
8815   echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8817
8818         ac_cv_lib_X11_XkbQueryExtension=no
8819 fi
8820
8821 rm -f core conftest.err conftest.$ac_objext \
8822       conftest$ac_exeext conftest.$ac_ext
8823 LIBS=$ac_check_lib_save_LIBS
8824 fi
8825 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8826 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8827 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
8828
8829 cat >>confdefs.h <<\_ACEOF
8830 #define HAVE_XKB 1
8831 _ACEOF
8832
8833 fi
8834
8835         fi
8836
8837                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8838         then
8839               { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
8840 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
8841 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
8842   echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844   ac_check_lib_save_LIBS=$LIBS
8845 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8846 cat >conftest.$ac_ext <<_ACEOF
8847 /* confdefs.h.  */
8848 _ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h.  */
8852
8853 /* Override any GCC internal prototype to avoid an error.
8854    Use char because int might match the return type of a GCC
8855    builtin and then its argument prototype would still apply.  */
8856 #ifdef __cplusplus
8857 extern "C"
8858 #endif
8859 char XShmQueryExtension ();
8860 int
8861 main ()
8862 {
8863 return XShmQueryExtension ();
8864   ;
8865   return 0;
8866 }
8867 _ACEOF
8868 rm -f conftest.$ac_objext conftest$ac_exeext
8869 if { (ac_try="$ac_link"
8870 case "(($ac_try" in
8871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872   *) ac_try_echo=$ac_try;;
8873 esac
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875   (eval "$ac_link") 2>conftest.er1
8876   ac_status=$?
8877   grep -v '^ *+' conftest.er1 >conftest.err
8878   rm -f conftest.er1
8879   cat conftest.err >&5
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); } &&
8882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8883   { (case "(($ac_try" in
8884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885   *) ac_try_echo=$ac_try;;
8886 esac
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888   (eval "$ac_try") 2>&5
8889   ac_status=$?
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); }; } &&
8892          { ac_try='test -s conftest$ac_exeext'
8893   { (case "(($ac_try" in
8894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895   *) ac_try_echo=$ac_try;;
8896 esac
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898   (eval "$ac_try") 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); }; }; then
8902   ac_cv_lib_Xext_XShmQueryExtension=yes
8903 else
8904   echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8906
8907         ac_cv_lib_Xext_XShmQueryExtension=no
8908 fi
8909
8910 rm -f core conftest.err conftest.$ac_objext \
8911       conftest$ac_exeext conftest.$ac_ext
8912 LIBS=$ac_check_lib_save_LIBS
8913 fi
8914 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8915 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8916 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8917
8918 cat >>confdefs.h <<\_ACEOF
8919 #define HAVE_LIBXXSHM 1
8920 _ACEOF
8921
8922 fi
8923
8924         fi
8925
8926                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8927         then
8928               { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8929 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
8930 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8931   echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933   ac_check_lib_save_LIBS=$LIBS
8934 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8935 cat >conftest.$ac_ext <<_ACEOF
8936 /* confdefs.h.  */
8937 _ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h.  */
8941
8942 /* Override any GCC internal prototype to avoid an error.
8943    Use char because int might match the return type of a GCC
8944    builtin and then its argument prototype would still apply.  */
8945 #ifdef __cplusplus
8946 extern "C"
8947 #endif
8948 char XShapeQueryExtension ();
8949 int
8950 main ()
8951 {
8952 return XShapeQueryExtension ();
8953   ;
8954   return 0;
8955 }
8956 _ACEOF
8957 rm -f conftest.$ac_objext conftest$ac_exeext
8958 if { (ac_try="$ac_link"
8959 case "(($ac_try" in
8960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8961   *) ac_try_echo=$ac_try;;
8962 esac
8963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964   (eval "$ac_link") 2>conftest.er1
8965   ac_status=$?
8966   grep -v '^ *+' conftest.er1 >conftest.err
8967   rm -f conftest.er1
8968   cat conftest.err >&5
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); } &&
8971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8972   { (case "(($ac_try" in
8973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974   *) ac_try_echo=$ac_try;;
8975 esac
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977   (eval "$ac_try") 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); }; } &&
8981          { ac_try='test -s conftest$ac_exeext'
8982   { (case "(($ac_try" in
8983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984   *) ac_try_echo=$ac_try;;
8985 esac
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987   (eval "$ac_try") 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); }; }; then
8991   ac_cv_lib_Xext_XShapeQueryExtension=yes
8992 else
8993   echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8995
8996         ac_cv_lib_Xext_XShapeQueryExtension=no
8997 fi
8998
8999 rm -f core conftest.err conftest.$ac_objext \
9000       conftest$ac_exeext conftest.$ac_ext
9001 LIBS=$ac_check_lib_save_LIBS
9002 fi
9003 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9004 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9005 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9006
9007 cat >>confdefs.h <<\_ACEOF
9008 #define HAVE_LIBXSHAPE 1
9009 _ACEOF
9010
9011 fi
9012
9013         fi
9014
9015                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9016         then
9017                 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9018 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9019 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022   ac_check_lib_save_LIBS=$LIBS
9023 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9024 cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h.  */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h.  */
9030
9031 /* Override any GCC internal prototype to avoid an error.
9032    Use char because int might match the return type of a GCC
9033    builtin and then its argument prototype would still apply.  */
9034 #ifdef __cplusplus
9035 extern "C"
9036 #endif
9037 char XF86VidModeQueryExtension ();
9038 int
9039 main ()
9040 {
9041 return XF86VidModeQueryExtension ();
9042   ;
9043   return 0;
9044 }
9045 _ACEOF
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (ac_try="$ac_link"
9048 case "(($ac_try" in
9049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050   *) ac_try_echo=$ac_try;;
9051 esac
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053   (eval "$ac_link") 2>conftest.er1
9054   ac_status=$?
9055   grep -v '^ *+' conftest.er1 >conftest.err
9056   rm -f conftest.er1
9057   cat conftest.err >&5
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); } &&
9060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9061   { (case "(($ac_try" in
9062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063   *) ac_try_echo=$ac_try;;
9064 esac
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066   (eval "$ac_try") 2>&5
9067   ac_status=$?
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); }; } &&
9070          { ac_try='test -s conftest$ac_exeext'
9071   { (case "(($ac_try" in
9072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073   *) ac_try_echo=$ac_try;;
9074 esac
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076   (eval "$ac_try") 2>&5
9077   ac_status=$?
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); }; }; then
9080   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9081 else
9082   echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9084
9085         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9086 fi
9087
9088 rm -f core conftest.err conftest.$ac_objext \
9089       conftest$ac_exeext conftest.$ac_ext
9090 LIBS=$ac_check_lib_save_LIBS
9091 fi
9092 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9093 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9094 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9095
9096 cat >>confdefs.h <<\_ACEOF
9097 #define HAVE_LIBXXF86VM 1
9098 _ACEOF
9099
9100                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
9101
9102 fi
9103
9104         fi
9105
9106                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9107         then
9108                 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114 #include <X11/Xlib.h>
9115 #include <X11/extensions/Xrandr.h>
9116 int
9117 main ()
9118 {
9119 static typeof(XRRSetScreenConfigAndRate) * func;
9120   ;
9121   return 0;
9122 }
9123 _ACEOF
9124 rm -f conftest.$ac_objext
9125 if { (ac_try="$ac_compile"
9126 case "(($ac_try" in
9127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128   *) ac_try_echo=$ac_try;;
9129 esac
9130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9131   (eval "$ac_compile") 2>conftest.er1
9132   ac_status=$?
9133   grep -v '^ *+' conftest.er1 >conftest.err
9134   rm -f conftest.er1
9135   cat conftest.err >&5
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); } &&
9138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9139   { (case "(($ac_try" in
9140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9141   *) ac_try_echo=$ac_try;;
9142 esac
9143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9144   (eval "$ac_try") 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); }; } &&
9148          { ac_try='test -s conftest.$ac_objext'
9149   { (case "(($ac_try" in
9150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151   *) ac_try_echo=$ac_try;;
9152 esac
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154   (eval "$ac_try") 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); }; }; then
9158
9159 cat >>confdefs.h <<\_ACEOF
9160 #define HAVE_LIBXRANDR 1
9161 _ACEOF
9162
9163 else
9164   echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9166
9167
9168 fi
9169
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171         fi
9172
9173                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9174         then
9175               { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9176 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9177 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9178   echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180   ac_check_lib_save_LIBS=$LIBS
9181 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h.  */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h.  */
9188
9189 /* Override any GCC internal prototype to avoid an error.
9190    Use char because int might match the return type of a GCC
9191    builtin and then its argument prototype would still apply.  */
9192 #ifdef __cplusplus
9193 extern "C"
9194 #endif
9195 char XRenderSetPictureTransform ();
9196 int
9197 main ()
9198 {
9199 return XRenderSetPictureTransform ();
9200   ;
9201   return 0;
9202 }
9203 _ACEOF
9204 rm -f conftest.$ac_objext conftest$ac_exeext
9205 if { (ac_try="$ac_link"
9206 case "(($ac_try" in
9207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208   *) ac_try_echo=$ac_try;;
9209 esac
9210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211   (eval "$ac_link") 2>conftest.er1
9212   ac_status=$?
9213   grep -v '^ *+' conftest.er1 >conftest.err
9214   rm -f conftest.er1
9215   cat conftest.err >&5
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); } &&
9218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9219   { (case "(($ac_try" in
9220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221   *) ac_try_echo=$ac_try;;
9222 esac
9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224   (eval "$ac_try") 2>&5
9225   ac_status=$?
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); }; } &&
9228          { ac_try='test -s conftest$ac_exeext'
9229   { (case "(($ac_try" in
9230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231   *) ac_try_echo=$ac_try;;
9232 esac
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234   (eval "$ac_try") 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); }; }; then
9238   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9239 else
9240   echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9242
9243         ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9244 fi
9245
9246 rm -f core conftest.err conftest.$ac_objext \
9247       conftest$ac_exeext conftest.$ac_ext
9248 LIBS=$ac_check_lib_save_LIBS
9249 fi
9250 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9251 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9252 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9253
9254 cat >>confdefs.h <<\_ACEOF
9255 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9256 _ACEOF
9257
9258 fi
9259
9260         fi
9261
9262         if test "x$with_opengl" != "xno"
9263     then
9264
9265
9266
9267
9268 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
9269 do
9270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   cat >conftest.$ac_ext <<_ACEOF
9277 /* confdefs.h.  */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h.  */
9282 #ifdef HAVE_GL_GLX_H
9283 # include <GL/glx.h>
9284 #endif
9285
9286 #include <$ac_header>
9287 _ACEOF
9288 rm -f conftest.$ac_objext
9289 if { (ac_try="$ac_compile"
9290 case "(($ac_try" in
9291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9292   *) ac_try_echo=$ac_try;;
9293 esac
9294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9295   (eval "$ac_compile") 2>conftest.er1
9296   ac_status=$?
9297   grep -v '^ *+' conftest.er1 >conftest.err
9298   rm -f conftest.er1
9299   cat conftest.err >&5
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); } &&
9302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9303   { (case "(($ac_try" in
9304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305   *) ac_try_echo=$ac_try;;
9306 esac
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308   (eval "$ac_try") 2>&5
9309   ac_status=$?
9310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311   (exit $ac_status); }; } &&
9312          { ac_try='test -s conftest.$ac_objext'
9313   { (case "(($ac_try" in
9314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315   *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318   (eval "$ac_try") 2>&5
9319   ac_status=$?
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); }; }; then
9322   eval "$as_ac_Header=yes"
9323 else
9324   echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327         eval "$as_ac_Header=no"
9328 fi
9329
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 fi
9332 ac_res=`eval echo '${'$as_ac_Header'}'`
9333                { echo "$as_me:$LINENO: result: $ac_res" >&5
9334 echo "${ECHO_T}$ac_res" >&6; }
9335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9336   cat >>confdefs.h <<_ACEOF
9337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9338 _ACEOF
9339
9340 fi
9341
9342 done
9343
9344         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9345         then
9346                     { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9347 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
9348 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h.  */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h.  */
9357 #include <GL/gl.h>
9358 int
9359 main ()
9360 {
9361 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
9362   ;
9363   return 0;
9364 }
9365 _ACEOF
9366 rm -f conftest.$ac_objext
9367 if { (ac_try="$ac_compile"
9368 case "(($ac_try" in
9369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370   *) ac_try_echo=$ac_try;;
9371 esac
9372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373   (eval "$ac_compile") 2>conftest.er1
9374   ac_status=$?
9375   grep -v '^ *+' conftest.er1 >conftest.err
9376   rm -f conftest.er1
9377   cat conftest.err >&5
9378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); } &&
9380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9381   { (case "(($ac_try" in
9382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383   *) ac_try_echo=$ac_try;;
9384 esac
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386   (eval "$ac_try") 2>&5
9387   ac_status=$?
9388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389   (exit $ac_status); }; } &&
9390          { ac_try='test -s conftest.$ac_objext'
9391   { (case "(($ac_try" in
9392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393   *) ac_try_echo=$ac_try;;
9394 esac
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396   (eval "$ac_try") 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); }; }; then
9400   wine_cv_opengl_header_version_OK="yes"
9401 else
9402   echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9404
9405         wine_cv_opengl_header_version_OK="no"
9406
9407 fi
9408
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410
9411 fi
9412 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
9413 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
9414
9415             if test "$wine_cv_opengl_header_version_OK" = "yes"
9416             then
9417                                 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
9418 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
9419 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
9420   echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422   ac_check_lib_save_LIBS=$LIBS
9423 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
9424 cat >conftest.$ac_ext <<_ACEOF
9425 /* confdefs.h.  */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h.  */
9430
9431 /* Override any GCC internal prototype to avoid an error.
9432    Use char because int might match the return type of a GCC
9433    builtin and then its argument prototype would still apply.  */
9434 #ifdef __cplusplus
9435 extern "C"
9436 #endif
9437 char glXCreateContext ();
9438 int
9439 main ()
9440 {
9441 return glXCreateContext ();
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (ac_try="$ac_link"
9448 case "(($ac_try" in
9449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450   *) ac_try_echo=$ac_try;;
9451 esac
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453   (eval "$ac_link") 2>conftest.er1
9454   ac_status=$?
9455   grep -v '^ *+' conftest.er1 >conftest.err
9456   rm -f conftest.er1
9457   cat conftest.err >&5
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); } &&
9460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9461   { (case "(($ac_try" in
9462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463   *) ac_try_echo=$ac_try;;
9464 esac
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466   (eval "$ac_try") 2>&5
9467   ac_status=$?
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); }; } &&
9470          { ac_try='test -s conftest$ac_exeext'
9471   { (case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476   (eval "$ac_try") 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; }; then
9480   ac_cv_lib_GL_glXCreateContext=yes
9481 else
9482   echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9484
9485         ac_cv_lib_GL_glXCreateContext=no
9486 fi
9487
9488 rm -f core conftest.err conftest.$ac_objext \
9489       conftest$ac_exeext conftest.$ac_ext
9490 LIBS=$ac_check_lib_save_LIBS
9491 fi
9492 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
9493 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
9494 if test $ac_cv_lib_GL_glXCreateContext = yes; then
9495   OPENGL_LIBS="-lGL"
9496
9497 fi
9498
9499
9500                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
9501                 then
9502                         OPENGLFILES='$(OPENGLFILES)'
9503
9504 cat >>confdefs.h <<\_ACEOF
9505 #define HAVE_OPENGL 1
9506 _ACEOF
9507
9508                 else
9509                     if test -f /usr/X11R6/lib/libGL.a
9510                     then
9511                        { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
9512 This prevents linking to OpenGL. Delete the file and restart configure." >&5
9513 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
9514 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
9515    { (exit 1); exit 1; }; }
9516                     else
9517                                                 wine_cv_opengl_libs_found="no"
9518                     fi
9519                 fi
9520
9521                                 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
9522 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
9523 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
9524   echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526   ac_check_lib_save_LIBS=$LIBS
9527 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
9528                  $LIBS"
9529 cat >conftest.$ac_ext <<_ACEOF
9530 /* confdefs.h.  */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h.  */
9535
9536 /* Override any GCC internal prototype to avoid an error.
9537    Use char because int might match the return type of a GCC
9538    builtin and then its argument prototype would still apply.  */
9539 #ifdef __cplusplus
9540 extern "C"
9541 #endif
9542 char gluLookAt ();
9543 int
9544 main ()
9545 {
9546 return gluLookAt ();
9547   ;
9548   return 0;
9549 }
9550 _ACEOF
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (ac_try="$ac_link"
9553 case "(($ac_try" in
9554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555   *) ac_try_echo=$ac_try;;
9556 esac
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558   (eval "$ac_link") 2>conftest.er1
9559   ac_status=$?
9560   grep -v '^ *+' conftest.er1 >conftest.err
9561   rm -f conftest.er1
9562   cat conftest.err >&5
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } &&
9565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9566   { (case "(($ac_try" in
9567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568   *) ac_try_echo=$ac_try;;
9569 esac
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571   (eval "$ac_try") 2>&5
9572   ac_status=$?
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); }; } &&
9575          { ac_try='test -s conftest$ac_exeext'
9576   { (case "(($ac_try" in
9577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578   *) ac_try_echo=$ac_try;;
9579 esac
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581   (eval "$ac_try") 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; }; then
9585   ac_cv_lib_GLU_gluLookAt=yes
9586 else
9587   echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9589
9590         ac_cv_lib_GLU_gluLookAt=no
9591 fi
9592
9593 rm -f core conftest.err conftest.$ac_objext \
9594       conftest$ac_exeext conftest.$ac_ext
9595 LIBS=$ac_check_lib_save_LIBS
9596 fi
9597 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9598 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
9599 if test $ac_cv_lib_GLU_gluLookAt = yes; then
9600   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
9601                              GLU32FILES='$(GLU32FILES)'
9602
9603 fi
9604
9605              fi
9606
9607                           { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9608 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
9609 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9610   echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612   ac_check_lib_save_LIBS=$LIBS
9613 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h.  */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h.  */
9620
9621 /* Override any GCC internal prototype to avoid an error.
9622    Use char because int might match the return type of a GCC
9623    builtin and then its argument prototype would still apply.  */
9624 #ifdef __cplusplus
9625 extern "C"
9626 #endif
9627 char glutMainLoop ();
9628 int
9629 main ()
9630 {
9631 return glutMainLoop ();
9632   ;
9633   return 0;
9634 }
9635 _ACEOF
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (ac_try="$ac_link"
9638 case "(($ac_try" in
9639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640   *) ac_try_echo=$ac_try;;
9641 esac
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643   (eval "$ac_link") 2>conftest.er1
9644   ac_status=$?
9645   grep -v '^ *+' conftest.er1 >conftest.err
9646   rm -f conftest.er1
9647   cat conftest.err >&5
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   (exit $ac_status); } &&
9650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9651   { (case "(($ac_try" in
9652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653   *) ac_try_echo=$ac_try;;
9654 esac
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656   (eval "$ac_try") 2>&5
9657   ac_status=$?
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); }; } &&
9660          { ac_try='test -s conftest$ac_exeext'
9661   { (case "(($ac_try" in
9662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663   *) ac_try_echo=$ac_try;;
9664 esac
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666   (eval "$ac_try") 2>&5
9667   ac_status=$?
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); }; }; then
9670   ac_cv_lib_glut_glutMainLoop=yes
9671 else
9672   echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675         ac_cv_lib_glut_glutMainLoop=no
9676 fi
9677
9678 rm -f core conftest.err conftest.$ac_objext \
9679       conftest$ac_exeext conftest.$ac_ext
9680 LIBS=$ac_check_lib_save_LIBS
9681 fi
9682 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9683 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
9684 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9685   GLUT_LIBS="-lglut -lXmu -lXi"
9686
9687                         GLUT32FILES='$(GLUT32FILES)'
9688
9689 fi
9690
9691          else
9692              wine_cv_opengl_headers_found="no"
9693          fi
9694     fi
9695         NASLIBS=""
9696
9697
9698 for ac_header in audio/audiolib.h
9699 do
9700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9702   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9705   echo $ECHO_N "(cached) $ECHO_C" >&6
9706 fi
9707 ac_res=`eval echo '${'$as_ac_Header'}'`
9708                { echo "$as_me:$LINENO: result: $ac_res" >&5
9709 echo "${ECHO_T}$ac_res" >&6; }
9710 else
9711   # Is the header compilable?
9712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9714 cat >conftest.$ac_ext <<_ACEOF
9715 /* confdefs.h.  */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h.  */
9720 $ac_includes_default
9721 #include <$ac_header>
9722 _ACEOF
9723 rm -f conftest.$ac_objext
9724 if { (ac_try="$ac_compile"
9725 case "(($ac_try" in
9726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727   *) ac_try_echo=$ac_try;;
9728 esac
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730   (eval "$ac_compile") 2>conftest.er1
9731   ac_status=$?
9732   grep -v '^ *+' conftest.er1 >conftest.err
9733   rm -f conftest.er1
9734   cat conftest.err >&5
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); } &&
9737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9738   { (case "(($ac_try" in
9739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740   *) ac_try_echo=$ac_try;;
9741 esac
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743   (eval "$ac_try") 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; } &&
9747          { ac_try='test -s conftest.$ac_objext'
9748   { (case "(($ac_try" in
9749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750   *) ac_try_echo=$ac_try;;
9751 esac
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753   (eval "$ac_try") 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; }; then
9757   ac_header_compiler=yes
9758 else
9759   echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9761
9762         ac_header_compiler=no
9763 fi
9764
9765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9767 echo "${ECHO_T}$ac_header_compiler" >&6; }
9768
9769 # Is the header present?
9770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778 #include <$ac_header>
9779 _ACEOF
9780 if { (ac_try="$ac_cpp conftest.$ac_ext"
9781 case "(($ac_try" in
9782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783   *) ac_try_echo=$ac_try;;
9784 esac
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9787   ac_status=$?
9788   grep -v '^ *+' conftest.er1 >conftest.err
9789   rm -f conftest.er1
9790   cat conftest.err >&5
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } >/dev/null; then
9793   if test -s conftest.err; then
9794     ac_cpp_err=$ac_c_preproc_warn_flag
9795     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9796   else
9797     ac_cpp_err=
9798   fi
9799 else
9800   ac_cpp_err=yes
9801 fi
9802 if test -z "$ac_cpp_err"; then
9803   ac_header_preproc=yes
9804 else
9805   echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9807
9808   ac_header_preproc=no
9809 fi
9810
9811 rm -f conftest.err conftest.$ac_ext
9812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9813 echo "${ECHO_T}$ac_header_preproc" >&6; }
9814
9815 # So?  What about this header?
9816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9817   yes:no: )
9818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9822     ac_header_preproc=yes
9823     ;;
9824   no:yes:* )
9825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9837     ( cat <<\_ASBOX
9838 ## ------------------------------------ ##
9839 ## Report this to wine-devel@winehq.org ##
9840 ## ------------------------------------ ##
9841 _ASBOX
9842      ) | sed "s/^/$as_me: WARNING:     /" >&2
9843     ;;
9844 esac
9845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9848   echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850   eval "$as_ac_Header=\$ac_header_preproc"
9851 fi
9852 ac_res=`eval echo '${'$as_ac_Header'}'`
9853                { echo "$as_me:$LINENO: result: $ac_res" >&5
9854 echo "${ECHO_T}$ac_res" >&6; }
9855
9856 fi
9857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9858   cat >>confdefs.h <<_ACEOF
9859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9860 _ACEOF
9861
9862 for ac_header in audio/soundlib.h
9863 do
9864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9868   echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870   cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h.  */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h.  */
9876 #include <audio/audiolib.h>
9877
9878 #include <$ac_header>
9879 _ACEOF
9880 rm -f conftest.$ac_objext
9881 if { (ac_try="$ac_compile"
9882 case "(($ac_try" in
9883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884   *) ac_try_echo=$ac_try;;
9885 esac
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887   (eval "$ac_compile") 2>conftest.er1
9888   ac_status=$?
9889   grep -v '^ *+' conftest.er1 >conftest.err
9890   rm -f conftest.er1
9891   cat conftest.err >&5
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); } &&
9894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9895   { (case "(($ac_try" in
9896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897   *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900   (eval "$ac_try") 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); }; } &&
9904          { ac_try='test -s conftest.$ac_objext'
9905   { (case "(($ac_try" in
9906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907   *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910   (eval "$ac_try") 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; }; then
9914   eval "$as_ac_Header=yes"
9915 else
9916   echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9918
9919         eval "$as_ac_Header=no"
9920 fi
9921
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 fi
9924 ac_res=`eval echo '${'$as_ac_Header'}'`
9925                { echo "$as_me:$LINENO: result: $ac_res" >&5
9926 echo "${ECHO_T}$ac_res" >&6; }
9927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9928   cat >>confdefs.h <<_ACEOF
9929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9930 _ACEOF
9931
9932 fi
9933
9934 done
9935
9936           { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9937 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
9938 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9939   echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941   ac_check_lib_save_LIBS=$LIBS
9942 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h.  */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h.  */
9949
9950 /* Override any GCC internal prototype to avoid an error.
9951    Use char because int might match the return type of a GCC
9952    builtin and then its argument prototype would still apply.  */
9953 #ifdef __cplusplus
9954 extern "C"
9955 #endif
9956 char AuCreateFlow ();
9957 int
9958 main ()
9959 {
9960 return AuCreateFlow ();
9961   ;
9962   return 0;
9963 }
9964 _ACEOF
9965 rm -f conftest.$ac_objext conftest$ac_exeext
9966 if { (ac_try="$ac_link"
9967 case "(($ac_try" in
9968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969   *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972   (eval "$ac_link") 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } &&
9979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9980   { (case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985   (eval "$ac_try") 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); }; } &&
9989          { ac_try='test -s conftest$ac_exeext'
9990   { (case "(($ac_try" in
9991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992   *) ac_try_echo=$ac_try;;
9993 esac
9994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995   (eval "$ac_try") 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; }; then
9999   ac_cv_lib_audio_AuCreateFlow=yes
10000 else
10001   echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10003
10004         ac_cv_lib_audio_AuCreateFlow=no
10005 fi
10006
10007 rm -f core conftest.err conftest.$ac_objext \
10008       conftest$ac_exeext conftest.$ac_ext
10009 LIBS=$ac_check_lib_save_LIBS
10010 fi
10011 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10012 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10013 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10014
10015 cat >>confdefs.h <<\_ACEOF
10016 #define HAVE_NAS 1
10017 _ACEOF
10018
10019                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10020 fi
10021
10022 fi
10023
10024 done
10025
10026
10027     CPPFLAGS="$ac_save_CPPFLAGS"
10028     XFILES='$(XFILES)'
10029 else
10030     XLIB=""
10031     X_CFLAGS=""
10032     X_LIBS=""
10033 fi
10034
10035
10036 XML2LIBS=""
10037
10038 XML2INCL=""
10039
10040 XSLTLIBS=""
10041
10042 XSLTINCL=""
10043
10044 if test "$PKG_CONFIG" != "false"
10045 then
10046     ac_save_CPPFLAGS="$CPPFLAGS"
10047     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10048     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
10049     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10050
10051 for ac_header in libxml/parser.h
10052 do
10053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10055   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10058   echo $ECHO_N "(cached) $ECHO_C" >&6
10059 fi
10060 ac_res=`eval echo '${'$as_ac_Header'}'`
10061                { echo "$as_me:$LINENO: result: $ac_res" >&5
10062 echo "${ECHO_T}$ac_res" >&6; }
10063 else
10064   # Is the header compilable?
10065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10067 cat >conftest.$ac_ext <<_ACEOF
10068 /* confdefs.h.  */
10069 _ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h.  */
10073 $ac_includes_default
10074 #include <$ac_header>
10075 _ACEOF
10076 rm -f conftest.$ac_objext
10077 if { (ac_try="$ac_compile"
10078 case "(($ac_try" in
10079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080   *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083   (eval "$ac_compile") 2>conftest.er1
10084   ac_status=$?
10085   grep -v '^ *+' conftest.er1 >conftest.err
10086   rm -f conftest.er1
10087   cat conftest.err >&5
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); } &&
10090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10091   { (case "(($ac_try" in
10092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093   *) ac_try_echo=$ac_try;;
10094 esac
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096   (eval "$ac_try") 2>&5
10097   ac_status=$?
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); }; } &&
10100          { ac_try='test -s conftest.$ac_objext'
10101   { (case "(($ac_try" in
10102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103   *) ac_try_echo=$ac_try;;
10104 esac
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106   (eval "$ac_try") 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; }; then
10110   ac_header_compiler=yes
10111 else
10112   echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10114
10115         ac_header_compiler=no
10116 fi
10117
10118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10120 echo "${ECHO_T}$ac_header_compiler" >&6; }
10121
10122 # Is the header present?
10123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10125 cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h.  */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h.  */
10131 #include <$ac_header>
10132 _ACEOF
10133 if { (ac_try="$ac_cpp conftest.$ac_ext"
10134 case "(($ac_try" in
10135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136   *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10140   ac_status=$?
10141   grep -v '^ *+' conftest.er1 >conftest.err
10142   rm -f conftest.er1
10143   cat conftest.err >&5
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); } >/dev/null; then
10146   if test -s conftest.err; then
10147     ac_cpp_err=$ac_c_preproc_warn_flag
10148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10149   else
10150     ac_cpp_err=
10151   fi
10152 else
10153   ac_cpp_err=yes
10154 fi
10155 if test -z "$ac_cpp_err"; then
10156   ac_header_preproc=yes
10157 else
10158   echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161   ac_header_preproc=no
10162 fi
10163
10164 rm -f conftest.err conftest.$ac_ext
10165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10166 echo "${ECHO_T}$ac_header_preproc" >&6; }
10167
10168 # So?  What about this header?
10169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10170   yes:no: )
10171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10175     ac_header_preproc=yes
10176     ;;
10177   no:yes:* )
10178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10190     ( cat <<\_ASBOX
10191 ## ------------------------------------ ##
10192 ## Report this to wine-devel@winehq.org ##
10193 ## ------------------------------------ ##
10194 _ASBOX
10195      ) | sed "s/^/$as_me: WARNING:     /" >&2
10196     ;;
10197 esac
10198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203   eval "$as_ac_Header=\$ac_header_preproc"
10204 fi
10205 ac_res=`eval echo '${'$as_ac_Header'}'`
10206                { echo "$as_me:$LINENO: result: $ac_res" >&5
10207 echo "${ECHO_T}$ac_res" >&6; }
10208
10209 fi
10210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10211   cat >>confdefs.h <<_ACEOF
10212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10213 _ACEOF
10214  { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10215 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
10216 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
10217   echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219   ac_check_lib_save_LIBS=$LIBS
10220 LIBS="-lxml2 $ac_xml_libs $LIBS"
10221 cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h.  */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h.  */
10227
10228 /* Override any GCC internal prototype to avoid an error.
10229    Use char because int might match the return type of a GCC
10230    builtin and then its argument prototype would still apply.  */
10231 #ifdef __cplusplus
10232 extern "C"
10233 #endif
10234 char xmlParseMemory ();
10235 int
10236 main ()
10237 {
10238 return xmlParseMemory ();
10239   ;
10240   return 0;
10241 }
10242 _ACEOF
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (ac_try="$ac_link"
10245 case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_link") 2>conftest.er1
10251   ac_status=$?
10252   grep -v '^ *+' conftest.er1 >conftest.err
10253   rm -f conftest.er1
10254   cat conftest.err >&5
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); } &&
10257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10258   { (case "(($ac_try" in
10259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260   *) ac_try_echo=$ac_try;;
10261 esac
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263   (eval "$ac_try") 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; } &&
10267          { ac_try='test -s conftest$ac_exeext'
10268   { (case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273   (eval "$ac_try") 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }; }; then
10277   ac_cv_lib_xml2_xmlParseMemory=yes
10278 else
10279   echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282         ac_cv_lib_xml2_xmlParseMemory=no
10283 fi
10284
10285 rm -f core conftest.err conftest.$ac_objext \
10286       conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS
10288 fi
10289 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10290 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10291 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
10292
10293 cat >>confdefs.h <<\_ACEOF
10294 #define HAVE_LIBXML2 1
10295 _ACEOF
10296
10297              XML2LIBS="$ac_xml_libs"
10298              XML2INCL="$ac_xml_cflags"
10299 fi
10300
10301          { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10302 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
10303 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
10304   echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306   ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-lxml2 $ac_xml_libs $LIBS"
10308 cat >conftest.$ac_ext <<_ACEOF
10309 /* confdefs.h.  */
10310 _ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h.  */
10314
10315 /* Override any GCC internal prototype to avoid an error.
10316    Use char because int might match the return type of a GCC
10317    builtin and then its argument prototype would still apply.  */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 char xmlReadMemory ();
10322 int
10323 main ()
10324 {
10325 return xmlReadMemory ();
10326   ;
10327   return 0;
10328 }
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (ac_try="$ac_link"
10332 case "(($ac_try" in
10333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334   *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337   (eval "$ac_link") 2>conftest.er1
10338   ac_status=$?
10339   grep -v '^ *+' conftest.er1 >conftest.err
10340   rm -f conftest.er1
10341   cat conftest.err >&5
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); } &&
10344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10345   { (case "(($ac_try" in
10346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347   *) ac_try_echo=$ac_try;;
10348 esac
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350   (eval "$ac_try") 2>&5
10351   ac_status=$?
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); }; } &&
10354          { ac_try='test -s conftest$ac_exeext'
10355   { (case "(($ac_try" in
10356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357   *) ac_try_echo=$ac_try;;
10358 esac
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360   (eval "$ac_try") 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; }; then
10364   ac_cv_lib_xml2_xmlReadMemory=yes
10365 else
10366   echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10368
10369         ac_cv_lib_xml2_xmlReadMemory=no
10370 fi
10371
10372 rm -f core conftest.err conftest.$ac_objext \
10373       conftest$ac_exeext conftest.$ac_ext
10374 LIBS=$ac_check_lib_save_LIBS
10375 fi
10376 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10377 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10378 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
10379
10380 cat >>confdefs.h <<\_ACEOF
10381 #define HAVE_XMLREADMEMORY 1
10382 _ACEOF
10383
10384 fi
10385
10386
10387 fi
10388
10389 done
10390
10391     CPPFLAGS="$ac_save_CPPFLAGS"
10392     ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
10393     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
10394     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
10395
10396
10397 for ac_header in libxslt/pattern.h libxslt/transform.h
10398 do
10399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10403   echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405   cat >conftest.$ac_ext <<_ACEOF
10406 /* confdefs.h.  */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h.  */
10411 #ifdef HAVE_LIBXSLT_PATTERN_H
10412 # include <libxslt/pattern.h>
10413 #endif
10414
10415 #include <$ac_header>
10416 _ACEOF
10417 rm -f conftest.$ac_objext
10418 if { (ac_try="$ac_compile"
10419 case "(($ac_try" in
10420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421   *) ac_try_echo=$ac_try;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424   (eval "$ac_compile") 2>conftest.er1
10425   ac_status=$?
10426   grep -v '^ *+' conftest.er1 >conftest.err
10427   rm -f conftest.er1
10428   cat conftest.err >&5
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); } &&
10431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10432   { (case "(($ac_try" in
10433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434   *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437   (eval "$ac_try") 2>&5
10438   ac_status=$?
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); }; } &&
10441          { ac_try='test -s conftest.$ac_objext'
10442   { (case "(($ac_try" in
10443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444   *) ac_try_echo=$ac_try;;
10445 esac
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447   (eval "$ac_try") 2>&5
10448   ac_status=$?
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); }; }; then
10451   eval "$as_ac_Header=yes"
10452 else
10453   echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10455
10456         eval "$as_ac_Header=no"
10457 fi
10458
10459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460 fi
10461 ac_res=`eval echo '${'$as_ac_Header'}'`
10462                { echo "$as_me:$LINENO: result: $ac_res" >&5
10463 echo "${ECHO_T}$ac_res" >&6; }
10464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10465   cat >>confdefs.h <<_ACEOF
10466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10467 _ACEOF
10468  { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
10469 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
10470 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
10471   echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473   ac_check_lib_save_LIBS=$LIBS
10474 LIBS="-lxslt $ac_xslt_libs $LIBS"
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h.  */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h.  */
10481
10482 /* Override any GCC internal prototype to avoid an error.
10483    Use char because int might match the return type of a GCC
10484    builtin and then its argument prototype would still apply.  */
10485 #ifdef __cplusplus
10486 extern "C"
10487 #endif
10488 char xsltCompilePattern ();
10489 int
10490 main ()
10491 {
10492 return xsltCompilePattern ();
10493   ;
10494   return 0;
10495 }
10496 _ACEOF
10497 rm -f conftest.$ac_objext conftest$ac_exeext
10498 if { (ac_try="$ac_link"
10499 case "(($ac_try" in
10500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501   *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504   (eval "$ac_link") 2>conftest.er1
10505   ac_status=$?
10506   grep -v '^ *+' conftest.er1 >conftest.err
10507   rm -f conftest.er1
10508   cat conftest.err >&5
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); } &&
10511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10512   { (case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517   (eval "$ac_try") 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); }; } &&
10521          { ac_try='test -s conftest$ac_exeext'
10522   { (case "(($ac_try" in
10523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524   *) ac_try_echo=$ac_try;;
10525 esac
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527   (eval "$ac_try") 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); }; }; then
10531   ac_cv_lib_xslt_xsltCompilePattern=yes
10532 else
10533   echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10535
10536         ac_cv_lib_xslt_xsltCompilePattern=no
10537 fi
10538
10539 rm -f core conftest.err conftest.$ac_objext \
10540       conftest$ac_exeext conftest.$ac_ext
10541 LIBS=$ac_check_lib_save_LIBS
10542 fi
10543 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
10544 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
10545 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
10546
10547 cat >>confdefs.h <<\_ACEOF
10548 #define HAVE_LIBXSLT 1
10549 _ACEOF
10550
10551              XSLTLIBS="$ac_xslt_libs"
10552              XSLTINCL="$ac_xslt_cflags"
10553 fi
10554
10555
10556 fi
10557
10558 done
10559
10560     CPPFLAGS="$ac_save_CPPFLAGS"
10561 fi
10562
10563 HALINCL=""
10564
10565 if test "$PKG_CONFIG" != "false"
10566 then
10567     ac_save_CPPFLAGS="$CPPFLAGS"
10568     ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
10569     ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
10570     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
10571
10572
10573 for ac_header in dbus/dbus.h hal/libhal.h
10574 do
10575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10577   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10580   echo $ECHO_N "(cached) $ECHO_C" >&6
10581 fi
10582 ac_res=`eval echo '${'$as_ac_Header'}'`
10583                { echo "$as_me:$LINENO: result: $ac_res" >&5
10584 echo "${ECHO_T}$ac_res" >&6; }
10585 else
10586   # Is the header compilable?
10587 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10589 cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h.  */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h.  */
10595 $ac_includes_default
10596 #include <$ac_header>
10597 _ACEOF
10598 rm -f conftest.$ac_objext
10599 if { (ac_try="$ac_compile"
10600 case "(($ac_try" in
10601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602   *) ac_try_echo=$ac_try;;
10603 esac
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605   (eval "$ac_compile") 2>conftest.er1
10606   ac_status=$?
10607   grep -v '^ *+' conftest.er1 >conftest.err
10608   rm -f conftest.er1
10609   cat conftest.err >&5
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } &&
10612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10613   { (case "(($ac_try" in
10614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615   *) ac_try_echo=$ac_try;;
10616 esac
10617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618   (eval "$ac_try") 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); }; } &&
10622          { ac_try='test -s conftest.$ac_objext'
10623   { (case "(($ac_try" in
10624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625   *) ac_try_echo=$ac_try;;
10626 esac
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628   (eval "$ac_try") 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); }; }; then
10632   ac_header_compiler=yes
10633 else
10634   echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10636
10637         ac_header_compiler=no
10638 fi
10639
10640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10642 echo "${ECHO_T}$ac_header_compiler" >&6; }
10643
10644 # Is the header present?
10645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h.  */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h.  */
10653 #include <$ac_header>
10654 _ACEOF
10655 if { (ac_try="$ac_cpp conftest.$ac_ext"
10656 case "(($ac_try" in
10657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658   *) ac_try_echo=$ac_try;;
10659 esac
10660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10662   ac_status=$?
10663   grep -v '^ *+' conftest.er1 >conftest.err
10664   rm -f conftest.er1
10665   cat conftest.err >&5
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } >/dev/null; then
10668   if test -s conftest.err; then
10669     ac_cpp_err=$ac_c_preproc_warn_flag
10670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10671   else
10672     ac_cpp_err=
10673   fi
10674 else
10675   ac_cpp_err=yes
10676 fi
10677 if test -z "$ac_cpp_err"; then
10678   ac_header_preproc=yes
10679 else
10680   echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10682
10683   ac_header_preproc=no
10684 fi
10685
10686 rm -f conftest.err conftest.$ac_ext
10687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10688 echo "${ECHO_T}$ac_header_preproc" >&6; }
10689
10690 # So?  What about this header?
10691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10692   yes:no: )
10693     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10697     ac_header_preproc=yes
10698     ;;
10699   no:yes:* )
10700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10702     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10703 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10704     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10706     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10707 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10710     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10712     ( cat <<\_ASBOX
10713 ## ------------------------------------ ##
10714 ## Report this to wine-devel@winehq.org ##
10715 ## ------------------------------------ ##
10716 _ASBOX
10717      ) | sed "s/^/$as_me: WARNING:     /" >&2
10718     ;;
10719 esac
10720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10723   echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725   eval "$as_ac_Header=\$ac_header_preproc"
10726 fi
10727 ac_res=`eval echo '${'$as_ac_Header'}'`
10728                { echo "$as_me:$LINENO: result: $ac_res" >&5
10729 echo "${ECHO_T}$ac_res" >&6; }
10730
10731 fi
10732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10733   cat >>confdefs.h <<_ACEOF
10734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10735 _ACEOF
10736
10737 fi
10738
10739 done
10740
10741     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
10742     then
10743         { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
10744 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
10745 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
10746   echo $ECHO_N "(cached) $ECHO_C" >&6
10747 else
10748   ac_check_lib_save_LIBS=$LIBS
10749 LIBS="-lhal  $LIBS"
10750 cat >conftest.$ac_ext <<_ACEOF
10751 /* confdefs.h.  */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h.  */
10756
10757 /* Override any GCC internal prototype to avoid an error.
10758    Use char because int might match the return type of a GCC
10759    builtin and then its argument prototype would still apply.  */
10760 #ifdef __cplusplus
10761 extern "C"
10762 #endif
10763 char libhal_ctx_new ();
10764 int
10765 main ()
10766 {
10767 return libhal_ctx_new ();
10768   ;
10769   return 0;
10770 }
10771 _ACEOF
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (ac_try="$ac_link"
10774 case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779   (eval "$ac_link") 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } &&
10786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10787   { (case "(($ac_try" in
10788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789   *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792   (eval "$ac_try") 2>&5
10793   ac_status=$?
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); }; } &&
10796          { ac_try='test -s conftest$ac_exeext'
10797   { (case "(($ac_try" in
10798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799   *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802   (eval "$ac_try") 2>&5
10803   ac_status=$?
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); }; }; then
10806   ac_cv_lib_hal_libhal_ctx_new=yes
10807 else
10808   echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10810
10811         ac_cv_lib_hal_libhal_ctx_new=no
10812 fi
10813
10814 rm -f core conftest.err conftest.$ac_objext \
10815       conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10817 fi
10818 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
10819 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
10820 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
10821   { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
10822 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
10823 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
10824   echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826   ac_check_lib_save_LIBS=$LIBS
10827 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
10828 cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h.  */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h.  */
10834
10835 /* Override any GCC internal prototype to avoid an error.
10836    Use char because int might match the return type of a GCC
10837    builtin and then its argument prototype would still apply.  */
10838 #ifdef __cplusplus
10839 extern "C"
10840 #endif
10841 char dbus_connection_close ();
10842 int
10843 main ()
10844 {
10845 return dbus_connection_close ();
10846   ;
10847   return 0;
10848 }
10849 _ACEOF
10850 rm -f conftest.$ac_objext conftest$ac_exeext
10851 if { (ac_try="$ac_link"
10852 case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_link") 2>conftest.er1
10858   ac_status=$?
10859   grep -v '^ *+' conftest.er1 >conftest.err
10860   rm -f conftest.er1
10861   cat conftest.err >&5
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } &&
10864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865   { (case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870   (eval "$ac_try") 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }; } &&
10874          { ac_try='test -s conftest$ac_exeext'
10875   { (case "(($ac_try" in
10876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877   *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880   (eval "$ac_try") 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); }; }; then
10884   ac_cv_lib_dbus_1_dbus_connection_close=yes
10885 else
10886   echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10888
10889         ac_cv_lib_dbus_1_dbus_connection_close=no
10890 fi
10891
10892 rm -f core conftest.err conftest.$ac_objext \
10893       conftest$ac_exeext conftest.$ac_ext
10894 LIBS=$ac_check_lib_save_LIBS
10895 fi
10896 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
10897 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
10898 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
10899
10900 cat >>confdefs.h <<\_ACEOF
10901 #define HAVE_LIBHAL 1
10902 _ACEOF
10903
10904              HALINCL="$ac_hal_cflags"
10905 fi
10906
10907 fi
10908
10909     fi
10910     CPPFLAGS="$ac_save_CPPFLAGS"
10911 fi
10912
10913 CURSESLIBS=""
10914 if test "x$with_curses" != "xno"
10915 then
10916     if test "$ac_cv_header_ncurses_h" = "yes"
10917     then
10918         { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
10919 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
10920 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   ac_check_lib_save_LIBS=$LIBS
10924 LIBS="-lncurses  $LIBS"
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h.  */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h.  */
10931
10932 /* Override any GCC internal prototype to avoid an error.
10933    Use char because int might match the return type of a GCC
10934    builtin and then its argument prototype would still apply.  */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 char waddch ();
10939 int
10940 main ()
10941 {
10942 return waddch ();
10943   ;
10944   return 0;
10945 }
10946 _ACEOF
10947 rm -f conftest.$ac_objext conftest$ac_exeext
10948 if { (ac_try="$ac_link"
10949 case "(($ac_try" in
10950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951   *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954   (eval "$ac_link") 2>conftest.er1
10955   ac_status=$?
10956   grep -v '^ *+' conftest.er1 >conftest.err
10957   rm -f conftest.er1
10958   cat conftest.err >&5
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } &&
10961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10962   { (case "(($ac_try" in
10963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964   *) ac_try_echo=$ac_try;;
10965 esac
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967   (eval "$ac_try") 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); }; } &&
10971          { ac_try='test -s conftest$ac_exeext'
10972   { (case "(($ac_try" in
10973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974   *) ac_try_echo=$ac_try;;
10975 esac
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977   (eval "$ac_try") 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); }; }; then
10981   ac_cv_lib_ncurses_waddch=yes
10982 else
10983   echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10985
10986         ac_cv_lib_ncurses_waddch=no
10987 fi
10988
10989 rm -f core conftest.err conftest.$ac_objext \
10990       conftest$ac_exeext conftest.$ac_ext
10991 LIBS=$ac_check_lib_save_LIBS
10992 fi
10993 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
10994 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
10995 if test $ac_cv_lib_ncurses_waddch = yes; then
10996
10997 cat >>confdefs.h <<\_ACEOF
10998 #define HAVE_LIBNCURSES 1
10999 _ACEOF
11000
11001              CURSESLIBS="-lncurses"
11002 fi
11003
11004     elif test "$ac_cv_header_curses_h" = "yes"
11005     then
11006         { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11007 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
11008 if test "${ac_cv_lib_curses_waddch+set}" = set; then
11009   echo $ECHO_N "(cached) $ECHO_C" >&6
11010 else
11011   ac_check_lib_save_LIBS=$LIBS
11012 LIBS="-lcurses  $LIBS"
11013 cat >conftest.$ac_ext <<_ACEOF
11014 /* confdefs.h.  */
11015 _ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h.  */
11019
11020 /* Override any GCC internal prototype to avoid an error.
11021    Use char because int might match the return type of a GCC
11022    builtin and then its argument prototype would still apply.  */
11023 #ifdef __cplusplus
11024 extern "C"
11025 #endif
11026 char waddch ();
11027 int
11028 main ()
11029 {
11030 return waddch ();
11031   ;
11032   return 0;
11033 }
11034 _ACEOF
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (ac_try="$ac_link"
11037 case "(($ac_try" in
11038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039   *) ac_try_echo=$ac_try;;
11040 esac
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042   (eval "$ac_link") 2>conftest.er1
11043   ac_status=$?
11044   grep -v '^ *+' conftest.er1 >conftest.err
11045   rm -f conftest.er1
11046   cat conftest.err >&5
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); } &&
11049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11050   { (case "(($ac_try" in
11051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052   *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055   (eval "$ac_try") 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); }; } &&
11059          { ac_try='test -s conftest$ac_exeext'
11060   { (case "(($ac_try" in
11061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062   *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065   (eval "$ac_try") 2>&5
11066   ac_status=$?
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); }; }; then
11069   ac_cv_lib_curses_waddch=yes
11070 else
11071   echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.$ac_ext >&5
11073
11074         ac_cv_lib_curses_waddch=no
11075 fi
11076
11077 rm -f core conftest.err conftest.$ac_objext \
11078       conftest$ac_exeext conftest.$ac_ext
11079 LIBS=$ac_check_lib_save_LIBS
11080 fi
11081 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11082 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
11083 if test $ac_cv_lib_curses_waddch = yes; then
11084
11085 cat >>confdefs.h <<\_ACEOF
11086 #define HAVE_LIBCURSES 1
11087 _ACEOF
11088
11089              CURSESLIBS="-lcurses"
11090 fi
11091
11092     fi
11093     ac_save_LIBS="$LIBS"
11094     LIBS="$LIBS $CURSESLIBS"
11095
11096 for ac_func in mousemask
11097 do
11098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11102   echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104   cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h.  */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h.  */
11110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11112 #define $ac_func innocuous_$ac_func
11113
11114 /* System header to define __stub macros and hopefully few prototypes,
11115     which can conflict with char $ac_func (); below.
11116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11117     <limits.h> exists even on freestanding compilers.  */
11118
11119 #ifdef __STDC__
11120 # include <limits.h>
11121 #else
11122 # include <assert.h>
11123 #endif
11124
11125 #undef $ac_func
11126
11127 /* Override any GCC internal prototype to avoid an error.
11128    Use char because int might match the return type of a GCC
11129    builtin and then its argument prototype would still apply.  */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 char $ac_func ();
11134 /* The GNU C library defines this for functions which it implements
11135     to always fail with ENOSYS.  Some functions are actually named
11136     something starting with __ and the normal name is an alias.  */
11137 #if defined __stub_$ac_func || defined __stub___$ac_func
11138 choke me
11139 #endif
11140
11141 int
11142 main ()
11143 {
11144 return $ac_func ();
11145   ;
11146   return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (ac_try="$ac_link"
11151 case "(($ac_try" in
11152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153   *) ac_try_echo=$ac_try;;
11154 esac
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156   (eval "$ac_link") 2>conftest.er1
11157   ac_status=$?
11158   grep -v '^ *+' conftest.er1 >conftest.err
11159   rm -f conftest.er1
11160   cat conftest.err >&5
11161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162   (exit $ac_status); } &&
11163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; } &&
11173          { ac_try='test -s conftest$ac_exeext'
11174   { (case "(($ac_try" in
11175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176   *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179   (eval "$ac_try") 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); }; }; then
11183   eval "$as_ac_var=yes"
11184 else
11185   echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188         eval "$as_ac_var=no"
11189 fi
11190
11191 rm -f core conftest.err conftest.$ac_objext \
11192       conftest$ac_exeext conftest.$ac_ext
11193 fi
11194 ac_res=`eval echo '${'$as_ac_var'}'`
11195                { echo "$as_me:$LINENO: result: $ac_res" >&5
11196 echo "${ECHO_T}$ac_res" >&6; }
11197 if test `eval echo '${'$as_ac_var'}'` = yes; then
11198   cat >>confdefs.h <<_ACEOF
11199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11200 _ACEOF
11201
11202 fi
11203 done
11204
11205     LIBS="$ac_save_LIBS"
11206 fi
11207
11208
11209 # Extract the first word of "sane-config", so it can be a program name with args.
11210 set dummy sane-config; ac_word=$2
11211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11213 if test "${ac_cv_prog_sane_devel+set}" = set; then
11214   echo $ECHO_N "(cached) $ECHO_C" >&6
11215 else
11216   if test -n "$sane_devel"; then
11217   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11218 else
11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11221 do
11222   IFS=$as_save_IFS
11223   test -z "$as_dir" && as_dir=.
11224   for ac_exec_ext in '' $ac_executable_extensions; do
11225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11226     ac_cv_prog_sane_devel="sane-config"
11227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11228     break 2
11229   fi
11230 done
11231 done
11232 IFS=$as_save_IFS
11233
11234   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11235 fi
11236 fi
11237 sane_devel=$ac_cv_prog_sane_devel
11238 if test -n "$sane_devel"; then
11239   { echo "$as_me:$LINENO: result: $sane_devel" >&5
11240 echo "${ECHO_T}$sane_devel" >&6; }
11241 else
11242   { echo "$as_me:$LINENO: result: no" >&5
11243 echo "${ECHO_T}no" >&6; }
11244 fi
11245
11246
11247 SANELIBS=""
11248
11249 SANEINCL=""
11250
11251 if test "$sane_devel" != "no"
11252 then
11253     SANELIBS="`$sane_devel --libs`"
11254     SANEINCL="`$sane_devel --cflags`"
11255     ac_save_CPPFLAGS="$CPPFLAGS"
11256     ac_save_LIBS="$LIBS"
11257     CPPFLAGS="$CPPFLAGS $SANEINCL"
11258     LIBS="$LIBS $SANELIBS"
11259     if test "${ac_cv_header_sane_sane_h+set}" = set; then
11260   { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11261 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11262 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 fi
11265 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11266 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11267 else
11268   # Is the header compilable?
11269 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11270 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
11271 cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h.  */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h.  */
11277 $ac_includes_default
11278 #include <sane/sane.h>
11279 _ACEOF
11280 rm -f conftest.$ac_objext
11281 if { (ac_try="$ac_compile"
11282 case "(($ac_try" in
11283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284   *) ac_try_echo=$ac_try;;
11285 esac
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287   (eval "$ac_compile") 2>conftest.er1
11288   ac_status=$?
11289   grep -v '^ *+' conftest.er1 >conftest.err
11290   rm -f conftest.er1
11291   cat conftest.err >&5
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); } &&
11294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11295   { (case "(($ac_try" in
11296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297   *) ac_try_echo=$ac_try;;
11298 esac
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300   (eval "$ac_try") 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); }; } &&
11304          { ac_try='test -s conftest.$ac_objext'
11305   { (case "(($ac_try" in
11306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307   *) ac_try_echo=$ac_try;;
11308 esac
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310   (eval "$ac_try") 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); }; }; then
11314   ac_header_compiler=yes
11315 else
11316   echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11318
11319         ac_header_compiler=no
11320 fi
11321
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11324 echo "${ECHO_T}$ac_header_compiler" >&6; }
11325
11326 # Is the header present?
11327 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
11328 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335 #include <sane/sane.h>
11336 _ACEOF
11337 if { (ac_try="$ac_cpp conftest.$ac_ext"
11338 case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11344   ac_status=$?
11345   grep -v '^ *+' conftest.er1 >conftest.err
11346   rm -f conftest.er1
11347   cat conftest.err >&5
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); } >/dev/null; then
11350   if test -s conftest.err; then
11351     ac_cpp_err=$ac_c_preproc_warn_flag
11352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11353   else
11354     ac_cpp_err=
11355   fi
11356 else
11357   ac_cpp_err=yes
11358 fi
11359 if test -z "$ac_cpp_err"; then
11360   ac_header_preproc=yes
11361 else
11362   echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11364
11365   ac_header_preproc=no
11366 fi
11367
11368 rm -f conftest.err conftest.$ac_ext
11369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11370 echo "${ECHO_T}$ac_header_preproc" >&6; }
11371
11372 # So?  What about this header?
11373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11374   yes:no: )
11375     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
11376 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
11378 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
11379     ac_header_preproc=yes
11380     ;;
11381   no:yes:* )
11382     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
11383 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
11385 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
11387 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
11389 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11390     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
11391 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
11392     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
11393 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
11394     ( cat <<\_ASBOX
11395 ## ------------------------------------ ##
11396 ## Report this to wine-devel@winehq.org ##
11397 ## ------------------------------------ ##
11398 _ASBOX
11399      ) | sed "s/^/$as_me: WARNING:     /" >&2
11400     ;;
11401 esac
11402 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11403 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11404 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11405   echo $ECHO_N "(cached) $ECHO_C" >&6
11406 else
11407   ac_cv_header_sane_sane_h=$ac_header_preproc
11408 fi
11409 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11410 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11411
11412 fi
11413 if test $ac_cv_header_sane_sane_h = yes; then
11414   { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
11415 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
11416 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
11417   echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419   ac_check_lib_save_LIBS=$LIBS
11420 LIBS="-lsane  $LIBS"
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h.  */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h.  */
11427
11428 /* Override any GCC internal prototype to avoid an error.
11429    Use char because int might match the return type of a GCC
11430    builtin and then its argument prototype would still apply.  */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char sane_open ();
11435 int
11436 main ()
11437 {
11438 return sane_open ();
11439   ;
11440   return 0;
11441 }
11442 _ACEOF
11443 rm -f conftest.$ac_objext conftest$ac_exeext
11444 if { (ac_try="$ac_link"
11445 case "(($ac_try" in
11446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447   *) ac_try_echo=$ac_try;;
11448 esac
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450   (eval "$ac_link") 2>conftest.er1
11451   ac_status=$?
11452   grep -v '^ *+' conftest.er1 >conftest.err
11453   rm -f conftest.er1
11454   cat conftest.err >&5
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); } &&
11457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11458   { (case "(($ac_try" in
11459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460   *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463   (eval "$ac_try") 2>&5
11464   ac_status=$?
11465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466   (exit $ac_status); }; } &&
11467          { ac_try='test -s conftest$ac_exeext'
11468   { (case "(($ac_try" in
11469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11470   *) ac_try_echo=$ac_try;;
11471 esac
11472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11473   (eval "$ac_try") 2>&5
11474   ac_status=$?
11475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476   (exit $ac_status); }; }; then
11477   ac_cv_lib_sane_sane_open=yes
11478 else
11479   echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11481
11482         ac_cv_lib_sane_sane_open=no
11483 fi
11484
11485 rm -f core conftest.err conftest.$ac_objext \
11486       conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
11488 fi
11489 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
11490 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
11491 if test $ac_cv_lib_sane_sane_open = yes; then
11492
11493 cat >>confdefs.h <<\_ACEOF
11494 #define HAVE_SANE 1
11495 _ACEOF
11496
11497 else
11498   SANELIBS=""
11499                                   SANEINCL=""
11500 fi
11501
11502 else
11503   SANELIBS=""
11504                     SANEINCL=""
11505 fi
11506
11507
11508     LIBS="$ac_save_LIBS"
11509     CPPFLAGS="$ac_save_CPPFLAGS"
11510 fi
11511
11512 # Extract the first word of "gphoto2-config", so it can be a program name with args.
11513 set dummy gphoto2-config; ac_word=$2
11514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11516 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
11517   echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519   if test -n "$gphoto2_devel"; then
11520   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
11521 else
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523 for as_dir in $PATH
11524 do
11525   IFS=$as_save_IFS
11526   test -z "$as_dir" && as_dir=.
11527   for ac_exec_ext in '' $ac_executable_extensions; do
11528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11529     ac_cv_prog_gphoto2_devel="gphoto2-config"
11530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11531     break 2
11532   fi
11533 done
11534 done
11535 IFS=$as_save_IFS
11536
11537   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
11538 fi
11539 fi
11540 gphoto2_devel=$ac_cv_prog_gphoto2_devel
11541 if test -n "$gphoto2_devel"; then
11542   { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
11543 echo "${ECHO_T}$gphoto2_devel" >&6; }
11544 else
11545   { echo "$as_me:$LINENO: result: no" >&5
11546 echo "${ECHO_T}no" >&6; }
11547 fi
11548
11549
11550 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
11551 set dummy gphoto2-port-config; ac_word=$2
11552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11554 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
11555   echo $ECHO_N "(cached) $ECHO_C" >&6
11556 else
11557   if test -n "$gphoto2port_devel"; then
11558   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
11559 else
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11562 do
11563   IFS=$as_save_IFS
11564   test -z "$as_dir" && as_dir=.
11565   for ac_exec_ext in '' $ac_executable_extensions; do
11566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11567     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
11568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11569     break 2
11570   fi
11571 done
11572 done
11573 IFS=$as_save_IFS
11574
11575   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
11576 fi
11577 fi
11578 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
11579 if test -n "$gphoto2port_devel"; then
11580   { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
11581 echo "${ECHO_T}$gphoto2port_devel" >&6; }
11582 else
11583   { echo "$as_me:$LINENO: result: no" >&5
11584 echo "${ECHO_T}no" >&6; }
11585 fi
11586
11587
11588 GPHOTO2LIBS=""
11589
11590 GPHOTO2INCL=""
11591
11592 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
11593 then
11594     GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
11595     GPHOTO2LIBS=""
11596     for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
11597     do
11598       case "$i" in
11599         -L/usr/lib|-L/usr/lib64) ;;
11600         -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
11601       esac
11602     done
11603     ac_save_CPPFLAGS="$CPPFLAGS"
11604     ac_save_LIBS="$LIBS"
11605     CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
11606     LIBS="$LIBS $GPHOTO2LIBS"
11607     if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11608   { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11609 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
11610 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11611   echo $ECHO_N "(cached) $ECHO_C" >&6
11612 fi
11613 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11614 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
11615 else
11616   # Is the header compilable?
11617 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
11618 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
11619 cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h.  */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h.  */
11625 $ac_includes_default
11626 #include <gphoto2-camera.h>
11627 _ACEOF
11628 rm -f conftest.$ac_objext
11629 if { (ac_try="$ac_compile"
11630 case "(($ac_try" in
11631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632   *) ac_try_echo=$ac_try;;
11633 esac
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635   (eval "$ac_compile") 2>conftest.er1
11636   ac_status=$?
11637   grep -v '^ *+' conftest.er1 >conftest.err
11638   rm -f conftest.er1
11639   cat conftest.err >&5
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } &&
11642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11643   { (case "(($ac_try" in
11644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645   *) ac_try_echo=$ac_try;;
11646 esac
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648   (eval "$ac_try") 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; } &&
11652          { ac_try='test -s conftest.$ac_objext'
11653   { (case "(($ac_try" in
11654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655   *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658   (eval "$ac_try") 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); }; }; then
11662   ac_header_compiler=yes
11663 else
11664   echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667         ac_header_compiler=no
11668 fi
11669
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11672 echo "${ECHO_T}$ac_header_compiler" >&6; }
11673
11674 # Is the header present?
11675 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
11676 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h.  */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h.  */
11683 #include <gphoto2-camera.h>
11684 _ACEOF
11685 if { (ac_try="$ac_cpp conftest.$ac_ext"
11686 case "(($ac_try" in
11687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688   *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11692   ac_status=$?
11693   grep -v '^ *+' conftest.er1 >conftest.err
11694   rm -f conftest.er1
11695   cat conftest.err >&5
11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697   (exit $ac_status); } >/dev/null; then
11698   if test -s conftest.err; then
11699     ac_cpp_err=$ac_c_preproc_warn_flag
11700     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11701   else
11702     ac_cpp_err=
11703   fi
11704 else
11705   ac_cpp_err=yes
11706 fi
11707 if test -z "$ac_cpp_err"; then
11708   ac_header_preproc=yes
11709 else
11710   echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713   ac_header_preproc=no
11714 fi
11715
11716 rm -f conftest.err conftest.$ac_ext
11717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11718 echo "${ECHO_T}$ac_header_preproc" >&6; }
11719
11720 # So?  What about this header?
11721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11722   yes:no: )
11723     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
11724 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11725     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
11726 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
11727     ac_header_preproc=yes
11728     ;;
11729   no:yes:* )
11730     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
11731 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
11732     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&5
11733 echo "$as_me: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&2;}
11734     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
11735 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
11736     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&5
11737 echo "$as_me: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11738     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
11739 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
11740     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
11741 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
11742     ( cat <<\_ASBOX
11743 ## ------------------------------------ ##
11744 ## Report this to wine-devel@winehq.org ##
11745 ## ------------------------------------ ##
11746 _ASBOX
11747      ) | sed "s/^/$as_me: WARNING:     /" >&2
11748     ;;
11749 esac
11750 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11751 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
11752 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11753   echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755   ac_cv_header_gphoto2_camera_h=$ac_header_preproc
11756 fi
11757 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11758 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
11759
11760 fi
11761 if test $ac_cv_header_gphoto2_camera_h = yes; then
11762   { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
11763 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
11764 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
11765   echo $ECHO_N "(cached) $ECHO_C" >&6
11766 else
11767   ac_check_lib_save_LIBS=$LIBS
11768 LIBS="-lgphoto2  $LIBS"
11769 cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h.  */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h.  */
11775
11776 /* Override any GCC internal prototype to avoid an error.
11777    Use char because int might match the return type of a GCC
11778    builtin and then its argument prototype would still apply.  */
11779 #ifdef __cplusplus
11780 extern "C"
11781 #endif
11782 char gp_camera_new ();
11783 int
11784 main ()
11785 {
11786 return gp_camera_new ();
11787   ;
11788   return 0;
11789 }
11790 _ACEOF
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795   *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798   (eval "$ac_link") 2>conftest.er1
11799   ac_status=$?
11800   grep -v '^ *+' conftest.er1 >conftest.err
11801   rm -f conftest.er1
11802   cat conftest.err >&5
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); } &&
11805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806   { (case "(($ac_try" in
11807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808   *) ac_try_echo=$ac_try;;
11809 esac
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811   (eval "$ac_try") 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); }; } &&
11815          { ac_try='test -s conftest$ac_exeext'
11816   { (case "(($ac_try" in
11817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818   *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821   (eval "$ac_try") 2>&5
11822   ac_status=$?
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); }; }; then
11825   ac_cv_lib_gphoto2_gp_camera_new=yes
11826 else
11827   echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11829
11830         ac_cv_lib_gphoto2_gp_camera_new=no
11831 fi
11832
11833 rm -f core conftest.err conftest.$ac_objext \
11834       conftest$ac_exeext conftest.$ac_ext
11835 LIBS=$ac_check_lib_save_LIBS
11836 fi
11837 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11838 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11839 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
11840
11841 cat >>confdefs.h <<\_ACEOF
11842 #define HAVE_GPHOTO2 1
11843 _ACEOF
11844
11845 else
11846   GPHOTO2LIBS=""
11847                                   GPHOTO2INCL=""
11848 fi
11849
11850 else
11851   GPHOTO2LIBS=""
11852                     GPHOTO2INCL=""
11853 fi
11854
11855
11856     LIBS="$ac_save_LIBS"
11857     CPPFLAGS="$ac_save_CPPFLAGS"
11858 fi
11859
11860 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
11861 then
11862     saved_libs="$LIBS"
11863     for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
11864     do
11865         TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
11866         TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
11867         { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
11868 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
11869         LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
11870         cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876 #include <unicode/ubidi.h>
11877 int
11878 main ()
11879 {
11880 ubidi_open()
11881   ;
11882   return 0;
11883 }
11884 _ACEOF
11885 rm -f conftest.$ac_objext conftest$ac_exeext
11886 if { (ac_try="$ac_link"
11887 case "(($ac_try" in
11888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889   *) ac_try_echo=$ac_try;;
11890 esac
11891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892   (eval "$ac_link") 2>conftest.er1
11893   ac_status=$?
11894   grep -v '^ *+' conftest.er1 >conftest.err
11895   rm -f conftest.er1
11896   cat conftest.err >&5
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); } &&
11899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11900   { (case "(($ac_try" in
11901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902   *) ac_try_echo=$ac_try;;
11903 esac
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905   (eval "$ac_try") 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); }; } &&
11909          { ac_try='test -s conftest$ac_exeext'
11910   { (case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_try") 2>&5
11916   ac_status=$?
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); }; }; then
11919
11920 cat >>confdefs.h <<\_ACEOF
11921 #define HAVE_ICU 1
11922 _ACEOF
11923
11924                      ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
11925
11926                      { echo "$as_me:$LINENO: result: yes" >&5
11927 echo "${ECHO_T}yes" >&6; }
11928 else
11929   echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932         { echo "$as_me:$LINENO: result: no" >&5
11933 echo "${ECHO_T}no" >&6; }
11934 fi
11935
11936 rm -f core conftest.err conftest.$ac_objext \
11937       conftest$ac_exeext conftest.$ac_ext
11938     done
11939     LIBS="$saved_libs"
11940 fi
11941
11942 RESOLVLIBS=""
11943
11944 if test "$ac_cv_header_resolv_h" = "yes"
11945 then
11946     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
11947 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
11948 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
11949   echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951   ac_check_lib_save_LIBS=$LIBS
11952 LIBS="-lresolv  $LIBS"
11953 cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h.  */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h.  */
11959
11960 /* Override any GCC internal prototype to avoid an error.
11961    Use char because int might match the return type of a GCC
11962    builtin and then its argument prototype would still apply.  */
11963 #ifdef __cplusplus
11964 extern "C"
11965 #endif
11966 char res_query ();
11967 int
11968 main ()
11969 {
11970 return res_query ();
11971   ;
11972   return 0;
11973 }
11974 _ACEOF
11975 rm -f conftest.$ac_objext conftest$ac_exeext
11976 if { (ac_try="$ac_link"
11977 case "(($ac_try" in
11978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979   *) ac_try_echo=$ac_try;;
11980 esac
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982   (eval "$ac_link") 2>conftest.er1
11983   ac_status=$?
11984   grep -v '^ *+' conftest.er1 >conftest.err
11985   rm -f conftest.er1
11986   cat conftest.err >&5
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); } &&
11989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11990   { (case "(($ac_try" in
11991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992   *) ac_try_echo=$ac_try;;
11993 esac
11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995   (eval "$ac_try") 2>&5
11996   ac_status=$?
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); }; } &&
11999          { ac_try='test -s conftest$ac_exeext'
12000   { (case "(($ac_try" in
12001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002   *) ac_try_echo=$ac_try;;
12003 esac
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005   (eval "$ac_try") 2>&5
12006   ac_status=$?
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); }; }; then
12009   ac_cv_lib_resolv_res_query=yes
12010 else
12011   echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12013
12014         ac_cv_lib_resolv_res_query=no
12015 fi
12016
12017 rm -f core conftest.err conftest.$ac_objext \
12018       conftest$ac_exeext conftest.$ac_ext
12019 LIBS=$ac_check_lib_save_LIBS
12020 fi
12021 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12022 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12023 if test $ac_cv_lib_resolv_res_query = yes; then
12024
12025 cat >>confdefs.h <<\_ACEOF
12026 #define HAVE_RESOLV 1
12027 _ACEOF
12028
12029          RESOLVLIBS="-lresolv"
12030 fi
12031
12032 fi
12033
12034 LCMSLIBS=""
12035
12036 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12037 then
12038     { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12039 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12040 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12041   echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043   ac_check_lib_save_LIBS=$LIBS
12044 LIBS="-llcms  $LIBS"
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h.  */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h.  */
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053    Use char because int might match the return type of a GCC
12054    builtin and then its argument prototype would still apply.  */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char cmsOpenProfileFromFile ();
12059 int
12060 main ()
12061 {
12062 return cmsOpenProfileFromFile ();
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (ac_try="$ac_link"
12069 case "(($ac_try" in
12070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071   *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074   (eval "$ac_link") 2>conftest.er1
12075   ac_status=$?
12076   grep -v '^ *+' conftest.er1 >conftest.err
12077   rm -f conftest.er1
12078   cat conftest.err >&5
12079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); } &&
12081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12082   { (case "(($ac_try" in
12083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084   *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087   (eval "$ac_try") 2>&5
12088   ac_status=$?
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); }; } &&
12091          { ac_try='test -s conftest$ac_exeext'
12092   { (case "(($ac_try" in
12093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094   *) ac_try_echo=$ac_try;;
12095 esac
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097   (eval "$ac_try") 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; }; then
12101   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12102 else
12103   echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12105
12106         ac_cv_lib_lcms_cmsOpenProfileFromFile=no
12107 fi
12108
12109 rm -f core conftest.err conftest.$ac_objext \
12110       conftest$ac_exeext conftest.$ac_ext
12111 LIBS=$ac_check_lib_save_LIBS
12112 fi
12113 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12114 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12115 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12116
12117 cat >>confdefs.h <<\_ACEOF
12118 #define HAVE_LCMS 1
12119 _ACEOF
12120
12121          LCMSLIBS="-llcms"
12122 fi
12123
12124 fi
12125
12126 LDAPLIBS=""
12127
12128 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12129 then
12130     { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12131 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12132 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
12133   echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135   ac_check_lib_save_LIBS=$LIBS
12136 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h.  */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h.  */
12143
12144 /* Override any GCC internal prototype to avoid an error.
12145    Use char because int might match the return type of a GCC
12146    builtin and then its argument prototype would still apply.  */
12147 #ifdef __cplusplus
12148 extern "C"
12149 #endif
12150 char ldap_initialize ();
12151 int
12152 main ()
12153 {
12154 return ldap_initialize ();
12155   ;
12156   return 0;
12157 }
12158 _ACEOF
12159 rm -f conftest.$ac_objext conftest$ac_exeext
12160 if { (ac_try="$ac_link"
12161 case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_link") 2>conftest.er1
12167   ac_status=$?
12168   grep -v '^ *+' conftest.er1 >conftest.err
12169   rm -f conftest.er1
12170   cat conftest.err >&5
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); } &&
12173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12174   { (case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_try") 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; } &&
12183          { ac_try='test -s conftest$ac_exeext'
12184   { (case "(($ac_try" in
12185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186   *) ac_try_echo=$ac_try;;
12187 esac
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189   (eval "$ac_try") 2>&5
12190   ac_status=$?
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); }; }; then
12193   ac_cv_lib_ldap_r_ldap_initialize=yes
12194 else
12195   echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198         ac_cv_lib_ldap_r_ldap_initialize=no
12199 fi
12200
12201 rm -f core conftest.err conftest.$ac_objext \
12202       conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12204 fi
12205 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12206 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12207 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12208   { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12209 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12210 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12211   echo $ECHO_N "(cached) $ECHO_C" >&6
12212 else
12213   ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-llber $LIBPTHREAD $LIBS"
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h.  */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h.  */
12221
12222 /* Override any GCC internal prototype to avoid an error.
12223    Use char because int might match the return type of a GCC
12224    builtin and then its argument prototype would still apply.  */
12225 #ifdef __cplusplus
12226 extern "C"
12227 #endif
12228 char ber_init ();
12229 int
12230 main ()
12231 {
12232 return ber_init ();
12233   ;
12234   return 0;
12235 }
12236 _ACEOF
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238 if { (ac_try="$ac_link"
12239 case "(($ac_try" in
12240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241   *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244   (eval "$ac_link") 2>conftest.er1
12245   ac_status=$?
12246   grep -v '^ *+' conftest.er1 >conftest.err
12247   rm -f conftest.er1
12248   cat conftest.err >&5
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } &&
12251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12252   { (case "(($ac_try" in
12253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254   *) ac_try_echo=$ac_try;;
12255 esac
12256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257   (eval "$ac_try") 2>&5
12258   ac_status=$?
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); }; } &&
12261          { ac_try='test -s conftest$ac_exeext'
12262   { (case "(($ac_try" in
12263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264   *) ac_try_echo=$ac_try;;
12265 esac
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267   (eval "$ac_try") 2>&5
12268   ac_status=$?
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); }; }; then
12271   ac_cv_lib_lber_ber_init=yes
12272 else
12273   echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12275
12276         ac_cv_lib_lber_ber_init=no
12277 fi
12278
12279 rm -f core conftest.err conftest.$ac_objext \
12280       conftest$ac_exeext conftest.$ac_ext
12281 LIBS=$ac_check_lib_save_LIBS
12282 fi
12283 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12284 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12285 if test $ac_cv_lib_lber_ber_init = yes; then
12286
12287 cat >>confdefs.h <<\_ACEOF
12288 #define HAVE_LDAP 1
12289 _ACEOF
12290
12291              LDAPLIBS="-lldap_r -llber"
12292 fi
12293
12294 fi
12295
12296     ac_wine_check_funcs_save_LIBS="$LIBS"
12297 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12298
12299
12300
12301
12302 for ac_func in \
12303         ldap_count_references \
12304         ldap_first_reference \
12305         ldap_next_reference \
12306         ldap_parse_reference
12307 do
12308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12312   echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314   cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h.  */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h.  */
12320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12322 #define $ac_func innocuous_$ac_func
12323
12324 /* System header to define __stub macros and hopefully few prototypes,
12325     which can conflict with char $ac_func (); below.
12326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12327     <limits.h> exists even on freestanding compilers.  */
12328
12329 #ifdef __STDC__
12330 # include <limits.h>
12331 #else
12332 # include <assert.h>
12333 #endif
12334
12335 #undef $ac_func
12336
12337 /* Override any GCC internal prototype to avoid an error.
12338    Use char because int might match the return type of a GCC
12339    builtin and then its argument prototype would still apply.  */
12340 #ifdef __cplusplus
12341 extern "C"
12342 #endif
12343 char $ac_func ();
12344 /* The GNU C library defines this for functions which it implements
12345     to always fail with ENOSYS.  Some functions are actually named
12346     something starting with __ and the normal name is an alias.  */
12347 #if defined __stub_$ac_func || defined __stub___$ac_func
12348 choke me
12349 #endif
12350
12351 int
12352 main ()
12353 {
12354 return $ac_func ();
12355   ;
12356   return 0;
12357 }
12358 _ACEOF
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363   *) ac_try_echo=$ac_try;;
12364 esac
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366   (eval "$ac_link") 2>conftest.er1
12367   ac_status=$?
12368   grep -v '^ *+' conftest.er1 >conftest.err
12369   rm -f conftest.er1
12370   cat conftest.err >&5
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); } &&
12373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12374   { (case "(($ac_try" in
12375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376   *) ac_try_echo=$ac_try;;
12377 esac
12378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379   (eval "$ac_try") 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); }; } &&
12383          { ac_try='test -s conftest$ac_exeext'
12384   { (case "(($ac_try" in
12385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386   *) ac_try_echo=$ac_try;;
12387 esac
12388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389   (eval "$ac_try") 2>&5
12390   ac_status=$?
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); }; }; then
12393   eval "$as_ac_var=yes"
12394 else
12395   echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12397
12398         eval "$as_ac_var=no"
12399 fi
12400
12401 rm -f core conftest.err conftest.$ac_objext \
12402       conftest$ac_exeext conftest.$ac_ext
12403 fi
12404 ac_res=`eval echo '${'$as_ac_var'}'`
12405                { echo "$as_me:$LINENO: result: $ac_res" >&5
12406 echo "${ECHO_T}$ac_res" >&6; }
12407 if test `eval echo '${'$as_ac_var'}'` = yes; then
12408   cat >>confdefs.h <<_ACEOF
12409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12410 _ACEOF
12411
12412 fi
12413 done
12414
12415 LIBS="$ac_wine_check_funcs_save_LIBS"
12416 fi
12417
12418 FREETYPELIBS=""
12419
12420 FREETYPEINCL=""
12421
12422 # Extract the first word of "freetype-config", so it can be a program name with args.
12423 set dummy freetype-config; ac_word=$2
12424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12426 if test "${ac_cv_prog_ft_devel+set}" = set; then
12427   echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429   if test -n "$ft_devel"; then
12430   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
12431 else
12432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433 for as_dir in $PATH
12434 do
12435   IFS=$as_save_IFS
12436   test -z "$as_dir" && as_dir=.
12437   for ac_exec_ext in '' $ac_executable_extensions; do
12438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12439     ac_cv_prog_ft_devel="freetype-config"
12440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12441     break 2
12442   fi
12443 done
12444 done
12445 IFS=$as_save_IFS
12446
12447   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
12448 fi
12449 fi
12450 ft_devel=$ac_cv_prog_ft_devel
12451 if test -n "$ft_devel"; then
12452   { echo "$as_me:$LINENO: result: $ft_devel" >&5
12453 echo "${ECHO_T}$ft_devel" >&6; }
12454 else
12455   { echo "$as_me:$LINENO: result: no" >&5
12456 echo "${ECHO_T}no" >&6; }
12457 fi
12458
12459
12460 if test "$ft_devel" = "no"
12461 then
12462     # Extract the first word of "freetype2-config", so it can be a program name with args.
12463 set dummy freetype2-config; ac_word=$2
12464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12466 if test "${ac_cv_prog_ft_devel2+set}" = set; then
12467   echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469   if test -n "$ft_devel2"; then
12470   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
12471 else
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473 for as_dir in $PATH
12474 do
12475   IFS=$as_save_IFS
12476   test -z "$as_dir" && as_dir=.
12477   for ac_exec_ext in '' $ac_executable_extensions; do
12478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12479     ac_cv_prog_ft_devel2="freetype2-config"
12480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12481     break 2
12482   fi
12483 done
12484 done
12485 IFS=$as_save_IFS
12486
12487   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
12488 fi
12489 fi
12490 ft_devel2=$ac_cv_prog_ft_devel2
12491 if test -n "$ft_devel2"; then
12492   { echo "$as_me:$LINENO: result: $ft_devel2" >&5
12493 echo "${ECHO_T}$ft_devel2" >&6; }
12494 else
12495   { echo "$as_me:$LINENO: result: no" >&5
12496 echo "${ECHO_T}no" >&6; }
12497 fi
12498
12499
12500     if test "$ft_devel2" = "freetype2-config"
12501     then
12502         ft_devel=$ft_devel2
12503     fi
12504 fi
12505
12506 if test "$ft_devel" = "no"
12507 then
12508     wine_cv_msg_freetype=yes
12509 else
12510     FREETYPELIBS=`$ft_devel --libs`
12511     FREETYPEINCL=`$ft_devel --cflags`
12512     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
12513 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
12514 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
12515   echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517   ac_check_lib_save_LIBS=$LIBS
12518 LIBS="-lfreetype $FREETYPELIBS $LIBS"
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525
12526 /* Override any GCC internal prototype to avoid an error.
12527    Use char because int might match the return type of a GCC
12528    builtin and then its argument prototype would still apply.  */
12529 #ifdef __cplusplus
12530 extern "C"
12531 #endif
12532 char FT_Init_FreeType ();
12533 int
12534 main ()
12535 {
12536 return FT_Init_FreeType ();
12537   ;
12538   return 0;
12539 }
12540 _ACEOF
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545   *) ac_try_echo=$ac_try;;
12546 esac
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548   (eval "$ac_link") 2>conftest.er1
12549   ac_status=$?
12550   grep -v '^ *+' conftest.er1 >conftest.err
12551   rm -f conftest.er1
12552   cat conftest.err >&5
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); } &&
12555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12556   { (case "(($ac_try" in
12557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558   *) ac_try_echo=$ac_try;;
12559 esac
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561   (eval "$ac_try") 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); }; } &&
12565          { ac_try='test -s conftest$ac_exeext'
12566   { (case "(($ac_try" in
12567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568   *) ac_try_echo=$ac_try;;
12569 esac
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571   (eval "$ac_try") 2>&5
12572   ac_status=$?
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); }; }; then
12575   ac_cv_lib_freetype_FT_Init_FreeType=yes
12576 else
12577   echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12579
12580         ac_cv_lib_freetype_FT_Init_FreeType=no
12581 fi
12582
12583 rm -f core conftest.err conftest.$ac_objext \
12584       conftest$ac_exeext conftest.$ac_ext
12585 LIBS=$ac_check_lib_save_LIBS
12586 fi
12587 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
12588 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
12589 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
12590   ft_lib=yes
12591 else
12592   ft_lib=no
12593 fi
12594
12595     if test "$ft_lib" = "no"
12596     then
12597         wine_cv_msg_freetype=yes
12598         FREETYPELIBS=""
12599         FREETYPEINCL=""
12600     else
12601         ac_save_CPPFLAGS="$CPPFLAGS"
12602         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614 for ac_header in ft2build.h \
12615                          freetype/freetype.h \
12616                          freetype/ftglyph.h \
12617                          freetype/tttables.h \
12618                          freetype/ftnames.h \
12619                          freetype/ftsnames.h \
12620                          freetype/ttnameid.h \
12621                          freetype/ftoutln.h \
12622                          freetype/ftwinfnt.h \
12623                          freetype/ftmodapi.h \
12624                          freetype/internal/sfnt.h
12625 do
12626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12630   echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632   cat >conftest.$ac_ext <<_ACEOF
12633 /* confdefs.h.  */
12634 _ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h.  */
12638 #if HAVE_FT2BUILD_H
12639                           #include <ft2build.h>
12640                           #endif
12641
12642 #include <$ac_header>
12643 _ACEOF
12644 rm -f conftest.$ac_objext
12645 if { (ac_try="$ac_compile"
12646 case "(($ac_try" in
12647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648   *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651   (eval "$ac_compile") 2>conftest.er1
12652   ac_status=$?
12653   grep -v '^ *+' conftest.er1 >conftest.err
12654   rm -f conftest.er1
12655   cat conftest.err >&5
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); } &&
12658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12659   { (case "(($ac_try" in
12660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661   *) ac_try_echo=$ac_try;;
12662 esac
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664   (eval "$ac_try") 2>&5
12665   ac_status=$?
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); }; } &&
12668          { ac_try='test -s conftest.$ac_objext'
12669   { (case "(($ac_try" in
12670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671   *) ac_try_echo=$ac_try;;
12672 esac
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674   (eval "$ac_try") 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }; }; then
12678   eval "$as_ac_Header=yes"
12679 else
12680   echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12682
12683         eval "$as_ac_Header=no"
12684 fi
12685
12686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12687 fi
12688 ac_res=`eval echo '${'$as_ac_Header'}'`
12689                { echo "$as_me:$LINENO: result: $ac_res" >&5
12690 echo "${ECHO_T}$ac_res" >&6; }
12691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12692   cat >>confdefs.h <<_ACEOF
12693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12694 _ACEOF
12695
12696 fi
12697
12698 done
12699
12700         cat >conftest.$ac_ext <<_ACEOF
12701 /* confdefs.h.  */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h.  */
12706 #include <ft2build.h>
12707                     #include <freetype/fttrigon.h>
12708 _ACEOF
12709 if { (ac_try="$ac_cpp conftest.$ac_ext"
12710 case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12716   ac_status=$?
12717   grep -v '^ *+' conftest.er1 >conftest.err
12718   rm -f conftest.er1
12719   cat conftest.err >&5
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); } >/dev/null; then
12722   if test -s conftest.err; then
12723     ac_cpp_err=$ac_c_preproc_warn_flag
12724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12725   else
12726     ac_cpp_err=
12727   fi
12728 else
12729   ac_cpp_err=yes
12730 fi
12731 if test -z "$ac_cpp_err"; then
12732
12733 cat >>confdefs.h <<\_ACEOF
12734 #define HAVE_FREETYPE_FTTRIGON_H 1
12735 _ACEOF
12736
12737                     wine_cv_fttrigon=yes
12738 else
12739   echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12741
12742   wine_cv_fttrigon=no
12743 fi
12744
12745 rm -f conftest.err conftest.$ac_ext
12746         { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
12747 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
12748 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
12749   echo $ECHO_N "(cached) $ECHO_C" >&6
12750 else
12751   cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h.  */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h.  */
12757 #include <freetype/ftmodapi.h>
12758
12759 typedef FT_TrueTypeEngineType ac__type_new_;
12760 int
12761 main ()
12762 {
12763 if ((ac__type_new_ *) 0)
12764   return 0;
12765 if (sizeof (ac__type_new_))
12766   return 0;
12767   ;
12768   return 0;
12769 }
12770 _ACEOF
12771 rm -f conftest.$ac_objext
12772 if { (ac_try="$ac_compile"
12773 case "(($ac_try" in
12774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775   *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778   (eval "$ac_compile") 2>conftest.er1
12779   ac_status=$?
12780   grep -v '^ *+' conftest.er1 >conftest.err
12781   rm -f conftest.er1
12782   cat conftest.err >&5
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); } &&
12785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12786   { (case "(($ac_try" in
12787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788   *) ac_try_echo=$ac_try;;
12789 esac
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791   (eval "$ac_try") 2>&5
12792   ac_status=$?
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); }; } &&
12795          { ac_try='test -s conftest.$ac_objext'
12796   { (case "(($ac_try" in
12797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798   *) ac_try_echo=$ac_try;;
12799 esac
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801   (eval "$ac_try") 2>&5
12802   ac_status=$?
12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); }; }; then
12805   ac_cv_type_FT_TrueTypeEngineType=yes
12806 else
12807   echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12809
12810         ac_cv_type_FT_TrueTypeEngineType=no
12811 fi
12812
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 fi
12815 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
12816 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
12817 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
12818
12819 cat >>confdefs.h <<_ACEOF
12820 #define HAVE_FT_TRUETYPEENGINETYPE 1
12821 _ACEOF
12822
12823
12824 fi
12825
12826         ac_save_CFLAGS="$CFLAGS"
12827         CFLAGS="$CFLAGS $FREETYPELIBS"
12828
12829 for ac_func in FT_Load_Sfnt_Table
12830 do
12831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12835   echo $ECHO_N "(cached) $ECHO_C" >&6
12836 else
12837   cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12845 #define $ac_func innocuous_$ac_func
12846
12847 /* System header to define __stub macros and hopefully few prototypes,
12848     which can conflict with char $ac_func (); below.
12849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12850     <limits.h> exists even on freestanding compilers.  */
12851
12852 #ifdef __STDC__
12853 # include <limits.h>
12854 #else
12855 # include <assert.h>
12856 #endif
12857
12858 #undef $ac_func
12859
12860 /* Override any GCC internal prototype to avoid an error.
12861    Use char because int might match the return type of a GCC
12862    builtin and then its argument prototype would still apply.  */
12863 #ifdef __cplusplus
12864 extern "C"
12865 #endif
12866 char $ac_func ();
12867 /* The GNU C library defines this for functions which it implements
12868     to always fail with ENOSYS.  Some functions are actually named
12869     something starting with __ and the normal name is an alias.  */
12870 #if defined __stub_$ac_func || defined __stub___$ac_func
12871 choke me
12872 #endif
12873
12874 int
12875 main ()
12876 {
12877 return $ac_func ();
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (ac_try="$ac_link"
12884 case "(($ac_try" in
12885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886   *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889   (eval "$ac_link") 2>conftest.er1
12890   ac_status=$?
12891   grep -v '^ *+' conftest.er1 >conftest.err
12892   rm -f conftest.er1
12893   cat conftest.err >&5
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); } &&
12896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12897   { (case "(($ac_try" in
12898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899   *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902   (eval "$ac_try") 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; } &&
12906          { ac_try='test -s conftest$ac_exeext'
12907   { (case "(($ac_try" in
12908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909   *) ac_try_echo=$ac_try;;
12910 esac
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912   (eval "$ac_try") 2>&5
12913   ac_status=$?
12914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915   (exit $ac_status); }; }; then
12916   eval "$as_ac_var=yes"
12917 else
12918   echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12920
12921         eval "$as_ac_var=no"
12922 fi
12923
12924 rm -f core conftest.err conftest.$ac_objext \
12925       conftest$ac_exeext conftest.$ac_ext
12926 fi
12927 ac_res=`eval echo '${'$as_ac_var'}'`
12928                { echo "$as_me:$LINENO: result: $ac_res" >&5
12929 echo "${ECHO_T}$ac_res" >&6; }
12930 if test `eval echo '${'$as_ac_var'}'` = yes; then
12931   cat >>confdefs.h <<_ACEOF
12932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12933 _ACEOF
12934
12935 fi
12936 done
12937
12938         CFLAGS="$ac_save_CFLAGS"
12939         CPPFLAGS="$ac_save_CPPFLAGS"
12940                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
12941         then
12942
12943 cat >>confdefs.h <<\_ACEOF
12944 #define HAVE_FREETYPE 1
12945 _ACEOF
12946
12947             wine_cv_msg_freetype=no
12948         else
12949             FREETYPELIBS=""
12950             FREETYPEINCL=""
12951             wine_cv_msg_freetype=yes
12952         fi
12953     fi
12954 fi
12955
12956 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
12957 then
12958   FONTSSUBDIRS="fonts"
12959
12960 fi
12961
12962 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
12963 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
12964 if test "${ac_cv_c_ppdev+set}" = set; then
12965   echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967   cat >conftest.$ac_ext <<_ACEOF
12968 /* confdefs.h.  */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h.  */
12973 #include <linux/ppdev.h>
12974 int
12975 main ()
12976 {
12977 ioctl (1,PPCLAIM,0)
12978   ;
12979   return 0;
12980 }
12981 _ACEOF
12982 rm -f conftest.$ac_objext
12983 if { (ac_try="$ac_compile"
12984 case "(($ac_try" in
12985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986   *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989   (eval "$ac_compile") 2>conftest.er1
12990   ac_status=$?
12991   grep -v '^ *+' conftest.er1 >conftest.err
12992   rm -f conftest.er1
12993   cat conftest.err >&5
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); } &&
12996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12997   { (case "(($ac_try" in
12998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999   *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002   (eval "$ac_try") 2>&5
13003   ac_status=$?
13004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); }; } &&
13006          { ac_try='test -s conftest.$ac_objext'
13007   { (case "(($ac_try" in
13008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009   *) ac_try_echo=$ac_try;;
13010 esac
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012   (eval "$ac_try") 2>&5
13013   ac_status=$?
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); }; }; then
13016   ac_cv_c_ppdev="yes"
13017 else
13018   echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13020
13021         ac_cv_c_ppdev="no"
13022 fi
13023
13024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025
13026 fi
13027 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13028 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13029 if test "$ac_cv_c_ppdev" = "yes"
13030 then
13031
13032 cat >>confdefs.h <<\_ACEOF
13033 #define HAVE_PPDEV 1
13034 _ACEOF
13035
13036 fi
13037
13038 { echo "$as_me:$LINENO: checking for va_copy" >&5
13039 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13040 if test "${ac_cv_c_va_copy+set}" = set; then
13041   echo $ECHO_N "(cached) $ECHO_C" >&6
13042 else
13043   cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h.  */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h.  */
13049 #include <stdarg.h>
13050 int
13051 main ()
13052 {
13053 va_list ap1, ap2;
13054     va_copy(ap1,ap2);
13055
13056   ;
13057   return 0;
13058 }
13059 _ACEOF
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064   *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067   (eval "$ac_link") 2>conftest.er1
13068   ac_status=$?
13069   grep -v '^ *+' conftest.er1 >conftest.err
13070   rm -f conftest.er1
13071   cat conftest.err >&5
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); } &&
13074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075   { (case "(($ac_try" in
13076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077   *) ac_try_echo=$ac_try;;
13078 esac
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080   (eval "$ac_try") 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); }; } &&
13084          { ac_try='test -s conftest$ac_exeext'
13085   { (case "(($ac_try" in
13086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087   *) ac_try_echo=$ac_try;;
13088 esac
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090   (eval "$ac_try") 2>&5
13091   ac_status=$?
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); }; }; then
13094   ac_cv_c_va_copy="yes"
13095 else
13096   echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13098
13099         ac_cv_c_va_copy="no"
13100 fi
13101
13102 rm -f core conftest.err conftest.$ac_objext \
13103       conftest$ac_exeext conftest.$ac_ext
13104
13105 fi
13106 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13107 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13108 if test "$ac_cv_c_va_copy" = "yes"
13109 then
13110
13111 cat >>confdefs.h <<\_ACEOF
13112 #define HAVE_VA_COPY 1
13113 _ACEOF
13114
13115 fi
13116 { echo "$as_me:$LINENO: checking for __va_copy" >&5
13117 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13118 if test "${ac_cv_c___va_copy+set}" = set; then
13119   echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121   cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127 #include <stdarg.h>
13128 int
13129 main ()
13130 {
13131 va_list ap1, ap2;
13132     __va_copy(ap1,ap2);
13133
13134   ;
13135   return 0;
13136 }
13137 _ACEOF
13138 rm -f conftest.$ac_objext conftest$ac_exeext
13139 if { (ac_try="$ac_link"
13140 case "(($ac_try" in
13141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142   *) ac_try_echo=$ac_try;;
13143 esac
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145   (eval "$ac_link") 2>conftest.er1
13146   ac_status=$?
13147   grep -v '^ *+' conftest.er1 >conftest.err
13148   rm -f conftest.er1
13149   cat conftest.err >&5
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); } &&
13152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13153   { (case "(($ac_try" in
13154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155   *) ac_try_echo=$ac_try;;
13156 esac
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158   (eval "$ac_try") 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; } &&
13162          { ac_try='test -s conftest$ac_exeext'
13163   { (case "(($ac_try" in
13164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165   *) ac_try_echo=$ac_try;;
13166 esac
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168   (eval "$ac_try") 2>&5
13169   ac_status=$?
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); }; }; then
13172   ac_cv_c___va_copy="yes"
13173 else
13174   echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13176
13177         ac_cv_c___va_copy="no"
13178 fi
13179
13180 rm -f core conftest.err conftest.$ac_objext \
13181       conftest$ac_exeext conftest.$ac_ext
13182
13183 fi
13184 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13185 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13186 if test "$ac_cv_c___va_copy" = "yes"
13187 then
13188
13189 cat >>confdefs.h <<\_ACEOF
13190 #define HAVE___VA_COPY 1
13191 _ACEOF
13192
13193 fi
13194
13195 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13196 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13197 if test "${ac_cv_c_sigsetjmp+set}" = set; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200   cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h.  */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h.  */
13206 #include <setjmp.h>
13207 int
13208 main ()
13209 {
13210 sigjmp_buf buf;
13211     sigsetjmp( buf, 1 );
13212     siglongjmp( buf, 1 );
13213   ;
13214   return 0;
13215 }
13216 _ACEOF
13217 rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (ac_try="$ac_link"
13219 case "(($ac_try" in
13220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221   *) ac_try_echo=$ac_try;;
13222 esac
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224   (eval "$ac_link") 2>conftest.er1
13225   ac_status=$?
13226   grep -v '^ *+' conftest.er1 >conftest.err
13227   rm -f conftest.er1
13228   cat conftest.err >&5
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); } &&
13231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13232   { (case "(($ac_try" in
13233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234   *) ac_try_echo=$ac_try;;
13235 esac
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237   (eval "$ac_try") 2>&5
13238   ac_status=$?
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; } &&
13241          { ac_try='test -s conftest$ac_exeext'
13242   { (case "(($ac_try" in
13243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244   *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247   (eval "$ac_try") 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; }; then
13251   ac_cv_c_sigsetjmp="yes"
13252 else
13253   echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256         ac_cv_c_sigsetjmp="no"
13257 fi
13258
13259 rm -f core conftest.err conftest.$ac_objext \
13260       conftest$ac_exeext conftest.$ac_ext
13261
13262 fi
13263 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13264 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13265 if test "$ac_cv_c_sigsetjmp" = "yes"
13266 then
13267
13268 cat >>confdefs.h <<\_ACEOF
13269 #define HAVE_SIGSETJMP 1
13270 _ACEOF
13271
13272 fi
13273
13274 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13275 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13276 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13277   echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279   cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h.  */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h.  */
13285 #define _GNU_SOURCE
13286 #include <pthread.h>
13287
13288 typedef pthread_rwlock_t ac__type_new_;
13289 int
13290 main ()
13291 {
13292 if ((ac__type_new_ *) 0)
13293   return 0;
13294 if (sizeof (ac__type_new_))
13295   return 0;
13296   ;
13297   return 0;
13298 }
13299 _ACEOF
13300 rm -f conftest.$ac_objext
13301 if { (ac_try="$ac_compile"
13302 case "(($ac_try" in
13303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304   *) ac_try_echo=$ac_try;;
13305 esac
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307   (eval "$ac_compile") 2>conftest.er1
13308   ac_status=$?
13309   grep -v '^ *+' conftest.er1 >conftest.err
13310   rm -f conftest.er1
13311   cat conftest.err >&5
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); } &&
13314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13315   { (case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320   (eval "$ac_try") 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); }; } &&
13324          { ac_try='test -s conftest.$ac_objext'
13325   { (case "(($ac_try" in
13326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327   *) ac_try_echo=$ac_try;;
13328 esac
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330   (eval "$ac_try") 2>&5
13331   ac_status=$?
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); }; }; then
13334   ac_cv_type_pthread_rwlock_t=yes
13335 else
13336   echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13338
13339         ac_cv_type_pthread_rwlock_t=no
13340 fi
13341
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 fi
13344 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13345 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
13346 if test $ac_cv_type_pthread_rwlock_t = yes; then
13347
13348 cat >>confdefs.h <<_ACEOF
13349 #define HAVE_PTHREAD_RWLOCK_T 1
13350 _ACEOF
13351
13352
13353 fi
13354 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13355 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
13356 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13357   echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359   cat >conftest.$ac_ext <<_ACEOF
13360 /* confdefs.h.  */
13361 _ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h.  */
13365 #define _GNU_SOURCE
13366 #include <pthread.h>
13367
13368 typedef pthread_rwlockattr_t ac__type_new_;
13369 int
13370 main ()
13371 {
13372 if ((ac__type_new_ *) 0)
13373   return 0;
13374 if (sizeof (ac__type_new_))
13375   return 0;
13376   ;
13377   return 0;
13378 }
13379 _ACEOF
13380 rm -f conftest.$ac_objext
13381 if { (ac_try="$ac_compile"
13382 case "(($ac_try" in
13383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384   *) ac_try_echo=$ac_try;;
13385 esac
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387   (eval "$ac_compile") 2>conftest.er1
13388   ac_status=$?
13389   grep -v '^ *+' conftest.er1 >conftest.err
13390   rm -f conftest.er1
13391   cat conftest.err >&5
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); } &&
13394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13395   { (case "(($ac_try" in
13396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397   *) ac_try_echo=$ac_try;;
13398 esac
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400   (eval "$ac_try") 2>&5
13401   ac_status=$?
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); }; } &&
13404          { ac_try='test -s conftest.$ac_objext'
13405   { (case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_try") 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); }; }; then
13414   ac_cv_type_pthread_rwlockattr_t=yes
13415 else
13416   echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13418
13419         ac_cv_type_pthread_rwlockattr_t=no
13420 fi
13421
13422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13423 fi
13424 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
13425 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
13426 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
13427
13428 cat >>confdefs.h <<_ACEOF
13429 #define HAVE_PTHREAD_RWLOCKATTR_T 1
13430 _ACEOF
13431
13432
13433 fi
13434
13435
13436 ac_wine_check_funcs_save_LIBS="$LIBS"
13437 LIBS="$LIBS $LIBPTHREAD"
13438
13439
13440
13441
13442 for ac_func in \
13443         pthread_attr_get_np \
13444         pthread_getattr_np \
13445         pthread_get_stackaddr_np \
13446         pthread_get_stacksize_np
13447 do
13448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13452   echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454   cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h.  */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h.  */
13460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13462 #define $ac_func innocuous_$ac_func
13463
13464 /* System header to define __stub macros and hopefully few prototypes,
13465     which can conflict with char $ac_func (); below.
13466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13467     <limits.h> exists even on freestanding compilers.  */
13468
13469 #ifdef __STDC__
13470 # include <limits.h>
13471 #else
13472 # include <assert.h>
13473 #endif
13474
13475 #undef $ac_func
13476
13477 /* Override any GCC internal prototype to avoid an error.
13478    Use char because int might match the return type of a GCC
13479    builtin and then its argument prototype would still apply.  */
13480 #ifdef __cplusplus
13481 extern "C"
13482 #endif
13483 char $ac_func ();
13484 /* The GNU C library defines this for functions which it implements
13485     to always fail with ENOSYS.  Some functions are actually named
13486     something starting with __ and the normal name is an alias.  */
13487 #if defined __stub_$ac_func || defined __stub___$ac_func
13488 choke me
13489 #endif
13490
13491 int
13492 main ()
13493 {
13494 return $ac_func ();
13495   ;
13496   return 0;
13497 }
13498 _ACEOF
13499 rm -f conftest.$ac_objext conftest$ac_exeext
13500 if { (ac_try="$ac_link"
13501 case "(($ac_try" in
13502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503   *) ac_try_echo=$ac_try;;
13504 esac
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506   (eval "$ac_link") 2>conftest.er1
13507   ac_status=$?
13508   grep -v '^ *+' conftest.er1 >conftest.err
13509   rm -f conftest.er1
13510   cat conftest.err >&5
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); } &&
13513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13514   { (case "(($ac_try" in
13515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516   *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519   (eval "$ac_try") 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; } &&
13523          { ac_try='test -s conftest$ac_exeext'
13524   { (case "(($ac_try" in
13525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526   *) ac_try_echo=$ac_try;;
13527 esac
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529   (eval "$ac_try") 2>&5
13530   ac_status=$?
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); }; }; then
13533   eval "$as_ac_var=yes"
13534 else
13535   echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13537
13538         eval "$as_ac_var=no"
13539 fi
13540
13541 rm -f core conftest.err conftest.$ac_objext \
13542       conftest$ac_exeext conftest.$ac_ext
13543 fi
13544 ac_res=`eval echo '${'$as_ac_var'}'`
13545                { echo "$as_me:$LINENO: result: $ac_res" >&5
13546 echo "${ECHO_T}$ac_res" >&6; }
13547 if test `eval echo '${'$as_ac_var'}'` = yes; then
13548   cat >>confdefs.h <<_ACEOF
13549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13550 _ACEOF
13551
13552 fi
13553 done
13554
13555 LIBS="$ac_wine_check_funcs_save_LIBS"
13556
13557 # Extract the first word of "artsc-config", so it can be a program name with args.
13558 set dummy artsc-config; ac_word=$2
13559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13561 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
13562   echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564   case $ARTSCCONFIG in
13565   [\\/]* | ?:[\\/]*)
13566   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
13567   ;;
13568   *)
13569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 for as_dir in $PATH
13571 do
13572   IFS=$as_save_IFS
13573   test -z "$as_dir" && as_dir=.
13574   for ac_exec_ext in '' $ac_executable_extensions; do
13575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13576     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
13577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13578     break 2
13579   fi
13580 done
13581 done
13582 IFS=$as_save_IFS
13583
13584   ;;
13585 esac
13586 fi
13587 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
13588 if test -n "$ARTSCCONFIG"; then
13589   { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
13590 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
13591 else
13592   { echo "$as_me:$LINENO: result: no" >&5
13593 echo "${ECHO_T}no" >&6; }
13594 fi
13595
13596
13597 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
13598 then
13599     ARTSC_CFLAGS=""
13600     for i in `$ARTSCCONFIG --cflags`
13601     do
13602       case "$i" in
13603         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
13604       esac
13605     done
13606     ARTSC_LIBS=""
13607     for i in `$ARTSCCONFIG --libs`
13608     do
13609       case "$i" in
13610         -L/usr/lib|-L/usr/lib64) ;;
13611         -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
13612       esac
13613     done
13614     save_CFLAGS="$CFLAGS"
13615     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
13616     { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
13617 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
13618 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
13619   echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621   ac_check_lib_save_LIBS=$LIBS
13622 LIBS="-lartsc $ARTSC_LIBS $LIBS"
13623 cat >conftest.$ac_ext <<_ACEOF
13624 /* confdefs.h.  */
13625 _ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h.  */
13629
13630 /* Override any GCC internal prototype to avoid an error.
13631    Use char because int might match the return type of a GCC
13632    builtin and then its argument prototype would still apply.  */
13633 #ifdef __cplusplus
13634 extern "C"
13635 #endif
13636 char arts_init ();
13637 int
13638 main ()
13639 {
13640 return arts_init ();
13641   ;
13642   return 0;
13643 }
13644 _ACEOF
13645 rm -f conftest.$ac_objext conftest$ac_exeext
13646 if { (ac_try="$ac_link"
13647 case "(($ac_try" in
13648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649   *) ac_try_echo=$ac_try;;
13650 esac
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652   (eval "$ac_link") 2>conftest.er1
13653   ac_status=$?
13654   grep -v '^ *+' conftest.er1 >conftest.err
13655   rm -f conftest.er1
13656   cat conftest.err >&5
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); } &&
13659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13660   { (case "(($ac_try" in
13661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662   *) ac_try_echo=$ac_try;;
13663 esac
13664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665   (eval "$ac_try") 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); }; } &&
13669          { ac_try='test -s conftest$ac_exeext'
13670   { (case "(($ac_try" in
13671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13672   *) ac_try_echo=$ac_try;;
13673 esac
13674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13675   (eval "$ac_try") 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; }; then
13679   ac_cv_lib_artsc_arts_init=yes
13680 else
13681   echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13683
13684         ac_cv_lib_artsc_arts_init=no
13685 fi
13686
13687 rm -f core conftest.err conftest.$ac_objext \
13688       conftest$ac_exeext conftest.$ac_ext
13689 LIBS=$ac_check_lib_save_LIBS
13690 fi
13691 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
13692 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
13693 if test $ac_cv_lib_artsc_arts_init = yes; then
13694   cat >conftest.$ac_ext <<_ACEOF
13695 /* confdefs.h.  */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h.  */
13700 #include <artsc.h>
13701 int
13702 main ()
13703 {
13704 arts_stream_t stream;
13705   ;
13706   return 0;
13707 }
13708 _ACEOF
13709 rm -f conftest.$ac_objext
13710 if { (ac_try="$ac_compile"
13711 case "(($ac_try" in
13712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713   *) ac_try_echo=$ac_try;;
13714 esac
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716   (eval "$ac_compile") 2>conftest.er1
13717   ac_status=$?
13718   grep -v '^ *+' conftest.er1 >conftest.err
13719   rm -f conftest.er1
13720   cat conftest.err >&5
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); } &&
13723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13724   { (case "(($ac_try" in
13725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726   *) ac_try_echo=$ac_try;;
13727 esac
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729   (eval "$ac_try") 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; } &&
13733          { ac_try='test -s conftest.$ac_objext'
13734   { (case "(($ac_try" in
13735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736   *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739   (eval "$ac_try") 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   ARTSLIBS=$ARTSC_LIBS
13744
13745             ARTSINCL=$ARTSC_CFLAGS
13746
13747
13748 cat >>confdefs.h <<\_ACEOF
13749 #define HAVE_ARTS 1
13750 _ACEOF
13751
13752 else
13753   echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13755
13756
13757 fi
13758
13759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760 fi
13761
13762     CFLAGS="$save_CFLAGS"
13763 fi
13764
13765 # Extract the first word of "esd-config", so it can be a program name with args.
13766 set dummy esd-config; ac_word=$2
13767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13769 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
13770   echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13772   case $ESDCONFIG in
13773   [\\/]* | ?:[\\/]*)
13774   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
13775   ;;
13776   *)
13777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13778 for as_dir in $PATH
13779 do
13780   IFS=$as_save_IFS
13781   test -z "$as_dir" && as_dir=.
13782   for ac_exec_ext in '' $ac_executable_extensions; do
13783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13784     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
13785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13786     break 2
13787   fi
13788 done
13789 done
13790 IFS=$as_save_IFS
13791
13792   ;;
13793 esac
13794 fi
13795 ESDCONFIG=$ac_cv_path_ESDCONFIG
13796 if test -n "$ESDCONFIG"; then
13797   { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
13798 echo "${ECHO_T}$ESDCONFIG" >&6; }
13799 else
13800   { echo "$as_me:$LINENO: result: no" >&5
13801 echo "${ECHO_T}no" >&6; }
13802 fi
13803
13804
13805 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
13806 then
13807     ESD_CFLAGS=""
13808     for i in `$ESDCONFIG --cflags`
13809     do
13810       case "$i" in
13811         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
13812       esac
13813     done
13814     ESD_LIBS=`$ESDCONFIG --libs`
13815     save_CFLAGS="$CFLAGS"
13816     CFLAGS="$CFLAGS $ESD_CFLAGS"
13817     { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
13818 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
13819 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
13820   echo $ECHO_N "(cached) $ECHO_C" >&6
13821 else
13822   ac_check_lib_save_LIBS=$LIBS
13823 LIBS="-lesd  $LIBS"
13824 cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h.  */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h.  */
13830
13831 /* Override any GCC internal prototype to avoid an error.
13832    Use char because int might match the return type of a GCC
13833    builtin and then its argument prototype would still apply.  */
13834 #ifdef __cplusplus
13835 extern "C"
13836 #endif
13837 char esd_open_sound ();
13838 int
13839 main ()
13840 {
13841 return esd_open_sound ();
13842   ;
13843   return 0;
13844 }
13845 _ACEOF
13846 rm -f conftest.$ac_objext conftest$ac_exeext
13847 if { (ac_try="$ac_link"
13848 case "(($ac_try" in
13849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850   *) ac_try_echo=$ac_try;;
13851 esac
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853   (eval "$ac_link") 2>conftest.er1
13854   ac_status=$?
13855   grep -v '^ *+' conftest.er1 >conftest.err
13856   rm -f conftest.er1
13857   cat conftest.err >&5
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); } &&
13860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13861   { (case "(($ac_try" in
13862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863   *) ac_try_echo=$ac_try;;
13864 esac
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866   (eval "$ac_try") 2>&5
13867   ac_status=$?
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); }; } &&
13870          { ac_try='test -s conftest$ac_exeext'
13871   { (case "(($ac_try" in
13872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873   *) ac_try_echo=$ac_try;;
13874 esac
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876   (eval "$ac_try") 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; }; then
13880   ac_cv_lib_esd_esd_open_sound=yes
13881 else
13882   echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885         ac_cv_lib_esd_esd_open_sound=no
13886 fi
13887
13888 rm -f core conftest.err conftest.$ac_objext \
13889       conftest$ac_exeext conftest.$ac_ext
13890 LIBS=$ac_check_lib_save_LIBS
13891 fi
13892 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
13893 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
13894 if test $ac_cv_lib_esd_esd_open_sound = yes; then
13895   ESDLIBS=$ESD_LIBS
13896
13897          ESDINCL=$ESD_CFLAGS
13898
13899
13900 cat >>confdefs.h <<\_ACEOF
13901 #define HAVE_ESD 1
13902 _ACEOF
13903
13904 fi
13905
13906     CFLAGS="$save_CFLAGS"
13907 fi
13908
13909 ALSALIBS=""
13910
13911 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
13912 then
13913     { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
13914 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
13915 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
13916   echo $ECHO_N "(cached) $ECHO_C" >&6
13917 else
13918   ac_check_lib_save_LIBS=$LIBS
13919 LIBS="-lasound  $LIBS"
13920 cat >conftest.$ac_ext <<_ACEOF
13921 /* confdefs.h.  */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h.  */
13926
13927 /* Override any GCC internal prototype to avoid an error.
13928    Use char because int might match the return type of a GCC
13929    builtin and then its argument prototype would still apply.  */
13930 #ifdef __cplusplus
13931 extern "C"
13932 #endif
13933 char snd_pcm_hw_params_get_access ();
13934 int
13935 main ()
13936 {
13937 return snd_pcm_hw_params_get_access ();
13938   ;
13939   return 0;
13940 }
13941 _ACEOF
13942 rm -f conftest.$ac_objext conftest$ac_exeext
13943 if { (ac_try="$ac_link"
13944 case "(($ac_try" in
13945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946   *) ac_try_echo=$ac_try;;
13947 esac
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949   (eval "$ac_link") 2>conftest.er1
13950   ac_status=$?
13951   grep -v '^ *+' conftest.er1 >conftest.err
13952   rm -f conftest.er1
13953   cat conftest.err >&5
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); } &&
13956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13957   { (case "(($ac_try" in
13958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959   *) ac_try_echo=$ac_try;;
13960 esac
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962   (eval "$ac_try") 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }; } &&
13966          { ac_try='test -s conftest$ac_exeext'
13967   { (case "(($ac_try" in
13968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969   *) ac_try_echo=$ac_try;;
13970 esac
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972   (eval "$ac_try") 2>&5
13973   ac_status=$?
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); }; }; then
13976   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
13977 else
13978   echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13980
13981         ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
13982 fi
13983
13984 rm -f core conftest.err conftest.$ac_objext \
13985       conftest$ac_exeext conftest.$ac_ext
13986 LIBS=$ac_check_lib_save_LIBS
13987 fi
13988 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
13989 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
13990 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
13991   cat >conftest.$ac_ext <<_ACEOF
13992 /* confdefs.h.  */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h.  */
13997 #ifdef HAVE_ALSA_ASOUNDLIB_H
13998 #include <alsa/asoundlib.h>
13999 #elif defined(HAVE_SYS_ASOUNDLIB_H)
14000 #include <sys/asoundlib.h>
14001 #endif
14002 int
14003 main ()
14004 {
14005 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14006   ;
14007   return 0;
14008 }
14009 _ACEOF
14010 rm -f conftest.$ac_objext
14011 if { (ac_try="$ac_compile"
14012 case "(($ac_try" in
14013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014   *) ac_try_echo=$ac_try;;
14015 esac
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017   (eval "$ac_compile") 2>conftest.er1
14018   ac_status=$?
14019   grep -v '^ *+' conftest.er1 >conftest.err
14020   rm -f conftest.er1
14021   cat conftest.err >&5
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); } &&
14024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); }; } &&
14034          { ac_try='test -s conftest.$ac_objext'
14035   { (case "(($ac_try" in
14036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037   *) ac_try_echo=$ac_try;;
14038 esac
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040   (eval "$ac_try") 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; }; then
14044
14045 cat >>confdefs.h <<\_ACEOF
14046 #define HAVE_ALSA 1
14047 _ACEOF
14048
14049                          ALSALIBS="-lasound"
14050 else
14051   echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054
14055 fi
14056
14057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058 fi
14059
14060 fi
14061
14062
14063 AUDIOIOLIBS=""
14064
14065 if test "$ac_cv_header_libaudioio_h" = "yes"
14066 then
14067     { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14068 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14069 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14070   echo $ECHO_N "(cached) $ECHO_C" >&6
14071 else
14072   ac_check_lib_save_LIBS=$LIBS
14073 LIBS="-laudioio  $LIBS"
14074 cat >conftest.$ac_ext <<_ACEOF
14075 /* confdefs.h.  */
14076 _ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h.  */
14080
14081 /* Override any GCC internal prototype to avoid an error.
14082    Use char because int might match the return type of a GCC
14083    builtin and then its argument prototype would still apply.  */
14084 #ifdef __cplusplus
14085 extern "C"
14086 #endif
14087 char AudioIOGetVersion ();
14088 int
14089 main ()
14090 {
14091 return AudioIOGetVersion ();
14092   ;
14093   return 0;
14094 }
14095 _ACEOF
14096 rm -f conftest.$ac_objext conftest$ac_exeext
14097 if { (ac_try="$ac_link"
14098 case "(($ac_try" in
14099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100   *) ac_try_echo=$ac_try;;
14101 esac
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103   (eval "$ac_link") 2>conftest.er1
14104   ac_status=$?
14105   grep -v '^ *+' conftest.er1 >conftest.err
14106   rm -f conftest.er1
14107   cat conftest.err >&5
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); } &&
14110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14111   { (case "(($ac_try" in
14112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113   *) ac_try_echo=$ac_try;;
14114 esac
14115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116   (eval "$ac_try") 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); }; } &&
14120          { ac_try='test -s conftest$ac_exeext'
14121   { (case "(($ac_try" in
14122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123   *) ac_try_echo=$ac_try;;
14124 esac
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126   (eval "$ac_try") 2>&5
14127   ac_status=$?
14128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129   (exit $ac_status); }; }; then
14130   ac_cv_lib_audioio_AudioIOGetVersion=yes
14131 else
14132   echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14134
14135         ac_cv_lib_audioio_AudioIOGetVersion=no
14136 fi
14137
14138 rm -f core conftest.err conftest.$ac_objext \
14139       conftest$ac_exeext conftest.$ac_ext
14140 LIBS=$ac_check_lib_save_LIBS
14141 fi
14142 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14143 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14144 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14145   AUDIOIOLIBS="-laudioio"
14146
14147 cat >>confdefs.h <<\_ACEOF
14148 #define HAVE_LIBAUDIOIO 1
14149 _ACEOF
14150
14151 fi
14152
14153 fi
14154
14155
14156 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14157 then
14158     { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14159 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
14160 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14161   echo $ECHO_N "(cached) $ECHO_C" >&6
14162 else
14163   ac_check_lib_save_LIBS=$LIBS
14164 LIBS="-lcapi20  $LIBS"
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h.  */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h.  */
14171
14172 /* Override any GCC internal prototype to avoid an error.
14173    Use char because int might match the return type of a GCC
14174    builtin and then its argument prototype would still apply.  */
14175 #ifdef __cplusplus
14176 extern "C"
14177 #endif
14178 char capi20_register ();
14179 int
14180 main ()
14181 {
14182 return capi20_register ();
14183   ;
14184   return 0;
14185 }
14186 _ACEOF
14187 rm -f conftest.$ac_objext conftest$ac_exeext
14188 if { (ac_try="$ac_link"
14189 case "(($ac_try" in
14190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191   *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194   (eval "$ac_link") 2>conftest.er1
14195   ac_status=$?
14196   grep -v '^ *+' conftest.er1 >conftest.err
14197   rm -f conftest.er1
14198   cat conftest.err >&5
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); } &&
14201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14202   { (case "(($ac_try" in
14203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204   *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207   (eval "$ac_try") 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; } &&
14211          { ac_try='test -s conftest$ac_exeext'
14212   { (case "(($ac_try" in
14213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214   *) ac_try_echo=$ac_try;;
14215 esac
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217   (eval "$ac_try") 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; }; then
14221   ac_cv_lib_capi20_capi20_register=yes
14222 else
14223   echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14225
14226         ac_cv_lib_capi20_capi20_register=no
14227 fi
14228
14229 rm -f core conftest.err conftest.$ac_objext \
14230       conftest$ac_exeext conftest.$ac_ext
14231 LIBS=$ac_check_lib_save_LIBS
14232 fi
14233 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14234 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
14235 if test $ac_cv_lib_capi20_capi20_register = yes; then
14236
14237 cat >>confdefs.h <<\_ACEOF
14238 #define HAVE_CAPI4LINUX 1
14239 _ACEOF
14240
14241 fi
14242
14243 fi
14244
14245
14246 EXTRACFLAGS=""
14247
14248 if test "x${GCC}" = "xyes"
14249 then
14250   EXTRACFLAGS="-Wall -pipe"
14251
14252     { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14253 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14254 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14255   echo $ECHO_N "(cached) $ECHO_C" >&6
14256 else
14257   if test "$cross_compiling" = yes; then
14258   ac_cv_c_gcc_strength_bug="yes"
14259 else
14260   cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h.  */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h.  */
14266
14267 int     L[4] = {0,1,2,3};
14268 int main(void) {
14269   static int Array[3];
14270   unsigned int B = 3;
14271   int i;
14272   for(i=0; i<B; i++) Array[i] = i - 3;
14273   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14274   L[i] = 4;
14275
14276   exit( Array[1] != -2 || L[2] != 3);
14277 }
14278 _ACEOF
14279 rm -f conftest$ac_exeext
14280 if { (ac_try="$ac_link"
14281 case "(($ac_try" in
14282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283   *) ac_try_echo=$ac_try;;
14284 esac
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286   (eval "$ac_link") 2>&5
14287   ac_status=$?
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14290   { (case "(($ac_try" in
14291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292   *) ac_try_echo=$ac_try;;
14293 esac
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295   (eval "$ac_try") 2>&5
14296   ac_status=$?
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); }; }; then
14299   ac_cv_c_gcc_strength_bug="no"
14300 else
14301   echo "$as_me: program exited with status $ac_status" >&5
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14304
14305 ( exit $ac_status )
14306 ac_cv_c_gcc_strength_bug="yes"
14307 fi
14308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14309 fi
14310
14311
14312 fi
14313 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14314 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
14315   if test "$ac_cv_c_gcc_strength_bug" = "yes"
14316   then
14317     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
14318   fi
14319
14320
14321   { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
14322 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
14323 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326   ac_wine_try_cflags_saved=$CFLAGS
14327 CFLAGS="$CFLAGS -fshort-wchar"
14328 cat >conftest.$ac_ext <<_ACEOF
14329 /* confdefs.h.  */
14330 _ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h.  */
14334
14335 int
14336 main ()
14337 {
14338
14339   ;
14340   return 0;
14341 }
14342 _ACEOF
14343 rm -f conftest.$ac_objext conftest$ac_exeext
14344 if { (ac_try="$ac_link"
14345 case "(($ac_try" in
14346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347   *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350   (eval "$ac_link") 2>conftest.er1
14351   ac_status=$?
14352   grep -v '^ *+' conftest.er1 >conftest.err
14353   rm -f conftest.er1
14354   cat conftest.err >&5
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } &&
14357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14358   { (case "(($ac_try" in
14359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360   *) ac_try_echo=$ac_try;;
14361 esac
14362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14363   (eval "$ac_try") 2>&5
14364   ac_status=$?
14365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366   (exit $ac_status); }; } &&
14367          { ac_try='test -s conftest$ac_exeext'
14368   { (case "(($ac_try" in
14369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370   *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373   (eval "$ac_try") 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; }; then
14377   ac_cv_cflags__fshort_wchar=yes
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382         ac_cv_cflags__fshort_wchar=no
14383 fi
14384
14385 rm -f core conftest.err conftest.$ac_objext \
14386       conftest$ac_exeext conftest.$ac_ext
14387 CFLAGS=$ac_wine_try_cflags_saved
14388 fi
14389 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
14390 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
14391 if test $ac_cv_cflags__fshort_wchar = yes; then
14392
14393 cat >>confdefs.h <<\_ACEOF
14394 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
14395 _ACEOF
14396
14397 fi
14398
14399   { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
14400 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
14401 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
14402   echo $ECHO_N "(cached) $ECHO_C" >&6
14403 else
14404   ac_wine_try_cflags_saved=$CFLAGS
14405 CFLAGS="$CFLAGS -fno-strict-aliasing"
14406 cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h.  */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h.  */
14412
14413 int
14414 main ()
14415 {
14416
14417   ;
14418   return 0;
14419 }
14420 _ACEOF
14421 rm -f conftest.$ac_objext conftest$ac_exeext
14422 if { (ac_try="$ac_link"
14423 case "(($ac_try" in
14424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425   *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428   (eval "$ac_link") 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } &&
14435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14436   { (case "(($ac_try" in
14437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438   *) ac_try_echo=$ac_try;;
14439 esac
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441   (eval "$ac_try") 2>&5
14442   ac_status=$?
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); }; } &&
14445          { ac_try='test -s conftest$ac_exeext'
14446   { (case "(($ac_try" in
14447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448   *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451   (eval "$ac_try") 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; }; then
14455   ac_cv_cflags__fno_strict_aliasing=yes
14456 else
14457   echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460         ac_cv_cflags__fno_strict_aliasing=no
14461 fi
14462
14463 rm -f core conftest.err conftest.$ac_objext \
14464       conftest$ac_exeext conftest.$ac_ext
14465 CFLAGS=$ac_wine_try_cflags_saved
14466 fi
14467 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
14468 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
14469 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
14470   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
14471 fi
14472
14473   { echo "$as_me:$LINENO: checking whether the compiler supports -gstabs+" >&5
14474 echo $ECHO_N "checking whether the compiler supports -gstabs+... $ECHO_C" >&6; }
14475 if test "${ac_cv_cflags__gstabsp+set}" = set; then
14476   echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478   ac_wine_try_cflags_saved=$CFLAGS
14479 CFLAGS="$CFLAGS -gstabs+"
14480 cat >conftest.$ac_ext <<_ACEOF
14481 /* confdefs.h.  */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h.  */
14486
14487 int
14488 main ()
14489 {
14490
14491   ;
14492   return 0;
14493 }
14494 _ACEOF
14495 rm -f conftest.$ac_objext conftest$ac_exeext
14496 if { (ac_try="$ac_link"
14497 case "(($ac_try" in
14498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499   *) ac_try_echo=$ac_try;;
14500 esac
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502   (eval "$ac_link") 2>conftest.er1
14503   ac_status=$?
14504   grep -v '^ *+' conftest.er1 >conftest.err
14505   rm -f conftest.er1
14506   cat conftest.err >&5
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); } &&
14509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14510   { (case "(($ac_try" in
14511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512   *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515   (eval "$ac_try") 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; } &&
14519          { ac_try='test -s conftest$ac_exeext'
14520   { (case "(($ac_try" in
14521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522   *) ac_try_echo=$ac_try;;
14523 esac
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525   (eval "$ac_try") 2>&5
14526   ac_status=$?
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); }; }; then
14529   ac_cv_cflags__gstabsp=yes
14530 else
14531   echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14533
14534         ac_cv_cflags__gstabsp=no
14535 fi
14536
14537 rm -f core conftest.err conftest.$ac_objext \
14538       conftest$ac_exeext conftest.$ac_ext
14539 CFLAGS=$ac_wine_try_cflags_saved
14540 fi
14541 { echo "$as_me:$LINENO: result: $ac_cv_cflags__gstabsp" >&5
14542 echo "${ECHO_T}$ac_cv_cflags__gstabsp" >&6; }
14543 if test $ac_cv_cflags__gstabsp = yes; then
14544   EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
14545 fi
14546
14547   { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
14548 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
14549 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
14550   echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552   ac_wine_try_cflags_saved=$CFLAGS
14553 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14554 cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560
14561 int
14562 main ()
14563 {
14564
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576   (eval "$ac_link") 2>conftest.er1
14577   ac_status=$?
14578   grep -v '^ *+' conftest.er1 >conftest.err
14579   rm -f conftest.er1
14580   cat conftest.err >&5
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); } &&
14583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14584   { (case "(($ac_try" in
14585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586   *) ac_try_echo=$ac_try;;
14587 esac
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589   (eval "$ac_try") 2>&5
14590   ac_status=$?
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); }; } &&
14593          { ac_try='test -s conftest$ac_exeext'
14594   { (case "(($ac_try" in
14595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596   *) ac_try_echo=$ac_try;;
14597 esac
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599   (eval "$ac_try") 2>&5
14600   ac_status=$?
14601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602   (exit $ac_status); }; }; then
14603   ac_cv_cflags__Wdeclaration_after_statement=yes
14604 else
14605   echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14607
14608         ac_cv_cflags__Wdeclaration_after_statement=no
14609 fi
14610
14611 rm -f core conftest.err conftest.$ac_objext \
14612       conftest$ac_exeext conftest.$ac_ext
14613 CFLAGS=$ac_wine_try_cflags_saved
14614 fi
14615 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
14616 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
14617 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
14618   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
14619 fi
14620
14621   { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
14622 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
14623 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
14624   echo $ECHO_N "(cached) $ECHO_C" >&6
14625 else
14626   ac_wine_try_cflags_saved=$CFLAGS
14627 CFLAGS="$CFLAGS -Wwrite-strings"
14628 cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h.  */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h.  */
14634
14635 int
14636 main ()
14637 {
14638
14639   ;
14640   return 0;
14641 }
14642 _ACEOF
14643 rm -f conftest.$ac_objext conftest$ac_exeext
14644 if { (ac_try="$ac_link"
14645 case "(($ac_try" in
14646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647   *) ac_try_echo=$ac_try;;
14648 esac
14649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650   (eval "$ac_link") 2>conftest.er1
14651   ac_status=$?
14652   grep -v '^ *+' conftest.er1 >conftest.err
14653   rm -f conftest.er1
14654   cat conftest.err >&5
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); } &&
14657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14658   { (case "(($ac_try" in
14659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660   *) ac_try_echo=$ac_try;;
14661 esac
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663   (eval "$ac_try") 2>&5
14664   ac_status=$?
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); }; } &&
14667          { ac_try='test -s conftest$ac_exeext'
14668   { (case "(($ac_try" in
14669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670   *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673   (eval "$ac_try") 2>&5
14674   ac_status=$?
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); }; }; then
14677   ac_cv_cflags__Wwrite_strings=yes
14678 else
14679   echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682         ac_cv_cflags__Wwrite_strings=no
14683 fi
14684
14685 rm -f core conftest.err conftest.$ac_objext \
14686       conftest$ac_exeext conftest.$ac_ext
14687 CFLAGS=$ac_wine_try_cflags_saved
14688 fi
14689 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
14690 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
14691 if test $ac_cv_cflags__Wwrite_strings = yes; then
14692   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
14693 fi
14694
14695
14696     saved_CFLAGS="$CFLAGS"
14697   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
14698   { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
14699 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
14700 if test "${ac_cv_c_string_h_warnings+set}" = set; then
14701   echo $ECHO_N "(cached) $ECHO_C" >&6
14702 else
14703   cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h.  */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h.  */
14709 #include <string.h>
14710 int
14711 main ()
14712 {
14713
14714   ;
14715   return 0;
14716 }
14717 _ACEOF
14718 rm -f conftest.$ac_objext
14719 if { (ac_try="$ac_compile"
14720 case "(($ac_try" in
14721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14722   *) ac_try_echo=$ac_try;;
14723 esac
14724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14725   (eval "$ac_compile") 2>conftest.er1
14726   ac_status=$?
14727   grep -v '^ *+' conftest.er1 >conftest.err
14728   rm -f conftest.er1
14729   cat conftest.err >&5
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); } &&
14732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14733   { (case "(($ac_try" in
14734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735   *) ac_try_echo=$ac_try;;
14736 esac
14737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738   (eval "$ac_try") 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); }; } &&
14742          { ac_try='test -s conftest.$ac_objext'
14743   { (case "(($ac_try" in
14744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745   *) ac_try_echo=$ac_try;;
14746 esac
14747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748   (eval "$ac_try") 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; }; then
14752   ac_cv_c_string_h_warnings=no
14753 else
14754   echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757         ac_cv_c_string_h_warnings=yes
14758 fi
14759
14760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761 fi
14762 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
14763 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
14764   CFLAGS="$saved_CFLAGS"
14765   if test "$ac_cv_c_string_h_warnings" = "no"
14766   then
14767     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
14768   fi
14769
14770   BUILTINFLAG=""
14771
14772   saved_CFLAGS="$CFLAGS"
14773   CFLAGS="$CFLAGS -Werror"
14774   { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
14775 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
14776 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
14777   echo $ECHO_N "(cached) $ECHO_C" >&6
14778 else
14779   cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h.  */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h.  */
14785
14786 int
14787 main ()
14788 {
14789 int iswlower(unsigned short);
14790   ;
14791   return 0;
14792 }
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (ac_try="$ac_compile"
14796 case "(($ac_try" in
14797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798   *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801   (eval "$ac_compile") 2>conftest.er1
14802   ac_status=$?
14803   grep -v '^ *+' conftest.er1 >conftest.err
14804   rm -f conftest.er1
14805   cat conftest.err >&5
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); } &&
14808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14809   { (case "(($ac_try" in
14810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811   *) ac_try_echo=$ac_try;;
14812 esac
14813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14814   (eval "$ac_try") 2>&5
14815   ac_status=$?
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); }; } &&
14818          { ac_try='test -s conftest.$ac_objext'
14819   { (case "(($ac_try" in
14820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821   *) ac_try_echo=$ac_try;;
14822 esac
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824   (eval "$ac_try") 2>&5
14825   ac_status=$?
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); }; }; then
14828   ac_cv_c_builtin_wchar_ctype=no
14829 else
14830   echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14832
14833         ac_cv_c_builtin_wchar_ctype=yes
14834 fi
14835
14836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837 fi
14838 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
14839 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
14840   CFLAGS="$saved_CFLAGS"
14841   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
14842   then
14843     BUILTINFLAG="-fno-builtin"
14844   fi
14845 fi
14846
14847
14848 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
14849 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
14850 if test "${ac_cv_asm_func_def+set}" = set; then
14851   echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853   cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h.  */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h.  */
14859 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"); }
14860
14861 int
14862 main ()
14863 {
14864
14865   ;
14866   return 0;
14867 }
14868 _ACEOF
14869 rm -f conftest.$ac_objext conftest$ac_exeext
14870 if { (ac_try="$ac_link"
14871 case "(($ac_try" in
14872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873   *) ac_try_echo=$ac_try;;
14874 esac
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876   (eval "$ac_link") 2>conftest.er1
14877   ac_status=$?
14878   grep -v '^ *+' conftest.er1 >conftest.err
14879   rm -f conftest.er1
14880   cat conftest.err >&5
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); } &&
14883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14884   { (case "(($ac_try" in
14885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886   *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889   (eval "$ac_try") 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); }; } &&
14893          { ac_try='test -s conftest$ac_exeext'
14894   { (case "(($ac_try" in
14895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896   *) ac_try_echo=$ac_try;;
14897 esac
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899   (eval "$ac_try") 2>&5
14900   ac_status=$?
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); }; }; then
14903   ac_cv_asm_func_def=".def"
14904 else
14905   echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14907
14908         cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h.  */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h.  */
14914 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
14915
14916 int
14917 main ()
14918 {
14919
14920   ;
14921   return 0;
14922 }
14923 _ACEOF
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (ac_try="$ac_link"
14926 case "(($ac_try" in
14927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928   *) ac_try_echo=$ac_try;;
14929 esac
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931   (eval "$ac_link") 2>conftest.er1
14932   ac_status=$?
14933   grep -v '^ *+' conftest.er1 >conftest.err
14934   rm -f conftest.er1
14935   cat conftest.err >&5
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); } &&
14938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14939   { (case "(($ac_try" in
14940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941   *) ac_try_echo=$ac_try;;
14942 esac
14943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14944   (eval "$ac_try") 2>&5
14945   ac_status=$?
14946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947   (exit $ac_status); }; } &&
14948          { ac_try='test -s conftest$ac_exeext'
14949   { (case "(($ac_try" in
14950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951   *) ac_try_echo=$ac_try;;
14952 esac
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954   (eval "$ac_try") 2>&5
14955   ac_status=$?
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); }; }; then
14958   ac_cv_asm_func_def=".type @function"
14959 else
14960   echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14962
14963         cat >conftest.$ac_ext <<_ACEOF
14964 /* confdefs.h.  */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h.  */
14969 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
14970
14971 int
14972 main ()
14973 {
14974
14975   ;
14976   return 0;
14977 }
14978 _ACEOF
14979 rm -f conftest.$ac_objext conftest$ac_exeext
14980 if { (ac_try="$ac_link"
14981 case "(($ac_try" in
14982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983   *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986   (eval "$ac_link") 2>conftest.er1
14987   ac_status=$?
14988   grep -v '^ *+' conftest.er1 >conftest.err
14989   rm -f conftest.er1
14990   cat conftest.err >&5
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); } &&
14993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14994   { (case "(($ac_try" in
14995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996   *) ac_try_echo=$ac_try;;
14997 esac
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999   (eval "$ac_try") 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; } &&
15003          { ac_try='test -s conftest$ac_exeext'
15004   { (case "(($ac_try" in
15005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006   *) ac_try_echo=$ac_try;;
15007 esac
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009   (eval "$ac_try") 2>&5
15010   ac_status=$?
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); }; }; then
15013   ac_cv_asm_func_def=".type 2"
15014 else
15015   echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15017
15018         ac_cv_asm_func_def="unknown"
15019 fi
15020
15021 rm -f core conftest.err conftest.$ac_objext \
15022       conftest$ac_exeext conftest.$ac_ext
15023 fi
15024
15025 rm -f core conftest.err conftest.$ac_objext \
15026       conftest$ac_exeext conftest.$ac_ext
15027 fi
15028
15029 rm -f core conftest.err conftest.$ac_objext \
15030       conftest$ac_exeext conftest.$ac_ext
15031 fi
15032 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15033 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
15034
15035
15036
15037 case "$ac_cv_asm_func_def" in
15038   ".def")
15039      cat >>confdefs.h <<\_ACEOF
15040 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15041 _ACEOF
15042  ;;
15043   ".type @function")
15044      cat >>confdefs.h <<\_ACEOF
15045 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15046 _ACEOF
15047  ;;
15048   ".type 2")
15049      cat >>confdefs.h <<\_ACEOF
15050 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15051 _ACEOF
15052  ;;
15053   *)
15054      cat >>confdefs.h <<\_ACEOF
15055 #define __ASM_FUNC(name) ""
15056 _ACEOF
15057  ;;
15058 esac
15059
15060
15061 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15062 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15063 if test "${ac_cv_c_extern_prefix+set}" = set; then
15064   echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15066   cat >conftest.$ac_ext <<_ACEOF
15067 /* confdefs.h.  */
15068 _ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h.  */
15072 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
15073 extern int ac_test;
15074 int
15075 main ()
15076 {
15077 if (ac_test) return 1
15078   ;
15079   return 0;
15080 }
15081 _ACEOF
15082 rm -f conftest.$ac_objext conftest$ac_exeext
15083 if { (ac_try="$ac_link"
15084 case "(($ac_try" in
15085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086   *) ac_try_echo=$ac_try;;
15087 esac
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089   (eval "$ac_link") 2>conftest.er1
15090   ac_status=$?
15091   grep -v '^ *+' conftest.er1 >conftest.err
15092   rm -f conftest.er1
15093   cat conftest.err >&5
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } &&
15096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15097   { (case "(($ac_try" in
15098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099   *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102   (eval "$ac_try") 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); }; } &&
15106          { ac_try='test -s conftest$ac_exeext'
15107   { (case "(($ac_try" in
15108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109   *) ac_try_echo=$ac_try;;
15110 esac
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112   (eval "$ac_try") 2>&5
15113   ac_status=$?
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); }; }; then
15116   ac_cv_c_extern_prefix="yes"
15117 else
15118   echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15120
15121         ac_cv_c_extern_prefix="no"
15122 fi
15123
15124 rm -f core conftest.err conftest.$ac_objext \
15125       conftest$ac_exeext conftest.$ac_ext
15126 fi
15127 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15128 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
15129
15130
15131
15132 if test "$ac_cv_c_extern_prefix" = "yes"
15133 then
15134   cat >>confdefs.h <<\_ACEOF
15135 #define __ASM_NAME(name) "_" name
15136 _ACEOF
15137
15138 else
15139   cat >>confdefs.h <<\_ACEOF
15140 #define __ASM_NAME(name) name
15141 _ACEOF
15142
15143 fi
15144
15145
15146 DLLEXT=""
15147
15148 DLLFLAGS="-D_REENTRANT"
15149
15150 LDSHARED=""
15151
15152 LDDLLFLAGS=""
15153
15154 LIBEXT="so"
15155
15156 IMPLIBEXT="def"
15157
15158 LIBWINE_LDFLAGS=""
15159
15160
15161 case $host_os in
15162   cygwin*|mingw32*)
15163     if test -n "$ac_tool_prefix"; then
15164   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15165 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15168 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15169   echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171   if test -n "$DLLTOOL"; then
15172   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15173 else
15174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15175 for as_dir in $PATH
15176 do
15177   IFS=$as_save_IFS
15178   test -z "$as_dir" && as_dir=.
15179   for ac_exec_ext in '' $ac_executable_extensions; do
15180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15181     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15183     break 2
15184   fi
15185 done
15186 done
15187 IFS=$as_save_IFS
15188
15189 fi
15190 fi
15191 DLLTOOL=$ac_cv_prog_DLLTOOL
15192 if test -n "$DLLTOOL"; then
15193   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15194 echo "${ECHO_T}$DLLTOOL" >&6; }
15195 else
15196   { echo "$as_me:$LINENO: result: no" >&5
15197 echo "${ECHO_T}no" >&6; }
15198 fi
15199
15200
15201 fi
15202 if test -z "$ac_cv_prog_DLLTOOL"; then
15203   ac_ct_DLLTOOL=$DLLTOOL
15204   # Extract the first word of "dlltool", so it can be a program name with args.
15205 set dummy dlltool; ac_word=$2
15206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15208 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15209   echo $ECHO_N "(cached) $ECHO_C" >&6
15210 else
15211   if test -n "$ac_ct_DLLTOOL"; then
15212   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15213 else
15214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15215 for as_dir in $PATH
15216 do
15217   IFS=$as_save_IFS
15218   test -z "$as_dir" && as_dir=.
15219   for ac_exec_ext in '' $ac_executable_extensions; do
15220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15221     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15223     break 2
15224   fi
15225 done
15226 done
15227 IFS=$as_save_IFS
15228
15229 fi
15230 fi
15231 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15232 if test -n "$ac_ct_DLLTOOL"; then
15233   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15234 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
15235 else
15236   { echo "$as_me:$LINENO: result: no" >&5
15237 echo "${ECHO_T}no" >&6; }
15238 fi
15239
15240   if test "x$ac_ct_DLLTOOL" = x; then
15241     DLLTOOL="false"
15242   else
15243     case $cross_compiling:$ac_tool_warned in
15244 yes:)
15245 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15246 whose name does not start with the host triplet.  If you think this
15247 configuration is useful to you, please write to autoconf@gnu.org." >&5
15248 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15249 whose name does not start with the host triplet.  If you think this
15250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15251 ac_tool_warned=yes ;;
15252 esac
15253     DLLTOOL=$ac_ct_DLLTOOL
15254   fi
15255 else
15256   DLLTOOL="$ac_cv_prog_DLLTOOL"
15257 fi
15258
15259     if test -n "$ac_tool_prefix"; then
15260   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15261 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
15262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15264 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15265   echo $ECHO_N "(cached) $ECHO_C" >&6
15266 else
15267   if test -n "$DLLWRAP"; then
15268   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15269 else
15270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15271 for as_dir in $PATH
15272 do
15273   IFS=$as_save_IFS
15274   test -z "$as_dir" && as_dir=.
15275   for ac_exec_ext in '' $ac_executable_extensions; do
15276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15277     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
15278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15279     break 2
15280   fi
15281 done
15282 done
15283 IFS=$as_save_IFS
15284
15285 fi
15286 fi
15287 DLLWRAP=$ac_cv_prog_DLLWRAP
15288 if test -n "$DLLWRAP"; then
15289   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15290 echo "${ECHO_T}$DLLWRAP" >&6; }
15291 else
15292   { echo "$as_me:$LINENO: result: no" >&5
15293 echo "${ECHO_T}no" >&6; }
15294 fi
15295
15296
15297 fi
15298 if test -z "$ac_cv_prog_DLLWRAP"; then
15299   ac_ct_DLLWRAP=$DLLWRAP
15300   # Extract the first word of "dllwrap", so it can be a program name with args.
15301 set dummy dllwrap; ac_word=$2
15302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15304 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15305   echo $ECHO_N "(cached) $ECHO_C" >&6
15306 else
15307   if test -n "$ac_ct_DLLWRAP"; then
15308   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15309 else
15310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15311 for as_dir in $PATH
15312 do
15313   IFS=$as_save_IFS
15314   test -z "$as_dir" && as_dir=.
15315   for ac_exec_ext in '' $ac_executable_extensions; do
15316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15317     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15319     break 2
15320   fi
15321 done
15322 done
15323 IFS=$as_save_IFS
15324
15325 fi
15326 fi
15327 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15328 if test -n "$ac_ct_DLLWRAP"; then
15329   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15330 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
15331 else
15332   { echo "$as_me:$LINENO: result: no" >&5
15333 echo "${ECHO_T}no" >&6; }
15334 fi
15335
15336   if test "x$ac_ct_DLLWRAP" = x; then
15337     DLLWRAP="false"
15338   else
15339     case $cross_compiling:$ac_tool_warned in
15340 yes:)
15341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15342 whose name does not start with the host triplet.  If you think this
15343 configuration is useful to you, please write to autoconf@gnu.org." >&5
15344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15345 whose name does not start with the host triplet.  If you think this
15346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15347 ac_tool_warned=yes ;;
15348 esac
15349     DLLWRAP=$ac_ct_DLLWRAP
15350   fi
15351 else
15352   DLLWRAP="$ac_cv_prog_DLLWRAP"
15353 fi
15354
15355     if test "$DLLWRAP" = "false"; then
15356       LIBEXT="a"
15357     else
15358             LIBEXT="dll"
15359     fi
15360     IMPLIBEXT="a"
15361         WIN16_FILES=""
15362     WIN16_INSTALL=""
15363     ;;
15364   darwin*|macosx*)
15365     DLLEXT=".so"
15366     LIBEXT="dylib"
15367     DLLFLAGS="$DLLFLAGS -fPIC"
15368     LDDLLFLAGS="-bundle -multiply_defined suppress"
15369     LIBWINE_LDFLAGS="-multiply_defined suppress"
15370     LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
15371     STRIP="$STRIP -u -r"
15372         COREFOUNDATIONLIB="-framework CoreFoundation"
15373
15374     IOKITLIB="-framework IOKit -framework CoreFoundation"
15375
15376     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
15377
15378     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
15379     then
15380                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
15381
15382     fi
15383     case $host_cpu in
15384       *powerpc*)
15385         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
15386     esac
15387     ;;
15388   *)
15389     DLLFLAGS="$DLLFLAGS -fPIC"
15390     DLLEXT=".so"
15391     { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
15392 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
15393 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
15394   echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396   ac_wine_try_cflags_saved=$CFLAGS
15397 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
15398 cat >conftest.$ac_ext <<_ACEOF
15399 void myfunc() {}
15400 _ACEOF
15401 rm -f conftest.$ac_objext conftest$ac_exeext
15402 if { (ac_try="$ac_link"
15403 case "(($ac_try" in
15404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405   *) ac_try_echo=$ac_try;;
15406 esac
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408   (eval "$ac_link") 2>conftest.er1
15409   ac_status=$?
15410   grep -v '^ *+' conftest.er1 >conftest.err
15411   rm -f conftest.er1
15412   cat conftest.err >&5
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); } &&
15415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15416   { (case "(($ac_try" in
15417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418   *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421   (eval "$ac_try") 2>&5
15422   ac_status=$?
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); }; } &&
15425          { ac_try='test -s conftest$ac_exeext'
15426   { (case "(($ac_try" in
15427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428   *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431   (eval "$ac_try") 2>&5
15432   ac_status=$?
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); }; }; then
15435   ac_cv_c_dll_gnuelf="yes"
15436 else
15437   echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15439
15440         ac_cv_c_dll_gnuelf="no"
15441 fi
15442
15443 rm -f core conftest.err conftest.$ac_objext \
15444       conftest$ac_exeext conftest.$ac_ext
15445 CFLAGS=$ac_wine_try_cflags_saved
15446 fi
15447 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
15448 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
15449     if test "$ac_cv_c_dll_gnuelf" = "yes"
15450     then
15451       LDSHARED="\$(CC) -shared"
15452       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
15453       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
15454 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
15455 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
15456   echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458   ac_wine_try_cflags_saved=$CFLAGS
15459 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h.  */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h.  */
15466
15467 int
15468 main ()
15469 {
15470
15471   ;
15472   return 0;
15473 }
15474 _ACEOF
15475 rm -f conftest.$ac_objext conftest$ac_exeext
15476 if { (ac_try="$ac_link"
15477 case "(($ac_try" in
15478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479   *) ac_try_echo=$ac_try;;
15480 esac
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482   (eval "$ac_link") 2>conftest.er1
15483   ac_status=$?
15484   grep -v '^ *+' conftest.er1 >conftest.err
15485   rm -f conftest.er1
15486   cat conftest.err >&5
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); } &&
15489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15490   { (case "(($ac_try" in
15491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492   *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495   (eval "$ac_try") 2>&5
15496   ac_status=$?
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); }; } &&
15499          { ac_try='test -s conftest$ac_exeext'
15500   { (case "(($ac_try" in
15501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502   *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505   (eval "$ac_try") 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); }; }; then
15509   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
15510 else
15511   echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514         ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
15515 fi
15516
15517 rm -f core conftest.err conftest.$ac_objext \
15518       conftest$ac_exeext conftest.$ac_ext
15519 CFLAGS=$ac_wine_try_cflags_saved
15520 fi
15521 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
15522 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
15523 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
15524   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
15525 else
15526   { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
15527 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
15528 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   ac_wine_try_cflags_saved=$CFLAGS
15532 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
15533 cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h.  */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h.  */
15539
15540 int
15541 main ()
15542 {
15543
15544   ;
15545   return 0;
15546 }
15547 _ACEOF
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (ac_try="$ac_link"
15550 case "(($ac_try" in
15551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552   *) ac_try_echo=$ac_try;;
15553 esac
15554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555   (eval "$ac_link") 2>conftest.er1
15556   ac_status=$?
15557   grep -v '^ *+' conftest.er1 >conftest.err
15558   rm -f conftest.er1
15559   cat conftest.err >&5
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); } &&
15562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15563   { (case "(($ac_try" in
15564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565   *) ac_try_echo=$ac_try;;
15566 esac
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568   (eval "$ac_try") 2>&5
15569   ac_status=$?
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); }; } &&
15572          { ac_try='test -s conftest$ac_exeext'
15573   { (case "(($ac_try" in
15574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575   *) ac_try_echo=$ac_try;;
15576 esac
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578   (eval "$ac_try") 2>&5
15579   ac_status=$?
15580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581   (exit $ac_status); }; }; then
15582   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
15583 else
15584   echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15586
15587         ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
15588 fi
15589
15590 rm -f core conftest.err conftest.$ac_objext \
15591       conftest$ac_exeext conftest.$ac_ext
15592 CFLAGS=$ac_wine_try_cflags_saved
15593 fi
15594 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
15595 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
15596 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
15597   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
15598 fi
15599
15600 fi
15601
15602
15603       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
15604 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
15605 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
15606   echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608   ac_wine_try_cflags_saved=$CFLAGS
15609 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h.  */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h.  */
15616
15617 int
15618 main ()
15619 {
15620
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (ac_try="$ac_link"
15627 case "(($ac_try" in
15628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629   *) ac_try_echo=$ac_try;;
15630 esac
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632   (eval "$ac_link") 2>conftest.er1
15633   ac_status=$?
15634   grep -v '^ *+' conftest.er1 >conftest.err
15635   rm -f conftest.er1
15636   cat conftest.err >&5
15637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638   (exit $ac_status); } &&
15639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15640   { (case "(($ac_try" in
15641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642   *) ac_try_echo=$ac_try;;
15643 esac
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645   (eval "$ac_try") 2>&5
15646   ac_status=$?
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); }; } &&
15649          { ac_try='test -s conftest$ac_exeext'
15650   { (case "(($ac_try" in
15651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652   *) ac_try_echo=$ac_try;;
15653 esac
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655   (eval "$ac_try") 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; }; then
15659   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
15660 else
15661   echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
15665 fi
15666
15667 rm -f core conftest.err conftest.$ac_objext \
15668       conftest$ac_exeext conftest.$ac_ext
15669 CFLAGS=$ac_wine_try_cflags_saved
15670 fi
15671 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
15672 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
15673 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
15674   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
15675 fi
15676
15677
15678       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
15679 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
15680 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
15681   echo $ECHO_N "(cached) $ECHO_C" >&6
15682 else
15683   ac_wine_try_cflags_saved=$CFLAGS
15684 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
15685 cat >conftest.$ac_ext <<_ACEOF
15686 /* confdefs.h.  */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h.  */
15691
15692 int
15693 main ()
15694 {
15695
15696   ;
15697   return 0;
15698 }
15699 _ACEOF
15700 rm -f conftest.$ac_objext conftest$ac_exeext
15701 if { (ac_try="$ac_link"
15702 case "(($ac_try" in
15703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704   *) ac_try_echo=$ac_try;;
15705 esac
15706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15707   (eval "$ac_link") 2>conftest.er1
15708   ac_status=$?
15709   grep -v '^ *+' conftest.er1 >conftest.err
15710   rm -f conftest.er1
15711   cat conftest.err >&5
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); } &&
15714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15715   { (case "(($ac_try" in
15716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717   *) ac_try_echo=$ac_try;;
15718 esac
15719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720   (eval "$ac_try") 2>&5
15721   ac_status=$?
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); }; } &&
15724          { ac_try='test -s conftest$ac_exeext'
15725   { (case "(($ac_try" in
15726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727   *) ac_try_echo=$ac_try;;
15728 esac
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730   (eval "$ac_try") 2>&5
15731   ac_status=$?
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); }; }; then
15734   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
15735 else
15736   echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15738
15739         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
15740 fi
15741
15742 rm -f core conftest.err conftest.$ac_objext \
15743       conftest$ac_exeext conftest.$ac_ext
15744 CFLAGS=$ac_wine_try_cflags_saved
15745 fi
15746 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
15747 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
15748 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
15749   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
15750 fi
15751
15752
15753       echo '{ global: *; };' >conftest.map
15754       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
15755 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
15756 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
15757   echo $ECHO_N "(cached) $ECHO_C" >&6
15758 else
15759   ac_wine_try_cflags_saved=$CFLAGS
15760 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
15761 cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h.  */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h.  */
15767
15768 int
15769 main ()
15770 {
15771
15772   ;
15773   return 0;
15774 }
15775 _ACEOF
15776 rm -f conftest.$ac_objext conftest$ac_exeext
15777 if { (ac_try="$ac_link"
15778 case "(($ac_try" in
15779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780   *) ac_try_echo=$ac_try;;
15781 esac
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783   (eval "$ac_link") 2>conftest.er1
15784   ac_status=$?
15785   grep -v '^ *+' conftest.er1 >conftest.err
15786   rm -f conftest.er1
15787   cat conftest.err >&5
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); } &&
15790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15791   { (case "(($ac_try" in
15792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793   *) ac_try_echo=$ac_try;;
15794 esac
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796   (eval "$ac_try") 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); }; } &&
15800          { ac_try='test -s conftest$ac_exeext'
15801   { (case "(($ac_try" in
15802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803   *) ac_try_echo=$ac_try;;
15804 esac
15805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15806   (eval "$ac_try") 2>&5
15807   ac_status=$?
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); }; }; then
15810   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
15811 else
15812   echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15814
15815         ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
15816 fi
15817
15818 rm -f core conftest.err conftest.$ac_objext \
15819       conftest$ac_exeext conftest.$ac_ext
15820 CFLAGS=$ac_wine_try_cflags_saved
15821 fi
15822 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
15823 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
15824 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
15825   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
15826 fi
15827
15828       rm -f conftest.map
15829
15830       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
15831 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
15832 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
15833   echo $ECHO_N "(cached) $ECHO_C" >&6
15834 else
15835   ac_wine_try_cflags_saved=$CFLAGS
15836 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
15837 cat >conftest.$ac_ext <<_ACEOF
15838 /* confdefs.h.  */
15839 _ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h.  */
15843
15844 int
15845 main ()
15846 {
15847
15848   ;
15849   return 0;
15850 }
15851 _ACEOF
15852 rm -f conftest.$ac_objext conftest$ac_exeext
15853 if { (ac_try="$ac_link"
15854 case "(($ac_try" in
15855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856   *) ac_try_echo=$ac_try;;
15857 esac
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859   (eval "$ac_link") 2>conftest.er1
15860   ac_status=$?
15861   grep -v '^ *+' conftest.er1 >conftest.err
15862   rm -f conftest.er1
15863   cat conftest.err >&5
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); } &&
15866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15867   { (case "(($ac_try" in
15868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869   *) ac_try_echo=$ac_try;;
15870 esac
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872   (eval "$ac_try") 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); }; } &&
15876          { ac_try='test -s conftest$ac_exeext'
15877   { (case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882   (eval "$ac_try") 2>&5
15883   ac_status=$?
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); }; }; then
15886   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
15887 else
15888   echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15890
15891         ac_cv_cflags__fPIC__Wl___export_dynamic=no
15892 fi
15893
15894 rm -f core conftest.err conftest.$ac_objext \
15895       conftest$ac_exeext conftest.$ac_ext
15896 CFLAGS=$ac_wine_try_cflags_saved
15897 fi
15898 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
15899 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
15900 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
15901   LDEXECFLAGS="-Wl,--export-dynamic"
15902
15903 fi
15904
15905
15906       as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
15907 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
15908 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
15909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15910   echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912   ac_wine_try_cflags_saved=$CFLAGS
15913 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
15914 cat >conftest.$ac_ext <<_ACEOF
15915 /* confdefs.h.  */
15916 _ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h.  */
15920
15921 int
15922 main ()
15923 {
15924
15925   ;
15926   return 0;
15927 }
15928 _ACEOF
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933   *) ac_try_echo=$ac_try;;
15934 esac
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936   (eval "$ac_link") 2>conftest.er1
15937   ac_status=$?
15938   grep -v '^ *+' conftest.er1 >conftest.err
15939   rm -f conftest.er1
15940   cat conftest.err >&5
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); } &&
15943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15944   { (case "(($ac_try" in
15945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946   *) ac_try_echo=$ac_try;;
15947 esac
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949   (eval "$ac_try") 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); }; } &&
15953          { ac_try='test -s conftest$ac_exeext'
15954   { (case "(($ac_try" in
15955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956   *) ac_try_echo=$ac_try;;
15957 esac
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959   (eval "$ac_try") 2>&5
15960   ac_status=$?
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); }; }; then
15963   eval "$as_ac_var=yes"
15964 else
15965   echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968         eval "$as_ac_var=no"
15969 fi
15970
15971 rm -f core conftest.err conftest.$ac_objext \
15972       conftest$ac_exeext conftest.$ac_ext
15973 CFLAGS=$ac_wine_try_cflags_saved
15974 fi
15975 ac_res=`eval echo '${'$as_ac_var'}'`
15976                { echo "$as_me:$LINENO: result: $ac_res" >&5
15977 echo "${ECHO_T}$ac_res" >&6; }
15978 if test `eval echo '${'$as_ac_var'}'` = yes; then
15979   LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
15980 fi
15981
15982
15983       case $host_cpu in
15984         *i[3456789]86* | x86_64)
15985           { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
15986 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
15987 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
15988   echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990   ac_wine_try_cflags_saved=$CFLAGS
15991 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h.  */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h.  */
15998
15999 int
16000 main ()
16001 {
16002
16003   ;
16004   return 0;
16005 }
16006 _ACEOF
16007 rm -f conftest.$ac_objext conftest$ac_exeext
16008 if { (ac_try="$ac_link"
16009 case "(($ac_try" in
16010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011   *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014   (eval "$ac_link") 2>conftest.er1
16015   ac_status=$?
16016   grep -v '^ *+' conftest.er1 >conftest.err
16017   rm -f conftest.er1
16018   cat conftest.err >&5
16019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020   (exit $ac_status); } &&
16021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16022   { (case "(($ac_try" in
16023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16024   *) ac_try_echo=$ac_try;;
16025 esac
16026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16027   (eval "$ac_try") 2>&5
16028   ac_status=$?
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); }; } &&
16031          { ac_try='test -s conftest$ac_exeext'
16032   { (case "(($ac_try" in
16033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034   *) ac_try_echo=$ac_try;;
16035 esac
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037   (eval "$ac_try") 2>&5
16038   ac_status=$?
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); }; }; then
16041   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
16042 else
16043   echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16045
16046         ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
16047 fi
16048
16049 rm -f core conftest.err conftest.$ac_objext \
16050       conftest$ac_exeext conftest.$ac_ext
16051 CFLAGS=$ac_wine_try_cflags_saved
16052 fi
16053 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
16054 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
16055 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
16056   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
16057 fi
16058
16059           ;;
16060       esac
16061
16062     else
16063       { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
16064 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
16065 if test "${ac_cv_c_dll_unixware+set}" = set; then
16066   echo $ECHO_N "(cached) $ECHO_C" >&6
16067 else
16068   ac_wine_try_cflags_saved=$CFLAGS
16069 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
16070 cat >conftest.$ac_ext <<_ACEOF
16071 void myfunc() {}
16072 _ACEOF
16073 rm -f conftest.$ac_objext conftest$ac_exeext
16074 if { (ac_try="$ac_link"
16075 case "(($ac_try" in
16076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077   *) ac_try_echo=$ac_try;;
16078 esac
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080   (eval "$ac_link") 2>conftest.er1
16081   ac_status=$?
16082   grep -v '^ *+' conftest.er1 >conftest.err
16083   rm -f conftest.er1
16084   cat conftest.err >&5
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); } &&
16087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16088   { (case "(($ac_try" in
16089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090   *) ac_try_echo=$ac_try;;
16091 esac
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093   (eval "$ac_try") 2>&5
16094   ac_status=$?
16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); }; } &&
16097          { ac_try='test -s conftest$ac_exeext'
16098   { (case "(($ac_try" in
16099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100   *) ac_try_echo=$ac_try;;
16101 esac
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103   (eval "$ac_try") 2>&5
16104   ac_status=$?
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); }; }; then
16107   ac_cv_c_dll_unixware="yes"
16108 else
16109   echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16111
16112         ac_cv_c_dll_unixware="no"
16113 fi
16114
16115 rm -f core conftest.err conftest.$ac_objext \
16116       conftest$ac_exeext conftest.$ac_ext
16117 CFLAGS=$ac_wine_try_cflags_saved
16118 fi
16119 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
16120 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
16121       if test "$ac_cv_c_dll_unixware" = "yes"
16122       then
16123         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
16124         LDDLLFLAGS="-Wl,-G,-B,symbolic"
16125
16126       else
16127         { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
16128 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
16129 if test "${ac_cv_c_dll_hpux+set}" = set; then
16130   echo $ECHO_N "(cached) $ECHO_C" >&6
16131 else
16132   ac_wine_try_cflags_saved=$CFLAGS
16133 CFLAGS="$CFLAGS -shared"
16134 cat >conftest.$ac_ext <<_ACEOF
16135 void myfunc() {}
16136 _ACEOF
16137 rm -f conftest.$ac_objext conftest$ac_exeext
16138 if { (ac_try="$ac_link"
16139 case "(($ac_try" in
16140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141   *) ac_try_echo=$ac_try;;
16142 esac
16143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144   (eval "$ac_link") 2>conftest.er1
16145   ac_status=$?
16146   grep -v '^ *+' conftest.er1 >conftest.err
16147   rm -f conftest.er1
16148   cat conftest.err >&5
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); } &&
16151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16152   { (case "(($ac_try" in
16153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154   *) ac_try_echo=$ac_try;;
16155 esac
16156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157   (eval "$ac_try") 2>&5
16158   ac_status=$?
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); }; } &&
16161          { ac_try='test -s conftest$ac_exeext'
16162   { (case "(($ac_try" in
16163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164   *) ac_try_echo=$ac_try;;
16165 esac
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167   (eval "$ac_try") 2>&5
16168   ac_status=$?
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); }; }; then
16171   ac_cv_c_dll_hpux="yes"
16172 else
16173   echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16175
16176         ac_cv_c_dll_hpux="no"
16177 fi
16178
16179 rm -f core conftest.err conftest.$ac_objext \
16180       conftest$ac_exeext conftest.$ac_ext
16181 CFLAGS=$ac_wine_try_cflags_saved
16182 fi
16183 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
16184 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
16185         if test "$ac_cv_c_dll_hpux" = "yes"
16186         then
16187           LIBEXT="sl"
16188           DLLEXT=".sl"
16189           LDDLLFLAGS="-shared -fPIC"
16190           LDSHARED="\$(CC) -shared"
16191         fi
16192       fi
16193     fi
16194
16195         CROSSTEST=""
16196
16197     if test "$cross_compiling" = "no"
16198     then
16199       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
16200 do
16201   # Extract the first word of "$ac_prog", so it can be a program name with args.
16202 set dummy $ac_prog; ac_word=$2
16203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16205 if test "${ac_cv_prog_CROSSCC+set}" = set; then
16206   echo $ECHO_N "(cached) $ECHO_C" >&6
16207 else
16208   if test -n "$CROSSCC"; then
16209   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
16210 else
16211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16212 for as_dir in $PATH
16213 do
16214   IFS=$as_save_IFS
16215   test -z "$as_dir" && as_dir=.
16216   for ac_exec_ext in '' $ac_executable_extensions; do
16217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16218     ac_cv_prog_CROSSCC="$ac_prog"
16219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16220     break 2
16221   fi
16222 done
16223 done
16224 IFS=$as_save_IFS
16225
16226 fi
16227 fi
16228 CROSSCC=$ac_cv_prog_CROSSCC
16229 if test -n "$CROSSCC"; then
16230   { echo "$as_me:$LINENO: result: $CROSSCC" >&5
16231 echo "${ECHO_T}$CROSSCC" >&6; }
16232 else
16233   { echo "$as_me:$LINENO: result: no" >&5
16234 echo "${ECHO_T}no" >&6; }
16235 fi
16236
16237
16238   test -n "$CROSSCC" && break
16239 done
16240 test -n "$CROSSCC" || CROSSCC="false"
16241
16242       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
16243 do
16244   # Extract the first word of "$ac_prog", so it can be a program name with args.
16245 set dummy $ac_prog; ac_word=$2
16246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16248 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
16249   echo $ECHO_N "(cached) $ECHO_C" >&6
16250 else
16251   if test -n "$DLLTOOL"; then
16252   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16253 else
16254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16255 for as_dir in $PATH
16256 do
16257   IFS=$as_save_IFS
16258   test -z "$as_dir" && as_dir=.
16259   for ac_exec_ext in '' $ac_executable_extensions; do
16260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16261     ac_cv_prog_DLLTOOL="$ac_prog"
16262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16263     break 2
16264   fi
16265 done
16266 done
16267 IFS=$as_save_IFS
16268
16269 fi
16270 fi
16271 DLLTOOL=$ac_cv_prog_DLLTOOL
16272 if test -n "$DLLTOOL"; then
16273   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
16274 echo "${ECHO_T}$DLLTOOL" >&6; }
16275 else
16276   { echo "$as_me:$LINENO: result: no" >&5
16277 echo "${ECHO_T}no" >&6; }
16278 fi
16279
16280
16281   test -n "$DLLTOOL" && break
16282 done
16283 test -n "$DLLTOOL" || DLLTOOL="false"
16284
16285       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
16286 do
16287   # Extract the first word of "$ac_prog", so it can be a program name with args.
16288 set dummy $ac_prog; ac_word=$2
16289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16291 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
16292   echo $ECHO_N "(cached) $ECHO_C" >&6
16293 else
16294   if test -n "$CROSSWINDRES"; then
16295   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
16296 else
16297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16298 for as_dir in $PATH
16299 do
16300   IFS=$as_save_IFS
16301   test -z "$as_dir" && as_dir=.
16302   for ac_exec_ext in '' $ac_executable_extensions; do
16303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16304     ac_cv_prog_CROSSWINDRES="$ac_prog"
16305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16306     break 2
16307   fi
16308 done
16309 done
16310 IFS=$as_save_IFS
16311
16312 fi
16313 fi
16314 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
16315 if test -n "$CROSSWINDRES"; then
16316   { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
16317 echo "${ECHO_T}$CROSSWINDRES" >&6; }
16318 else
16319   { echo "$as_me:$LINENO: result: no" >&5
16320 echo "${ECHO_T}no" >&6; }
16321 fi
16322
16323
16324   test -n "$CROSSWINDRES" && break
16325 done
16326 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
16327
16328       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
16329     fi
16330     ;;
16331 esac
16332
16333 if test "$LIBEXT" = "a"; then
16334   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
16335 It is currently not possible to build Wine without shared library
16336 (.so) support to allow transparent switch between .so and .dll files.
16337 If you are using Linux, you will need a newer binutils.
16338 " >&5
16339 echo "$as_me: error: could not find a way to build shared libraries.
16340 It is currently not possible to build Wine without shared library
16341 (.so) support to allow transparent switch between .so and .dll files.
16342 If you are using Linux, you will need a newer binutils.
16343 " >&2;}
16344    { (exit 1); exit 1; }; }
16345 fi
16346
16347 case $build_os in
16348   cygwin*|mingw32*)
16349     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
16350  ;;
16351   darwin*|macosx*)
16352     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
16353  ;;
16354   *)
16355     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
16356  ;;
16357 esac
16358
16359 case $host_os in
16360   mingw32*)
16361     CRTLIBS="-lmsvcrt"
16362
16363     SOCKETLIBS="-lws2_32"
16364
16365     ;;
16366 esac
16367
16368 MAIN_BINARY="wine-pthread"
16369   case $host_cpu in
16370   *i[3456789]86*)
16371     case $host_os in
16372       linux* | k*bsd*-gnu)
16373         MAIN_BINARY="wine-glibc"
16374
16375         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
16376  ;;
16377     esac
16378     ;;
16379 esac
16380
16381
16382 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
16383 then
16384   # Extract the first word of "ldd", so it can be a program name with args.
16385 set dummy ldd; ac_word=$2
16386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16388 if test "${ac_cv_path_LDD+set}" = set; then
16389   echo $ECHO_N "(cached) $ECHO_C" >&6
16390 else
16391   case $LDD in
16392   [\\/]* | ?:[\\/]*)
16393   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
16394   ;;
16395   *)
16396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16397 as_dummy="/sbin:/usr/sbin:$PATH"
16398 for as_dir in $as_dummy
16399 do
16400   IFS=$as_save_IFS
16401   test -z "$as_dir" && as_dir=.
16402   for ac_exec_ext in '' $ac_executable_extensions; do
16403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16404     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
16405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16406     break 2
16407   fi
16408 done
16409 done
16410 IFS=$as_save_IFS
16411
16412   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
16413   ;;
16414 esac
16415 fi
16416 LDD=$ac_cv_path_LDD
16417 if test -n "$LDD"; then
16418   { echo "$as_me:$LINENO: result: $LDD" >&5
16419 echo "${ECHO_T}$LDD" >&6; }
16420 else
16421   { echo "$as_me:$LINENO: result: no" >&5
16422 echo "${ECHO_T}no" >&6; }
16423 fi
16424
16425
16426 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
16427 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
16428 if test "${ac_cv_lib_soname_X11+set}" = set; then
16429   echo $ECHO_N "(cached) $ECHO_C" >&6
16430 else
16431   ac_get_soname_save_LIBS=$LIBS
16432 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
16433   cat >conftest.$ac_ext <<_ACEOF
16434 /* confdefs.h.  */
16435 _ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h.  */
16439
16440 /* Override any GCC internal prototype to avoid an error.
16441    Use char because int might match the return type of a GCC
16442    builtin and then its argument prototype would still apply.  */
16443 #ifdef __cplusplus
16444 extern "C"
16445 #endif
16446 char XCreateWindow ();
16447 int
16448 main ()
16449 {
16450 return XCreateWindow ();
16451   ;
16452   return 0;
16453 }
16454 _ACEOF
16455 rm -f conftest.$ac_objext conftest$ac_exeext
16456 if { (ac_try="$ac_link"
16457 case "(($ac_try" in
16458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459   *) ac_try_echo=$ac_try;;
16460 esac
16461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16462   (eval "$ac_link") 2>conftest.er1
16463   ac_status=$?
16464   grep -v '^ *+' conftest.er1 >conftest.err
16465   rm -f conftest.er1
16466   cat conftest.err >&5
16467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468   (exit $ac_status); } &&
16469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16470   { (case "(($ac_try" in
16471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472   *) ac_try_echo=$ac_try;;
16473 esac
16474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16475   (eval "$ac_try") 2>&5
16476   ac_status=$?
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); }; } &&
16479          { ac_try='test -s conftest$ac_exeext'
16480   { (case "(($ac_try" in
16481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482   *) ac_try_echo=$ac_try;;
16483 esac
16484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16485   (eval "$ac_try") 2>&5
16486   ac_status=$?
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); }; }; then
16489   case "$LIBEXT" in
16490     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'` ;;
16491     so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^        ]*\).*$/\1/"';2,$d'` ;;
16492   esac
16493   if test "x$ac_cv_lib_soname_X11" = "x"
16494   then
16495      ac_cv_lib_soname_X11="libX11.$LIBEXT"
16496   fi
16497 else
16498   echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16500
16501         ac_cv_lib_soname_X11="libX11.$LIBEXT"
16502 fi
16503
16504 rm -f core conftest.err conftest.$ac_objext \
16505       conftest$ac_exeext conftest.$ac_ext
16506   LIBS=$ac_get_soname_save_LIBS
16507 fi
16508 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
16509 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
16510 if test "${ac_cv_lib_soname_X11+set}" = set; then
16511
16512 cat >>confdefs.h <<_ACEOF
16513 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
16514 _ACEOF
16515
16516 fi
16517
16518   { echo "$as_me:$LINENO: checking for -lXext soname" >&5
16519 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
16520 if test "${ac_cv_lib_soname_Xext+set}" = set; then
16521   echo $ECHO_N "(cached) $ECHO_C" >&6
16522 else
16523   ac_get_soname_save_LIBS=$LIBS
16524 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
16525   cat >conftest.$ac_ext <<_ACEOF
16526 /* confdefs.h.  */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h.  */
16531
16532 /* Override any GCC internal prototype to avoid an error.
16533    Use char because int might match the return type of a GCC
16534    builtin and then its argument prototype would still apply.  */
16535 #ifdef __cplusplus
16536 extern "C"
16537 #endif
16538 char XextCreateExtension ();
16539 int
16540 main ()
16541 {
16542 return XextCreateExtension ();
16543   ;
16544   return 0;
16545 }
16546 _ACEOF
16547 rm -f conftest.$ac_objext conftest$ac_exeext
16548 if { (ac_try="$ac_link"
16549 case "(($ac_try" in
16550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551   *) ac_try_echo=$ac_try;;
16552 esac
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554   (eval "$ac_link") 2>conftest.er1
16555   ac_status=$?
16556   grep -v '^ *+' conftest.er1 >conftest.err
16557   rm -f conftest.er1
16558   cat conftest.err >&5
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); } &&
16561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16562   { (case "(($ac_try" in
16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564   *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567   (eval "$ac_try") 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }; } &&
16571          { ac_try='test -s conftest$ac_exeext'
16572   { (case "(($ac_try" in
16573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574   *) ac_try_echo=$ac_try;;
16575 esac
16576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577   (eval "$ac_try") 2>&5
16578   ac_status=$?
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); }; }; then
16581   case "$LIBEXT" in
16582     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'` ;;
16583     so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^     ]*\).*$/\1/"';2,$d'` ;;
16584   esac
16585   if test "x$ac_cv_lib_soname_Xext" = "x"
16586   then
16587      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
16588   fi
16589 else
16590   echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16592
16593         ac_cv_lib_soname_Xext="libXext.$LIBEXT"
16594 fi
16595
16596 rm -f core conftest.err conftest.$ac_objext \
16597       conftest$ac_exeext conftest.$ac_ext
16598   LIBS=$ac_get_soname_save_LIBS
16599 fi
16600 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
16601 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
16602 if test "${ac_cv_lib_soname_Xext+set}" = set; then
16603
16604 cat >>confdefs.h <<_ACEOF
16605 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
16606 _ACEOF
16607
16608 fi
16609
16610   { echo "$as_me:$LINENO: checking for -lXi soname" >&5
16611 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
16612 if test "${ac_cv_lib_soname_Xi+set}" = set; then
16613   echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615   ac_get_soname_save_LIBS=$LIBS
16616 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16617   cat >conftest.$ac_ext <<_ACEOF
16618 /* confdefs.h.  */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h.  */
16623
16624 /* Override any GCC internal prototype to avoid an error.
16625    Use char because int might match the return type of a GCC
16626    builtin and then its argument prototype would still apply.  */
16627 #ifdef __cplusplus
16628 extern "C"
16629 #endif
16630 char XOpenDevice ();
16631 int
16632 main ()
16633 {
16634 return XOpenDevice ();
16635   ;
16636   return 0;
16637 }
16638 _ACEOF
16639 rm -f conftest.$ac_objext conftest$ac_exeext
16640 if { (ac_try="$ac_link"
16641 case "(($ac_try" in
16642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643   *) ac_try_echo=$ac_try;;
16644 esac
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646   (eval "$ac_link") 2>conftest.er1
16647   ac_status=$?
16648   grep -v '^ *+' conftest.er1 >conftest.err
16649   rm -f conftest.er1
16650   cat conftest.err >&5
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); } &&
16653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16654   { (case "(($ac_try" in
16655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656   *) ac_try_echo=$ac_try;;
16657 esac
16658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659   (eval "$ac_try") 2>&5
16660   ac_status=$?
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); }; } &&
16663          { ac_try='test -s conftest$ac_exeext'
16664   { (case "(($ac_try" in
16665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666   *) ac_try_echo=$ac_try;;
16667 esac
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669   (eval "$ac_try") 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); }; }; then
16673   case "$LIBEXT" in
16674     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'` ;;
16675     so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^   ]*\).*$/\1/"';2,$d'` ;;
16676   esac
16677   if test "x$ac_cv_lib_soname_Xi" = "x"
16678   then
16679      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
16680   fi
16681 else
16682   echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16684
16685         ac_cv_lib_soname_Xi="libXi.$LIBEXT"
16686 fi
16687
16688 rm -f core conftest.err conftest.$ac_objext \
16689       conftest$ac_exeext conftest.$ac_ext
16690   LIBS=$ac_get_soname_save_LIBS
16691 fi
16692 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
16693 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
16694 if test "${ac_cv_lib_soname_Xi+set}" = set; then
16695
16696 cat >>confdefs.h <<_ACEOF
16697 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
16698 _ACEOF
16699
16700 fi
16701
16702   { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
16703 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
16704 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
16705   echo $ECHO_N "(cached) $ECHO_C" >&6
16706 else
16707   ac_get_soname_save_LIBS=$LIBS
16708 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16709   cat >conftest.$ac_ext <<_ACEOF
16710 /* confdefs.h.  */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h.  */
16715
16716 /* Override any GCC internal prototype to avoid an error.
16717    Use char because int might match the return type of a GCC
16718    builtin and then its argument prototype would still apply.  */
16719 #ifdef __cplusplus
16720 extern "C"
16721 #endif
16722 char XRenderQueryExtension ();
16723 int
16724 main ()
16725 {
16726 return XRenderQueryExtension ();
16727   ;
16728   return 0;
16729 }
16730 _ACEOF
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (ac_try="$ac_link"
16733 case "(($ac_try" in
16734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735   *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738   (eval "$ac_link") 2>conftest.er1
16739   ac_status=$?
16740   grep -v '^ *+' conftest.er1 >conftest.err
16741   rm -f conftest.er1
16742   cat conftest.err >&5
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); } &&
16745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16746   { (case "(($ac_try" in
16747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748   *) ac_try_echo=$ac_try;;
16749 esac
16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751   (eval "$ac_try") 2>&5
16752   ac_status=$?
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); }; } &&
16755          { ac_try='test -s conftest$ac_exeext'
16756   { (case "(($ac_try" in
16757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758   *) ac_try_echo=$ac_try;;
16759 esac
16760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761   (eval "$ac_try") 2>&5
16762   ac_status=$?
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); }; }; then
16765   case "$LIBEXT" in
16766     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'` ;;
16767     so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^    ]*\).*$/\1/"';2,$d'` ;;
16768   esac
16769   if test "x$ac_cv_lib_soname_Xrender" = "x"
16770   then
16771      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
16772   fi
16773 else
16774   echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16776
16777         ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
16778 fi
16779
16780 rm -f core conftest.err conftest.$ac_objext \
16781       conftest$ac_exeext conftest.$ac_ext
16782   LIBS=$ac_get_soname_save_LIBS
16783 fi
16784 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
16785 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
16786 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
16787
16788 cat >>confdefs.h <<_ACEOF
16789 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
16790 _ACEOF
16791
16792 fi
16793
16794   { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
16795 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
16796 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
16797   echo $ECHO_N "(cached) $ECHO_C" >&6
16798 else
16799   ac_get_soname_save_LIBS=$LIBS
16800 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16801   cat >conftest.$ac_ext <<_ACEOF
16802 /* confdefs.h.  */
16803 _ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h.  */
16807
16808 /* Override any GCC internal prototype to avoid an error.
16809    Use char because int might match the return type of a GCC
16810    builtin and then its argument prototype would still apply.  */
16811 #ifdef __cplusplus
16812 extern "C"
16813 #endif
16814 char XRRQueryExtension ();
16815 int
16816 main ()
16817 {
16818 return XRRQueryExtension ();
16819   ;
16820   return 0;
16821 }
16822 _ACEOF
16823 rm -f conftest.$ac_objext conftest$ac_exeext
16824 if { (ac_try="$ac_link"
16825 case "(($ac_try" in
16826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827   *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830   (eval "$ac_link") 2>conftest.er1
16831   ac_status=$?
16832   grep -v '^ *+' conftest.er1 >conftest.err
16833   rm -f conftest.er1
16834   cat conftest.err >&5
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); } &&
16837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16838   { (case "(($ac_try" in
16839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840   *) ac_try_echo=$ac_try;;
16841 esac
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843   (eval "$ac_try") 2>&5
16844   ac_status=$?
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); }; } &&
16847          { ac_try='test -s conftest$ac_exeext'
16848   { (case "(($ac_try" in
16849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850   *) ac_try_echo=$ac_try;;
16851 esac
16852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853   (eval "$ac_try") 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); }; }; then
16857   case "$LIBEXT" in
16858     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'` ;;
16859     so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^       ]*\).*$/\1/"';2,$d'` ;;
16860   esac
16861   if test "x$ac_cv_lib_soname_Xrandr" = "x"
16862   then
16863      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
16864   fi
16865 else
16866   echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16868
16869         ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
16870 fi
16871
16872 rm -f core conftest.err conftest.$ac_objext \
16873       conftest$ac_exeext conftest.$ac_ext
16874   LIBS=$ac_get_soname_save_LIBS
16875 fi
16876 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
16877 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
16878 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
16879
16880 cat >>confdefs.h <<_ACEOF
16881 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
16882 _ACEOF
16883
16884 fi
16885
16886   { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
16887 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
16888 if test "${ac_cv_lib_soname_freetype+set}" = set; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891   ac_get_soname_save_LIBS=$LIBS
16892 LIBS="-lfreetype $X_LIBS $LIBS"
16893   cat >conftest.$ac_ext <<_ACEOF
16894 /* confdefs.h.  */
16895 _ACEOF
16896 cat confdefs.h >>conftest.$ac_ext
16897 cat >>conftest.$ac_ext <<_ACEOF
16898 /* end confdefs.h.  */
16899
16900 /* Override any GCC internal prototype to avoid an error.
16901    Use char because int might match the return type of a GCC
16902    builtin and then its argument prototype would still apply.  */
16903 #ifdef __cplusplus
16904 extern "C"
16905 #endif
16906 char FT_Init_FreeType ();
16907 int
16908 main ()
16909 {
16910 return FT_Init_FreeType ();
16911   ;
16912   return 0;
16913 }
16914 _ACEOF
16915 rm -f conftest.$ac_objext conftest$ac_exeext
16916 if { (ac_try="$ac_link"
16917 case "(($ac_try" in
16918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919   *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922   (eval "$ac_link") 2>conftest.er1
16923   ac_status=$?
16924   grep -v '^ *+' conftest.er1 >conftest.err
16925   rm -f conftest.er1
16926   cat conftest.err >&5
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); } &&
16929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16930   { (case "(($ac_try" in
16931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932   *) ac_try_echo=$ac_try;;
16933 esac
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935   (eval "$ac_try") 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); }; } &&
16939          { ac_try='test -s conftest$ac_exeext'
16940   { (case "(($ac_try" in
16941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942   *) ac_try_echo=$ac_try;;
16943 esac
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945   (eval "$ac_try") 2>&5
16946   ac_status=$?
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); }; }; then
16949   case "$LIBEXT" in
16950     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'` ;;
16951     so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^         ]*\).*$/\1/"';2,$d'` ;;
16952   esac
16953   if test "x$ac_cv_lib_soname_freetype" = "x"
16954   then
16955      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
16956   fi
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961         ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
16962 fi
16963
16964 rm -f core conftest.err conftest.$ac_objext \
16965       conftest$ac_exeext conftest.$ac_ext
16966   LIBS=$ac_get_soname_save_LIBS
16967 fi
16968 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
16969 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
16970 if test "${ac_cv_lib_soname_freetype+set}" = set; then
16971
16972 cat >>confdefs.h <<_ACEOF
16973 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
16974 _ACEOF
16975
16976 fi
16977
16978   { echo "$as_me:$LINENO: checking for -lGL soname" >&5
16979 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
16980 if test "${ac_cv_lib_soname_GL+set}" = set; then
16981   echo $ECHO_N "(cached) $ECHO_C" >&6
16982 else
16983   ac_get_soname_save_LIBS=$LIBS
16984 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
16985   cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h.  */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h.  */
16991
16992 /* Override any GCC internal prototype to avoid an error.
16993    Use char because int might match the return type of a GCC
16994    builtin and then its argument prototype would still apply.  */
16995 #ifdef __cplusplus
16996 extern "C"
16997 #endif
16998 char glXQueryExtension ();
16999 int
17000 main ()
17001 {
17002 return glXQueryExtension ();
17003   ;
17004   return 0;
17005 }
17006 _ACEOF
17007 rm -f conftest.$ac_objext conftest$ac_exeext
17008 if { (ac_try="$ac_link"
17009 case "(($ac_try" in
17010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011   *) ac_try_echo=$ac_try;;
17012 esac
17013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014   (eval "$ac_link") 2>conftest.er1
17015   ac_status=$?
17016   grep -v '^ *+' conftest.er1 >conftest.err
17017   rm -f conftest.er1
17018   cat conftest.err >&5
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); } &&
17021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17022   { (case "(($ac_try" in
17023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024   *) ac_try_echo=$ac_try;;
17025 esac
17026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027   (eval "$ac_try") 2>&5
17028   ac_status=$?
17029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030   (exit $ac_status); }; } &&
17031          { ac_try='test -s conftest$ac_exeext'
17032   { (case "(($ac_try" in
17033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034   *) ac_try_echo=$ac_try;;
17035 esac
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037   (eval "$ac_try") 2>&5
17038   ac_status=$?
17039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040   (exit $ac_status); }; }; then
17041   case "$LIBEXT" in
17042     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'` ;;
17043     so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^   ]*\).*$/\1/"';2,$d'` ;;
17044   esac
17045   if test "x$ac_cv_lib_soname_GL" = "x"
17046   then
17047      ac_cv_lib_soname_GL="libGL.$LIBEXT"
17048   fi
17049 else
17050   echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17052
17053         ac_cv_lib_soname_GL="libGL.$LIBEXT"
17054 fi
17055
17056 rm -f core conftest.err conftest.$ac_objext \
17057       conftest$ac_exeext conftest.$ac_ext
17058   LIBS=$ac_get_soname_save_LIBS
17059 fi
17060 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
17061 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
17062 if test "${ac_cv_lib_soname_GL+set}" = set; then
17063
17064 cat >>confdefs.h <<_ACEOF
17065 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
17066 _ACEOF
17067
17068 fi
17069
17070   { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
17071 echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
17072 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
17073   echo $ECHO_N "(cached) $ECHO_C" >&6
17074 else
17075   ac_get_soname_save_LIBS=$LIBS
17076 LIBS="-ldbus-1  $LIBS"
17077   cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h.  */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h.  */
17083
17084 /* Override any GCC internal prototype to avoid an error.
17085    Use char because int might match the return type of a GCC
17086    builtin and then its argument prototype would still apply.  */
17087 #ifdef __cplusplus
17088 extern "C"
17089 #endif
17090 char dbus_error_init ();
17091 int
17092 main ()
17093 {
17094 return dbus_error_init ();
17095   ;
17096   return 0;
17097 }
17098 _ACEOF
17099 rm -f conftest.$ac_objext conftest$ac_exeext
17100 if { (ac_try="$ac_link"
17101 case "(($ac_try" in
17102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103   *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106   (eval "$ac_link") 2>conftest.er1
17107   ac_status=$?
17108   grep -v '^ *+' conftest.er1 >conftest.err
17109   rm -f conftest.er1
17110   cat conftest.err >&5
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } &&
17113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17114   { (case "(($ac_try" in
17115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116   *) ac_try_echo=$ac_try;;
17117 esac
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119   (eval "$ac_try") 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); }; } &&
17123          { ac_try='test -s conftest$ac_exeext'
17124   { (case "(($ac_try" in
17125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126   *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129   (eval "$ac_try") 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; }; then
17133   case "$LIBEXT" in
17134     dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep libdbus-1\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17135     so) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.so | sed -e "s/^.*\(libdbus-1\.so[^       ]*\).*$/\1/"';2,$d'` ;;
17136   esac
17137   if test "x$ac_cv_lib_soname_dbus_1" = "x"
17138   then
17139      ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
17140   fi
17141 else
17142   echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17144
17145         ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
17146 fi
17147
17148 rm -f core conftest.err conftest.$ac_objext \
17149       conftest$ac_exeext conftest.$ac_ext
17150   LIBS=$ac_get_soname_save_LIBS
17151 fi
17152 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
17153 echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
17154 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
17155
17156 cat >>confdefs.h <<_ACEOF
17157 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
17158 _ACEOF
17159
17160 fi
17161
17162   { echo "$as_me:$LINENO: checking for -lhal soname" >&5
17163 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
17164 if test "${ac_cv_lib_soname_hal+set}" = set; then
17165   echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167   ac_get_soname_save_LIBS=$LIBS
17168 LIBS="-lhal  $LIBS"
17169   cat >conftest.$ac_ext <<_ACEOF
17170 /* confdefs.h.  */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h.  */
17175
17176 /* Override any GCC internal prototype to avoid an error.
17177    Use char because int might match the return type of a GCC
17178    builtin and then its argument prototype would still apply.  */
17179 #ifdef __cplusplus
17180 extern "C"
17181 #endif
17182 char libhal_ctx_new ();
17183 int
17184 main ()
17185 {
17186 return libhal_ctx_new ();
17187   ;
17188   return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (ac_try="$ac_link"
17193 case "(($ac_try" in
17194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195   *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198   (eval "$ac_link") 2>conftest.er1
17199   ac_status=$?
17200   grep -v '^ *+' conftest.er1 >conftest.err
17201   rm -f conftest.er1
17202   cat conftest.err >&5
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); } &&
17205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17206   { (case "(($ac_try" in
17207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208   *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211   (eval "$ac_try") 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); }; } &&
17215          { ac_try='test -s conftest$ac_exeext'
17216   { (case "(($ac_try" in
17217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218   *) ac_try_echo=$ac_try;;
17219 esac
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221   (eval "$ac_try") 2>&5
17222   ac_status=$?
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); }; }; then
17225   case "$LIBEXT" in
17226     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'` ;;
17227     so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^        ]*\).*$/\1/"';2,$d'` ;;
17228   esac
17229   if test "x$ac_cv_lib_soname_hal" = "x"
17230   then
17231      ac_cv_lib_soname_hal="libhal.$LIBEXT"
17232   fi
17233 else
17234   echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17236
17237         ac_cv_lib_soname_hal="libhal.$LIBEXT"
17238 fi
17239
17240 rm -f core conftest.err conftest.$ac_objext \
17241       conftest$ac_exeext conftest.$ac_ext
17242   LIBS=$ac_get_soname_save_LIBS
17243 fi
17244 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
17245 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
17246 if test "${ac_cv_lib_soname_hal+set}" = set; then
17247
17248 cat >>confdefs.h <<_ACEOF
17249 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
17250 _ACEOF
17251
17252 fi
17253
17254   { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
17255 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
17256 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
17257   echo $ECHO_N "(cached) $ECHO_C" >&6
17258 else
17259   ac_get_soname_save_LIBS=$LIBS
17260 LIBS="-ltxc_dxtn  $LIBS"
17261   cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h.  */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h.  */
17267
17268 /* Override any GCC internal prototype to avoid an error.
17269    Use char because int might match the return type of a GCC
17270    builtin and then its argument prototype would still apply.  */
17271 #ifdef __cplusplus
17272 extern "C"
17273 #endif
17274 char fetch_2d_texel_rgba_dxt1 ();
17275 int
17276 main ()
17277 {
17278 return fetch_2d_texel_rgba_dxt1 ();
17279   ;
17280   return 0;
17281 }
17282 _ACEOF
17283 rm -f conftest.$ac_objext conftest$ac_exeext
17284 if { (ac_try="$ac_link"
17285 case "(($ac_try" in
17286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287   *) ac_try_echo=$ac_try;;
17288 esac
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290   (eval "$ac_link") 2>conftest.er1
17291   ac_status=$?
17292   grep -v '^ *+' conftest.er1 >conftest.err
17293   rm -f conftest.er1
17294   cat conftest.err >&5
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); } &&
17297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17298   { (case "(($ac_try" in
17299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300   *) ac_try_echo=$ac_try;;
17301 esac
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303   (eval "$ac_try") 2>&5
17304   ac_status=$?
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); }; } &&
17307          { ac_try='test -s conftest$ac_exeext'
17308   { (case "(($ac_try" in
17309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310   *) ac_try_echo=$ac_try;;
17311 esac
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313   (eval "$ac_try") 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); }; }; then
17317   case "$LIBEXT" in
17318     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'` ;;
17319     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'` ;;
17320   esac
17321   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
17322   then
17323      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
17324   fi
17325 else
17326   echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17328
17329         ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
17330 fi
17331
17332 rm -f core conftest.err conftest.$ac_objext \
17333       conftest$ac_exeext conftest.$ac_ext
17334   LIBS=$ac_get_soname_save_LIBS
17335 fi
17336 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
17337 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
17338 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
17339
17340 cat >>confdefs.h <<_ACEOF
17341 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
17342 _ACEOF
17343
17344 fi
17345
17346   { echo "$as_me:$LINENO: checking for -lcups soname" >&5
17347 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
17348 if test "${ac_cv_lib_soname_cups+set}" = set; then
17349   echo $ECHO_N "(cached) $ECHO_C" >&6
17350 else
17351   ac_get_soname_save_LIBS=$LIBS
17352 LIBS="-lcups  $LIBS"
17353   cat >conftest.$ac_ext <<_ACEOF
17354 /* confdefs.h.  */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h.  */
17359
17360 /* Override any GCC internal prototype to avoid an error.
17361    Use char because int might match the return type of a GCC
17362    builtin and then its argument prototype would still apply.  */
17363 #ifdef __cplusplus
17364 extern "C"
17365 #endif
17366 char cupsGetDefault ();
17367 int
17368 main ()
17369 {
17370 return cupsGetDefault ();
17371   ;
17372   return 0;
17373 }
17374 _ACEOF
17375 rm -f conftest.$ac_objext conftest$ac_exeext
17376 if { (ac_try="$ac_link"
17377 case "(($ac_try" in
17378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379   *) ac_try_echo=$ac_try;;
17380 esac
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382   (eval "$ac_link") 2>conftest.er1
17383   ac_status=$?
17384   grep -v '^ *+' conftest.er1 >conftest.err
17385   rm -f conftest.er1
17386   cat conftest.err >&5
17387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388   (exit $ac_status); } &&
17389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17390   { (case "(($ac_try" in
17391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392   *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395   (eval "$ac_try") 2>&5
17396   ac_status=$?
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); }; } &&
17399          { ac_try='test -s conftest$ac_exeext'
17400   { (case "(($ac_try" in
17401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402   *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405   (eval "$ac_try") 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); }; }; then
17409   case "$LIBEXT" in
17410     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'` ;;
17411     so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^     ]*\).*$/\1/"';2,$d'` ;;
17412   esac
17413   if test "x$ac_cv_lib_soname_cups" = "x"
17414   then
17415      ac_cv_lib_soname_cups="libcups.$LIBEXT"
17416   fi
17417 else
17418   echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17420
17421         ac_cv_lib_soname_cups="libcups.$LIBEXT"
17422 fi
17423
17424 rm -f core conftest.err conftest.$ac_objext \
17425       conftest$ac_exeext conftest.$ac_ext
17426   LIBS=$ac_get_soname_save_LIBS
17427 fi
17428 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
17429 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
17430 if test "${ac_cv_lib_soname_cups+set}" = set; then
17431
17432 cat >>confdefs.h <<_ACEOF
17433 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
17434 _ACEOF
17435
17436 fi
17437
17438   { echo "$as_me:$LINENO: checking for -ljack soname" >&5
17439 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
17440 if test "${ac_cv_lib_soname_jack+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443   ac_get_soname_save_LIBS=$LIBS
17444 LIBS="-ljack  $LIBS"
17445   cat >conftest.$ac_ext <<_ACEOF
17446 /* confdefs.h.  */
17447 _ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h.  */
17451
17452 /* Override any GCC internal prototype to avoid an error.
17453    Use char because int might match the return type of a GCC
17454    builtin and then its argument prototype would still apply.  */
17455 #ifdef __cplusplus
17456 extern "C"
17457 #endif
17458 char jack_client_new ();
17459 int
17460 main ()
17461 {
17462 return jack_client_new ();
17463   ;
17464   return 0;
17465 }
17466 _ACEOF
17467 rm -f conftest.$ac_objext conftest$ac_exeext
17468 if { (ac_try="$ac_link"
17469 case "(($ac_try" in
17470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471   *) ac_try_echo=$ac_try;;
17472 esac
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474   (eval "$ac_link") 2>conftest.er1
17475   ac_status=$?
17476   grep -v '^ *+' conftest.er1 >conftest.err
17477   rm -f conftest.er1
17478   cat conftest.err >&5
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); } &&
17481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17482   { (case "(($ac_try" in
17483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484   *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487   (eval "$ac_try") 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; } &&
17491          { ac_try='test -s conftest$ac_exeext'
17492   { (case "(($ac_try" in
17493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494   *) ac_try_echo=$ac_try;;
17495 esac
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497   (eval "$ac_try") 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; }; then
17501   case "$LIBEXT" in
17502     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'` ;;
17503     so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^     ]*\).*$/\1/"';2,$d'` ;;
17504   esac
17505   if test "x$ac_cv_lib_soname_jack" = "x"
17506   then
17507      ac_cv_lib_soname_jack="libjack.$LIBEXT"
17508   fi
17509 else
17510   echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17512
17513         ac_cv_lib_soname_jack="libjack.$LIBEXT"
17514 fi
17515
17516 rm -f core conftest.err conftest.$ac_objext \
17517       conftest$ac_exeext conftest.$ac_ext
17518   LIBS=$ac_get_soname_save_LIBS
17519 fi
17520 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
17521 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
17522 if test "${ac_cv_lib_soname_jack+set}" = set; then
17523
17524 cat >>confdefs.h <<_ACEOF
17525 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
17526 _ACEOF
17527
17528 fi
17529
17530   { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
17531 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
17532 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
17533   echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535   ac_get_soname_save_LIBS=$LIBS
17536 LIBS="-lfontconfig  $LIBS"
17537   cat >conftest.$ac_ext <<_ACEOF
17538 /* confdefs.h.  */
17539 _ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h.  */
17543
17544 /* Override any GCC internal prototype to avoid an error.
17545    Use char because int might match the return type of a GCC
17546    builtin and then its argument prototype would still apply.  */
17547 #ifdef __cplusplus
17548 extern "C"
17549 #endif
17550 char FcInit ();
17551 int
17552 main ()
17553 {
17554 return FcInit ();
17555   ;
17556   return 0;
17557 }
17558 _ACEOF
17559 rm -f conftest.$ac_objext conftest$ac_exeext
17560 if { (ac_try="$ac_link"
17561 case "(($ac_try" in
17562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563   *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566   (eval "$ac_link") 2>conftest.er1
17567   ac_status=$?
17568   grep -v '^ *+' conftest.er1 >conftest.err
17569   rm -f conftest.er1
17570   cat conftest.err >&5
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } &&
17573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17574   { (case "(($ac_try" in
17575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576   *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579   (eval "$ac_try") 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; } &&
17583          { ac_try='test -s conftest$ac_exeext'
17584   { (case "(($ac_try" in
17585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586   *) ac_try_echo=$ac_try;;
17587 esac
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589   (eval "$ac_try") 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; }; then
17593   case "$LIBEXT" in
17594     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'` ;;
17595     so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^   ]*\).*$/\1/"';2,$d'` ;;
17596   esac
17597   if test "x$ac_cv_lib_soname_fontconfig" = "x"
17598   then
17599      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
17600   fi
17601 else
17602   echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17604
17605         ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
17606 fi
17607
17608 rm -f core conftest.err conftest.$ac_objext \
17609       conftest$ac_exeext conftest.$ac_ext
17610   LIBS=$ac_get_soname_save_LIBS
17611 fi
17612 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
17613 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
17614 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
17615
17616 cat >>confdefs.h <<_ACEOF
17617 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
17618 _ACEOF
17619
17620 fi
17621
17622   { echo "$as_me:$LINENO: checking for -lssl soname" >&5
17623 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
17624 if test "${ac_cv_lib_soname_ssl+set}" = set; then
17625   echo $ECHO_N "(cached) $ECHO_C" >&6
17626 else
17627   ac_get_soname_save_LIBS=$LIBS
17628 LIBS="-lssl  $LIBS"
17629   cat >conftest.$ac_ext <<_ACEOF
17630 /* confdefs.h.  */
17631 _ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h.  */
17635
17636 /* Override any GCC internal prototype to avoid an error.
17637    Use char because int might match the return type of a GCC
17638    builtin and then its argument prototype would still apply.  */
17639 #ifdef __cplusplus
17640 extern "C"
17641 #endif
17642 char SSL_library_init ();
17643 int
17644 main ()
17645 {
17646 return SSL_library_init ();
17647   ;
17648   return 0;
17649 }
17650 _ACEOF
17651 rm -f conftest.$ac_objext conftest$ac_exeext
17652 if { (ac_try="$ac_link"
17653 case "(($ac_try" in
17654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655   *) ac_try_echo=$ac_try;;
17656 esac
17657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658   (eval "$ac_link") 2>conftest.er1
17659   ac_status=$?
17660   grep -v '^ *+' conftest.er1 >conftest.err
17661   rm -f conftest.er1
17662   cat conftest.err >&5
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); } &&
17665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17666   { (case "(($ac_try" in
17667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668   *) ac_try_echo=$ac_try;;
17669 esac
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671   (eval "$ac_try") 2>&5
17672   ac_status=$?
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); }; } &&
17675          { ac_try='test -s conftest$ac_exeext'
17676   { (case "(($ac_try" in
17677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678   *) ac_try_echo=$ac_try;;
17679 esac
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681   (eval "$ac_try") 2>&5
17682   ac_status=$?
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); }; }; then
17685   case "$LIBEXT" in
17686     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'` ;;
17687     so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^        ]*\).*$/\1/"';2,$d'` ;;
17688   esac
17689   if test "x$ac_cv_lib_soname_ssl" = "x"
17690   then
17691      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
17692   fi
17693 else
17694   echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17696
17697         ac_cv_lib_soname_ssl="libssl.$LIBEXT"
17698 fi
17699
17700 rm -f core conftest.err conftest.$ac_objext \
17701       conftest$ac_exeext conftest.$ac_ext
17702   LIBS=$ac_get_soname_save_LIBS
17703 fi
17704 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
17705 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
17706 if test "${ac_cv_lib_soname_ssl+set}" = set; then
17707
17708 cat >>confdefs.h <<_ACEOF
17709 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
17710 _ACEOF
17711
17712 fi
17713
17714   { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
17715 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
17716 if test "${ac_cv_lib_soname_crypto+set}" = set; then
17717   echo $ECHO_N "(cached) $ECHO_C" >&6
17718 else
17719   ac_get_soname_save_LIBS=$LIBS
17720 LIBS="-lcrypto  $LIBS"
17721   cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h.  */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h.  */
17727
17728 /* Override any GCC internal prototype to avoid an error.
17729    Use char because int might match the return type of a GCC
17730    builtin and then its argument prototype would still apply.  */
17731 #ifdef __cplusplus
17732 extern "C"
17733 #endif
17734 char BIO_new_socket ();
17735 int
17736 main ()
17737 {
17738 return BIO_new_socket ();
17739   ;
17740   return 0;
17741 }
17742 _ACEOF
17743 rm -f conftest.$ac_objext conftest$ac_exeext
17744 if { (ac_try="$ac_link"
17745 case "(($ac_try" in
17746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747   *) ac_try_echo=$ac_try;;
17748 esac
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750   (eval "$ac_link") 2>conftest.er1
17751   ac_status=$?
17752   grep -v '^ *+' conftest.er1 >conftest.err
17753   rm -f conftest.er1
17754   cat conftest.err >&5
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } &&
17757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17758   { (case "(($ac_try" in
17759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760   *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763   (eval "$ac_try") 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; } &&
17767          { ac_try='test -s conftest$ac_exeext'
17768   { (case "(($ac_try" in
17769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770   *) ac_try_echo=$ac_try;;
17771 esac
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773   (eval "$ac_try") 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); }; }; then
17777   case "$LIBEXT" in
17778     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'` ;;
17779     so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^       ]*\).*$/\1/"';2,$d'` ;;
17780   esac
17781   if test "x$ac_cv_lib_soname_crypto" = "x"
17782   then
17783      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
17784   fi
17785 else
17786   echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17788
17789         ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
17790 fi
17791
17792 rm -f core conftest.err conftest.$ac_objext \
17793       conftest$ac_exeext conftest.$ac_ext
17794   LIBS=$ac_get_soname_save_LIBS
17795 fi
17796 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
17797 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
17798 if test "${ac_cv_lib_soname_crypto+set}" = set; then
17799
17800 cat >>confdefs.h <<_ACEOF
17801 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
17802 _ACEOF
17803
17804 fi
17805
17806   { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
17807 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
17808 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
17809   echo $ECHO_N "(cached) $ECHO_C" >&6
17810 else
17811   ac_get_soname_save_LIBS=$LIBS
17812 LIBS="-lncurses  $LIBS"
17813   cat >conftest.$ac_ext <<_ACEOF
17814 /* confdefs.h.  */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h.  */
17819
17820 /* Override any GCC internal prototype to avoid an error.
17821    Use char because int might match the return type of a GCC
17822    builtin and then its argument prototype would still apply.  */
17823 #ifdef __cplusplus
17824 extern "C"
17825 #endif
17826 char waddch ();
17827 int
17828 main ()
17829 {
17830 return waddch ();
17831   ;
17832   return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (ac_try="$ac_link"
17837 case "(($ac_try" in
17838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839   *) ac_try_echo=$ac_try;;
17840 esac
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842   (eval "$ac_link") 2>conftest.er1
17843   ac_status=$?
17844   grep -v '^ *+' conftest.er1 >conftest.err
17845   rm -f conftest.er1
17846   cat conftest.err >&5
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); } &&
17849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17850   { (case "(($ac_try" in
17851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852   *) ac_try_echo=$ac_try;;
17853 esac
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855   (eval "$ac_try") 2>&5
17856   ac_status=$?
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); }; } &&
17859          { ac_try='test -s conftest$ac_exeext'
17860   { (case "(($ac_try" in
17861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862   *) ac_try_echo=$ac_try;;
17863 esac
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865   (eval "$ac_try") 2>&5
17866   ac_status=$?
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); }; }; then
17869   case "$LIBEXT" in
17870     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'` ;;
17871     so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^    ]*\).*$/\1/"';2,$d'` ;;
17872   esac
17873   if test "x$ac_cv_lib_soname_ncurses" = "x"
17874   then
17875      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
17876   fi
17877 else
17878   echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17880
17881         ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
17882 fi
17883
17884 rm -f core conftest.err conftest.$ac_objext \
17885       conftest$ac_exeext conftest.$ac_ext
17886   LIBS=$ac_get_soname_save_LIBS
17887 fi
17888 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
17889 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
17890 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
17891
17892 cat >>confdefs.h <<_ACEOF
17893 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
17894 _ACEOF
17895
17896 fi
17897
17898   { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
17899 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
17900 if test "${ac_cv_lib_soname_curses+set}" = set; then
17901   echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903   ac_get_soname_save_LIBS=$LIBS
17904 LIBS="-lcurses  $LIBS"
17905   cat >conftest.$ac_ext <<_ACEOF
17906 /* confdefs.h.  */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h.  */
17911
17912 /* Override any GCC internal prototype to avoid an error.
17913    Use char because int might match the return type of a GCC
17914    builtin and then its argument prototype would still apply.  */
17915 #ifdef __cplusplus
17916 extern "C"
17917 #endif
17918 char waddch ();
17919 int
17920 main ()
17921 {
17922 return waddch ();
17923   ;
17924   return 0;
17925 }
17926 _ACEOF
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (ac_try="$ac_link"
17929 case "(($ac_try" in
17930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931   *) ac_try_echo=$ac_try;;
17932 esac
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934   (eval "$ac_link") 2>conftest.er1
17935   ac_status=$?
17936   grep -v '^ *+' conftest.er1 >conftest.err
17937   rm -f conftest.er1
17938   cat conftest.err >&5
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); } &&
17941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17942   { (case "(($ac_try" in
17943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944   *) ac_try_echo=$ac_try;;
17945 esac
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947   (eval "$ac_try") 2>&5
17948   ac_status=$?
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); }; } &&
17951          { ac_try='test -s conftest$ac_exeext'
17952   { (case "(($ac_try" in
17953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954   *) ac_try_echo=$ac_try;;
17955 esac
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957   (eval "$ac_try") 2>&5
17958   ac_status=$?
17959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960   (exit $ac_status); }; }; then
17961   case "$LIBEXT" in
17962     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'` ;;
17963     so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^       ]*\).*$/\1/"';2,$d'` ;;
17964   esac
17965   if test "x$ac_cv_lib_soname_curses" = "x"
17966   then
17967      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
17968   fi
17969 else
17970   echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973         ac_cv_lib_soname_curses="libcurses.$LIBEXT"
17974 fi
17975
17976 rm -f core conftest.err conftest.$ac_objext \
17977       conftest$ac_exeext conftest.$ac_ext
17978   LIBS=$ac_get_soname_save_LIBS
17979 fi
17980 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
17981 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
17982 if test "${ac_cv_lib_soname_curses+set}" = set; then
17983
17984 cat >>confdefs.h <<_ACEOF
17985 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
17986 _ACEOF
17987
17988 fi
17989
17990   { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
17991 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
17992 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
17993   echo $ECHO_N "(cached) $ECHO_C" >&6
17994 else
17995   ac_get_soname_save_LIBS=$LIBS
17996 LIBS="-ljpeg  $LIBS"
17997   cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h.  */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h.  */
18003
18004 /* Override any GCC internal prototype to avoid an error.
18005    Use char because int might match the return type of a GCC
18006    builtin and then its argument prototype would still apply.  */
18007 #ifdef __cplusplus
18008 extern "C"
18009 #endif
18010 char jpeg_start_decompress ();
18011 int
18012 main ()
18013 {
18014 return jpeg_start_decompress ();
18015   ;
18016   return 0;
18017 }
18018 _ACEOF
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (ac_try="$ac_link"
18021 case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026   (eval "$ac_link") 2>conftest.er1
18027   ac_status=$?
18028   grep -v '^ *+' conftest.er1 >conftest.err
18029   rm -f conftest.er1
18030   cat conftest.err >&5
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); } &&
18033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18034   { (case "(($ac_try" in
18035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036   *) ac_try_echo=$ac_try;;
18037 esac
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039   (eval "$ac_try") 2>&5
18040   ac_status=$?
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); }; } &&
18043          { ac_try='test -s conftest$ac_exeext'
18044   { (case "(($ac_try" in
18045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046   *) ac_try_echo=$ac_try;;
18047 esac
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049   (eval "$ac_try") 2>&5
18050   ac_status=$?
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); }; }; then
18053   case "$LIBEXT" in
18054     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'` ;;
18055     so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^     ]*\).*$/\1/"';2,$d'` ;;
18056   esac
18057   if test "x$ac_cv_lib_soname_jpeg" = "x"
18058   then
18059      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18060   fi
18061 else
18062   echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18064
18065         ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18066 fi
18067
18068 rm -f core conftest.err conftest.$ac_objext \
18069       conftest$ac_exeext conftest.$ac_ext
18070   LIBS=$ac_get_soname_save_LIBS
18071 fi
18072 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
18073 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
18074 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18075
18076 cat >>confdefs.h <<_ACEOF
18077 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
18078 _ACEOF
18079
18080 fi
18081
18082   { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
18083 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
18084 if test "${ac_cv_lib_soname_capi20+set}" = set; then
18085   echo $ECHO_N "(cached) $ECHO_C" >&6
18086 else
18087   ac_get_soname_save_LIBS=$LIBS
18088 LIBS="-lcapi20  $LIBS"
18089   cat >conftest.$ac_ext <<_ACEOF
18090 /* confdefs.h.  */
18091 _ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h.  */
18095
18096 /* Override any GCC internal prototype to avoid an error.
18097    Use char because int might match the return type of a GCC
18098    builtin and then its argument prototype would still apply.  */
18099 #ifdef __cplusplus
18100 extern "C"
18101 #endif
18102 char capi20_isinstalled ();
18103 int
18104 main ()
18105 {
18106 return capi20_isinstalled ();
18107   ;
18108   return 0;
18109 }
18110 _ACEOF
18111 rm -f conftest.$ac_objext conftest$ac_exeext
18112 if { (ac_try="$ac_link"
18113 case "(($ac_try" in
18114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115   *) ac_try_echo=$ac_try;;
18116 esac
18117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118   (eval "$ac_link") 2>conftest.er1
18119   ac_status=$?
18120   grep -v '^ *+' conftest.er1 >conftest.err
18121   rm -f conftest.er1
18122   cat conftest.err >&5
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); } &&
18125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18126   { (case "(($ac_try" in
18127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128   *) ac_try_echo=$ac_try;;
18129 esac
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131   (eval "$ac_try") 2>&5
18132   ac_status=$?
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); }; } &&
18135          { ac_try='test -s conftest$ac_exeext'
18136   { (case "(($ac_try" in
18137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138   *) ac_try_echo=$ac_try;;
18139 esac
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141   (eval "$ac_try") 2>&5
18142   ac_status=$?
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); }; }; then
18145   case "$LIBEXT" in
18146     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'` ;;
18147     so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^       ]*\).*$/\1/"';2,$d'` ;;
18148   esac
18149   if test "x$ac_cv_lib_soname_capi20" = "x"
18150   then
18151      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
18152   fi
18153 else
18154   echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18156
18157         ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
18158 fi
18159
18160 rm -f core conftest.err conftest.$ac_objext \
18161       conftest$ac_exeext conftest.$ac_ext
18162   LIBS=$ac_get_soname_save_LIBS
18163 fi
18164 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
18165 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
18166 if test "${ac_cv_lib_soname_capi20+set}" = set; then
18167
18168 cat >>confdefs.h <<_ACEOF
18169 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
18170 _ACEOF
18171
18172 fi
18173
18174 fi
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247 for ac_func in \
18248         _pclose \
18249         _popen \
18250         _snprintf \
18251         _spawnvp \
18252         _stricmp \
18253         _strnicmp \
18254         _vsnprintf \
18255         asctime_r \
18256         chsize \
18257         clone \
18258         connect \
18259         dlopen \
18260         epoll_create \
18261         ffs \
18262         finite \
18263         fork \
18264         fpclass \
18265         fstatfs \
18266         fstatvfs \
18267         ftruncate \
18268         futimes \
18269         futimesat \
18270         getaddrinfo \
18271         gethostbyname \
18272         getnameinfo \
18273         getnetbyname \
18274         getopt_long \
18275         getpagesize \
18276         getprotobyname \
18277         getprotobynumber \
18278         getpwuid \
18279         getservbyport \
18280         gettid \
18281         gettimeofday \
18282         getuid \
18283         inet_aton \
18284         inet_network \
18285         kqueue \
18286         lstat \
18287         memmove \
18288         mmap \
18289         pclose \
18290         poll \
18291         popen \
18292         prctl \
18293         pread \
18294         pwrite \
18295         readlink \
18296         rfork \
18297         sched_yield \
18298         select \
18299         sendmsg \
18300         setrlimit \
18301         settimeofday \
18302         sigaltstack \
18303         sigprocmask \
18304         snprintf \
18305         spawnvp \
18306         statfs \
18307         statvfs \
18308         strcasecmp \
18309         strerror \
18310         strncasecmp \
18311         tcgetattr \
18312         timegm \
18313         usleep \
18314         vsnprintf \
18315         wait4 \
18316         waitpid \
18317
18318 do
18319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18323   echo $ECHO_N "(cached) $ECHO_C" >&6
18324 else
18325   cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h.  */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h.  */
18331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18333 #define $ac_func innocuous_$ac_func
18334
18335 /* System header to define __stub macros and hopefully few prototypes,
18336     which can conflict with char $ac_func (); below.
18337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18338     <limits.h> exists even on freestanding compilers.  */
18339
18340 #ifdef __STDC__
18341 # include <limits.h>
18342 #else
18343 # include <assert.h>
18344 #endif
18345
18346 #undef $ac_func
18347
18348 /* Override any GCC internal prototype to avoid an error.
18349    Use char because int might match the return type of a GCC
18350    builtin and then its argument prototype would still apply.  */
18351 #ifdef __cplusplus
18352 extern "C"
18353 #endif
18354 char $ac_func ();
18355 /* The GNU C library defines this for functions which it implements
18356     to always fail with ENOSYS.  Some functions are actually named
18357     something starting with __ and the normal name is an alias.  */
18358 #if defined __stub_$ac_func || defined __stub___$ac_func
18359 choke me
18360 #endif
18361
18362 int
18363 main ()
18364 {
18365 return $ac_func ();
18366   ;
18367   return 0;
18368 }
18369 _ACEOF
18370 rm -f conftest.$ac_objext conftest$ac_exeext
18371 if { (ac_try="$ac_link"
18372 case "(($ac_try" in
18373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374   *) ac_try_echo=$ac_try;;
18375 esac
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377   (eval "$ac_link") 2>conftest.er1
18378   ac_status=$?
18379   grep -v '^ *+' conftest.er1 >conftest.err
18380   rm -f conftest.er1
18381   cat conftest.err >&5
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); } &&
18384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18385   { (case "(($ac_try" in
18386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387   *) ac_try_echo=$ac_try;;
18388 esac
18389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390   (eval "$ac_try") 2>&5
18391   ac_status=$?
18392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393   (exit $ac_status); }; } &&
18394          { ac_try='test -s conftest$ac_exeext'
18395   { (case "(($ac_try" in
18396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397   *) ac_try_echo=$ac_try;;
18398 esac
18399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400   (eval "$ac_try") 2>&5
18401   ac_status=$?
18402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403   (exit $ac_status); }; }; then
18404   eval "$as_ac_var=yes"
18405 else
18406   echo "$as_me: failed program was:" >&5
18407 sed 's/^/| /' conftest.$ac_ext >&5
18408
18409         eval "$as_ac_var=no"
18410 fi
18411
18412 rm -f core conftest.err conftest.$ac_objext \
18413       conftest$ac_exeext conftest.$ac_ext
18414 fi
18415 ac_res=`eval echo '${'$as_ac_var'}'`
18416                { echo "$as_me:$LINENO: result: $ac_res" >&5
18417 echo "${ECHO_T}$ac_res" >&6; }
18418 if test `eval echo '${'$as_ac_var'}'` = yes; then
18419   cat >>confdefs.h <<_ACEOF
18420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18421 _ACEOF
18422
18423 fi
18424 done
18425
18426
18427 if test "$ac_cv_func_dlopen" = no
18428 then
18429     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18430 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18431 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18432   echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434   ac_check_lib_save_LIBS=$LIBS
18435 LIBS="-ldl  $LIBS"
18436 cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h.  */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h.  */
18442
18443 /* Override any GCC internal prototype to avoid an error.
18444    Use char because int might match the return type of a GCC
18445    builtin and then its argument prototype would still apply.  */
18446 #ifdef __cplusplus
18447 extern "C"
18448 #endif
18449 char dlopen ();
18450 int
18451 main ()
18452 {
18453 return dlopen ();
18454   ;
18455   return 0;
18456 }
18457 _ACEOF
18458 rm -f conftest.$ac_objext conftest$ac_exeext
18459 if { (ac_try="$ac_link"
18460 case "(($ac_try" in
18461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462   *) ac_try_echo=$ac_try;;
18463 esac
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465   (eval "$ac_link") 2>conftest.er1
18466   ac_status=$?
18467   grep -v '^ *+' conftest.er1 >conftest.err
18468   rm -f conftest.er1
18469   cat conftest.err >&5
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); } &&
18472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18473   { (case "(($ac_try" in
18474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475   *) ac_try_echo=$ac_try;;
18476 esac
18477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478   (eval "$ac_try") 2>&5
18479   ac_status=$?
18480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481   (exit $ac_status); }; } &&
18482          { ac_try='test -s conftest$ac_exeext'
18483   { (case "(($ac_try" in
18484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18485   *) ac_try_echo=$ac_try;;
18486 esac
18487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18488   (eval "$ac_try") 2>&5
18489   ac_status=$?
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); }; }; then
18492   ac_cv_lib_dl_dlopen=yes
18493 else
18494   echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18496
18497         ac_cv_lib_dl_dlopen=no
18498 fi
18499
18500 rm -f core conftest.err conftest.$ac_objext \
18501       conftest$ac_exeext conftest.$ac_ext
18502 LIBS=$ac_check_lib_save_LIBS
18503 fi
18504 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18505 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18506 if test $ac_cv_lib_dl_dlopen = yes; then
18507   cat >>confdefs.h <<\_ACEOF
18508 #define HAVE_DLOPEN 1
18509 _ACEOF
18510  LIBDL="-ldl"
18511
18512 fi
18513
18514 fi
18515 ac_wine_check_funcs_save_LIBS="$LIBS"
18516 LIBS="$LIBS $LIBDL"
18517
18518 for ac_func in dladdr
18519 do
18520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18524   echo $ECHO_N "(cached) $ECHO_C" >&6
18525 else
18526   cat >conftest.$ac_ext <<_ACEOF
18527 /* confdefs.h.  */
18528 _ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h.  */
18532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18534 #define $ac_func innocuous_$ac_func
18535
18536 /* System header to define __stub macros and hopefully few prototypes,
18537     which can conflict with char $ac_func (); below.
18538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18539     <limits.h> exists even on freestanding compilers.  */
18540
18541 #ifdef __STDC__
18542 # include <limits.h>
18543 #else
18544 # include <assert.h>
18545 #endif
18546
18547 #undef $ac_func
18548
18549 /* Override any GCC internal prototype to avoid an error.
18550    Use char because int might match the return type of a GCC
18551    builtin and then its argument prototype would still apply.  */
18552 #ifdef __cplusplus
18553 extern "C"
18554 #endif
18555 char $ac_func ();
18556 /* The GNU C library defines this for functions which it implements
18557     to always fail with ENOSYS.  Some functions are actually named
18558     something starting with __ and the normal name is an alias.  */
18559 #if defined __stub_$ac_func || defined __stub___$ac_func
18560 choke me
18561 #endif
18562
18563 int
18564 main ()
18565 {
18566 return $ac_func ();
18567   ;
18568   return 0;
18569 }
18570 _ACEOF
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (ac_try="$ac_link"
18573 case "(($ac_try" in
18574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575   *) ac_try_echo=$ac_try;;
18576 esac
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578   (eval "$ac_link") 2>conftest.er1
18579   ac_status=$?
18580   grep -v '^ *+' conftest.er1 >conftest.err
18581   rm -f conftest.er1
18582   cat conftest.err >&5
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); } &&
18585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18586   { (case "(($ac_try" in
18587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588   *) ac_try_echo=$ac_try;;
18589 esac
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591   (eval "$ac_try") 2>&5
18592   ac_status=$?
18593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); }; } &&
18595          { ac_try='test -s conftest$ac_exeext'
18596   { (case "(($ac_try" in
18597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598   *) ac_try_echo=$ac_try;;
18599 esac
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601   (eval "$ac_try") 2>&5
18602   ac_status=$?
18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); }; }; then
18605   eval "$as_ac_var=yes"
18606 else
18607   echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18609
18610         eval "$as_ac_var=no"
18611 fi
18612
18613 rm -f core conftest.err conftest.$ac_objext \
18614       conftest$ac_exeext conftest.$ac_ext
18615 fi
18616 ac_res=`eval echo '${'$as_ac_var'}'`
18617                { echo "$as_me:$LINENO: result: $ac_res" >&5
18618 echo "${ECHO_T}$ac_res" >&6; }
18619 if test `eval echo '${'$as_ac_var'}'` = yes; then
18620   cat >>confdefs.h <<_ACEOF
18621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18622 _ACEOF
18623
18624 fi
18625 done
18626
18627 LIBS="$ac_wine_check_funcs_save_LIBS"
18628
18629 if test "$ac_cv_func_poll" = no
18630 then
18631     { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
18632 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
18633 if test "${ac_cv_lib_poll_poll+set}" = set; then
18634   echo $ECHO_N "(cached) $ECHO_C" >&6
18635 else
18636   ac_check_lib_save_LIBS=$LIBS
18637 LIBS="-lpoll  $LIBS"
18638 cat >conftest.$ac_ext <<_ACEOF
18639 /* confdefs.h.  */
18640 _ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h.  */
18644
18645 /* Override any GCC internal prototype to avoid an error.
18646    Use char because int might match the return type of a GCC
18647    builtin and then its argument prototype would still apply.  */
18648 #ifdef __cplusplus
18649 extern "C"
18650 #endif
18651 char poll ();
18652 int
18653 main ()
18654 {
18655 return poll ();
18656   ;
18657   return 0;
18658 }
18659 _ACEOF
18660 rm -f conftest.$ac_objext conftest$ac_exeext
18661 if { (ac_try="$ac_link"
18662 case "(($ac_try" in
18663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664   *) ac_try_echo=$ac_try;;
18665 esac
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667   (eval "$ac_link") 2>conftest.er1
18668   ac_status=$?
18669   grep -v '^ *+' conftest.er1 >conftest.err
18670   rm -f conftest.er1
18671   cat conftest.err >&5
18672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673   (exit $ac_status); } &&
18674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18675   { (case "(($ac_try" in
18676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677   *) ac_try_echo=$ac_try;;
18678 esac
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680   (eval "$ac_try") 2>&5
18681   ac_status=$?
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); }; } &&
18684          { ac_try='test -s conftest$ac_exeext'
18685   { (case "(($ac_try" in
18686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687   *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690   (eval "$ac_try") 2>&5
18691   ac_status=$?
18692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693   (exit $ac_status); }; }; then
18694   ac_cv_lib_poll_poll=yes
18695 else
18696   echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18698
18699         ac_cv_lib_poll_poll=no
18700 fi
18701
18702 rm -f core conftest.err conftest.$ac_objext \
18703       conftest$ac_exeext conftest.$ac_ext
18704 LIBS=$ac_check_lib_save_LIBS
18705 fi
18706 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
18707 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
18708 if test $ac_cv_lib_poll_poll = yes; then
18709   cat >>confdefs.h <<\_ACEOF
18710 #define HAVE_POLL 1
18711 _ACEOF
18712  LIBPOLL="-lpoll"
18713
18714 fi
18715
18716 fi
18717
18718 if test "$ac_cv_func_gethostbyname" = no
18719 then
18720
18721 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18722 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18723 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18724   echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726   ac_check_lib_save_LIBS=$LIBS
18727 LIBS="-lnsl  $LIBS"
18728 cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h.  */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h.  */
18734
18735 /* Override any GCC internal prototype to avoid an error.
18736    Use char because int might match the return type of a GCC
18737    builtin and then its argument prototype would still apply.  */
18738 #ifdef __cplusplus
18739 extern "C"
18740 #endif
18741 char gethostbyname ();
18742 int
18743 main ()
18744 {
18745 return gethostbyname ();
18746   ;
18747   return 0;
18748 }
18749 _ACEOF
18750 rm -f conftest.$ac_objext conftest$ac_exeext
18751 if { (ac_try="$ac_link"
18752 case "(($ac_try" in
18753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754   *) ac_try_echo=$ac_try;;
18755 esac
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757   (eval "$ac_link") 2>conftest.er1
18758   ac_status=$?
18759   grep -v '^ *+' conftest.er1 >conftest.err
18760   rm -f conftest.er1
18761   cat conftest.err >&5
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); } &&
18764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18765   { (case "(($ac_try" in
18766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767   *) ac_try_echo=$ac_try;;
18768 esac
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770   (eval "$ac_try") 2>&5
18771   ac_status=$?
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); }; } &&
18774          { ac_try='test -s conftest$ac_exeext'
18775   { (case "(($ac_try" in
18776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777   *) ac_try_echo=$ac_try;;
18778 esac
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780   (eval "$ac_try") 2>&5
18781   ac_status=$?
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); }; }; then
18784   ac_cv_lib_nsl_gethostbyname=yes
18785 else
18786   echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18788
18789         ac_cv_lib_nsl_gethostbyname=no
18790 fi
18791
18792 rm -f core conftest.err conftest.$ac_objext \
18793       conftest$ac_exeext conftest.$ac_ext
18794 LIBS=$ac_check_lib_save_LIBS
18795 fi
18796 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18797 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
18798 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18799   cat >>confdefs.h <<_ACEOF
18800 #define HAVE_LIBNSL 1
18801 _ACEOF
18802
18803   LIBS="-lnsl $LIBS"
18804
18805 fi
18806
18807 fi
18808
18809 if test "$ac_cv_func_connect" = no
18810 then
18811
18812 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18813 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
18814 if test "${ac_cv_lib_socket_connect+set}" = set; then
18815   echo $ECHO_N "(cached) $ECHO_C" >&6
18816 else
18817   ac_check_lib_save_LIBS=$LIBS
18818 LIBS="-lsocket  $LIBS"
18819 cat >conftest.$ac_ext <<_ACEOF
18820 /* confdefs.h.  */
18821 _ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h.  */
18825
18826 /* Override any GCC internal prototype to avoid an error.
18827    Use char because int might match the return type of a GCC
18828    builtin and then its argument prototype would still apply.  */
18829 #ifdef __cplusplus
18830 extern "C"
18831 #endif
18832 char connect ();
18833 int
18834 main ()
18835 {
18836 return connect ();
18837   ;
18838   return 0;
18839 }
18840 _ACEOF
18841 rm -f conftest.$ac_objext conftest$ac_exeext
18842 if { (ac_try="$ac_link"
18843 case "(($ac_try" in
18844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845   *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848   (eval "$ac_link") 2>conftest.er1
18849   ac_status=$?
18850   grep -v '^ *+' conftest.er1 >conftest.err
18851   rm -f conftest.er1
18852   cat conftest.err >&5
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); } &&
18855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18856   { (case "(($ac_try" in
18857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858   *) ac_try_echo=$ac_try;;
18859 esac
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861   (eval "$ac_try") 2>&5
18862   ac_status=$?
18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864   (exit $ac_status); }; } &&
18865          { ac_try='test -s conftest$ac_exeext'
18866   { (case "(($ac_try" in
18867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868   *) ac_try_echo=$ac_try;;
18869 esac
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871   (eval "$ac_try") 2>&5
18872   ac_status=$?
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); }; }; then
18875   ac_cv_lib_socket_connect=yes
18876 else
18877   echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18879
18880         ac_cv_lib_socket_connect=no
18881 fi
18882
18883 rm -f core conftest.err conftest.$ac_objext \
18884       conftest$ac_exeext conftest.$ac_ext
18885 LIBS=$ac_check_lib_save_LIBS
18886 fi
18887 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18888 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
18889 if test $ac_cv_lib_socket_connect = yes; then
18890   cat >>confdefs.h <<_ACEOF
18891 #define HAVE_LIBSOCKET 1
18892 _ACEOF
18893
18894   LIBS="-lsocket $LIBS"
18895
18896 fi
18897
18898 fi
18899
18900 if test "$ac_cv_func_inet_aton" = no
18901 then
18902
18903 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18904 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18905 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18906   echo $ECHO_N "(cached) $ECHO_C" >&6
18907 else
18908   ac_check_lib_save_LIBS=$LIBS
18909 LIBS="-lresolv  $LIBS"
18910 cat >conftest.$ac_ext <<_ACEOF
18911 /* confdefs.h.  */
18912 _ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h.  */
18916
18917 /* Override any GCC internal prototype to avoid an error.
18918    Use char because int might match the return type of a GCC
18919    builtin and then its argument prototype would still apply.  */
18920 #ifdef __cplusplus
18921 extern "C"
18922 #endif
18923 char inet_aton ();
18924 int
18925 main ()
18926 {
18927 return inet_aton ();
18928   ;
18929   return 0;
18930 }
18931 _ACEOF
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (ac_try="$ac_link"
18934 case "(($ac_try" in
18935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936   *) ac_try_echo=$ac_try;;
18937 esac
18938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939   (eval "$ac_link") 2>conftest.er1
18940   ac_status=$?
18941   grep -v '^ *+' conftest.er1 >conftest.err
18942   rm -f conftest.er1
18943   cat conftest.err >&5
18944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945   (exit $ac_status); } &&
18946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18947   { (case "(($ac_try" in
18948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949   *) ac_try_echo=$ac_try;;
18950 esac
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952   (eval "$ac_try") 2>&5
18953   ac_status=$?
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); }; } &&
18956          { ac_try='test -s conftest$ac_exeext'
18957   { (case "(($ac_try" in
18958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959   *) ac_try_echo=$ac_try;;
18960 esac
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962   (eval "$ac_try") 2>&5
18963   ac_status=$?
18964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965   (exit $ac_status); }; }; then
18966   ac_cv_lib_resolv_inet_aton=yes
18967 else
18968   echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971         ac_cv_lib_resolv_inet_aton=no
18972 fi
18973
18974 rm -f core conftest.err conftest.$ac_objext \
18975       conftest$ac_exeext conftest.$ac_ext
18976 LIBS=$ac_check_lib_save_LIBS
18977 fi
18978 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18979 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18980 if test $ac_cv_lib_resolv_inet_aton = yes; then
18981   cat >>confdefs.h <<_ACEOF
18982 #define HAVE_LIBRESOLV 1
18983 _ACEOF
18984
18985   LIBS="-lresolv $LIBS"
18986
18987 fi
18988
18989 fi
18990
18991
18992 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18993 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18994 if test "${ac_cv_c_const+set}" = set; then
18995   echo $ECHO_N "(cached) $ECHO_C" >&6
18996 else
18997   cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h.  */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h.  */
19003
19004 int
19005 main ()
19006 {
19007 /* FIXME: Include the comments suggested by Paul. */
19008 #ifndef __cplusplus
19009   /* Ultrix mips cc rejects this.  */
19010   typedef int charset[2];
19011   const charset x;
19012   /* SunOS 4.1.1 cc rejects this.  */
19013   char const *const *ccp;
19014   char **p;
19015   /* NEC SVR4.0.2 mips cc rejects this.  */
19016   struct point {int x, y;};
19017   static struct point const zero = {0,0};
19018   /* AIX XL C 1.02.0.0 rejects this.
19019      It does not let you subtract one const X* pointer from another in
19020      an arm of an if-expression whose if-part is not a constant
19021      expression */
19022   const char *g = "string";
19023   ccp = &g + (g ? g-g : 0);
19024   /* HPUX 7.0 cc rejects these. */
19025   ++ccp;
19026   p = (char**) ccp;
19027   ccp = (char const *const *) p;
19028   { /* SCO 3.2v4 cc rejects this.  */
19029     char *t;
19030     char const *s = 0 ? (char *) 0 : (char const *) 0;
19031
19032     *t++ = 0;
19033     if (s) return 0;
19034   }
19035   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19036     int x[] = {25, 17};
19037     const int *foo = &x[0];
19038     ++foo;
19039   }
19040   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19041     typedef const int *iptr;
19042     iptr p = 0;
19043     ++p;
19044   }
19045   { /* AIX XL C 1.02.0.0 rejects this saying
19046        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19047     struct s { int j; const int *ap[3]; };
19048     struct s *b; b->j = 5;
19049   }
19050   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19051     const int foo = 10;
19052     if (!foo) return 0;
19053   }
19054   return !x[0] && !zero.x;
19055 #endif
19056
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest.$ac_objext
19062 if { (ac_try="$ac_compile"
19063 case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_compile") 2>conftest.er1
19069   ac_status=$?
19070   grep -v '^ *+' conftest.er1 >conftest.err
19071   rm -f conftest.er1
19072   cat conftest.err >&5
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } &&
19075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19076   { (case "(($ac_try" in
19077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078   *) ac_try_echo=$ac_try;;
19079 esac
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081   (eval "$ac_try") 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); }; } &&
19085          { ac_try='test -s conftest.$ac_objext'
19086   { (case "(($ac_try" in
19087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088   *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091   (eval "$ac_try") 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); }; }; then
19095   ac_cv_c_const=yes
19096 else
19097   echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100         ac_cv_c_const=no
19101 fi
19102
19103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19104 fi
19105 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19106 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19107 if test $ac_cv_c_const = no; then
19108
19109 cat >>confdefs.h <<\_ACEOF
19110 #define const
19111 _ACEOF
19112
19113 fi
19114
19115 { echo "$as_me:$LINENO: checking for inline" >&5
19116 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19117 if test "${ac_cv_c_inline+set}" = set; then
19118   echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120   ac_cv_c_inline=no
19121 for ac_kw in inline __inline__ __inline; do
19122   cat >conftest.$ac_ext <<_ACEOF
19123 /* confdefs.h.  */
19124 _ACEOF
19125 cat confdefs.h >>conftest.$ac_ext
19126 cat >>conftest.$ac_ext <<_ACEOF
19127 /* end confdefs.h.  */
19128 #ifndef __cplusplus
19129 typedef int foo_t;
19130 static $ac_kw foo_t static_foo () {return 0; }
19131 $ac_kw foo_t foo () {return 0; }
19132 #endif
19133
19134 _ACEOF
19135 rm -f conftest.$ac_objext
19136 if { (ac_try="$ac_compile"
19137 case "(($ac_try" in
19138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139   *) ac_try_echo=$ac_try;;
19140 esac
19141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142   (eval "$ac_compile") 2>conftest.er1
19143   ac_status=$?
19144   grep -v '^ *+' conftest.er1 >conftest.err
19145   rm -f conftest.er1
19146   cat conftest.err >&5
19147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148   (exit $ac_status); } &&
19149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19150   { (case "(($ac_try" in
19151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152   *) ac_try_echo=$ac_try;;
19153 esac
19154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155   (eval "$ac_try") 2>&5
19156   ac_status=$?
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); }; } &&
19159          { ac_try='test -s conftest.$ac_objext'
19160   { (case "(($ac_try" in
19161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162   *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165   (eval "$ac_try") 2>&5
19166   ac_status=$?
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); }; }; then
19169   ac_cv_c_inline=$ac_kw
19170 else
19171   echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19173
19174
19175 fi
19176
19177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19178   test "$ac_cv_c_inline" != no && break
19179 done
19180
19181 fi
19182 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19183 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19184
19185
19186 case $ac_cv_c_inline in
19187   inline | yes) ;;
19188   *)
19189     case $ac_cv_c_inline in
19190       no) ac_val=;;
19191       *) ac_val=$ac_cv_c_inline;;
19192     esac
19193     cat >>confdefs.h <<_ACEOF
19194 #ifndef __cplusplus
19195 #define inline $ac_val
19196 #endif
19197 _ACEOF
19198     ;;
19199 esac
19200
19201 { echo "$as_me:$LINENO: checking for mode_t" >&5
19202 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
19203 if test "${ac_cv_type_mode_t+set}" = set; then
19204   echo $ECHO_N "(cached) $ECHO_C" >&6
19205 else
19206   cat >conftest.$ac_ext <<_ACEOF
19207 /* confdefs.h.  */
19208 _ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h.  */
19212 $ac_includes_default
19213 typedef mode_t ac__type_new_;
19214 int
19215 main ()
19216 {
19217 if ((ac__type_new_ *) 0)
19218   return 0;
19219 if (sizeof (ac__type_new_))
19220   return 0;
19221   ;
19222   return 0;
19223 }
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229   *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232   (eval "$ac_compile") 2>conftest.er1
19233   ac_status=$?
19234   grep -v '^ *+' conftest.er1 >conftest.err
19235   rm -f conftest.er1
19236   cat conftest.err >&5
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); } &&
19239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19240   { (case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_try") 2>&5
19246   ac_status=$?
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); }; } &&
19249          { ac_try='test -s conftest.$ac_objext'
19250   { (case "(($ac_try" in
19251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252   *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255   (eval "$ac_try") 2>&5
19256   ac_status=$?
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); }; }; then
19259   ac_cv_type_mode_t=yes
19260 else
19261   echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19263
19264         ac_cv_type_mode_t=no
19265 fi
19266
19267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19268 fi
19269 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19270 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
19271 if test $ac_cv_type_mode_t = yes; then
19272
19273 cat >>confdefs.h <<_ACEOF
19274 #define HAVE_MODE_T 1
19275 _ACEOF
19276
19277
19278 fi
19279 { echo "$as_me:$LINENO: checking for off_t" >&5
19280 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
19281 if test "${ac_cv_type_off_t+set}" = set; then
19282   echo $ECHO_N "(cached) $ECHO_C" >&6
19283 else
19284   cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h.  */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h.  */
19290 $ac_includes_default
19291 typedef off_t ac__type_new_;
19292 int
19293 main ()
19294 {
19295 if ((ac__type_new_ *) 0)
19296   return 0;
19297 if (sizeof (ac__type_new_))
19298   return 0;
19299   ;
19300   return 0;
19301 }
19302 _ACEOF
19303 rm -f conftest.$ac_objext
19304 if { (ac_try="$ac_compile"
19305 case "(($ac_try" in
19306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307   *) ac_try_echo=$ac_try;;
19308 esac
19309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310   (eval "$ac_compile") 2>conftest.er1
19311   ac_status=$?
19312   grep -v '^ *+' conftest.er1 >conftest.err
19313   rm -f conftest.er1
19314   cat conftest.err >&5
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); } &&
19317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19318   { (case "(($ac_try" in
19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320   *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323   (eval "$ac_try") 2>&5
19324   ac_status=$?
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); }; } &&
19327          { ac_try='test -s conftest.$ac_objext'
19328   { (case "(($ac_try" in
19329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330   *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333   (eval "$ac_try") 2>&5
19334   ac_status=$?
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); }; }; then
19337   ac_cv_type_off_t=yes
19338 else
19339   echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19341
19342         ac_cv_type_off_t=no
19343 fi
19344
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346 fi
19347 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19348 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
19349 if test $ac_cv_type_off_t = yes; then
19350
19351 cat >>confdefs.h <<_ACEOF
19352 #define HAVE_OFF_T 1
19353 _ACEOF
19354
19355
19356 fi
19357 { echo "$as_me:$LINENO: checking for pid_t" >&5
19358 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
19359 if test "${ac_cv_type_pid_t+set}" = set; then
19360   echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362   cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368 $ac_includes_default
19369 typedef pid_t ac__type_new_;
19370 int
19371 main ()
19372 {
19373 if ((ac__type_new_ *) 0)
19374   return 0;
19375 if (sizeof (ac__type_new_))
19376   return 0;
19377   ;
19378   return 0;
19379 }
19380 _ACEOF
19381 rm -f conftest.$ac_objext
19382 if { (ac_try="$ac_compile"
19383 case "(($ac_try" in
19384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385   *) ac_try_echo=$ac_try;;
19386 esac
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388   (eval "$ac_compile") 2>conftest.er1
19389   ac_status=$?
19390   grep -v '^ *+' conftest.er1 >conftest.err
19391   rm -f conftest.er1
19392   cat conftest.err >&5
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); } &&
19395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19396   { (case "(($ac_try" in
19397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398   *) ac_try_echo=$ac_try;;
19399 esac
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401   (eval "$ac_try") 2>&5
19402   ac_status=$?
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); }; } &&
19405          { ac_try='test -s conftest.$ac_objext'
19406   { (case "(($ac_try" in
19407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408   *) ac_try_echo=$ac_try;;
19409 esac
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411   (eval "$ac_try") 2>&5
19412   ac_status=$?
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); }; }; then
19415   ac_cv_type_pid_t=yes
19416 else
19417   echo "$as_me: failed program was:" >&5
19418 sed 's/^/| /' conftest.$ac_ext >&5
19419
19420         ac_cv_type_pid_t=no
19421 fi
19422
19423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19424 fi
19425 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19426 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
19427 if test $ac_cv_type_pid_t = yes; then
19428
19429 cat >>confdefs.h <<_ACEOF
19430 #define HAVE_PID_T 1
19431 _ACEOF
19432
19433
19434 fi
19435 { echo "$as_me:$LINENO: checking for size_t" >&5
19436 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19437 if test "${ac_cv_type_size_t+set}" = set; then
19438   echo $ECHO_N "(cached) $ECHO_C" >&6
19439 else
19440   cat >conftest.$ac_ext <<_ACEOF
19441 /* confdefs.h.  */
19442 _ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h.  */
19446 $ac_includes_default
19447 typedef size_t ac__type_new_;
19448 int
19449 main ()
19450 {
19451 if ((ac__type_new_ *) 0)
19452   return 0;
19453 if (sizeof (ac__type_new_))
19454   return 0;
19455   ;
19456   return 0;
19457 }
19458 _ACEOF
19459 rm -f conftest.$ac_objext
19460 if { (ac_try="$ac_compile"
19461 case "(($ac_try" in
19462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463   *) ac_try_echo=$ac_try;;
19464 esac
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466   (eval "$ac_compile") 2>conftest.er1
19467   ac_status=$?
19468   grep -v '^ *+' conftest.er1 >conftest.err
19469   rm -f conftest.er1
19470   cat conftest.err >&5
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); } &&
19473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19474   { (case "(($ac_try" in
19475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476   *) ac_try_echo=$ac_try;;
19477 esac
19478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479   (eval "$ac_try") 2>&5
19480   ac_status=$?
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); }; } &&
19483          { ac_try='test -s conftest.$ac_objext'
19484   { (case "(($ac_try" in
19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486   *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489   (eval "$ac_try") 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); }; }; then
19493   ac_cv_type_size_t=yes
19494 else
19495   echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19497
19498         ac_cv_type_size_t=no
19499 fi
19500
19501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 fi
19503 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19504 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19505 if test $ac_cv_type_size_t = yes; then
19506
19507 cat >>confdefs.h <<_ACEOF
19508 #define HAVE_SIZE_T 1
19509 _ACEOF
19510
19511
19512 fi
19513 { echo "$as_me:$LINENO: checking for ssize_t" >&5
19514 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
19515 if test "${ac_cv_type_ssize_t+set}" = set; then
19516   echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518   cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524 $ac_includes_default
19525 typedef ssize_t ac__type_new_;
19526 int
19527 main ()
19528 {
19529 if ((ac__type_new_ *) 0)
19530   return 0;
19531 if (sizeof (ac__type_new_))
19532   return 0;
19533   ;
19534   return 0;
19535 }
19536 _ACEOF
19537 rm -f conftest.$ac_objext
19538 if { (ac_try="$ac_compile"
19539 case "(($ac_try" in
19540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541   *) ac_try_echo=$ac_try;;
19542 esac
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544   (eval "$ac_compile") 2>conftest.er1
19545   ac_status=$?
19546   grep -v '^ *+' conftest.er1 >conftest.err
19547   rm -f conftest.er1
19548   cat conftest.err >&5
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); } &&
19551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19552   { (case "(($ac_try" in
19553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554   *) ac_try_echo=$ac_try;;
19555 esac
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557   (eval "$ac_try") 2>&5
19558   ac_status=$?
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); }; } &&
19561          { ac_try='test -s conftest.$ac_objext'
19562   { (case "(($ac_try" in
19563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564   *) ac_try_echo=$ac_try;;
19565 esac
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567   (eval "$ac_try") 2>&5
19568   ac_status=$?
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); }; }; then
19571   ac_cv_type_ssize_t=yes
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576         ac_cv_type_ssize_t=no
19577 fi
19578
19579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19580 fi
19581 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
19582 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
19583 if test $ac_cv_type_ssize_t = yes; then
19584
19585 cat >>confdefs.h <<_ACEOF
19586 #define HAVE_SSIZE_T 1
19587 _ACEOF
19588
19589
19590 fi
19591 { echo "$as_me:$LINENO: checking for long long" >&5
19592 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19593 if test "${ac_cv_type_long_long+set}" = set; then
19594   echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596   cat >conftest.$ac_ext <<_ACEOF
19597 /* confdefs.h.  */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h.  */
19602 $ac_includes_default
19603 typedef long long ac__type_new_;
19604 int
19605 main ()
19606 {
19607 if ((ac__type_new_ *) 0)
19608   return 0;
19609 if (sizeof (ac__type_new_))
19610   return 0;
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 rm -f conftest.$ac_objext
19616 if { (ac_try="$ac_compile"
19617 case "(($ac_try" in
19618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619   *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622   (eval "$ac_compile") 2>conftest.er1
19623   ac_status=$?
19624   grep -v '^ *+' conftest.er1 >conftest.err
19625   rm -f conftest.er1
19626   cat conftest.err >&5
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } &&
19629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19630   { (case "(($ac_try" in
19631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632   *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635   (eval "$ac_try") 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; } &&
19639          { ac_try='test -s conftest.$ac_objext'
19640   { (case "(($ac_try" in
19641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642   *) ac_try_echo=$ac_try;;
19643 esac
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645   (eval "$ac_try") 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }; }; then
19649   ac_cv_type_long_long=yes
19650 else
19651   echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654         ac_cv_type_long_long=no
19655 fi
19656
19657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658 fi
19659 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19660 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19661 if test $ac_cv_type_long_long = yes; then
19662
19663 cat >>confdefs.h <<_ACEOF
19664 #define HAVE_LONG_LONG 1
19665 _ACEOF
19666
19667
19668 fi
19669 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
19670 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
19671 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
19672   echo $ECHO_N "(cached) $ECHO_C" >&6
19673 else
19674   cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h.  */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h.  */
19680 $ac_includes_default
19681 typedef fsblkcnt_t ac__type_new_;
19682 int
19683 main ()
19684 {
19685 if ((ac__type_new_ *) 0)
19686   return 0;
19687 if (sizeof (ac__type_new_))
19688   return 0;
19689   ;
19690   return 0;
19691 }
19692 _ACEOF
19693 rm -f conftest.$ac_objext
19694 if { (ac_try="$ac_compile"
19695 case "(($ac_try" in
19696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697   *) ac_try_echo=$ac_try;;
19698 esac
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700   (eval "$ac_compile") 2>conftest.er1
19701   ac_status=$?
19702   grep -v '^ *+' conftest.er1 >conftest.err
19703   rm -f conftest.er1
19704   cat conftest.err >&5
19705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706   (exit $ac_status); } &&
19707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19708   { (case "(($ac_try" in
19709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710   *) ac_try_echo=$ac_try;;
19711 esac
19712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713   (eval "$ac_try") 2>&5
19714   ac_status=$?
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); }; } &&
19717          { ac_try='test -s conftest.$ac_objext'
19718   { (case "(($ac_try" in
19719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720   *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723   (eval "$ac_try") 2>&5
19724   ac_status=$?
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); }; }; then
19727   ac_cv_type_fsblkcnt_t=yes
19728 else
19729   echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19731
19732         ac_cv_type_fsblkcnt_t=no
19733 fi
19734
19735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19736 fi
19737 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
19738 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
19739 if test $ac_cv_type_fsblkcnt_t = yes; then
19740
19741 cat >>confdefs.h <<_ACEOF
19742 #define HAVE_FSBLKCNT_T 1
19743 _ACEOF
19744
19745
19746 fi
19747 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
19748 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
19749 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
19750   echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752   cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h.  */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h.  */
19758 $ac_includes_default
19759 typedef fsfilcnt_t ac__type_new_;
19760 int
19761 main ()
19762 {
19763 if ((ac__type_new_ *) 0)
19764   return 0;
19765 if (sizeof (ac__type_new_))
19766   return 0;
19767   ;
19768   return 0;
19769 }
19770 _ACEOF
19771 rm -f conftest.$ac_objext
19772 if { (ac_try="$ac_compile"
19773 case "(($ac_try" in
19774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775   *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778   (eval "$ac_compile") 2>conftest.er1
19779   ac_status=$?
19780   grep -v '^ *+' conftest.er1 >conftest.err
19781   rm -f conftest.er1
19782   cat conftest.err >&5
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); } &&
19785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19786   { (case "(($ac_try" in
19787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788   *) ac_try_echo=$ac_try;;
19789 esac
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791   (eval "$ac_try") 2>&5
19792   ac_status=$?
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); }; } &&
19795          { ac_try='test -s conftest.$ac_objext'
19796   { (case "(($ac_try" in
19797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798   *) ac_try_echo=$ac_try;;
19799 esac
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801   (eval "$ac_try") 2>&5
19802   ac_status=$?
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); }; }; then
19805   ac_cv_type_fsfilcnt_t=yes
19806 else
19807   echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19809
19810         ac_cv_type_fsfilcnt_t=no
19811 fi
19812
19813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19814 fi
19815 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
19816 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
19817 if test $ac_cv_type_fsfilcnt_t = yes; then
19818
19819 cat >>confdefs.h <<_ACEOF
19820 #define HAVE_FSFILCNT_T 1
19821 _ACEOF
19822
19823
19824 fi
19825
19826 { echo "$as_me:$LINENO: checking for sigset_t" >&5
19827 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
19828 if test "${ac_cv_type_sigset_t+set}" = set; then
19829   echo $ECHO_N "(cached) $ECHO_C" >&6
19830 else
19831   cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837 #include <signal.h>
19838
19839 typedef sigset_t ac__type_new_;
19840 int
19841 main ()
19842 {
19843 if ((ac__type_new_ *) 0)
19844   return 0;
19845 if (sizeof (ac__type_new_))
19846   return 0;
19847   ;
19848   return 0;
19849 }
19850 _ACEOF
19851 rm -f conftest.$ac_objext
19852 if { (ac_try="$ac_compile"
19853 case "(($ac_try" in
19854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855   *) ac_try_echo=$ac_try;;
19856 esac
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858   (eval "$ac_compile") 2>conftest.er1
19859   ac_status=$?
19860   grep -v '^ *+' conftest.er1 >conftest.err
19861   rm -f conftest.er1
19862   cat conftest.err >&5
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); } &&
19865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19866   { (case "(($ac_try" in
19867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868   *) ac_try_echo=$ac_try;;
19869 esac
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871   (eval "$ac_try") 2>&5
19872   ac_status=$?
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); }; } &&
19875          { ac_try='test -s conftest.$ac_objext'
19876   { (case "(($ac_try" in
19877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878   *) ac_try_echo=$ac_try;;
19879 esac
19880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19881   (eval "$ac_try") 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); }; }; then
19885   ac_cv_type_sigset_t=yes
19886 else
19887   echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19889
19890         ac_cv_type_sigset_t=no
19891 fi
19892
19893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19894 fi
19895 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
19896 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
19897 if test $ac_cv_type_sigset_t = yes; then
19898
19899 cat >>confdefs.h <<_ACEOF
19900 #define HAVE_SIGSET_T 1
19901 _ACEOF
19902
19903
19904 fi
19905
19906 { echo "$as_me:$LINENO: checking for request_sense" >&5
19907 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
19908 if test "${ac_cv_type_request_sense+set}" = set; then
19909   echo $ECHO_N "(cached) $ECHO_C" >&6
19910 else
19911   cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h.  */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h.  */
19917 #include <linux/cdrom.h>
19918
19919 typedef request_sense ac__type_new_;
19920 int
19921 main ()
19922 {
19923 if ((ac__type_new_ *) 0)
19924   return 0;
19925 if (sizeof (ac__type_new_))
19926   return 0;
19927   ;
19928   return 0;
19929 }
19930 _ACEOF
19931 rm -f conftest.$ac_objext
19932 if { (ac_try="$ac_compile"
19933 case "(($ac_try" in
19934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935   *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938   (eval "$ac_compile") 2>conftest.er1
19939   ac_status=$?
19940   grep -v '^ *+' conftest.er1 >conftest.err
19941   rm -f conftest.er1
19942   cat conftest.err >&5
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); } &&
19945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19946   { (case "(($ac_try" in
19947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948   *) ac_try_echo=$ac_try;;
19949 esac
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951   (eval "$ac_try") 2>&5
19952   ac_status=$?
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); }; } &&
19955          { ac_try='test -s conftest.$ac_objext'
19956   { (case "(($ac_try" in
19957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958   *) ac_try_echo=$ac_try;;
19959 esac
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961   (eval "$ac_try") 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; }; then
19965   ac_cv_type_request_sense=yes
19966 else
19967   echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19969
19970         ac_cv_type_request_sense=no
19971 fi
19972
19973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19974 fi
19975 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
19976 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
19977 if test $ac_cv_type_request_sense = yes; then
19978
19979 cat >>confdefs.h <<_ACEOF
19980 #define HAVE_REQUEST_SENSE 1
19981 _ACEOF
19982
19983
19984 fi
19985
19986
19987 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
19988 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
19989 if test "${ac_cv_member_struct_ff_effect_direction+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 #ifdef HAVE_LINUX_INPUT_H
19999 #include <linux/input.h>
20000 #endif
20001
20002 int
20003 main ()
20004 {
20005 static struct ff_effect ac_aggr;
20006 if (ac_aggr.direction)
20007 return 0;
20008   ;
20009   return 0;
20010 }
20011 _ACEOF
20012 rm -f conftest.$ac_objext
20013 if { (ac_try="$ac_compile"
20014 case "(($ac_try" in
20015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016   *) ac_try_echo=$ac_try;;
20017 esac
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019   (eval "$ac_compile") 2>conftest.er1
20020   ac_status=$?
20021   grep -v '^ *+' conftest.er1 >conftest.err
20022   rm -f conftest.er1
20023   cat conftest.err >&5
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); } &&
20026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20027   { (case "(($ac_try" in
20028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029   *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032   (eval "$ac_try") 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; } &&
20036          { ac_try='test -s conftest.$ac_objext'
20037   { (case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042   (eval "$ac_try") 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); }; }; then
20046   ac_cv_member_struct_ff_effect_direction=yes
20047 else
20048   echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051         cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h.  */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h.  */
20057 #ifdef HAVE_LINUX_INPUT_H
20058 #include <linux/input.h>
20059 #endif
20060
20061 int
20062 main ()
20063 {
20064 static struct ff_effect ac_aggr;
20065 if (sizeof ac_aggr.direction)
20066 return 0;
20067   ;
20068   return 0;
20069 }
20070 _ACEOF
20071 rm -f conftest.$ac_objext
20072 if { (ac_try="$ac_compile"
20073 case "(($ac_try" in
20074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075   *) ac_try_echo=$ac_try;;
20076 esac
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078   (eval "$ac_compile") 2>conftest.er1
20079   ac_status=$?
20080   grep -v '^ *+' conftest.er1 >conftest.err
20081   rm -f conftest.er1
20082   cat conftest.err >&5
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); } &&
20085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20086   { (case "(($ac_try" in
20087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088   *) ac_try_echo=$ac_try;;
20089 esac
20090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091   (eval "$ac_try") 2>&5
20092   ac_status=$?
20093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094   (exit $ac_status); }; } &&
20095          { ac_try='test -s conftest.$ac_objext'
20096   { (case "(($ac_try" in
20097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098   *) ac_try_echo=$ac_try;;
20099 esac
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101   (eval "$ac_try") 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); }; }; then
20105   ac_cv_member_struct_ff_effect_direction=yes
20106 else
20107   echo "$as_me: failed program was:" >&5
20108 sed 's/^/| /' conftest.$ac_ext >&5
20109
20110         ac_cv_member_struct_ff_effect_direction=no
20111 fi
20112
20113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20114 fi
20115
20116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20117 fi
20118 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20119 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
20120 if test $ac_cv_member_struct_ff_effect_direction = yes; then
20121
20122 cat >>confdefs.h <<_ACEOF
20123 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20124 _ACEOF
20125
20126
20127 fi
20128
20129
20130 { echo "$as_me:$LINENO: checking for sigaddset" >&5
20131 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
20132 if test "${wine_cv_have_sigaddset+set}" = set; then
20133   echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135   cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h.  */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h.  */
20141 #include <signal.h>
20142 int
20143 main ()
20144 {
20145 sigset_t set; sigaddset(&set,SIGTERM);
20146   ;
20147   return 0;
20148 }
20149 _ACEOF
20150 rm -f conftest.$ac_objext conftest$ac_exeext
20151 if { (ac_try="$ac_link"
20152 case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157   (eval "$ac_link") 2>conftest.er1
20158   ac_status=$?
20159   grep -v '^ *+' conftest.er1 >conftest.err
20160   rm -f conftest.er1
20161   cat conftest.err >&5
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); } &&
20164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20165   { (case "(($ac_try" in
20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167   *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170   (eval "$ac_try") 2>&5
20171   ac_status=$?
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); }; } &&
20174          { ac_try='test -s conftest$ac_exeext'
20175   { (case "(($ac_try" in
20176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177   *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180   (eval "$ac_try") 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; }; then
20184   wine_cv_have_sigaddset=yes
20185 else
20186   echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20188
20189         wine_cv_have_sigaddset=no
20190 fi
20191
20192 rm -f core conftest.err conftest.$ac_objext \
20193       conftest$ac_exeext conftest.$ac_ext
20194 fi
20195 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20196 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
20197 if test "$wine_cv_have_sigaddset" = "yes"
20198 then
20199
20200 cat >>confdefs.h <<\_ACEOF
20201 #define HAVE_SIGADDSET 1
20202 _ACEOF
20203
20204 fi
20205
20206
20207 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20208 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
20209 if test "${wine_cv_linux_gethostbyname_r_6+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
20219 #include <netdb.h>
20220
20221 int
20222 main ()
20223 {
20224
20225     char *name=NULL;
20226     struct hostent he;
20227     struct hostent *result;
20228     char *buf=NULL;
20229     int bufsize=0;
20230     int res,errnr;
20231     char *addr=NULL;
20232     int addrlen=0;
20233     int addrtype=0;
20234     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20235     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
20236
20237   ;
20238   return 0;
20239 }
20240 _ACEOF
20241 rm -f conftest.$ac_objext conftest$ac_exeext
20242 if { (ac_try="$ac_link"
20243 case "(($ac_try" in
20244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245   *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248   (eval "$ac_link") 2>conftest.er1
20249   ac_status=$?
20250   grep -v '^ *+' conftest.er1 >conftest.err
20251   rm -f conftest.er1
20252   cat conftest.err >&5
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); } &&
20255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20256   { (case "(($ac_try" in
20257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258   *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261   (eval "$ac_try") 2>&5
20262   ac_status=$?
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); }; } &&
20265          { ac_try='test -s conftest$ac_exeext'
20266   { (case "(($ac_try" in
20267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268   *) ac_try_echo=$ac_try;;
20269 esac
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271   (eval "$ac_try") 2>&5
20272   ac_status=$?
20273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274   (exit $ac_status); }; }; then
20275   wine_cv_linux_gethostbyname_r_6=yes
20276 else
20277   echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20279
20280         wine_cv_linux_gethostbyname_r_6=no
20281
20282 fi
20283
20284 rm -f core conftest.err conftest.$ac_objext \
20285       conftest$ac_exeext conftest.$ac_ext
20286
20287 fi
20288 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20289 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
20290    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20291    then
20292
20293 cat >>confdefs.h <<\_ACEOF
20294 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
20295 _ACEOF
20296
20297    fi
20298
20299 if test "$ac_cv_header_linux_joystick_h" = "yes"
20300 then
20301    { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20302 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
20303 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20304   echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306   cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h.  */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h.  */
20312
20313         #include <sys/ioctl.h>
20314         #include <linux/joystick.h>
20315
20316         struct js_event blub;
20317         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20318         #error "no 2.2 header"
20319         #endif
20320
20321 int
20322 main ()
20323 {
20324 /*empty*/
20325   ;
20326   return 0;
20327 }
20328 _ACEOF
20329 rm -f conftest.$ac_objext
20330 if { (ac_try="$ac_compile"
20331 case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336   (eval "$ac_compile") 2>conftest.er1
20337   ac_status=$?
20338   grep -v '^ *+' conftest.er1 >conftest.err
20339   rm -f conftest.er1
20340   cat conftest.err >&5
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); } &&
20343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20344   { (case "(($ac_try" in
20345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20346   *) ac_try_echo=$ac_try;;
20347 esac
20348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20349   (eval "$ac_try") 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); }; } &&
20353          { ac_try='test -s conftest.$ac_objext'
20354   { (case "(($ac_try" in
20355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356   *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359   (eval "$ac_try") 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); }; }; then
20363   wine_cv_linux_joystick_22_api=yes
20364 else
20365   echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368         wine_cv_linux_joystick_22_api=no
20369 fi
20370
20371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372
20373 fi
20374 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20375 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
20376    if test "$wine_cv_linux_joystick_22_api" = "yes"
20377    then
20378
20379 cat >>confdefs.h <<\_ACEOF
20380 #define HAVE_LINUX_22_JOYSTICK_API 1
20381 _ACEOF
20382
20383    fi
20384 fi
20385
20386
20387 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20388 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
20389 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
20390   echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392   cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h.  */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h.  */
20398 #include <sys/types.h>
20399 #ifdef HAVE_SYS_PARAM_H
20400 # include <sys/param.h>
20401 #endif
20402 #ifdef HAVE_SYS_MOUNT_H
20403 # include <sys/mount.h>
20404 #endif
20405 #ifdef HAVE_SYS_VFS_H
20406 # include <sys/vfs.h>
20407 #endif
20408 #ifdef HAVE_SYS_STATFS_H
20409 # include <sys/statfs.h>
20410 #endif
20411
20412 int
20413 main ()
20414 {
20415 static struct statfs ac_aggr;
20416 if (ac_aggr.f_bfree)
20417 return 0;
20418   ;
20419   return 0;
20420 }
20421 _ACEOF
20422 rm -f conftest.$ac_objext
20423 if { (ac_try="$ac_compile"
20424 case "(($ac_try" in
20425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426   *) ac_try_echo=$ac_try;;
20427 esac
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429   (eval "$ac_compile") 2>conftest.er1
20430   ac_status=$?
20431   grep -v '^ *+' conftest.er1 >conftest.err
20432   rm -f conftest.er1
20433   cat conftest.err >&5
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } &&
20436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20437   { (case "(($ac_try" in
20438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439   *) ac_try_echo=$ac_try;;
20440 esac
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442   (eval "$ac_try") 2>&5
20443   ac_status=$?
20444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); }; } &&
20446          { ac_try='test -s conftest.$ac_objext'
20447   { (case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452   (eval "$ac_try") 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); }; }; then
20456   ac_cv_member_struct_statfs_f_bfree=yes
20457 else
20458   echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20460
20461         cat >conftest.$ac_ext <<_ACEOF
20462 /* confdefs.h.  */
20463 _ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h.  */
20467 #include <sys/types.h>
20468 #ifdef HAVE_SYS_PARAM_H
20469 # include <sys/param.h>
20470 #endif
20471 #ifdef HAVE_SYS_MOUNT_H
20472 # include <sys/mount.h>
20473 #endif
20474 #ifdef HAVE_SYS_VFS_H
20475 # include <sys/vfs.h>
20476 #endif
20477 #ifdef HAVE_SYS_STATFS_H
20478 # include <sys/statfs.h>
20479 #endif
20480
20481 int
20482 main ()
20483 {
20484 static struct statfs ac_aggr;
20485 if (sizeof ac_aggr.f_bfree)
20486 return 0;
20487   ;
20488   return 0;
20489 }
20490 _ACEOF
20491 rm -f conftest.$ac_objext
20492 if { (ac_try="$ac_compile"
20493 case "(($ac_try" in
20494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495   *) ac_try_echo=$ac_try;;
20496 esac
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498   (eval "$ac_compile") 2>conftest.er1
20499   ac_status=$?
20500   grep -v '^ *+' conftest.er1 >conftest.err
20501   rm -f conftest.er1
20502   cat conftest.err >&5
20503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504   (exit $ac_status); } &&
20505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20506   { (case "(($ac_try" in
20507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508   *) ac_try_echo=$ac_try;;
20509 esac
20510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511   (eval "$ac_try") 2>&5
20512   ac_status=$?
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); }; } &&
20515          { ac_try='test -s conftest.$ac_objext'
20516   { (case "(($ac_try" in
20517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518   *) ac_try_echo=$ac_try;;
20519 esac
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521   (eval "$ac_try") 2>&5
20522   ac_status=$?
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); }; }; then
20525   ac_cv_member_struct_statfs_f_bfree=yes
20526 else
20527   echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530         ac_cv_member_struct_statfs_f_bfree=no
20531 fi
20532
20533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20534 fi
20535
20536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20537 fi
20538 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
20539 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
20540 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
20541
20542 cat >>confdefs.h <<_ACEOF
20543 #define HAVE_STRUCT_STATFS_F_BFREE 1
20544 _ACEOF
20545
20546
20547 fi
20548 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
20549 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
20550 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
20551   echo $ECHO_N "(cached) $ECHO_C" >&6
20552 else
20553   cat >conftest.$ac_ext <<_ACEOF
20554 /* confdefs.h.  */
20555 _ACEOF
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h.  */
20559 #include <sys/types.h>
20560 #ifdef HAVE_SYS_PARAM_H
20561 # include <sys/param.h>
20562 #endif
20563 #ifdef HAVE_SYS_MOUNT_H
20564 # include <sys/mount.h>
20565 #endif
20566 #ifdef HAVE_SYS_VFS_H
20567 # include <sys/vfs.h>
20568 #endif
20569 #ifdef HAVE_SYS_STATFS_H
20570 # include <sys/statfs.h>
20571 #endif
20572
20573 int
20574 main ()
20575 {
20576 static struct statfs ac_aggr;
20577 if (ac_aggr.f_bavail)
20578 return 0;
20579   ;
20580   return 0;
20581 }
20582 _ACEOF
20583 rm -f conftest.$ac_objext
20584 if { (ac_try="$ac_compile"
20585 case "(($ac_try" in
20586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587   *) ac_try_echo=$ac_try;;
20588 esac
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590   (eval "$ac_compile") 2>conftest.er1
20591   ac_status=$?
20592   grep -v '^ *+' conftest.er1 >conftest.err
20593   rm -f conftest.er1
20594   cat conftest.err >&5
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); } &&
20597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20598   { (case "(($ac_try" in
20599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600   *) ac_try_echo=$ac_try;;
20601 esac
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603   (eval "$ac_try") 2>&5
20604   ac_status=$?
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); }; } &&
20607          { ac_try='test -s conftest.$ac_objext'
20608   { (case "(($ac_try" in
20609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610   *) ac_try_echo=$ac_try;;
20611 esac
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613   (eval "$ac_try") 2>&5
20614   ac_status=$?
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); }; }; then
20617   ac_cv_member_struct_statfs_f_bavail=yes
20618 else
20619   echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20621
20622         cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 #include <sys/types.h>
20629 #ifdef HAVE_SYS_PARAM_H
20630 # include <sys/param.h>
20631 #endif
20632 #ifdef HAVE_SYS_MOUNT_H
20633 # include <sys/mount.h>
20634 #endif
20635 #ifdef HAVE_SYS_VFS_H
20636 # include <sys/vfs.h>
20637 #endif
20638 #ifdef HAVE_SYS_STATFS_H
20639 # include <sys/statfs.h>
20640 #endif
20641
20642 int
20643 main ()
20644 {
20645 static struct statfs ac_aggr;
20646 if (sizeof ac_aggr.f_bavail)
20647 return 0;
20648   ;
20649   return 0;
20650 }
20651 _ACEOF
20652 rm -f conftest.$ac_objext
20653 if { (ac_try="$ac_compile"
20654 case "(($ac_try" in
20655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656   *) ac_try_echo=$ac_try;;
20657 esac
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659   (eval "$ac_compile") 2>conftest.er1
20660   ac_status=$?
20661   grep -v '^ *+' conftest.er1 >conftest.err
20662   rm -f conftest.er1
20663   cat conftest.err >&5
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); } &&
20666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20667   { (case "(($ac_try" in
20668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20669   *) ac_try_echo=$ac_try;;
20670 esac
20671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20672   (eval "$ac_try") 2>&5
20673   ac_status=$?
20674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675   (exit $ac_status); }; } &&
20676          { ac_try='test -s conftest.$ac_objext'
20677   { (case "(($ac_try" in
20678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679   *) ac_try_echo=$ac_try;;
20680 esac
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682   (eval "$ac_try") 2>&5
20683   ac_status=$?
20684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685   (exit $ac_status); }; }; then
20686   ac_cv_member_struct_statfs_f_bavail=yes
20687 else
20688   echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20690
20691         ac_cv_member_struct_statfs_f_bavail=no
20692 fi
20693
20694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20695 fi
20696
20697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20698 fi
20699 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
20700 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
20701 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
20702
20703 cat >>confdefs.h <<_ACEOF
20704 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
20705 _ACEOF
20706
20707
20708 fi
20709 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
20710 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
20711 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
20712   echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714   cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720 #include <sys/types.h>
20721 #ifdef HAVE_SYS_PARAM_H
20722 # include <sys/param.h>
20723 #endif
20724 #ifdef HAVE_SYS_MOUNT_H
20725 # include <sys/mount.h>
20726 #endif
20727 #ifdef HAVE_SYS_VFS_H
20728 # include <sys/vfs.h>
20729 #endif
20730 #ifdef HAVE_SYS_STATFS_H
20731 # include <sys/statfs.h>
20732 #endif
20733
20734 int
20735 main ()
20736 {
20737 static struct statfs ac_aggr;
20738 if (ac_aggr.f_frsize)
20739 return 0;
20740   ;
20741   return 0;
20742 }
20743 _ACEOF
20744 rm -f conftest.$ac_objext
20745 if { (ac_try="$ac_compile"
20746 case "(($ac_try" in
20747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748   *) ac_try_echo=$ac_try;;
20749 esac
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751   (eval "$ac_compile") 2>conftest.er1
20752   ac_status=$?
20753   grep -v '^ *+' conftest.er1 >conftest.err
20754   rm -f conftest.er1
20755   cat conftest.err >&5
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); } &&
20758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20759   { (case "(($ac_try" in
20760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761   *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764   (eval "$ac_try") 2>&5
20765   ac_status=$?
20766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767   (exit $ac_status); }; } &&
20768          { ac_try='test -s conftest.$ac_objext'
20769   { (case "(($ac_try" in
20770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771   *) ac_try_echo=$ac_try;;
20772 esac
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774   (eval "$ac_try") 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); }; }; then
20778   ac_cv_member_struct_statfs_f_frsize=yes
20779 else
20780   echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783         cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h.  */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h.  */
20789 #include <sys/types.h>
20790 #ifdef HAVE_SYS_PARAM_H
20791 # include <sys/param.h>
20792 #endif
20793 #ifdef HAVE_SYS_MOUNT_H
20794 # include <sys/mount.h>
20795 #endif
20796 #ifdef HAVE_SYS_VFS_H
20797 # include <sys/vfs.h>
20798 #endif
20799 #ifdef HAVE_SYS_STATFS_H
20800 # include <sys/statfs.h>
20801 #endif
20802
20803 int
20804 main ()
20805 {
20806 static struct statfs ac_aggr;
20807 if (sizeof ac_aggr.f_frsize)
20808 return 0;
20809   ;
20810   return 0;
20811 }
20812 _ACEOF
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
20815 case "(($ac_try" in
20816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817   *) ac_try_echo=$ac_try;;
20818 esac
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820   (eval "$ac_compile") 2>conftest.er1
20821   ac_status=$?
20822   grep -v '^ *+' conftest.er1 >conftest.err
20823   rm -f conftest.er1
20824   cat conftest.err >&5
20825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826   (exit $ac_status); } &&
20827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20828   { (case "(($ac_try" in
20829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830   *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833   (eval "$ac_try") 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); }; } &&
20837          { ac_try='test -s conftest.$ac_objext'
20838   { (case "(($ac_try" in
20839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840   *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843   (eval "$ac_try") 2>&5
20844   ac_status=$?
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); }; }; then
20847   ac_cv_member_struct_statfs_f_frsize=yes
20848 else
20849   echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20851
20852         ac_cv_member_struct_statfs_f_frsize=no
20853 fi
20854
20855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20856 fi
20857
20858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20859 fi
20860 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
20861 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
20862 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
20863
20864 cat >>confdefs.h <<_ACEOF
20865 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
20866 _ACEOF
20867
20868
20869 fi
20870 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
20871 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
20872 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
20873   echo $ECHO_N "(cached) $ECHO_C" >&6
20874 else
20875   cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h.  */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h.  */
20881 #include <sys/types.h>
20882 #ifdef HAVE_SYS_PARAM_H
20883 # include <sys/param.h>
20884 #endif
20885 #ifdef HAVE_SYS_MOUNT_H
20886 # include <sys/mount.h>
20887 #endif
20888 #ifdef HAVE_SYS_VFS_H
20889 # include <sys/vfs.h>
20890 #endif
20891 #ifdef HAVE_SYS_STATFS_H
20892 # include <sys/statfs.h>
20893 #endif
20894
20895 int
20896 main ()
20897 {
20898 static struct statfs ac_aggr;
20899 if (ac_aggr.f_ffree)
20900 return 0;
20901   ;
20902   return 0;
20903 }
20904 _ACEOF
20905 rm -f conftest.$ac_objext
20906 if { (ac_try="$ac_compile"
20907 case "(($ac_try" in
20908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909   *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912   (eval "$ac_compile") 2>conftest.er1
20913   ac_status=$?
20914   grep -v '^ *+' conftest.er1 >conftest.err
20915   rm -f conftest.er1
20916   cat conftest.err >&5
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } &&
20919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20920   { (case "(($ac_try" in
20921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922   *) ac_try_echo=$ac_try;;
20923 esac
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925   (eval "$ac_try") 2>&5
20926   ac_status=$?
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); }; } &&
20929          { ac_try='test -s conftest.$ac_objext'
20930   { (case "(($ac_try" in
20931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932   *) ac_try_echo=$ac_try;;
20933 esac
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935   (eval "$ac_try") 2>&5
20936   ac_status=$?
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); }; }; then
20939   ac_cv_member_struct_statfs_f_ffree=yes
20940 else
20941   echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20943
20944         cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950 #include <sys/types.h>
20951 #ifdef HAVE_SYS_PARAM_H
20952 # include <sys/param.h>
20953 #endif
20954 #ifdef HAVE_SYS_MOUNT_H
20955 # include <sys/mount.h>
20956 #endif
20957 #ifdef HAVE_SYS_VFS_H
20958 # include <sys/vfs.h>
20959 #endif
20960 #ifdef HAVE_SYS_STATFS_H
20961 # include <sys/statfs.h>
20962 #endif
20963
20964 int
20965 main ()
20966 {
20967 static struct statfs ac_aggr;
20968 if (sizeof ac_aggr.f_ffree)
20969 return 0;
20970   ;
20971   return 0;
20972 }
20973 _ACEOF
20974 rm -f conftest.$ac_objext
20975 if { (ac_try="$ac_compile"
20976 case "(($ac_try" in
20977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978   *) ac_try_echo=$ac_try;;
20979 esac
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981   (eval "$ac_compile") 2>conftest.er1
20982   ac_status=$?
20983   grep -v '^ *+' conftest.er1 >conftest.err
20984   rm -f conftest.er1
20985   cat conftest.err >&5
20986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987   (exit $ac_status); } &&
20988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20989   { (case "(($ac_try" in
20990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991   *) ac_try_echo=$ac_try;;
20992 esac
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994   (eval "$ac_try") 2>&5
20995   ac_status=$?
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); }; } &&
20998          { ac_try='test -s conftest.$ac_objext'
20999   { (case "(($ac_try" in
21000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001   *) ac_try_echo=$ac_try;;
21002 esac
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004   (eval "$ac_try") 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; }; then
21008   ac_cv_member_struct_statfs_f_ffree=yes
21009 else
21010   echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21012
21013         ac_cv_member_struct_statfs_f_ffree=no
21014 fi
21015
21016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 fi
21018
21019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21020 fi
21021 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21022 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
21023 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21024
21025 cat >>confdefs.h <<_ACEOF
21026 #define HAVE_STRUCT_STATFS_F_FFREE 1
21027 _ACEOF
21028
21029
21030 fi
21031 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21032 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
21033 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21034   echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036   cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h.  */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h.  */
21042 #include <sys/types.h>
21043 #ifdef HAVE_SYS_PARAM_H
21044 # include <sys/param.h>
21045 #endif
21046 #ifdef HAVE_SYS_MOUNT_H
21047 # include <sys/mount.h>
21048 #endif
21049 #ifdef HAVE_SYS_VFS_H
21050 # include <sys/vfs.h>
21051 #endif
21052 #ifdef HAVE_SYS_STATFS_H
21053 # include <sys/statfs.h>
21054 #endif
21055
21056 int
21057 main ()
21058 {
21059 static struct statfs ac_aggr;
21060 if (ac_aggr.f_favail)
21061 return 0;
21062   ;
21063   return 0;
21064 }
21065 _ACEOF
21066 rm -f conftest.$ac_objext
21067 if { (ac_try="$ac_compile"
21068 case "(($ac_try" in
21069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070   *) ac_try_echo=$ac_try;;
21071 esac
21072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073   (eval "$ac_compile") 2>conftest.er1
21074   ac_status=$?
21075   grep -v '^ *+' conftest.er1 >conftest.err
21076   rm -f conftest.er1
21077   cat conftest.err >&5
21078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079   (exit $ac_status); } &&
21080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21081   { (case "(($ac_try" in
21082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083   *) ac_try_echo=$ac_try;;
21084 esac
21085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086   (eval "$ac_try") 2>&5
21087   ac_status=$?
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); }; } &&
21090          { ac_try='test -s conftest.$ac_objext'
21091   { (case "(($ac_try" in
21092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093   *) ac_try_echo=$ac_try;;
21094 esac
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096   (eval "$ac_try") 2>&5
21097   ac_status=$?
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); }; }; then
21100   ac_cv_member_struct_statfs_f_favail=yes
21101 else
21102   echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21104
21105         cat >conftest.$ac_ext <<_ACEOF
21106 /* confdefs.h.  */
21107 _ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h.  */
21111 #include <sys/types.h>
21112 #ifdef HAVE_SYS_PARAM_H
21113 # include <sys/param.h>
21114 #endif
21115 #ifdef HAVE_SYS_MOUNT_H
21116 # include <sys/mount.h>
21117 #endif
21118 #ifdef HAVE_SYS_VFS_H
21119 # include <sys/vfs.h>
21120 #endif
21121 #ifdef HAVE_SYS_STATFS_H
21122 # include <sys/statfs.h>
21123 #endif
21124
21125 int
21126 main ()
21127 {
21128 static struct statfs ac_aggr;
21129 if (sizeof ac_aggr.f_favail)
21130 return 0;
21131   ;
21132   return 0;
21133 }
21134 _ACEOF
21135 rm -f conftest.$ac_objext
21136 if { (ac_try="$ac_compile"
21137 case "(($ac_try" in
21138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139   *) ac_try_echo=$ac_try;;
21140 esac
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142   (eval "$ac_compile") 2>conftest.er1
21143   ac_status=$?
21144   grep -v '^ *+' conftest.er1 >conftest.err
21145   rm -f conftest.er1
21146   cat conftest.err >&5
21147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148   (exit $ac_status); } &&
21149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21150   { (case "(($ac_try" in
21151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152   *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155   (eval "$ac_try") 2>&5
21156   ac_status=$?
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); }; } &&
21159          { ac_try='test -s conftest.$ac_objext'
21160   { (case "(($ac_try" in
21161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162   *) ac_try_echo=$ac_try;;
21163 esac
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165   (eval "$ac_try") 2>&5
21166   ac_status=$?
21167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); }; }; then
21169   ac_cv_member_struct_statfs_f_favail=yes
21170 else
21171   echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.$ac_ext >&5
21173
21174         ac_cv_member_struct_statfs_f_favail=no
21175 fi
21176
21177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21178 fi
21179
21180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21181 fi
21182 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21183 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
21184 if test $ac_cv_member_struct_statfs_f_favail = yes; then
21185
21186 cat >>confdefs.h <<_ACEOF
21187 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
21188 _ACEOF
21189
21190
21191 fi
21192 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21193 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
21194 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21195   echo $ECHO_N "(cached) $ECHO_C" >&6
21196 else
21197   cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 #include <sys/types.h>
21204 #ifdef HAVE_SYS_PARAM_H
21205 # include <sys/param.h>
21206 #endif
21207 #ifdef HAVE_SYS_MOUNT_H
21208 # include <sys/mount.h>
21209 #endif
21210 #ifdef HAVE_SYS_VFS_H
21211 # include <sys/vfs.h>
21212 #endif
21213 #ifdef HAVE_SYS_STATFS_H
21214 # include <sys/statfs.h>
21215 #endif
21216
21217 int
21218 main ()
21219 {
21220 static struct statfs ac_aggr;
21221 if (ac_aggr.f_namelen)
21222 return 0;
21223   ;
21224   return 0;
21225 }
21226 _ACEOF
21227 rm -f conftest.$ac_objext
21228 if { (ac_try="$ac_compile"
21229 case "(($ac_try" in
21230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231   *) ac_try_echo=$ac_try;;
21232 esac
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234   (eval "$ac_compile") 2>conftest.er1
21235   ac_status=$?
21236   grep -v '^ *+' conftest.er1 >conftest.err
21237   rm -f conftest.er1
21238   cat conftest.err >&5
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); } &&
21241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21242   { (case "(($ac_try" in
21243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244   *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247   (eval "$ac_try") 2>&5
21248   ac_status=$?
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); }; } &&
21251          { ac_try='test -s conftest.$ac_objext'
21252   { (case "(($ac_try" in
21253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254   *) ac_try_echo=$ac_try;;
21255 esac
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257   (eval "$ac_try") 2>&5
21258   ac_status=$?
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); }; }; then
21261   ac_cv_member_struct_statfs_f_namelen=yes
21262 else
21263   echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21265
21266         cat >conftest.$ac_ext <<_ACEOF
21267 /* confdefs.h.  */
21268 _ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h.  */
21272 #include <sys/types.h>
21273 #ifdef HAVE_SYS_PARAM_H
21274 # include <sys/param.h>
21275 #endif
21276 #ifdef HAVE_SYS_MOUNT_H
21277 # include <sys/mount.h>
21278 #endif
21279 #ifdef HAVE_SYS_VFS_H
21280 # include <sys/vfs.h>
21281 #endif
21282 #ifdef HAVE_SYS_STATFS_H
21283 # include <sys/statfs.h>
21284 #endif
21285
21286 int
21287 main ()
21288 {
21289 static struct statfs ac_aggr;
21290 if (sizeof ac_aggr.f_namelen)
21291 return 0;
21292   ;
21293   return 0;
21294 }
21295 _ACEOF
21296 rm -f conftest.$ac_objext
21297 if { (ac_try="$ac_compile"
21298 case "(($ac_try" in
21299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300   *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303   (eval "$ac_compile") 2>conftest.er1
21304   ac_status=$?
21305   grep -v '^ *+' conftest.er1 >conftest.err
21306   rm -f conftest.er1
21307   cat conftest.err >&5
21308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309   (exit $ac_status); } &&
21310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21311   { (case "(($ac_try" in
21312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313   *) ac_try_echo=$ac_try;;
21314 esac
21315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21316   (eval "$ac_try") 2>&5
21317   ac_status=$?
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); }; } &&
21320          { ac_try='test -s conftest.$ac_objext'
21321   { (case "(($ac_try" in
21322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323   *) ac_try_echo=$ac_try;;
21324 esac
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326   (eval "$ac_try") 2>&5
21327   ac_status=$?
21328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); }; }; then
21330   ac_cv_member_struct_statfs_f_namelen=yes
21331 else
21332   echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21334
21335         ac_cv_member_struct_statfs_f_namelen=no
21336 fi
21337
21338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21339 fi
21340
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342 fi
21343 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21344 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
21345 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21346
21347 cat >>confdefs.h <<_ACEOF
21348 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
21349 _ACEOF
21350
21351
21352 fi
21353
21354
21355 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21356 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
21357 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21358   echo $ECHO_N "(cached) $ECHO_C" >&6
21359 else
21360   cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h.  */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h.  */
21366 #ifdef HAVE_SYS_STATVFS_H
21367 #include <sys/statvfs.h>
21368 #endif
21369
21370 int
21371 main ()
21372 {
21373 static struct statvfs ac_aggr;
21374 if (ac_aggr.f_blocks)
21375 return 0;
21376   ;
21377   return 0;
21378 }
21379 _ACEOF
21380 rm -f conftest.$ac_objext
21381 if { (ac_try="$ac_compile"
21382 case "(($ac_try" in
21383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384   *) ac_try_echo=$ac_try;;
21385 esac
21386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21387   (eval "$ac_compile") 2>conftest.er1
21388   ac_status=$?
21389   grep -v '^ *+' conftest.er1 >conftest.err
21390   rm -f conftest.er1
21391   cat conftest.err >&5
21392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393   (exit $ac_status); } &&
21394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21395   { (case "(($ac_try" in
21396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397   *) ac_try_echo=$ac_try;;
21398 esac
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400   (eval "$ac_try") 2>&5
21401   ac_status=$?
21402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); }; } &&
21404          { ac_try='test -s conftest.$ac_objext'
21405   { (case "(($ac_try" in
21406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407   *) ac_try_echo=$ac_try;;
21408 esac
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410   (eval "$ac_try") 2>&5
21411   ac_status=$?
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); }; }; then
21414   ac_cv_member_struct_statvfs_f_blocks=yes
21415 else
21416   echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21418
21419         cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h.  */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h.  */
21425 #ifdef HAVE_SYS_STATVFS_H
21426 #include <sys/statvfs.h>
21427 #endif
21428
21429 int
21430 main ()
21431 {
21432 static struct statvfs ac_aggr;
21433 if (sizeof ac_aggr.f_blocks)
21434 return 0;
21435   ;
21436   return 0;
21437 }
21438 _ACEOF
21439 rm -f conftest.$ac_objext
21440 if { (ac_try="$ac_compile"
21441 case "(($ac_try" in
21442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443   *) ac_try_echo=$ac_try;;
21444 esac
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446   (eval "$ac_compile") 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } &&
21453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21454   { (case "(($ac_try" in
21455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456   *) ac_try_echo=$ac_try;;
21457 esac
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459   (eval "$ac_try") 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); }; } &&
21463          { ac_try='test -s conftest.$ac_objext'
21464   { (case "(($ac_try" in
21465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466   *) ac_try_echo=$ac_try;;
21467 esac
21468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21469   (eval "$ac_try") 2>&5
21470   ac_status=$?
21471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472   (exit $ac_status); }; }; then
21473   ac_cv_member_struct_statvfs_f_blocks=yes
21474 else
21475   echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21477
21478         ac_cv_member_struct_statvfs_f_blocks=no
21479 fi
21480
21481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21482 fi
21483
21484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485 fi
21486 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
21487 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
21488 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
21489
21490 cat >>confdefs.h <<_ACEOF
21491 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
21492 _ACEOF
21493
21494
21495 fi
21496
21497
21498 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
21499 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
21500 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
21501   echo $ECHO_N "(cached) $ECHO_C" >&6
21502 else
21503   cat >conftest.$ac_ext <<_ACEOF
21504 /* confdefs.h.  */
21505 _ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h.  */
21509 #include <sys/types.h>
21510 #ifdef HAVE_SYS_SOCKET_H
21511 # include <sys/socket.h>
21512 #endif
21513 #ifdef HAVE_SYS_UN_H
21514 # include <sys/un.h>
21515 #endif
21516
21517 int
21518 main ()
21519 {
21520 static struct msghdr ac_aggr;
21521 if (ac_aggr.msg_accrights)
21522 return 0;
21523   ;
21524   return 0;
21525 }
21526 _ACEOF
21527 rm -f conftest.$ac_objext
21528 if { (ac_try="$ac_compile"
21529 case "(($ac_try" in
21530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531   *) ac_try_echo=$ac_try;;
21532 esac
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534   (eval "$ac_compile") 2>conftest.er1
21535   ac_status=$?
21536   grep -v '^ *+' conftest.er1 >conftest.err
21537   rm -f conftest.er1
21538   cat conftest.err >&5
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); } &&
21541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21542   { (case "(($ac_try" in
21543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544   *) ac_try_echo=$ac_try;;
21545 esac
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547   (eval "$ac_try") 2>&5
21548   ac_status=$?
21549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550   (exit $ac_status); }; } &&
21551          { ac_try='test -s conftest.$ac_objext'
21552   { (case "(($ac_try" in
21553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554   *) ac_try_echo=$ac_try;;
21555 esac
21556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21557   (eval "$ac_try") 2>&5
21558   ac_status=$?
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); }; }; then
21561   ac_cv_member_struct_msghdr_msg_accrights=yes
21562 else
21563   echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21565
21566         cat >conftest.$ac_ext <<_ACEOF
21567 /* confdefs.h.  */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h.  */
21572 #include <sys/types.h>
21573 #ifdef HAVE_SYS_SOCKET_H
21574 # include <sys/socket.h>
21575 #endif
21576 #ifdef HAVE_SYS_UN_H
21577 # include <sys/un.h>
21578 #endif
21579
21580 int
21581 main ()
21582 {
21583 static struct msghdr ac_aggr;
21584 if (sizeof ac_aggr.msg_accrights)
21585 return 0;
21586   ;
21587   return 0;
21588 }
21589 _ACEOF
21590 rm -f conftest.$ac_objext
21591 if { (ac_try="$ac_compile"
21592 case "(($ac_try" in
21593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594   *) ac_try_echo=$ac_try;;
21595 esac
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597   (eval "$ac_compile") 2>conftest.er1
21598   ac_status=$?
21599   grep -v '^ *+' conftest.er1 >conftest.err
21600   rm -f conftest.er1
21601   cat conftest.err >&5
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); } &&
21604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21605   { (case "(($ac_try" in
21606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607   *) ac_try_echo=$ac_try;;
21608 esac
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610   (eval "$ac_try") 2>&5
21611   ac_status=$?
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); }; } &&
21614          { ac_try='test -s conftest.$ac_objext'
21615   { (case "(($ac_try" in
21616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21617   *) ac_try_echo=$ac_try;;
21618 esac
21619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21620   (eval "$ac_try") 2>&5
21621   ac_status=$?
21622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623   (exit $ac_status); }; }; then
21624   ac_cv_member_struct_msghdr_msg_accrights=yes
21625 else
21626   echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629         ac_cv_member_struct_msghdr_msg_accrights=no
21630 fi
21631
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633 fi
21634
21635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636 fi
21637 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
21638 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
21639 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
21640
21641 cat >>confdefs.h <<_ACEOF
21642 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
21643 _ACEOF
21644
21645
21646 fi
21647 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
21648 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
21649 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
21650   echo $ECHO_N "(cached) $ECHO_C" >&6
21651 else
21652   cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h.  */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h.  */
21658 #include <sys/types.h>
21659 #ifdef HAVE_SYS_SOCKET_H
21660 # include <sys/socket.h>
21661 #endif
21662 #ifdef HAVE_SYS_UN_H
21663 # include <sys/un.h>
21664 #endif
21665
21666 int
21667 main ()
21668 {
21669 static struct sockaddr ac_aggr;
21670 if (ac_aggr.sa_len)
21671 return 0;
21672   ;
21673   return 0;
21674 }
21675 _ACEOF
21676 rm -f conftest.$ac_objext
21677 if { (ac_try="$ac_compile"
21678 case "(($ac_try" in
21679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680   *) ac_try_echo=$ac_try;;
21681 esac
21682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21683   (eval "$ac_compile") 2>conftest.er1
21684   ac_status=$?
21685   grep -v '^ *+' conftest.er1 >conftest.err
21686   rm -f conftest.er1
21687   cat conftest.err >&5
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); } &&
21690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21691   { (case "(($ac_try" in
21692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693   *) ac_try_echo=$ac_try;;
21694 esac
21695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21696   (eval "$ac_try") 2>&5
21697   ac_status=$?
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); }; } &&
21700          { ac_try='test -s conftest.$ac_objext'
21701   { (case "(($ac_try" in
21702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703   *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706   (eval "$ac_try") 2>&5
21707   ac_status=$?
21708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709   (exit $ac_status); }; }; then
21710   ac_cv_member_struct_sockaddr_sa_len=yes
21711 else
21712   echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21714
21715         cat >conftest.$ac_ext <<_ACEOF
21716 /* confdefs.h.  */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h.  */
21721 #include <sys/types.h>
21722 #ifdef HAVE_SYS_SOCKET_H
21723 # include <sys/socket.h>
21724 #endif
21725 #ifdef HAVE_SYS_UN_H
21726 # include <sys/un.h>
21727 #endif
21728
21729 int
21730 main ()
21731 {
21732 static struct sockaddr ac_aggr;
21733 if (sizeof ac_aggr.sa_len)
21734 return 0;
21735   ;
21736   return 0;
21737 }
21738 _ACEOF
21739 rm -f conftest.$ac_objext
21740 if { (ac_try="$ac_compile"
21741 case "(($ac_try" in
21742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743   *) ac_try_echo=$ac_try;;
21744 esac
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746   (eval "$ac_compile") 2>conftest.er1
21747   ac_status=$?
21748   grep -v '^ *+' conftest.er1 >conftest.err
21749   rm -f conftest.er1
21750   cat conftest.err >&5
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); } &&
21753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21754   { (case "(($ac_try" in
21755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756   *) ac_try_echo=$ac_try;;
21757 esac
21758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759   (eval "$ac_try") 2>&5
21760   ac_status=$?
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); }; } &&
21763          { ac_try='test -s conftest.$ac_objext'
21764   { (case "(($ac_try" in
21765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766   *) ac_try_echo=$ac_try;;
21767 esac
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769   (eval "$ac_try") 2>&5
21770   ac_status=$?
21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); }; }; then
21773   ac_cv_member_struct_sockaddr_sa_len=yes
21774 else
21775   echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778         ac_cv_member_struct_sockaddr_sa_len=no
21779 fi
21780
21781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21782 fi
21783
21784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785 fi
21786 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
21787 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
21788 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
21789
21790 cat >>confdefs.h <<_ACEOF
21791 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
21792 _ACEOF
21793
21794
21795 fi
21796 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
21797 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
21798 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
21799   echo $ECHO_N "(cached) $ECHO_C" >&6
21800 else
21801   cat >conftest.$ac_ext <<_ACEOF
21802 /* confdefs.h.  */
21803 _ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h.  */
21807 #include <sys/types.h>
21808 #ifdef HAVE_SYS_SOCKET_H
21809 # include <sys/socket.h>
21810 #endif
21811 #ifdef HAVE_SYS_UN_H
21812 # include <sys/un.h>
21813 #endif
21814
21815 int
21816 main ()
21817 {
21818 static struct sockaddr_un ac_aggr;
21819 if (ac_aggr.sun_len)
21820 return 0;
21821   ;
21822   return 0;
21823 }
21824 _ACEOF
21825 rm -f conftest.$ac_objext
21826 if { (ac_try="$ac_compile"
21827 case "(($ac_try" in
21828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829   *) ac_try_echo=$ac_try;;
21830 esac
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832   (eval "$ac_compile") 2>conftest.er1
21833   ac_status=$?
21834   grep -v '^ *+' conftest.er1 >conftest.err
21835   rm -f conftest.er1
21836   cat conftest.err >&5
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); } &&
21839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21840   { (case "(($ac_try" in
21841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842   *) ac_try_echo=$ac_try;;
21843 esac
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845   (eval "$ac_try") 2>&5
21846   ac_status=$?
21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848   (exit $ac_status); }; } &&
21849          { ac_try='test -s conftest.$ac_objext'
21850   { (case "(($ac_try" in
21851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852   *) ac_try_echo=$ac_try;;
21853 esac
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855   (eval "$ac_try") 2>&5
21856   ac_status=$?
21857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858   (exit $ac_status); }; }; then
21859   ac_cv_member_struct_sockaddr_un_sun_len=yes
21860 else
21861   echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21863
21864         cat >conftest.$ac_ext <<_ACEOF
21865 /* confdefs.h.  */
21866 _ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h.  */
21870 #include <sys/types.h>
21871 #ifdef HAVE_SYS_SOCKET_H
21872 # include <sys/socket.h>
21873 #endif
21874 #ifdef HAVE_SYS_UN_H
21875 # include <sys/un.h>
21876 #endif
21877
21878 int
21879 main ()
21880 {
21881 static struct sockaddr_un ac_aggr;
21882 if (sizeof ac_aggr.sun_len)
21883 return 0;
21884   ;
21885   return 0;
21886 }
21887 _ACEOF
21888 rm -f conftest.$ac_objext
21889 if { (ac_try="$ac_compile"
21890 case "(($ac_try" in
21891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892   *) ac_try_echo=$ac_try;;
21893 esac
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895   (eval "$ac_compile") 2>conftest.er1
21896   ac_status=$?
21897   grep -v '^ *+' conftest.er1 >conftest.err
21898   rm -f conftest.er1
21899   cat conftest.err >&5
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); } &&
21902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21903   { (case "(($ac_try" in
21904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905   *) ac_try_echo=$ac_try;;
21906 esac
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908   (eval "$ac_try") 2>&5
21909   ac_status=$?
21910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911   (exit $ac_status); }; } &&
21912          { ac_try='test -s conftest.$ac_objext'
21913   { (case "(($ac_try" in
21914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21915   *) ac_try_echo=$ac_try;;
21916 esac
21917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21918   (eval "$ac_try") 2>&5
21919   ac_status=$?
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); }; }; then
21922   ac_cv_member_struct_sockaddr_un_sun_len=yes
21923 else
21924   echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21926
21927         ac_cv_member_struct_sockaddr_un_sun_len=no
21928 fi
21929
21930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931 fi
21932
21933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21934 fi
21935 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
21936 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
21937 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
21938
21939 cat >>confdefs.h <<_ACEOF
21940 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
21941 _ACEOF
21942
21943
21944 fi
21945
21946
21947 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
21948 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
21949 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
21950   echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21952   cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h.  */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h.  */
21958 #include <sys/types.h>
21959 #ifdef HAVE_SCSI_SG_H
21960 #include <scsi/sg.h>
21961 #endif
21962
21963 int
21964 main ()
21965 {
21966 static scsireq_t ac_aggr;
21967 if (ac_aggr.cmd)
21968 return 0;
21969   ;
21970   return 0;
21971 }
21972 _ACEOF
21973 rm -f conftest.$ac_objext
21974 if { (ac_try="$ac_compile"
21975 case "(($ac_try" in
21976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977   *) ac_try_echo=$ac_try;;
21978 esac
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980   (eval "$ac_compile") 2>conftest.er1
21981   ac_status=$?
21982   grep -v '^ *+' conftest.er1 >conftest.err
21983   rm -f conftest.er1
21984   cat conftest.err >&5
21985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986   (exit $ac_status); } &&
21987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21988   { (case "(($ac_try" in
21989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990   *) ac_try_echo=$ac_try;;
21991 esac
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993   (eval "$ac_try") 2>&5
21994   ac_status=$?
21995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); }; } &&
21997          { ac_try='test -s conftest.$ac_objext'
21998   { (case "(($ac_try" in
21999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000   *) ac_try_echo=$ac_try;;
22001 esac
22002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003   (eval "$ac_try") 2>&5
22004   ac_status=$?
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); }; }; then
22007   ac_cv_member_scsireq_t_cmd=yes
22008 else
22009   echo "$as_me: failed program was:" >&5
22010 sed 's/^/| /' conftest.$ac_ext >&5
22011
22012         cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h.  */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h.  */
22018 #include <sys/types.h>
22019 #ifdef HAVE_SCSI_SG_H
22020 #include <scsi/sg.h>
22021 #endif
22022
22023 int
22024 main ()
22025 {
22026 static scsireq_t ac_aggr;
22027 if (sizeof ac_aggr.cmd)
22028 return 0;
22029   ;
22030   return 0;
22031 }
22032 _ACEOF
22033 rm -f conftest.$ac_objext
22034 if { (ac_try="$ac_compile"
22035 case "(($ac_try" in
22036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037   *) ac_try_echo=$ac_try;;
22038 esac
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040   (eval "$ac_compile") 2>conftest.er1
22041   ac_status=$?
22042   grep -v '^ *+' conftest.er1 >conftest.err
22043   rm -f conftest.er1
22044   cat conftest.err >&5
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); } &&
22047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22048   { (case "(($ac_try" in
22049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050   *) ac_try_echo=$ac_try;;
22051 esac
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053   (eval "$ac_try") 2>&5
22054   ac_status=$?
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); }; } &&
22057          { ac_try='test -s conftest.$ac_objext'
22058   { (case "(($ac_try" in
22059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060   *) ac_try_echo=$ac_try;;
22061 esac
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063   (eval "$ac_try") 2>&5
22064   ac_status=$?
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); }; }; then
22067   ac_cv_member_scsireq_t_cmd=yes
22068 else
22069   echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072         ac_cv_member_scsireq_t_cmd=no
22073 fi
22074
22075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22076 fi
22077
22078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22079 fi
22080 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22081 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
22082 if test $ac_cv_member_scsireq_t_cmd = yes; then
22083
22084 cat >>confdefs.h <<_ACEOF
22085 #define HAVE_SCSIREQ_T_CMD 1
22086 _ACEOF
22087
22088
22089 fi
22090 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22091 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
22092 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22093   echo $ECHO_N "(cached) $ECHO_C" >&6
22094 else
22095   cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h.  */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h.  */
22101 #include <sys/types.h>
22102 #ifdef HAVE_SCSI_SG_H
22103 #include <scsi/sg.h>
22104 #endif
22105
22106 int
22107 main ()
22108 {
22109 static sg_io_hdr_t ac_aggr;
22110 if (ac_aggr.interface_id)
22111 return 0;
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 rm -f conftest.$ac_objext
22117 if { (ac_try="$ac_compile"
22118 case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123   (eval "$ac_compile") 2>conftest.er1
22124   ac_status=$?
22125   grep -v '^ *+' conftest.er1 >conftest.err
22126   rm -f conftest.er1
22127   cat conftest.err >&5
22128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129   (exit $ac_status); } &&
22130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22131   { (case "(($ac_try" in
22132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133   *) ac_try_echo=$ac_try;;
22134 esac
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136   (eval "$ac_try") 2>&5
22137   ac_status=$?
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); }; } &&
22140          { ac_try='test -s conftest.$ac_objext'
22141   { (case "(($ac_try" in
22142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22143   *) ac_try_echo=$ac_try;;
22144 esac
22145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22146   (eval "$ac_try") 2>&5
22147   ac_status=$?
22148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149   (exit $ac_status); }; }; then
22150   ac_cv_member_sg_io_hdr_t_interface_id=yes
22151 else
22152   echo "$as_me: failed program was:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22154
22155         cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h.  */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h.  */
22161 #include <sys/types.h>
22162 #ifdef HAVE_SCSI_SG_H
22163 #include <scsi/sg.h>
22164 #endif
22165
22166 int
22167 main ()
22168 {
22169 static sg_io_hdr_t ac_aggr;
22170 if (sizeof ac_aggr.interface_id)
22171 return 0;
22172   ;
22173   return 0;
22174 }
22175 _ACEOF
22176 rm -f conftest.$ac_objext
22177 if { (ac_try="$ac_compile"
22178 case "(($ac_try" in
22179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22180   *) ac_try_echo=$ac_try;;
22181 esac
22182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22183   (eval "$ac_compile") 2>conftest.er1
22184   ac_status=$?
22185   grep -v '^ *+' conftest.er1 >conftest.err
22186   rm -f conftest.er1
22187   cat conftest.err >&5
22188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189   (exit $ac_status); } &&
22190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22191   { (case "(($ac_try" in
22192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193   *) ac_try_echo=$ac_try;;
22194 esac
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196   (eval "$ac_try") 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); }; } &&
22200          { ac_try='test -s conftest.$ac_objext'
22201   { (case "(($ac_try" in
22202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22203   *) ac_try_echo=$ac_try;;
22204 esac
22205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22206   (eval "$ac_try") 2>&5
22207   ac_status=$?
22208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209   (exit $ac_status); }; }; then
22210   ac_cv_member_sg_io_hdr_t_interface_id=yes
22211 else
22212   echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22214
22215         ac_cv_member_sg_io_hdr_t_interface_id=no
22216 fi
22217
22218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22219 fi
22220
22221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22222 fi
22223 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22224 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
22225 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22226
22227 cat >>confdefs.h <<_ACEOF
22228 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22229 _ACEOF
22230
22231
22232 fi
22233
22234
22235 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22236 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
22237 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22238   echo $ECHO_N "(cached) $ECHO_C" >&6
22239 else
22240   cat >conftest.$ac_ext <<_ACEOF
22241 /* confdefs.h.  */
22242 _ACEOF
22243 cat confdefs.h >>conftest.$ac_ext
22244 cat >>conftest.$ac_ext <<_ACEOF
22245 /* end confdefs.h.  */
22246 #include <signal.h>
22247
22248 int
22249 main ()
22250 {
22251 static siginfo_t ac_aggr;
22252 if (ac_aggr.si_fd)
22253 return 0;
22254   ;
22255   return 0;
22256 }
22257 _ACEOF
22258 rm -f conftest.$ac_objext
22259 if { (ac_try="$ac_compile"
22260 case "(($ac_try" in
22261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262   *) ac_try_echo=$ac_try;;
22263 esac
22264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22265   (eval "$ac_compile") 2>conftest.er1
22266   ac_status=$?
22267   grep -v '^ *+' conftest.er1 >conftest.err
22268   rm -f conftest.er1
22269   cat conftest.err >&5
22270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271   (exit $ac_status); } &&
22272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22273   { (case "(($ac_try" in
22274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275   *) ac_try_echo=$ac_try;;
22276 esac
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278   (eval "$ac_try") 2>&5
22279   ac_status=$?
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); }; } &&
22282          { ac_try='test -s conftest.$ac_objext'
22283   { (case "(($ac_try" in
22284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22285   *) ac_try_echo=$ac_try;;
22286 esac
22287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22288   (eval "$ac_try") 2>&5
22289   ac_status=$?
22290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291   (exit $ac_status); }; }; then
22292   ac_cv_member_siginfo_t_si_fd=yes
22293 else
22294   echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22296
22297         cat >conftest.$ac_ext <<_ACEOF
22298 /* confdefs.h.  */
22299 _ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h.  */
22303 #include <signal.h>
22304
22305 int
22306 main ()
22307 {
22308 static siginfo_t ac_aggr;
22309 if (sizeof ac_aggr.si_fd)
22310 return 0;
22311   ;
22312   return 0;
22313 }
22314 _ACEOF
22315 rm -f conftest.$ac_objext
22316 if { (ac_try="$ac_compile"
22317 case "(($ac_try" in
22318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319   *) ac_try_echo=$ac_try;;
22320 esac
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322   (eval "$ac_compile") 2>conftest.er1
22323   ac_status=$?
22324   grep -v '^ *+' conftest.er1 >conftest.err
22325   rm -f conftest.er1
22326   cat conftest.err >&5
22327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328   (exit $ac_status); } &&
22329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22330   { (case "(($ac_try" in
22331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332   *) ac_try_echo=$ac_try;;
22333 esac
22334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22335   (eval "$ac_try") 2>&5
22336   ac_status=$?
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); }; } &&
22339          { ac_try='test -s conftest.$ac_objext'
22340   { (case "(($ac_try" in
22341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22342   *) ac_try_echo=$ac_try;;
22343 esac
22344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22345   (eval "$ac_try") 2>&5
22346   ac_status=$?
22347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348   (exit $ac_status); }; }; then
22349   ac_cv_member_siginfo_t_si_fd=yes
22350 else
22351   echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22353
22354         ac_cv_member_siginfo_t_si_fd=no
22355 fi
22356
22357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22358 fi
22359
22360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 fi
22362 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22363 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
22364 if test $ac_cv_member_siginfo_t_si_fd = yes; then
22365
22366 cat >>confdefs.h <<_ACEOF
22367 #define HAVE_SIGINFO_T_SI_FD 1
22368 _ACEOF
22369
22370
22371 fi
22372
22373
22374 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22375 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
22376 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22377   echo $ECHO_N "(cached) $ECHO_C" >&6
22378 else
22379   cat >conftest.$ac_ext <<_ACEOF
22380 /* confdefs.h.  */
22381 _ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h.  */
22385 #include <sys/types.h>
22386 #ifdef HAVE_SYS_MTIO_H
22387 #include <sys/mtio.h>
22388 #endif
22389
22390 int
22391 main ()
22392 {
22393 static struct mtget ac_aggr;
22394 if (ac_aggr.mt_blksiz)
22395 return 0;
22396   ;
22397   return 0;
22398 }
22399 _ACEOF
22400 rm -f conftest.$ac_objext
22401 if { (ac_try="$ac_compile"
22402 case "(($ac_try" in
22403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404   *) ac_try_echo=$ac_try;;
22405 esac
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407   (eval "$ac_compile") 2>conftest.er1
22408   ac_status=$?
22409   grep -v '^ *+' conftest.er1 >conftest.err
22410   rm -f conftest.er1
22411   cat conftest.err >&5
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); } &&
22414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22415   { (case "(($ac_try" in
22416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417   *) ac_try_echo=$ac_try;;
22418 esac
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420   (eval "$ac_try") 2>&5
22421   ac_status=$?
22422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); }; } &&
22424          { ac_try='test -s conftest.$ac_objext'
22425   { (case "(($ac_try" in
22426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427   *) ac_try_echo=$ac_try;;
22428 esac
22429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22430   (eval "$ac_try") 2>&5
22431   ac_status=$?
22432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433   (exit $ac_status); }; }; then
22434   ac_cv_member_struct_mtget_mt_blksiz=yes
22435 else
22436   echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22438
22439         cat >conftest.$ac_ext <<_ACEOF
22440 /* confdefs.h.  */
22441 _ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h.  */
22445 #include <sys/types.h>
22446 #ifdef HAVE_SYS_MTIO_H
22447 #include <sys/mtio.h>
22448 #endif
22449
22450 int
22451 main ()
22452 {
22453 static struct mtget ac_aggr;
22454 if (sizeof ac_aggr.mt_blksiz)
22455 return 0;
22456   ;
22457   return 0;
22458 }
22459 _ACEOF
22460 rm -f conftest.$ac_objext
22461 if { (ac_try="$ac_compile"
22462 case "(($ac_try" in
22463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464   *) ac_try_echo=$ac_try;;
22465 esac
22466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22467   (eval "$ac_compile") 2>conftest.er1
22468   ac_status=$?
22469   grep -v '^ *+' conftest.er1 >conftest.err
22470   rm -f conftest.er1
22471   cat conftest.err >&5
22472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473   (exit $ac_status); } &&
22474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22475   { (case "(($ac_try" in
22476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477   *) ac_try_echo=$ac_try;;
22478 esac
22479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480   (eval "$ac_try") 2>&5
22481   ac_status=$?
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); }; } &&
22484          { ac_try='test -s conftest.$ac_objext'
22485   { (case "(($ac_try" in
22486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487   *) ac_try_echo=$ac_try;;
22488 esac
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490   (eval "$ac_try") 2>&5
22491   ac_status=$?
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); }; }; then
22494   ac_cv_member_struct_mtget_mt_blksiz=yes
22495 else
22496   echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22498
22499         ac_cv_member_struct_mtget_mt_blksiz=no
22500 fi
22501
22502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22503 fi
22504
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22506 fi
22507 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
22508 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
22509 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
22510
22511 cat >>confdefs.h <<_ACEOF
22512 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
22513 _ACEOF
22514
22515
22516 fi
22517 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
22518 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
22519 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
22520   echo $ECHO_N "(cached) $ECHO_C" >&6
22521 else
22522   cat >conftest.$ac_ext <<_ACEOF
22523 /* confdefs.h.  */
22524 _ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h.  */
22528 #include <sys/types.h>
22529 #ifdef HAVE_SYS_MTIO_H
22530 #include <sys/mtio.h>
22531 #endif
22532
22533 int
22534 main ()
22535 {
22536 static struct mtget ac_aggr;
22537 if (ac_aggr.mt_gstat)
22538 return 0;
22539   ;
22540   return 0;
22541 }
22542 _ACEOF
22543 rm -f conftest.$ac_objext
22544 if { (ac_try="$ac_compile"
22545 case "(($ac_try" in
22546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547   *) ac_try_echo=$ac_try;;
22548 esac
22549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22550   (eval "$ac_compile") 2>conftest.er1
22551   ac_status=$?
22552   grep -v '^ *+' conftest.er1 >conftest.err
22553   rm -f conftest.er1
22554   cat conftest.err >&5
22555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556   (exit $ac_status); } &&
22557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22558   { (case "(($ac_try" in
22559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560   *) ac_try_echo=$ac_try;;
22561 esac
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563   (eval "$ac_try") 2>&5
22564   ac_status=$?
22565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566   (exit $ac_status); }; } &&
22567          { ac_try='test -s conftest.$ac_objext'
22568   { (case "(($ac_try" in
22569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570   *) ac_try_echo=$ac_try;;
22571 esac
22572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22573   (eval "$ac_try") 2>&5
22574   ac_status=$?
22575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576   (exit $ac_status); }; }; then
22577   ac_cv_member_struct_mtget_mt_gstat=yes
22578 else
22579   echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22581
22582         cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h.  */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h.  */
22588 #include <sys/types.h>
22589 #ifdef HAVE_SYS_MTIO_H
22590 #include <sys/mtio.h>
22591 #endif
22592
22593 int
22594 main ()
22595 {
22596 static struct mtget ac_aggr;
22597 if (sizeof ac_aggr.mt_gstat)
22598 return 0;
22599   ;
22600   return 0;
22601 }
22602 _ACEOF
22603 rm -f conftest.$ac_objext
22604 if { (ac_try="$ac_compile"
22605 case "(($ac_try" in
22606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607   *) ac_try_echo=$ac_try;;
22608 esac
22609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22610   (eval "$ac_compile") 2>conftest.er1
22611   ac_status=$?
22612   grep -v '^ *+' conftest.er1 >conftest.err
22613   rm -f conftest.er1
22614   cat conftest.err >&5
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); } &&
22617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22618   { (case "(($ac_try" in
22619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620   *) ac_try_echo=$ac_try;;
22621 esac
22622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623   (eval "$ac_try") 2>&5
22624   ac_status=$?
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); }; } &&
22627          { ac_try='test -s conftest.$ac_objext'
22628   { (case "(($ac_try" in
22629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22630   *) ac_try_echo=$ac_try;;
22631 esac
22632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22633   (eval "$ac_try") 2>&5
22634   ac_status=$?
22635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636   (exit $ac_status); }; }; then
22637   ac_cv_member_struct_mtget_mt_gstat=yes
22638 else
22639   echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22641
22642         ac_cv_member_struct_mtget_mt_gstat=no
22643 fi
22644
22645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22646 fi
22647
22648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22649 fi
22650 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
22651 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
22652 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
22653
22654 cat >>confdefs.h <<_ACEOF
22655 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
22656 _ACEOF
22657
22658
22659 fi
22660 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
22661 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
22662 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
22663   echo $ECHO_N "(cached) $ECHO_C" >&6
22664 else
22665   cat >conftest.$ac_ext <<_ACEOF
22666 /* confdefs.h.  */
22667 _ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h.  */
22671 #include <sys/types.h>
22672 #ifdef HAVE_SYS_MTIO_H
22673 #include <sys/mtio.h>
22674 #endif
22675
22676 int
22677 main ()
22678 {
22679 static struct mtget ac_aggr;
22680 if (ac_aggr.mt_blkno)
22681 return 0;
22682   ;
22683   return 0;
22684 }
22685 _ACEOF
22686 rm -f conftest.$ac_objext
22687 if { (ac_try="$ac_compile"
22688 case "(($ac_try" in
22689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690   *) ac_try_echo=$ac_try;;
22691 esac
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693   (eval "$ac_compile") 2>conftest.er1
22694   ac_status=$?
22695   grep -v '^ *+' conftest.er1 >conftest.err
22696   rm -f conftest.er1
22697   cat conftest.err >&5
22698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699   (exit $ac_status); } &&
22700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22701   { (case "(($ac_try" in
22702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22703   *) ac_try_echo=$ac_try;;
22704 esac
22705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22706   (eval "$ac_try") 2>&5
22707   ac_status=$?
22708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709   (exit $ac_status); }; } &&
22710          { ac_try='test -s conftest.$ac_objext'
22711   { (case "(($ac_try" in
22712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713   *) ac_try_echo=$ac_try;;
22714 esac
22715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22716   (eval "$ac_try") 2>&5
22717   ac_status=$?
22718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719   (exit $ac_status); }; }; then
22720   ac_cv_member_struct_mtget_mt_blkno=yes
22721 else
22722   echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22724
22725         cat >conftest.$ac_ext <<_ACEOF
22726 /* confdefs.h.  */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h.  */
22731 #include <sys/types.h>
22732 #ifdef HAVE_SYS_MTIO_H
22733 #include <sys/mtio.h>
22734 #endif
22735
22736 int
22737 main ()
22738 {
22739 static struct mtget ac_aggr;
22740 if (sizeof ac_aggr.mt_blkno)
22741 return 0;
22742   ;
22743   return 0;
22744 }
22745 _ACEOF
22746 rm -f conftest.$ac_objext
22747 if { (ac_try="$ac_compile"
22748 case "(($ac_try" in
22749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750   *) ac_try_echo=$ac_try;;
22751 esac
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753   (eval "$ac_compile") 2>conftest.er1
22754   ac_status=$?
22755   grep -v '^ *+' conftest.er1 >conftest.err
22756   rm -f conftest.er1
22757   cat conftest.err >&5
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); } &&
22760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22761   { (case "(($ac_try" in
22762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763   *) ac_try_echo=$ac_try;;
22764 esac
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766   (eval "$ac_try") 2>&5
22767   ac_status=$?
22768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); }; } &&
22770          { ac_try='test -s conftest.$ac_objext'
22771   { (case "(($ac_try" in
22772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773   *) ac_try_echo=$ac_try;;
22774 esac
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776   (eval "$ac_try") 2>&5
22777   ac_status=$?
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); }; }; then
22780   ac_cv_member_struct_mtget_mt_blkno=yes
22781 else
22782   echo "$as_me: failed program was:" >&5
22783 sed 's/^/| /' conftest.$ac_ext >&5
22784
22785         ac_cv_member_struct_mtget_mt_blkno=no
22786 fi
22787
22788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22789 fi
22790
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 fi
22793 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
22794 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
22795 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
22796
22797 cat >>confdefs.h <<_ACEOF
22798 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
22799 _ACEOF
22800
22801
22802 fi
22803
22804
22805 { echo "$as_me:$LINENO: checking for struct option.name" >&5
22806 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
22807 if test "${ac_cv_member_struct_option_name+set}" = set; then
22808   echo $ECHO_N "(cached) $ECHO_C" >&6
22809 else
22810   cat >conftest.$ac_ext <<_ACEOF
22811 /* confdefs.h.  */
22812 _ACEOF
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h.  */
22816 #ifdef HAVE_GETOPT_H
22817 #include <getopt.h>
22818 #endif
22819
22820 int
22821 main ()
22822 {
22823 static struct option ac_aggr;
22824 if (ac_aggr.name)
22825 return 0;
22826   ;
22827   return 0;
22828 }
22829 _ACEOF
22830 rm -f conftest.$ac_objext
22831 if { (ac_try="$ac_compile"
22832 case "(($ac_try" in
22833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834   *) ac_try_echo=$ac_try;;
22835 esac
22836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22837   (eval "$ac_compile") 2>conftest.er1
22838   ac_status=$?
22839   grep -v '^ *+' conftest.er1 >conftest.err
22840   rm -f conftest.er1
22841   cat conftest.err >&5
22842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843   (exit $ac_status); } &&
22844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22845   { (case "(($ac_try" in
22846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847   *) ac_try_echo=$ac_try;;
22848 esac
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850   (eval "$ac_try") 2>&5
22851   ac_status=$?
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); }; } &&
22854          { ac_try='test -s conftest.$ac_objext'
22855   { (case "(($ac_try" in
22856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857   *) ac_try_echo=$ac_try;;
22858 esac
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860   (eval "$ac_try") 2>&5
22861   ac_status=$?
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); }; }; then
22864   ac_cv_member_struct_option_name=yes
22865 else
22866   echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22868
22869         cat >conftest.$ac_ext <<_ACEOF
22870 /* confdefs.h.  */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h.  */
22875 #ifdef HAVE_GETOPT_H
22876 #include <getopt.h>
22877 #endif
22878
22879 int
22880 main ()
22881 {
22882 static struct option ac_aggr;
22883 if (sizeof ac_aggr.name)
22884 return 0;
22885   ;
22886   return 0;
22887 }
22888 _ACEOF
22889 rm -f conftest.$ac_objext
22890 if { (ac_try="$ac_compile"
22891 case "(($ac_try" in
22892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893   *) ac_try_echo=$ac_try;;
22894 esac
22895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22896   (eval "$ac_compile") 2>conftest.er1
22897   ac_status=$?
22898   grep -v '^ *+' conftest.er1 >conftest.err
22899   rm -f conftest.er1
22900   cat conftest.err >&5
22901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902   (exit $ac_status); } &&
22903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22904   { (case "(($ac_try" in
22905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906   *) ac_try_echo=$ac_try;;
22907 esac
22908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22909   (eval "$ac_try") 2>&5
22910   ac_status=$?
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); }; } &&
22913          { ac_try='test -s conftest.$ac_objext'
22914   { (case "(($ac_try" in
22915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916   *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919   (eval "$ac_try") 2>&5
22920   ac_status=$?
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); }; }; then
22923   ac_cv_member_struct_option_name=yes
22924 else
22925   echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22927
22928         ac_cv_member_struct_option_name=no
22929 fi
22930
22931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22932 fi
22933
22934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22935 fi
22936 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
22937 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
22938 if test $ac_cv_member_struct_option_name = yes; then
22939
22940 cat >>confdefs.h <<_ACEOF
22941 #define HAVE_STRUCT_OPTION_NAME 1
22942 _ACEOF
22943
22944
22945 fi
22946
22947
22948 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22949 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22950 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22951   echo $ECHO_N "(cached) $ECHO_C" >&6
22952 else
22953   cat >conftest.$ac_ext <<_ACEOF
22954 /* confdefs.h.  */
22955 _ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h.  */
22959 $ac_includes_default
22960 int
22961 main ()
22962 {
22963 static struct stat ac_aggr;
22964 if (ac_aggr.st_blocks)
22965 return 0;
22966   ;
22967   return 0;
22968 }
22969 _ACEOF
22970 rm -f conftest.$ac_objext
22971 if { (ac_try="$ac_compile"
22972 case "(($ac_try" in
22973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22974   *) ac_try_echo=$ac_try;;
22975 esac
22976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22977   (eval "$ac_compile") 2>conftest.er1
22978   ac_status=$?
22979   grep -v '^ *+' conftest.er1 >conftest.err
22980   rm -f conftest.er1
22981   cat conftest.err >&5
22982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983   (exit $ac_status); } &&
22984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22985   { (case "(($ac_try" in
22986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987   *) ac_try_echo=$ac_try;;
22988 esac
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990   (eval "$ac_try") 2>&5
22991   ac_status=$?
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); }; } &&
22994          { ac_try='test -s conftest.$ac_objext'
22995   { (case "(($ac_try" in
22996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997   *) ac_try_echo=$ac_try;;
22998 esac
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000   (eval "$ac_try") 2>&5
23001   ac_status=$?
23002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003   (exit $ac_status); }; }; then
23004   ac_cv_member_struct_stat_st_blocks=yes
23005 else
23006   echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.$ac_ext >&5
23008
23009         cat >conftest.$ac_ext <<_ACEOF
23010 /* confdefs.h.  */
23011 _ACEOF
23012 cat confdefs.h >>conftest.$ac_ext
23013 cat >>conftest.$ac_ext <<_ACEOF
23014 /* end confdefs.h.  */
23015 $ac_includes_default
23016 int
23017 main ()
23018 {
23019 static struct stat ac_aggr;
23020 if (sizeof ac_aggr.st_blocks)
23021 return 0;
23022   ;
23023   return 0;
23024 }
23025 _ACEOF
23026 rm -f conftest.$ac_objext
23027 if { (ac_try="$ac_compile"
23028 case "(($ac_try" in
23029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23030   *) ac_try_echo=$ac_try;;
23031 esac
23032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23033   (eval "$ac_compile") 2>conftest.er1
23034   ac_status=$?
23035   grep -v '^ *+' conftest.er1 >conftest.err
23036   rm -f conftest.er1
23037   cat conftest.err >&5
23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039   (exit $ac_status); } &&
23040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23041   { (case "(($ac_try" in
23042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043   *) ac_try_echo=$ac_try;;
23044 esac
23045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046   (eval "$ac_try") 2>&5
23047   ac_status=$?
23048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049   (exit $ac_status); }; } &&
23050          { ac_try='test -s conftest.$ac_objext'
23051   { (case "(($ac_try" in
23052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053   *) ac_try_echo=$ac_try;;
23054 esac
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056   (eval "$ac_try") 2>&5
23057   ac_status=$?
23058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059   (exit $ac_status); }; }; then
23060   ac_cv_member_struct_stat_st_blocks=yes
23061 else
23062   echo "$as_me: failed program was:" >&5
23063 sed 's/^/| /' conftest.$ac_ext >&5
23064
23065         ac_cv_member_struct_stat_st_blocks=no
23066 fi
23067
23068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23069 fi
23070
23071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 fi
23073 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23074 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23075 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23076
23077 cat >>confdefs.h <<_ACEOF
23078 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23079 _ACEOF
23080
23081
23082 fi
23083
23084
23085 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23086 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
23087 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23088   echo $ECHO_N "(cached) $ECHO_C" >&6
23089 else
23090   cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h.  */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h.  */
23096 #ifdef HAVE_SYS_TYPES_H
23097 #include <sys/types.h>
23098 #endif
23099 #ifdef HAVE_NETINET_IN_H
23100 #include <netinet/in.h>
23101 #endif
23102
23103 int
23104 main ()
23105 {
23106 static struct sockaddr_in6 ac_aggr;
23107 if (ac_aggr.sin6_scope_id)
23108 return 0;
23109   ;
23110   return 0;
23111 }
23112 _ACEOF
23113 rm -f conftest.$ac_objext
23114 if { (ac_try="$ac_compile"
23115 case "(($ac_try" in
23116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23117   *) ac_try_echo=$ac_try;;
23118 esac
23119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23120   (eval "$ac_compile") 2>conftest.er1
23121   ac_status=$?
23122   grep -v '^ *+' conftest.er1 >conftest.err
23123   rm -f conftest.er1
23124   cat conftest.err >&5
23125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126   (exit $ac_status); } &&
23127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23128   { (case "(($ac_try" in
23129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130   *) ac_try_echo=$ac_try;;
23131 esac
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133   (eval "$ac_try") 2>&5
23134   ac_status=$?
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); }; } &&
23137          { ac_try='test -s conftest.$ac_objext'
23138   { (case "(($ac_try" in
23139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140   *) ac_try_echo=$ac_try;;
23141 esac
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143   (eval "$ac_try") 2>&5
23144   ac_status=$?
23145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146   (exit $ac_status); }; }; then
23147   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23148 else
23149   echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152         cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h.  */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h.  */
23158 #ifdef HAVE_SYS_TYPES_H
23159 #include <sys/types.h>
23160 #endif
23161 #ifdef HAVE_NETINET_IN_H
23162 #include <netinet/in.h>
23163 #endif
23164
23165 int
23166 main ()
23167 {
23168 static struct sockaddr_in6 ac_aggr;
23169 if (sizeof ac_aggr.sin6_scope_id)
23170 return 0;
23171   ;
23172   return 0;
23173 }
23174 _ACEOF
23175 rm -f conftest.$ac_objext
23176 if { (ac_try="$ac_compile"
23177 case "(($ac_try" in
23178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179   *) ac_try_echo=$ac_try;;
23180 esac
23181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23182   (eval "$ac_compile") 2>conftest.er1
23183   ac_status=$?
23184   grep -v '^ *+' conftest.er1 >conftest.err
23185   rm -f conftest.er1
23186   cat conftest.err >&5
23187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188   (exit $ac_status); } &&
23189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23190   { (case "(($ac_try" in
23191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23192   *) ac_try_echo=$ac_try;;
23193 esac
23194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23195   (eval "$ac_try") 2>&5
23196   ac_status=$?
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); }; } &&
23199          { ac_try='test -s conftest.$ac_objext'
23200   { (case "(($ac_try" in
23201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23202   *) ac_try_echo=$ac_try;;
23203 esac
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205   (eval "$ac_try") 2>&5
23206   ac_status=$?
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); }; }; then
23209   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23210 else
23211   echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23213
23214         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23215 fi
23216
23217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23218 fi
23219
23220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 fi
23222 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23223 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23224 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23225
23226 cat >>confdefs.h <<_ACEOF
23227 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23228 _ACEOF
23229
23230
23231 fi
23232
23233
23234 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23235 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23236 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23237   echo $ECHO_N "(cached) $ECHO_C" >&6
23238 else
23239   cat >conftest.$ac_ext <<_ACEOF
23240 /* confdefs.h.  */
23241 _ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h.  */
23245 #ifdef HAVE_SYS_TYPES_H
23246 #include <sys/types.h>
23247 #endif
23248 #ifdef HAVE_NETINET_IN_H
23249 # include <netinet/in.h>
23250 #endif
23251 #ifdef HAVE_ARPA_NAMESER_H
23252 # include <arpa/nameser.h>
23253 #endif
23254
23255 int
23256 main ()
23257 {
23258 static ns_msg ac_aggr;
23259 if (ac_aggr._msg_ptr)
23260 return 0;
23261   ;
23262   return 0;
23263 }
23264 _ACEOF
23265 rm -f conftest.$ac_objext
23266 if { (ac_try="$ac_compile"
23267 case "(($ac_try" in
23268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23269   *) ac_try_echo=$ac_try;;
23270 esac
23271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23272   (eval "$ac_compile") 2>conftest.er1
23273   ac_status=$?
23274   grep -v '^ *+' conftest.er1 >conftest.err
23275   rm -f conftest.er1
23276   cat conftest.err >&5
23277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); } &&
23279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23280   { (case "(($ac_try" in
23281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282   *) ac_try_echo=$ac_try;;
23283 esac
23284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23285   (eval "$ac_try") 2>&5
23286   ac_status=$?
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); }; } &&
23289          { ac_try='test -s conftest.$ac_objext'
23290   { (case "(($ac_try" in
23291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23292   *) ac_try_echo=$ac_try;;
23293 esac
23294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23295   (eval "$ac_try") 2>&5
23296   ac_status=$?
23297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); }; }; then
23299   ac_cv_member_ns_msg__msg_ptr=yes
23300 else
23301   echo "$as_me: failed program was:" >&5
23302 sed 's/^/| /' conftest.$ac_ext >&5
23303
23304         cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h.  */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h.  */
23310 #ifdef HAVE_SYS_TYPES_H
23311 #include <sys/types.h>
23312 #endif
23313 #ifdef HAVE_NETINET_IN_H
23314 # include <netinet/in.h>
23315 #endif
23316 #ifdef HAVE_ARPA_NAMESER_H
23317 # include <arpa/nameser.h>
23318 #endif
23319
23320 int
23321 main ()
23322 {
23323 static ns_msg ac_aggr;
23324 if (sizeof ac_aggr._msg_ptr)
23325 return 0;
23326   ;
23327   return 0;
23328 }
23329 _ACEOF
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334   *) ac_try_echo=$ac_try;;
23335 esac
23336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23337   (eval "$ac_compile") 2>conftest.er1
23338   ac_status=$?
23339   grep -v '^ *+' conftest.er1 >conftest.err
23340   rm -f conftest.er1
23341   cat conftest.err >&5
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); } &&
23344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23345   { (case "(($ac_try" in
23346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23347   *) ac_try_echo=$ac_try;;
23348 esac
23349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23350   (eval "$ac_try") 2>&5
23351   ac_status=$?
23352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353   (exit $ac_status); }; } &&
23354          { ac_try='test -s conftest.$ac_objext'
23355   { (case "(($ac_try" in
23356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23357   *) ac_try_echo=$ac_try;;
23358 esac
23359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23360   (eval "$ac_try") 2>&5
23361   ac_status=$?
23362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363   (exit $ac_status); }; }; then
23364   ac_cv_member_ns_msg__msg_ptr=yes
23365 else
23366   echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23368
23369         ac_cv_member_ns_msg__msg_ptr=no
23370 fi
23371
23372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23373 fi
23374
23375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23376 fi
23377 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23378 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23379 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23380
23381 cat >>confdefs.h <<_ACEOF
23382 #define HAVE_NS_MSG__MSG_PTR 1
23383 _ACEOF
23384
23385
23386 fi
23387
23388
23389 { echo "$as_me:$LINENO: checking for timezone variable" >&5
23390 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
23391 if test "${ac_cv_have_timezone+set}" = set; then
23392   echo $ECHO_N "(cached) $ECHO_C" >&6
23393 else
23394   cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h.  */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h.  */
23400 #include <time.h>
23401 int
23402 main ()
23403 {
23404 timezone = 1
23405   ;
23406   return 0;
23407 }
23408 _ACEOF
23409 rm -f conftest.$ac_objext conftest$ac_exeext
23410 if { (ac_try="$ac_link"
23411 case "(($ac_try" in
23412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413   *) ac_try_echo=$ac_try;;
23414 esac
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416   (eval "$ac_link") 2>conftest.er1
23417   ac_status=$?
23418   grep -v '^ *+' conftest.er1 >conftest.err
23419   rm -f conftest.er1
23420   cat conftest.err >&5
23421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422   (exit $ac_status); } &&
23423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23424   { (case "(($ac_try" in
23425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23426   *) ac_try_echo=$ac_try;;
23427 esac
23428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23429   (eval "$ac_try") 2>&5
23430   ac_status=$?
23431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); }; } &&
23433          { ac_try='test -s conftest$ac_exeext'
23434   { (case "(($ac_try" in
23435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436   *) ac_try_echo=$ac_try;;
23437 esac
23438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439   (eval "$ac_try") 2>&5
23440   ac_status=$?
23441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); }; }; then
23443   ac_cv_have_timezone="yes"
23444 else
23445   echo "$as_me: failed program was:" >&5
23446 sed 's/^/| /' conftest.$ac_ext >&5
23447
23448         ac_cv_have_timezone="no"
23449 fi
23450
23451 rm -f core conftest.err conftest.$ac_objext \
23452       conftest$ac_exeext conftest.$ac_ext
23453 fi
23454 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
23455 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
23456 if test "$ac_cv_have_timezone" = "yes"
23457 then
23458
23459 cat >>confdefs.h <<\_ACEOF
23460 #define HAVE_TIMEZONE 1
23461 _ACEOF
23462
23463 fi
23464 { echo "$as_me:$LINENO: checking for daylight variable" >&5
23465 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
23466 if test "${ac_cv_have_daylight+set}" = set; then
23467   echo $ECHO_N "(cached) $ECHO_C" >&6
23468 else
23469   cat >conftest.$ac_ext <<_ACEOF
23470 /* confdefs.h.  */
23471 _ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h.  */
23475 #include <time.h>
23476 int
23477 main ()
23478 {
23479 daylight = 1
23480   ;
23481   return 0;
23482 }
23483 _ACEOF
23484 rm -f conftest.$ac_objext conftest$ac_exeext
23485 if { (ac_try="$ac_link"
23486 case "(($ac_try" in
23487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488   *) ac_try_echo=$ac_try;;
23489 esac
23490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491   (eval "$ac_link") 2>conftest.er1
23492   ac_status=$?
23493   grep -v '^ *+' conftest.er1 >conftest.err
23494   rm -f conftest.er1
23495   cat conftest.err >&5
23496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497   (exit $ac_status); } &&
23498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23499   { (case "(($ac_try" in
23500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23501   *) ac_try_echo=$ac_try;;
23502 esac
23503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23504   (eval "$ac_try") 2>&5
23505   ac_status=$?
23506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507   (exit $ac_status); }; } &&
23508          { ac_try='test -s conftest$ac_exeext'
23509   { (case "(($ac_try" in
23510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23511   *) ac_try_echo=$ac_try;;
23512 esac
23513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23514   (eval "$ac_try") 2>&5
23515   ac_status=$?
23516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517   (exit $ac_status); }; }; then
23518   ac_cv_have_daylight="yes"
23519 else
23520   echo "$as_me: failed program was:" >&5
23521 sed 's/^/| /' conftest.$ac_ext >&5
23522
23523         ac_cv_have_daylight="no"
23524 fi
23525
23526 rm -f core conftest.err conftest.$ac_objext \
23527       conftest$ac_exeext conftest.$ac_ext
23528 fi
23529 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
23530 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
23531 if test "$ac_cv_have_daylight" = "yes"
23532 then
23533
23534 cat >>confdefs.h <<\_ACEOF
23535 #define HAVE_DAYLIGHT 1
23536 _ACEOF
23537
23538 fi
23539
23540
23541 case $host_cpu in
23542   *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
23543 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
23544 if test "${ac_cv_cpp_def___i386__+set}" = set; then
23545   echo $ECHO_N "(cached) $ECHO_C" >&6
23546 else
23547   cat >conftest.$ac_ext <<_ACEOF
23548 /* confdefs.h.  */
23549 _ACEOF
23550 cat confdefs.h >>conftest.$ac_ext
23551 cat >>conftest.$ac_ext <<_ACEOF
23552 /* end confdefs.h.  */
23553 #ifndef __i386__
23554 yes
23555 #endif
23556 _ACEOF
23557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23558   $EGREP "yes" >/dev/null 2>&1; then
23559   ac_cv_cpp_def___i386__=yes
23560 else
23561   ac_cv_cpp_def___i386__=no
23562 fi
23563 rm -f conftest*
23564
23565 fi
23566 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
23567 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
23568 if test $ac_cv_cpp_def___i386__ = yes; then
23569   CFLAGS="$CFLAGS -D__i386__"
23570   LINTFLAGS="$LINTFLAGS -D__i386__"
23571 fi
23572  ;;
23573   *x86_64*)         { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
23574 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
23575 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
23576   echo $ECHO_N "(cached) $ECHO_C" >&6
23577 else
23578   cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h.  */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h.  */
23584 #ifndef __x86_64__
23585 yes
23586 #endif
23587 _ACEOF
23588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23589   $EGREP "yes" >/dev/null 2>&1; then
23590   ac_cv_cpp_def___x86_64__=yes
23591 else
23592   ac_cv_cpp_def___x86_64__=no
23593 fi
23594 rm -f conftest*
23595
23596 fi
23597 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
23598 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
23599 if test $ac_cv_cpp_def___x86_64__ = yes; then
23600   CFLAGS="$CFLAGS -D__x86_64__"
23601   LINTFLAGS="$LINTFLAGS -D__x86_64__"
23602 fi
23603
23604                     { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
23605 echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
23606 if test "${ac_cv_cpp_def__WIN64+set}" = set; then
23607   echo $ECHO_N "(cached) $ECHO_C" >&6
23608 else
23609   cat >conftest.$ac_ext <<_ACEOF
23610 /* confdefs.h.  */
23611 _ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h.  */
23615 #ifndef _WIN64
23616 yes
23617 #endif
23618 _ACEOF
23619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23620   $EGREP "yes" >/dev/null 2>&1; then
23621   ac_cv_cpp_def__WIN64=yes
23622 else
23623   ac_cv_cpp_def__WIN64=no
23624 fi
23625 rm -f conftest*
23626
23627 fi
23628 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
23629 echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
23630 if test $ac_cv_cpp_def__WIN64 = yes; then
23631   CFLAGS="$CFLAGS -D_WIN64"
23632   LINTFLAGS="$LINTFLAGS -D_WIN64"
23633 fi
23634  ;;
23635   *alpha*)          { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
23636 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
23637 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
23638   echo $ECHO_N "(cached) $ECHO_C" >&6
23639 else
23640   cat >conftest.$ac_ext <<_ACEOF
23641 /* confdefs.h.  */
23642 _ACEOF
23643 cat confdefs.h >>conftest.$ac_ext
23644 cat >>conftest.$ac_ext <<_ACEOF
23645 /* end confdefs.h.  */
23646 #ifndef __ALPHA__
23647 yes
23648 #endif
23649 _ACEOF
23650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23651   $EGREP "yes" >/dev/null 2>&1; then
23652   ac_cv_cpp_def___ALPHA__=yes
23653 else
23654   ac_cv_cpp_def___ALPHA__=no
23655 fi
23656 rm -f conftest*
23657
23658 fi
23659 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
23660 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
23661 if test $ac_cv_cpp_def___ALPHA__ = yes; then
23662   CFLAGS="$CFLAGS -D__ALPHA__"
23663   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
23664 fi
23665  ;;
23666   *sparc*)          { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
23667 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
23668 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
23669   echo $ECHO_N "(cached) $ECHO_C" >&6
23670 else
23671   cat >conftest.$ac_ext <<_ACEOF
23672 /* confdefs.h.  */
23673 _ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h.  */
23677 #ifndef __sparc__
23678 yes
23679 #endif
23680 _ACEOF
23681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23682   $EGREP "yes" >/dev/null 2>&1; then
23683   ac_cv_cpp_def___sparc__=yes
23684 else
23685   ac_cv_cpp_def___sparc__=no
23686 fi
23687 rm -f conftest*
23688
23689 fi
23690 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
23691 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
23692 if test $ac_cv_cpp_def___sparc__ = yes; then
23693   CFLAGS="$CFLAGS -D__sparc__"
23694   LINTFLAGS="$LINTFLAGS -D__sparc__"
23695 fi
23696  ;;
23697   *powerpc*)        { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
23698 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
23699 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
23700   echo $ECHO_N "(cached) $ECHO_C" >&6
23701 else
23702   cat >conftest.$ac_ext <<_ACEOF
23703 /* confdefs.h.  */
23704 _ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h.  */
23708 #ifndef __powerpc__
23709 yes
23710 #endif
23711 _ACEOF
23712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23713   $EGREP "yes" >/dev/null 2>&1; then
23714   ac_cv_cpp_def___powerpc__=yes
23715 else
23716   ac_cv_cpp_def___powerpc__=no
23717 fi
23718 rm -f conftest*
23719
23720 fi
23721 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
23722 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
23723 if test $ac_cv_cpp_def___powerpc__ = yes; then
23724   CFLAGS="$CFLAGS -D__powerpc__"
23725   LINTFLAGS="$LINTFLAGS -D__powerpc__"
23726 fi
23727  ;;
23728 esac
23729
23730 case $host_vendor in
23731   *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
23732 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
23733 if test "${ac_cv_cpp_def___sun__+set}" = set; then
23734   echo $ECHO_N "(cached) $ECHO_C" >&6
23735 else
23736   cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h.  */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h.  */
23742 #ifndef __sun__
23743 yes
23744 #endif
23745 _ACEOF
23746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23747   $EGREP "yes" >/dev/null 2>&1; then
23748   ac_cv_cpp_def___sun__=yes
23749 else
23750   ac_cv_cpp_def___sun__=no
23751 fi
23752 rm -f conftest*
23753
23754 fi
23755 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
23756 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
23757 if test $ac_cv_cpp_def___sun__ = yes; then
23758   CFLAGS="$CFLAGS -D__sun__"
23759   LINTFLAGS="$LINTFLAGS -D__sun__"
23760 fi
23761  ;;
23762 esac
23763
23764
23765
23766
23767
23768 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
23769
23770 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
23771
23772 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
23773
23774 ac_config_commands="$ac_config_commands dlls/user/resources"
23775
23776 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
23777
23778 ac_config_commands="$ac_config_commands include/wine"
23779
23780
23781 MAKE_RULES=Make.rules
23782
23783
23784 MAKE_DLL_RULES=dlls/Makedll.rules
23785
23786
23787 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
23788
23789
23790 MAKE_TEST_RULES=dlls/Maketest.rules
23791
23792
23793 MAKE_PROG_RULES=programs/Makeprog.rules
23794
23795
23796 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/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/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/kernel32/Makefile dlls/kernel32/tests/Makefile dlls/localspl/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/pstorec/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/svrapi/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/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"
23797
23798
23799 cat >confcache <<\_ACEOF
23800 # This file is a shell script that caches the results of configure
23801 # tests run on this system so they can be shared between configure
23802 # scripts and configure runs, see configure's option --config-cache.
23803 # It is not useful on other systems.  If it contains results you don't
23804 # want to keep, you may remove or edit it.
23805 #
23806 # config.status only pays attention to the cache file if you give it
23807 # the --recheck option to rerun configure.
23808 #
23809 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23811 # following values.
23812
23813 _ACEOF
23814
23815 # The following way of writing the cache mishandles newlines in values,
23816 # but we know of no workaround that is simple, portable, and efficient.
23817 # So, we kill variables containing newlines.
23818 # Ultrix sh set writes to stderr and can't be redirected directly,
23819 # and sets the high bit in the cache file unless we assign to the vars.
23820 (
23821   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23822     eval ac_val=\$$ac_var
23823     case $ac_val in #(
23824     *${as_nl}*)
23825       case $ac_var in #(
23826       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23827 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23828       esac
23829       case $ac_var in #(
23830       _ | IFS | as_nl) ;; #(
23831       *) $as_unset $ac_var ;;
23832       esac ;;
23833     esac
23834   done
23835
23836   (set) 2>&1 |
23837     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23838     *${as_nl}ac_space=\ *)
23839       # `set' does not quote correctly, so add quotes (double-quote
23840       # substitution turns \\\\ into \\, and sed turns \\ into \).
23841       sed -n \
23842         "s/'/'\\\\''/g;
23843           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23844       ;; #(
23845     *)
23846       # `set' quotes correctly as required by POSIX, so do not add quotes.
23847       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23848       ;;
23849     esac |
23850     sort
23851 ) |
23852   sed '
23853      /^ac_cv_env_/b end
23854      t clear
23855      :clear
23856      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23857      t end
23858      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23859      :end' >>confcache
23860 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23861   if test -w "$cache_file"; then
23862     test "x$cache_file" != "x/dev/null" &&
23863       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23864 echo "$as_me: updating cache $cache_file" >&6;}
23865     cat confcache >$cache_file
23866   else
23867     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23868 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23869   fi
23870 fi
23871 rm -f confcache
23872
23873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23874 # Let make expand exec_prefix.
23875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23876
23877 DEFS=-DHAVE_CONFIG_H
23878
23879 ac_libobjs=
23880 ac_ltlibobjs=
23881 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23882   # 1. Remove the extension, and $U if already installed.
23883   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23884   ac_i=`echo "$ac_i" | sed "$ac_script"`
23885   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23886   #    will be set to the directory where LIBOBJS objects are built.
23887   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23888   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23889 done
23890 LIBOBJS=$ac_libobjs
23891
23892 LTLIBOBJS=$ac_ltlibobjs
23893
23894
23895
23896 : ${CONFIG_STATUS=./config.status}
23897 ac_clean_files_save=$ac_clean_files
23898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23899 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23900 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23901 cat >$CONFIG_STATUS <<_ACEOF
23902 #! $SHELL
23903 # Generated by $as_me.
23904 # Run this file to recreate the current configuration.
23905 # Compiler output produced by configure, useful for debugging
23906 # configure, is in config.log if it exists.
23907
23908 debug=false
23909 ac_cs_recheck=false
23910 ac_cs_silent=false
23911 SHELL=\${CONFIG_SHELL-$SHELL}
23912 _ACEOF
23913
23914 cat >>$CONFIG_STATUS <<\_ACEOF
23915 ## --------------------- ##
23916 ## M4sh Initialization.  ##
23917 ## --------------------- ##
23918
23919 # Be Bourne compatible
23920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23921   emulate sh
23922   NULLCMD=:
23923   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23924   # is contrary to our usage.  Disable this feature.
23925   alias -g '${1+"$@"}'='"$@"'
23926   setopt NO_GLOB_SUBST
23927 else
23928   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23929 fi
23930 BIN_SH=xpg4; export BIN_SH # for Tru64
23931 DUALCASE=1; export DUALCASE # for MKS sh
23932
23933
23934 # PATH needs CR
23935 # Avoid depending upon Character Ranges.
23936 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23937 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23938 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23939 as_cr_digits='0123456789'
23940 as_cr_alnum=$as_cr_Letters$as_cr_digits
23941
23942 # The user is always right.
23943 if test "${PATH_SEPARATOR+set}" != set; then
23944   echo "#! /bin/sh" >conf$$.sh
23945   echo  "exit 0"   >>conf$$.sh
23946   chmod +x conf$$.sh
23947   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23948     PATH_SEPARATOR=';'
23949   else
23950     PATH_SEPARATOR=:
23951   fi
23952   rm -f conf$$.sh
23953 fi
23954
23955 # Support unset when possible.
23956 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23957   as_unset=unset
23958 else
23959   as_unset=false
23960 fi
23961
23962
23963 # IFS
23964 # We need space, tab and new line, in precisely that order.  Quoting is
23965 # there to prevent editors from complaining about space-tab.
23966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23967 # splitting by setting IFS to empty value.)
23968 as_nl='
23969 '
23970 IFS=" ""        $as_nl"
23971
23972 # Find who we are.  Look in the path if we contain no directory separator.
23973 case $0 in
23974   *[\\/]* ) as_myself=$0 ;;
23975   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23976 for as_dir in $PATH
23977 do
23978   IFS=$as_save_IFS
23979   test -z "$as_dir" && as_dir=.
23980   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23981 done
23982 IFS=$as_save_IFS
23983
23984      ;;
23985 esac
23986 # We did not find ourselves, most probably we were run as `sh COMMAND'
23987 # in which case we are not to be found in the path.
23988 if test "x$as_myself" = x; then
23989   as_myself=$0
23990 fi
23991 if test ! -f "$as_myself"; then
23992   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23993   { (exit 1); exit 1; }
23994 fi
23995
23996 # Work around bugs in pre-3.0 UWIN ksh.
23997 for as_var in ENV MAIL MAILPATH
23998 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23999 done
24000 PS1='$ '
24001 PS2='> '
24002 PS4='+ '
24003
24004 # NLS nuisances.
24005 for as_var in \
24006   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24007   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24008   LC_TELEPHONE LC_TIME
24009 do
24010   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24011     eval $as_var=C; export $as_var
24012   else
24013     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24014   fi
24015 done
24016
24017 # Required to use basename.
24018 if expr a : '\(a\)' >/dev/null 2>&1 &&
24019    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24020   as_expr=expr
24021 else
24022   as_expr=false
24023 fi
24024
24025 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24026   as_basename=basename
24027 else
24028   as_basename=false
24029 fi
24030
24031
24032 # Name of the executable.
24033 as_me=`$as_basename -- "$0" ||
24034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24035          X"$0" : 'X\(//\)$' \| \
24036          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24037 echo X/"$0" |
24038     sed '/^.*\/\([^/][^/]*\)\/*$/{
24039             s//\1/
24040             q
24041           }
24042           /^X\/\(\/\/\)$/{
24043             s//\1/
24044             q
24045           }
24046           /^X\/\(\/\).*/{
24047             s//\1/
24048             q
24049           }
24050           s/.*/./; q'`
24051
24052 # CDPATH.
24053 $as_unset CDPATH
24054
24055
24056
24057   as_lineno_1=$LINENO
24058   as_lineno_2=$LINENO
24059   test "x$as_lineno_1" != "x$as_lineno_2" &&
24060   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24061
24062   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24063   # uniformly replaced by the line number.  The first 'sed' inserts a
24064   # line-number line after each line using $LINENO; the second 'sed'
24065   # does the real work.  The second script uses 'N' to pair each
24066   # line-number line with the line containing $LINENO, and appends
24067   # trailing '-' during substitution so that $LINENO is not a special
24068   # case at line end.
24069   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24070   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24071   # E. McMahon (1931-1989) for sed's syntax.  :-)
24072   sed -n '
24073     p
24074     /[$]LINENO/=
24075   ' <$as_myself |
24076     sed '
24077       s/[$]LINENO.*/&-/
24078       t lineno
24079       b
24080       :lineno
24081       N
24082       :loop
24083       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24084       t loop
24085       s/-\n.*//
24086     ' >$as_me.lineno &&
24087   chmod +x "$as_me.lineno" ||
24088     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24089    { (exit 1); exit 1; }; }
24090
24091   # Don't try to exec as it changes $[0], causing all sort of problems
24092   # (the dirname of $[0] is not the place where we might find the
24093   # original and so on.  Autoconf is especially sensitive to this).
24094   . "./$as_me.lineno"
24095   # Exit status is that of the last command.
24096   exit
24097 }
24098
24099
24100 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24101   as_dirname=dirname
24102 else
24103   as_dirname=false
24104 fi
24105
24106 ECHO_C= ECHO_N= ECHO_T=
24107 case `echo -n x` in
24108 -n*)
24109   case `echo 'x\c'` in
24110   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24111   *)   ECHO_C='\c';;
24112   esac;;
24113 *)
24114   ECHO_N='-n';;
24115 esac
24116
24117 if expr a : '\(a\)' >/dev/null 2>&1 &&
24118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24119   as_expr=expr
24120 else
24121   as_expr=false
24122 fi
24123
24124 rm -f conf$$ conf$$.exe conf$$.file
24125 if test -d conf$$.dir; then
24126   rm -f conf$$.dir/conf$$.file
24127 else
24128   rm -f conf$$.dir
24129   mkdir conf$$.dir
24130 fi
24131 echo >conf$$.file
24132 if ln -s conf$$.file conf$$ 2>/dev/null; then
24133   as_ln_s='ln -s'
24134   # ... but there are two gotchas:
24135   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24136   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24137   # In both cases, we have to default to `cp -p'.
24138   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24139     as_ln_s='cp -p'
24140 elif ln conf$$.file conf$$ 2>/dev/null; then
24141   as_ln_s=ln
24142 else
24143   as_ln_s='cp -p'
24144 fi
24145 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24146 rmdir conf$$.dir 2>/dev/null
24147
24148 if mkdir -p . 2>/dev/null; then
24149   as_mkdir_p=:
24150 else
24151   test -d ./-p && rmdir ./-p
24152   as_mkdir_p=false
24153 fi
24154
24155 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
24156 # systems may use methods other than mode bits to determine executability.
24157 cat >conf$$.file <<_ASEOF
24158 #! /bin/sh
24159 exit 0
24160 _ASEOF
24161 chmod +x conf$$.file
24162 if test -x conf$$.file >/dev/null 2>&1; then
24163   as_executable_p="test -x"
24164 else
24165   as_executable_p=:
24166 fi
24167 rm -f conf$$.file
24168
24169 # Sed expression to map a string onto a valid CPP name.
24170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24171
24172 # Sed expression to map a string onto a valid variable name.
24173 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24174
24175
24176 exec 6>&1
24177
24178 # Save the log message, to keep $[0] and so on meaningful, and to
24179 # report actual input values of CONFIG_FILES etc. instead of their
24180 # values after options handling.
24181 ac_log="
24182 This file was extended by Wine $as_me 0.9.20, which was
24183 generated by GNU Autoconf 2.60a.  Invocation command line was
24184
24185   CONFIG_FILES    = $CONFIG_FILES
24186   CONFIG_HEADERS  = $CONFIG_HEADERS
24187   CONFIG_LINKS    = $CONFIG_LINKS
24188   CONFIG_COMMANDS = $CONFIG_COMMANDS
24189   $ $0 $@
24190
24191 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24192 "
24193
24194 _ACEOF
24195
24196 cat >>$CONFIG_STATUS <<_ACEOF
24197 # Files that config.status was made for.
24198 config_files="$ac_config_files"
24199 config_headers="$ac_config_headers"
24200 config_commands="$ac_config_commands"
24201
24202 _ACEOF
24203
24204 cat >>$CONFIG_STATUS <<\_ACEOF
24205 ac_cs_usage="\
24206 \`$as_me' instantiates files from templates according to the
24207 current configuration.
24208
24209 Usage: $0 [OPTIONS] [FILE]...
24210
24211   -h, --help       print this help, then exit
24212   -V, --version    print version number and configuration settings, then exit
24213   -q, --quiet      do not print progress messages
24214   -d, --debug      don't remove temporary files
24215       --recheck    update $as_me by reconfiguring in the same conditions
24216   --file=FILE[:TEMPLATE]
24217                    instantiate the configuration file FILE
24218   --header=FILE[:TEMPLATE]
24219                    instantiate the configuration header FILE
24220
24221 Configuration files:
24222 $config_files
24223
24224 Configuration headers:
24225 $config_headers
24226
24227 Configuration commands:
24228 $config_commands
24229
24230 Report bugs to <bug-autoconf@gnu.org>."
24231
24232 _ACEOF
24233 cat >>$CONFIG_STATUS <<_ACEOF
24234 ac_cs_version="\\
24235 Wine config.status 0.9.20
24236 configured by $0, generated by GNU Autoconf 2.60a,
24237   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24238
24239 Copyright (C) 2006 Free Software Foundation, Inc.
24240 This config.status script is free software; the Free Software Foundation
24241 gives unlimited permission to copy, distribute and modify it."
24242
24243 ac_pwd='$ac_pwd'
24244 srcdir='$srcdir'
24245 INSTALL='$INSTALL'
24246 _ACEOF
24247
24248 cat >>$CONFIG_STATUS <<\_ACEOF
24249 # If no file are specified by the user, then we need to provide default
24250 # value.  By we need to know if files were specified by the user.
24251 ac_need_defaults=:
24252 while test $# != 0
24253 do
24254   case $1 in
24255   --*=*)
24256     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24257     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24258     ac_shift=:
24259     ;;
24260   *)
24261     ac_option=$1
24262     ac_optarg=$2
24263     ac_shift=shift
24264     ;;
24265   esac
24266
24267   case $ac_option in
24268   # Handling of the options.
24269   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24270     ac_cs_recheck=: ;;
24271   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24272     echo "$ac_cs_version"; exit ;;
24273   --debug | --debu | --deb | --de | --d | -d )
24274     debug=: ;;
24275   --file | --fil | --fi | --f )
24276     $ac_shift
24277     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24278     ac_need_defaults=false;;
24279   --header | --heade | --head | --hea )
24280     $ac_shift
24281     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24282     ac_need_defaults=false;;
24283   --he | --h)
24284     # Conflict between --help and --header
24285     { echo "$as_me: error: ambiguous option: $1
24286 Try \`$0 --help' for more information." >&2
24287    { (exit 1); exit 1; }; };;
24288   --help | --hel | -h )
24289     echo "$ac_cs_usage"; exit ;;
24290   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24291   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24292     ac_cs_silent=: ;;
24293
24294   # This is an error.
24295   -*) { echo "$as_me: error: unrecognized option: $1
24296 Try \`$0 --help' for more information." >&2
24297    { (exit 1); exit 1; }; } ;;
24298
24299   *) ac_config_targets="$ac_config_targets $1"
24300      ac_need_defaults=false ;;
24301
24302   esac
24303   shift
24304 done
24305
24306 ac_configure_extra_args=
24307
24308 if $ac_cs_silent; then
24309   exec 6>/dev/null
24310   ac_configure_extra_args="$ac_configure_extra_args --silent"
24311 fi
24312
24313 _ACEOF
24314 cat >>$CONFIG_STATUS <<_ACEOF
24315 if \$ac_cs_recheck; then
24316   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24317   CONFIG_SHELL=$SHELL
24318   export CONFIG_SHELL
24319   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24320 fi
24321
24322 _ACEOF
24323 cat >>$CONFIG_STATUS <<\_ACEOF
24324 exec 5>>config.log
24325 {
24326   echo
24327   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24328 ## Running $as_me. ##
24329 _ASBOX
24330   echo "$ac_log"
24331 } >&5
24332
24333 _ACEOF
24334 cat >>$CONFIG_STATUS <<_ACEOF
24335 _ACEOF
24336
24337 cat >>$CONFIG_STATUS <<\_ACEOF
24338
24339 # Handling of arguments.
24340 for ac_config_target in $ac_config_targets
24341 do
24342   case $ac_config_target in
24343     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24344     "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24345     "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24346     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
24347     "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24348     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24349     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24350     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24351     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24352     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24353     "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
24354     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24355     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24356     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24357     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24358     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24359     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24360     "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24361     "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24362     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24363     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24364     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24365     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24366     "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24367     "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24368     "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24369     "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24370     "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24371     "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
24372     "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
24373     "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24374     "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24375     "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
24376     "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
24377     "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
24378     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24379     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24380     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24381     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
24382     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
24383     "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24384     "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24385     "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24386     "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24387     "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24388     "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24389     "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24390     "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24391     "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24392     "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24393     "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24394     "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24395     "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24396     "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24397     "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24398     "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24399     "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24400     "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24401     "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24402     "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24403     "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24404     "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24405     "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24406     "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24407     "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24408     "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24409     "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24410     "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24411     "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24412     "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24413     "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24414     "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24415     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24416     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24417     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24418     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24419     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24420     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24421     "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
24422     "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
24423     "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
24424     "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24425     "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24426     "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
24427     "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
24428     "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
24429     "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
24430     "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
24431     "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
24432     "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
24433     "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
24434     "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
24435     "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
24436     "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
24437     "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
24438     "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
24439     "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
24440     "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
24441     "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
24442     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
24443     "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
24444     "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
24445     "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
24446     "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
24447     "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
24448     "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
24449     "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
24450     "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
24451     "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
24452     "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
24453     "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
24454     "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
24455     "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
24456     "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
24457     "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
24458     "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
24459     "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
24460     "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
24461     "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
24462     "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
24463     "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
24464     "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
24465     "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
24466     "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
24467     "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
24468     "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
24469     "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
24470     "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
24471     "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
24472     "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
24473     "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
24474     "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
24475     "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
24476     "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
24477     "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
24478     "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
24479     "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
24480     "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
24481     "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
24482     "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
24483     "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
24484     "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
24485     "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
24486     "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
24487     "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
24488     "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
24489     "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
24490     "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
24491     "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
24492     "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
24493     "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
24494     "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
24495     "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
24496     "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
24497     "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
24498     "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
24499     "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
24500     "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
24501     "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
24502     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
24503     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
24504     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
24505     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
24506     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
24507     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
24508     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
24509     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
24510     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
24511     "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
24512     "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
24513     "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
24514     "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
24515     "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
24516     "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
24517     "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
24518     "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
24519     "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
24520     "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
24521     "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
24522     "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
24523     "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
24524     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
24525     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
24526     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
24527     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
24528     "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
24529     "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
24530     "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
24531     "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
24532     "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
24533     "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
24534     "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
24535     "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
24536     "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
24537     "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
24538     "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
24539     "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
24540     "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
24541     "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
24542     "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
24543     "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
24544     "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
24545     "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
24546     "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
24547     "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
24548     "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
24549     "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
24550     "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
24551     "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
24552     "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
24553     "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
24554     "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
24555     "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
24556     "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
24557     "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
24558     "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
24559     "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
24560     "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
24561     "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
24562     "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
24563     "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
24564     "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
24565     "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
24566     "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
24567     "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
24568     "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
24569     "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
24570     "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
24571     "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
24572     "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
24573     "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
24574     "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
24575     "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
24576     "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
24577     "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
24578     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
24579     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
24580     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
24581     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
24582     "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
24583     "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
24584     "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
24585     "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
24586     "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
24587     "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
24588     "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
24589     "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
24590     "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
24591     "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
24592     "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
24593     "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
24594     "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
24595     "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
24596     "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
24597     "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
24598     "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
24599     "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
24600     "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
24601     "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
24602     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
24603     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
24604     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
24605     "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
24606     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
24607     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24608     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
24609     "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
24610     "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
24611     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
24612     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
24613     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
24614     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
24615     "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
24616     "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
24617     "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
24618     "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
24619     "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
24620     "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
24621     "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
24622     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
24623     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
24624     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
24625     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
24626     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
24627     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
24628     "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
24629     "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
24630     "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
24631     "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
24632     "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
24633     "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
24634     "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
24635     "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
24636     "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
24637     "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
24638     "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
24639     "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
24640     "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
24641     "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
24642     "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
24643     "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
24644     "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
24645     "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
24646     "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
24647     "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
24648     "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
24649     "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
24650     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
24651     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
24652     "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
24653     "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
24654     "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
24655     "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
24656     "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
24657     "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
24658
24659   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24660 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24661    { (exit 1); exit 1; }; };;
24662   esac
24663 done
24664
24665
24666 # If the user did not use the arguments to specify the items to instantiate,
24667 # then the envvar interface is used.  Set only those that are not.
24668 # We use the long form for the default assignment because of an extremely
24669 # bizarre bug on SunOS 4.1.3.
24670 if $ac_need_defaults; then
24671   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24672   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24673   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24674 fi
24675
24676 # Have a temporary directory for convenience.  Make it in the build tree
24677 # simply because there is no reason against having it here, and in addition,
24678 # creating and moving files from /tmp can sometimes cause problems.
24679 # Hook for its removal unless debugging.
24680 # Note that there is a small window in which the directory will not be cleaned:
24681 # after its creation but before its name has been assigned to `$tmp'.
24682 $debug ||
24683 {
24684   tmp=
24685   trap 'exit_status=$?
24686   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24687 ' 0
24688   trap '{ (exit 1); exit 1; }' 1 2 13 15
24689 }
24690 # Create a (secure) tmp directory for tmp files.
24691
24692 {
24693   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24694   test -n "$tmp" && test -d "$tmp"
24695 }  ||
24696 {
24697   tmp=./conf$$-$RANDOM
24698   (umask 077 && mkdir "$tmp")
24699 } ||
24700 {
24701    echo "$me: cannot create a temporary directory in ." >&2
24702    { (exit 1); exit 1; }
24703 }
24704
24705 #
24706 # Set up the sed scripts for CONFIG_FILES section.
24707 #
24708
24709 # No need to generate the scripts if there are no CONFIG_FILES.
24710 # This happens for instance when ./config.status config.h
24711 if test -n "$CONFIG_FILES"; then
24712
24713 _ACEOF
24714
24715 # Create sed commands to just substitute file output variables.
24716
24717 # Remaining file output variables are in a fragment that also has non-file
24718 # output varibles.
24719
24720
24721
24722 ac_delim='%!_!# '
24723 for ac_last_try in false false false false false :; do
24724   cat >conf$$subs.sed <<_ACEOF
24725 SHELL!$SHELL$ac_delim
24726 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24727 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24728 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24729 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24730 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24731 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24732 exec_prefix!$exec_prefix$ac_delim
24733 prefix!$prefix$ac_delim
24734 program_transform_name!$program_transform_name$ac_delim
24735 bindir!$bindir$ac_delim
24736 sbindir!$sbindir$ac_delim
24737 libexecdir!$libexecdir$ac_delim
24738 datarootdir!$datarootdir$ac_delim
24739 datadir!$datadir$ac_delim
24740 sysconfdir!$sysconfdir$ac_delim
24741 sharedstatedir!$sharedstatedir$ac_delim
24742 localstatedir!$localstatedir$ac_delim
24743 includedir!$includedir$ac_delim
24744 oldincludedir!$oldincludedir$ac_delim
24745 docdir!$docdir$ac_delim
24746 infodir!$infodir$ac_delim
24747 htmldir!$htmldir$ac_delim
24748 dvidir!$dvidir$ac_delim
24749 pdfdir!$pdfdir$ac_delim
24750 psdir!$psdir$ac_delim
24751 libdir!$libdir$ac_delim
24752 localedir!$localedir$ac_delim
24753 mandir!$mandir$ac_delim
24754 DEFS!$DEFS$ac_delim
24755 ECHO_C!$ECHO_C$ac_delim
24756 ECHO_N!$ECHO_N$ac_delim
24757 ECHO_T!$ECHO_T$ac_delim
24758 LIBS!$LIBS$ac_delim
24759 build_alias!$build_alias$ac_delim
24760 host_alias!$host_alias$ac_delim
24761 target_alias!$target_alias$ac_delim
24762 build!$build$ac_delim
24763 build_cpu!$build_cpu$ac_delim
24764 build_vendor!$build_vendor$ac_delim
24765 build_os!$build_os$ac_delim
24766 host!$host$ac_delim
24767 host_cpu!$host_cpu$ac_delim
24768 host_vendor!$host_vendor$ac_delim
24769 host_os!$host_os$ac_delim
24770 WIN16_FILES!$WIN16_FILES$ac_delim
24771 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
24772 SET_MAKE!$SET_MAKE$ac_delim
24773 CC!$CC$ac_delim
24774 CFLAGS!$CFLAGS$ac_delim
24775 LDFLAGS!$LDFLAGS$ac_delim
24776 CPPFLAGS!$CPPFLAGS$ac_delim
24777 ac_ct_CC!$ac_ct_CC$ac_delim
24778 EXEEXT!$EXEEXT$ac_delim
24779 OBJEXT!$OBJEXT$ac_delim
24780 CXX!$CXX$ac_delim
24781 CXXFLAGS!$CXXFLAGS$ac_delim
24782 ac_ct_CXX!$ac_ct_CXX$ac_delim
24783 CPPBIN!$CPPBIN$ac_delim
24784 TOOLSDIR!$TOOLSDIR$ac_delim
24785 XMKMF!$XMKMF$ac_delim
24786 CPP!$CPP$ac_delim
24787 X_CFLAGS!$X_CFLAGS$ac_delim
24788 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
24789 X_LIBS!$X_LIBS$ac_delim
24790 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
24791 LEX!$LEX$ac_delim
24792 LEXLIB!$LEXLIB$ac_delim
24793 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
24794 XLEX!$XLEX$ac_delim
24795 BISON!$BISON$ac_delim
24796 AS!$AS$ac_delim
24797 ac_ct_AS!$ac_ct_AS$ac_delim
24798 LD!$LD$ac_delim
24799 AR!$AR$ac_delim
24800 RANLIB!$RANLIB$ac_delim
24801 STRIP!$STRIP$ac_delim
24802 WINDRES!$WINDRES$ac_delim
24803 LN_S!$LN_S$ac_delim
24804 LN!$LN$ac_delim
24805 GREP!$GREP$ac_delim
24806 EGREP!$EGREP$ac_delim
24807 _ACEOF
24808
24809   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
24810     break
24811   elif $ac_last_try; then
24812     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24813 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24814    { (exit 1); exit 1; }; }
24815   else
24816     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24817   fi
24818 done
24819
24820 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24821 if test -n "$ac_eof"; then
24822   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24823   ac_eof=`expr $ac_eof + 1`
24824 fi
24825
24826 cat >>$CONFIG_STATUS <<_ACEOF
24827 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24829 /^[      ]*@MAKE_RULES@[         ]*$/{
24830 r $MAKE_RULES
24831 d
24832 }
24833 /^[      ]*@MAKE_DLL_RULES@[     ]*$/{
24834 r $MAKE_DLL_RULES
24835 d
24836 }
24837 /^[      ]*@MAKE_IMPLIB_RULES@[  ]*$/{
24838 r $MAKE_IMPLIB_RULES
24839 d
24840 }
24841 /^[      ]*@MAKE_TEST_RULES@[    ]*$/{
24842 r $MAKE_TEST_RULES
24843 d
24844 }
24845 /^[      ]*@MAKE_PROG_RULES@[    ]*$/{
24846 r $MAKE_PROG_RULES
24847 d
24848 }
24849 _ACEOF
24850 sed '
24851 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24852 s/^/s,@/; s/!/@,|#_!!_#|/
24853 :n
24854 t n
24855 s/'"$ac_delim"'$/,g/; t
24856 s/$/\\/; p
24857 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24858 ' >>$CONFIG_STATUS <conf$$subs.sed
24859 rm -f conf$$subs.sed
24860 cat >>$CONFIG_STATUS <<_ACEOF
24861 CEOF$ac_eof
24862 _ACEOF
24863
24864
24865 ac_delim='%!_!# '
24866 for ac_last_try in false false false false false :; do
24867   cat >conf$$subs.sed <<_ACEOF
24868 LDCONFIG!$LDCONFIG$ac_delim
24869 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24870 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24871 INSTALL_DATA!$INSTALL_DATA$ac_delim
24872 LINT!$LINT$ac_delim
24873 LINTFLAGS!$LINTFLAGS$ac_delim
24874 FONTFORGE!$FONTFORGE$ac_delim
24875 PKG_CONFIG!$PKG_CONFIG$ac_delim
24876 PRELINK!$PRELINK$ac_delim
24877 LIBPTHREAD!$LIBPTHREAD$ac_delim
24878 XLIB!$XLIB$ac_delim
24879 XFILES!$XFILES$ac_delim
24880 OPENGLFILES!$OPENGLFILES$ac_delim
24881 GLU32FILES!$GLU32FILES$ac_delim
24882 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
24883 GLUT_LIBS!$GLUT_LIBS$ac_delim
24884 GLUT32FILES!$GLUT32FILES$ac_delim
24885 NASLIBS!$NASLIBS$ac_delim
24886 XML2LIBS!$XML2LIBS$ac_delim
24887 XML2INCL!$XML2INCL$ac_delim
24888 XSLTLIBS!$XSLTLIBS$ac_delim
24889 XSLTINCL!$XSLTINCL$ac_delim
24890 HALINCL!$HALINCL$ac_delim
24891 CURSESLIBS!$CURSESLIBS$ac_delim
24892 sane_devel!$sane_devel$ac_delim
24893 SANELIBS!$SANELIBS$ac_delim
24894 SANEINCL!$SANEINCL$ac_delim
24895 gphoto2_devel!$gphoto2_devel$ac_delim
24896 gphoto2port_devel!$gphoto2port_devel$ac_delim
24897 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
24898 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
24899 ICULIBS!$ICULIBS$ac_delim
24900 RESOLVLIBS!$RESOLVLIBS$ac_delim
24901 LCMSLIBS!$LCMSLIBS$ac_delim
24902 LDAPLIBS!$LDAPLIBS$ac_delim
24903 FREETYPELIBS!$FREETYPELIBS$ac_delim
24904 FREETYPEINCL!$FREETYPEINCL$ac_delim
24905 ft_devel!$ft_devel$ac_delim
24906 ft_devel2!$ft_devel2$ac_delim
24907 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
24908 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
24909 ARTSLIBS!$ARTSLIBS$ac_delim
24910 ARTSINCL!$ARTSINCL$ac_delim
24911 ESDCONFIG!$ESDCONFIG$ac_delim
24912 ESDLIBS!$ESDLIBS$ac_delim
24913 ESDINCL!$ESDINCL$ac_delim
24914 ALSALIBS!$ALSALIBS$ac_delim
24915 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
24916 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
24917 BUILTINFLAG!$BUILTINFLAG$ac_delim
24918 DLLEXT!$DLLEXT$ac_delim
24919 DLLFLAGS!$DLLFLAGS$ac_delim
24920 LDSHARED!$LDSHARED$ac_delim
24921 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
24922 LIBEXT!$LIBEXT$ac_delim
24923 IMPLIBEXT!$IMPLIBEXT$ac_delim
24924 LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim
24925 DLLTOOL!$DLLTOOL$ac_delim
24926 DLLWRAP!$DLLWRAP$ac_delim
24927 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
24928 IOKITLIB!$IOKITLIB$ac_delim
24929 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
24930 COREAUDIO!$COREAUDIO$ac_delim
24931 CROSSTEST!$CROSSTEST$ac_delim
24932 CROSSCC!$CROSSCC$ac_delim
24933 CROSSWINDRES!$CROSSWINDRES$ac_delim
24934 LDPATH!$LDPATH$ac_delim
24935 CRTLIBS!$CRTLIBS$ac_delim
24936 SOCKETLIBS!$SOCKETLIBS$ac_delim
24937 MAIN_BINARY!$MAIN_BINARY$ac_delim
24938 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
24939 LDD!$LDD$ac_delim
24940 LIBDL!$LIBDL$ac_delim
24941 LIBPOLL!$LIBPOLL$ac_delim
24942 LIBOBJS!$LIBOBJS$ac_delim
24943 LTLIBOBJS!$LTLIBOBJS$ac_delim
24944 _ACEOF
24945
24946   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
24947     break
24948   elif $ac_last_try; then
24949     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24950 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24951    { (exit 1); exit 1; }; }
24952   else
24953     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24954   fi
24955 done
24956
24957 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24958 if test -n "$ac_eof"; then
24959   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24960   ac_eof=`expr $ac_eof + 1`
24961 fi
24962
24963 cat >>$CONFIG_STATUS <<_ACEOF
24964 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24965 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24966 _ACEOF
24967 sed '
24968 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24969 s/^/s,@/; s/!/@,|#_!!_#|/
24970 :n
24971 t n
24972 s/'"$ac_delim"'$/,g/; t
24973 s/$/\\/; p
24974 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24975 ' >>$CONFIG_STATUS <conf$$subs.sed
24976 rm -f conf$$subs.sed
24977 cat >>$CONFIG_STATUS <<_ACEOF
24978 :end
24979 s/|#_!!_#|//g
24980 CEOF$ac_eof
24981 _ACEOF
24982
24983
24984 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24985 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24986 # trailing colons and then remove the whole line if VPATH becomes empty
24987 # (actually we leave an empty line to preserve line numbers).
24988 if test "x$srcdir" = x.; then
24989   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24990 s/:*\$(srcdir):*/:/
24991 s/:*\${srcdir}:*/:/
24992 s/:*@srcdir@:*/:/
24993 s/^\([^=]*=[     ]*\):*/\1/
24994 s/:*$//
24995 s/^[^=]*=[       ]*$//
24996 }'
24997 fi
24998
24999 cat >>$CONFIG_STATUS <<\_ACEOF
25000 fi # test -n "$CONFIG_FILES"
25001
25002
25003 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25004 do
25005   case $ac_tag in
25006   :[FHLC]) ac_mode=$ac_tag; continue;;
25007   esac
25008   case $ac_mode$ac_tag in
25009   :[FHL]*:*);;
25010   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25011 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25012    { (exit 1); exit 1; }; };;
25013   :[FH]-) ac_tag=-:-;;
25014   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25015   esac
25016   ac_save_IFS=$IFS
25017   IFS=:
25018   set x $ac_tag
25019   IFS=$ac_save_IFS
25020   shift
25021   ac_file=$1
25022   shift
25023
25024   case $ac_mode in
25025   :L) ac_source=$1;;
25026   :[FH])
25027     ac_file_inputs=
25028     for ac_f
25029     do
25030       case $ac_f in
25031       -) ac_f="$tmp/stdin";;
25032       *) # Look for the file first in the build tree, then in the source tree
25033          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25034          # because $ac_f cannot contain `:'.
25035          test -f "$ac_f" ||
25036            case $ac_f in
25037            [\\/$]*) false;;
25038            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25039            esac ||
25040            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25041 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25042    { (exit 1); exit 1; }; };;
25043       esac
25044       ac_file_inputs="$ac_file_inputs $ac_f"
25045     done
25046
25047     # Let's still pretend it is `configure' which instantiates (i.e., don't
25048     # use $as_me), people would be surprised to read:
25049     #    /* config.h.  Generated by config.status.  */
25050     configure_input="Generated from "`IFS=:
25051           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25052     if test x"$ac_file" != x-; then
25053       configure_input="$ac_file.  $configure_input"
25054       { echo "$as_me:$LINENO: creating $ac_file" >&5
25055 echo "$as_me: creating $ac_file" >&6;}
25056     fi
25057
25058     case $ac_tag in
25059     *:-:* | *:-) cat >"$tmp/stdin";;
25060     esac
25061     ;;
25062   esac
25063
25064   ac_dir=`$as_dirname -- "$ac_file" ||
25065 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25066          X"$ac_file" : 'X\(//\)[^/]' \| \
25067          X"$ac_file" : 'X\(//\)$' \| \
25068          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25069 echo X"$ac_file" |
25070     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25071             s//\1/
25072             q
25073           }
25074           /^X\(\/\/\)[^/].*/{
25075             s//\1/
25076             q
25077           }
25078           /^X\(\/\/\)$/{
25079             s//\1/
25080             q
25081           }
25082           /^X\(\/\).*/{
25083             s//\1/
25084             q
25085           }
25086           s/.*/./; q'`
25087   { as_dir="$ac_dir"
25088   case $as_dir in #(
25089   -*) as_dir=./$as_dir;;
25090   esac
25091   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25092     as_dirs=
25093     while :; do
25094       case $as_dir in #(
25095       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25096       *) as_qdir=$as_dir;;
25097       esac
25098       as_dirs="'$as_qdir' $as_dirs"
25099       as_dir=`$as_dirname -- "$as_dir" ||
25100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25101          X"$as_dir" : 'X\(//\)[^/]' \| \
25102          X"$as_dir" : 'X\(//\)$' \| \
25103          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25104 echo X"$as_dir" |
25105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25106             s//\1/
25107             q
25108           }
25109           /^X\(\/\/\)[^/].*/{
25110             s//\1/
25111             q
25112           }
25113           /^X\(\/\/\)$/{
25114             s//\1/
25115             q
25116           }
25117           /^X\(\/\).*/{
25118             s//\1/
25119             q
25120           }
25121           s/.*/./; q'`
25122       test -d "$as_dir" && break
25123     done
25124     test -z "$as_dirs" || eval "mkdir $as_dirs"
25125   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25126 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25127    { (exit 1); exit 1; }; }; }
25128   ac_builddir=.
25129
25130 case "$ac_dir" in
25131 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25132 *)
25133   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25134   # A ".." for each directory in $ac_dir_suffix.
25135   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25136   case $ac_top_builddir_sub in
25137   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25138   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25139   esac ;;
25140 esac
25141 ac_abs_top_builddir=$ac_pwd
25142 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25143 # for backward compatibility:
25144 ac_top_builddir=$ac_top_build_prefix
25145
25146 case $srcdir in
25147   .)  # We are building in place.
25148     ac_srcdir=.
25149     ac_top_srcdir=$ac_top_builddir_sub
25150     ac_abs_top_srcdir=$ac_pwd ;;
25151   [\\/]* | ?:[\\/]* )  # Absolute name.
25152     ac_srcdir=$srcdir$ac_dir_suffix;
25153     ac_top_srcdir=$srcdir
25154     ac_abs_top_srcdir=$srcdir ;;
25155   *) # Relative name.
25156     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25157     ac_top_srcdir=$ac_top_build_prefix$srcdir
25158     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25159 esac
25160 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25161
25162
25163   case $ac_mode in
25164   :F)
25165   #
25166   # CONFIG_FILE
25167   #
25168
25169   case $INSTALL in
25170   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25171   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25172   esac
25173 _ACEOF
25174
25175 cat >>$CONFIG_STATUS <<\_ACEOF
25176 # If the template does not know about datarootdir, expand it.
25177 # FIXME: This hack should be removed a few years after 2.60.
25178 ac_datarootdir_hack=; ac_datarootdir_seen=
25179
25180 case `sed -n '/datarootdir/ {
25181   p
25182   q
25183 }
25184 /@datadir@/p
25185 /@docdir@/p
25186 /@infodir@/p
25187 /@localedir@/p
25188 /@mandir@/p
25189 ' $ac_file_inputs` in
25190 *datarootdir*) ac_datarootdir_seen=yes;;
25191 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25192   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25193 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25194 _ACEOF
25195 cat >>$CONFIG_STATUS <<_ACEOF
25196   ac_datarootdir_hack='
25197   s&@datadir@&$datadir&g
25198   s&@docdir@&$docdir&g
25199   s&@infodir@&$infodir&g
25200   s&@localedir@&$localedir&g
25201   s&@mandir@&$mandir&g
25202     s&\\\${datarootdir}&$datarootdir&g' ;;
25203 esac
25204 _ACEOF
25205
25206 # Neutralize VPATH when `$srcdir' = `.'.
25207 # Shell code in configure.ac might set extrasub.
25208 # FIXME: do we really want to maintain this feature?
25209 cat >>$CONFIG_STATUS <<_ACEOF
25210   sed "$ac_vpsub
25211 $extrasub
25212 _ACEOF
25213 cat >>$CONFIG_STATUS <<\_ACEOF
25214 :t
25215 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25216 s&@configure_input@&$configure_input&;t t
25217 s&@top_builddir@&$ac_top_builddir_sub&;t t
25218 s&@srcdir@&$ac_srcdir&;t t
25219 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25220 s&@top_srcdir@&$ac_top_srcdir&;t t
25221 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25222 s&@builddir@&$ac_builddir&;t t
25223 s&@abs_builddir@&$ac_abs_builddir&;t t
25224 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25225 s&@INSTALL@&$ac_INSTALL&;t t
25226 $ac_datarootdir_hack
25227 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25228
25229 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25230   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25231   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25232   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25233 which seems to be undefined.  Please make sure it is defined." >&5
25234 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25235 which seems to be undefined.  Please make sure it is defined." >&2;}
25236
25237   rm -f "$tmp/stdin"
25238   case $ac_file in
25239   -) cat "$tmp/out"; rm -f "$tmp/out";;
25240   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25241   esac
25242  ;;
25243   :H)
25244   #
25245   # CONFIG_HEADER
25246   #
25247 _ACEOF
25248
25249 # Transform confdefs.h into a sed script `conftest.defines', that
25250 # substitutes the proper values into config.h.in to produce config.h.
25251 rm -f conftest.defines conftest.tail
25252 # First, append a space to every undef/define line, to ease matching.
25253 echo 's/$/ /' >conftest.defines
25254 # Then, protect against being on the right side of a sed subst, or in
25255 # an unquoted here document, in config.status.  If some macros were
25256 # called several times there might be several #defines for the same
25257 # symbol, which is useless.  But do not sort them, since the last
25258 # AC_DEFINE must be honored.
25259 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25260 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25261 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25262 # PARAMS is the parameter list in the macro definition--in most cases, it's
25263 # just an empty string.
25264 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25265 ac_dB='\\)[      (].*,\\1define\\2'
25266 ac_dC=' '
25267 ac_dD=' ,'
25268
25269 uniq confdefs.h |
25270   sed -n '
25271         t rset
25272         :rset
25273         s/^[     ]*#[    ]*define[       ][      ]*//
25274         t ok
25275         d
25276         :ok
25277         s/[\\&,]/\\&/g
25278         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25279         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25280   ' >>conftest.defines
25281
25282 # Remove the space that was appended to ease matching.
25283 # Then replace #undef with comments.  This is necessary, for
25284 # example, in the case of _POSIX_SOURCE, which is predefined and required
25285 # on some systems where configure will not decide to define it.
25286 # (The regexp can be short, since the line contains either #define or #undef.)
25287 echo 's/ $//
25288 s,^[     #]*u.*,/* & */,' >>conftest.defines
25289
25290 # Break up conftest.defines:
25291 ac_max_sed_lines=50
25292
25293 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25294 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25295 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25296 # et cetera.
25297 ac_in='$ac_file_inputs'
25298 ac_out='"$tmp/out1"'
25299 ac_nxt='"$tmp/out2"'
25300
25301 while :
25302 do
25303   # Write a here document:
25304     cat >>$CONFIG_STATUS <<_ACEOF
25305     # First, check the format of the line:
25306     cat >"\$tmp/defines.sed" <<\\CEOF
25307 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25308 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25309 b
25310 :def
25311 _ACEOF
25312   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25313   echo 'CEOF
25314     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25315   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25316   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25317   grep . conftest.tail >/dev/null || break
25318   rm -f conftest.defines
25319   mv conftest.tail conftest.defines
25320 done
25321 rm -f conftest.defines conftest.tail
25322
25323 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25324 cat >>$CONFIG_STATUS <<\_ACEOF
25325   if test x"$ac_file" != x-; then
25326     echo "/* $configure_input  */" >"$tmp/config.h"
25327     cat "$ac_result" >>"$tmp/config.h"
25328     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25329       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25330 echo "$as_me: $ac_file is unchanged" >&6;}
25331     else
25332       rm -f $ac_file
25333       mv "$tmp/config.h" $ac_file
25334     fi
25335   else
25336     echo "/* $configure_input  */"
25337     cat "$ac_result"
25338   fi
25339   rm -f "$tmp/out12"
25340  ;;
25341
25342   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25343 echo "$as_me: executing $ac_file commands" >&6;}
25344  ;;
25345   esac
25346
25347
25348   case $ac_file$ac_mode in
25349     "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25350 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25351     "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25352 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25353     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
25354 echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
25355     "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25356 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25357     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25358 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25359     "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25360 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25361
25362   esac
25363 done # for ac_tag
25364
25365
25366 { (exit 0); exit 0; }
25367 _ACEOF
25368 chmod +x $CONFIG_STATUS
25369 ac_clean_files=$ac_clean_files_save
25370
25371
25372 # configure is writing to config.log, and then calls config.status.
25373 # config.status does its own redirection, appending to config.log.
25374 # Unfortunately, on DOS this fails, as config.log is still kept open
25375 # by configure, so config.status won't be able to write to it; its
25376 # output is simply discarded.  So we exec the FD to /dev/null,
25377 # effectively closing config.log, so it can be properly (re)opened and
25378 # appended to by config.status.  When coming back to configure, we
25379 # need to make the FD available again.
25380 if test "$no_create" != yes; then
25381   ac_cs_success=:
25382   ac_config_status_args=
25383   test "$silent" = yes &&
25384     ac_config_status_args="$ac_config_status_args --quiet"
25385   exec 5>/dev/null
25386   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25387   exec 5>>config.log
25388   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25389   # would make configure fail if this is the last instruction.
25390   $ac_cs_success || { (exit 1); exit 1; }
25391 fi
25392
25393
25394
25395 if test "$verbose" = "yes"
25396 then
25397     if test "$ac_cv_header_capi20_h" != "yes" -o "$ac_cv_header_linux_capi_h" != "yes"
25398   then
25399     echo >&2
25400     { echo "$as_me:$LINENO: libcapi20 development files not found." >&5
25401 echo "$as_me: libcapi20 development files not found." >&6;}
25402     { echo "$as_me:$LINENO: Wine will be built without ISDN support. (capi2032.dll)" >&5
25403 echo "$as_me: Wine will be built without ISDN support. (capi2032.dll)" >&6;}
25404   fi
25405
25406     if test "$ac_cv_header_cups_cups_h" != "yes"
25407   then
25408     echo >&2
25409     { echo "$as_me:$LINENO: libcups development files not found." >&5
25410 echo "$as_me: libcups development files not found." >&6;}
25411     { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
25412 echo "$as_me: Wine will be built without CUPS support." >&6;}
25413   fi
25414
25415
25416     if test "$ac_cv_header_gphoto2_camera_h" != "yes"
25417   then
25418     echo >&2
25419     { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
25420 echo "$as_me: libgphoto2 development files not found." >&6;}
25421     if test "$ac_cv_header_sane_sane_h" = "yes"
25422     then
25423       { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
25424 echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
25425     else
25426       { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
25427 echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
25428     fi
25429   fi
25430
25431       if test "$ac_cv_header_hal_libhal_h" != "yes"
25432   then
25433     echo >&2
25434     { echo "$as_me:$LINENO: libhal development files not found." >&5
25435 echo "$as_me: libhal development files not found." >&6;}
25436     { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
25437 echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
25438   fi
25439
25440     if test "$ac_cv_header_unicode_ubidi_h" != "yes"
25441   then
25442     echo >&2
25443     { echo "$as_me:$LINENO: libicu development files not found." >&5
25444 echo "$as_me: libicu development files not found." >&6;}
25445     { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
25446 echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
25447   fi
25448
25449     if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
25450   then
25451     echo >&2
25452     { echo "$as_me:$LINENO: liblcms development files not found." >&5
25453 echo "$as_me: liblcms development files not found." >&6;}
25454     { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
25455 echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
25456   fi
25457
25458     if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
25459   then
25460     echo >&2
25461     { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
25462 echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
25463     { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
25464 echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
25465   fi
25466
25467     if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
25468   then
25469     echo >&2
25470     { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
25471 echo "$as_me: lib(n)curses development files not found." >&6;}
25472     { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
25473 echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
25474   fi
25475
25476     if test "$ac_cv_header_sane_sane_h" != "yes"
25477   then
25478     echo >&2
25479     { echo "$as_me:$LINENO: libsane development files not found." >&5
25480 echo "$as_me: libsane development files not found." >&6;}
25481     { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
25482 echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
25483   fi
25484
25485       if test "$have_x" = "yes"
25486   then
25487         if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
25488     then
25489       echo >&2
25490       { echo "$as_me:$LINENO: libxext development files not found." >&5
25491 echo "$as_me: libxext development files not found." >&6;}
25492       { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
25493 echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
25494     fi
25495
25496         if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
25497     then
25498       echo >&2
25499       { echo "$as_me:$LINENO: libXrandr development files not found." >&5
25500 echo "$as_me: libXrandr development files not found." >&6;}
25501       { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
25502 echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
25503     fi
25504
25505         if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
25506     then
25507       echo >&2
25508       { echo "$as_me:$LINENO: libXrender development files not found." >&5
25509 echo "$as_me: libXrender development files not found." >&6;}
25510       { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
25511 echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
25512     fi
25513
25514         if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
25515     then
25516       echo >&2
25517       { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
25518 echo "$as_me: libXxf86vm development files not found." >&6;}
25519       { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
25520 echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
25521     fi
25522   fi
25523
25524     if test "$ac_cv_header_libxml_parser_h" != "yes"
25525   then
25526     echo >&2
25527     { echo "$as_me:$LINENO: libxml2 development files not found." >&5
25528 echo "$as_me: libxml2 development files not found." >&6;}
25529     { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
25530 echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
25531   fi
25532
25533     if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
25534   then
25535     echo >&2
25536     { echo "$as_me:$LINENO: libxslt development files not found." >&5
25537 echo "$as_me: libxslt development files not found." >&6;}
25538     { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
25539 echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
25540   fi
25541 fi
25542
25543
25544 if test "$have_x" = "no"
25545 then
25546   echo >&2
25547   { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25548 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25549   { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25550 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25551   { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25552 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25553   { echo "$as_me:$LINENO: WARNING:  packages of Xlib/Xfree86 at the very least." >&5
25554 echo "$as_me: WARNING:  packages of Xlib/Xfree86 at the very least." >&2;}
25555 fi
25556
25557 if test "$wine_cv_opengl_headers_found" = "no" -o "$wine_cv_opengl_header_version_OK" = "no" -o "$wine_cv_opengl_libs_found" = "no"
25558 then
25559   echo >&2
25560   { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
25561 echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
25562   { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
25563 echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
25564   if test "$wine_cv_opengl_headers_found" = "no"
25565   then
25566     { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
25567 echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
25568   fi
25569   if test "$wine_cv_opengl_header_version_OK" = "no"
25570   then
25571     { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25572 echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
25573   fi
25574   if test "$wine_cv_opengl_libs_found" = "no"
25575   then
25576     { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
25577 echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
25578   fi
25579 fi
25580
25581 if test "$wine_cv_msg_freetype" = "yes"
25582 then
25583   echo >&2
25584   { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25585 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25586   { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25587 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25588   { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25589 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25590   { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25591 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
25592 fi
25593
25594 if test -z "$FONTSSUBDIRS"
25595 then
25596   echo >&2
25597   if test "$FONTFORGE" = "false"
25598   then
25599     { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
25600 echo "$as_me: WARNING: FontForge is missing." >&2;}
25601   else
25602     { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
25603 echo "$as_me: WARNING: FreeType is missing." >&2;}
25604   fi
25605   { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
25606 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
25607 fi
25608
25609 if test -z "$ALSALIBS" -a \
25610         -z "$ARTSC_LIBS" -a \
25611         -z "$AUDIOIOLIBS" -a \
25612         -z "$NASLIBS" -a \
25613         -z "$ESD_LIBS" -a \
25614         -z "$ac_cv_lib_soname_jack" -a \
25615         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
25616         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
25617         "$ac_cv_header_soundcard_h" != "yes"
25618 then
25619   echo >&2
25620   { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
25621 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
25622   { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
25623 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
25624   { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
25625 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
25626 fi
25627
25628 echo
25629 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
25630 echo
25631