configure: Make the libjpeg soname check depend on the header check.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Wine 0.9.40.
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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='Wine'
576 PACKAGE_TARNAME='wine'
577 PACKAGE_VERSION='0.9.40'
578 PACKAGE_STRING='Wine 0.9.40'
579 PACKAGE_BUGREPORT='wine-devel@winehq.org'
580
581 ac_unique_file="server/atom.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 WIN16_FILES
664 WIN16_INSTALL
665 SET_MAKE
666 CC
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
673 CXX
674 CXXFLAGS
675 ac_ct_CXX
676 CPPBIN
677 TOOLSDIR
678 XMKMF
679 CPP
680 X_CFLAGS
681 X_PRE_LIBS
682 X_LIBS
683 X_EXTRA_LIBS
684 FLEX
685 BISON
686 AS
687 ac_ct_AS
688 LD
689 AR
690 RANLIB
691 STRIP
692 WINDRES
693 LN_S
694 LN
695 GREP
696 EGREP
697 LDCONFIG
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 LINT
702 LINTFLAGS
703 FONTFORGE
704 PKG_CONFIG
705 PRELINK
706 LIBPTHREAD
707 XLIB
708 XFILES
709 OPENGLFILES
710 GLU32FILES
711 OPENGL_LIBS
712 QUARTZFILES
713 DLLEXT
714 DLLFLAGS
715 LDSHARED
716 LDDLLFLAGS
717 LIBEXT
718 IMPLIBEXT
719 LDRPATH_INSTALL
720 LDRPATH_LOCAL
721 LDD
722 DLLTOOL
723 DLLWRAP
724 MINGWAR
725 COREFOUNDATIONLIB
726 IOKITLIB
727 LDEXECFLAGS
728 DISKARBITRATIONLIB
729 COREAUDIO
730 CARBONLIB
731 CROSSTEST
732 CROSSCC
733 CROSSWINDRES
734 NASLIBS
735 XML2LIBS
736 XML2INCL
737 XSLTLIBS
738 XSLTINCL
739 HALINCL
740 sane_devel
741 SANEINCL
742 gphoto2_devel
743 gphoto2port_devel
744 GPHOTO2LIBS
745 GPHOTO2INCL
746 ICULIBS
747 RESOLVLIBS
748 LCMSLIBS
749 LDAPLIBS
750 FREETYPELIBS
751 FREETYPEINCL
752 ft_devel
753 ft_devel2
754 FONTSSUBDIRS
755 ESDCONFIG
756 ESDLIBS
757 ESDINCL
758 ALSALIBS
759 AUDIOIOLIBS
760 EXTRACFLAGS
761 BUILTINFLAG
762 LDPATH
763 CRTLIBS
764 SOCKETLIBS
765 MAIN_BINARY
766 EXTRA_BINARIES
767 LIBDL
768 LIBPOLL
769 DEPENDENCIES
770 LIBOBJS
771 LTLIBOBJS'
772 ac_subst_files='MAKE_RULES
773 MAKE_DLL_RULES
774 MAKE_IMPLIB_RULES
775 MAKE_TEST_RULES
776 MAKE_PROG_RULES'
777       ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 CXX
786 CXXFLAGS
787 CCC
788 XMKMF
789 CPP'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842   # If the previous option needs an argument, assign it.
843   if test -n "$ac_prev"; then
844     eval $ac_prev=\$ac_option
845     ac_prev=
846     continue
847   fi
848
849   case $ac_option in
850   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851   *)    ac_optarg=yes ;;
852   esac
853
854   # Accept the important Cygnus configure options, so we can diagnose typos.
855
856   case $ac_dashdash$ac_option in
857   --)
858     ac_dashdash=yes ;;
859
860   -bindir | --bindir | --bindi | --bind | --bin | --bi)
861     ac_prev=bindir ;;
862   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863     bindir=$ac_optarg ;;
864
865   -build | --build | --buil | --bui | --bu)
866     ac_prev=build_alias ;;
867   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868     build_alias=$ac_optarg ;;
869
870   -cache-file | --cache-file | --cache-fil | --cache-fi \
871   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872     ac_prev=cache_file ;;
873   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875     cache_file=$ac_optarg ;;
876
877   --config-cache | -C)
878     cache_file=config.cache ;;
879
880   -datadir | --datadir | --datadi | --datad)
881     ac_prev=datadir ;;
882   -datadir=* | --datadir=* | --datadi=* | --datad=*)
883     datadir=$ac_optarg ;;
884
885   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886   | --dataroo | --dataro | --datar)
887     ac_prev=datarootdir ;;
888   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890     datarootdir=$ac_optarg ;;
891
892   -disable-* | --disable-*)
893     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894     # Reject names that are not valid shell variable names.
895     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
896       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897    { (exit 1); exit 1; }; }
898     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
899     eval enable_$ac_feature=no ;;
900
901   -docdir | --docdir | --docdi | --doc | --do)
902     ac_prev=docdir ;;
903   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904     docdir=$ac_optarg ;;
905
906   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907     ac_prev=dvidir ;;
908   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909     dvidir=$ac_optarg ;;
910
911   -enable-* | --enable-*)
912     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913     # Reject names that are not valid shell variable names.
914     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
915       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916    { (exit 1); exit 1; }; }
917     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
918     eval enable_$ac_feature=\$ac_optarg ;;
919
920   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922   | --exec | --exe | --ex)
923     ac_prev=exec_prefix ;;
924   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926   | --exec=* | --exe=* | --ex=*)
927     exec_prefix=$ac_optarg ;;
928
929   -gas | --gas | --ga | --g)
930     # Obsolete; use --with-gas.
931     with_gas=yes ;;
932
933   -help | --help | --hel | --he | -h)
934     ac_init_help=long ;;
935   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936     ac_init_help=recursive ;;
937   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938     ac_init_help=short ;;
939
940   -host | --host | --hos | --ho)
941     ac_prev=host_alias ;;
942   -host=* | --host=* | --hos=* | --ho=*)
943     host_alias=$ac_optarg ;;
944
945   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946     ac_prev=htmldir ;;
947   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948   | --ht=*)
949     htmldir=$ac_optarg ;;
950
951   -includedir | --includedir | --includedi | --included | --include \
952   | --includ | --inclu | --incl | --inc)
953     ac_prev=includedir ;;
954   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955   | --includ=* | --inclu=* | --incl=* | --inc=*)
956     includedir=$ac_optarg ;;
957
958   -infodir | --infodir | --infodi | --infod | --info | --inf)
959     ac_prev=infodir ;;
960   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961     infodir=$ac_optarg ;;
962
963   -libdir | --libdir | --libdi | --libd)
964     ac_prev=libdir ;;
965   -libdir=* | --libdir=* | --libdi=* | --libd=*)
966     libdir=$ac_optarg ;;
967
968   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969   | --libexe | --libex | --libe)
970     ac_prev=libexecdir ;;
971   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972   | --libexe=* | --libex=* | --libe=*)
973     libexecdir=$ac_optarg ;;
974
975   -localedir | --localedir | --localedi | --localed | --locale)
976     ac_prev=localedir ;;
977   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978     localedir=$ac_optarg ;;
979
980   -localstatedir | --localstatedir | --localstatedi | --localstated \
981   | --localstate | --localstat | --localsta | --localst | --locals)
982     ac_prev=localstatedir ;;
983   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985     localstatedir=$ac_optarg ;;
986
987   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988     ac_prev=mandir ;;
989   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990     mandir=$ac_optarg ;;
991
992   -nfp | --nfp | --nf)
993     # Obsolete; use --without-fp.
994     with_fp=no ;;
995
996   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997   | --no-cr | --no-c | -n)
998     no_create=yes ;;
999
1000   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002     no_recursion=yes ;;
1003
1004   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006   | --oldin | --oldi | --old | --ol | --o)
1007     ac_prev=oldincludedir ;;
1008   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011     oldincludedir=$ac_optarg ;;
1012
1013   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014     ac_prev=prefix ;;
1015   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016     prefix=$ac_optarg ;;
1017
1018   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019   | --program-pre | --program-pr | --program-p)
1020     ac_prev=program_prefix ;;
1021   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023     program_prefix=$ac_optarg ;;
1024
1025   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026   | --program-suf | --program-su | --program-s)
1027     ac_prev=program_suffix ;;
1028   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030     program_suffix=$ac_optarg ;;
1031
1032   -program-transform-name | --program-transform-name \
1033   | --program-transform-nam | --program-transform-na \
1034   | --program-transform-n | --program-transform- \
1035   | --program-transform | --program-transfor \
1036   | --program-transfo | --program-transf \
1037   | --program-trans | --program-tran \
1038   | --progr-tra | --program-tr | --program-t)
1039     ac_prev=program_transform_name ;;
1040   -program-transform-name=* | --program-transform-name=* \
1041   | --program-transform-nam=* | --program-transform-na=* \
1042   | --program-transform-n=* | --program-transform-=* \
1043   | --program-transform=* | --program-transfor=* \
1044   | --program-transfo=* | --program-transf=* \
1045   | --program-trans=* | --program-tran=* \
1046   | --progr-tra=* | --program-tr=* | --program-t=*)
1047     program_transform_name=$ac_optarg ;;
1048
1049   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050     ac_prev=pdfdir ;;
1051   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052     pdfdir=$ac_optarg ;;
1053
1054   -psdir | --psdir | --psdi | --psd | --ps)
1055     ac_prev=psdir ;;
1056   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057     psdir=$ac_optarg ;;
1058
1059   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060   | -silent | --silent | --silen | --sile | --sil)
1061     silent=yes ;;
1062
1063   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064     ac_prev=sbindir ;;
1065   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066   | --sbi=* | --sb=*)
1067     sbindir=$ac_optarg ;;
1068
1069   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071   | --sharedst | --shareds | --shared | --share | --shar \
1072   | --sha | --sh)
1073     ac_prev=sharedstatedir ;;
1074   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077   | --sha=* | --sh=*)
1078     sharedstatedir=$ac_optarg ;;
1079
1080   -site | --site | --sit)
1081     ac_prev=site ;;
1082   -site=* | --site=* | --sit=*)
1083     site=$ac_optarg ;;
1084
1085   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086     ac_prev=srcdir ;;
1087   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088     srcdir=$ac_optarg ;;
1089
1090   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091   | --syscon | --sysco | --sysc | --sys | --sy)
1092     ac_prev=sysconfdir ;;
1093   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095     sysconfdir=$ac_optarg ;;
1096
1097   -target | --target | --targe | --targ | --tar | --ta | --t)
1098     ac_prev=target_alias ;;
1099   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100     target_alias=$ac_optarg ;;
1101
1102   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103     verbose=yes ;;
1104
1105   -version | --version | --versio | --versi | --vers | -V)
1106     ac_init_version=: ;;
1107
1108   -with-* | --with-*)
1109     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112       { echo "$as_me: error: invalid package name: $ac_package" >&2
1113    { (exit 1); exit 1; }; }
1114     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115     eval with_$ac_package=\$ac_optarg ;;
1116
1117   -without-* | --without-*)
1118     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119     # Reject names that are not valid shell variable names.
1120     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121       { echo "$as_me: error: invalid package name: $ac_package" >&2
1122    { (exit 1); exit 1; }; }
1123     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1124     eval with_$ac_package=no ;;
1125
1126   --x)
1127     # Obsolete; use --with-x.
1128     with_x=yes ;;
1129
1130   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131   | --x-incl | --x-inc | --x-in | --x-i)
1132     ac_prev=x_includes ;;
1133   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135     x_includes=$ac_optarg ;;
1136
1137   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139     ac_prev=x_libraries ;;
1140   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142     x_libraries=$ac_optarg ;;
1143
1144   -*) { echo "$as_me: error: unrecognized option: $ac_option
1145 Try \`$0 --help' for more information." >&2
1146    { (exit 1); exit 1; }; }
1147     ;;
1148
1149   *=*)
1150     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151     # Reject names that are not valid shell variable names.
1152     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1153       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154    { (exit 1); exit 1; }; }
1155     eval $ac_envvar=\$ac_optarg
1156     export $ac_envvar ;;
1157
1158   *)
1159     # FIXME: should be removed in autoconf 3.0.
1160     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1164     ;;
1165
1166   esac
1167 done
1168
1169 if test -n "$ac_prev"; then
1170   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171   { echo "$as_me: error: missing argument to $ac_option" >&2
1172    { (exit 1); exit 1; }; }
1173 fi
1174
1175 # Be sure to have absolute directory names.
1176 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177                 datadir sysconfdir sharedstatedir localstatedir includedir \
1178                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179                 libdir localedir mandir
1180 do
1181   eval ac_val=\$$ac_var
1182   case $ac_val in
1183     [\\/$]* | ?:[\\/]* )  continue;;
1184     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185   esac
1186   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187    { (exit 1); exit 1; }; }
1188 done
1189
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1193 build=$build_alias
1194 host=$host_alias
1195 target=$target_alias
1196
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199   if test "x$build_alias" = x; then
1200     cross_compiling=maybe
1201     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202     If a cross compiler is detected then cross compile mode will be used." >&2
1203   elif test "x$build_alias" != "x$host_alias"; then
1204     cross_compiling=yes
1205   fi
1206 fi
1207
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210
1211 test "$silent" = yes && exec 6>/dev/null
1212
1213
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217   { echo "$as_me: error: Working directory cannot be determined" >&2
1218    { (exit 1); exit 1; }; }
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220   { echo "$as_me: error: pwd does not report name of working directory" >&2
1221    { (exit 1); exit 1; }; }
1222
1223
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226   ac_srcdir_defaulted=yes
1227   # Try the directory containing this script, then the parent directory.
1228   ac_confdir=`$as_dirname -- "$0" ||
1229 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230          X"$0" : 'X\(//\)[^/]' \| \
1231          X"$0" : 'X\(//\)$' \| \
1232          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1233 echo X"$0" |
1234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235             s//\1/
1236             q
1237           }
1238           /^X\(\/\/\)[^/].*/{
1239             s//\1/
1240             q
1241           }
1242           /^X\(\/\/\)$/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\).*/{
1247             s//\1/
1248             q
1249           }
1250           s/.*/./; q'`
1251   srcdir=$ac_confdir
1252   if test ! -r "$srcdir/$ac_unique_file"; then
1253     srcdir=..
1254   fi
1255 else
1256   ac_srcdir_defaulted=no
1257 fi
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261    { (exit 1); exit 1; }; }
1262 fi
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266    { (exit 1); exit 1; }; }
1267         pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270   srcdir=.
1271 fi
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280   eval ac_env_${ac_var}_value=\$${ac_var}
1281   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1284
1285 #
1286 # Report the --help message.
1287 #
1288 if test "$ac_init_help" = "long"; then
1289   # Omit some internal or obsolete options to make the list less imposing.
1290   # This message is too long to be a string in the A/UX 3.1 sh.
1291   cat <<_ACEOF
1292 \`configure' configures Wine 0.9.40 to adapt to many kinds of systems.
1293
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE.  See below for descriptions of some of the useful variables.
1298
1299 Defaults for the options are specified in brackets.
1300
1301 Configuration:
1302   -h, --help              display this help and exit
1303       --help=short        display options specific to this package
1304       --help=recursive    display the short help of all the included packages
1305   -V, --version           display version information and exit
1306   -q, --quiet, --silent   do not print \`checking...' messages
1307       --cache-file=FILE   cache test results in FILE [disabled]
1308   -C, --config-cache      alias for \`--cache-file=config.cache'
1309   -n, --no-create         do not create output files
1310       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1311
1312 Installation directories:
1313   --prefix=PREFIX         install architecture-independent files in PREFIX
1314                           [$ac_default_prefix]
1315   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1316                           [PREFIX]
1317
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1322
1323 For better control, use the options below.
1324
1325 Fine tuning of the installation directories:
1326   --bindir=DIR           user executables [EPREFIX/bin]
1327   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1328   --libexecdir=DIR       program executables [EPREFIX/libexec]
1329   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1330   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1331   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1332   --libdir=DIR           object code libraries [EPREFIX/lib]
1333   --includedir=DIR       C header files [PREFIX/include]
1334   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1335   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1336   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1337   --infodir=DIR          info documentation [DATAROOTDIR/info]
1338   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1339   --mandir=DIR           man documentation [DATAROOTDIR/man]
1340   --docdir=DIR           documentation root [DATAROOTDIR/doc/wine]
1341   --htmldir=DIR          html documentation [DOCDIR]
1342   --dvidir=DIR           dvi documentation [DOCDIR]
1343   --pdfdir=DIR           pdf documentation [DOCDIR]
1344   --psdir=DIR            ps documentation [DOCDIR]
1345 _ACEOF
1346
1347   cat <<\_ACEOF
1348
1349 X features:
1350   --x-includes=DIR    X include files are in DIR
1351   --x-libraries=DIR   X library files are in DIR
1352
1353 System types:
1354   --build=BUILD     configure for building on BUILD [guessed]
1355   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1356 _ACEOF
1357 fi
1358
1359 if test -n "$ac_init_help"; then
1360   case $ac_init_help in
1361      short | recursive ) echo "Configuration of Wine 0.9.40:";;
1362    esac
1363   cat <<\_ACEOF
1364
1365 Optional Features:
1366   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1367   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1368   --disable-win16         do not include Win16 support
1369   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1370                           binaries)
1371
1372 Optional Packages:
1373   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1374   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1375   --without-opengl        do not use OpenGL
1376   --with-wine-tools=<dir> use Wine tools from directory <dir>
1377   --with-x                use the X Window System
1378
1379 Some influential environment variables:
1380   CC          C compiler command
1381   CFLAGS      C compiler flags
1382   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1383               nonstandard directory <lib dir>
1384   LIBS        libraries to pass to the linker, e.g. -l<library>
1385   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386               you have headers in a nonstandard directory <include dir>
1387   CXX         C++ compiler command
1388   CXXFLAGS    C++ compiler flags
1389   XMKMF       Path to xmkmf, Makefile generator for X Window System
1390   CPP         C preprocessor
1391
1392 Use these variables to override the choices made by `configure' or to help
1393 it to find libraries and programs with nonstandard names/locations.
1394
1395 Report bugs to <wine-devel@winehq.org>.
1396 _ACEOF
1397 ac_status=$?
1398 fi
1399
1400 if test "$ac_init_help" = "recursive"; then
1401   # If there are subdirs, report their specific --help.
1402   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403     test -d "$ac_dir" || continue
1404     ac_builddir=.
1405
1406 case "$ac_dir" in
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *)
1409   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1410   # A ".." for each directory in $ac_dir_suffix.
1411   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1412   case $ac_top_builddir_sub in
1413   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415   esac ;;
1416 esac
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1421
1422 case $srcdir in
1423   .)  # We are building in place.
1424     ac_srcdir=.
1425     ac_top_srcdir=$ac_top_builddir_sub
1426     ac_abs_top_srcdir=$ac_pwd ;;
1427   [\\/]* | ?:[\\/]* )  # Absolute name.
1428     ac_srcdir=$srcdir$ac_dir_suffix;
1429     ac_top_srcdir=$srcdir
1430     ac_abs_top_srcdir=$srcdir ;;
1431   *) # Relative name.
1432     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433     ac_top_srcdir=$ac_top_build_prefix$srcdir
1434     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1435 esac
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1437
1438     cd "$ac_dir" || { ac_status=$?; continue; }
1439     # Check for guested configure.
1440     if test -f "$ac_srcdir/configure.gnu"; then
1441       echo &&
1442       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443     elif test -f "$ac_srcdir/configure"; then
1444       echo &&
1445       $SHELL "$ac_srcdir/configure" --help=recursive
1446     else
1447       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448     fi || ac_status=$?
1449     cd "$ac_pwd" || { ac_status=$?; break; }
1450   done
1451 fi
1452
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1455   cat <<\_ACEOF
1456 Wine configure 0.9.40
1457 generated by GNU Autoconf 2.61
1458
1459 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1460 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1463 _ACEOF
1464   exit
1465 fi
1466 cat >config.log <<_ACEOF
1467 This file contains any messages produced by compilers while
1468 running configure, to aid debugging if configure makes a mistake.
1469
1470 It was created by Wine $as_me 0.9.40, which was
1471 generated by GNU Autoconf 2.61.  Invocation command line was
1472
1473   $ $0 $@
1474
1475 _ACEOF
1476 exec 5>>config.log
1477 {
1478 cat <<_ASUNAME
1479 ## --------- ##
1480 ## Platform. ##
1481 ## --------- ##
1482
1483 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1484 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1485 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1486 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1487 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1488
1489 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1490 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1491
1492 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1493 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1494 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1495 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1496 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1497 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1498 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1499
1500 _ASUNAME
1501
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1504 do
1505   IFS=$as_save_IFS
1506   test -z "$as_dir" && as_dir=.
1507   echo "PATH: $as_dir"
1508 done
1509 IFS=$as_save_IFS
1510
1511 } >&5
1512
1513 cat >&5 <<_ACEOF
1514
1515
1516 ## ----------- ##
1517 ## Core tests. ##
1518 ## ----------- ##
1519
1520 _ACEOF
1521
1522
1523 # Keep a trace of the command line.
1524 # Strip out --no-create and --no-recursion so they do not pile up.
1525 # Strip out --silent because we don't want to record it for future runs.
1526 # Also quote any args containing shell meta-characters.
1527 # Make two passes to allow for proper duplicate-argument suppression.
1528 ac_configure_args=
1529 ac_configure_args0=
1530 ac_configure_args1=
1531 ac_must_keep_next=false
1532 for ac_pass in 1 2
1533 do
1534   for ac_arg
1535   do
1536     case $ac_arg in
1537     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1538     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1539     | -silent | --silent | --silen | --sile | --sil)
1540       continue ;;
1541     *\'*)
1542       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1543     esac
1544     case $ac_pass in
1545     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1546     2)
1547       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1548       if test $ac_must_keep_next = true; then
1549         ac_must_keep_next=false # Got value, back to normal.
1550       else
1551         case $ac_arg in
1552           *=* | --config-cache | -C | -disable-* | --disable-* \
1553           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1554           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1555           | -with-* | --with-* | -without-* | --without-* | --x)
1556             case "$ac_configure_args0 " in
1557               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1558             esac
1559             ;;
1560           -* ) ac_must_keep_next=true ;;
1561         esac
1562       fi
1563       ac_configure_args="$ac_configure_args '$ac_arg'"
1564       ;;
1565     esac
1566   done
1567 done
1568 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1569 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1570
1571 # When interrupted or exit'd, cleanup temporary files, and complete
1572 # config.log.  We remove comments because anyway the quotes in there
1573 # would cause problems or look ugly.
1574 # WARNING: Use '\'' to represent an apostrophe within the trap.
1575 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1576 trap 'exit_status=$?
1577   # Save into config.log some information that might help in debugging.
1578   {
1579     echo
1580
1581     cat <<\_ASBOX
1582 ## ---------------- ##
1583 ## Cache variables. ##
1584 ## ---------------- ##
1585 _ASBOX
1586     echo
1587     # The following way of writing the cache mishandles newlines in values,
1588 (
1589   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1590     eval ac_val=\$$ac_var
1591     case $ac_val in #(
1592     *${as_nl}*)
1593       case $ac_var in #(
1594       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1595 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1596       esac
1597       case $ac_var in #(
1598       _ | IFS | as_nl) ;; #(
1599       *) $as_unset $ac_var ;;
1600       esac ;;
1601     esac
1602   done
1603   (set) 2>&1 |
1604     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1605     *${as_nl}ac_space=\ *)
1606       sed -n \
1607         "s/'\''/'\''\\\\'\'''\''/g;
1608           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1609       ;; #(
1610     *)
1611       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1612       ;;
1613     esac |
1614     sort
1615 )
1616     echo
1617
1618     cat <<\_ASBOX
1619 ## ----------------- ##
1620 ## Output variables. ##
1621 ## ----------------- ##
1622 _ASBOX
1623     echo
1624     for ac_var in $ac_subst_vars
1625     do
1626       eval ac_val=\$$ac_var
1627       case $ac_val in
1628       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1629       esac
1630       echo "$ac_var='\''$ac_val'\''"
1631     done | sort
1632     echo
1633
1634     if test -n "$ac_subst_files"; then
1635       cat <<\_ASBOX
1636 ## ------------------- ##
1637 ## File substitutions. ##
1638 ## ------------------- ##
1639 _ASBOX
1640       echo
1641       for ac_var in $ac_subst_files
1642       do
1643         eval ac_val=\$$ac_var
1644         case $ac_val in
1645         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1646         esac
1647         echo "$ac_var='\''$ac_val'\''"
1648       done | sort
1649       echo
1650     fi
1651
1652     if test -s confdefs.h; then
1653       cat <<\_ASBOX
1654 ## ----------- ##
1655 ## confdefs.h. ##
1656 ## ----------- ##
1657 _ASBOX
1658       echo
1659       cat confdefs.h
1660       echo
1661     fi
1662     test "$ac_signal" != 0 &&
1663       echo "$as_me: caught signal $ac_signal"
1664     echo "$as_me: exit $exit_status"
1665   } >&5
1666   rm -f core *.core core.conftest.* &&
1667     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1668     exit $exit_status
1669 ' 0
1670 for ac_signal in 1 2 13 15; do
1671   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1672 done
1673 ac_signal=0
1674
1675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1676 rm -f -r conftest* confdefs.h
1677
1678 # Predefined preprocessor variables.
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_NAME "$PACKAGE_NAME"
1682 _ACEOF
1683
1684
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687 _ACEOF
1688
1689
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692 _ACEOF
1693
1694
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 _ACEOF
1698
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702 _ACEOF
1703
1704
1705 # Let the site file select an alternate cache file if it wants to.
1706 # Prefer explicitly selected file to automatically selected ones.
1707 if test -n "$CONFIG_SITE"; then
1708   set x "$CONFIG_SITE"
1709 elif test "x$prefix" != xNONE; then
1710   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1711 else
1712   set x "$ac_default_prefix/share/config.site" \
1713         "$ac_default_prefix/etc/config.site"
1714 fi
1715 shift
1716 for ac_site_file
1717 do
1718   if test -r "$ac_site_file"; then
1719     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1720 echo "$as_me: loading site script $ac_site_file" >&6;}
1721     sed 's/^/| /' "$ac_site_file" >&5
1722     . "$ac_site_file"
1723   fi
1724 done
1725
1726 if test -r "$cache_file"; then
1727   # Some versions of bash will fail to source /dev/null (special
1728   # files actually), so we avoid doing that.
1729   if test -f "$cache_file"; then
1730     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1731 echo "$as_me: loading cache $cache_file" >&6;}
1732     case $cache_file in
1733       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1734       *)                      . "./$cache_file";;
1735     esac
1736   fi
1737 else
1738   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1739 echo "$as_me: creating cache $cache_file" >&6;}
1740   >$cache_file
1741 fi
1742
1743 # Check that the precious variables saved in the cache have kept the same
1744 # value.
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748   eval ac_new_set=\$ac_env_${ac_var}_set
1749   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750   eval ac_new_val=\$ac_env_${ac_var}_value
1751   case $ac_old_set,$ac_new_set in
1752     set,)
1753       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755       ac_cache_corrupted=: ;;
1756     ,set)
1757       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759       ac_cache_corrupted=: ;;
1760     ,);;
1761     *)
1762       if test "x$ac_old_val" != "x$ac_new_val"; then
1763         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1766 echo "$as_me:   former value:  $ac_old_val" >&2;}
1767         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1768 echo "$as_me:   current value: $ac_new_val" >&2;}
1769         ac_cache_corrupted=:
1770       fi;;
1771   esac
1772   # Pass precious variables to config.status.
1773   if test "$ac_new_set" = set; then
1774     case $ac_new_val in
1775     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776     *) ac_arg=$ac_var=$ac_new_val ;;
1777     esac
1778     case " $ac_configure_args " in
1779       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1780       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781     esac
1782   fi
1783 done
1784 if $ac_cache_corrupted; then
1785   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789    { (exit 1); exit 1; }; }
1790 fi
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821
1822
1823
1824 ac_config_headers="$ac_config_headers include/config.h"
1825
1826 ac_aux_dir=
1827 for ac_dir in tools "$srcdir"/tools; do
1828   if test -f "$ac_dir/install-sh"; then
1829     ac_aux_dir=$ac_dir
1830     ac_install_sh="$ac_aux_dir/install-sh -c"
1831     break
1832   elif test -f "$ac_dir/install.sh"; then
1833     ac_aux_dir=$ac_dir
1834     ac_install_sh="$ac_aux_dir/install.sh -c"
1835     break
1836   elif test -f "$ac_dir/shtool"; then
1837     ac_aux_dir=$ac_dir
1838     ac_install_sh="$ac_aux_dir/shtool install -c"
1839     break
1840   fi
1841 done
1842 if test -z "$ac_aux_dir"; then
1843   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1844 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1845    { (exit 1); exit 1; }; }
1846 fi
1847
1848 # These three variables are undocumented and unsupported,
1849 # and are intended to be withdrawn in a future Autoconf release.
1850 # They can cause serious problems if a builder's source tree is in a directory
1851 # whose full name contains unusual characters.
1852 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1853 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1854 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1855
1856
1857
1858
1859 # Check whether --enable-win16 was given.
1860 if test "${enable_win16+set}" = set; then
1861   enableval=$enable_win16;
1862 fi
1863
1864 # Check whether --enable-win64 was given.
1865 if test "${enable_win64+set}" = set; then
1866   enableval=$enable_win64;
1867 fi
1868
1869
1870
1871 # Check whether --with-opengl was given.
1872 if test "${with_opengl+set}" = set; then
1873   withval=$with_opengl;
1874 fi
1875
1876
1877 # Check whether --with-wine-tools was given.
1878 if test "${with_wine_tools+set}" = set; then
1879   withval=$with_wine_tools;
1880 fi
1881
1882
1883 # Make sure we can run config.sub.
1884 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1885   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1886 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1887    { (exit 1); exit 1; }; }
1888
1889 { echo "$as_me:$LINENO: checking build system type" >&5
1890 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1891 if test "${ac_cv_build+set}" = set; then
1892   echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894   ac_build_alias=$build_alias
1895 test "x$ac_build_alias" = x &&
1896   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1897 test "x$ac_build_alias" = x &&
1898   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1899 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1900    { (exit 1); exit 1; }; }
1901 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1902   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1903 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1904    { (exit 1); exit 1; }; }
1905
1906 fi
1907 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1908 echo "${ECHO_T}$ac_cv_build" >&6; }
1909 case $ac_cv_build in
1910 *-*-*) ;;
1911 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1912 echo "$as_me: error: invalid value of canonical build" >&2;}
1913    { (exit 1); exit 1; }; };;
1914 esac
1915 build=$ac_cv_build
1916 ac_save_IFS=$IFS; IFS='-'
1917 set x $ac_cv_build
1918 shift
1919 build_cpu=$1
1920 build_vendor=$2
1921 shift; shift
1922 # Remember, the first character of IFS is used to create $*,
1923 # except with old shells:
1924 build_os=$*
1925 IFS=$ac_save_IFS
1926 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1927
1928
1929 { echo "$as_me:$LINENO: checking host system type" >&5
1930 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_host+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   if test "x$host_alias" = x; then
1935   ac_cv_host=$ac_cv_build
1936 else
1937   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1938     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1939 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1940    { (exit 1); exit 1; }; }
1941 fi
1942
1943 fi
1944 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1945 echo "${ECHO_T}$ac_cv_host" >&6; }
1946 case $ac_cv_host in
1947 *-*-*) ;;
1948 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1949 echo "$as_me: error: invalid value of canonical host" >&2;}
1950    { (exit 1); exit 1; }; };;
1951 esac
1952 host=$ac_cv_host
1953 ac_save_IFS=$IFS; IFS='-'
1954 set x $ac_cv_host
1955 shift
1956 host_cpu=$1
1957 host_vendor=$2
1958 shift; shift
1959 # Remember, the first character of IFS is used to create $*,
1960 # except with old shells:
1961 host_os=$*
1962 IFS=$ac_save_IFS
1963 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1964
1965
1966 case $host in
1967   x86_64*linux*)
1968     if test "x$enable_win64" != "xyes"
1969     then
1970       test -n "$CC" || CC="gcc -m32"
1971       test -n "$LD" || LD="ld -m elf_i386"
1972       test -n "$AS" || AS="as --32"
1973       host_cpu="i386"
1974     fi
1975     ;;
1976 esac
1977
1978 case $host_cpu in
1979   *i[3456789]86*)
1980     if test "x$enable_win16" != "xno"
1981     then
1982       enable_win16="yes"
1983     fi
1984     ;;
1985 esac
1986
1987 WIN16_FILES="\$(WIN16_FILES)"
1988
1989 WIN16_INSTALL="\$(WIN16_INSTALL)"
1990
1991 if test "x$enable_win16" != "xyes"
1992 then
1993   WIN16_FILES=""
1994   WIN16_INSTALL=""
1995 fi
1996
1997 case "$srcdir" in
1998  .) ;;
1999  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2000       { { echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
2001 You need to run 'make distclean' in the source tree first." >&5
2002 echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
2003 You need to run 'make distclean' in the source tree first." >&2;}
2004    { (exit 1); exit 1; }; }
2005     fi ;;
2006 esac
2007
2008
2009 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2010 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2011 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2012 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   cat >conftest.make <<\_ACEOF
2016 SHELL = /bin/sh
2017 all:
2018         @echo '@@@%%%=$(MAKE)=@@@%%%'
2019 _ACEOF
2020 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2021 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2022   *@@@%%%=?*=@@@%%%*)
2023     eval ac_cv_prog_make_${ac_make}_set=yes;;
2024   *)
2025     eval ac_cv_prog_make_${ac_make}_set=no;;
2026 esac
2027 rm -f conftest.make
2028 fi
2029 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2030   { echo "$as_me:$LINENO: result: yes" >&5
2031 echo "${ECHO_T}yes" >&6; }
2032   SET_MAKE=
2033 else
2034   { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2036   SET_MAKE="MAKE=${MAKE-make}"
2037 fi
2038
2039 ac_ext=c
2040 ac_cpp='$CPP $CPPFLAGS'
2041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044 if test -n "$ac_tool_prefix"; then
2045   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2046 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$CC"; then
2053   ac_cv_prog_CC="$CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2062     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068 IFS=$as_save_IFS
2069
2070 fi
2071 fi
2072 CC=$ac_cv_prog_CC
2073 if test -n "$CC"; then
2074   { echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6; }
2076 else
2077   { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079 fi
2080
2081
2082 fi
2083 if test -z "$ac_cv_prog_CC"; then
2084   ac_ct_CC=$CC
2085   # Extract the first word of "gcc", so it can be a program name with args.
2086 set dummy gcc; ac_word=$2
2087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090   echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092   if test -n "$ac_ct_CC"; then
2093   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094 else
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098   IFS=$as_save_IFS
2099   test -z "$as_dir" && as_dir=.
2100   for ac_exec_ext in '' $ac_executable_extensions; do
2101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2102     ac_cv_prog_ac_ct_CC="gcc"
2103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104     break 2
2105   fi
2106 done
2107 done
2108 IFS=$as_save_IFS
2109
2110 fi
2111 fi
2112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2113 if test -n "$ac_ct_CC"; then
2114   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2115 echo "${ECHO_T}$ac_ct_CC" >&6; }
2116 else
2117   { echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6; }
2119 fi
2120
2121   if test "x$ac_ct_CC" = x; then
2122     CC=""
2123   else
2124     case $cross_compiling:$ac_tool_warned in
2125 yes:)
2126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2127 whose name does not start with the host triplet.  If you think this
2128 configuration is useful to you, please write to autoconf@gnu.org." >&5
2129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2130 whose name does not start with the host triplet.  If you think this
2131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2132 ac_tool_warned=yes ;;
2133 esac
2134     CC=$ac_ct_CC
2135   fi
2136 else
2137   CC="$ac_cv_prog_CC"
2138 fi
2139
2140 if test -z "$CC"; then
2141           if test -n "$ac_tool_prefix"; then
2142     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2143 set dummy ${ac_tool_prefix}cc; ac_word=$2
2144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146 if test "${ac_cv_prog_CC+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149   if test -n "$CC"; then
2150   ac_cv_prog_CC="$CC" # Let the user override the test.
2151 else
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157   for ac_exec_ext in '' $ac_executable_extensions; do
2158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2159     ac_cv_prog_CC="${ac_tool_prefix}cc"
2160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161     break 2
2162   fi
2163 done
2164 done
2165 IFS=$as_save_IFS
2166
2167 fi
2168 fi
2169 CC=$ac_cv_prog_CC
2170 if test -n "$CC"; then
2171   { echo "$as_me:$LINENO: result: $CC" >&5
2172 echo "${ECHO_T}$CC" >&6; }
2173 else
2174   { echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6; }
2176 fi
2177
2178
2179   fi
2180 fi
2181 if test -z "$CC"; then
2182   # Extract the first word of "cc", so it can be a program name with args.
2183 set dummy cc; ac_word=$2
2184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187   echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189   if test -n "$CC"; then
2190   ac_cv_prog_CC="$CC" # Let the user override the test.
2191 else
2192   ac_prog_rejected=no
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
2196   IFS=$as_save_IFS
2197   test -z "$as_dir" && as_dir=.
2198   for ac_exec_ext in '' $ac_executable_extensions; do
2199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2201        ac_prog_rejected=yes
2202        continue
2203      fi
2204     ac_cv_prog_CC="cc"
2205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206     break 2
2207   fi
2208 done
2209 done
2210 IFS=$as_save_IFS
2211
2212 if test $ac_prog_rejected = yes; then
2213   # We found a bogon in the path, so make sure we never use it.
2214   set dummy $ac_cv_prog_CC
2215   shift
2216   if test $# != 0; then
2217     # We chose a different compiler from the bogus one.
2218     # However, it has the same basename, so the bogon will be chosen
2219     # first if we set CC to just the basename; use the full file name.
2220     shift
2221     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2222   fi
2223 fi
2224 fi
2225 fi
2226 CC=$ac_cv_prog_CC
2227 if test -n "$CC"; then
2228   { echo "$as_me:$LINENO: result: $CC" >&5
2229 echo "${ECHO_T}$CC" >&6; }
2230 else
2231   { echo "$as_me:$LINENO: result: no" >&5
2232 echo "${ECHO_T}no" >&6; }
2233 fi
2234
2235
2236 fi
2237 if test -z "$CC"; then
2238   if test -n "$ac_tool_prefix"; then
2239   for ac_prog in cl.exe
2240   do
2241     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2245 if test "${ac_cv_prog_CC+set}" = set; then
2246   echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248   if test -n "$CC"; then
2249   ac_cv_prog_CC="$CC" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254   IFS=$as_save_IFS
2255   test -z "$as_dir" && as_dir=.
2256   for ac_exec_ext in '' $ac_executable_extensions; do
2257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260     break 2
2261   fi
2262 done
2263 done
2264 IFS=$as_save_IFS
2265
2266 fi
2267 fi
2268 CC=$ac_cv_prog_CC
2269 if test -n "$CC"; then
2270   { echo "$as_me:$LINENO: result: $CC" >&5
2271 echo "${ECHO_T}$CC" >&6; }
2272 else
2273   { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2275 fi
2276
2277
2278     test -n "$CC" && break
2279   done
2280 fi
2281 if test -z "$CC"; then
2282   ac_ct_CC=$CC
2283   for ac_prog in cl.exe
2284 do
2285   # Extract the first word of "$ac_prog", so it can be a program name with args.
2286 set dummy $ac_prog; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   if test -n "$ac_ct_CC"; then
2293   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2297 do
2298   IFS=$as_save_IFS
2299   test -z "$as_dir" && as_dir=.
2300   for ac_exec_ext in '' $ac_executable_extensions; do
2301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302     ac_cv_prog_ac_ct_CC="$ac_prog"
2303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304     break 2
2305   fi
2306 done
2307 done
2308 IFS=$as_save_IFS
2309
2310 fi
2311 fi
2312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313 if test -n "$ac_ct_CC"; then
2314   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2315 echo "${ECHO_T}$ac_ct_CC" >&6; }
2316 else
2317   { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2319 fi
2320
2321
2322   test -n "$ac_ct_CC" && break
2323 done
2324
2325   if test "x$ac_ct_CC" = x; then
2326     CC=""
2327   else
2328     case $cross_compiling:$ac_tool_warned in
2329 yes:)
2330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2331 whose name does not start with the host triplet.  If you think this
2332 configuration is useful to you, please write to autoconf@gnu.org." >&5
2333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2334 whose name does not start with the host triplet.  If you think this
2335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2336 ac_tool_warned=yes ;;
2337 esac
2338     CC=$ac_ct_CC
2339   fi
2340 fi
2341
2342 fi
2343
2344
2345 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: no acceptable C compiler found in \$PATH
2348 See \`config.log' for more details." >&2;}
2349    { (exit 1); exit 1; }; }
2350
2351 # Provide some information about the compiler.
2352 echo "$as_me:$LINENO: checking for C compiler version" >&5
2353 ac_compiler=`set X $ac_compile; echo $2`
2354 { (ac_try="$ac_compiler --version >&5"
2355 case "(($ac_try" in
2356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357   *) ac_try_echo=$ac_try;;
2358 esac
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360   (eval "$ac_compiler --version >&5") 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }
2364 { (ac_try="$ac_compiler -v >&5"
2365 case "(($ac_try" in
2366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367   *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370   (eval "$ac_compiler -v >&5") 2>&5
2371   ac_status=$?
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); }
2374 { (ac_try="$ac_compiler -V >&5"
2375 case "(($ac_try" in
2376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377   *) ac_try_echo=$ac_try;;
2378 esac
2379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2380   (eval "$ac_compiler -V >&5") 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }
2384
2385 cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h.  */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h.  */
2391
2392 int
2393 main ()
2394 {
2395
2396   ;
2397   return 0;
2398 }
2399 _ACEOF
2400 ac_clean_files_save=$ac_clean_files
2401 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2402 # Try to create an executable without -o first, disregard a.out.
2403 # It will help us diagnose broken compilers, and finding out an intuition
2404 # of exeext.
2405 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2406 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2407 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2408 #
2409 # List of possible output files, starting from the most likely.
2410 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2411 # only as a last resort.  b.out is created by i960 compilers.
2412 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2413 #
2414 # The IRIX 6 linker writes into existing files which may not be
2415 # executable, retaining their permissions.  Remove them first so a
2416 # subsequent execution test works.
2417 ac_rmfiles=
2418 for ac_file in $ac_files
2419 do
2420   case $ac_file in
2421     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2422     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2423   esac
2424 done
2425 rm -f $ac_rmfiles
2426
2427 if { (ac_try="$ac_link_default"
2428 case "(($ac_try" in
2429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430   *) ac_try_echo=$ac_try;;
2431 esac
2432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433   (eval "$ac_link_default") 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; then
2437   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2439 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2440 # so that the user can short-circuit this test for compilers unknown to
2441 # Autoconf.
2442 for ac_file in $ac_files ''
2443 do
2444   test -f "$ac_file" || continue
2445   case $ac_file in
2446     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2447         ;;
2448     [ab].out )
2449         # We found the default executable, but exeext='' is most
2450         # certainly right.
2451         break;;
2452     *.* )
2453         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2454         then :; else
2455            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456         fi
2457         # We set ac_cv_exeext here because the later test for it is not
2458         # safe: cross compilers may not add the suffix if given an `-o'
2459         # argument, so we may need to know it at that point already.
2460         # Even if this section looks crufty: it has the advantage of
2461         # actually working.
2462         break;;
2463     * )
2464         break;;
2465   esac
2466 done
2467 test "$ac_cv_exeext" = no && ac_cv_exeext=
2468
2469 else
2470   ac_file=''
2471 fi
2472
2473 { echo "$as_me:$LINENO: result: $ac_file" >&5
2474 echo "${ECHO_T}$ac_file" >&6; }
2475 if test -z "$ac_file"; then
2476   echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2480 See \`config.log' for more details." >&5
2481 echo "$as_me: error: C compiler cannot create executables
2482 See \`config.log' for more details." >&2;}
2483    { (exit 77); exit 77; }; }
2484 fi
2485
2486 ac_exeext=$ac_cv_exeext
2487
2488 # Check that the compiler produces executables we can run.  If not, either
2489 # the compiler is broken, or we cross compile.
2490 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2491 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2492 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2493 # If not cross compiling, check that we can run a simple program.
2494 if test "$cross_compiling" != yes; then
2495   if { ac_try='./$ac_file'
2496   { (case "(($ac_try" in
2497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498   *) ac_try_echo=$ac_try;;
2499 esac
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501   (eval "$ac_try") 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; }; then
2505     cross_compiling=no
2506   else
2507     if test "$cross_compiling" = maybe; then
2508         cross_compiling=yes
2509     else
2510         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2511 If you meant to cross compile, use \`--host'.
2512 See \`config.log' for more details." >&5
2513 echo "$as_me: error: cannot run C compiled programs.
2514 If you meant to cross compile, use \`--host'.
2515 See \`config.log' for more details." >&2;}
2516    { (exit 1); exit 1; }; }
2517     fi
2518   fi
2519 fi
2520 { echo "$as_me:$LINENO: result: yes" >&5
2521 echo "${ECHO_T}yes" >&6; }
2522
2523 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2524 ac_clean_files=$ac_clean_files_save
2525 # Check that the compiler produces executables we can run.  If not, either
2526 # the compiler is broken, or we cross compile.
2527 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2528 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2529 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2530 echo "${ECHO_T}$cross_compiling" >&6; }
2531
2532 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2533 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2534 if { (ac_try="$ac_link"
2535 case "(($ac_try" in
2536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537   *) ac_try_echo=$ac_try;;
2538 esac
2539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540   (eval "$ac_link") 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }; then
2544   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2545 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2546 # work properly (i.e., refer to `conftest.exe'), while it won't with
2547 # `rm'.
2548 for ac_file in conftest.exe conftest conftest.*; do
2549   test -f "$ac_file" || continue
2550   case $ac_file in
2551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2552     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553           break;;
2554     * ) break;;
2555   esac
2556 done
2557 else
2558   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2559 See \`config.log' for more details." >&5
2560 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2561 See \`config.log' for more details." >&2;}
2562    { (exit 1); exit 1; }; }
2563 fi
2564
2565 rm -f conftest$ac_cv_exeext
2566 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2567 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2568
2569 rm -f conftest.$ac_ext
2570 EXEEXT=$ac_cv_exeext
2571 ac_exeext=$EXEEXT
2572 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2573 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2574 if test "${ac_cv_objext+set}" = set; then
2575   echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577   cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h.  */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h.  */
2583
2584 int
2585 main ()
2586 {
2587
2588   ;
2589   return 0;
2590 }
2591 _ACEOF
2592 rm -f conftest.o conftest.obj
2593 if { (ac_try="$ac_compile"
2594 case "(($ac_try" in
2595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596   *) ac_try_echo=$ac_try;;
2597 esac
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599   (eval "$ac_compile") 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; then
2603   for ac_file in conftest.o conftest.obj conftest.*; do
2604   test -f "$ac_file" || continue;
2605   case $ac_file in
2606     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2607     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2608        break;;
2609   esac
2610 done
2611 else
2612   echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2614
2615 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2618 See \`config.log' for more details." >&2;}
2619    { (exit 1); exit 1; }; }
2620 fi
2621
2622 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2623 fi
2624 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2625 echo "${ECHO_T}$ac_cv_objext" >&6; }
2626 OBJEXT=$ac_cv_objext
2627 ac_objext=$OBJEXT
2628 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2629 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2630 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h.  */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h.  */
2639
2640 int
2641 main ()
2642 {
2643 #ifndef __GNUC__
2644        choke me
2645 #endif
2646
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext
2652 if { (ac_try="$ac_compile"
2653 case "(($ac_try" in
2654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655   *) ac_try_echo=$ac_try;;
2656 esac
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658   (eval "$ac_compile") 2>conftest.er1
2659   ac_status=$?
2660   grep -v '^ *+' conftest.er1 >conftest.err
2661   rm -f conftest.er1
2662   cat conftest.err >&5
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); } && {
2665          test -z "$ac_c_werror_flag" ||
2666          test ! -s conftest.err
2667        } && test -s conftest.$ac_objext; 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          test -z "$ac_c_werror_flag" ||
2724          test ! -s conftest.err
2725        } && test -s conftest.$ac_objext; then
2726   ac_cv_prog_cc_g=yes
2727 else
2728   echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2730
2731         CFLAGS=""
2732       cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738
2739 int
2740 main ()
2741 {
2742
2743   ;
2744   return 0;
2745 }
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2749 case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754   (eval "$ac_compile") 2>conftest.er1
2755   ac_status=$?
2756   grep -v '^ *+' conftest.er1 >conftest.err
2757   rm -f conftest.er1
2758   cat conftest.err >&5
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); } && {
2761          test -z "$ac_c_werror_flag" ||
2762          test ! -s conftest.err
2763        } && test -s conftest.$ac_objext; then
2764   :
2765 else
2766   echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768
2769         ac_c_werror_flag=$ac_save_c_werror_flag
2770          CFLAGS="-g"
2771          cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h.  */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h.  */
2777
2778 int
2779 main ()
2780 {
2781
2782   ;
2783   return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (ac_try="$ac_compile"
2788 case "(($ac_try" in
2789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790   *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793   (eval "$ac_compile") 2>conftest.er1
2794   ac_status=$?
2795   grep -v '^ *+' conftest.er1 >conftest.err
2796   rm -f conftest.er1
2797   cat conftest.err >&5
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); } && {
2800          test -z "$ac_c_werror_flag" ||
2801          test ! -s conftest.err
2802        } && test -s conftest.$ac_objext; then
2803   ac_cv_prog_cc_g=yes
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808
2809 fi
2810
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 fi
2813
2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815 fi
2816
2817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818    ac_c_werror_flag=$ac_save_c_werror_flag
2819 fi
2820 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2822 if test "$ac_test_CFLAGS" = set; then
2823   CFLAGS=$ac_save_CFLAGS
2824 elif test $ac_cv_prog_cc_g = yes; then
2825   if test "$GCC" = yes; then
2826     CFLAGS="-g -O2"
2827   else
2828     CFLAGS="-g"
2829   fi
2830 else
2831   if test "$GCC" = yes; then
2832     CFLAGS="-O2"
2833   else
2834     CFLAGS=
2835   fi
2836 fi
2837 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2838 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_cc_c89+set}" = set; then
2840   echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842   ac_cv_prog_cc_c89=no
2843 ac_save_CC=$CC
2844 cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h.  */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h.  */
2850 #include <stdarg.h>
2851 #include <stdio.h>
2852 #include <sys/types.h>
2853 #include <sys/stat.h>
2854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2855 struct buf { int x; };
2856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2857 static char *e (p, i)
2858      char **p;
2859      int i;
2860 {
2861   return p[i];
2862 }
2863 static char *f (char * (*g) (char **, int), char **p, ...)
2864 {
2865   char *s;
2866   va_list v;
2867   va_start (v,p);
2868   s = g (p, va_arg (v,int));
2869   va_end (v);
2870   return s;
2871 }
2872
2873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2874    function prototypes and stuff, but not '\xHH' hex character constants.
2875    These don't provoke an error unfortunately, instead are silently treated
2876    as 'x'.  The following induces an error, until -std is added to get
2877    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2878    array size at least.  It's necessary to write '\x00'==0 to get something
2879    that's true only with -std.  */
2880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2881
2882 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2883    inside strings and character constants.  */
2884 #define FOO(x) 'x'
2885 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2886
2887 int test (int i, double x);
2888 struct s1 {int (*f) (int a);};
2889 struct s2 {int (*f) (double a);};
2890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2891 int argc;
2892 char **argv;
2893 int
2894 main ()
2895 {
2896 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2897   ;
2898   return 0;
2899 }
2900 _ACEOF
2901 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2902         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2903 do
2904   CC="$ac_save_CC $ac_arg"
2905   rm -f conftest.$ac_objext
2906 if { (ac_try="$ac_compile"
2907 case "(($ac_try" in
2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909   *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912   (eval "$ac_compile") 2>conftest.er1
2913   ac_status=$?
2914   grep -v '^ *+' conftest.er1 >conftest.err
2915   rm -f conftest.er1
2916   cat conftest.err >&5
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); } && {
2919          test -z "$ac_c_werror_flag" ||
2920          test ! -s conftest.err
2921        } && test -s conftest.$ac_objext; then
2922   ac_cv_prog_cc_c89=$ac_arg
2923 else
2924   echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927
2928 fi
2929
2930 rm -f core conftest.err conftest.$ac_objext
2931   test "x$ac_cv_prog_cc_c89" != "xno" && break
2932 done
2933 rm -f conftest.$ac_ext
2934 CC=$ac_save_CC
2935
2936 fi
2937 # AC_CACHE_VAL
2938 case "x$ac_cv_prog_cc_c89" in
2939   x)
2940     { echo "$as_me:$LINENO: result: none needed" >&5
2941 echo "${ECHO_T}none needed" >&6; } ;;
2942   xno)
2943     { echo "$as_me:$LINENO: result: unsupported" >&5
2944 echo "${ECHO_T}unsupported" >&6; } ;;
2945   *)
2946     CC="$CC $ac_cv_prog_cc_c89"
2947     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2948 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2949 esac
2950
2951
2952 ac_ext=c
2953 ac_cpp='$CPP $CPPFLAGS'
2954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957
2958 ac_ext=cpp
2959 ac_cpp='$CXXCPP $CPPFLAGS'
2960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2963 if test -z "$CXX"; then
2964   if test -n "$CCC"; then
2965     CXX=$CCC
2966   else
2967     if test -n "$ac_tool_prefix"; then
2968   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2969   do
2970     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2974 if test "${ac_cv_prog_CXX+set}" = set; then
2975   echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977   if test -n "$CXX"; then
2978   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983   IFS=$as_save_IFS
2984   test -z "$as_dir" && as_dir=.
2985   for ac_exec_ext in '' $ac_executable_extensions; do
2986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989     break 2
2990   fi
2991 done
2992 done
2993 IFS=$as_save_IFS
2994
2995 fi
2996 fi
2997 CXX=$ac_cv_prog_CXX
2998 if test -n "$CXX"; then
2999   { echo "$as_me:$LINENO: result: $CXX" >&5
3000 echo "${ECHO_T}$CXX" >&6; }
3001 else
3002   { echo "$as_me:$LINENO: result: no" >&5
3003 echo "${ECHO_T}no" >&6; }
3004 fi
3005
3006
3007     test -n "$CXX" && break
3008   done
3009 fi
3010 if test -z "$CXX"; then
3011   ac_ct_CXX=$CXX
3012   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3013 do
3014   # Extract the first word of "$ac_prog", so it can be a program name with args.
3015 set dummy $ac_prog; ac_word=$2
3016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3018 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3019   echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021   if test -n "$ac_ct_CXX"; then
3022   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027   IFS=$as_save_IFS
3028   test -z "$as_dir" && as_dir=.
3029   for ac_exec_ext in '' $ac_executable_extensions; do
3030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031     ac_cv_prog_ac_ct_CXX="$ac_prog"
3032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033     break 2
3034   fi
3035 done
3036 done
3037 IFS=$as_save_IFS
3038
3039 fi
3040 fi
3041 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3042 if test -n "$ac_ct_CXX"; then
3043   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3044 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3045 else
3046   { echo "$as_me:$LINENO: result: no" >&5
3047 echo "${ECHO_T}no" >&6; }
3048 fi
3049
3050
3051   test -n "$ac_ct_CXX" && break
3052 done
3053
3054   if test "x$ac_ct_CXX" = x; then
3055     CXX="g++"
3056   else
3057     case $cross_compiling:$ac_tool_warned in
3058 yes:)
3059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3060 whose name does not start with the host triplet.  If you think this
3061 configuration is useful to you, please write to autoconf@gnu.org." >&5
3062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3063 whose name does not start with the host triplet.  If you think this
3064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3065 ac_tool_warned=yes ;;
3066 esac
3067     CXX=$ac_ct_CXX
3068   fi
3069 fi
3070
3071   fi
3072 fi
3073 # Provide some information about the compiler.
3074 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3075 ac_compiler=`set X $ac_compile; echo $2`
3076 { (ac_try="$ac_compiler --version >&5"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082   (eval "$ac_compiler --version >&5") 2>&5
3083   ac_status=$?
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); }
3086 { (ac_try="$ac_compiler -v >&5"
3087 case "(($ac_try" in
3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089   *) ac_try_echo=$ac_try;;
3090 esac
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092   (eval "$ac_compiler -v >&5") 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); }
3096 { (ac_try="$ac_compiler -V >&5"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_compiler -V >&5") 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }
3106
3107 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3108 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3109 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118
3119 int
3120 main ()
3121 {
3122 #ifndef __GNUC__
3123        choke me
3124 #endif
3125
3126   ;
3127   return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_compile") 2>conftest.er1
3138   ac_status=$?
3139   grep -v '^ *+' conftest.er1 >conftest.err
3140   rm -f conftest.er1
3141   cat conftest.err >&5
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } && {
3144          test -z "$ac_cxx_werror_flag" ||
3145          test ! -s conftest.err
3146        } && test -s conftest.$ac_objext; then
3147   ac_compiler_gnu=yes
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152         ac_compiler_gnu=no
3153 fi
3154
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3157
3158 fi
3159 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3160 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3161 GXX=`test $ac_compiler_gnu = yes && echo yes`
3162 ac_test_CXXFLAGS=${CXXFLAGS+set}
3163 ac_save_CXXFLAGS=$CXXFLAGS
3164 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3165 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3166 if test "${ac_cv_prog_cxx_g+set}" = set; then
3167   echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3170    ac_cxx_werror_flag=yes
3171    ac_cv_prog_cxx_g=no
3172    CXXFLAGS="-g"
3173    cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179
3180 int
3181 main ()
3182 {
3183
3184   ;
3185   return 0;
3186 }
3187 _ACEOF
3188 rm -f conftest.$ac_objext
3189 if { (ac_try="$ac_compile"
3190 case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_compile") 2>conftest.er1
3196   ac_status=$?
3197   grep -v '^ *+' conftest.er1 >conftest.err
3198   rm -f conftest.er1
3199   cat conftest.err >&5
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); } && {
3202          test -z "$ac_cxx_werror_flag" ||
3203          test ! -s conftest.err
3204        } && test -s conftest.$ac_objext; then
3205   ac_cv_prog_cxx_g=yes
3206 else
3207   echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210         CXXFLAGS=""
3211       cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h.  */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h.  */
3217
3218 int
3219 main ()
3220 {
3221
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_compile") 2>conftest.er1
3234   ac_status=$?
3235   grep -v '^ *+' conftest.er1 >conftest.err
3236   rm -f conftest.er1
3237   cat conftest.err >&5
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } && {
3240          test -z "$ac_cxx_werror_flag" ||
3241          test ! -s conftest.err
3242        } && test -s conftest.$ac_objext; then
3243   :
3244 else
3245   echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3249          CXXFLAGS="-g"
3250          cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256
3257 int
3258 main ()
3259 {
3260
3261   ;
3262   return 0;
3263 }
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3267 case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272   (eval "$ac_compile") 2>conftest.er1
3273   ac_status=$?
3274   grep -v '^ *+' conftest.er1 >conftest.err
3275   rm -f conftest.er1
3276   cat conftest.err >&5
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); } && {
3279          test -z "$ac_cxx_werror_flag" ||
3280          test ! -s conftest.err
3281        } && test -s conftest.$ac_objext; then
3282   ac_cv_prog_cxx_g=yes
3283 else
3284   echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287
3288 fi
3289
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 fi
3292
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 fi
3295
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3298 fi
3299 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3300 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3301 if test "$ac_test_CXXFLAGS" = set; then
3302   CXXFLAGS=$ac_save_CXXFLAGS
3303 elif test $ac_cv_prog_cxx_g = yes; then
3304   if test "$GXX" = yes; then
3305     CXXFLAGS="-g -O2"
3306   else
3307     CXXFLAGS="-g"
3308   fi
3309 else
3310   if test "$GXX" = yes; then
3311     CXXFLAGS="-O2"
3312   else
3313     CXXFLAGS=
3314   fi
3315 fi
3316 ac_ext=c
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321
3322 if test -n "$ac_tool_prefix"; then
3323   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3324 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   if test -n "$CPPBIN"; then
3331   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336   IFS=$as_save_IFS
3337   test -z "$as_dir" && as_dir=.
3338   for ac_exec_ext in '' $ac_executable_extensions; do
3339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342     break 2
3343   fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 CPPBIN=$ac_cv_prog_CPPBIN
3351 if test -n "$CPPBIN"; then
3352   { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3353 echo "${ECHO_T}$CPPBIN" >&6; }
3354 else
3355   { echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6; }
3357 fi
3358
3359
3360 fi
3361 if test -z "$ac_cv_prog_CPPBIN"; then
3362   ac_ct_CPPBIN=$CPPBIN
3363   # Extract the first word of "cpp", so it can be a program name with args.
3364 set dummy cpp; ac_word=$2
3365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3367 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   if test -n "$ac_ct_CPPBIN"; then
3371   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376   IFS=$as_save_IFS
3377   test -z "$as_dir" && as_dir=.
3378   for ac_exec_ext in '' $ac_executable_extensions; do
3379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380     ac_cv_prog_ac_ct_CPPBIN="cpp"
3381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382     break 2
3383   fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3391 if test -n "$ac_ct_CPPBIN"; then
3392   { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3393 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3394 else
3395   { echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6; }
3397 fi
3398
3399   if test "x$ac_ct_CPPBIN" = x; then
3400     CPPBIN="cpp"
3401   else
3402     case $cross_compiling:$ac_tool_warned in
3403 yes:)
3404 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3405 whose name does not start with the host triplet.  If you think this
3406 configuration is useful to you, please write to autoconf@gnu.org." >&5
3407 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3408 whose name does not start with the host triplet.  If you think this
3409 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412     CPPBIN=$ac_ct_CPPBIN
3413   fi
3414 else
3415   CPPBIN="$ac_cv_prog_CPPBIN"
3416 fi
3417
3418
3419 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3420 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3421 if test "${wine_cv_toolsdir+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   if test -z "$with_wine_tools"; then
3425      if test "$cross_compiling" = "yes"; then
3426        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3427 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3428    { (exit 1); exit 1; }; }
3429      else
3430        wine_cv_toolsdir="\$(TOPOBJDIR)"
3431      fi
3432    elif test -d "$with_wine_tools/tools/winebuild"; then
3433      case $with_wine_tools in
3434        /*) wine_cv_toolsdir="$with_wine_tools" ;;
3435        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3436      esac
3437    else
3438      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3439 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3440    { (exit 1); exit 1; }; }
3441    fi
3442 fi
3443 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3444 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3445 TOOLSDIR=$wine_cv_toolsdir
3446
3447
3448
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3455 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3456 # On Suns, sometimes $CPP names a directory.
3457 if test -n "$CPP" && test -d "$CPP"; then
3458   CPP=
3459 fi
3460 if test -z "$CPP"; then
3461   if test "${ac_cv_prog_CPP+set}" = set; then
3462   echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464       # Double quotes because CPP needs to be expanded
3465     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3466     do
3467       ac_preproc_ok=false
3468 for ac_c_preproc_warn_flag in '' yes
3469 do
3470   # Use a header file that comes with gcc, so configuring glibc
3471   # with a fresh cross-compiler works.
3472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473   # <limits.h> exists even on freestanding compilers.
3474   # On the NeXT, cc -E runs the code through the compiler's parser,
3475   # not just through cpp. "Syntax error" is here to catch this case.
3476   cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h.  */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h.  */
3482 #ifdef __STDC__
3483 # include <limits.h>
3484 #else
3485 # include <assert.h>
3486 #endif
3487                      Syntax error
3488 _ACEOF
3489 if { (ac_try="$ac_cpp conftest.$ac_ext"
3490 case "(($ac_try" in
3491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492   *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496   ac_status=$?
3497   grep -v '^ *+' conftest.er1 >conftest.err
3498   rm -f conftest.er1
3499   cat conftest.err >&5
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); } >/dev/null && {
3502          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503          test ! -s conftest.err
3504        }; then
3505   :
3506 else
3507   echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510   # Broken: fails on valid input.
3511 continue
3512 fi
3513
3514 rm -f conftest.err conftest.$ac_ext
3515
3516   # OK, works on sane cases.  Now check whether nonexistent headers
3517   # can be detected and how.
3518   cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h.  */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h.  */
3524 #include <ac_nonexistent.h>
3525 _ACEOF
3526 if { (ac_try="$ac_cpp conftest.$ac_ext"
3527 case "(($ac_try" in
3528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529   *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3533   ac_status=$?
3534   grep -v '^ *+' conftest.er1 >conftest.err
3535   rm -f conftest.er1
3536   cat conftest.err >&5
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); } >/dev/null && {
3539          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540          test ! -s conftest.err
3541        }; then
3542   # Broken: success on invalid input.
3543 continue
3544 else
3545   echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548   # Passes both tests.
3549 ac_preproc_ok=:
3550 break
3551 fi
3552
3553 rm -f conftest.err conftest.$ac_ext
3554
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3559   break
3560 fi
3561
3562     done
3563     ac_cv_prog_CPP=$CPP
3564
3565 fi
3566   CPP=$ac_cv_prog_CPP
3567 else
3568   ac_cv_prog_CPP=$CPP
3569 fi
3570 { echo "$as_me:$LINENO: result: $CPP" >&5
3571 echo "${ECHO_T}$CPP" >&6; }
3572 ac_preproc_ok=false
3573 for ac_c_preproc_warn_flag in '' yes
3574 do
3575   # Use a header file that comes with gcc, so configuring glibc
3576   # with a fresh cross-compiler works.
3577   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578   # <limits.h> exists even on freestanding compilers.
3579   # On the NeXT, cc -E runs the code through the compiler's parser,
3580   # not just through cpp. "Syntax error" is here to catch this case.
3581   cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h.  */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h.  */
3587 #ifdef __STDC__
3588 # include <limits.h>
3589 #else
3590 # include <assert.h>
3591 #endif
3592                      Syntax error
3593 _ACEOF
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3595 case "(($ac_try" in
3596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597   *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601   ac_status=$?
3602   grep -v '^ *+' conftest.er1 >conftest.err
3603   rm -f conftest.er1
3604   cat conftest.err >&5
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); } >/dev/null && {
3607          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3608          test ! -s conftest.err
3609        }; then
3610   :
3611 else
3612   echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615   # Broken: fails on valid input.
3616 continue
3617 fi
3618
3619 rm -f conftest.err conftest.$ac_ext
3620
3621   # OK, works on sane cases.  Now check whether nonexistent headers
3622   # can be detected and how.
3623   cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h.  */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h.  */
3629 #include <ac_nonexistent.h>
3630 _ACEOF
3631 if { (ac_try="$ac_cpp conftest.$ac_ext"
3632 case "(($ac_try" in
3633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634   *) ac_try_echo=$ac_try;;
3635 esac
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3638   ac_status=$?
3639   grep -v '^ *+' conftest.er1 >conftest.err
3640   rm -f conftest.er1
3641   cat conftest.err >&5
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); } >/dev/null && {
3644          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3645          test ! -s conftest.err
3646        }; then
3647   # Broken: success on invalid input.
3648 continue
3649 else
3650   echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653   # Passes both tests.
3654 ac_preproc_ok=:
3655 break
3656 fi
3657
3658 rm -f conftest.err conftest.$ac_ext
3659
3660 done
3661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3662 rm -f conftest.err conftest.$ac_ext
3663 if $ac_preproc_ok; then
3664   :
3665 else
3666   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3667 See \`config.log' for more details." >&5
3668 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3669 See \`config.log' for more details." >&2;}
3670    { (exit 1); exit 1; }; }
3671 fi
3672
3673 ac_ext=c
3674 ac_cpp='$CPP $CPPFLAGS'
3675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678
3679
3680 { echo "$as_me:$LINENO: checking for X" >&5
3681 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3682
3683
3684 # Check whether --with-x was given.
3685 if test "${with_x+set}" = set; then
3686   withval=$with_x;
3687 fi
3688
3689 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3690 if test "x$with_x" = xno; then
3691   # The user explicitly disabled X.
3692   have_x=disabled
3693 else
3694   case $x_includes,$x_libraries in #(
3695     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3696 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3697    { (exit 1); exit 1; }; };; #(
3698     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   # One or both of the vars are not set, and there is no cached value.
3702 ac_x_includes=no ac_x_libraries=no
3703 rm -f -r conftest.dir
3704 if mkdir conftest.dir; then
3705   cd conftest.dir
3706   cat >Imakefile <<'_ACEOF'
3707 incroot:
3708         @echo incroot='${INCROOT}'
3709 usrlibdir:
3710         @echo usrlibdir='${USRLIBDIR}'
3711 libdir:
3712         @echo libdir='${LIBDIR}'
3713 _ACEOF
3714   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3715     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3716     for ac_var in incroot usrlibdir libdir; do
3717       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3718     done
3719     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3720     for ac_extension in a so sl; do
3721       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3722          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3723         ac_im_usrlibdir=$ac_im_libdir; break
3724       fi
3725     done
3726     # Screen out bogus values from the imake configuration.  They are
3727     # bogus both because they are the default anyway, and because
3728     # using them would break gcc on systems where it needs fixed includes.
3729     case $ac_im_incroot in
3730         /usr/include) ac_x_includes= ;;
3731         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3732     esac
3733     case $ac_im_usrlibdir in
3734         /usr/lib | /lib) ;;
3735         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3736     esac
3737   fi
3738   cd ..
3739   rm -f -r conftest.dir
3740 fi
3741
3742 # Standard set of common directories for X headers.
3743 # Check X11 before X11Rn because it is often a symlink to the current release.
3744 ac_x_header_dirs='
3745 /usr/X11/include
3746 /usr/X11R6/include
3747 /usr/X11R5/include
3748 /usr/X11R4/include
3749
3750 /usr/include/X11
3751 /usr/include/X11R6
3752 /usr/include/X11R5
3753 /usr/include/X11R4
3754
3755 /usr/local/X11/include
3756 /usr/local/X11R6/include
3757 /usr/local/X11R5/include
3758 /usr/local/X11R4/include
3759
3760 /usr/local/include/X11
3761 /usr/local/include/X11R6
3762 /usr/local/include/X11R5
3763 /usr/local/include/X11R4
3764
3765 /usr/X386/include
3766 /usr/x386/include
3767 /usr/XFree86/include/X11
3768
3769 /usr/include
3770 /usr/local/include
3771 /usr/unsupported/include
3772 /usr/athena/include
3773 /usr/local/x11r5/include
3774 /usr/lpp/Xamples/include
3775
3776 /usr/openwin/include
3777 /usr/openwin/share/include'
3778
3779 if test "$ac_x_includes" = no; then
3780   # Guess where to find include files, by looking for Xlib.h.
3781   # First, try using that file with no special directory specified.
3782   cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h.  */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h.  */
3788 #include <X11/Xlib.h>
3789 _ACEOF
3790 if { (ac_try="$ac_cpp conftest.$ac_ext"
3791 case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3797   ac_status=$?
3798   grep -v '^ *+' conftest.er1 >conftest.err
3799   rm -f conftest.er1
3800   cat conftest.err >&5
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } >/dev/null && {
3803          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3804          test ! -s conftest.err
3805        }; then
3806   # We can compile using X headers with no special include directory.
3807 ac_x_includes=
3808 else
3809   echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812   for ac_dir in $ac_x_header_dirs; do
3813   if test -r "$ac_dir/X11/Xlib.h"; then
3814     ac_x_includes=$ac_dir
3815     break
3816   fi
3817 done
3818 fi
3819
3820 rm -f conftest.err conftest.$ac_ext
3821 fi # $ac_x_includes = no
3822
3823 if test "$ac_x_libraries" = no; then
3824   # Check for the libraries.
3825   # See if we find them without any special options.
3826   # Don't add to $LIBS permanently.
3827   ac_save_LIBS=$LIBS
3828   LIBS="-lX11 $LIBS"
3829   cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h.  */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h.  */
3835 #include <X11/Xlib.h>
3836 int
3837 main ()
3838 {
3839 XrmInitialize ()
3840   ;
3841   return 0;
3842 }
3843 _ACEOF
3844 rm -f conftest.$ac_objext conftest$ac_exeext
3845 if { (ac_try="$ac_link"
3846 case "(($ac_try" in
3847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848   *) ac_try_echo=$ac_try;;
3849 esac
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851   (eval "$ac_link") 2>conftest.er1
3852   ac_status=$?
3853   grep -v '^ *+' conftest.er1 >conftest.err
3854   rm -f conftest.er1
3855   cat conftest.err >&5
3856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857   (exit $ac_status); } && {
3858          test -z "$ac_c_werror_flag" ||
3859          test ! -s conftest.err
3860        } && test -s conftest$ac_exeext &&
3861        $as_test_x conftest$ac_exeext; then
3862   LIBS=$ac_save_LIBS
3863 # We can link X programs with no special library path.
3864 ac_x_libraries=
3865 else
3866   echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3868
3869         LIBS=$ac_save_LIBS
3870 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3871 do
3872   # Don't even attempt the hair of trying to link an X program!
3873   for ac_extension in a so sl; do
3874     if test -r "$ac_dir/libX11.$ac_extension"; then
3875       ac_x_libraries=$ac_dir
3876       break 2
3877     fi
3878   done
3879 done
3880 fi
3881
3882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3883       conftest$ac_exeext conftest.$ac_ext
3884 fi # $ac_x_libraries = no
3885
3886 case $ac_x_includes,$ac_x_libraries in #(
3887   no,* | *,no | *\'*)
3888     # Didn't find X, or a directory has "'" in its name.
3889     ac_cv_have_x="have_x=no";; #(
3890   *)
3891     # Record where we found X for the cache.
3892     ac_cv_have_x="have_x=yes\
3893         ac_x_includes='$ac_x_includes'\
3894         ac_x_libraries='$ac_x_libraries'"
3895 esac
3896 fi
3897 ;; #(
3898     *) have_x=yes;;
3899   esac
3900   eval "$ac_cv_have_x"
3901 fi # $with_x != no
3902
3903 if test "$have_x" != yes; then
3904   { echo "$as_me:$LINENO: result: $have_x" >&5
3905 echo "${ECHO_T}$have_x" >&6; }
3906   no_x=yes
3907 else
3908   # If each of the values was on the command line, it overrides each guess.
3909   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3910   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3911   # Update the cache value to reflect the command line values.
3912   ac_cv_have_x="have_x=yes\
3913         ac_x_includes='$x_includes'\
3914         ac_x_libraries='$x_libraries'"
3915   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3916 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3917 fi
3918
3919 if test "$no_x" = yes; then
3920   # Not all programs may use this symbol, but it does not hurt to define it.
3921
3922 cat >>confdefs.h <<\_ACEOF
3923 #define X_DISPLAY_MISSING 1
3924 _ACEOF
3925
3926   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3927 else
3928   if test -n "$x_includes"; then
3929     X_CFLAGS="$X_CFLAGS -I$x_includes"
3930   fi
3931
3932   # It would also be nice to do this for all -L options, not just this one.
3933   if test -n "$x_libraries"; then
3934     X_LIBS="$X_LIBS -L$x_libraries"
3935     # For Solaris; some versions of Sun CC require a space after -R and
3936     # others require no space.  Words are not sufficient . . . .
3937     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3938 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3939     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3940     ac_xsave_c_werror_flag=$ac_c_werror_flag
3941     ac_c_werror_flag=yes
3942     cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h.  */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h.  */
3948
3949 int
3950 main ()
3951 {
3952
3953   ;
3954   return 0;
3955 }
3956 _ACEOF
3957 rm -f conftest.$ac_objext conftest$ac_exeext
3958 if { (ac_try="$ac_link"
3959 case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964   (eval "$ac_link") 2>conftest.er1
3965   ac_status=$?
3966   grep -v '^ *+' conftest.er1 >conftest.err
3967   rm -f conftest.er1
3968   cat conftest.err >&5
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); } && {
3971          test -z "$ac_c_werror_flag" ||
3972          test ! -s conftest.err
3973        } && test -s conftest$ac_exeext &&
3974        $as_test_x conftest$ac_exeext; then
3975   { echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6; }
3977        X_LIBS="$X_LIBS -R$x_libraries"
3978 else
3979   echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982         LIBS="$ac_xsave_LIBS -R $x_libraries"
3983        cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h.  */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h.  */
3989
3990 int
3991 main ()
3992 {
3993
3994   ;
3995   return 0;
3996 }
3997 _ACEOF
3998 rm -f conftest.$ac_objext conftest$ac_exeext
3999 if { (ac_try="$ac_link"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005   (eval "$ac_link") 2>conftest.er1
4006   ac_status=$?
4007   grep -v '^ *+' conftest.er1 >conftest.err
4008   rm -f conftest.er1
4009   cat conftest.err >&5
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); } && {
4012          test -z "$ac_c_werror_flag" ||
4013          test ! -s conftest.err
4014        } && test -s conftest$ac_exeext &&
4015        $as_test_x conftest$ac_exeext; then
4016   { echo "$as_me:$LINENO: result: yes" >&5
4017 echo "${ECHO_T}yes" >&6; }
4018           X_LIBS="$X_LIBS -R $x_libraries"
4019 else
4020   echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023         { echo "$as_me:$LINENO: result: neither works" >&5
4024 echo "${ECHO_T}neither works" >&6; }
4025 fi
4026
4027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4028       conftest$ac_exeext conftest.$ac_ext
4029 fi
4030
4031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4032       conftest$ac_exeext conftest.$ac_ext
4033     ac_c_werror_flag=$ac_xsave_c_werror_flag
4034     LIBS=$ac_xsave_LIBS
4035   fi
4036
4037   # Check for system-dependent libraries X programs must link with.
4038   # Do this before checking for the system-independent R6 libraries
4039   # (-lICE), since we may need -lsocket or whatever for X linking.
4040
4041   if test "$ISC" = yes; then
4042     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4043   else
4044     # Martyn Johnson says this is needed for Ultrix, if the X
4045     # libraries were built with DECnet support.  And Karl Berry says
4046     # the Alpha needs dnet_stub (dnet does not exist).
4047     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4048     cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h.  */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h.  */
4054
4055 /* Override any GCC internal prototype to avoid an error.
4056    Use char because int might match the return type of a GCC
4057    builtin and then its argument prototype would still apply.  */
4058 #ifdef __cplusplus
4059 extern "C"
4060 #endif
4061 char XOpenDisplay ();
4062 int
4063 main ()
4064 {
4065 return XOpenDisplay ();
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 rm -f conftest.$ac_objext conftest$ac_exeext
4071 if { (ac_try="$ac_link"
4072 case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077   (eval "$ac_link") 2>conftest.er1
4078   ac_status=$?
4079   grep -v '^ *+' conftest.er1 >conftest.err
4080   rm -f conftest.er1
4081   cat conftest.err >&5
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); } && {
4084          test -z "$ac_c_werror_flag" ||
4085          test ! -s conftest.err
4086        } && test -s conftest$ac_exeext &&
4087        $as_test_x conftest$ac_exeext; then
4088   :
4089 else
4090   echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4094 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4095 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   ac_check_lib_save_LIBS=$LIBS
4099 LIBS="-ldnet  $LIBS"
4100 cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h.  */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h.  */
4106
4107 /* Override any GCC internal prototype to avoid an error.
4108    Use char because int might match the return type of a GCC
4109    builtin and then its argument prototype would still apply.  */
4110 #ifdef __cplusplus
4111 extern "C"
4112 #endif
4113 char dnet_ntoa ();
4114 int
4115 main ()
4116 {
4117 return dnet_ntoa ();
4118   ;
4119   return 0;
4120 }
4121 _ACEOF
4122 rm -f conftest.$ac_objext conftest$ac_exeext
4123 if { (ac_try="$ac_link"
4124 case "(($ac_try" in
4125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126   *) ac_try_echo=$ac_try;;
4127 esac
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129   (eval "$ac_link") 2>conftest.er1
4130   ac_status=$?
4131   grep -v '^ *+' conftest.er1 >conftest.err
4132   rm -f conftest.er1
4133   cat conftest.err >&5
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); } && {
4136          test -z "$ac_c_werror_flag" ||
4137          test ! -s conftest.err
4138        } && test -s conftest$ac_exeext &&
4139        $as_test_x conftest$ac_exeext; then
4140   ac_cv_lib_dnet_dnet_ntoa=yes
4141 else
4142   echo "$as_me: failed program was:" >&5
4143 sed 's/^/| /' conftest.$ac_ext >&5
4144
4145         ac_cv_lib_dnet_dnet_ntoa=no
4146 fi
4147
4148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4149       conftest$ac_exeext conftest.$ac_ext
4150 LIBS=$ac_check_lib_save_LIBS
4151 fi
4152 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4153 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4154 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4155   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4156 fi
4157
4158     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4159       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4160 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4161 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   ac_check_lib_save_LIBS=$LIBS
4165 LIBS="-ldnet_stub  $LIBS"
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172
4173 /* Override any GCC internal prototype to avoid an error.
4174    Use char because int might match the return type of a GCC
4175    builtin and then its argument prototype would still apply.  */
4176 #ifdef __cplusplus
4177 extern "C"
4178 #endif
4179 char dnet_ntoa ();
4180 int
4181 main ()
4182 {
4183 return dnet_ntoa ();
4184   ;
4185   return 0;
4186 }
4187 _ACEOF
4188 rm -f conftest.$ac_objext conftest$ac_exeext
4189 if { (ac_try="$ac_link"
4190 case "(($ac_try" in
4191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192   *) ac_try_echo=$ac_try;;
4193 esac
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195   (eval "$ac_link") 2>conftest.er1
4196   ac_status=$?
4197   grep -v '^ *+' conftest.er1 >conftest.err
4198   rm -f conftest.er1
4199   cat conftest.err >&5
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } && {
4202          test -z "$ac_c_werror_flag" ||
4203          test ! -s conftest.err
4204        } && test -s conftest$ac_exeext &&
4205        $as_test_x conftest$ac_exeext; then
4206   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4207 else
4208   echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211         ac_cv_lib_dnet_stub_dnet_ntoa=no
4212 fi
4213
4214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4215       conftest$ac_exeext conftest.$ac_ext
4216 LIBS=$ac_check_lib_save_LIBS
4217 fi
4218 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4219 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4220 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4221   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4222 fi
4223
4224     fi
4225 fi
4226
4227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4228       conftest$ac_exeext conftest.$ac_ext
4229     LIBS="$ac_xsave_LIBS"
4230
4231     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4232     # to get the SysV transport functions.
4233     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4234     # needs -lnsl.
4235     # The nsl library prevents programs from opening the X display
4236     # on Irix 5.2, according to T.E. Dickey.
4237     # The functions gethostbyname, getservbyname, and inet_addr are
4238     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4239     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4240 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4241 if test "${ac_cv_func_gethostbyname+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4252 #define gethostbyname innocuous_gethostbyname
4253
4254 /* System header to define __stub macros and hopefully few prototypes,
4255     which can conflict with char gethostbyname (); below.
4256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4257     <limits.h> exists even on freestanding compilers.  */
4258
4259 #ifdef __STDC__
4260 # include <limits.h>
4261 #else
4262 # include <assert.h>
4263 #endif
4264
4265 #undef gethostbyname
4266
4267 /* Override any GCC internal prototype to avoid an error.
4268    Use char because int might match the return type of a GCC
4269    builtin and then its argument prototype would still apply.  */
4270 #ifdef __cplusplus
4271 extern "C"
4272 #endif
4273 char gethostbyname ();
4274 /* The GNU C library defines this for functions which it implements
4275     to always fail with ENOSYS.  Some functions are actually named
4276     something starting with __ and the normal name is an alias.  */
4277 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4278 choke me
4279 #endif
4280
4281 int
4282 main ()
4283 {
4284 return gethostbyname ();
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          test -z "$ac_c_werror_flag" ||
4304          test ! -s conftest.err
4305        } && test -s conftest$ac_exeext &&
4306        $as_test_x conftest$ac_exeext; then
4307   ac_cv_func_gethostbyname=yes
4308 else
4309   echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312         ac_cv_func_gethostbyname=no
4313 fi
4314
4315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4316       conftest$ac_exeext conftest.$ac_ext
4317 fi
4318 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4319 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4320
4321     if test $ac_cv_func_gethostbyname = no; then
4322       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4323 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4324 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   ac_check_lib_save_LIBS=$LIBS
4328 LIBS="-lnsl  $LIBS"
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335
4336 /* Override any GCC internal prototype to avoid an error.
4337    Use char because int might match the return type of a GCC
4338    builtin and then its argument prototype would still apply.  */
4339 #ifdef __cplusplus
4340 extern "C"
4341 #endif
4342 char gethostbyname ();
4343 int
4344 main ()
4345 {
4346 return gethostbyname ();
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 rm -f conftest.$ac_objext conftest$ac_exeext
4352 if { (ac_try="$ac_link"
4353 case "(($ac_try" in
4354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355   *) ac_try_echo=$ac_try;;
4356 esac
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358   (eval "$ac_link") 2>conftest.er1
4359   ac_status=$?
4360   grep -v '^ *+' conftest.er1 >conftest.err
4361   rm -f conftest.er1
4362   cat conftest.err >&5
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } && {
4365          test -z "$ac_c_werror_flag" ||
4366          test ! -s conftest.err
4367        } && test -s conftest$ac_exeext &&
4368        $as_test_x conftest$ac_exeext; then
4369   ac_cv_lib_nsl_gethostbyname=yes
4370 else
4371   echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4373
4374         ac_cv_lib_nsl_gethostbyname=no
4375 fi
4376
4377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4378       conftest$ac_exeext conftest.$ac_ext
4379 LIBS=$ac_check_lib_save_LIBS
4380 fi
4381 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4382 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4383 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4384   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4385 fi
4386
4387       if test $ac_cv_lib_nsl_gethostbyname = no; then
4388         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4389 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4390 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4391   echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393   ac_check_lib_save_LIBS=$LIBS
4394 LIBS="-lbsd  $LIBS"
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h.  */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h.  */
4401
4402 /* Override any GCC internal prototype to avoid an error.
4403    Use char because int might match the return type of a GCC
4404    builtin and then its argument prototype would still apply.  */
4405 #ifdef __cplusplus
4406 extern "C"
4407 #endif
4408 char gethostbyname ();
4409 int
4410 main ()
4411 {
4412 return gethostbyname ();
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.$ac_objext conftest$ac_exeext
4418 if { (ac_try="$ac_link"
4419 case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424   (eval "$ac_link") 2>conftest.er1
4425   ac_status=$?
4426   grep -v '^ *+' conftest.er1 >conftest.err
4427   rm -f conftest.er1
4428   cat conftest.err >&5
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); } && {
4431          test -z "$ac_c_werror_flag" ||
4432          test ! -s conftest.err
4433        } && test -s conftest$ac_exeext &&
4434        $as_test_x conftest$ac_exeext; then
4435   ac_cv_lib_bsd_gethostbyname=yes
4436 else
4437   echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440         ac_cv_lib_bsd_gethostbyname=no
4441 fi
4442
4443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4444       conftest$ac_exeext conftest.$ac_ext
4445 LIBS=$ac_check_lib_save_LIBS
4446 fi
4447 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4448 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4449 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4450   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4451 fi
4452
4453       fi
4454     fi
4455
4456     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4457     # socket/setsockopt and other routines are undefined under SCO ODT
4458     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4459     # on later versions), says Simon Leinen: it contains gethostby*
4460     # variants that don't use the name server (or something).  -lsocket
4461     # must be given before -lnsl if both are needed.  We assume that
4462     # if connect needs -lnsl, so does gethostbyname.
4463     { echo "$as_me:$LINENO: checking for connect" >&5
4464 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4465 if test "${ac_cv_func_connect+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h.  */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h.  */
4474 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4476 #define connect innocuous_connect
4477
4478 /* System header to define __stub macros and hopefully few prototypes,
4479     which can conflict with char connect (); below.
4480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4481     <limits.h> exists even on freestanding compilers.  */
4482
4483 #ifdef __STDC__
4484 # include <limits.h>
4485 #else
4486 # include <assert.h>
4487 #endif
4488
4489 #undef connect
4490
4491 /* Override any GCC internal prototype to avoid an error.
4492    Use char because int might match the return type of a GCC
4493    builtin and then its argument prototype would still apply.  */
4494 #ifdef __cplusplus
4495 extern "C"
4496 #endif
4497 char connect ();
4498 /* The GNU C library defines this for functions which it implements
4499     to always fail with ENOSYS.  Some functions are actually named
4500     something starting with __ and the normal name is an alias.  */
4501 #if defined __stub_connect || defined __stub___connect
4502 choke me
4503 #endif
4504
4505 int
4506 main ()
4507 {
4508 return connect ();
4509   ;
4510   return 0;
4511 }
4512 _ACEOF
4513 rm -f conftest.$ac_objext conftest$ac_exeext
4514 if { (ac_try="$ac_link"
4515 case "(($ac_try" in
4516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517   *) ac_try_echo=$ac_try;;
4518 esac
4519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520   (eval "$ac_link") 2>conftest.er1
4521   ac_status=$?
4522   grep -v '^ *+' conftest.er1 >conftest.err
4523   rm -f conftest.er1
4524   cat conftest.err >&5
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); } && {
4527          test -z "$ac_c_werror_flag" ||
4528          test ! -s conftest.err
4529        } && test -s conftest$ac_exeext &&
4530        $as_test_x conftest$ac_exeext; then
4531   ac_cv_func_connect=yes
4532 else
4533   echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4535
4536         ac_cv_func_connect=no
4537 fi
4538
4539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4540       conftest$ac_exeext conftest.$ac_ext
4541 fi
4542 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4543 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4544
4545     if test $ac_cv_func_connect = no; then
4546       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4547 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4548 if test "${ac_cv_lib_socket_connect+set}" = set; then
4549   echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551   ac_check_lib_save_LIBS=$LIBS
4552 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4553 cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h.  */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h.  */
4559
4560 /* Override any GCC internal prototype to avoid an error.
4561    Use char because int might match the return type of a GCC
4562    builtin and then its argument prototype would still apply.  */
4563 #ifdef __cplusplus
4564 extern "C"
4565 #endif
4566 char connect ();
4567 int
4568 main ()
4569 {
4570 return connect ();
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 rm -f conftest.$ac_objext conftest$ac_exeext
4576 if { (ac_try="$ac_link"
4577 case "(($ac_try" in
4578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579   *) ac_try_echo=$ac_try;;
4580 esac
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582   (eval "$ac_link") 2>conftest.er1
4583   ac_status=$?
4584   grep -v '^ *+' conftest.er1 >conftest.err
4585   rm -f conftest.er1
4586   cat conftest.err >&5
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); } && {
4589          test -z "$ac_c_werror_flag" ||
4590          test ! -s conftest.err
4591        } && test -s conftest$ac_exeext &&
4592        $as_test_x conftest$ac_exeext; then
4593   ac_cv_lib_socket_connect=yes
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598         ac_cv_lib_socket_connect=no
4599 fi
4600
4601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4602       conftest$ac_exeext conftest.$ac_ext
4603 LIBS=$ac_check_lib_save_LIBS
4604 fi
4605 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4606 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4607 if test $ac_cv_lib_socket_connect = yes; then
4608   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4609 fi
4610
4611     fi
4612
4613     # Guillermo Gomez says -lposix is necessary on A/UX.
4614     { echo "$as_me:$LINENO: checking for remove" >&5
4615 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4616 if test "${ac_cv_func_remove+set}" = set; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h.  */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h.  */
4625 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4627 #define remove innocuous_remove
4628
4629 /* System header to define __stub macros and hopefully few prototypes,
4630     which can conflict with char remove (); below.
4631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4632     <limits.h> exists even on freestanding compilers.  */
4633
4634 #ifdef __STDC__
4635 # include <limits.h>
4636 #else
4637 # include <assert.h>
4638 #endif
4639
4640 #undef remove
4641
4642 /* Override any GCC internal prototype to avoid an error.
4643    Use char because int might match the return type of a GCC
4644    builtin and then its argument prototype would still apply.  */
4645 #ifdef __cplusplus
4646 extern "C"
4647 #endif
4648 char remove ();
4649 /* The GNU C library defines this for functions which it implements
4650     to always fail with ENOSYS.  Some functions are actually named
4651     something starting with __ and the normal name is an alias.  */
4652 #if defined __stub_remove || defined __stub___remove
4653 choke me
4654 #endif
4655
4656 int
4657 main ()
4658 {
4659 return remove ();
4660   ;
4661   return 0;
4662 }
4663 _ACEOF
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (ac_try="$ac_link"
4666 case "(($ac_try" in
4667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668   *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671   (eval "$ac_link") 2>conftest.er1
4672   ac_status=$?
4673   grep -v '^ *+' conftest.er1 >conftest.err
4674   rm -f conftest.er1
4675   cat conftest.err >&5
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); } && {
4678          test -z "$ac_c_werror_flag" ||
4679          test ! -s conftest.err
4680        } && test -s conftest$ac_exeext &&
4681        $as_test_x conftest$ac_exeext; then
4682   ac_cv_func_remove=yes
4683 else
4684   echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687         ac_cv_func_remove=no
4688 fi
4689
4690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4691       conftest$ac_exeext conftest.$ac_ext
4692 fi
4693 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4694 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4695
4696     if test $ac_cv_func_remove = no; then
4697       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4698 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4699 if test "${ac_cv_lib_posix_remove+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   ac_check_lib_save_LIBS=$LIBS
4703 LIBS="-lposix  $LIBS"
4704 cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4710
4711 /* Override any GCC internal prototype to avoid an error.
4712    Use char because int might match the return type of a GCC
4713    builtin and then its argument prototype would still apply.  */
4714 #ifdef __cplusplus
4715 extern "C"
4716 #endif
4717 char remove ();
4718 int
4719 main ()
4720 {
4721 return remove ();
4722   ;
4723   return 0;
4724 }
4725 _ACEOF
4726 rm -f conftest.$ac_objext conftest$ac_exeext
4727 if { (ac_try="$ac_link"
4728 case "(($ac_try" in
4729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730   *) ac_try_echo=$ac_try;;
4731 esac
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733   (eval "$ac_link") 2>conftest.er1
4734   ac_status=$?
4735   grep -v '^ *+' conftest.er1 >conftest.err
4736   rm -f conftest.er1
4737   cat conftest.err >&5
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); } && {
4740          test -z "$ac_c_werror_flag" ||
4741          test ! -s conftest.err
4742        } && test -s conftest$ac_exeext &&
4743        $as_test_x conftest$ac_exeext; then
4744   ac_cv_lib_posix_remove=yes
4745 else
4746   echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749         ac_cv_lib_posix_remove=no
4750 fi
4751
4752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4753       conftest$ac_exeext conftest.$ac_ext
4754 LIBS=$ac_check_lib_save_LIBS
4755 fi
4756 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4757 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4758 if test $ac_cv_lib_posix_remove = yes; then
4759   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4760 fi
4761
4762     fi
4763
4764     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4765     { echo "$as_me:$LINENO: checking for shmat" >&5
4766 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4767 if test "${ac_cv_func_shmat+set}" = set; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h.  */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h.  */
4776 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4778 #define shmat innocuous_shmat
4779
4780 /* System header to define __stub macros and hopefully few prototypes,
4781     which can conflict with char shmat (); below.
4782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4783     <limits.h> exists even on freestanding compilers.  */
4784
4785 #ifdef __STDC__
4786 # include <limits.h>
4787 #else
4788 # include <assert.h>
4789 #endif
4790
4791 #undef shmat
4792
4793 /* Override any GCC internal prototype to avoid an error.
4794    Use char because int might match the return type of a GCC
4795    builtin and then its argument prototype would still apply.  */
4796 #ifdef __cplusplus
4797 extern "C"
4798 #endif
4799 char shmat ();
4800 /* The GNU C library defines this for functions which it implements
4801     to always fail with ENOSYS.  Some functions are actually named
4802     something starting with __ and the normal name is an alias.  */
4803 #if defined __stub_shmat || defined __stub___shmat
4804 choke me
4805 #endif
4806
4807 int
4808 main ()
4809 {
4810 return shmat ();
4811   ;
4812   return 0;
4813 }
4814 _ACEOF
4815 rm -f conftest.$ac_objext conftest$ac_exeext
4816 if { (ac_try="$ac_link"
4817 case "(($ac_try" in
4818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819   *) ac_try_echo=$ac_try;;
4820 esac
4821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822   (eval "$ac_link") 2>conftest.er1
4823   ac_status=$?
4824   grep -v '^ *+' conftest.er1 >conftest.err
4825   rm -f conftest.er1
4826   cat conftest.err >&5
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); } && {
4829          test -z "$ac_c_werror_flag" ||
4830          test ! -s conftest.err
4831        } && test -s conftest$ac_exeext &&
4832        $as_test_x conftest$ac_exeext; then
4833   ac_cv_func_shmat=yes
4834 else
4835   echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838         ac_cv_func_shmat=no
4839 fi
4840
4841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4842       conftest$ac_exeext conftest.$ac_ext
4843 fi
4844 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4845 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4846
4847     if test $ac_cv_func_shmat = no; then
4848       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4849 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4850 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   ac_check_lib_save_LIBS=$LIBS
4854 LIBS="-lipc  $LIBS"
4855 cat >conftest.$ac_ext <<_ACEOF
4856 /* confdefs.h.  */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h.  */
4861
4862 /* Override any GCC internal prototype to avoid an error.
4863    Use char because int might match the return type of a GCC
4864    builtin and then its argument prototype would still apply.  */
4865 #ifdef __cplusplus
4866 extern "C"
4867 #endif
4868 char shmat ();
4869 int
4870 main ()
4871 {
4872 return shmat ();
4873   ;
4874   return 0;
4875 }
4876 _ACEOF
4877 rm -f conftest.$ac_objext conftest$ac_exeext
4878 if { (ac_try="$ac_link"
4879 case "(($ac_try" in
4880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881   *) ac_try_echo=$ac_try;;
4882 esac
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884   (eval "$ac_link") 2>conftest.er1
4885   ac_status=$?
4886   grep -v '^ *+' conftest.er1 >conftest.err
4887   rm -f conftest.er1
4888   cat conftest.err >&5
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); } && {
4891          test -z "$ac_c_werror_flag" ||
4892          test ! -s conftest.err
4893        } && test -s conftest$ac_exeext &&
4894        $as_test_x conftest$ac_exeext; then
4895   ac_cv_lib_ipc_shmat=yes
4896 else
4897   echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4899
4900         ac_cv_lib_ipc_shmat=no
4901 fi
4902
4903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4904       conftest$ac_exeext conftest.$ac_ext
4905 LIBS=$ac_check_lib_save_LIBS
4906 fi
4907 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4908 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4909 if test $ac_cv_lib_ipc_shmat = yes; then
4910   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4911 fi
4912
4913     fi
4914   fi
4915
4916   # Check for libraries that X11R6 Xt/Xaw programs need.
4917   ac_save_LDFLAGS=$LDFLAGS
4918   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4919   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4920   # check for ICE first), but we must link in the order -lSM -lICE or
4921   # we get undefined symbols.  So assume we have SM if we have ICE.
4922   # These have to be linked with before -lX11, unlike the other
4923   # libraries we check for below, so use a different variable.
4924   # John Interrante, Karl Berry
4925   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4926 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4927 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930   ac_check_lib_save_LIBS=$LIBS
4931 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4932 cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938
4939 /* Override any GCC internal prototype to avoid an error.
4940    Use char because int might match the return type of a GCC
4941    builtin and then its argument prototype would still apply.  */
4942 #ifdef __cplusplus
4943 extern "C"
4944 #endif
4945 char IceConnectionNumber ();
4946 int
4947 main ()
4948 {
4949 return IceConnectionNumber ();
4950   ;
4951   return 0;
4952 }
4953 _ACEOF
4954 rm -f conftest.$ac_objext conftest$ac_exeext
4955 if { (ac_try="$ac_link"
4956 case "(($ac_try" in
4957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958   *) ac_try_echo=$ac_try;;
4959 esac
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961   (eval "$ac_link") 2>conftest.er1
4962   ac_status=$?
4963   grep -v '^ *+' conftest.er1 >conftest.err
4964   rm -f conftest.er1
4965   cat conftest.err >&5
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } && {
4968          test -z "$ac_c_werror_flag" ||
4969          test ! -s conftest.err
4970        } && test -s conftest$ac_exeext &&
4971        $as_test_x conftest$ac_exeext; then
4972   ac_cv_lib_ICE_IceConnectionNumber=yes
4973 else
4974   echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4976
4977         ac_cv_lib_ICE_IceConnectionNumber=no
4978 fi
4979
4980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4981       conftest$ac_exeext conftest.$ac_ext
4982 LIBS=$ac_check_lib_save_LIBS
4983 fi
4984 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4985 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4986 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4987   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4988 fi
4989
4990   LDFLAGS=$ac_save_LDFLAGS
4991
4992 fi
4993
4994
4995 for ac_prog in flex
4996 do
4997   # Extract the first word of "$ac_prog", so it can be a program name with args.
4998 set dummy $ac_prog; ac_word=$2
4999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5001 if test "${ac_cv_prog_FLEX+set}" = set; then
5002   echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004   if test -n "$FLEX"; then
5005   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5009 do
5010   IFS=$as_save_IFS
5011   test -z "$as_dir" && as_dir=.
5012   for ac_exec_ext in '' $ac_executable_extensions; do
5013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5014     ac_cv_prog_FLEX="$ac_prog"
5015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016     break 2
5017   fi
5018 done
5019 done
5020 IFS=$as_save_IFS
5021
5022 fi
5023 fi
5024 FLEX=$ac_cv_prog_FLEX
5025 if test -n "$FLEX"; then
5026   { echo "$as_me:$LINENO: result: $FLEX" >&5
5027 echo "${ECHO_T}$FLEX" >&6; }
5028 else
5029   { echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6; }
5031 fi
5032
5033
5034   test -n "$FLEX" && break
5035 done
5036 test -n "$FLEX" || FLEX="none"
5037
5038 if test "$FLEX" = "none"
5039 then
5040   { { echo "$as_me:$LINENO: error: no suitable flex found. Please install the 'flex' package." >&5
5041 echo "$as_me: error: no suitable flex found. Please install the 'flex' package." >&2;}
5042    { (exit 1); exit 1; }; }
5043 fi
5044
5045 for ac_prog in bison
5046 do
5047   # Extract the first word of "$ac_prog", so it can be a program name with args.
5048 set dummy $ac_prog; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_prog_BISON+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   if test -n "$BISON"; then
5055   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062   for ac_exec_ext in '' $ac_executable_extensions; do
5063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064     ac_cv_prog_BISON="$ac_prog"
5065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069 done
5070 IFS=$as_save_IFS
5071
5072 fi
5073 fi
5074 BISON=$ac_cv_prog_BISON
5075 if test -n "$BISON"; then
5076   { echo "$as_me:$LINENO: result: $BISON" >&5
5077 echo "${ECHO_T}$BISON" >&6; }
5078 else
5079   { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5081 fi
5082
5083
5084   test -n "$BISON" && break
5085 done
5086 test -n "$BISON" || BISON="none"
5087
5088 if test "$BISON" = "none"
5089 then
5090   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5091 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5092    { (exit 1); exit 1; }; }
5093 fi
5094
5095 if test -n "$ac_tool_prefix"; then
5096   for ac_prog in gas as
5097   do
5098     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5102 if test "${ac_cv_prog_AS+set}" = set; then
5103   echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105   if test -n "$AS"; then
5106   ac_cv_prog_AS="$AS" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113   for ac_exec_ext in '' $ac_executable_extensions; do
5114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120 done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 AS=$ac_cv_prog_AS
5126 if test -n "$AS"; then
5127   { echo "$as_me:$LINENO: result: $AS" >&5
5128 echo "${ECHO_T}$AS" >&6; }
5129 else
5130   { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5132 fi
5133
5134
5135     test -n "$AS" && break
5136   done
5137 fi
5138 if test -z "$AS"; then
5139   ac_ct_AS=$AS
5140   for ac_prog in gas as
5141 do
5142   # Extract the first word of "$ac_prog", so it can be a program name with args.
5143 set dummy $ac_prog; ac_word=$2
5144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5146 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   if test -n "$ac_ct_AS"; then
5150   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155   IFS=$as_save_IFS
5156   test -z "$as_dir" && as_dir=.
5157   for ac_exec_ext in '' $ac_executable_extensions; do
5158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159     ac_cv_prog_ac_ct_AS="$ac_prog"
5160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161     break 2
5162   fi
5163 done
5164 done
5165 IFS=$as_save_IFS
5166
5167 fi
5168 fi
5169 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5170 if test -n "$ac_ct_AS"; then
5171   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5172 echo "${ECHO_T}$ac_ct_AS" >&6; }
5173 else
5174   { echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6; }
5176 fi
5177
5178
5179   test -n "$ac_ct_AS" && break
5180 done
5181
5182   if test "x$ac_ct_AS" = x; then
5183     AS="as"
5184   else
5185     case $cross_compiling:$ac_tool_warned in
5186 yes:)
5187 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5188 whose name does not start with the host triplet.  If you think this
5189 configuration is useful to you, please write to autoconf@gnu.org." >&5
5190 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5191 whose name does not start with the host triplet.  If you think this
5192 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5193 ac_tool_warned=yes ;;
5194 esac
5195     AS=$ac_ct_AS
5196   fi
5197 fi
5198
5199 if test -n "$ac_tool_prefix"; then
5200   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5201 set dummy ${ac_tool_prefix}ld; ac_word=$2
5202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5204 if test "${ac_cv_prog_LD+set}" = set; then
5205   echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207   if test -n "$LD"; then
5208   ac_cv_prog_LD="$LD" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215   for ac_exec_ext in '' $ac_executable_extensions; do
5216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217     ac_cv_prog_LD="${ac_tool_prefix}ld"
5218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 LD=$ac_cv_prog_LD
5228 if test -n "$LD"; then
5229   { echo "$as_me:$LINENO: result: $LD" >&5
5230 echo "${ECHO_T}$LD" >&6; }
5231 else
5232   { echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6; }
5234 fi
5235
5236
5237 fi
5238 if test -z "$ac_cv_prog_LD"; then
5239   ac_ct_LD=$LD
5240   # Extract the first word of "ld", so it can be a program name with args.
5241 set dummy ld; ac_word=$2
5242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5244 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   if test -n "$ac_ct_LD"; then
5248   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253   IFS=$as_save_IFS
5254   test -z "$as_dir" && as_dir=.
5255   for ac_exec_ext in '' $ac_executable_extensions; do
5256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257     ac_cv_prog_ac_ct_LD="ld"
5258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259     break 2
5260   fi
5261 done
5262 done
5263 IFS=$as_save_IFS
5264
5265 fi
5266 fi
5267 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5268 if test -n "$ac_ct_LD"; then
5269   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5270 echo "${ECHO_T}$ac_ct_LD" >&6; }
5271 else
5272   { echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6; }
5274 fi
5275
5276   if test "x$ac_ct_LD" = x; then
5277     LD="ld"
5278   else
5279     case $cross_compiling:$ac_tool_warned in
5280 yes:)
5281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5282 whose name does not start with the host triplet.  If you think this
5283 configuration is useful to you, please write to autoconf@gnu.org." >&5
5284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5285 whose name does not start with the host triplet.  If you think this
5286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5287 ac_tool_warned=yes ;;
5288 esac
5289     LD=$ac_ct_LD
5290   fi
5291 else
5292   LD="$ac_cv_prog_LD"
5293 fi
5294
5295 if test -n "$ac_tool_prefix"; then
5296   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5297 set dummy ${ac_tool_prefix}ar; ac_word=$2
5298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5300 if test "${ac_cv_prog_AR+set}" = set; then
5301   echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303   if test -n "$AR"; then
5304   ac_cv_prog_AR="$AR" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309   IFS=$as_save_IFS
5310   test -z "$as_dir" && as_dir=.
5311   for ac_exec_ext in '' $ac_executable_extensions; do
5312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313     ac_cv_prog_AR="${ac_tool_prefix}ar"
5314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315     break 2
5316   fi
5317 done
5318 done
5319 IFS=$as_save_IFS
5320
5321 fi
5322 fi
5323 AR=$ac_cv_prog_AR
5324 if test -n "$AR"; then
5325   { echo "$as_me:$LINENO: result: $AR" >&5
5326 echo "${ECHO_T}$AR" >&6; }
5327 else
5328   { echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6; }
5330 fi
5331
5332
5333 fi
5334 if test -z "$ac_cv_prog_AR"; then
5335   ac_ct_AR=$AR
5336   # Extract the first word of "ar", so it can be a program name with args.
5337 set dummy ar; ac_word=$2
5338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5340 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343   if test -n "$ac_ct_AR"; then
5344   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349   IFS=$as_save_IFS
5350   test -z "$as_dir" && as_dir=.
5351   for ac_exec_ext in '' $ac_executable_extensions; do
5352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353     ac_cv_prog_ac_ct_AR="ar"
5354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355     break 2
5356   fi
5357 done
5358 done
5359 IFS=$as_save_IFS
5360
5361 fi
5362 fi
5363 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5364 if test -n "$ac_ct_AR"; then
5365   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5366 echo "${ECHO_T}$ac_ct_AR" >&6; }
5367 else
5368   { echo "$as_me:$LINENO: result: no" >&5
5369 echo "${ECHO_T}no" >&6; }
5370 fi
5371
5372   if test "x$ac_ct_AR" = x; then
5373     AR="ar"
5374   else
5375     case $cross_compiling:$ac_tool_warned in
5376 yes:)
5377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5378 whose name does not start with the host triplet.  If you think this
5379 configuration is useful to you, please write to autoconf@gnu.org." >&5
5380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5381 whose name does not start with the host triplet.  If you think this
5382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5383 ac_tool_warned=yes ;;
5384 esac
5385     AR=$ac_ct_AR
5386   fi
5387 else
5388   AR="$ac_cv_prog_AR"
5389 fi
5390
5391 if test -n "$ac_tool_prefix"; then
5392   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5396 if test "${ac_cv_prog_RANLIB+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   if test -n "$RANLIB"; then
5400   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405   IFS=$as_save_IFS
5406   test -z "$as_dir" && as_dir=.
5407   for ac_exec_ext in '' $ac_executable_extensions; do
5408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411     break 2
5412   fi
5413 done
5414 done
5415 IFS=$as_save_IFS
5416
5417 fi
5418 fi
5419 RANLIB=$ac_cv_prog_RANLIB
5420 if test -n "$RANLIB"; then
5421   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5422 echo "${ECHO_T}$RANLIB" >&6; }
5423 else
5424   { echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6; }
5426 fi
5427
5428
5429 fi
5430 if test -z "$ac_cv_prog_RANLIB"; then
5431   ac_ct_RANLIB=$RANLIB
5432   # Extract the first word of "ranlib", so it can be a program name with args.
5433 set dummy ranlib; ac_word=$2
5434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5436 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439   if test -n "$ac_ct_RANLIB"; then
5440   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447   for ac_exec_ext in '' $ac_executable_extensions; do
5448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449     ac_cv_prog_ac_ct_RANLIB="ranlib"
5450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452   fi
5453 done
5454 done
5455 IFS=$as_save_IFS
5456
5457 fi
5458 fi
5459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5460 if test -n "$ac_ct_RANLIB"; then
5461   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5462 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5463 else
5464   { echo "$as_me:$LINENO: result: no" >&5
5465 echo "${ECHO_T}no" >&6; }
5466 fi
5467
5468   if test "x$ac_ct_RANLIB" = x; then
5469     RANLIB=":"
5470   else
5471     case $cross_compiling:$ac_tool_warned in
5472 yes:)
5473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5474 whose name does not start with the host triplet.  If you think this
5475 configuration is useful to you, please write to autoconf@gnu.org." >&5
5476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5477 whose name does not start with the host triplet.  If you think this
5478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5479 ac_tool_warned=yes ;;
5480 esac
5481     RANLIB=$ac_ct_RANLIB
5482   fi
5483 else
5484   RANLIB="$ac_cv_prog_RANLIB"
5485 fi
5486
5487 if test -n "$ac_tool_prefix"; then
5488   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5489 set dummy ${ac_tool_prefix}strip; ac_word=$2
5490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5492 if test "${ac_cv_prog_STRIP+set}" = set; then
5493   echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495   if test -n "$STRIP"; then
5496   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5497 else
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501   IFS=$as_save_IFS
5502   test -z "$as_dir" && as_dir=.
5503   for ac_exec_ext in '' $ac_executable_extensions; do
5504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507     break 2
5508   fi
5509 done
5510 done
5511 IFS=$as_save_IFS
5512
5513 fi
5514 fi
5515 STRIP=$ac_cv_prog_STRIP
5516 if test -n "$STRIP"; then
5517   { echo "$as_me:$LINENO: result: $STRIP" >&5
5518 echo "${ECHO_T}$STRIP" >&6; }
5519 else
5520   { echo "$as_me:$LINENO: result: no" >&5
5521 echo "${ECHO_T}no" >&6; }
5522 fi
5523
5524
5525 fi
5526 if test -z "$ac_cv_prog_STRIP"; then
5527   ac_ct_STRIP=$STRIP
5528   # Extract the first word of "strip", so it can be a program name with args.
5529 set dummy strip; ac_word=$2
5530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5532 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5533   echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535   if test -n "$ac_ct_STRIP"; then
5536   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541   IFS=$as_save_IFS
5542   test -z "$as_dir" && as_dir=.
5543   for ac_exec_ext in '' $ac_executable_extensions; do
5544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545     ac_cv_prog_ac_ct_STRIP="strip"
5546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547     break 2
5548   fi
5549 done
5550 done
5551 IFS=$as_save_IFS
5552
5553 fi
5554 fi
5555 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5556 if test -n "$ac_ct_STRIP"; then
5557   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5558 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5559 else
5560   { echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6; }
5562 fi
5563
5564   if test "x$ac_ct_STRIP" = x; then
5565     STRIP="strip"
5566   else
5567     case $cross_compiling:$ac_tool_warned in
5568 yes:)
5569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5570 whose name does not start with the host triplet.  If you think this
5571 configuration is useful to you, please write to autoconf@gnu.org." >&5
5572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5573 whose name does not start with the host triplet.  If you think this
5574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5575 ac_tool_warned=yes ;;
5576 esac
5577     STRIP=$ac_ct_STRIP
5578   fi
5579 else
5580   STRIP="$ac_cv_prog_STRIP"
5581 fi
5582
5583 if test -n "$ac_tool_prefix"; then
5584   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5585 set dummy ${ac_tool_prefix}windres; ac_word=$2
5586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5588 if test "${ac_cv_prog_WINDRES+set}" = set; then
5589   echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591   if test -n "$WINDRES"; then
5592   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5593 else
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5596 do
5597   IFS=$as_save_IFS
5598   test -z "$as_dir" && as_dir=.
5599   for ac_exec_ext in '' $ac_executable_extensions; do
5600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5601     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5603     break 2
5604   fi
5605 done
5606 done
5607 IFS=$as_save_IFS
5608
5609 fi
5610 fi
5611 WINDRES=$ac_cv_prog_WINDRES
5612 if test -n "$WINDRES"; then
5613   { echo "$as_me:$LINENO: result: $WINDRES" >&5
5614 echo "${ECHO_T}$WINDRES" >&6; }
5615 else
5616   { echo "$as_me:$LINENO: result: no" >&5
5617 echo "${ECHO_T}no" >&6; }
5618 fi
5619
5620
5621 fi
5622 if test -z "$ac_cv_prog_WINDRES"; then
5623   ac_ct_WINDRES=$WINDRES
5624   # Extract the first word of "windres", so it can be a program name with args.
5625 set dummy windres; ac_word=$2
5626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5628 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   if test -n "$ac_ct_WINDRES"; then
5632   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5633 else
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637   IFS=$as_save_IFS
5638   test -z "$as_dir" && as_dir=.
5639   for ac_exec_ext in '' $ac_executable_extensions; do
5640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5641     ac_cv_prog_ac_ct_WINDRES="windres"
5642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5643     break 2
5644   fi
5645 done
5646 done
5647 IFS=$as_save_IFS
5648
5649 fi
5650 fi
5651 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5652 if test -n "$ac_ct_WINDRES"; then
5653   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5654 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
5655 else
5656   { echo "$as_me:$LINENO: result: no" >&5
5657 echo "${ECHO_T}no" >&6; }
5658 fi
5659
5660   if test "x$ac_ct_WINDRES" = x; then
5661     WINDRES="false"
5662   else
5663     case $cross_compiling:$ac_tool_warned in
5664 yes:)
5665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5666 whose name does not start with the host triplet.  If you think this
5667 configuration is useful to you, please write to autoconf@gnu.org." >&5
5668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5669 whose name does not start with the host triplet.  If you think this
5670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5671 ac_tool_warned=yes ;;
5672 esac
5673     WINDRES=$ac_ct_WINDRES
5674   fi
5675 else
5676   WINDRES="$ac_cv_prog_WINDRES"
5677 fi
5678
5679 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5680 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5681 LN_S=$as_ln_s
5682 if test "$LN_S" = "ln -s"; then
5683   { echo "$as_me:$LINENO: result: yes" >&5
5684 echo "${ECHO_T}yes" >&6; }
5685 else
5686   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5687 echo "${ECHO_T}no, using $LN_S" >&6; }
5688 fi
5689
5690 { echo "$as_me:$LINENO: checking whether ln works" >&5
5691 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
5692 rm -f conf$$ conf$$.file
5693 echo >conf$$.file
5694 if ln conf$$.file conf$$ 2>/dev/null; then
5695   LN=ln
5696
5697   { echo "$as_me:$LINENO: result: yes" >&5
5698 echo "${ECHO_T}yes" >&6; }
5699 else
5700   LN="cp -p"
5701
5702   { echo "$as_me:$LINENO: result: no, using $LN" >&5
5703 echo "${ECHO_T}no, using $LN" >&6; }
5704 fi
5705 rm -f conf$$ conf$$.file
5706 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5707 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5708 if test "${ac_cv_path_GREP+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   # Extract the first word of "grep ggrep" to use in msg output
5712 if test -z "$GREP"; then
5713 set dummy grep ggrep; ac_prog_name=$2
5714 if test "${ac_cv_path_GREP+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   ac_path_GREP_found=false
5718 # Loop through the user's path and test for each of PROGNAME-LIST
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5721 do
5722   IFS=$as_save_IFS
5723   test -z "$as_dir" && as_dir=.
5724   for ac_prog in grep ggrep; do
5725   for ac_exec_ext in '' $ac_executable_extensions; do
5726     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5727     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5728     # Check for GNU ac_path_GREP and select it if it is found.
5729   # Check for GNU $ac_path_GREP
5730 case `"$ac_path_GREP" --version 2>&1` in
5731 *GNU*)
5732   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5733 *)
5734   ac_count=0
5735   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5736   while :
5737   do
5738     cat "conftest.in" "conftest.in" >"conftest.tmp"
5739     mv "conftest.tmp" "conftest.in"
5740     cp "conftest.in" "conftest.nl"
5741     echo 'GREP' >> "conftest.nl"
5742     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5743     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5744     ac_count=`expr $ac_count + 1`
5745     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5746       # Best one so far, save it but keep looking for a better one
5747       ac_cv_path_GREP="$ac_path_GREP"
5748       ac_path_GREP_max=$ac_count
5749     fi
5750     # 10*(2^10) chars as input seems more than enough
5751     test $ac_count -gt 10 && break
5752   done
5753   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5754 esac
5755
5756
5757     $ac_path_GREP_found && break 3
5758   done
5759 done
5760
5761 done
5762 IFS=$as_save_IFS
5763
5764
5765 fi
5766
5767 GREP="$ac_cv_path_GREP"
5768 if test -z "$GREP"; then
5769   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5770 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5771    { (exit 1); exit 1; }; }
5772 fi
5773
5774 else
5775   ac_cv_path_GREP=$GREP
5776 fi
5777
5778
5779 fi
5780 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5781 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5782  GREP="$ac_cv_path_GREP"
5783
5784
5785 { echo "$as_me:$LINENO: checking for egrep" >&5
5786 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5787 if test "${ac_cv_path_EGREP+set}" = set; then
5788   echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5791    then ac_cv_path_EGREP="$GREP -E"
5792    else
5793      # Extract the first word of "egrep" to use in msg output
5794 if test -z "$EGREP"; then
5795 set dummy egrep; ac_prog_name=$2
5796 if test "${ac_cv_path_EGREP+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   ac_path_EGREP_found=false
5800 # Loop through the user's path and test for each of PROGNAME-LIST
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5803 do
5804   IFS=$as_save_IFS
5805   test -z "$as_dir" && as_dir=.
5806   for ac_prog in egrep; do
5807   for ac_exec_ext in '' $ac_executable_extensions; do
5808     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5809     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5810     # Check for GNU ac_path_EGREP and select it if it is found.
5811   # Check for GNU $ac_path_EGREP
5812 case `"$ac_path_EGREP" --version 2>&1` in
5813 *GNU*)
5814   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5815 *)
5816   ac_count=0
5817   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5818   while :
5819   do
5820     cat "conftest.in" "conftest.in" >"conftest.tmp"
5821     mv "conftest.tmp" "conftest.in"
5822     cp "conftest.in" "conftest.nl"
5823     echo 'EGREP' >> "conftest.nl"
5824     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5825     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5826     ac_count=`expr $ac_count + 1`
5827     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5828       # Best one so far, save it but keep looking for a better one
5829       ac_cv_path_EGREP="$ac_path_EGREP"
5830       ac_path_EGREP_max=$ac_count
5831     fi
5832     # 10*(2^10) chars as input seems more than enough
5833     test $ac_count -gt 10 && break
5834   done
5835   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5836 esac
5837
5838
5839     $ac_path_EGREP_found && break 3
5840   done
5841 done
5842
5843 done
5844 IFS=$as_save_IFS
5845
5846
5847 fi
5848
5849 EGREP="$ac_cv_path_EGREP"
5850 if test -z "$EGREP"; then
5851   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5852 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5853    { (exit 1); exit 1; }; }
5854 fi
5855
5856 else
5857   ac_cv_path_EGREP=$EGREP
5858 fi
5859
5860
5861    fi
5862 fi
5863 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5864 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5865  EGREP="$ac_cv_path_EGREP"
5866
5867
5868 # Extract the first word of "ldconfig", so it can be a program name with args.
5869 set dummy ldconfig; ac_word=$2
5870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   case $LDCONFIG in
5876   [\\/]* | ?:[\\/]*)
5877   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5878   ;;
5879   *)
5880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in /sbin /usr/sbin $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885   for ac_exec_ext in '' $ac_executable_extensions; do
5886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5887     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889     break 2
5890   fi
5891 done
5892 done
5893 IFS=$as_save_IFS
5894
5895   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5896   ;;
5897 esac
5898 fi
5899 LDCONFIG=$ac_cv_path_LDCONFIG
5900 if test -n "$LDCONFIG"; then
5901   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5902 echo "${ECHO_T}$LDCONFIG" >&6; }
5903 else
5904   { echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6; }
5906 fi
5907
5908
5909 # Find a good install program.  We prefer a C program (faster),
5910 # so one script is as good as another.  But avoid the broken or
5911 # incompatible versions:
5912 # SysV /etc/install, /usr/sbin/install
5913 # SunOS /usr/etc/install
5914 # IRIX /sbin/install
5915 # AIX /bin/install
5916 # AmigaOS /C/install, which installs bootblocks on floppy discs
5917 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5920 # OS/2's system install, which has a completely different semantic
5921 # ./install, which can be erroneously created by make from ./install.sh.
5922 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5923 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5924 if test -z "$INSTALL"; then
5925 if test "${ac_cv_path_install+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933   # Account for people who put trailing slashes in PATH elements.
5934 case $as_dir/ in
5935   ./ | .// | /cC/* | \
5936   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5937   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5938   /usr/ucb/* ) ;;
5939   *)
5940     # OSF1 and SCO ODT 3.0 have their own names for install.
5941     # Don't use installbsd from OSF since it installs stuff as root
5942     # by default.
5943     for ac_prog in ginstall scoinst install; do
5944       for ac_exec_ext in '' $ac_executable_extensions; do
5945         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5946           if test $ac_prog = install &&
5947             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5948             # AIX install.  It has an incompatible calling convention.
5949             :
5950           elif test $ac_prog = install &&
5951             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5952             # program-specific install script used by HP pwplus--don't use.
5953             :
5954           else
5955             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5956             break 3
5957           fi
5958         fi
5959       done
5960     done
5961     ;;
5962 esac
5963 done
5964 IFS=$as_save_IFS
5965
5966
5967 fi
5968   if test "${ac_cv_path_install+set}" = set; then
5969     INSTALL=$ac_cv_path_install
5970   else
5971     # As a last resort, use the slow shell script.  Don't cache a
5972     # value for INSTALL within a source directory, because that will
5973     # break other packages using the cache if that directory is
5974     # removed, or if the value is a relative name.
5975     INSTALL=$ac_install_sh
5976   fi
5977 fi
5978 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5979 echo "${ECHO_T}$INSTALL" >&6; }
5980
5981 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5982 # It thinks the first close brace ends the variable substitution.
5983 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5984
5985 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5986
5987 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5988
5989 case "$INSTALL" in
5990   [\\/$]* | ?:[\\/]* ) ;;
5991   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5992 esac
5993
5994 for ac_prog in lclint lint
5995 do
5996   # Extract the first word of "$ac_prog", so it can be a program name with args.
5997 set dummy $ac_prog; ac_word=$2
5998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6000 if test "${ac_cv_prog_LINT+set}" = set; then
6001   echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003   if test -n "$LINT"; then
6004   ac_cv_prog_LINT="$LINT" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009   IFS=$as_save_IFS
6010   test -z "$as_dir" && as_dir=.
6011   for ac_exec_ext in '' $ac_executable_extensions; do
6012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013     ac_cv_prog_LINT="$ac_prog"
6014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015     break 2
6016   fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 LINT=$ac_cv_prog_LINT
6024 if test -n "$LINT"; then
6025   { echo "$as_me:$LINENO: result: $LINT" >&5
6026 echo "${ECHO_T}$LINT" >&6; }
6027 else
6028   { echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6; }
6030 fi
6031
6032
6033   test -n "$LINT" && break
6034 done
6035
6036 if test "$LINT" = "lint"
6037 then
6038   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6039   fi
6040
6041
6042
6043 for ac_prog in fontforge
6044 do
6045   # Extract the first word of "$ac_prog", so it can be a program name with args.
6046 set dummy $ac_prog; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   if test -n "$FONTFORGE"; then
6053   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for ac_exec_ext in '' $ac_executable_extensions; do
6061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6062     ac_cv_prog_FONTFORGE="$ac_prog"
6063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064     break 2
6065   fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070 fi
6071 fi
6072 FONTFORGE=$ac_cv_prog_FONTFORGE
6073 if test -n "$FONTFORGE"; then
6074   { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6075 echo "${ECHO_T}$FONTFORGE" >&6; }
6076 else
6077   { echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6; }
6079 fi
6080
6081
6082   test -n "$FONTFORGE" && break
6083 done
6084 test -n "$FONTFORGE" || FONTFORGE="false"
6085
6086 for ac_prog in pkg-config
6087 do
6088   # Extract the first word of "$ac_prog", so it can be a program name with args.
6089 set dummy $ac_prog; ac_word=$2
6090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6093   echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095   if test -n "$PKG_CONFIG"; then
6096   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   test -z "$as_dir" && as_dir=.
6103   for ac_exec_ext in '' $ac_executable_extensions; do
6104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105     ac_cv_prog_PKG_CONFIG="$ac_prog"
6106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6116 if test -n "$PKG_CONFIG"; then
6117   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6118 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6119 else
6120   { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6122 fi
6123
6124
6125   test -n "$PKG_CONFIG" && break
6126 done
6127 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6128
6129
6130 case $host_cpu in
6131   *i[3456789]86*)
6132     # Extract the first word of "prelink", so it can be a program name with args.
6133 set dummy prelink; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_path_PRELINK+set}" = set; then
6137   echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139   case $PRELINK in
6140   [\\/]* | ?:[\\/]*)
6141   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6142   ;;
6143   *)
6144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in /sbin /usr/sbin $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149   for ac_exec_ext in '' $ac_executable_extensions; do
6150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6160   ;;
6161 esac
6162 fi
6163 PRELINK=$ac_cv_path_PRELINK
6164 if test -n "$PRELINK"; then
6165   { echo "$as_me:$LINENO: result: $PRELINK" >&5
6166 echo "${ECHO_T}$PRELINK" >&6; }
6167 else
6168   { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6170 fi
6171
6172
6173     ;;
6174 esac
6175
6176
6177
6178 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6179 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6180 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6181   echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183   ac_check_lib_save_LIBS=$LIBS
6184 LIBS="-li386  $LIBS"
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h.  */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h.  */
6191
6192 /* Override any GCC internal prototype to avoid an error.
6193    Use char because int might match the return type of a GCC
6194    builtin and then its argument prototype would still apply.  */
6195 #ifdef __cplusplus
6196 extern "C"
6197 #endif
6198 char i386_set_ldt ();
6199 int
6200 main ()
6201 {
6202 return i386_set_ldt ();
6203   ;
6204   return 0;
6205 }
6206 _ACEOF
6207 rm -f conftest.$ac_objext conftest$ac_exeext
6208 if { (ac_try="$ac_link"
6209 case "(($ac_try" in
6210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211   *) ac_try_echo=$ac_try;;
6212 esac
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214   (eval "$ac_link") 2>conftest.er1
6215   ac_status=$?
6216   grep -v '^ *+' conftest.er1 >conftest.err
6217   rm -f conftest.er1
6218   cat conftest.err >&5
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); } && {
6221          test -z "$ac_c_werror_flag" ||
6222          test ! -s conftest.err
6223        } && test -s conftest$ac_exeext &&
6224        $as_test_x conftest$ac_exeext; then
6225   ac_cv_lib_i386_i386_set_ldt=yes
6226 else
6227   echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6229
6230         ac_cv_lib_i386_i386_set_ldt=no
6231 fi
6232
6233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6234       conftest$ac_exeext conftest.$ac_ext
6235 LIBS=$ac_check_lib_save_LIBS
6236 fi
6237 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6238 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
6239 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
6240   cat >>confdefs.h <<_ACEOF
6241 #define HAVE_LIBI386 1
6242 _ACEOF
6243
6244   LIBS="-li386 $LIBS"
6245
6246 fi
6247
6248
6249 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6250 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6251 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254   ac_check_lib_save_LIBS=$LIBS
6255 LIBS="-lossaudio  $LIBS"
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h.  */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h.  */
6262
6263 /* Override any GCC internal prototype to avoid an error.
6264    Use char because int might match the return type of a GCC
6265    builtin and then its argument prototype would still apply.  */
6266 #ifdef __cplusplus
6267 extern "C"
6268 #endif
6269 char _oss_ioctl ();
6270 int
6271 main ()
6272 {
6273 return _oss_ioctl ();
6274   ;
6275   return 0;
6276 }
6277 _ACEOF
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (ac_try="$ac_link"
6280 case "(($ac_try" in
6281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282   *) ac_try_echo=$ac_try;;
6283 esac
6284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285   (eval "$ac_link") 2>conftest.er1
6286   ac_status=$?
6287   grep -v '^ *+' conftest.er1 >conftest.err
6288   rm -f conftest.er1
6289   cat conftest.err >&5
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); } && {
6292          test -z "$ac_c_werror_flag" ||
6293          test ! -s conftest.err
6294        } && test -s conftest$ac_exeext &&
6295        $as_test_x conftest$ac_exeext; then
6296   ac_cv_lib_ossaudio__oss_ioctl=yes
6297 else
6298   echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6300
6301         ac_cv_lib_ossaudio__oss_ioctl=no
6302 fi
6303
6304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6305       conftest$ac_exeext conftest.$ac_ext
6306 LIBS=$ac_check_lib_save_LIBS
6307 fi
6308 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6309 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6310 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6311   cat >>confdefs.h <<_ACEOF
6312 #define HAVE_LIBOSSAUDIO 1
6313 _ACEOF
6314
6315   LIBS="-lossaudio $LIBS"
6316
6317 fi
6318
6319
6320 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6321 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
6322 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   ac_check_lib_save_LIBS=$LIBS
6326 LIBS="-lxpg4  $LIBS"
6327 cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h.  */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h.  */
6333
6334 /* Override any GCC internal prototype to avoid an error.
6335    Use char because int might match the return type of a GCC
6336    builtin and then its argument prototype would still apply.  */
6337 #ifdef __cplusplus
6338 extern "C"
6339 #endif
6340 char _xpg4_setrunelocale ();
6341 int
6342 main ()
6343 {
6344 return _xpg4_setrunelocale ();
6345   ;
6346   return 0;
6347 }
6348 _ACEOF
6349 rm -f conftest.$ac_objext conftest$ac_exeext
6350 if { (ac_try="$ac_link"
6351 case "(($ac_try" in
6352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353   *) ac_try_echo=$ac_try;;
6354 esac
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356   (eval "$ac_link") 2>conftest.er1
6357   ac_status=$?
6358   grep -v '^ *+' conftest.er1 >conftest.err
6359   rm -f conftest.er1
6360   cat conftest.err >&5
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } && {
6363          test -z "$ac_c_werror_flag" ||
6364          test ! -s conftest.err
6365        } && test -s conftest$ac_exeext &&
6366        $as_test_x conftest$ac_exeext; then
6367   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6368 else
6369   echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6371
6372         ac_cv_lib_xpg4__xpg4_setrunelocale=no
6373 fi
6374
6375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6376       conftest$ac_exeext conftest.$ac_ext
6377 LIBS=$ac_check_lib_save_LIBS
6378 fi
6379 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6380 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
6381 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6382   cat >>confdefs.h <<_ACEOF
6383 #define HAVE_LIBXPG4 1
6384 _ACEOF
6385
6386   LIBS="-lxpg4 $LIBS"
6387
6388 fi
6389
6390 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6391 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
6392 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6393   echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395   ac_check_lib_save_LIBS=$LIBS
6396 LIBS="-lpthread  $LIBS"
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h.  */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h.  */
6403
6404 /* Override any GCC internal prototype to avoid an error.
6405    Use char because int might match the return type of a GCC
6406    builtin and then its argument prototype would still apply.  */
6407 #ifdef __cplusplus
6408 extern "C"
6409 #endif
6410 char pthread_create ();
6411 int
6412 main ()
6413 {
6414 return pthread_create ();
6415   ;
6416   return 0;
6417 }
6418 _ACEOF
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (ac_try="$ac_link"
6421 case "(($ac_try" in
6422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423   *) ac_try_echo=$ac_try;;
6424 esac
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426   (eval "$ac_link") 2>conftest.er1
6427   ac_status=$?
6428   grep -v '^ *+' conftest.er1 >conftest.err
6429   rm -f conftest.er1
6430   cat conftest.err >&5
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } && {
6433          test -z "$ac_c_werror_flag" ||
6434          test ! -s conftest.err
6435        } && test -s conftest$ac_exeext &&
6436        $as_test_x conftest$ac_exeext; then
6437   ac_cv_lib_pthread_pthread_create=yes
6438 else
6439   echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442         ac_cv_lib_pthread_pthread_create=no
6443 fi
6444
6445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6446       conftest$ac_exeext conftest.$ac_ext
6447 LIBS=$ac_check_lib_save_LIBS
6448 fi
6449 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6450 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
6451 if test $ac_cv_lib_pthread_pthread_create = yes; then
6452   LIBPTHREAD="-lpthread"
6453
6454 fi
6455
6456
6457 XLIB=""
6458
6459 XFILES=""
6460
6461 OPENGLFILES=""
6462
6463 GLU32FILES=""
6464
6465 OPENGL_LIBS=""
6466
6467 QUARTZFILES=""
6468
6469
6470
6471 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6472 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6473 if test "${ac_cv_header_stdc+set}" = set; then
6474   echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476   cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h.  */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h.  */
6482 #include <stdlib.h>
6483 #include <stdarg.h>
6484 #include <string.h>
6485 #include <float.h>
6486
6487 int
6488 main ()
6489 {
6490
6491   ;
6492   return 0;
6493 }
6494 _ACEOF
6495 rm -f conftest.$ac_objext
6496 if { (ac_try="$ac_compile"
6497 case "(($ac_try" in
6498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499   *) ac_try_echo=$ac_try;;
6500 esac
6501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502   (eval "$ac_compile") 2>conftest.er1
6503   ac_status=$?
6504   grep -v '^ *+' conftest.er1 >conftest.err
6505   rm -f conftest.er1
6506   cat conftest.err >&5
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); } && {
6509          test -z "$ac_c_werror_flag" ||
6510          test ! -s conftest.err
6511        } && test -s conftest.$ac_objext; then
6512   ac_cv_header_stdc=yes
6513 else
6514   echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6516
6517         ac_cv_header_stdc=no
6518 fi
6519
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521
6522 if test $ac_cv_header_stdc = yes; then
6523   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6524   cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h.  */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h.  */
6530 #include <string.h>
6531
6532 _ACEOF
6533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6534   $EGREP "memchr" >/dev/null 2>&1; then
6535   :
6536 else
6537   ac_cv_header_stdc=no
6538 fi
6539 rm -f conftest*
6540
6541 fi
6542
6543 if test $ac_cv_header_stdc = yes; then
6544   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6545   cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h.  */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h.  */
6551 #include <stdlib.h>
6552
6553 _ACEOF
6554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6555   $EGREP "free" >/dev/null 2>&1; then
6556   :
6557 else
6558   ac_cv_header_stdc=no
6559 fi
6560 rm -f conftest*
6561
6562 fi
6563
6564 if test $ac_cv_header_stdc = yes; then
6565   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6566   if test "$cross_compiling" = yes; then
6567   :
6568 else
6569   cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h.  */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h.  */
6575 #include <ctype.h>
6576 #include <stdlib.h>
6577 #if ((' ' & 0x0FF) == 0x020)
6578 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6579 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6580 #else
6581 # define ISLOWER(c) \
6582                    (('a' <= (c) && (c) <= 'i') \
6583                      || ('j' <= (c) && (c) <= 'r') \
6584                      || ('s' <= (c) && (c) <= 'z'))
6585 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6586 #endif
6587
6588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6589 int
6590 main ()
6591 {
6592   int i;
6593   for (i = 0; i < 256; i++)
6594     if (XOR (islower (i), ISLOWER (i))
6595         || toupper (i) != TOUPPER (i))
6596       return 2;
6597   return 0;
6598 }
6599 _ACEOF
6600 rm -f conftest$ac_exeext
6601 if { (ac_try="$ac_link"
6602 case "(($ac_try" in
6603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604   *) ac_try_echo=$ac_try;;
6605 esac
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607   (eval "$ac_link") 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6611   { (case "(($ac_try" in
6612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613   *) ac_try_echo=$ac_try;;
6614 esac
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616   (eval "$ac_try") 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); }; }; then
6620   :
6621 else
6622   echo "$as_me: program exited with status $ac_status" >&5
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 ( exit $ac_status )
6627 ac_cv_header_stdc=no
6628 fi
6629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6630 fi
6631
6632
6633 fi
6634 fi
6635 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6636 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6637 if test $ac_cv_header_stdc = yes; then
6638
6639 cat >>confdefs.h <<\_ACEOF
6640 #define STDC_HEADERS 1
6641 _ACEOF
6642
6643 fi
6644
6645 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6656                   inttypes.h stdint.h unistd.h
6657 do
6658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6662   echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664   cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h.  */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h.  */
6670 $ac_includes_default
6671
6672 #include <$ac_header>
6673 _ACEOF
6674 rm -f conftest.$ac_objext
6675 if { (ac_try="$ac_compile"
6676 case "(($ac_try" in
6677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6678   *) ac_try_echo=$ac_try;;
6679 esac
6680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6681   (eval "$ac_compile") 2>conftest.er1
6682   ac_status=$?
6683   grep -v '^ *+' conftest.er1 >conftest.err
6684   rm -f conftest.er1
6685   cat conftest.err >&5
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } && {
6688          test -z "$ac_c_werror_flag" ||
6689          test ! -s conftest.err
6690        } && test -s conftest.$ac_objext; then
6691   eval "$as_ac_Header=yes"
6692 else
6693   echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6695
6696         eval "$as_ac_Header=no"
6697 fi
6698
6699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700 fi
6701 ac_res=`eval echo '${'$as_ac_Header'}'`
6702                { echo "$as_me:$LINENO: result: $ac_res" >&5
6703 echo "${ECHO_T}$ac_res" >&6; }
6704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6705   cat >>confdefs.h <<_ACEOF
6706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6707 _ACEOF
6708
6709 fi
6710
6711 done
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823 for ac_header in \
6824         AudioUnit/AudioUnit.h \
6825         Carbon/Carbon.h \
6826         CoreAudio/CoreAudio.h \
6827         DiskArbitration/DiskArbitration.h \
6828         IOKit/IOKitLib.h \
6829         alsa/asoundlib.h \
6830         arpa/inet.h \
6831         arpa/nameser.h \
6832         asm/types.h \
6833         capi20.h \
6834         cups/cups.h \
6835         curses.h \
6836         direct.h \
6837         dlfcn.h \
6838         elf.h \
6839         float.h \
6840         fontconfig/fontconfig.h \
6841         getopt.h \
6842         ieeefp.h \
6843         io.h \
6844         jack/jack.h \
6845         jpeglib.h \
6846         lber.h \
6847         lcms.h \
6848         lcms/lcms.h \
6849         ldap.h \
6850         libaudioio.h \
6851         link.h \
6852         linux/cdrom.h \
6853         linux/compiler.h \
6854         linux/hdreg.h \
6855         linux/input.h \
6856         linux/ioctl.h \
6857         linux/joystick.h \
6858         linux/major.h \
6859         linux/param.h \
6860         linux/serial.h \
6861         linux/ucdrom.h \
6862         mach/mach.h \
6863         mach/machine.h \
6864         machine/cpu.h \
6865         machine/limits.h \
6866         machine/soundcard.h \
6867         mntent.h \
6868         ncurses.h \
6869         netdb.h \
6870         netinet/in.h \
6871         netinet/in_systm.h \
6872         netinet/tcp.h \
6873         netinet/tcp_fsm.h \
6874         openssl/err.h \
6875         openssl/ssl.h \
6876         poll.h \
6877         process.h \
6878         pthread.h \
6879         pwd.h \
6880         regex.h \
6881         sched.h \
6882         scsi/scsi.h \
6883         scsi/scsi_ioctl.h \
6884         scsi/sg.h \
6885         soundcard.h \
6886         stdint.h \
6887         strings.h \
6888         sys/asoundlib.h \
6889         sys/cdio.h \
6890         sys/elf32.h \
6891         sys/epoll.h \
6892         sys/errno.h \
6893         sys/event.h \
6894         sys/exec_elf.h \
6895         sys/filio.h \
6896         sys/ioctl.h \
6897         sys/ipc.h \
6898         sys/limits.h \
6899         sys/link.h \
6900         sys/lwp.h \
6901         sys/mman.h \
6902         sys/modem.h \
6903         sys/msg.h \
6904         sys/mtio.h \
6905         sys/param.h \
6906         sys/poll.h \
6907         sys/prctl.h \
6908         sys/ptrace.h \
6909         sys/reg.h \
6910         sys/resource.h \
6911         sys/scsiio.h \
6912         sys/shm.h \
6913         sys/signal.h \
6914         sys/socket.h \
6915         sys/sockio.h \
6916         sys/soundcard.h \
6917         sys/statvfs.h \
6918         sys/strtio.h \
6919         sys/syscall.h \
6920         sys/sysctl.h \
6921         sys/time.h \
6922         sys/times.h \
6923         sys/uio.h \
6924         sys/un.h \
6925         sys/vm86.h \
6926         sys/wait.h \
6927         syscall.h \
6928         termios.h \
6929         unicode/ubidi.h \
6930         unistd.h \
6931         utime.h \
6932         valgrind/memcheck.h
6933
6934 do
6935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6937   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6940   echo $ECHO_N "(cached) $ECHO_C" >&6
6941 fi
6942 ac_res=`eval echo '${'$as_ac_Header'}'`
6943                { echo "$as_me:$LINENO: result: $ac_res" >&5
6944 echo "${ECHO_T}$ac_res" >&6; }
6945 else
6946   # Is the header compilable?
6947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h.  */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h.  */
6955 $ac_includes_default
6956 #include <$ac_header>
6957 _ACEOF
6958 rm -f conftest.$ac_objext
6959 if { (ac_try="$ac_compile"
6960 case "(($ac_try" in
6961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962   *) ac_try_echo=$ac_try;;
6963 esac
6964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6965   (eval "$ac_compile") 2>conftest.er1
6966   ac_status=$?
6967   grep -v '^ *+' conftest.er1 >conftest.err
6968   rm -f conftest.er1
6969   cat conftest.err >&5
6970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); } && {
6972          test -z "$ac_c_werror_flag" ||
6973          test ! -s conftest.err
6974        } && test -s conftest.$ac_objext; then
6975   ac_header_compiler=yes
6976 else
6977   echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6979
6980         ac_header_compiler=no
6981 fi
6982
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6985 echo "${ECHO_T}$ac_header_compiler" >&6; }
6986
6987 # Is the header present?
6988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6990 cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h.  */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h.  */
6996 #include <$ac_header>
6997 _ACEOF
6998 if { (ac_try="$ac_cpp conftest.$ac_ext"
6999 case "(($ac_try" in
7000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001   *) ac_try_echo=$ac_try;;
7002 esac
7003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7004   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7005   ac_status=$?
7006   grep -v '^ *+' conftest.er1 >conftest.err
7007   rm -f conftest.er1
7008   cat conftest.err >&5
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); } >/dev/null && {
7011          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7012          test ! -s conftest.err
7013        }; then
7014   ac_header_preproc=yes
7015 else
7016   echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7018
7019   ac_header_preproc=no
7020 fi
7021
7022 rm -f conftest.err conftest.$ac_ext
7023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7024 echo "${ECHO_T}$ac_header_preproc" >&6; }
7025
7026 # So?  What about this header?
7027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7028   yes:no: )
7029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7033     ac_header_preproc=yes
7034     ;;
7035   no:yes:* )
7036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7048     ( cat <<\_ASBOX
7049 ## ------------------------------------ ##
7050 ## Report this to wine-devel@winehq.org ##
7051 ## ------------------------------------ ##
7052 _ASBOX
7053      ) | sed "s/^/$as_me: WARNING:     /" >&2
7054     ;;
7055 esac
7056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7059   echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061   eval "$as_ac_Header=\$ac_header_preproc"
7062 fi
7063 ac_res=`eval echo '${'$as_ac_Header'}'`
7064                { echo "$as_me:$LINENO: result: $ac_res" >&5
7065 echo "${ECHO_T}$ac_res" >&6; }
7066
7067 fi
7068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7069   cat >>confdefs.h <<_ACEOF
7070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7071 _ACEOF
7072
7073 fi
7074
7075 done
7076
7077 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7078 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7079 if test "${ac_cv_header_stat_broken+set}" = set; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h.  */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h.  */
7088 #include <sys/types.h>
7089 #include <sys/stat.h>
7090
7091 #if defined S_ISBLK && defined S_IFDIR
7092 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7093 #endif
7094
7095 #if defined S_ISBLK && defined S_IFCHR
7096 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7097 #endif
7098
7099 #if defined S_ISLNK && defined S_IFREG
7100 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7101 #endif
7102
7103 #if defined S_ISSOCK && defined S_IFREG
7104 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7105 #endif
7106
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7110 case "(($ac_try" in
7111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112   *) ac_try_echo=$ac_try;;
7113 esac
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115   (eval "$ac_compile") 2>conftest.er1
7116   ac_status=$?
7117   grep -v '^ *+' conftest.er1 >conftest.err
7118   rm -f conftest.er1
7119   cat conftest.err >&5
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); } && {
7122          test -z "$ac_c_werror_flag" ||
7123          test ! -s conftest.err
7124        } && test -s conftest.$ac_objext; then
7125   ac_cv_header_stat_broken=no
7126 else
7127   echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130         ac_cv_header_stat_broken=yes
7131 fi
7132
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 fi
7135 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7136 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7137 if test $ac_cv_header_stat_broken = yes; then
7138
7139 cat >>confdefs.h <<\_ACEOF
7140 #define STAT_MACROS_BROKEN 1
7141 _ACEOF
7142
7143 fi
7144
7145
7146
7147
7148
7149
7150
7151 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7152 do
7153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h.  */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h.  */
7165 #include <sys/types.h>
7166      #if HAVE_SYS_PARAM_H
7167      # include <sys/param.h>
7168      #endif
7169
7170 #include <$ac_header>
7171 _ACEOF
7172 rm -f conftest.$ac_objext
7173 if { (ac_try="$ac_compile"
7174 case "(($ac_try" in
7175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176   *) ac_try_echo=$ac_try;;
7177 esac
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179   (eval "$ac_compile") 2>conftest.er1
7180   ac_status=$?
7181   grep -v '^ *+' conftest.er1 >conftest.err
7182   rm -f conftest.er1
7183   cat conftest.err >&5
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); } && {
7186          test -z "$ac_c_werror_flag" ||
7187          test ! -s conftest.err
7188        } && test -s conftest.$ac_objext; then
7189   eval "$as_ac_Header=yes"
7190 else
7191   echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7193
7194         eval "$as_ac_Header=no"
7195 fi
7196
7197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 fi
7199 ac_res=`eval echo '${'$as_ac_Header'}'`
7200                { echo "$as_me:$LINENO: result: $ac_res" >&5
7201 echo "${ECHO_T}$ac_res" >&6; }
7202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7203   cat >>confdefs.h <<_ACEOF
7204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7205 _ACEOF
7206
7207 fi
7208
7209 done
7210
7211
7212
7213
7214
7215
7216
7217
7218 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
7219 do
7220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   cat >conftest.$ac_ext <<_ACEOF
7227 /* confdefs.h.  */
7228 _ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h.  */
7232 #include <sys/types.h>
7233      #if HAVE_SYS_SOCKET_H
7234      # include <sys/socket.h>
7235      #endif
7236
7237 #include <$ac_header>
7238 _ACEOF
7239 rm -f conftest.$ac_objext
7240 if { (ac_try="$ac_compile"
7241 case "(($ac_try" in
7242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243   *) ac_try_echo=$ac_try;;
7244 esac
7245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246   (eval "$ac_compile") 2>conftest.er1
7247   ac_status=$?
7248   grep -v '^ *+' conftest.er1 >conftest.err
7249   rm -f conftest.er1
7250   cat conftest.err >&5
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); } && {
7253          test -z "$ac_c_werror_flag" ||
7254          test ! -s conftest.err
7255        } && test -s conftest.$ac_objext; then
7256   eval "$as_ac_Header=yes"
7257 else
7258   echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261         eval "$as_ac_Header=no"
7262 fi
7263
7264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 fi
7266 ac_res=`eval echo '${'$as_ac_Header'}'`
7267                { echo "$as_me:$LINENO: result: $ac_res" >&5
7268 echo "${ECHO_T}$ac_res" >&6; }
7269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7270   cat >>confdefs.h <<_ACEOF
7271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7272 _ACEOF
7273
7274 fi
7275
7276 done
7277
7278
7279
7280 for ac_header in linux/ipx.h
7281 do
7282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7286   echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288   cat >conftest.$ac_ext <<_ACEOF
7289 /* confdefs.h.  */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h.  */
7294 #include <sys/types.h>
7295      #ifdef HAVE_ASM_TYPES_H
7296      # include <asm/types.h>
7297      #endif
7298      #if HAVE_SYS_SOCKET_H
7299      # include <sys/socket.h>
7300      #endif
7301
7302 #include <$ac_header>
7303 _ACEOF
7304 rm -f conftest.$ac_objext
7305 if { (ac_try="$ac_compile"
7306 case "(($ac_try" in
7307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308   *) ac_try_echo=$ac_try;;
7309 esac
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311   (eval "$ac_compile") 2>conftest.er1
7312   ac_status=$?
7313   grep -v '^ *+' conftest.er1 >conftest.err
7314   rm -f conftest.er1
7315   cat conftest.err >&5
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); } && {
7318          test -z "$ac_c_werror_flag" ||
7319          test ! -s conftest.err
7320        } && test -s conftest.$ac_objext; then
7321   eval "$as_ac_Header=yes"
7322 else
7323   echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7325
7326         eval "$as_ac_Header=no"
7327 fi
7328
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 fi
7331 ac_res=`eval echo '${'$as_ac_Header'}'`
7332                { echo "$as_me:$LINENO: result: $ac_res" >&5
7333 echo "${ECHO_T}$ac_res" >&6; }
7334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7335   cat >>confdefs.h <<_ACEOF
7336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7337 _ACEOF
7338
7339 fi
7340
7341 done
7342
7343
7344
7345 for ac_header in resolv.h
7346 do
7347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7351   echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353   cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h.  */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h.  */
7359 #include <sys/types.h>
7360      #if HAVE_SYS_SOCKET_H
7361      # include <sys/socket.h>
7362      #endif
7363      #if HAVE_NETINET_IN_H
7364      # include <netinet/in.h>
7365      #endif
7366      #if HAVE_ARPA_NAMESER_H
7367      # include <arpa/nameser.h>
7368      #endif
7369
7370 #include <$ac_header>
7371 _ACEOF
7372 rm -f conftest.$ac_objext
7373 if { (ac_try="$ac_compile"
7374 case "(($ac_try" in
7375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376   *) ac_try_echo=$ac_try;;
7377 esac
7378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7379   (eval "$ac_compile") 2>conftest.er1
7380   ac_status=$?
7381   grep -v '^ *+' conftest.er1 >conftest.err
7382   rm -f conftest.er1
7383   cat conftest.err >&5
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); } && {
7386          test -z "$ac_c_werror_flag" ||
7387          test ! -s conftest.err
7388        } && test -s conftest.$ac_objext; then
7389   eval "$as_ac_Header=yes"
7390 else
7391   echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7393
7394         eval "$as_ac_Header=no"
7395 fi
7396
7397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7398 fi
7399 ac_res=`eval echo '${'$as_ac_Header'}'`
7400                { echo "$as_me:$LINENO: result: $ac_res" >&5
7401 echo "${ECHO_T}$ac_res" >&6; }
7402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7403   cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7405 _ACEOF
7406
7407 fi
7408
7409 done
7410
7411
7412
7413 for ac_header in ucontext.h
7414 do
7415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7419   echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421   cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h.  */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h.  */
7427 #include <signal.h>
7428
7429 #include <$ac_header>
7430 _ACEOF
7431 rm -f conftest.$ac_objext
7432 if { (ac_try="$ac_compile"
7433 case "(($ac_try" in
7434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435   *) ac_try_echo=$ac_try;;
7436 esac
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438   (eval "$ac_compile") 2>conftest.er1
7439   ac_status=$?
7440   grep -v '^ *+' conftest.er1 >conftest.err
7441   rm -f conftest.er1
7442   cat conftest.err >&5
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); } && {
7445          test -z "$ac_c_werror_flag" ||
7446          test ! -s conftest.err
7447        } && test -s conftest.$ac_objext; then
7448   eval "$as_ac_Header=yes"
7449 else
7450   echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453         eval "$as_ac_Header=no"
7454 fi
7455
7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 fi
7458 ac_res=`eval echo '${'$as_ac_Header'}'`
7459                { echo "$as_me:$LINENO: result: $ac_res" >&5
7460 echo "${ECHO_T}$ac_res" >&6; }
7461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7462   cat >>confdefs.h <<_ACEOF
7463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7464 _ACEOF
7465
7466 fi
7467
7468 done
7469
7470
7471
7472 for ac_header in pthread_np.h
7473 do
7474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7478   echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480   cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h.  */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h.  */
7486 #ifdef HAVE_PTHREAD_H
7487 #include <pthread.h>
7488 #endif
7489
7490 #include <$ac_header>
7491 _ACEOF
7492 rm -f conftest.$ac_objext
7493 if { (ac_try="$ac_compile"
7494 case "(($ac_try" in
7495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496   *) ac_try_echo=$ac_try;;
7497 esac
7498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499   (eval "$ac_compile") 2>conftest.er1
7500   ac_status=$?
7501   grep -v '^ *+' conftest.er1 >conftest.err
7502   rm -f conftest.er1
7503   cat conftest.err >&5
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } && {
7506          test -z "$ac_c_werror_flag" ||
7507          test ! -s conftest.err
7508        } && test -s conftest.$ac_objext; then
7509   eval "$as_ac_Header=yes"
7510 else
7511   echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.$ac_ext >&5
7513
7514         eval "$as_ac_Header=no"
7515 fi
7516
7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 fi
7519 ac_res=`eval echo '${'$as_ac_Header'}'`
7520                { echo "$as_me:$LINENO: result: $ac_res" >&5
7521 echo "${ECHO_T}$ac_res" >&6; }
7522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7523   cat >>confdefs.h <<_ACEOF
7524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7525 _ACEOF
7526
7527 fi
7528
7529 done
7530
7531
7532
7533 for ac_header in linux/videodev.h
7534 do
7535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541   cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h.  */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h.  */
7547 #ifdef HAVE_SYS_TIME_H
7548 #include <sys/time.h>
7549 #endif
7550 #include <sys/types.h>
7551 #ifdef HAVE_ASM_TYPES_H
7552 #include <asm/types.h>
7553 #endif
7554
7555 #include <$ac_header>
7556 _ACEOF
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7559 case "(($ac_try" in
7560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561   *) ac_try_echo=$ac_try;;
7562 esac
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564   (eval "$ac_compile") 2>conftest.er1
7565   ac_status=$?
7566   grep -v '^ *+' conftest.er1 >conftest.err
7567   rm -f conftest.er1
7568   cat conftest.err >&5
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); } && {
7571          test -z "$ac_c_werror_flag" ||
7572          test ! -s conftest.err
7573        } && test -s conftest.$ac_objext; then
7574   eval "$as_ac_Header=yes"
7575 else
7576   echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7578
7579         eval "$as_ac_Header=no"
7580 fi
7581
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583 fi
7584 ac_res=`eval echo '${'$as_ac_Header'}'`
7585                { echo "$as_me:$LINENO: result: $ac_res" >&5
7586 echo "${ECHO_T}$ac_res" >&6; }
7587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7588   cat >>confdefs.h <<_ACEOF
7589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7590 _ACEOF
7591
7592 fi
7593
7594 done
7595
7596
7597
7598 for ac_header in linux/capi.h
7599 do
7600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7604   echo $ECHO_N "(cached) $ECHO_C" >&6
7605 else
7606   cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612 #define __user
7613
7614 #include <$ac_header>
7615 _ACEOF
7616 rm -f conftest.$ac_objext
7617 if { (ac_try="$ac_compile"
7618 case "(($ac_try" in
7619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620   *) ac_try_echo=$ac_try;;
7621 esac
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623   (eval "$ac_compile") 2>conftest.er1
7624   ac_status=$?
7625   grep -v '^ *+' conftest.er1 >conftest.err
7626   rm -f conftest.er1
7627   cat conftest.err >&5
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } && {
7630          test -z "$ac_c_werror_flag" ||
7631          test ! -s conftest.err
7632        } && test -s conftest.$ac_objext; then
7633   eval "$as_ac_Header=yes"
7634 else
7635   echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638         eval "$as_ac_Header=no"
7639 fi
7640
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642 fi
7643 ac_res=`eval echo '${'$as_ac_Header'}'`
7644                { echo "$as_me:$LINENO: result: $ac_res" >&5
7645 echo "${ECHO_T}$ac_res" >&6; }
7646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7647   cat >>confdefs.h <<_ACEOF
7648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7649 _ACEOF
7650
7651 fi
7652
7653 done
7654
7655
7656
7657 DLLEXT=""
7658
7659 DLLFLAGS="-D_REENTRANT"
7660
7661 LDSHARED=""
7662
7663 LDDLLFLAGS=""
7664
7665 LIBEXT="so"
7666
7667 IMPLIBEXT="def"
7668
7669 LDRPATH_INSTALL=""
7670
7671 LDRPATH_LOCAL=""
7672
7673 # Extract the first word of "ldd", so it can be a program name with args.
7674 set dummy ldd; ac_word=$2
7675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677 if test "${ac_cv_path_LDD+set}" = set; then
7678   echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680   case $LDD in
7681   [\\/]* | ?:[\\/]*)
7682   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
7683   ;;
7684   *)
7685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 as_dummy="/sbin:/usr/sbin:$PATH"
7687 for as_dir in $as_dummy
7688 do
7689   IFS=$as_save_IFS
7690   test -z "$as_dir" && as_dir=.
7691   for ac_exec_ext in '' $ac_executable_extensions; do
7692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7693     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
7694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695     break 2
7696   fi
7697 done
7698 done
7699 IFS=$as_save_IFS
7700
7701   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
7702   ;;
7703 esac
7704 fi
7705 LDD=$ac_cv_path_LDD
7706 if test -n "$LDD"; then
7707   { echo "$as_me:$LINENO: result: $LDD" >&5
7708 echo "${ECHO_T}$LDD" >&6; }
7709 else
7710   { echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6; }
7712 fi
7713
7714
7715
7716 case $host_os in
7717   cygwin*|mingw32*)
7718     if test -n "$ac_tool_prefix"; then
7719   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7720 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726   if test -n "$DLLTOOL"; then
7727   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732   IFS=$as_save_IFS
7733   test -z "$as_dir" && as_dir=.
7734   for ac_exec_ext in '' $ac_executable_extensions; do
7735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7738     break 2
7739   fi
7740 done
7741 done
7742 IFS=$as_save_IFS
7743
7744 fi
7745 fi
7746 DLLTOOL=$ac_cv_prog_DLLTOOL
7747 if test -n "$DLLTOOL"; then
7748   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7749 echo "${ECHO_T}$DLLTOOL" >&6; }
7750 else
7751   { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7753 fi
7754
7755
7756 fi
7757 if test -z "$ac_cv_prog_DLLTOOL"; then
7758   ac_ct_DLLTOOL=$DLLTOOL
7759   # Extract the first word of "dlltool", so it can be a program name with args.
7760 set dummy dlltool; ac_word=$2
7761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7763 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7764   echo $ECHO_N "(cached) $ECHO_C" >&6
7765 else
7766   if test -n "$ac_ct_DLLTOOL"; then
7767   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772   IFS=$as_save_IFS
7773   test -z "$as_dir" && as_dir=.
7774   for ac_exec_ext in '' $ac_executable_extensions; do
7775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778     break 2
7779   fi
7780 done
7781 done
7782 IFS=$as_save_IFS
7783
7784 fi
7785 fi
7786 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7787 if test -n "$ac_ct_DLLTOOL"; then
7788   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7789 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7790 else
7791   { echo "$as_me:$LINENO: result: no" >&5
7792 echo "${ECHO_T}no" >&6; }
7793 fi
7794
7795   if test "x$ac_ct_DLLTOOL" = x; then
7796     DLLTOOL="false"
7797   else
7798     case $cross_compiling:$ac_tool_warned in
7799 yes:)
7800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7801 whose name does not start with the host triplet.  If you think this
7802 configuration is useful to you, please write to autoconf@gnu.org." >&5
7803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7804 whose name does not start with the host triplet.  If you think this
7805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7806 ac_tool_warned=yes ;;
7807 esac
7808     DLLTOOL=$ac_ct_DLLTOOL
7809   fi
7810 else
7811   DLLTOOL="$ac_cv_prog_DLLTOOL"
7812 fi
7813
7814     if test -n "$ac_tool_prefix"; then
7815   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
7816 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
7817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7819 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   if test -n "$DLLWRAP"; then
7823   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
7824 else
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7827 do
7828   IFS=$as_save_IFS
7829   test -z "$as_dir" && as_dir=.
7830   for ac_exec_ext in '' $ac_executable_extensions; do
7831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7832     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
7833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834     break 2
7835   fi
7836 done
7837 done
7838 IFS=$as_save_IFS
7839
7840 fi
7841 fi
7842 DLLWRAP=$ac_cv_prog_DLLWRAP
7843 if test -n "$DLLWRAP"; then
7844   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
7845 echo "${ECHO_T}$DLLWRAP" >&6; }
7846 else
7847   { echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6; }
7849 fi
7850
7851
7852 fi
7853 if test -z "$ac_cv_prog_DLLWRAP"; then
7854   ac_ct_DLLWRAP=$DLLWRAP
7855   # Extract the first word of "dllwrap", so it can be a program name with args.
7856 set dummy dllwrap; ac_word=$2
7857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7859 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   if test -n "$ac_ct_DLLWRAP"; then
7863   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
7864 else
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 for as_dir in $PATH
7867 do
7868   IFS=$as_save_IFS
7869   test -z "$as_dir" && as_dir=.
7870   for ac_exec_ext in '' $ac_executable_extensions; do
7871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7872     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
7873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7874     break 2
7875   fi
7876 done
7877 done
7878 IFS=$as_save_IFS
7879
7880 fi
7881 fi
7882 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
7883 if test -n "$ac_ct_DLLWRAP"; then
7884   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
7885 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
7886 else
7887   { echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6; }
7889 fi
7890
7891   if test "x$ac_ct_DLLWRAP" = x; then
7892     DLLWRAP="false"
7893   else
7894     case $cross_compiling:$ac_tool_warned in
7895 yes:)
7896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7897 whose name does not start with the host triplet.  If you think this
7898 configuration is useful to you, please write to autoconf@gnu.org." >&5
7899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7900 whose name does not start with the host triplet.  If you think this
7901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7902 ac_tool_warned=yes ;;
7903 esac
7904     DLLWRAP=$ac_ct_DLLWRAP
7905   fi
7906 else
7907   DLLWRAP="$ac_cv_prog_DLLWRAP"
7908 fi
7909
7910     if test -n "$ac_tool_prefix"; then
7911   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7912 set dummy ${ac_tool_prefix}ar; ac_word=$2
7913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7915 if test "${ac_cv_prog_MINGWAR+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   if test -n "$MINGWAR"; then
7919   ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7923 do
7924   IFS=$as_save_IFS
7925   test -z "$as_dir" && as_dir=.
7926   for ac_exec_ext in '' $ac_executable_extensions; do
7927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928     ac_cv_prog_MINGWAR="${ac_tool_prefix}ar"
7929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7930     break 2
7931   fi
7932 done
7933 done
7934 IFS=$as_save_IFS
7935
7936 fi
7937 fi
7938 MINGWAR=$ac_cv_prog_MINGWAR
7939 if test -n "$MINGWAR"; then
7940   { echo "$as_me:$LINENO: result: $MINGWAR" >&5
7941 echo "${ECHO_T}$MINGWAR" >&6; }
7942 else
7943   { echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6; }
7945 fi
7946
7947
7948 fi
7949 if test -z "$ac_cv_prog_MINGWAR"; then
7950   ac_ct_MINGWAR=$MINGWAR
7951   # Extract the first word of "ar", so it can be a program name with args.
7952 set dummy ar; ac_word=$2
7953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7955 if test "${ac_cv_prog_ac_ct_MINGWAR+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   if test -n "$ac_ct_MINGWAR"; then
7959   ac_cv_prog_ac_ct_MINGWAR="$ac_ct_MINGWAR" # Let the user override the test.
7960 else
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7963 do
7964   IFS=$as_save_IFS
7965   test -z "$as_dir" && as_dir=.
7966   for ac_exec_ext in '' $ac_executable_extensions; do
7967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7968     ac_cv_prog_ac_ct_MINGWAR="ar"
7969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970     break 2
7971   fi
7972 done
7973 done
7974 IFS=$as_save_IFS
7975
7976 fi
7977 fi
7978 ac_ct_MINGWAR=$ac_cv_prog_ac_ct_MINGWAR
7979 if test -n "$ac_ct_MINGWAR"; then
7980   { echo "$as_me:$LINENO: result: $ac_ct_MINGWAR" >&5
7981 echo "${ECHO_T}$ac_ct_MINGWAR" >&6; }
7982 else
7983   { echo "$as_me:$LINENO: result: no" >&5
7984 echo "${ECHO_T}no" >&6; }
7985 fi
7986
7987   if test "x$ac_ct_MINGWAR" = x; then
7988     MINGWAR="false"
7989   else
7990     case $cross_compiling:$ac_tool_warned in
7991 yes:)
7992 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7993 whose name does not start with the host triplet.  If you think this
7994 configuration is useful to you, please write to autoconf@gnu.org." >&5
7995 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7996 whose name does not start with the host triplet.  If you think this
7997 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7998 ac_tool_warned=yes ;;
7999 esac
8000     MINGWAR=$ac_ct_MINGWAR
8001   fi
8002 else
8003   MINGWAR="$ac_cv_prog_MINGWAR"
8004 fi
8005
8006     if test "$DLLWRAP" = "false"; then
8007       LIBEXT="a"
8008     else
8009             LIBEXT="dll"
8010     fi
8011     IMPLIBEXT="a"
8012         WIN16_FILES=""
8013     WIN16_INSTALL=""
8014     ;;
8015   darwin*|macosx*)
8016     DLLEXT=".so"
8017     LIBEXT="dylib"
8018     DLLFLAGS="$DLLFLAGS -fPIC"
8019     LDDLLFLAGS="-bundle -multiply_defined suppress"
8020     LIBWINE_LDFLAGS="-multiply_defined suppress"
8021     LDSHARED="\$(CC) -dynamiclib"
8022     STRIP="$STRIP -x"
8023     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
8024         COREFOUNDATIONLIB="-framework CoreFoundation"
8025
8026     IOKITLIB="-framework IOKit -framework CoreFoundation"
8027
8028     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
8029
8030     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
8031     then
8032                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
8033
8034     fi
8035     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
8036     then
8037                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
8038
8039     fi
8040     case $host_cpu in
8041       *powerpc*)
8042         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
8043     esac
8044         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
8045     then
8046         CARBONLIB="-framework Carbon"
8047
8048         QUARTZFILES='$(QUARTZFILES)'
8049     fi
8050     ;;
8051   *)
8052     DLLFLAGS="$DLLFLAGS -fPIC"
8053     DLLEXT=".so"
8054     { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
8055 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
8056 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
8057   echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059   ac_wine_try_cflags_saved=$CFLAGS
8060 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8061 cat >conftest.$ac_ext <<_ACEOF
8062 void myfunc() {}
8063 _ACEOF
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (ac_try="$ac_link"
8066 case "(($ac_try" in
8067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068   *) ac_try_echo=$ac_try;;
8069 esac
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071   (eval "$ac_link") 2>conftest.er1
8072   ac_status=$?
8073   grep -v '^ *+' conftest.er1 >conftest.err
8074   rm -f conftest.er1
8075   cat conftest.err >&5
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); } && {
8078          test -z "$ac_c_werror_flag" ||
8079          test ! -s conftest.err
8080        } && test -s conftest$ac_exeext &&
8081        $as_test_x conftest$ac_exeext; then
8082   ac_cv_c_dll_gnuelf="yes"
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087         ac_cv_c_dll_gnuelf="no"
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8091       conftest$ac_exeext conftest.$ac_ext
8092 CFLAGS=$ac_wine_try_cflags_saved
8093 fi
8094 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
8095 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
8096     if test "$ac_cv_c_dll_gnuelf" = "yes"
8097     then
8098       LDSHARED="\$(CC) -shared"
8099       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
8100       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8101 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
8102 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
8103   echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105   ac_wine_try_cflags_saved=$CFLAGS
8106 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8107 cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h.  */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h.  */
8113
8114 int
8115 main ()
8116 {
8117
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 rm -f conftest.$ac_objext conftest$ac_exeext
8123 if { (ac_try="$ac_link"
8124 case "(($ac_try" in
8125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8126   *) ac_try_echo=$ac_try;;
8127 esac
8128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129   (eval "$ac_link") 2>conftest.er1
8130   ac_status=$?
8131   grep -v '^ *+' conftest.er1 >conftest.err
8132   rm -f conftest.er1
8133   cat conftest.err >&5
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); } && {
8136          test -z "$ac_c_werror_flag" ||
8137          test ! -s conftest.err
8138        } && test -s conftest$ac_exeext &&
8139        $as_test_x conftest$ac_exeext; then
8140   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145         ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8146 fi
8147
8148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8149       conftest$ac_exeext conftest.$ac_ext
8150 CFLAGS=$ac_wine_try_cflags_saved
8151 fi
8152 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8153 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8154 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
8155   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
8156 else
8157   { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8158 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
8159 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
8160   echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162   ac_wine_try_cflags_saved=$CFLAGS
8163 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170
8171 int
8172 main ()
8173 {
8174
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest.$ac_objext conftest$ac_exeext
8180 if { (ac_try="$ac_link"
8181 case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_link") 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } && {
8193          test -z "$ac_c_werror_flag" ||
8194          test ! -s conftest.err
8195        } && test -s conftest$ac_exeext &&
8196        $as_test_x conftest$ac_exeext; then
8197   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8198 else
8199   echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202         ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8203 fi
8204
8205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8206       conftest$ac_exeext conftest.$ac_ext
8207 CFLAGS=$ac_wine_try_cflags_saved
8208 fi
8209 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8210 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8211 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
8212   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
8213 fi
8214
8215 fi
8216
8217
8218       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
8219 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
8220 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   ac_wine_try_cflags_saved=$CFLAGS
8224 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
8225 cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h.  */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h.  */
8231
8232 int
8233 main ()
8234 {
8235
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (ac_try="$ac_link"
8242 case "(($ac_try" in
8243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244   *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247   (eval "$ac_link") 2>conftest.er1
8248   ac_status=$?
8249   grep -v '^ *+' conftest.er1 >conftest.err
8250   rm -f conftest.er1
8251   cat conftest.err >&5
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } && {
8254          test -z "$ac_c_werror_flag" ||
8255          test ! -s conftest.err
8256        } && test -s conftest$ac_exeext &&
8257        $as_test_x conftest$ac_exeext; then
8258   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
8259 else
8260   echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
8264 fi
8265
8266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8267       conftest$ac_exeext conftest.$ac_ext
8268 CFLAGS=$ac_wine_try_cflags_saved
8269 fi
8270 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
8271 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
8272 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
8273   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
8274 fi
8275
8276
8277       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
8278 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
8279 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   ac_wine_try_cflags_saved=$CFLAGS
8283 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
8284 cat >conftest.$ac_ext <<_ACEOF
8285 /* confdefs.h.  */
8286 _ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h.  */
8290
8291 int
8292 main ()
8293 {
8294
8295   ;
8296   return 0;
8297 }
8298 _ACEOF
8299 rm -f conftest.$ac_objext conftest$ac_exeext
8300 if { (ac_try="$ac_link"
8301 case "(($ac_try" in
8302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303   *) ac_try_echo=$ac_try;;
8304 esac
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306   (eval "$ac_link") 2>conftest.er1
8307   ac_status=$?
8308   grep -v '^ *+' conftest.er1 >conftest.err
8309   rm -f conftest.er1
8310   cat conftest.err >&5
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } && {
8313          test -z "$ac_c_werror_flag" ||
8314          test ! -s conftest.err
8315        } && test -s conftest$ac_exeext &&
8316        $as_test_x conftest$ac_exeext; then
8317   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
8323 fi
8324
8325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8326       conftest$ac_exeext conftest.$ac_ext
8327 CFLAGS=$ac_wine_try_cflags_saved
8328 fi
8329 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
8330 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
8331 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
8332   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
8333 fi
8334
8335
8336       echo '{ global: *; };' >conftest.map
8337       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8338 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
8339 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   ac_wine_try_cflags_saved=$CFLAGS
8343 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350
8351 int
8352 main ()
8353 {
8354
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 rm -f conftest.$ac_objext conftest$ac_exeext
8360 if { (ac_try="$ac_link"
8361 case "(($ac_try" in
8362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363   *) ac_try_echo=$ac_try;;
8364 esac
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366   (eval "$ac_link") 2>conftest.er1
8367   ac_status=$?
8368   grep -v '^ *+' conftest.er1 >conftest.err
8369   rm -f conftest.er1
8370   cat conftest.err >&5
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } && {
8373          test -z "$ac_c_werror_flag" ||
8374          test ! -s conftest.err
8375        } && test -s conftest$ac_exeext &&
8376        $as_test_x conftest$ac_exeext; then
8377   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382         ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8383 fi
8384
8385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8386       conftest$ac_exeext conftest.$ac_ext
8387 CFLAGS=$ac_wine_try_cflags_saved
8388 fi
8389 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8390 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8391 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
8392   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
8393 fi
8394
8395       rm -f conftest.map
8396
8397       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8398 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
8399 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402   ac_wine_try_cflags_saved=$CFLAGS
8403 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410
8411 int
8412 main ()
8413 {
8414
8415   ;
8416   return 0;
8417 }
8418 _ACEOF
8419 rm -f conftest.$ac_objext conftest$ac_exeext
8420 if { (ac_try="$ac_link"
8421 case "(($ac_try" in
8422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423   *) ac_try_echo=$ac_try;;
8424 esac
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426   (eval "$ac_link") 2>conftest.er1
8427   ac_status=$?
8428   grep -v '^ *+' conftest.er1 >conftest.err
8429   rm -f conftest.er1
8430   cat conftest.err >&5
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } && {
8433          test -z "$ac_c_werror_flag" ||
8434          test ! -s conftest.err
8435        } && test -s conftest$ac_exeext &&
8436        $as_test_x conftest$ac_exeext; then
8437   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8438 else
8439   echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8441
8442         ac_cv_cflags__fPIC__Wl___export_dynamic=no
8443 fi
8444
8445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8446       conftest$ac_exeext conftest.$ac_ext
8447 CFLAGS=$ac_wine_try_cflags_saved
8448 fi
8449 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8450 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8451 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
8452   LDEXECFLAGS="-Wl,--export-dynamic"
8453
8454 fi
8455
8456
8457       as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
8458 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8459 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
8460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8461   echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463   ac_wine_try_cflags_saved=$CFLAGS
8464 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h.  */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h.  */
8471
8472 int
8473 main ()
8474 {
8475
8476   ;
8477   return 0;
8478 }
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (ac_try="$ac_link"
8482 case "(($ac_try" in
8483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484   *) ac_try_echo=$ac_try;;
8485 esac
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487   (eval "$ac_link") 2>conftest.er1
8488   ac_status=$?
8489   grep -v '^ *+' conftest.er1 >conftest.err
8490   rm -f conftest.er1
8491   cat conftest.err >&5
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } && {
8494          test -z "$ac_c_werror_flag" ||
8495          test ! -s conftest.err
8496        } && test -s conftest$ac_exeext &&
8497        $as_test_x conftest$ac_exeext; then
8498   eval "$as_ac_var=yes"
8499 else
8500   echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503         eval "$as_ac_var=no"
8504 fi
8505
8506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8507       conftest$ac_exeext conftest.$ac_ext
8508 CFLAGS=$ac_wine_try_cflags_saved
8509 fi
8510 ac_res=`eval echo '${'$as_ac_var'}'`
8511                { echo "$as_me:$LINENO: result: $ac_res" >&5
8512 echo "${ECHO_T}$ac_res" >&6; }
8513 if test `eval echo '${'$as_ac_var'}'` = yes; then
8514   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
8515                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
8516 else
8517   as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,-R,\$ORIGIN/../lib" | $as_tr_sh`
8518 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8519 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... $ECHO_C" >&6; }
8520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   ac_wine_try_cflags_saved=$CFLAGS
8524 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531
8532 int
8533 main ()
8534 {
8535
8536   ;
8537   return 0;
8538 }
8539 _ACEOF
8540 rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (ac_try="$ac_link"
8542 case "(($ac_try" in
8543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544   *) ac_try_echo=$ac_try;;
8545 esac
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547   (eval "$ac_link") 2>conftest.er1
8548   ac_status=$?
8549   grep -v '^ *+' conftest.er1 >conftest.err
8550   rm -f conftest.er1
8551   cat conftest.err >&5
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } && {
8554          test -z "$ac_c_werror_flag" ||
8555          test ! -s conftest.err
8556        } && test -s conftest$ac_exeext &&
8557        $as_test_x conftest$ac_exeext; then
8558   eval "$as_ac_var=yes"
8559 else
8560   echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563         eval "$as_ac_var=no"
8564 fi
8565
8566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8567       conftest$ac_exeext conftest.$ac_ext
8568 CFLAGS=$ac_wine_try_cflags_saved
8569 fi
8570 ac_res=`eval echo '${'$as_ac_var'}'`
8571                { echo "$as_me:$LINENO: result: $ac_res" >&5
8572 echo "${ECHO_T}$ac_res" >&6; }
8573 if test `eval echo '${'$as_ac_var'}'` = yes; then
8574   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
8575                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
8576 fi
8577
8578 fi
8579
8580
8581       case $host_cpu in
8582         *i[3456789]86* | x86_64)
8583           { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8584 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
8585 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
8586   echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588   ac_wine_try_cflags_saved=$CFLAGS
8589 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h.  */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h.  */
8596
8597 int
8598 main ()
8599 {
8600
8601   ;
8602   return 0;
8603 }
8604 _ACEOF
8605 rm -f conftest.$ac_objext conftest$ac_exeext
8606 if { (ac_try="$ac_link"
8607 case "(($ac_try" in
8608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609   *) ac_try_echo=$ac_try;;
8610 esac
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612   (eval "$ac_link") 2>conftest.er1
8613   ac_status=$?
8614   grep -v '^ *+' conftest.er1 >conftest.err
8615   rm -f conftest.er1
8616   cat conftest.err >&5
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } && {
8619          test -z "$ac_c_werror_flag" ||
8620          test ! -s conftest.err
8621        } && test -s conftest$ac_exeext &&
8622        $as_test_x conftest$ac_exeext; then
8623   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8624 else
8625   echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628         ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8629 fi
8630
8631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8632       conftest$ac_exeext conftest.$ac_ext
8633 CFLAGS=$ac_wine_try_cflags_saved
8634 fi
8635 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8636 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8637 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
8638   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8639 fi
8640
8641           ;;
8642       esac
8643
8644     else
8645       { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
8646 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
8647 if test "${ac_cv_c_dll_unixware+set}" = set; then
8648   echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650   ac_wine_try_cflags_saved=$CFLAGS
8651 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8652 cat >conftest.$ac_ext <<_ACEOF
8653 void myfunc() {}
8654 _ACEOF
8655 rm -f conftest.$ac_objext conftest$ac_exeext
8656 if { (ac_try="$ac_link"
8657 case "(($ac_try" in
8658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659   *) ac_try_echo=$ac_try;;
8660 esac
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662   (eval "$ac_link") 2>conftest.er1
8663   ac_status=$?
8664   grep -v '^ *+' conftest.er1 >conftest.err
8665   rm -f conftest.er1
8666   cat conftest.err >&5
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); } && {
8669          test -z "$ac_c_werror_flag" ||
8670          test ! -s conftest.err
8671        } && test -s conftest$ac_exeext &&
8672        $as_test_x conftest$ac_exeext; then
8673   ac_cv_c_dll_unixware="yes"
8674 else
8675   echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678         ac_cv_c_dll_unixware="no"
8679 fi
8680
8681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8682       conftest$ac_exeext conftest.$ac_ext
8683 CFLAGS=$ac_wine_try_cflags_saved
8684 fi
8685 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
8686 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
8687       if test "$ac_cv_c_dll_unixware" = "yes"
8688       then
8689         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
8690         LDDLLFLAGS="-Wl,-G,-B,symbolic"
8691
8692       else
8693         { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
8694 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
8695 if test "${ac_cv_c_dll_hpux+set}" = set; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698   ac_wine_try_cflags_saved=$CFLAGS
8699 CFLAGS="$CFLAGS -shared"
8700 cat >conftest.$ac_ext <<_ACEOF
8701 void myfunc() {}
8702 _ACEOF
8703 rm -f conftest.$ac_objext conftest$ac_exeext
8704 if { (ac_try="$ac_link"
8705 case "(($ac_try" in
8706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707   *) ac_try_echo=$ac_try;;
8708 esac
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710   (eval "$ac_link") 2>conftest.er1
8711   ac_status=$?
8712   grep -v '^ *+' conftest.er1 >conftest.err
8713   rm -f conftest.er1
8714   cat conftest.err >&5
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); } && {
8717          test -z "$ac_c_werror_flag" ||
8718          test ! -s conftest.err
8719        } && test -s conftest$ac_exeext &&
8720        $as_test_x conftest$ac_exeext; then
8721   ac_cv_c_dll_hpux="yes"
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726         ac_cv_c_dll_hpux="no"
8727 fi
8728
8729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8730       conftest$ac_exeext conftest.$ac_ext
8731 CFLAGS=$ac_wine_try_cflags_saved
8732 fi
8733 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
8734 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
8735         if test "$ac_cv_c_dll_hpux" = "yes"
8736         then
8737           LIBEXT="sl"
8738           DLLEXT=".sl"
8739           LDDLLFLAGS="-shared -fPIC"
8740           LDSHARED="\$(CC) -shared"
8741         fi
8742       fi
8743     fi
8744
8745         CROSSTEST=""
8746
8747     if test "$cross_compiling" = "no"
8748     then
8749       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
8750 do
8751   # Extract the first word of "$ac_prog", so it can be a program name with args.
8752 set dummy $ac_prog; ac_word=$2
8753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8755 if test "${ac_cv_prog_CROSSCC+set}" = set; then
8756   echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758   if test -n "$CROSSCC"; then
8759   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8760 else
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8763 do
8764   IFS=$as_save_IFS
8765   test -z "$as_dir" && as_dir=.
8766   for ac_exec_ext in '' $ac_executable_extensions; do
8767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768     ac_cv_prog_CROSSCC="$ac_prog"
8769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8770     break 2
8771   fi
8772 done
8773 done
8774 IFS=$as_save_IFS
8775
8776 fi
8777 fi
8778 CROSSCC=$ac_cv_prog_CROSSCC
8779 if test -n "$CROSSCC"; then
8780   { echo "$as_me:$LINENO: result: $CROSSCC" >&5
8781 echo "${ECHO_T}$CROSSCC" >&6; }
8782 else
8783   { echo "$as_me:$LINENO: result: no" >&5
8784 echo "${ECHO_T}no" >&6; }
8785 fi
8786
8787
8788   test -n "$CROSSCC" && break
8789 done
8790 test -n "$CROSSCC" || CROSSCC="false"
8791
8792       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
8793 do
8794   # Extract the first word of "$ac_prog", so it can be a program name with args.
8795 set dummy $ac_prog; ac_word=$2
8796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8798 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8799   echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801   if test -n "$DLLTOOL"; then
8802   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8803 else
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 for as_dir in $PATH
8806 do
8807   IFS=$as_save_IFS
8808   test -z "$as_dir" && as_dir=.
8809   for ac_exec_ext in '' $ac_executable_extensions; do
8810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811     ac_cv_prog_DLLTOOL="$ac_prog"
8812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8813     break 2
8814   fi
8815 done
8816 done
8817 IFS=$as_save_IFS
8818
8819 fi
8820 fi
8821 DLLTOOL=$ac_cv_prog_DLLTOOL
8822 if test -n "$DLLTOOL"; then
8823   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8824 echo "${ECHO_T}$DLLTOOL" >&6; }
8825 else
8826   { echo "$as_me:$LINENO: result: no" >&5
8827 echo "${ECHO_T}no" >&6; }
8828 fi
8829
8830
8831   test -n "$DLLTOOL" && break
8832 done
8833 test -n "$DLLTOOL" || DLLTOOL="false"
8834
8835       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres
8836 do
8837   # Extract the first word of "$ac_prog", so it can be a program name with args.
8838 set dummy $ac_prog; ac_word=$2
8839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8841 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
8842   echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844   if test -n "$CROSSWINDRES"; then
8845   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
8846 else
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8849 do
8850   IFS=$as_save_IFS
8851   test -z "$as_dir" && as_dir=.
8852   for ac_exec_ext in '' $ac_executable_extensions; do
8853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8854     ac_cv_prog_CROSSWINDRES="$ac_prog"
8855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8856     break 2
8857   fi
8858 done
8859 done
8860 IFS=$as_save_IFS
8861
8862 fi
8863 fi
8864 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
8865 if test -n "$CROSSWINDRES"; then
8866   { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
8867 echo "${ECHO_T}$CROSSWINDRES" >&6; }
8868 else
8869   { echo "$as_me:$LINENO: result: no" >&5
8870 echo "${ECHO_T}no" >&6; }
8871 fi
8872
8873
8874   test -n "$CROSSWINDRES" && break
8875 done
8876 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
8877
8878       for ac_prog in i586-mingw32msvc-ar i386-mingw32msvc-ar i386-mingw32-ar mingw32-ar mingw-ar
8879 do
8880   # Extract the first word of "$ac_prog", so it can be a program name with args.
8881 set dummy $ac_prog; ac_word=$2
8882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8884 if test "${ac_cv_prog_MINGWAR+set}" = set; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887   if test -n "$MINGWAR"; then
8888   ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
8889 else
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 for as_dir in $PATH
8892 do
8893   IFS=$as_save_IFS
8894   test -z "$as_dir" && as_dir=.
8895   for ac_exec_ext in '' $ac_executable_extensions; do
8896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8897     ac_cv_prog_MINGWAR="$ac_prog"
8898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8899     break 2
8900   fi
8901 done
8902 done
8903 IFS=$as_save_IFS
8904
8905 fi
8906 fi
8907 MINGWAR=$ac_cv_prog_MINGWAR
8908 if test -n "$MINGWAR"; then
8909   { echo "$as_me:$LINENO: result: $MINGWAR" >&5
8910 echo "${ECHO_T}$MINGWAR" >&6; }
8911 else
8912   { echo "$as_me:$LINENO: result: no" >&5
8913 echo "${ECHO_T}no" >&6; }
8914 fi
8915
8916
8917   test -n "$MINGWAR" && break
8918 done
8919 test -n "$MINGWAR" || MINGWAR="false"
8920
8921       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
8922     fi
8923     ;;
8924 esac
8925
8926 if test "$LIBEXT" = "a"; then
8927   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
8928 It is currently not possible to build Wine without shared library
8929 (.so) support to allow transparent switch between .so and .dll files.
8930 If you are using Linux, you will need a newer binutils.
8931 " >&5
8932 echo "$as_me: error: could not find a way to build shared libraries.
8933 It is currently not possible to build Wine without shared library
8934 (.so) support to allow transparent switch between .so and .dll files.
8935 If you are using Linux, you will need a newer binutils.
8936 " >&2;}
8937    { (exit 1); exit 1; }; }
8938 fi
8939
8940
8941 if test "$have_x" = "yes"
8942 then
8943     XLIB="-lXext -lX11"
8944     ac_save_CPPFLAGS="$CPPFLAGS"
8945     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958 for ac_header in X11/Xlib.h \
8959                       X11/XKBlib.h \
8960                       X11/Xutil.h \
8961                       X11/Xcursor/Xcursor.h \
8962                       X11/extensions/shape.h \
8963                       X11/extensions/XInput.h \
8964                       X11/extensions/XShm.h \
8965                       X11/extensions/Xinerama.h \
8966                       X11/extensions/Xrandr.h \
8967                       X11/extensions/Xrender.h \
8968                       X11/extensions/xf86vmode.h
8969 do
8970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8974   echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976   cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h.  */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h.  */
8982 #ifdef HAVE_X11_XLIB_H
8983 # include <X11/Xlib.h>
8984 #endif
8985 #ifdef HAVE_X11_XUTIL_H
8986 # include <X11/Xutil.h>
8987 #endif
8988
8989 #include <$ac_header>
8990 _ACEOF
8991 rm -f conftest.$ac_objext
8992 if { (ac_try="$ac_compile"
8993 case "(($ac_try" in
8994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995   *) ac_try_echo=$ac_try;;
8996 esac
8997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998   (eval "$ac_compile") 2>conftest.er1
8999   ac_status=$?
9000   grep -v '^ *+' conftest.er1 >conftest.err
9001   rm -f conftest.er1
9002   cat conftest.err >&5
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); } && {
9005          test -z "$ac_c_werror_flag" ||
9006          test ! -s conftest.err
9007        } && test -s conftest.$ac_objext; then
9008   eval "$as_ac_Header=yes"
9009 else
9010   echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013         eval "$as_ac_Header=no"
9014 fi
9015
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 fi
9018 ac_res=`eval echo '${'$as_ac_Header'}'`
9019                { echo "$as_me:$LINENO: result: $ac_res" >&5
9020 echo "${ECHO_T}$ac_res" >&6; }
9021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9022   cat >>confdefs.h <<_ACEOF
9023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9024 _ACEOF
9025
9026 fi
9027
9028 done
9029
9030
9031                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9032         then
9033               { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9034 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
9035 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9036   echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038   ac_check_lib_save_LIBS=$LIBS
9039 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9040 cat >conftest.$ac_ext <<_ACEOF
9041 /* confdefs.h.  */
9042 _ACEOF
9043 cat confdefs.h >>conftest.$ac_ext
9044 cat >>conftest.$ac_ext <<_ACEOF
9045 /* end confdefs.h.  */
9046
9047 /* Override any GCC internal prototype to avoid an error.
9048    Use char because int might match the return type of a GCC
9049    builtin and then its argument prototype would still apply.  */
9050 #ifdef __cplusplus
9051 extern "C"
9052 #endif
9053 char XkbQueryExtension ();
9054 int
9055 main ()
9056 {
9057 return XkbQueryExtension ();
9058   ;
9059   return 0;
9060 }
9061 _ACEOF
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (ac_try="$ac_link"
9064 case "(($ac_try" in
9065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066   *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069   (eval "$ac_link") 2>conftest.er1
9070   ac_status=$?
9071   grep -v '^ *+' conftest.er1 >conftest.err
9072   rm -f conftest.er1
9073   cat conftest.err >&5
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } && {
9076          test -z "$ac_c_werror_flag" ||
9077          test ! -s conftest.err
9078        } && test -s conftest$ac_exeext &&
9079        $as_test_x conftest$ac_exeext; then
9080   ac_cv_lib_X11_XkbQueryExtension=yes
9081 else
9082   echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9084
9085         ac_cv_lib_X11_XkbQueryExtension=no
9086 fi
9087
9088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
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_X11_XkbQueryExtension" >&5
9093 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9094 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
9095
9096 cat >>confdefs.h <<\_ACEOF
9097 #define HAVE_XKB 1
9098 _ACEOF
9099
9100 fi
9101
9102         fi
9103
9104                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9105         then
9106               { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9107 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
9108 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9109   echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111   ac_check_lib_save_LIBS=$LIBS
9112 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9113 cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119
9120 /* Override any GCC internal prototype to avoid an error.
9121    Use char because int might match the return type of a GCC
9122    builtin and then its argument prototype would still apply.  */
9123 #ifdef __cplusplus
9124 extern "C"
9125 #endif
9126 char XShmQueryExtension ();
9127 int
9128 main ()
9129 {
9130 return XShmQueryExtension ();
9131   ;
9132   return 0;
9133 }
9134 _ACEOF
9135 rm -f conftest.$ac_objext conftest$ac_exeext
9136 if { (ac_try="$ac_link"
9137 case "(($ac_try" in
9138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9139   *) ac_try_echo=$ac_try;;
9140 esac
9141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9142   (eval "$ac_link") 2>conftest.er1
9143   ac_status=$?
9144   grep -v '^ *+' conftest.er1 >conftest.err
9145   rm -f conftest.er1
9146   cat conftest.err >&5
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); } && {
9149          test -z "$ac_c_werror_flag" ||
9150          test ! -s conftest.err
9151        } && test -s conftest$ac_exeext &&
9152        $as_test_x conftest$ac_exeext; then
9153   ac_cv_lib_Xext_XShmQueryExtension=yes
9154 else
9155   echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9157
9158         ac_cv_lib_Xext_XShmQueryExtension=no
9159 fi
9160
9161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9162       conftest$ac_exeext conftest.$ac_ext
9163 LIBS=$ac_check_lib_save_LIBS
9164 fi
9165 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9166 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9167 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
9168
9169 cat >>confdefs.h <<\_ACEOF
9170 #define HAVE_LIBXXSHM 1
9171 _ACEOF
9172
9173 fi
9174
9175         fi
9176
9177                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9178         then
9179               { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9180 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9181 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   ac_check_lib_save_LIBS=$LIBS
9185 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h.  */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h.  */
9192
9193 /* Override any GCC internal prototype to avoid an error.
9194    Use char because int might match the return type of a GCC
9195    builtin and then its argument prototype would still apply.  */
9196 #ifdef __cplusplus
9197 extern "C"
9198 #endif
9199 char XShapeQueryExtension ();
9200 int
9201 main ()
9202 {
9203 return XShapeQueryExtension ();
9204   ;
9205   return 0;
9206 }
9207 _ACEOF
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 if { (ac_try="$ac_link"
9210 case "(($ac_try" in
9211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212   *) ac_try_echo=$ac_try;;
9213 esac
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215   (eval "$ac_link") 2>conftest.er1
9216   ac_status=$?
9217   grep -v '^ *+' conftest.er1 >conftest.err
9218   rm -f conftest.er1
9219   cat conftest.err >&5
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); } && {
9222          test -z "$ac_c_werror_flag" ||
9223          test ! -s conftest.err
9224        } && test -s conftest$ac_exeext &&
9225        $as_test_x conftest$ac_exeext; then
9226   ac_cv_lib_Xext_XShapeQueryExtension=yes
9227 else
9228   echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231         ac_cv_lib_Xext_XShapeQueryExtension=no
9232 fi
9233
9234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9235       conftest$ac_exeext conftest.$ac_ext
9236 LIBS=$ac_check_lib_save_LIBS
9237 fi
9238 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9239 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9240 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9241
9242 cat >>confdefs.h <<\_ACEOF
9243 #define HAVE_LIBXSHAPE 1
9244 _ACEOF
9245
9246 fi
9247
9248         fi
9249
9250                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9251         then
9252                 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9253 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9254 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9255   echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257   ac_check_lib_save_LIBS=$LIBS
9258 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9259 cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h.  */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h.  */
9265
9266 /* Override any GCC internal prototype to avoid an error.
9267    Use char because int might match the return type of a GCC
9268    builtin and then its argument prototype would still apply.  */
9269 #ifdef __cplusplus
9270 extern "C"
9271 #endif
9272 char XF86VidModeQueryExtension ();
9273 int
9274 main ()
9275 {
9276 return XF86VidModeQueryExtension ();
9277   ;
9278   return 0;
9279 }
9280 _ACEOF
9281 rm -f conftest.$ac_objext conftest$ac_exeext
9282 if { (ac_try="$ac_link"
9283 case "(($ac_try" in
9284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285   *) ac_try_echo=$ac_try;;
9286 esac
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288   (eval "$ac_link") 2>conftest.er1
9289   ac_status=$?
9290   grep -v '^ *+' conftest.er1 >conftest.err
9291   rm -f conftest.er1
9292   cat conftest.err >&5
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); } && {
9295          test -z "$ac_c_werror_flag" ||
9296          test ! -s conftest.err
9297        } && test -s conftest$ac_exeext &&
9298        $as_test_x conftest$ac_exeext; then
9299   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9300 else
9301   echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9305 fi
9306
9307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9308       conftest$ac_exeext conftest.$ac_ext
9309 LIBS=$ac_check_lib_save_LIBS
9310 fi
9311 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9312 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9313 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9314
9315 cat >>confdefs.h <<\_ACEOF
9316 #define HAVE_LIBXXF86VM 1
9317 _ACEOF
9318
9319                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
9320
9321 fi
9322
9323         fi
9324
9325                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9326         then
9327                 cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h.  */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h.  */
9333 #include <X11/Xlib.h>
9334 #include <X11/extensions/Xrandr.h>
9335 int
9336 main ()
9337 {
9338 static typeof(XRRSetScreenConfigAndRate) * func;
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext
9344 if { (ac_try="$ac_compile"
9345 case "(($ac_try" in
9346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347   *) ac_try_echo=$ac_try;;
9348 esac
9349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350   (eval "$ac_compile") 2>conftest.er1
9351   ac_status=$?
9352   grep -v '^ *+' conftest.er1 >conftest.err
9353   rm -f conftest.er1
9354   cat conftest.err >&5
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); } && {
9357          test -z "$ac_c_werror_flag" ||
9358          test ! -s conftest.err
9359        } && test -s conftest.$ac_objext; then
9360
9361 cat >>confdefs.h <<\_ACEOF
9362 #define HAVE_LIBXRANDR 1
9363 _ACEOF
9364
9365 else
9366   echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369
9370 fi
9371
9372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373         fi
9374
9375                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9376         then
9377               { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9378 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9379 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9380   echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9382   ac_check_lib_save_LIBS=$LIBS
9383 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9384 cat >conftest.$ac_ext <<_ACEOF
9385 /* confdefs.h.  */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h.  */
9390
9391 /* Override any GCC internal prototype to avoid an error.
9392    Use char because int might match the return type of a GCC
9393    builtin and then its argument prototype would still apply.  */
9394 #ifdef __cplusplus
9395 extern "C"
9396 #endif
9397 char XRenderSetPictureTransform ();
9398 int
9399 main ()
9400 {
9401 return XRenderSetPictureTransform ();
9402   ;
9403   return 0;
9404 }
9405 _ACEOF
9406 rm -f conftest.$ac_objext conftest$ac_exeext
9407 if { (ac_try="$ac_link"
9408 case "(($ac_try" in
9409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410   *) ac_try_echo=$ac_try;;
9411 esac
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413   (eval "$ac_link") 2>conftest.er1
9414   ac_status=$?
9415   grep -v '^ *+' conftest.er1 >conftest.err
9416   rm -f conftest.er1
9417   cat conftest.err >&5
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } && {
9420          test -z "$ac_c_werror_flag" ||
9421          test ! -s conftest.err
9422        } && test -s conftest$ac_exeext &&
9423        $as_test_x conftest$ac_exeext; then
9424   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9425 else
9426   echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9428
9429         ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9430 fi
9431
9432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9433       conftest$ac_exeext conftest.$ac_ext
9434 LIBS=$ac_check_lib_save_LIBS
9435 fi
9436 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9437 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9438 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9439
9440 cat >>confdefs.h <<\_ACEOF
9441 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9442 _ACEOF
9443
9444 fi
9445
9446         fi
9447
9448                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9449         then
9450                 cat >conftest.$ac_ext <<_ACEOF
9451 /* confdefs.h.  */
9452 _ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h.  */
9456 #include <X11/Xlib.h>
9457 #include <X11/extensions/Xinerama.h>
9458 int
9459 main ()
9460 {
9461 static typeof(XineramaQueryScreens) * func;
9462   ;
9463   return 0;
9464 }
9465 _ACEOF
9466 rm -f conftest.$ac_objext
9467 if { (ac_try="$ac_compile"
9468 case "(($ac_try" in
9469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470   *) ac_try_echo=$ac_try;;
9471 esac
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473   (eval "$ac_compile") 2>conftest.er1
9474   ac_status=$?
9475   grep -v '^ *+' conftest.er1 >conftest.err
9476   rm -f conftest.er1
9477   cat conftest.err >&5
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); } && {
9480          test -z "$ac_c_werror_flag" ||
9481          test ! -s conftest.err
9482        } && test -s conftest.$ac_objext; then
9483
9484 cat >>confdefs.h <<\_ACEOF
9485 #define HAVE_LIBXINERAMA 1
9486 _ACEOF
9487
9488 else
9489   echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9491
9492
9493 fi
9494
9495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9496         fi
9497
9498
9499         if test "x$with_opengl" != "xno"
9500     then
9501
9502
9503
9504
9505 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
9506 do
9507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9511   echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513   cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h.  */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h.  */
9519 #ifdef HAVE_GL_GLX_H
9520 # include <GL/glx.h>
9521 #endif
9522
9523 #include <$ac_header>
9524 _ACEOF
9525 rm -f conftest.$ac_objext
9526 if { (ac_try="$ac_compile"
9527 case "(($ac_try" in
9528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529   *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532   (eval "$ac_compile") 2>conftest.er1
9533   ac_status=$?
9534   grep -v '^ *+' conftest.er1 >conftest.err
9535   rm -f conftest.er1
9536   cat conftest.err >&5
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); } && {
9539          test -z "$ac_c_werror_flag" ||
9540          test ! -s conftest.err
9541        } && test -s conftest.$ac_objext; then
9542   eval "$as_ac_Header=yes"
9543 else
9544   echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547         eval "$as_ac_Header=no"
9548 fi
9549
9550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551 fi
9552 ac_res=`eval echo '${'$as_ac_Header'}'`
9553                { echo "$as_me:$LINENO: result: $ac_res" >&5
9554 echo "${ECHO_T}$ac_res" >&6; }
9555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9556   cat >>confdefs.h <<_ACEOF
9557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9558 _ACEOF
9559
9560 fi
9561
9562 done
9563
9564         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9565         then
9566                     { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9567 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
9568 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
9569   echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571   cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h.  */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h.  */
9577 #include <GL/gl.h>
9578 int
9579 main ()
9580 {
9581 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
9582   ;
9583   return 0;
9584 }
9585 _ACEOF
9586 rm -f conftest.$ac_objext
9587 if { (ac_try="$ac_compile"
9588 case "(($ac_try" in
9589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590   *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593   (eval "$ac_compile") 2>conftest.er1
9594   ac_status=$?
9595   grep -v '^ *+' conftest.er1 >conftest.err
9596   rm -f conftest.er1
9597   cat conftest.err >&5
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); } && {
9600          test -z "$ac_c_werror_flag" ||
9601          test ! -s conftest.err
9602        } && test -s conftest.$ac_objext; then
9603   wine_cv_opengl_header_version_OK="yes"
9604 else
9605   echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608         wine_cv_opengl_header_version_OK="no"
9609 fi
9610
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612 fi
9613 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
9614 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
9615
9616             if test "$wine_cv_opengl_header_version_OK" = "yes"
9617             then
9618                                 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
9619 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
9620 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
9621   echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623   ac_check_lib_save_LIBS=$LIBS
9624 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
9625 cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h.  */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h.  */
9631
9632 /* Override any GCC internal prototype to avoid an error.
9633    Use char because int might match the return type of a GCC
9634    builtin and then its argument prototype would still apply.  */
9635 #ifdef __cplusplus
9636 extern "C"
9637 #endif
9638 char glXCreateContext ();
9639 int
9640 main ()
9641 {
9642 return glXCreateContext ();
9643   ;
9644   return 0;
9645 }
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9649 case "(($ac_try" in
9650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651   *) ac_try_echo=$ac_try;;
9652 esac
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654   (eval "$ac_link") 2>conftest.er1
9655   ac_status=$?
9656   grep -v '^ *+' conftest.er1 >conftest.err
9657   rm -f conftest.er1
9658   cat conftest.err >&5
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } && {
9661          test -z "$ac_c_werror_flag" ||
9662          test ! -s conftest.err
9663        } && test -s conftest$ac_exeext &&
9664        $as_test_x conftest$ac_exeext; then
9665   ac_cv_lib_GL_glXCreateContext=yes
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670         ac_cv_lib_GL_glXCreateContext=no
9671 fi
9672
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674       conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9676 fi
9677 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
9678 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
9679 if test $ac_cv_lib_GL_glXCreateContext = yes; then
9680   OPENGL_LIBS="-lGL"
9681                              OPENGLFILES='$(OPENGLFILES)'
9682
9683 cat >>confdefs.h <<\_ACEOF
9684 #define HAVE_OPENGL 1
9685 _ACEOF
9686
9687
9688 fi
9689
9690
9691                                 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
9692 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
9693 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
9694   echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696   ac_check_lib_save_LIBS=$LIBS
9697 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
9698                  $LIBS"
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705
9706 /* Override any GCC internal prototype to avoid an error.
9707    Use char because int might match the return type of a GCC
9708    builtin and then its argument prototype would still apply.  */
9709 #ifdef __cplusplus
9710 extern "C"
9711 #endif
9712 char gluLookAt ();
9713 int
9714 main ()
9715 {
9716 return gluLookAt ();
9717   ;
9718   return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (ac_try="$ac_link"
9723 case "(($ac_try" in
9724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725   *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728   (eval "$ac_link") 2>conftest.er1
9729   ac_status=$?
9730   grep -v '^ *+' conftest.er1 >conftest.err
9731   rm -f conftest.er1
9732   cat conftest.err >&5
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); } && {
9735          test -z "$ac_c_werror_flag" ||
9736          test ! -s conftest.err
9737        } && test -s conftest$ac_exeext &&
9738        $as_test_x conftest$ac_exeext; then
9739   ac_cv_lib_GLU_gluLookAt=yes
9740 else
9741   echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9743
9744         ac_cv_lib_GLU_gluLookAt=no
9745 fi
9746
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748       conftest$ac_exeext conftest.$ac_ext
9749 LIBS=$ac_check_lib_save_LIBS
9750 fi
9751 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9752 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
9753 if test $ac_cv_lib_GLU_gluLookAt = yes; then
9754   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
9755                              GLU32FILES='$(GLU32FILES)'
9756
9757 fi
9758
9759              fi
9760          else
9761              wine_cv_opengl_headers_found="no"
9762          fi
9763     fi
9764         NASLIBS=""
9765
9766
9767 for ac_header in audio/audiolib.h
9768 do
9769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9771   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9774   echo $ECHO_N "(cached) $ECHO_C" >&6
9775 fi
9776 ac_res=`eval echo '${'$as_ac_Header'}'`
9777                { echo "$as_me:$LINENO: result: $ac_res" >&5
9778 echo "${ECHO_T}$ac_res" >&6; }
9779 else
9780   # Is the header compilable?
9781 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9783 cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h.  */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h.  */
9789 $ac_includes_default
9790 #include <$ac_header>
9791 _ACEOF
9792 rm -f conftest.$ac_objext
9793 if { (ac_try="$ac_compile"
9794 case "(($ac_try" in
9795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796   *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799   (eval "$ac_compile") 2>conftest.er1
9800   ac_status=$?
9801   grep -v '^ *+' conftest.er1 >conftest.err
9802   rm -f conftest.er1
9803   cat conftest.err >&5
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); } && {
9806          test -z "$ac_c_werror_flag" ||
9807          test ! -s conftest.err
9808        } && test -s conftest.$ac_objext; then
9809   ac_header_compiler=yes
9810 else
9811   echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9813
9814         ac_header_compiler=no
9815 fi
9816
9817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9819 echo "${ECHO_T}$ac_header_compiler" >&6; }
9820
9821 # Is the header present?
9822 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9824 cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h.  */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h.  */
9830 #include <$ac_header>
9831 _ACEOF
9832 if { (ac_try="$ac_cpp conftest.$ac_ext"
9833 case "(($ac_try" in
9834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835   *) ac_try_echo=$ac_try;;
9836 esac
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9839   ac_status=$?
9840   grep -v '^ *+' conftest.er1 >conftest.err
9841   rm -f conftest.er1
9842   cat conftest.err >&5
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); } >/dev/null && {
9845          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9846          test ! -s conftest.err
9847        }; then
9848   ac_header_preproc=yes
9849 else
9850   echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853   ac_header_preproc=no
9854 fi
9855
9856 rm -f conftest.err conftest.$ac_ext
9857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9858 echo "${ECHO_T}$ac_header_preproc" >&6; }
9859
9860 # So?  What about this header?
9861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9862   yes:no: )
9863     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9867     ac_header_preproc=yes
9868     ;;
9869   no:yes:* )
9870     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9872     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9873 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9874     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9876     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9877 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9880     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9882     ( cat <<\_ASBOX
9883 ## ------------------------------------ ##
9884 ## Report this to wine-devel@winehq.org ##
9885 ## ------------------------------------ ##
9886 _ASBOX
9887      ) | sed "s/^/$as_me: WARNING:     /" >&2
9888     ;;
9889 esac
9890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9893   echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895   eval "$as_ac_Header=\$ac_header_preproc"
9896 fi
9897 ac_res=`eval echo '${'$as_ac_Header'}'`
9898                { echo "$as_me:$LINENO: result: $ac_res" >&5
9899 echo "${ECHO_T}$ac_res" >&6; }
9900
9901 fi
9902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9903   cat >>confdefs.h <<_ACEOF
9904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9905 _ACEOF
9906
9907 for ac_header in audio/soundlib.h
9908 do
9909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9913   echo $ECHO_N "(cached) $ECHO_C" >&6
9914 else
9915   cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h.  */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h.  */
9921 #include <audio/audiolib.h>
9922
9923 #include <$ac_header>
9924 _ACEOF
9925 rm -f conftest.$ac_objext
9926 if { (ac_try="$ac_compile"
9927 case "(($ac_try" in
9928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929   *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932   (eval "$ac_compile") 2>conftest.er1
9933   ac_status=$?
9934   grep -v '^ *+' conftest.er1 >conftest.err
9935   rm -f conftest.er1
9936   cat conftest.err >&5
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); } && {
9939          test -z "$ac_c_werror_flag" ||
9940          test ! -s conftest.err
9941        } && test -s conftest.$ac_objext; then
9942   eval "$as_ac_Header=yes"
9943 else
9944   echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9946
9947         eval "$as_ac_Header=no"
9948 fi
9949
9950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951 fi
9952 ac_res=`eval echo '${'$as_ac_Header'}'`
9953                { echo "$as_me:$LINENO: result: $ac_res" >&5
9954 echo "${ECHO_T}$ac_res" >&6; }
9955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9956   cat >>confdefs.h <<_ACEOF
9957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9958 _ACEOF
9959
9960 fi
9961
9962 done
9963
9964           { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9965 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
9966 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   ac_check_lib_save_LIBS=$LIBS
9970 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9971 cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h.  */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h.  */
9977
9978 /* Override any GCC internal prototype to avoid an error.
9979    Use char because int might match the return type of a GCC
9980    builtin and then its argument prototype would still apply.  */
9981 #ifdef __cplusplus
9982 extern "C"
9983 #endif
9984 char AuCreateFlow ();
9985 int
9986 main ()
9987 {
9988 return AuCreateFlow ();
9989   ;
9990   return 0;
9991 }
9992 _ACEOF
9993 rm -f conftest.$ac_objext conftest$ac_exeext
9994 if { (ac_try="$ac_link"
9995 case "(($ac_try" in
9996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997   *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000   (eval "$ac_link") 2>conftest.er1
10001   ac_status=$?
10002   grep -v '^ *+' conftest.er1 >conftest.err
10003   rm -f conftest.er1
10004   cat conftest.err >&5
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); } && {
10007          test -z "$ac_c_werror_flag" ||
10008          test ! -s conftest.err
10009        } && test -s conftest$ac_exeext &&
10010        $as_test_x conftest$ac_exeext; then
10011   ac_cv_lib_audio_AuCreateFlow=yes
10012 else
10013   echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10015
10016         ac_cv_lib_audio_AuCreateFlow=no
10017 fi
10018
10019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10020       conftest$ac_exeext conftest.$ac_ext
10021 LIBS=$ac_check_lib_save_LIBS
10022 fi
10023 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10024 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10025 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10026
10027 cat >>confdefs.h <<\_ACEOF
10028 #define HAVE_NAS 1
10029 _ACEOF
10030
10031                         { echo "$as_me:$LINENO: checking for XauGetBestAuthByAddr in -lXau" >&5
10032 echo $ECHO_N "checking for XauGetBestAuthByAddr in -lXau... $ECHO_C" >&6; }
10033 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then
10034   echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036   ac_check_lib_save_LIBS=$LIBS
10037 LIBS="-lXau $X_LIBS $LIBS"
10038 cat >conftest.$ac_ext <<_ACEOF
10039 /* confdefs.h.  */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h.  */
10044
10045 /* Override any GCC internal prototype to avoid an error.
10046    Use char because int might match the return type of a GCC
10047    builtin and then its argument prototype would still apply.  */
10048 #ifdef __cplusplus
10049 extern "C"
10050 #endif
10051 char XauGetBestAuthByAddr ();
10052 int
10053 main ()
10054 {
10055 return XauGetBestAuthByAddr ();
10056   ;
10057   return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (ac_try="$ac_link"
10062 case "(($ac_try" in
10063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064   *) ac_try_echo=$ac_try;;
10065 esac
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067   (eval "$ac_link") 2>conftest.er1
10068   ac_status=$?
10069   grep -v '^ *+' conftest.er1 >conftest.err
10070   rm -f conftest.er1
10071   cat conftest.err >&5
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); } && {
10074          test -z "$ac_c_werror_flag" ||
10075          test ! -s conftest.err
10076        } && test -s conftest$ac_exeext &&
10077        $as_test_x conftest$ac_exeext; then
10078   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
10079 else
10080   echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10082
10083         ac_cv_lib_Xau_XauGetBestAuthByAddr=no
10084 fi
10085
10086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10087       conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_lib_save_LIBS
10089 fi
10090 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
10091 echo "${ECHO_T}$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
10092 if test $ac_cv_lib_Xau_XauGetBestAuthByAddr = yes; then
10093   NASLIBS="-lXau -laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10094 else
10095   NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10096 fi
10097
10098
10099 fi
10100
10101 fi
10102
10103 done
10104
10105
10106     CPPFLAGS="$ac_save_CPPFLAGS"
10107     XFILES='$(XFILES)'
10108 else
10109     XLIB=""
10110     X_CFLAGS=""
10111     X_LIBS=""
10112 fi
10113
10114
10115 XML2LIBS=""
10116
10117 XML2INCL=""
10118
10119 XSLTLIBS=""
10120
10121 XSLTINCL=""
10122
10123 ac_save_CPPFLAGS="$CPPFLAGS"
10124 if test "$PKG_CONFIG" != "false"
10125 then
10126     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10127     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
10128 else
10129     ac_xml_libs="`xml2-config --libs 2>/dev/null`"
10130     ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
10131 fi
10132 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10133
10134 for ac_header in libxml/parser.h
10135 do
10136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10138   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10141   echo $ECHO_N "(cached) $ECHO_C" >&6
10142 fi
10143 ac_res=`eval echo '${'$as_ac_Header'}'`
10144                { echo "$as_me:$LINENO: result: $ac_res" >&5
10145 echo "${ECHO_T}$ac_res" >&6; }
10146 else
10147   # Is the header compilable?
10148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h.  */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h.  */
10156 $ac_includes_default
10157 #include <$ac_header>
10158 _ACEOF
10159 rm -f conftest.$ac_objext
10160 if { (ac_try="$ac_compile"
10161 case "(($ac_try" in
10162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163   *) ac_try_echo=$ac_try;;
10164 esac
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166   (eval "$ac_compile") 2>conftest.er1
10167   ac_status=$?
10168   grep -v '^ *+' conftest.er1 >conftest.err
10169   rm -f conftest.er1
10170   cat conftest.err >&5
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } && {
10173          test -z "$ac_c_werror_flag" ||
10174          test ! -s conftest.err
10175        } && test -s conftest.$ac_objext; then
10176   ac_header_compiler=yes
10177 else
10178   echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10180
10181         ac_header_compiler=no
10182 fi
10183
10184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10186 echo "${ECHO_T}$ac_header_compiler" >&6; }
10187
10188 # Is the header present?
10189 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10191 cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h.  */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h.  */
10197 #include <$ac_header>
10198 _ACEOF
10199 if { (ac_try="$ac_cpp conftest.$ac_ext"
10200 case "(($ac_try" in
10201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202   *) ac_try_echo=$ac_try;;
10203 esac
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10206   ac_status=$?
10207   grep -v '^ *+' conftest.er1 >conftest.err
10208   rm -f conftest.er1
10209   cat conftest.err >&5
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } >/dev/null && {
10212          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10213          test ! -s conftest.err
10214        }; then
10215   ac_header_preproc=yes
10216 else
10217   echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10219
10220   ac_header_preproc=no
10221 fi
10222
10223 rm -f conftest.err conftest.$ac_ext
10224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10225 echo "${ECHO_T}$ac_header_preproc" >&6; }
10226
10227 # So?  What about this header?
10228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10229   yes:no: )
10230     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10234     ac_header_preproc=yes
10235     ;;
10236   no:yes:* )
10237     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10239     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10240 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10241     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10243     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10244 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10247     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10249     ( cat <<\_ASBOX
10250 ## ------------------------------------ ##
10251 ## Report this to wine-devel@winehq.org ##
10252 ## ------------------------------------ ##
10253 _ASBOX
10254      ) | sed "s/^/$as_me: WARNING:     /" >&2
10255     ;;
10256 esac
10257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10260   echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262   eval "$as_ac_Header=\$ac_header_preproc"
10263 fi
10264 ac_res=`eval echo '${'$as_ac_Header'}'`
10265                { echo "$as_me:$LINENO: result: $ac_res" >&5
10266 echo "${ECHO_T}$ac_res" >&6; }
10267
10268 fi
10269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10270   cat >>confdefs.h <<_ACEOF
10271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10272 _ACEOF
10273  { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10274 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
10275 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
10276   echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278   ac_check_lib_save_LIBS=$LIBS
10279 LIBS="-lxml2 $ac_xml_libs $LIBS"
10280 cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h.  */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h.  */
10286
10287 /* Override any GCC internal prototype to avoid an error.
10288    Use char because int might match the return type of a GCC
10289    builtin and then its argument prototype would still apply.  */
10290 #ifdef __cplusplus
10291 extern "C"
10292 #endif
10293 char xmlParseMemory ();
10294 int
10295 main ()
10296 {
10297 return xmlParseMemory ();
10298   ;
10299   return 0;
10300 }
10301 _ACEOF
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (ac_try="$ac_link"
10304 case "(($ac_try" in
10305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306   *) ac_try_echo=$ac_try;;
10307 esac
10308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309   (eval "$ac_link") 2>conftest.er1
10310   ac_status=$?
10311   grep -v '^ *+' conftest.er1 >conftest.err
10312   rm -f conftest.er1
10313   cat conftest.err >&5
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); } && {
10316          test -z "$ac_c_werror_flag" ||
10317          test ! -s conftest.err
10318        } && test -s conftest$ac_exeext &&
10319        $as_test_x conftest$ac_exeext; then
10320   ac_cv_lib_xml2_xmlParseMemory=yes
10321 else
10322   echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325         ac_cv_lib_xml2_xmlParseMemory=no
10326 fi
10327
10328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10329       conftest$ac_exeext conftest.$ac_ext
10330 LIBS=$ac_check_lib_save_LIBS
10331 fi
10332 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10333 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10334 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
10335
10336 cat >>confdefs.h <<\_ACEOF
10337 #define HAVE_LIBXML2 1
10338 _ACEOF
10339
10340              XML2LIBS="$ac_xml_libs"
10341              XML2INCL="$ac_xml_cflags"
10342 fi
10343
10344          { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10345 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
10346 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
10347   echo $ECHO_N "(cached) $ECHO_C" >&6
10348 else
10349   ac_check_lib_save_LIBS=$LIBS
10350 LIBS="-lxml2 $ac_xml_libs $LIBS"
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h.  */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h.  */
10357
10358 /* Override any GCC internal prototype to avoid an error.
10359    Use char because int might match the return type of a GCC
10360    builtin and then its argument prototype would still apply.  */
10361 #ifdef __cplusplus
10362 extern "C"
10363 #endif
10364 char xmlReadMemory ();
10365 int
10366 main ()
10367 {
10368 return xmlReadMemory ();
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest.$ac_objext conftest$ac_exeext
10374 if { (ac_try="$ac_link"
10375 case "(($ac_try" in
10376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377   *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380   (eval "$ac_link") 2>conftest.er1
10381   ac_status=$?
10382   grep -v '^ *+' conftest.er1 >conftest.err
10383   rm -f conftest.er1
10384   cat conftest.err >&5
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } && {
10387          test -z "$ac_c_werror_flag" ||
10388          test ! -s conftest.err
10389        } && test -s conftest$ac_exeext &&
10390        $as_test_x conftest$ac_exeext; then
10391   ac_cv_lib_xml2_xmlReadMemory=yes
10392 else
10393   echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10395
10396         ac_cv_lib_xml2_xmlReadMemory=no
10397 fi
10398
10399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10400       conftest$ac_exeext conftest.$ac_ext
10401 LIBS=$ac_check_lib_save_LIBS
10402 fi
10403 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10404 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10405 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
10406
10407 cat >>confdefs.h <<\_ACEOF
10408 #define HAVE_XMLREADMEMORY 1
10409 _ACEOF
10410
10411 fi
10412
10413          { echo "$as_me:$LINENO: checking for xmlNewDocPI in -lxml2" >&5
10414 echo $ECHO_N "checking for xmlNewDocPI in -lxml2... $ECHO_C" >&6; }
10415 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then
10416   echo $ECHO_N "(cached) $ECHO_C" >&6
10417 else
10418   ac_check_lib_save_LIBS=$LIBS
10419 LIBS="-lxml2 $ac_xml_libs $LIBS"
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h.  */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h.  */
10426
10427 /* Override any GCC internal prototype to avoid an error.
10428    Use char because int might match the return type of a GCC
10429    builtin and then its argument prototype would still apply.  */
10430 #ifdef __cplusplus
10431 extern "C"
10432 #endif
10433 char xmlNewDocPI ();
10434 int
10435 main ()
10436 {
10437 return xmlNewDocPI ();
10438   ;
10439   return 0;
10440 }
10441 _ACEOF
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (ac_try="$ac_link"
10444 case "(($ac_try" in
10445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446   *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449   (eval "$ac_link") 2>conftest.er1
10450   ac_status=$?
10451   grep -v '^ *+' conftest.er1 >conftest.err
10452   rm -f conftest.er1
10453   cat conftest.err >&5
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } && {
10456          test -z "$ac_c_werror_flag" ||
10457          test ! -s conftest.err
10458        } && test -s conftest$ac_exeext &&
10459        $as_test_x conftest$ac_exeext; then
10460   ac_cv_lib_xml2_xmlNewDocPI=yes
10461 else
10462   echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10464
10465         ac_cv_lib_xml2_xmlNewDocPI=no
10466 fi
10467
10468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10469       conftest$ac_exeext conftest.$ac_ext
10470 LIBS=$ac_check_lib_save_LIBS
10471 fi
10472 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10473 echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10474 if test $ac_cv_lib_xml2_xmlNewDocPI = yes; then
10475
10476 cat >>confdefs.h <<\_ACEOF
10477 #define HAVE_XMLNEWDOCPI 1
10478 _ACEOF
10479
10480 fi
10481
10482
10483 fi
10484
10485 done
10486
10487 CPPFLAGS="$ac_save_CPPFLAGS"
10488 if test "$PKG_CONFIG" != "false"
10489 then
10490     ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
10491     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
10492 else
10493     ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
10494     ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
10495 fi
10496 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
10497
10498
10499 for ac_header in libxslt/pattern.h libxslt/transform.h
10500 do
10501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h.  */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h.  */
10513 #ifdef HAVE_LIBXSLT_PATTERN_H
10514 # include <libxslt/pattern.h>
10515 #endif
10516
10517 #include <$ac_header>
10518 _ACEOF
10519 rm -f conftest.$ac_objext
10520 if { (ac_try="$ac_compile"
10521 case "(($ac_try" in
10522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523   *) ac_try_echo=$ac_try;;
10524 esac
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526   (eval "$ac_compile") 2>conftest.er1
10527   ac_status=$?
10528   grep -v '^ *+' conftest.er1 >conftest.err
10529   rm -f conftest.er1
10530   cat conftest.err >&5
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); } && {
10533          test -z "$ac_c_werror_flag" ||
10534          test ! -s conftest.err
10535        } && test -s conftest.$ac_objext; then
10536   eval "$as_ac_Header=yes"
10537 else
10538   echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541         eval "$as_ac_Header=no"
10542 fi
10543
10544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10545 fi
10546 ac_res=`eval echo '${'$as_ac_Header'}'`
10547                { echo "$as_me:$LINENO: result: $ac_res" >&5
10548 echo "${ECHO_T}$ac_res" >&6; }
10549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10550   cat >>confdefs.h <<_ACEOF
10551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10552 _ACEOF
10553  { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
10554 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
10555 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
10556   echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10558   ac_check_lib_save_LIBS=$LIBS
10559 LIBS="-lxslt $ac_xslt_libs $LIBS"
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h.  */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h.  */
10566
10567 /* Override any GCC internal prototype to avoid an error.
10568    Use char because int might match the return type of a GCC
10569    builtin and then its argument prototype would still apply.  */
10570 #ifdef __cplusplus
10571 extern "C"
10572 #endif
10573 char xsltCompilePattern ();
10574 int
10575 main ()
10576 {
10577 return xsltCompilePattern ();
10578   ;
10579   return 0;
10580 }
10581 _ACEOF
10582 rm -f conftest.$ac_objext conftest$ac_exeext
10583 if { (ac_try="$ac_link"
10584 case "(($ac_try" in
10585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586   *) ac_try_echo=$ac_try;;
10587 esac
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589   (eval "$ac_link") 2>conftest.er1
10590   ac_status=$?
10591   grep -v '^ *+' conftest.er1 >conftest.err
10592   rm -f conftest.er1
10593   cat conftest.err >&5
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); } && {
10596          test -z "$ac_c_werror_flag" ||
10597          test ! -s conftest.err
10598        } && test -s conftest$ac_exeext &&
10599        $as_test_x conftest$ac_exeext; then
10600   ac_cv_lib_xslt_xsltCompilePattern=yes
10601 else
10602   echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10604
10605         ac_cv_lib_xslt_xsltCompilePattern=no
10606 fi
10607
10608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10609       conftest$ac_exeext conftest.$ac_ext
10610 LIBS=$ac_check_lib_save_LIBS
10611 fi
10612 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
10613 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
10614 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
10615
10616 cat >>confdefs.h <<\_ACEOF
10617 #define HAVE_LIBXSLT 1
10618 _ACEOF
10619
10620              XSLTLIBS="$ac_xslt_libs"
10621              XSLTINCL="$ac_xslt_cflags"
10622 fi
10623
10624
10625 fi
10626
10627 done
10628
10629 CPPFLAGS="$ac_save_CPPFLAGS"
10630
10631 HALINCL=""
10632
10633 if test "$PKG_CONFIG" != "false"
10634 then
10635     ac_save_CPPFLAGS="$CPPFLAGS"
10636     ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
10637     ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
10638     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
10639
10640
10641 for ac_header in dbus/dbus.h hal/libhal.h
10642 do
10643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10645   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10648   echo $ECHO_N "(cached) $ECHO_C" >&6
10649 fi
10650 ac_res=`eval echo '${'$as_ac_Header'}'`
10651                { echo "$as_me:$LINENO: result: $ac_res" >&5
10652 echo "${ECHO_T}$ac_res" >&6; }
10653 else
10654   # Is the header compilable?
10655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10657 cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h.  */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h.  */
10663 $ac_includes_default
10664 #include <$ac_header>
10665 _ACEOF
10666 rm -f conftest.$ac_objext
10667 if { (ac_try="$ac_compile"
10668 case "(($ac_try" in
10669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670   *) ac_try_echo=$ac_try;;
10671 esac
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673   (eval "$ac_compile") 2>conftest.er1
10674   ac_status=$?
10675   grep -v '^ *+' conftest.er1 >conftest.err
10676   rm -f conftest.er1
10677   cat conftest.err >&5
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); } && {
10680          test -z "$ac_c_werror_flag" ||
10681          test ! -s conftest.err
10682        } && test -s conftest.$ac_objext; then
10683   ac_header_compiler=yes
10684 else
10685   echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688         ac_header_compiler=no
10689 fi
10690
10691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10693 echo "${ECHO_T}$ac_header_compiler" >&6; }
10694
10695 # Is the header present?
10696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10698 cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h.  */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h.  */
10704 #include <$ac_header>
10705 _ACEOF
10706 if { (ac_try="$ac_cpp conftest.$ac_ext"
10707 case "(($ac_try" in
10708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709   *) ac_try_echo=$ac_try;;
10710 esac
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10713   ac_status=$?
10714   grep -v '^ *+' conftest.er1 >conftest.err
10715   rm -f conftest.er1
10716   cat conftest.err >&5
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); } >/dev/null && {
10719          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10720          test ! -s conftest.err
10721        }; then
10722   ac_header_preproc=yes
10723 else
10724   echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727   ac_header_preproc=no
10728 fi
10729
10730 rm -f conftest.err conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10732 echo "${ECHO_T}$ac_header_preproc" >&6; }
10733
10734 # So?  What about this header?
10735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10736   yes:no: )
10737     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10741     ac_header_preproc=yes
10742     ;;
10743   no:yes:* )
10744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10746     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10747 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10748     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10750     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10751 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10754     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10756     ( cat <<\_ASBOX
10757 ## ------------------------------------ ##
10758 ## Report this to wine-devel@winehq.org ##
10759 ## ------------------------------------ ##
10760 _ASBOX
10761      ) | sed "s/^/$as_me: WARNING:     /" >&2
10762     ;;
10763 esac
10764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10767   echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769   eval "$as_ac_Header=\$ac_header_preproc"
10770 fi
10771 ac_res=`eval echo '${'$as_ac_Header'}'`
10772                { echo "$as_me:$LINENO: result: $ac_res" >&5
10773 echo "${ECHO_T}$ac_res" >&6; }
10774
10775 fi
10776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10777   cat >>confdefs.h <<_ACEOF
10778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10779 _ACEOF
10780
10781 fi
10782
10783 done
10784
10785     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
10786     then
10787         { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
10788 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
10789 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
10790   echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792   ac_check_lib_save_LIBS=$LIBS
10793 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h.  */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h.  */
10800
10801 /* Override any GCC internal prototype to avoid an error.
10802    Use char because int might match the return type of a GCC
10803    builtin and then its argument prototype would still apply.  */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char dbus_connection_close ();
10808 int
10809 main ()
10810 {
10811 return dbus_connection_close ();
10812   ;
10813   return 0;
10814 }
10815 _ACEOF
10816 rm -f conftest.$ac_objext conftest$ac_exeext
10817 if { (ac_try="$ac_link"
10818 case "(($ac_try" in
10819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820   *) ac_try_echo=$ac_try;;
10821 esac
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823   (eval "$ac_link") 2>conftest.er1
10824   ac_status=$?
10825   grep -v '^ *+' conftest.er1 >conftest.err
10826   rm -f conftest.er1
10827   cat conftest.err >&5
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); } && {
10830          test -z "$ac_c_werror_flag" ||
10831          test ! -s conftest.err
10832        } && test -s conftest$ac_exeext &&
10833        $as_test_x conftest$ac_exeext; then
10834   ac_cv_lib_dbus_1_dbus_connection_close=yes
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839         ac_cv_lib_dbus_1_dbus_connection_close=no
10840 fi
10841
10842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10843       conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_check_lib_save_LIBS
10845 fi
10846 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
10847 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
10848 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
10849   { echo "$as_me:$LINENO: checking for -lhal" >&5
10850 echo $ECHO_N "checking for -lhal... $ECHO_C" >&6; }
10851 if test "${ac_cv_lib_soname_hal+set}" = set; then
10852   echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854   ac_check_soname_save_LIBS=$LIBS
10855 LIBS="-lhal $ac_hal_libs $LIBS"
10856   cat >conftest.$ac_ext <<_ACEOF
10857 /* confdefs.h.  */
10858 _ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h.  */
10862
10863 /* Override any GCC internal prototype to avoid an error.
10864    Use char because int might match the return type of a GCC
10865    builtin and then its argument prototype would still apply.  */
10866 #ifdef __cplusplus
10867 extern "C"
10868 #endif
10869 char libhal_ctx_new ();
10870 int
10871 main ()
10872 {
10873 return libhal_ctx_new ();
10874   ;
10875   return 0;
10876 }
10877 _ACEOF
10878 rm -f conftest.$ac_objext conftest$ac_exeext
10879 if { (ac_try="$ac_link"
10880 case "(($ac_try" in
10881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882   *) ac_try_echo=$ac_try;;
10883 esac
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885   (eval "$ac_link") 2>conftest.er1
10886   ac_status=$?
10887   grep -v '^ *+' conftest.er1 >conftest.err
10888   rm -f conftest.er1
10889   cat conftest.err >&5
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); } && {
10892          test -z "$ac_c_werror_flag" ||
10893          test ! -s conftest.err
10894        } && test -s conftest$ac_exeext &&
10895        $as_test_x conftest$ac_exeext; then
10896   case "$LIBEXT" in
10897     dll) ;;
10898     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'` ;;
10899     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
10900   esac
10901 else
10902   echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905
10906 fi
10907
10908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10909       conftest$ac_exeext conftest.$ac_ext
10910   LIBS=$ac_check_soname_save_LIBS
10911 fi
10912 if test "x$ac_cv_lib_soname_hal" = "x"; then
10913   { echo "$as_me:$LINENO: result: not found" >&5
10914 echo "${ECHO_T}not found" >&6; }
10915
10916 else
10917   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
10918 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
10919
10920 cat >>confdefs.h <<_ACEOF
10921 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
10922 _ACEOF
10923
10924        HALINCL="$ac_hal_cflags"
10925 fi
10926
10927 fi
10928
10929     fi
10930     CPPFLAGS="$ac_save_CPPFLAGS"
10931 fi
10932
10933 CURSESLIBS=""
10934 if test "$ac_cv_header_ncurses_h" = "yes"
10935 then
10936     { echo "$as_me:$LINENO: checking for -lncurses" >&5
10937 echo $ECHO_N "checking for -lncurses... $ECHO_C" >&6; }
10938 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941   ac_check_soname_save_LIBS=$LIBS
10942 LIBS="-lncurses  $LIBS"
10943   cat >conftest.$ac_ext <<_ACEOF
10944 /* confdefs.h.  */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h.  */
10949
10950 /* Override any GCC internal prototype to avoid an error.
10951    Use char because int might match the return type of a GCC
10952    builtin and then its argument prototype would still apply.  */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char waddch ();
10957 int
10958 main ()
10959 {
10960 return waddch ();
10961   ;
10962   return 0;
10963 }
10964 _ACEOF
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (ac_try="$ac_link"
10967 case "(($ac_try" in
10968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969   *) ac_try_echo=$ac_try;;
10970 esac
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972   (eval "$ac_link") 2>conftest.er1
10973   ac_status=$?
10974   grep -v '^ *+' conftest.er1 >conftest.err
10975   rm -f conftest.er1
10976   cat conftest.err >&5
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); } && {
10979          test -z "$ac_c_werror_flag" ||
10980          test ! -s conftest.err
10981        } && test -s conftest$ac_exeext &&
10982        $as_test_x conftest$ac_exeext; then
10983   case "$LIBEXT" in
10984     dll) ;;
10985     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'` ;;
10986     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
10987   esac
10988 else
10989   echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10991
10992
10993 fi
10994
10995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10996       conftest$ac_exeext conftest.$ac_ext
10997   LIBS=$ac_check_soname_save_LIBS
10998 fi
10999 if test "x$ac_cv_lib_soname_ncurses" = "x"; then
11000   { echo "$as_me:$LINENO: result: not found" >&5
11001 echo "${ECHO_T}not found" >&6; }
11002
11003 else
11004   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
11005 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
11006
11007 cat >>confdefs.h <<_ACEOF
11008 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11009 _ACEOF
11010
11011        CURSESLIBS="-lncurses"
11012 fi
11013
11014 elif test "$ac_cv_header_curses_h" = "yes"
11015 then
11016     { echo "$as_me:$LINENO: checking for -lcurses" >&5
11017 echo $ECHO_N "checking for -lcurses... $ECHO_C" >&6; }
11018 if test "${ac_cv_lib_soname_curses+set}" = set; then
11019   echo $ECHO_N "(cached) $ECHO_C" >&6
11020 else
11021   ac_check_soname_save_LIBS=$LIBS
11022 LIBS="-lcurses  $LIBS"
11023   cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029
11030 /* Override any GCC internal prototype to avoid an error.
11031    Use char because int might match the return type of a GCC
11032    builtin and then its argument prototype would still apply.  */
11033 #ifdef __cplusplus
11034 extern "C"
11035 #endif
11036 char waddch ();
11037 int
11038 main ()
11039 {
11040 return waddch ();
11041   ;
11042   return 0;
11043 }
11044 _ACEOF
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (ac_try="$ac_link"
11047 case "(($ac_try" in
11048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049   *) ac_try_echo=$ac_try;;
11050 esac
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052   (eval "$ac_link") 2>conftest.er1
11053   ac_status=$?
11054   grep -v '^ *+' conftest.er1 >conftest.err
11055   rm -f conftest.er1
11056   cat conftest.err >&5
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); } && {
11059          test -z "$ac_c_werror_flag" ||
11060          test ! -s conftest.err
11061        } && test -s conftest$ac_exeext &&
11062        $as_test_x conftest$ac_exeext; then
11063   case "$LIBEXT" in
11064     dll) ;;
11065     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'` ;;
11066     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11067   esac
11068 else
11069   echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072
11073 fi
11074
11075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11076       conftest$ac_exeext conftest.$ac_ext
11077   LIBS=$ac_check_soname_save_LIBS
11078 fi
11079 if test "x$ac_cv_lib_soname_curses" = "x"; then
11080   { echo "$as_me:$LINENO: result: not found" >&5
11081 echo "${ECHO_T}not found" >&6; }
11082
11083 else
11084   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
11085 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
11086
11087 cat >>confdefs.h <<_ACEOF
11088 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11089 _ACEOF
11090
11091        CURSESLIBS="-lcurses"
11092 fi
11093
11094 fi
11095 ac_save_LIBS="$LIBS"
11096 LIBS="$LIBS $CURSESLIBS"
11097
11098 for ac_func in mousemask
11099 do
11100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11104   echo $ECHO_N "(cached) $ECHO_C" >&6
11105 else
11106   cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11114 #define $ac_func innocuous_$ac_func
11115
11116 /* System header to define __stub macros and hopefully few prototypes,
11117     which can conflict with char $ac_func (); below.
11118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11119     <limits.h> exists even on freestanding compilers.  */
11120
11121 #ifdef __STDC__
11122 # include <limits.h>
11123 #else
11124 # include <assert.h>
11125 #endif
11126
11127 #undef $ac_func
11128
11129 /* Override any GCC internal prototype to avoid an error.
11130    Use char because int might match the return type of a GCC
11131    builtin and then its argument prototype would still apply.  */
11132 #ifdef __cplusplus
11133 extern "C"
11134 #endif
11135 char $ac_func ();
11136 /* The GNU C library defines this for functions which it implements
11137     to always fail with ENOSYS.  Some functions are actually named
11138     something starting with __ and the normal name is an alias.  */
11139 #if defined __stub_$ac_func || defined __stub___$ac_func
11140 choke me
11141 #endif
11142
11143 int
11144 main ()
11145 {
11146 return $ac_func ();
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (ac_try="$ac_link"
11153 case "(($ac_try" in
11154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155   *) ac_try_echo=$ac_try;;
11156 esac
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158   (eval "$ac_link") 2>conftest.er1
11159   ac_status=$?
11160   grep -v '^ *+' conftest.er1 >conftest.err
11161   rm -f conftest.er1
11162   cat conftest.err >&5
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } && {
11165          test -z "$ac_c_werror_flag" ||
11166          test ! -s conftest.err
11167        } && test -s conftest$ac_exeext &&
11168        $as_test_x conftest$ac_exeext; then
11169   eval "$as_ac_var=yes"
11170 else
11171   echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11173
11174         eval "$as_ac_var=no"
11175 fi
11176
11177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11178       conftest$ac_exeext conftest.$ac_ext
11179 fi
11180 ac_res=`eval echo '${'$as_ac_var'}'`
11181                { echo "$as_me:$LINENO: result: $ac_res" >&5
11182 echo "${ECHO_T}$ac_res" >&6; }
11183 if test `eval echo '${'$as_ac_var'}'` = yes; then
11184   cat >>confdefs.h <<_ACEOF
11185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11186 _ACEOF
11187
11188 fi
11189 done
11190
11191 LIBS="$ac_save_LIBS"
11192
11193 # Extract the first word of "sane-config", so it can be a program name with args.
11194 set dummy sane-config; ac_word=$2
11195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11197 if test "${ac_cv_prog_sane_devel+set}" = set; then
11198   echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200   if test -n "$sane_devel"; then
11201   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11202 else
11203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11205 do
11206   IFS=$as_save_IFS
11207   test -z "$as_dir" && as_dir=.
11208   for ac_exec_ext in '' $ac_executable_extensions; do
11209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210     ac_cv_prog_sane_devel="sane-config"
11211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11212     break 2
11213   fi
11214 done
11215 done
11216 IFS=$as_save_IFS
11217
11218   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11219 fi
11220 fi
11221 sane_devel=$ac_cv_prog_sane_devel
11222 if test -n "$sane_devel"; then
11223   { echo "$as_me:$LINENO: result: $sane_devel" >&5
11224 echo "${ECHO_T}$sane_devel" >&6; }
11225 else
11226   { echo "$as_me:$LINENO: result: no" >&5
11227 echo "${ECHO_T}no" >&6; }
11228 fi
11229
11230
11231 if test "$sane_devel" != "no"
11232 then
11233     ac_sane_incl="`$sane_devel --cflags`"
11234     ac_save_CPPFLAGS="$CPPFLAGS"
11235     CPPFLAGS="$CPPFLAGS $ac_sane_incl"
11236     if test "${ac_cv_header_sane_sane_h+set}" = set; then
11237   { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11238 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11239 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 fi
11242 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11243 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11244 else
11245   # Is the header compilable?
11246 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11247 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
11248 cat >conftest.$ac_ext <<_ACEOF
11249 /* confdefs.h.  */
11250 _ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h.  */
11254 $ac_includes_default
11255 #include <sane/sane.h>
11256 _ACEOF
11257 rm -f conftest.$ac_objext
11258 if { (ac_try="$ac_compile"
11259 case "(($ac_try" in
11260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261   *) ac_try_echo=$ac_try;;
11262 esac
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264   (eval "$ac_compile") 2>conftest.er1
11265   ac_status=$?
11266   grep -v '^ *+' conftest.er1 >conftest.err
11267   rm -f conftest.er1
11268   cat conftest.err >&5
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); } && {
11271          test -z "$ac_c_werror_flag" ||
11272          test ! -s conftest.err
11273        } && test -s conftest.$ac_objext; then
11274   ac_header_compiler=yes
11275 else
11276   echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11278
11279         ac_header_compiler=no
11280 fi
11281
11282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11284 echo "${ECHO_T}$ac_header_compiler" >&6; }
11285
11286 # Is the header present?
11287 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
11288 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
11289 cat >conftest.$ac_ext <<_ACEOF
11290 /* confdefs.h.  */
11291 _ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h.  */
11295 #include <sane/sane.h>
11296 _ACEOF
11297 if { (ac_try="$ac_cpp conftest.$ac_ext"
11298 case "(($ac_try" in
11299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300   *) ac_try_echo=$ac_try;;
11301 esac
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11304   ac_status=$?
11305   grep -v '^ *+' conftest.er1 >conftest.err
11306   rm -f conftest.er1
11307   cat conftest.err >&5
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); } >/dev/null && {
11310          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11311          test ! -s conftest.err
11312        }; then
11313   ac_header_preproc=yes
11314 else
11315   echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11317
11318   ac_header_preproc=no
11319 fi
11320
11321 rm -f conftest.err conftest.$ac_ext
11322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11323 echo "${ECHO_T}$ac_header_preproc" >&6; }
11324
11325 # So?  What about this header?
11326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11327   yes:no: )
11328     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
11329 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11330     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
11331 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
11332     ac_header_preproc=yes
11333     ;;
11334   no:yes:* )
11335     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
11336 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
11337     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
11338 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
11339     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
11340 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
11341     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
11342 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11343     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
11344 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
11345     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
11346 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
11347     ( cat <<\_ASBOX
11348 ## ------------------------------------ ##
11349 ## Report this to wine-devel@winehq.org ##
11350 ## ------------------------------------ ##
11351 _ASBOX
11352      ) | sed "s/^/$as_me: WARNING:     /" >&2
11353     ;;
11354 esac
11355 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11356 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11357 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11358   echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360   ac_cv_header_sane_sane_h=$ac_header_preproc
11361 fi
11362 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11363 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11364
11365 fi
11366 if test $ac_cv_header_sane_sane_h = yes; then
11367   { echo "$as_me:$LINENO: checking for -lsane" >&5
11368 echo $ECHO_N "checking for -lsane... $ECHO_C" >&6; }
11369 if test "${ac_cv_lib_soname_sane+set}" = set; then
11370   echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372   ac_check_soname_save_LIBS=$LIBS
11373 LIBS="-lsane  $LIBS"
11374   cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380
11381 /* Override any GCC internal prototype to avoid an error.
11382    Use char because int might match the return type of a GCC
11383    builtin and then its argument prototype would still apply.  */
11384 #ifdef __cplusplus
11385 extern "C"
11386 #endif
11387 char sane_init ();
11388 int
11389 main ()
11390 {
11391 return sane_init ();
11392   ;
11393   return 0;
11394 }
11395 _ACEOF
11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (ac_try="$ac_link"
11398 case "(($ac_try" in
11399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400   *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403   (eval "$ac_link") 2>conftest.er1
11404   ac_status=$?
11405   grep -v '^ *+' conftest.er1 >conftest.err
11406   rm -f conftest.er1
11407   cat conftest.err >&5
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } && {
11410          test -z "$ac_c_werror_flag" ||
11411          test ! -s conftest.err
11412        } && test -s conftest$ac_exeext &&
11413        $as_test_x conftest$ac_exeext; then
11414   case "$LIBEXT" in
11415     dll) ;;
11416     dylib) ac_cv_lib_soname_sane=`otool -L conftest$ac_exeext | grep "libsane\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libsane\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11417     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11418   esac
11419 else
11420   echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11422
11423
11424 fi
11425
11426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11427       conftest$ac_exeext conftest.$ac_ext
11428   LIBS=$ac_check_soname_save_LIBS
11429 fi
11430 if test "x$ac_cv_lib_soname_sane" = "x"; then
11431   { echo "$as_me:$LINENO: result: not found" >&5
11432 echo "${ECHO_T}not found" >&6; }
11433
11434 else
11435   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_sane" >&5
11436 echo "${ECHO_T}$ac_cv_lib_soname_sane" >&6; }
11437
11438 cat >>confdefs.h <<_ACEOF
11439 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11440 _ACEOF
11441
11442        SANEINCL="$ac_sane_incl"
11443
11444 fi
11445
11446 fi
11447
11448
11449     CPPFLAGS="$ac_save_CPPFLAGS"
11450 fi
11451
11452 # Extract the first word of "gphoto2-config", so it can be a program name with args.
11453 set dummy gphoto2-config; ac_word=$2
11454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11456 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
11457   echo $ECHO_N "(cached) $ECHO_C" >&6
11458 else
11459   if test -n "$gphoto2_devel"; then
11460   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
11461 else
11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463 for as_dir in $PATH
11464 do
11465   IFS=$as_save_IFS
11466   test -z "$as_dir" && as_dir=.
11467   for ac_exec_ext in '' $ac_executable_extensions; do
11468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11469     ac_cv_prog_gphoto2_devel="gphoto2-config"
11470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11471     break 2
11472   fi
11473 done
11474 done
11475 IFS=$as_save_IFS
11476
11477   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
11478 fi
11479 fi
11480 gphoto2_devel=$ac_cv_prog_gphoto2_devel
11481 if test -n "$gphoto2_devel"; then
11482   { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
11483 echo "${ECHO_T}$gphoto2_devel" >&6; }
11484 else
11485   { echo "$as_me:$LINENO: result: no" >&5
11486 echo "${ECHO_T}no" >&6; }
11487 fi
11488
11489
11490 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
11491 set dummy gphoto2-port-config; ac_word=$2
11492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11494 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   if test -n "$gphoto2port_devel"; then
11498   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
11499 else
11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11502 do
11503   IFS=$as_save_IFS
11504   test -z "$as_dir" && as_dir=.
11505   for ac_exec_ext in '' $ac_executable_extensions; do
11506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11507     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
11508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11509     break 2
11510   fi
11511 done
11512 done
11513 IFS=$as_save_IFS
11514
11515   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
11516 fi
11517 fi
11518 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
11519 if test -n "$gphoto2port_devel"; then
11520   { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
11521 echo "${ECHO_T}$gphoto2port_devel" >&6; }
11522 else
11523   { echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6; }
11525 fi
11526
11527
11528 GPHOTO2LIBS=""
11529
11530 GPHOTO2INCL=""
11531
11532 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
11533 then
11534     GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
11535     GPHOTO2LIBS=""
11536     for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
11537     do
11538       case "$i" in
11539         -L/usr/lib|-L/usr/lib64) ;;
11540         -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
11541       esac
11542     done
11543     ac_save_CPPFLAGS="$CPPFLAGS"
11544     ac_save_LIBS="$LIBS"
11545     CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
11546     LIBS="$LIBS $GPHOTO2LIBS"
11547     if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11548   { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11549 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
11550 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11551   echo $ECHO_N "(cached) $ECHO_C" >&6
11552 fi
11553 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11554 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
11555 else
11556   # Is the header compilable?
11557 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
11558 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h.  */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h.  */
11565 $ac_includes_default
11566 #include <gphoto2-camera.h>
11567 _ACEOF
11568 rm -f conftest.$ac_objext
11569 if { (ac_try="$ac_compile"
11570 case "(($ac_try" in
11571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572   *) ac_try_echo=$ac_try;;
11573 esac
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575   (eval "$ac_compile") 2>conftest.er1
11576   ac_status=$?
11577   grep -v '^ *+' conftest.er1 >conftest.err
11578   rm -f conftest.er1
11579   cat conftest.err >&5
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); } && {
11582          test -z "$ac_c_werror_flag" ||
11583          test ! -s conftest.err
11584        } && test -s conftest.$ac_objext; then
11585   ac_header_compiler=yes
11586 else
11587   echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11589
11590         ac_header_compiler=no
11591 fi
11592
11593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11595 echo "${ECHO_T}$ac_header_compiler" >&6; }
11596
11597 # Is the header present?
11598 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
11599 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h.  */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h.  */
11606 #include <gphoto2-camera.h>
11607 _ACEOF
11608 if { (ac_try="$ac_cpp conftest.$ac_ext"
11609 case "(($ac_try" in
11610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611   *) ac_try_echo=$ac_try;;
11612 esac
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11615   ac_status=$?
11616   grep -v '^ *+' conftest.er1 >conftest.err
11617   rm -f conftest.er1
11618   cat conftest.err >&5
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); } >/dev/null && {
11621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11622          test ! -s conftest.err
11623        }; then
11624   ac_header_preproc=yes
11625 else
11626   echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11628
11629   ac_header_preproc=no
11630 fi
11631
11632 rm -f conftest.err conftest.$ac_ext
11633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11634 echo "${ECHO_T}$ac_header_preproc" >&6; }
11635
11636 # So?  What about this header?
11637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11638   yes:no: )
11639     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
11640 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11641     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
11642 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
11643     ac_header_preproc=yes
11644     ;;
11645   no:yes:* )
11646     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
11647 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
11648     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&5
11649 echo "$as_me: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&2;}
11650     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
11651 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
11652     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&5
11653 echo "$as_me: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11654     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
11655 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
11656     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
11657 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
11658     ( cat <<\_ASBOX
11659 ## ------------------------------------ ##
11660 ## Report this to wine-devel@winehq.org ##
11661 ## ------------------------------------ ##
11662 _ASBOX
11663      ) | sed "s/^/$as_me: WARNING:     /" >&2
11664     ;;
11665 esac
11666 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11667 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
11668 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11669   echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671   ac_cv_header_gphoto2_camera_h=$ac_header_preproc
11672 fi
11673 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11674 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
11675
11676 fi
11677 if test $ac_cv_header_gphoto2_camera_h = yes; then
11678   { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
11679 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
11680 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683   ac_check_lib_save_LIBS=$LIBS
11684 LIBS="-lgphoto2  $LIBS"
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h.  */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h.  */
11691
11692 /* Override any GCC internal prototype to avoid an error.
11693    Use char because int might match the return type of a GCC
11694    builtin and then its argument prototype would still apply.  */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 char gp_camera_new ();
11699 int
11700 main ()
11701 {
11702 return gp_camera_new ();
11703   ;
11704   return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (ac_try="$ac_link"
11709 case "(($ac_try" in
11710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711   *) ac_try_echo=$ac_try;;
11712 esac
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714   (eval "$ac_link") 2>conftest.er1
11715   ac_status=$?
11716   grep -v '^ *+' conftest.er1 >conftest.err
11717   rm -f conftest.er1
11718   cat conftest.err >&5
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); } && {
11721          test -z "$ac_c_werror_flag" ||
11722          test ! -s conftest.err
11723        } && test -s conftest$ac_exeext &&
11724        $as_test_x conftest$ac_exeext; then
11725   ac_cv_lib_gphoto2_gp_camera_new=yes
11726 else
11727   echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11729
11730         ac_cv_lib_gphoto2_gp_camera_new=no
11731 fi
11732
11733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11734       conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11736 fi
11737 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11738 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11739 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
11740
11741 cat >>confdefs.h <<\_ACEOF
11742 #define HAVE_GPHOTO2 1
11743 _ACEOF
11744
11745 else
11746   GPHOTO2LIBS=""
11747                                   GPHOTO2INCL=""
11748 fi
11749
11750 else
11751   GPHOTO2LIBS=""
11752                     GPHOTO2INCL=""
11753 fi
11754
11755
11756     LIBS="$ac_save_LIBS"
11757     CPPFLAGS="$ac_save_CPPFLAGS"
11758 fi
11759
11760 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
11761 then
11762     saved_libs="$LIBS"
11763     icu_libs="-lsicuuc -lsicudata -lstdc++ -lgcc_s"
11764     if test -n "$ICU_LIB_DIR"
11765     then
11766         icu_libs="-L$ICU_LIB_DIR $icu_libs"
11767     fi
11768     { echo "$as_me:$LINENO: checking whether can link with ICU libraries" >&5
11769 echo $ECHO_N "checking whether can link with ICU libraries... $ECHO_C" >&6; }
11770     LIBS="$saved_libs $icu_libs"
11771     if test "$cross_compiling" = yes; then
11772   { echo "$as_me:$LINENO: result: no" >&5
11773 echo "${ECHO_T}no" >&6; }
11774 else
11775   cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h.  */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h.  */
11781 #include <unicode/ubidi.h>
11782 int
11783 main ()
11784 {
11785 ubidi_open()
11786   ;
11787   return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest$ac_exeext
11791 if { (ac_try="$ac_link"
11792 case "(($ac_try" in
11793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794   *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797   (eval "$ac_link") 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11801   { (case "(($ac_try" in
11802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803   *) ac_try_echo=$ac_try;;
11804 esac
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806   (eval "$ac_try") 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); }; }; then
11810
11811 cat >>confdefs.h <<\_ACEOF
11812 #define HAVE_ICU 1
11813 _ACEOF
11814
11815                  ICULIBS="$icu_libs"
11816
11817                  { echo "$as_me:$LINENO: result: yes" >&5
11818 echo "${ECHO_T}yes" >&6; }
11819 else
11820   echo "$as_me: program exited with status $ac_status" >&5
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 ( exit $ac_status )
11825 { echo "$as_me:$LINENO: result: no" >&5
11826 echo "${ECHO_T}no" >&6; }
11827 fi
11828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11829 fi
11830
11831
11832     LIBS="$saved_libs"
11833 fi
11834
11835 RESOLVLIBS=""
11836
11837 if test "$ac_cv_header_resolv_h" = "yes"
11838 then
11839     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
11840 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
11841 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
11842   echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844   ac_check_lib_save_LIBS=$LIBS
11845 LIBS="-lresolv  $LIBS"
11846 cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h.  */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h.  */
11852
11853 /* Override any GCC internal prototype to avoid an error.
11854    Use char because int might match the return type of a GCC
11855    builtin and then its argument prototype would still apply.  */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char res_query ();
11860 int
11861 main ()
11862 {
11863 return res_query ();
11864   ;
11865   return 0;
11866 }
11867 _ACEOF
11868 rm -f conftest.$ac_objext conftest$ac_exeext
11869 if { (ac_try="$ac_link"
11870 case "(($ac_try" in
11871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872   *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875   (eval "$ac_link") 2>conftest.er1
11876   ac_status=$?
11877   grep -v '^ *+' conftest.er1 >conftest.err
11878   rm -f conftest.er1
11879   cat conftest.err >&5
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); } && {
11882          test -z "$ac_c_werror_flag" ||
11883          test ! -s conftest.err
11884        } && test -s conftest$ac_exeext &&
11885        $as_test_x conftest$ac_exeext; then
11886   ac_cv_lib_resolv_res_query=yes
11887 else
11888   echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891         ac_cv_lib_resolv_res_query=no
11892 fi
11893
11894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11895       conftest$ac_exeext conftest.$ac_ext
11896 LIBS=$ac_check_lib_save_LIBS
11897 fi
11898 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
11899 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
11900 if test $ac_cv_lib_resolv_res_query = yes; then
11901
11902 cat >>confdefs.h <<\_ACEOF
11903 #define HAVE_RESOLV 1
11904 _ACEOF
11905
11906          RESOLVLIBS="-lresolv"
11907 fi
11908
11909 fi
11910
11911 LCMSLIBS=""
11912
11913 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
11914 then
11915     { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
11916 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
11917 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
11918   echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920   ac_check_lib_save_LIBS=$LIBS
11921 LIBS="-llcms  $LIBS"
11922 cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h.  */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h.  */
11928
11929 /* Override any GCC internal prototype to avoid an error.
11930    Use char because int might match the return type of a GCC
11931    builtin and then its argument prototype would still apply.  */
11932 #ifdef __cplusplus
11933 extern "C"
11934 #endif
11935 char cmsOpenProfileFromFile ();
11936 int
11937 main ()
11938 {
11939 return cmsOpenProfileFromFile ();
11940   ;
11941   return 0;
11942 }
11943 _ACEOF
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (ac_try="$ac_link"
11946 case "(($ac_try" in
11947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948   *) ac_try_echo=$ac_try;;
11949 esac
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951   (eval "$ac_link") 2>conftest.er1
11952   ac_status=$?
11953   grep -v '^ *+' conftest.er1 >conftest.err
11954   rm -f conftest.er1
11955   cat conftest.err >&5
11956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); } && {
11958          test -z "$ac_c_werror_flag" ||
11959          test ! -s conftest.err
11960        } && test -s conftest$ac_exeext &&
11961        $as_test_x conftest$ac_exeext; then
11962   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
11963 else
11964   echo "$as_me: failed program was:" >&5
11965 sed 's/^/| /' conftest.$ac_ext >&5
11966
11967         ac_cv_lib_lcms_cmsOpenProfileFromFile=no
11968 fi
11969
11970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11971       conftest$ac_exeext conftest.$ac_ext
11972 LIBS=$ac_check_lib_save_LIBS
11973 fi
11974 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
11975 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
11976 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
11977
11978 cat >>confdefs.h <<\_ACEOF
11979 #define HAVE_LCMS 1
11980 _ACEOF
11981
11982          LCMSLIBS="-llcms"
11983 fi
11984
11985 fi
11986
11987 LDAPLIBS=""
11988
11989 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
11990 then
11991     { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
11992 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
11993 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
11994   echo $ECHO_N "(cached) $ECHO_C" >&6
11995 else
11996   ac_check_lib_save_LIBS=$LIBS
11997 LIBS="-lldap_r $LIBPTHREAD $LIBS"
11998 cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004
12005 /* Override any GCC internal prototype to avoid an error.
12006    Use char because int might match the return type of a GCC
12007    builtin and then its argument prototype would still apply.  */
12008 #ifdef __cplusplus
12009 extern "C"
12010 #endif
12011 char ldap_initialize ();
12012 int
12013 main ()
12014 {
12015 return ldap_initialize ();
12016   ;
12017   return 0;
12018 }
12019 _ACEOF
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (ac_try="$ac_link"
12022 case "(($ac_try" in
12023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024   *) ac_try_echo=$ac_try;;
12025 esac
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027   (eval "$ac_link") 2>conftest.er1
12028   ac_status=$?
12029   grep -v '^ *+' conftest.er1 >conftest.err
12030   rm -f conftest.er1
12031   cat conftest.err >&5
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); } && {
12034          test -z "$ac_c_werror_flag" ||
12035          test ! -s conftest.err
12036        } && test -s conftest$ac_exeext &&
12037        $as_test_x conftest$ac_exeext; then
12038   ac_cv_lib_ldap_r_ldap_initialize=yes
12039 else
12040   echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12042
12043         ac_cv_lib_ldap_r_ldap_initialize=no
12044 fi
12045
12046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12047       conftest$ac_exeext conftest.$ac_ext
12048 LIBS=$ac_check_lib_save_LIBS
12049 fi
12050 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12051 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12052 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12053   { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12054 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12055 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12056   echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058   ac_check_lib_save_LIBS=$LIBS
12059 LIBS="-llber $LIBPTHREAD $LIBS"
12060 cat >conftest.$ac_ext <<_ACEOF
12061 /* confdefs.h.  */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h.  */
12066
12067 /* Override any GCC internal prototype to avoid an error.
12068    Use char because int might match the return type of a GCC
12069    builtin and then its argument prototype would still apply.  */
12070 #ifdef __cplusplus
12071 extern "C"
12072 #endif
12073 char ber_init ();
12074 int
12075 main ()
12076 {
12077 return ber_init ();
12078   ;
12079   return 0;
12080 }
12081 _ACEOF
12082 rm -f conftest.$ac_objext conftest$ac_exeext
12083 if { (ac_try="$ac_link"
12084 case "(($ac_try" in
12085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086   *) ac_try_echo=$ac_try;;
12087 esac
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089   (eval "$ac_link") 2>conftest.er1
12090   ac_status=$?
12091   grep -v '^ *+' conftest.er1 >conftest.err
12092   rm -f conftest.er1
12093   cat conftest.err >&5
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); } && {
12096          test -z "$ac_c_werror_flag" ||
12097          test ! -s conftest.err
12098        } && test -s conftest$ac_exeext &&
12099        $as_test_x conftest$ac_exeext; then
12100   ac_cv_lib_lber_ber_init=yes
12101 else
12102   echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12104
12105         ac_cv_lib_lber_ber_init=no
12106 fi
12107
12108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12109       conftest$ac_exeext conftest.$ac_ext
12110 LIBS=$ac_check_lib_save_LIBS
12111 fi
12112 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12113 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12114 if test $ac_cv_lib_lber_ber_init = yes; then
12115
12116 cat >>confdefs.h <<\_ACEOF
12117 #define HAVE_LDAP 1
12118 _ACEOF
12119
12120              LDAPLIBS="-lldap_r -llber"
12121 fi
12122
12123 fi
12124
12125     ac_wine_check_funcs_save_LIBS="$LIBS"
12126 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12127
12128
12129
12130
12131 for ac_func in \
12132         ldap_count_references \
12133         ldap_first_reference \
12134         ldap_next_reference \
12135         ldap_parse_reference
12136 do
12137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12141   echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143   cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h.  */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h.  */
12149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12151 #define $ac_func innocuous_$ac_func
12152
12153 /* System header to define __stub macros and hopefully few prototypes,
12154     which can conflict with char $ac_func (); below.
12155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12156     <limits.h> exists even on freestanding compilers.  */
12157
12158 #ifdef __STDC__
12159 # include <limits.h>
12160 #else
12161 # include <assert.h>
12162 #endif
12163
12164 #undef $ac_func
12165
12166 /* Override any GCC internal prototype to avoid an error.
12167    Use char because int might match the return type of a GCC
12168    builtin and then its argument prototype would still apply.  */
12169 #ifdef __cplusplus
12170 extern "C"
12171 #endif
12172 char $ac_func ();
12173 /* The GNU C library defines this for functions which it implements
12174     to always fail with ENOSYS.  Some functions are actually named
12175     something starting with __ and the normal name is an alias.  */
12176 #if defined __stub_$ac_func || defined __stub___$ac_func
12177 choke me
12178 #endif
12179
12180 int
12181 main ()
12182 {
12183 return $ac_func ();
12184   ;
12185   return 0;
12186 }
12187 _ACEOF
12188 rm -f conftest.$ac_objext conftest$ac_exeext
12189 if { (ac_try="$ac_link"
12190 case "(($ac_try" in
12191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192   *) ac_try_echo=$ac_try;;
12193 esac
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195   (eval "$ac_link") 2>conftest.er1
12196   ac_status=$?
12197   grep -v '^ *+' conftest.er1 >conftest.err
12198   rm -f conftest.er1
12199   cat conftest.err >&5
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); } && {
12202          test -z "$ac_c_werror_flag" ||
12203          test ! -s conftest.err
12204        } && test -s conftest$ac_exeext &&
12205        $as_test_x conftest$ac_exeext; then
12206   eval "$as_ac_var=yes"
12207 else
12208   echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211         eval "$as_ac_var=no"
12212 fi
12213
12214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12215       conftest$ac_exeext conftest.$ac_ext
12216 fi
12217 ac_res=`eval echo '${'$as_ac_var'}'`
12218                { echo "$as_me:$LINENO: result: $ac_res" >&5
12219 echo "${ECHO_T}$ac_res" >&6; }
12220 if test `eval echo '${'$as_ac_var'}'` = yes; then
12221   cat >>confdefs.h <<_ACEOF
12222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12223 _ACEOF
12224
12225 fi
12226 done
12227
12228 LIBS="$ac_wine_check_funcs_save_LIBS"
12229 fi
12230
12231 FREETYPELIBS=""
12232
12233 FREETYPEINCL=""
12234
12235 # Extract the first word of "freetype-config", so it can be a program name with args.
12236 set dummy freetype-config; ac_word=$2
12237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12239 if test "${ac_cv_prog_ft_devel+set}" = set; then
12240   echo $ECHO_N "(cached) $ECHO_C" >&6
12241 else
12242   if test -n "$ft_devel"; then
12243   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
12244 else
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12247 do
12248   IFS=$as_save_IFS
12249   test -z "$as_dir" && as_dir=.
12250   for ac_exec_ext in '' $ac_executable_extensions; do
12251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252     ac_cv_prog_ft_devel="freetype-config"
12253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12254     break 2
12255   fi
12256 done
12257 done
12258 IFS=$as_save_IFS
12259
12260   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
12261 fi
12262 fi
12263 ft_devel=$ac_cv_prog_ft_devel
12264 if test -n "$ft_devel"; then
12265   { echo "$as_me:$LINENO: result: $ft_devel" >&5
12266 echo "${ECHO_T}$ft_devel" >&6; }
12267 else
12268   { echo "$as_me:$LINENO: result: no" >&5
12269 echo "${ECHO_T}no" >&6; }
12270 fi
12271
12272
12273 if test "$ft_devel" = "no"
12274 then
12275     # Extract the first word of "freetype2-config", so it can be a program name with args.
12276 set dummy freetype2-config; ac_word=$2
12277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12279 if test "${ac_cv_prog_ft_devel2+set}" = set; then
12280   echo $ECHO_N "(cached) $ECHO_C" >&6
12281 else
12282   if test -n "$ft_devel2"; then
12283   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
12284 else
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12287 do
12288   IFS=$as_save_IFS
12289   test -z "$as_dir" && as_dir=.
12290   for ac_exec_ext in '' $ac_executable_extensions; do
12291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12292     ac_cv_prog_ft_devel2="freetype2-config"
12293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12294     break 2
12295   fi
12296 done
12297 done
12298 IFS=$as_save_IFS
12299
12300   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
12301 fi
12302 fi
12303 ft_devel2=$ac_cv_prog_ft_devel2
12304 if test -n "$ft_devel2"; then
12305   { echo "$as_me:$LINENO: result: $ft_devel2" >&5
12306 echo "${ECHO_T}$ft_devel2" >&6; }
12307 else
12308   { echo "$as_me:$LINENO: result: no" >&5
12309 echo "${ECHO_T}no" >&6; }
12310 fi
12311
12312
12313     if test "$ft_devel2" = "freetype2-config"
12314     then
12315         ft_devel=$ft_devel2
12316     fi
12317 fi
12318
12319 if test "$ft_devel" = "no"
12320 then
12321     wine_cv_msg_freetype=yes
12322 else
12323     FREETYPELIBS=`$ft_devel --libs`
12324     FREETYPEINCL=`$ft_devel --cflags`
12325     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
12326 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
12327 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
12328   echo $ECHO_N "(cached) $ECHO_C" >&6
12329 else
12330   ac_check_lib_save_LIBS=$LIBS
12331 LIBS="-lfreetype $FREETYPELIBS $LIBS"
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h.  */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h.  */
12338
12339 /* Override any GCC internal prototype to avoid an error.
12340    Use char because int might match the return type of a GCC
12341    builtin and then its argument prototype would still apply.  */
12342 #ifdef __cplusplus
12343 extern "C"
12344 #endif
12345 char FT_Init_FreeType ();
12346 int
12347 main ()
12348 {
12349 return FT_Init_FreeType ();
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (ac_try="$ac_link"
12356 case "(($ac_try" in
12357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358   *) ac_try_echo=$ac_try;;
12359 esac
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361   (eval "$ac_link") 2>conftest.er1
12362   ac_status=$?
12363   grep -v '^ *+' conftest.er1 >conftest.err
12364   rm -f conftest.er1
12365   cat conftest.err >&5
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } && {
12368          test -z "$ac_c_werror_flag" ||
12369          test ! -s conftest.err
12370        } && test -s conftest$ac_exeext &&
12371        $as_test_x conftest$ac_exeext; then
12372   ac_cv_lib_freetype_FT_Init_FreeType=yes
12373 else
12374   echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12376
12377         ac_cv_lib_freetype_FT_Init_FreeType=no
12378 fi
12379
12380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12381       conftest$ac_exeext conftest.$ac_ext
12382 LIBS=$ac_check_lib_save_LIBS
12383 fi
12384 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
12385 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
12386 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
12387   ft_lib=yes
12388 else
12389   ft_lib=no
12390 fi
12391
12392     if test "$ft_lib" = "no"
12393     then
12394         wine_cv_msg_freetype=yes
12395         FREETYPELIBS=""
12396         FREETYPEINCL=""
12397     else
12398         ac_save_CPPFLAGS="$CPPFLAGS"
12399         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411 for ac_header in ft2build.h \
12412                          freetype/freetype.h \
12413                          freetype/ftglyph.h \
12414                          freetype/tttables.h \
12415                          freetype/ftnames.h \
12416                          freetype/ftsnames.h \
12417                          freetype/ttnameid.h \
12418                          freetype/ftoutln.h \
12419                          freetype/ftwinfnt.h \
12420                          freetype/ftmodapi.h \
12421                          freetype/internal/sfnt.h
12422 do
12423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12427   echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429   cat >conftest.$ac_ext <<_ACEOF
12430 /* confdefs.h.  */
12431 _ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h.  */
12435 #if HAVE_FT2BUILD_H
12436                           #include <ft2build.h>
12437                           #endif
12438
12439 #include <$ac_header>
12440 _ACEOF
12441 rm -f conftest.$ac_objext
12442 if { (ac_try="$ac_compile"
12443 case "(($ac_try" in
12444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445   *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448   (eval "$ac_compile") 2>conftest.er1
12449   ac_status=$?
12450   grep -v '^ *+' conftest.er1 >conftest.err
12451   rm -f conftest.er1
12452   cat conftest.err >&5
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); } && {
12455          test -z "$ac_c_werror_flag" ||
12456          test ! -s conftest.err
12457        } && test -s conftest.$ac_objext; then
12458   eval "$as_ac_Header=yes"
12459 else
12460   echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12462
12463         eval "$as_ac_Header=no"
12464 fi
12465
12466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467 fi
12468 ac_res=`eval echo '${'$as_ac_Header'}'`
12469                { echo "$as_me:$LINENO: result: $ac_res" >&5
12470 echo "${ECHO_T}$ac_res" >&6; }
12471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12472   cat >>confdefs.h <<_ACEOF
12473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12474 _ACEOF
12475
12476 fi
12477
12478 done
12479
12480         cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h.  */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h.  */
12486 #include <ft2build.h>
12487                     #include <freetype/fttrigon.h>
12488 _ACEOF
12489 if { (ac_try="$ac_cpp conftest.$ac_ext"
12490 case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12496   ac_status=$?
12497   grep -v '^ *+' conftest.er1 >conftest.err
12498   rm -f conftest.er1
12499   cat conftest.err >&5
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } >/dev/null && {
12502          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12503          test ! -s conftest.err
12504        }; then
12505
12506 cat >>confdefs.h <<\_ACEOF
12507 #define HAVE_FREETYPE_FTTRIGON_H 1
12508 _ACEOF
12509
12510                     wine_cv_fttrigon=yes
12511 else
12512   echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12514
12515   wine_cv_fttrigon=no
12516 fi
12517
12518 rm -f conftest.err conftest.$ac_ext
12519         { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
12520 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
12521 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
12522   echo $ECHO_N "(cached) $ECHO_C" >&6
12523 else
12524   cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530 #include <freetype/ftmodapi.h>
12531
12532 typedef FT_TrueTypeEngineType ac__type_new_;
12533 int
12534 main ()
12535 {
12536 if ((ac__type_new_ *) 0)
12537   return 0;
12538 if (sizeof (ac__type_new_))
12539   return 0;
12540   ;
12541   return 0;
12542 }
12543 _ACEOF
12544 rm -f conftest.$ac_objext
12545 if { (ac_try="$ac_compile"
12546 case "(($ac_try" in
12547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548   *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551   (eval "$ac_compile") 2>conftest.er1
12552   ac_status=$?
12553   grep -v '^ *+' conftest.er1 >conftest.err
12554   rm -f conftest.er1
12555   cat conftest.err >&5
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); } && {
12558          test -z "$ac_c_werror_flag" ||
12559          test ! -s conftest.err
12560        } && test -s conftest.$ac_objext; then
12561   ac_cv_type_FT_TrueTypeEngineType=yes
12562 else
12563   echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566         ac_cv_type_FT_TrueTypeEngineType=no
12567 fi
12568
12569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 fi
12571 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
12572 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
12573 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
12574
12575 cat >>confdefs.h <<_ACEOF
12576 #define HAVE_FT_TRUETYPEENGINETYPE 1
12577 _ACEOF
12578
12579
12580 fi
12581
12582         ac_save_CFLAGS="$CFLAGS"
12583         CFLAGS="$CFLAGS $FREETYPELIBS"
12584
12585 for ac_func in FT_Load_Sfnt_Table
12586 do
12587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12588 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12591   echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593   cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h.  */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h.  */
12599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12601 #define $ac_func innocuous_$ac_func
12602
12603 /* System header to define __stub macros and hopefully few prototypes,
12604     which can conflict with char $ac_func (); below.
12605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12606     <limits.h> exists even on freestanding compilers.  */
12607
12608 #ifdef __STDC__
12609 # include <limits.h>
12610 #else
12611 # include <assert.h>
12612 #endif
12613
12614 #undef $ac_func
12615
12616 /* Override any GCC internal prototype to avoid an error.
12617    Use char because int might match the return type of a GCC
12618    builtin and then its argument prototype would still apply.  */
12619 #ifdef __cplusplus
12620 extern "C"
12621 #endif
12622 char $ac_func ();
12623 /* The GNU C library defines this for functions which it implements
12624     to always fail with ENOSYS.  Some functions are actually named
12625     something starting with __ and the normal name is an alias.  */
12626 #if defined __stub_$ac_func || defined __stub___$ac_func
12627 choke me
12628 #endif
12629
12630 int
12631 main ()
12632 {
12633 return $ac_func ();
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (ac_try="$ac_link"
12640 case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_link") 2>conftest.er1
12646   ac_status=$?
12647   grep -v '^ *+' conftest.er1 >conftest.err
12648   rm -f conftest.er1
12649   cat conftest.err >&5
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); } && {
12652          test -z "$ac_c_werror_flag" ||
12653          test ! -s conftest.err
12654        } && test -s conftest$ac_exeext &&
12655        $as_test_x conftest$ac_exeext; then
12656   eval "$as_ac_var=yes"
12657 else
12658   echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12660
12661         eval "$as_ac_var=no"
12662 fi
12663
12664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12665       conftest$ac_exeext conftest.$ac_ext
12666 fi
12667 ac_res=`eval echo '${'$as_ac_var'}'`
12668                { echo "$as_me:$LINENO: result: $ac_res" >&5
12669 echo "${ECHO_T}$ac_res" >&6; }
12670 if test `eval echo '${'$as_ac_var'}'` = yes; then
12671   cat >>confdefs.h <<_ACEOF
12672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12673 _ACEOF
12674
12675 fi
12676 done
12677
12678         CFLAGS="$ac_save_CFLAGS"
12679         CPPFLAGS="$ac_save_CPPFLAGS"
12680                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
12681         then
12682
12683 cat >>confdefs.h <<\_ACEOF
12684 #define HAVE_FREETYPE 1
12685 _ACEOF
12686
12687             wine_cv_msg_freetype=no
12688         else
12689             FREETYPELIBS=""
12690             FREETYPEINCL=""
12691             wine_cv_msg_freetype=yes
12692         fi
12693     fi
12694 fi
12695
12696 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
12697 then
12698   FONTSSUBDIRS="fonts"
12699
12700 fi
12701
12702 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
12703 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
12704 if test "${ac_cv_c_ppdev+set}" = set; then
12705   echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707   cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h.  */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h.  */
12713 #include <linux/ppdev.h>
12714 int
12715 main ()
12716 {
12717 ioctl (1,PPCLAIM,0)
12718   ;
12719   return 0;
12720 }
12721 _ACEOF
12722 rm -f conftest.$ac_objext
12723 if { (ac_try="$ac_compile"
12724 case "(($ac_try" in
12725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726   *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729   (eval "$ac_compile") 2>conftest.er1
12730   ac_status=$?
12731   grep -v '^ *+' conftest.er1 >conftest.err
12732   rm -f conftest.er1
12733   cat conftest.err >&5
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } && {
12736          test -z "$ac_c_werror_flag" ||
12737          test ! -s conftest.err
12738        } && test -s conftest.$ac_objext; then
12739   ac_cv_c_ppdev="yes"
12740 else
12741   echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.$ac_ext >&5
12743
12744         ac_cv_c_ppdev="no"
12745 fi
12746
12747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12748 fi
12749 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
12750 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
12751 if test "$ac_cv_c_ppdev" = "yes"
12752 then
12753
12754 cat >>confdefs.h <<\_ACEOF
12755 #define HAVE_PPDEV 1
12756 _ACEOF
12757
12758 fi
12759
12760 { echo "$as_me:$LINENO: checking for va_copy" >&5
12761 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
12762 if test "${ac_cv_c_va_copy+set}" = set; then
12763   echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765   cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h.  */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h.  */
12771 #include <stdarg.h>
12772 int
12773 main ()
12774 {
12775 va_list ap1, ap2; va_copy(ap1,ap2);
12776   ;
12777   return 0;
12778 }
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (ac_try="$ac_link"
12782 case "(($ac_try" in
12783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784   *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787   (eval "$ac_link") 2>conftest.er1
12788   ac_status=$?
12789   grep -v '^ *+' conftest.er1 >conftest.err
12790   rm -f conftest.er1
12791   cat conftest.err >&5
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); } && {
12794          test -z "$ac_c_werror_flag" ||
12795          test ! -s conftest.err
12796        } && test -s conftest$ac_exeext &&
12797        $as_test_x conftest$ac_exeext; then
12798   ac_cv_c_va_copy="yes"
12799 else
12800   echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12802
12803         ac_cv_c_va_copy="no"
12804 fi
12805
12806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12807       conftest$ac_exeext conftest.$ac_ext
12808
12809 fi
12810 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
12811 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
12812 if test "$ac_cv_c_va_copy" = "yes"
12813 then
12814
12815 cat >>confdefs.h <<\_ACEOF
12816 #define HAVE_VA_COPY 1
12817 _ACEOF
12818
12819 fi
12820 { echo "$as_me:$LINENO: checking for __va_copy" >&5
12821 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
12822 if test "${ac_cv_c___va_copy+set}" = set; then
12823   echo $ECHO_N "(cached) $ECHO_C" >&6
12824 else
12825   cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h.  */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h.  */
12831 #include <stdarg.h>
12832 int
12833 main ()
12834 {
12835 va_list ap1, ap2; __va_copy(ap1,ap2);
12836   ;
12837   return 0;
12838 }
12839 _ACEOF
12840 rm -f conftest.$ac_objext conftest$ac_exeext
12841 if { (ac_try="$ac_link"
12842 case "(($ac_try" in
12843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844   *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847   (eval "$ac_link") 2>conftest.er1
12848   ac_status=$?
12849   grep -v '^ *+' conftest.er1 >conftest.err
12850   rm -f conftest.er1
12851   cat conftest.err >&5
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } && {
12854          test -z "$ac_c_werror_flag" ||
12855          test ! -s conftest.err
12856        } && test -s conftest$ac_exeext &&
12857        $as_test_x conftest$ac_exeext; then
12858   ac_cv_c___va_copy="yes"
12859 else
12860   echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863         ac_cv_c___va_copy="no"
12864 fi
12865
12866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12867       conftest$ac_exeext conftest.$ac_ext
12868
12869 fi
12870 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
12871 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
12872 if test "$ac_cv_c___va_copy" = "yes"
12873 then
12874
12875 cat >>confdefs.h <<\_ACEOF
12876 #define HAVE___VA_COPY 1
12877 _ACEOF
12878
12879 fi
12880
12881 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12882 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
12883 if test "${ac_cv_c_sigsetjmp+set}" = set; then
12884   echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886   cat >conftest.$ac_ext <<_ACEOF
12887 /* confdefs.h.  */
12888 _ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h.  */
12892 #include <setjmp.h>
12893 int
12894 main ()
12895 {
12896 sigjmp_buf buf;
12897     sigsetjmp( buf, 1 );
12898     siglongjmp( buf, 1 );
12899   ;
12900   return 0;
12901 }
12902 _ACEOF
12903 rm -f conftest.$ac_objext conftest$ac_exeext
12904 if { (ac_try="$ac_link"
12905 case "(($ac_try" in
12906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907   *) ac_try_echo=$ac_try;;
12908 esac
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910   (eval "$ac_link") 2>conftest.er1
12911   ac_status=$?
12912   grep -v '^ *+' conftest.er1 >conftest.err
12913   rm -f conftest.er1
12914   cat conftest.err >&5
12915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916   (exit $ac_status); } && {
12917          test -z "$ac_c_werror_flag" ||
12918          test ! -s conftest.err
12919        } && test -s conftest$ac_exeext &&
12920        $as_test_x conftest$ac_exeext; then
12921   ac_cv_c_sigsetjmp="yes"
12922 else
12923   echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926         ac_cv_c_sigsetjmp="no"
12927 fi
12928
12929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12930       conftest$ac_exeext conftest.$ac_ext
12931
12932 fi
12933 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
12934 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
12935 if test "$ac_cv_c_sigsetjmp" = "yes"
12936 then
12937
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_SIGSETJMP 1
12940 _ACEOF
12941
12942 fi
12943
12944 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
12945 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
12946 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
12947   echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949   cat >conftest.$ac_ext <<_ACEOF
12950 /* confdefs.h.  */
12951 _ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h.  */
12955 #define _GNU_SOURCE
12956 #include <pthread.h>
12957
12958 typedef pthread_rwlock_t ac__type_new_;
12959 int
12960 main ()
12961 {
12962 if ((ac__type_new_ *) 0)
12963   return 0;
12964 if (sizeof (ac__type_new_))
12965   return 0;
12966   ;
12967   return 0;
12968 }
12969 _ACEOF
12970 rm -f conftest.$ac_objext
12971 if { (ac_try="$ac_compile"
12972 case "(($ac_try" in
12973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974   *) ac_try_echo=$ac_try;;
12975 esac
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977   (eval "$ac_compile") 2>conftest.er1
12978   ac_status=$?
12979   grep -v '^ *+' conftest.er1 >conftest.err
12980   rm -f conftest.er1
12981   cat conftest.err >&5
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); } && {
12984          test -z "$ac_c_werror_flag" ||
12985          test ! -s conftest.err
12986        } && test -s conftest.$ac_objext; then
12987   ac_cv_type_pthread_rwlock_t=yes
12988 else
12989   echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12991
12992         ac_cv_type_pthread_rwlock_t=no
12993 fi
12994
12995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 fi
12997 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
12998 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
12999 if test $ac_cv_type_pthread_rwlock_t = yes; then
13000
13001 cat >>confdefs.h <<_ACEOF
13002 #define HAVE_PTHREAD_RWLOCK_T 1
13003 _ACEOF
13004
13005
13006 fi
13007 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13008 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
13009 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13010   echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012   cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h.  */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h.  */
13018 #define _GNU_SOURCE
13019 #include <pthread.h>
13020
13021 typedef pthread_rwlockattr_t ac__type_new_;
13022 int
13023 main ()
13024 {
13025 if ((ac__type_new_ *) 0)
13026   return 0;
13027 if (sizeof (ac__type_new_))
13028   return 0;
13029   ;
13030   return 0;
13031 }
13032 _ACEOF
13033 rm -f conftest.$ac_objext
13034 if { (ac_try="$ac_compile"
13035 case "(($ac_try" in
13036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037   *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040   (eval "$ac_compile") 2>conftest.er1
13041   ac_status=$?
13042   grep -v '^ *+' conftest.er1 >conftest.err
13043   rm -f conftest.er1
13044   cat conftest.err >&5
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); } && {
13047          test -z "$ac_c_werror_flag" ||
13048          test ! -s conftest.err
13049        } && test -s conftest.$ac_objext; then
13050   ac_cv_type_pthread_rwlockattr_t=yes
13051 else
13052   echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13054
13055         ac_cv_type_pthread_rwlockattr_t=no
13056 fi
13057
13058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059 fi
13060 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
13061 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
13062 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
13063
13064 cat >>confdefs.h <<_ACEOF
13065 #define HAVE_PTHREAD_RWLOCKATTR_T 1
13066 _ACEOF
13067
13068
13069 fi
13070
13071
13072 ac_wine_check_funcs_save_LIBS="$LIBS"
13073 LIBS="$LIBS $LIBPTHREAD"
13074
13075
13076
13077
13078 for ac_func in \
13079         pthread_attr_get_np \
13080         pthread_getattr_np \
13081         pthread_get_stackaddr_np \
13082         pthread_get_stacksize_np
13083 do
13084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   cat >conftest.$ac_ext <<_ACEOF
13091 /* confdefs.h.  */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h.  */
13096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13098 #define $ac_func innocuous_$ac_func
13099
13100 /* System header to define __stub macros and hopefully few prototypes,
13101     which can conflict with char $ac_func (); below.
13102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13103     <limits.h> exists even on freestanding compilers.  */
13104
13105 #ifdef __STDC__
13106 # include <limits.h>
13107 #else
13108 # include <assert.h>
13109 #endif
13110
13111 #undef $ac_func
13112
13113 /* Override any GCC internal prototype to avoid an error.
13114    Use char because int might match the return type of a GCC
13115    builtin and then its argument prototype would still apply.  */
13116 #ifdef __cplusplus
13117 extern "C"
13118 #endif
13119 char $ac_func ();
13120 /* The GNU C library defines this for functions which it implements
13121     to always fail with ENOSYS.  Some functions are actually named
13122     something starting with __ and the normal name is an alias.  */
13123 #if defined __stub_$ac_func || defined __stub___$ac_func
13124 choke me
13125 #endif
13126
13127 int
13128 main ()
13129 {
13130 return $ac_func ();
13131   ;
13132   return 0;
13133 }
13134 _ACEOF
13135 rm -f conftest.$ac_objext conftest$ac_exeext
13136 if { (ac_try="$ac_link"
13137 case "(($ac_try" in
13138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139   *) ac_try_echo=$ac_try;;
13140 esac
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142   (eval "$ac_link") 2>conftest.er1
13143   ac_status=$?
13144   grep -v '^ *+' conftest.er1 >conftest.err
13145   rm -f conftest.er1
13146   cat conftest.err >&5
13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); } && {
13149          test -z "$ac_c_werror_flag" ||
13150          test ! -s conftest.err
13151        } && test -s conftest$ac_exeext &&
13152        $as_test_x conftest$ac_exeext; then
13153   eval "$as_ac_var=yes"
13154 else
13155   echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13157
13158         eval "$as_ac_var=no"
13159 fi
13160
13161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13162       conftest$ac_exeext conftest.$ac_ext
13163 fi
13164 ac_res=`eval echo '${'$as_ac_var'}'`
13165                { echo "$as_me:$LINENO: result: $ac_res" >&5
13166 echo "${ECHO_T}$ac_res" >&6; }
13167 if test `eval echo '${'$as_ac_var'}'` = yes; then
13168   cat >>confdefs.h <<_ACEOF
13169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13170 _ACEOF
13171
13172 fi
13173 done
13174
13175 LIBS="$ac_wine_check_funcs_save_LIBS"
13176
13177 # Extract the first word of "esd-config", so it can be a program name with args.
13178 set dummy esd-config; ac_word=$2
13179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13181 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
13182   echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184   case $ESDCONFIG in
13185   [\\/]* | ?:[\\/]*)
13186   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
13187   ;;
13188   *)
13189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13191 do
13192   IFS=$as_save_IFS
13193   test -z "$as_dir" && as_dir=.
13194   for ac_exec_ext in '' $ac_executable_extensions; do
13195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13196     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
13197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13198     break 2
13199   fi
13200 done
13201 done
13202 IFS=$as_save_IFS
13203
13204   ;;
13205 esac
13206 fi
13207 ESDCONFIG=$ac_cv_path_ESDCONFIG
13208 if test -n "$ESDCONFIG"; then
13209   { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
13210 echo "${ECHO_T}$ESDCONFIG" >&6; }
13211 else
13212   { echo "$as_me:$LINENO: result: no" >&5
13213 echo "${ECHO_T}no" >&6; }
13214 fi
13215
13216
13217 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
13218 then
13219     ESD_CFLAGS=""
13220     for i in `$ESDCONFIG --cflags`
13221     do
13222       case "$i" in
13223         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
13224       esac
13225     done
13226     ESD_LIBS=`$ESDCONFIG --libs`
13227     save_CFLAGS="$CFLAGS"
13228     CFLAGS="$CFLAGS $ESD_CFLAGS"
13229     { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
13230 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
13231 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
13232   echo $ECHO_N "(cached) $ECHO_C" >&6
13233 else
13234   ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-lesd  $LIBS"
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h.  */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h.  */
13242
13243 /* Override any GCC internal prototype to avoid an error.
13244    Use char because int might match the return type of a GCC
13245    builtin and then its argument prototype would still apply.  */
13246 #ifdef __cplusplus
13247 extern "C"
13248 #endif
13249 char esd_open_sound ();
13250 int
13251 main ()
13252 {
13253 return esd_open_sound ();
13254   ;
13255   return 0;
13256 }
13257 _ACEOF
13258 rm -f conftest.$ac_objext conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262   *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265   (eval "$ac_link") 2>conftest.er1
13266   ac_status=$?
13267   grep -v '^ *+' conftest.er1 >conftest.err
13268   rm -f conftest.er1
13269   cat conftest.err >&5
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); } && {
13272          test -z "$ac_c_werror_flag" ||
13273          test ! -s conftest.err
13274        } && test -s conftest$ac_exeext &&
13275        $as_test_x conftest$ac_exeext; then
13276   ac_cv_lib_esd_esd_open_sound=yes
13277 else
13278   echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13280
13281         ac_cv_lib_esd_esd_open_sound=no
13282 fi
13283
13284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13285       conftest$ac_exeext conftest.$ac_ext
13286 LIBS=$ac_check_lib_save_LIBS
13287 fi
13288 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
13289 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
13290 if test $ac_cv_lib_esd_esd_open_sound = yes; then
13291   ESDLIBS=$ESD_LIBS
13292
13293          ESDINCL=$ESD_CFLAGS
13294
13295
13296 cat >>confdefs.h <<\_ACEOF
13297 #define HAVE_ESD 1
13298 _ACEOF
13299
13300 fi
13301
13302     CFLAGS="$save_CFLAGS"
13303 fi
13304
13305 ALSALIBS=""
13306
13307 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
13308 then
13309     { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
13310 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
13311 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
13312   echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314   ac_check_lib_save_LIBS=$LIBS
13315 LIBS="-lasound  $LIBS"
13316 cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h.  */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h.  */
13322
13323 /* Override any GCC internal prototype to avoid an error.
13324    Use char because int might match the return type of a GCC
13325    builtin and then its argument prototype would still apply.  */
13326 #ifdef __cplusplus
13327 extern "C"
13328 #endif
13329 char snd_pcm_hw_params_get_access ();
13330 int
13331 main ()
13332 {
13333 return snd_pcm_hw_params_get_access ();
13334   ;
13335   return 0;
13336 }
13337 _ACEOF
13338 rm -f conftest.$ac_objext conftest$ac_exeext
13339 if { (ac_try="$ac_link"
13340 case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345   (eval "$ac_link") 2>conftest.er1
13346   ac_status=$?
13347   grep -v '^ *+' conftest.er1 >conftest.err
13348   rm -f conftest.er1
13349   cat conftest.err >&5
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); } && {
13352          test -z "$ac_c_werror_flag" ||
13353          test ! -s conftest.err
13354        } && test -s conftest$ac_exeext &&
13355        $as_test_x conftest$ac_exeext; then
13356   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
13357 else
13358   echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13360
13361         ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
13362 fi
13363
13364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13365       conftest$ac_exeext conftest.$ac_ext
13366 LIBS=$ac_check_lib_save_LIBS
13367 fi
13368 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
13369 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
13370 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
13371   cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h.  */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h.  */
13377 #ifdef HAVE_ALSA_ASOUNDLIB_H
13378 #include <alsa/asoundlib.h>
13379 #elif defined(HAVE_SYS_ASOUNDLIB_H)
13380 #include <sys/asoundlib.h>
13381 #endif
13382 int
13383 main ()
13384 {
13385 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
13386   ;
13387   return 0;
13388 }
13389 _ACEOF
13390 rm -f conftest.$ac_objext
13391 if { (ac_try="$ac_compile"
13392 case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_compile") 2>conftest.er1
13398   ac_status=$?
13399   grep -v '^ *+' conftest.er1 >conftest.err
13400   rm -f conftest.er1
13401   cat conftest.err >&5
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); } && {
13404          test -z "$ac_c_werror_flag" ||
13405          test ! -s conftest.err
13406        } && test -s conftest.$ac_objext; then
13407
13408 cat >>confdefs.h <<\_ACEOF
13409 #define HAVE_ALSA 1
13410 _ACEOF
13411
13412                          ALSALIBS="-lasound"
13413 else
13414   echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13416
13417
13418 fi
13419
13420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13421 fi
13422
13423 fi
13424
13425
13426 AUDIOIOLIBS=""
13427
13428 if test "$ac_cv_header_libaudioio_h" = "yes"
13429 then
13430     { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
13431 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
13432 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
13433   echo $ECHO_N "(cached) $ECHO_C" >&6
13434 else
13435   ac_check_lib_save_LIBS=$LIBS
13436 LIBS="-laudioio  $LIBS"
13437 cat >conftest.$ac_ext <<_ACEOF
13438 /* confdefs.h.  */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h.  */
13443
13444 /* Override any GCC internal prototype to avoid an error.
13445    Use char because int might match the return type of a GCC
13446    builtin and then its argument prototype would still apply.  */
13447 #ifdef __cplusplus
13448 extern "C"
13449 #endif
13450 char AudioIOGetVersion ();
13451 int
13452 main ()
13453 {
13454 return AudioIOGetVersion ();
13455   ;
13456   return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (ac_try="$ac_link"
13461 case "(($ac_try" in
13462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463   *) ac_try_echo=$ac_try;;
13464 esac
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466   (eval "$ac_link") 2>conftest.er1
13467   ac_status=$?
13468   grep -v '^ *+' conftest.er1 >conftest.err
13469   rm -f conftest.er1
13470   cat conftest.err >&5
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } && {
13473          test -z "$ac_c_werror_flag" ||
13474          test ! -s conftest.err
13475        } && test -s conftest$ac_exeext &&
13476        $as_test_x conftest$ac_exeext; then
13477   ac_cv_lib_audioio_AudioIOGetVersion=yes
13478 else
13479   echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482         ac_cv_lib_audioio_AudioIOGetVersion=no
13483 fi
13484
13485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13486       conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13488 fi
13489 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
13490 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
13491 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
13492   AUDIOIOLIBS="-laudioio"
13493
13494 cat >>confdefs.h <<\_ACEOF
13495 #define HAVE_LIBAUDIOIO 1
13496 _ACEOF
13497
13498 fi
13499
13500 fi
13501
13502
13503 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
13504 then
13505     { echo "$as_me:$LINENO: checking for -lcapi20" >&5
13506 echo $ECHO_N "checking for -lcapi20... $ECHO_C" >&6; }
13507 if test "${ac_cv_lib_soname_capi20+set}" = set; then
13508   echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510   ac_check_soname_save_LIBS=$LIBS
13511 LIBS="-lcapi20  $LIBS"
13512   cat >conftest.$ac_ext <<_ACEOF
13513 /* confdefs.h.  */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h.  */
13518
13519 /* Override any GCC internal prototype to avoid an error.
13520    Use char because int might match the return type of a GCC
13521    builtin and then its argument prototype would still apply.  */
13522 #ifdef __cplusplus
13523 extern "C"
13524 #endif
13525 char capi20_register ();
13526 int
13527 main ()
13528 {
13529 return capi20_register ();
13530   ;
13531   return 0;
13532 }
13533 _ACEOF
13534 rm -f conftest.$ac_objext conftest$ac_exeext
13535 if { (ac_try="$ac_link"
13536 case "(($ac_try" in
13537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13538   *) ac_try_echo=$ac_try;;
13539 esac
13540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13541   (eval "$ac_link") 2>conftest.er1
13542   ac_status=$?
13543   grep -v '^ *+' conftest.er1 >conftest.err
13544   rm -f conftest.er1
13545   cat conftest.err >&5
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); } && {
13548          test -z "$ac_c_werror_flag" ||
13549          test ! -s conftest.err
13550        } && test -s conftest$ac_exeext &&
13551        $as_test_x conftest$ac_exeext; then
13552   case "$LIBEXT" in
13553     dll) ;;
13554     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'` ;;
13555     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
13556   esac
13557 else
13558   echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13560
13561
13562 fi
13563
13564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13565       conftest$ac_exeext conftest.$ac_ext
13566   LIBS=$ac_check_soname_save_LIBS
13567 fi
13568 if test "x$ac_cv_lib_soname_capi20" = "x"; then
13569   { echo "$as_me:$LINENO: result: not found" >&5
13570 echo "${ECHO_T}not found" >&6; }
13571
13572 else
13573   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
13574 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
13575
13576 cat >>confdefs.h <<_ACEOF
13577 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
13578 _ACEOF
13579
13580
13581 fi
13582
13583 fi
13584
13585 if test "$ac_cv_header_cups_cups_h" = "yes"
13586 then
13587     { echo "$as_me:$LINENO: checking for -lcups" >&5
13588 echo $ECHO_N "checking for -lcups... $ECHO_C" >&6; }
13589 if test "${ac_cv_lib_soname_cups+set}" = set; then
13590   echo $ECHO_N "(cached) $ECHO_C" >&6
13591 else
13592   ac_check_soname_save_LIBS=$LIBS
13593 LIBS="-lcups  $LIBS"
13594   cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h.  */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h.  */
13600
13601 /* Override any GCC internal prototype to avoid an error.
13602    Use char because int might match the return type of a GCC
13603    builtin and then its argument prototype would still apply.  */
13604 #ifdef __cplusplus
13605 extern "C"
13606 #endif
13607 char cupsGetDefault ();
13608 int
13609 main ()
13610 {
13611 return cupsGetDefault ();
13612   ;
13613   return 0;
13614 }
13615 _ACEOF
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (ac_try="$ac_link"
13618 case "(($ac_try" in
13619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620   *) ac_try_echo=$ac_try;;
13621 esac
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623   (eval "$ac_link") 2>conftest.er1
13624   ac_status=$?
13625   grep -v '^ *+' conftest.er1 >conftest.err
13626   rm -f conftest.er1
13627   cat conftest.err >&5
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); } && {
13630          test -z "$ac_c_werror_flag" ||
13631          test ! -s conftest.err
13632        } && test -s conftest$ac_exeext &&
13633        $as_test_x conftest$ac_exeext; then
13634   case "$LIBEXT" in
13635     dll) ;;
13636     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'` ;;
13637     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
13638   esac
13639 else
13640   echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643
13644 fi
13645
13646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13647       conftest$ac_exeext conftest.$ac_ext
13648   LIBS=$ac_check_soname_save_LIBS
13649 fi
13650 if test "x$ac_cv_lib_soname_cups" = "x"; then
13651   { echo "$as_me:$LINENO: result: not found" >&5
13652 echo "${ECHO_T}not found" >&6; }
13653
13654 else
13655   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
13656 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
13657
13658 cat >>confdefs.h <<_ACEOF
13659 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
13660 _ACEOF
13661
13662
13663 fi
13664
13665 fi
13666
13667 if test "$ac_cv_header_jack_jack_h" = "yes"
13668 then
13669     { echo "$as_me:$LINENO: checking for -ljack" >&5
13670 echo $ECHO_N "checking for -ljack... $ECHO_C" >&6; }
13671 if test "${ac_cv_lib_soname_jack+set}" = set; then
13672   echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674   ac_check_soname_save_LIBS=$LIBS
13675 LIBS="-ljack  $LIBS"
13676   cat >conftest.$ac_ext <<_ACEOF
13677 /* confdefs.h.  */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h.  */
13682
13683 /* Override any GCC internal prototype to avoid an error.
13684    Use char because int might match the return type of a GCC
13685    builtin and then its argument prototype would still apply.  */
13686 #ifdef __cplusplus
13687 extern "C"
13688 #endif
13689 char jack_client_new ();
13690 int
13691 main ()
13692 {
13693 return jack_client_new ();
13694   ;
13695   return 0;
13696 }
13697 _ACEOF
13698 rm -f conftest.$ac_objext conftest$ac_exeext
13699 if { (ac_try="$ac_link"
13700 case "(($ac_try" in
13701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702   *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705   (eval "$ac_link") 2>conftest.er1
13706   ac_status=$?
13707   grep -v '^ *+' conftest.er1 >conftest.err
13708   rm -f conftest.er1
13709   cat conftest.err >&5
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); } && {
13712          test -z "$ac_c_werror_flag" ||
13713          test ! -s conftest.err
13714        } && test -s conftest$ac_exeext &&
13715        $as_test_x conftest$ac_exeext; then
13716   case "$LIBEXT" in
13717     dll) ;;
13718     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'` ;;
13719     *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack\\.$LIBEXT" | sed -e "s/^.*\(libjack\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
13720   esac
13721 else
13722   echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13724
13725
13726 fi
13727
13728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13729       conftest$ac_exeext conftest.$ac_ext
13730   LIBS=$ac_check_soname_save_LIBS
13731 fi
13732 if test "x$ac_cv_lib_soname_jack" = "x"; then
13733   { echo "$as_me:$LINENO: result: not found" >&5
13734 echo "${ECHO_T}not found" >&6; }
13735
13736 else
13737   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
13738 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
13739
13740 cat >>confdefs.h <<_ACEOF
13741 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
13742 _ACEOF
13743
13744
13745 fi
13746
13747 fi
13748
13749 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
13750 then
13751     { echo "$as_me:$LINENO: checking for -lfontconfig" >&5
13752 echo $ECHO_N "checking for -lfontconfig... $ECHO_C" >&6; }
13753 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
13754   echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756   ac_check_soname_save_LIBS=$LIBS
13757 LIBS="-lfontconfig  $LIBS"
13758   cat >conftest.$ac_ext <<_ACEOF
13759 /* confdefs.h.  */
13760 _ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h.  */
13764
13765 /* Override any GCC internal prototype to avoid an error.
13766    Use char because int might match the return type of a GCC
13767    builtin and then its argument prototype would still apply.  */
13768 #ifdef __cplusplus
13769 extern "C"
13770 #endif
13771 char FcInit ();
13772 int
13773 main ()
13774 {
13775 return FcInit ();
13776   ;
13777   return 0;
13778 }
13779 _ACEOF
13780 rm -f conftest.$ac_objext conftest$ac_exeext
13781 if { (ac_try="$ac_link"
13782 case "(($ac_try" in
13783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784   *) ac_try_echo=$ac_try;;
13785 esac
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787   (eval "$ac_link") 2>conftest.er1
13788   ac_status=$?
13789   grep -v '^ *+' conftest.er1 >conftest.err
13790   rm -f conftest.er1
13791   cat conftest.err >&5
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); } && {
13794          test -z "$ac_c_werror_flag" ||
13795          test ! -s conftest.err
13796        } && test -s conftest$ac_exeext &&
13797        $as_test_x conftest$ac_exeext; then
13798   case "$LIBEXT" in
13799     dll) ;;
13800     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'` ;;
13801     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
13802   esac
13803 else
13804   echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13806
13807
13808 fi
13809
13810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13811       conftest$ac_exeext conftest.$ac_ext
13812   LIBS=$ac_check_soname_save_LIBS
13813 fi
13814 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
13815   { echo "$as_me:$LINENO: result: not found" >&5
13816 echo "${ECHO_T}not found" >&6; }
13817
13818 else
13819   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
13820 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
13821
13822 cat >>confdefs.h <<_ACEOF
13823 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
13824 _ACEOF
13825
13826
13827 fi
13828
13829 fi
13830
13831 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
13832 then
13833     { echo "$as_me:$LINENO: checking for -lssl" >&5
13834 echo $ECHO_N "checking for -lssl... $ECHO_C" >&6; }
13835 if test "${ac_cv_lib_soname_ssl+set}" = set; then
13836   echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838   ac_check_soname_save_LIBS=$LIBS
13839 LIBS="-lssl  $LIBS"
13840   cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846
13847 /* Override any GCC internal prototype to avoid an error.
13848    Use char because int might match the return type of a GCC
13849    builtin and then its argument prototype would still apply.  */
13850 #ifdef __cplusplus
13851 extern "C"
13852 #endif
13853 char SSL_library_init ();
13854 int
13855 main ()
13856 {
13857 return SSL_library_init ();
13858   ;
13859   return 0;
13860 }
13861 _ACEOF
13862 rm -f conftest.$ac_objext conftest$ac_exeext
13863 if { (ac_try="$ac_link"
13864 case "(($ac_try" in
13865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866   *) ac_try_echo=$ac_try;;
13867 esac
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869   (eval "$ac_link") 2>conftest.er1
13870   ac_status=$?
13871   grep -v '^ *+' conftest.er1 >conftest.err
13872   rm -f conftest.er1
13873   cat conftest.err >&5
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); } && {
13876          test -z "$ac_c_werror_flag" ||
13877          test ! -s conftest.err
13878        } && test -s conftest$ac_exeext &&
13879        $as_test_x conftest$ac_exeext; then
13880   case "$LIBEXT" in
13881     dll) ;;
13882     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'` ;;
13883     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
13884   esac
13885 else
13886   echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13888
13889
13890 fi
13891
13892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13893       conftest$ac_exeext conftest.$ac_ext
13894   LIBS=$ac_check_soname_save_LIBS
13895 fi
13896 if test "x$ac_cv_lib_soname_ssl" = "x"; then
13897   { echo "$as_me:$LINENO: result: not found" >&5
13898 echo "${ECHO_T}not found" >&6; }
13899
13900 else
13901   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
13902 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
13903
13904 cat >>confdefs.h <<_ACEOF
13905 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
13906 _ACEOF
13907
13908
13909 fi
13910
13911     { echo "$as_me:$LINENO: checking for -lcrypto" >&5
13912 echo $ECHO_N "checking for -lcrypto... $ECHO_C" >&6; }
13913 if test "${ac_cv_lib_soname_crypto+set}" = set; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916   ac_check_soname_save_LIBS=$LIBS
13917 LIBS="-lcrypto  $LIBS"
13918   cat >conftest.$ac_ext <<_ACEOF
13919 /* confdefs.h.  */
13920 _ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h.  */
13924
13925 /* Override any GCC internal prototype to avoid an error.
13926    Use char because int might match the return type of a GCC
13927    builtin and then its argument prototype would still apply.  */
13928 #ifdef __cplusplus
13929 extern "C"
13930 #endif
13931 char BIO_new_socket ();
13932 int
13933 main ()
13934 {
13935 return BIO_new_socket ();
13936   ;
13937   return 0;
13938 }
13939 _ACEOF
13940 rm -f conftest.$ac_objext conftest$ac_exeext
13941 if { (ac_try="$ac_link"
13942 case "(($ac_try" in
13943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944   *) ac_try_echo=$ac_try;;
13945 esac
13946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947   (eval "$ac_link") 2>conftest.er1
13948   ac_status=$?
13949   grep -v '^ *+' conftest.er1 >conftest.err
13950   rm -f conftest.er1
13951   cat conftest.err >&5
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); } && {
13954          test -z "$ac_c_werror_flag" ||
13955          test ! -s conftest.err
13956        } && test -s conftest$ac_exeext &&
13957        $as_test_x conftest$ac_exeext; then
13958   case "$LIBEXT" in
13959     dll) ;;
13960     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'` ;;
13961     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
13962   esac
13963 else
13964   echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967
13968 fi
13969
13970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13971       conftest$ac_exeext conftest.$ac_ext
13972   LIBS=$ac_check_soname_save_LIBS
13973 fi
13974 if test "x$ac_cv_lib_soname_crypto" = "x"; then
13975   { echo "$as_me:$LINENO: result: not found" >&5
13976 echo "${ECHO_T}not found" >&6; }
13977
13978 else
13979   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
13980 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
13981
13982 cat >>confdefs.h <<_ACEOF
13983 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
13984 _ACEOF
13985
13986
13987 fi
13988
13989 fi
13990
13991 if test "$ac_cv_header_jpeglib_h" = "yes"
13992 then
13993     { echo "$as_me:$LINENO: checking for -ljpeg" >&5
13994 echo $ECHO_N "checking for -ljpeg... $ECHO_C" >&6; }
13995 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
13996   echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998   ac_check_soname_save_LIBS=$LIBS
13999 LIBS="-ljpeg  $LIBS"
14000   cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006
14007 /* Override any GCC internal prototype to avoid an error.
14008    Use char because int might match the return type of a GCC
14009    builtin and then its argument prototype would still apply.  */
14010 #ifdef __cplusplus
14011 extern "C"
14012 #endif
14013 char jpeg_start_decompress ();
14014 int
14015 main ()
14016 {
14017 return jpeg_start_decompress ();
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (ac_try="$ac_link"
14024 case "(($ac_try" in
14025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026   *) ac_try_echo=$ac_try;;
14027 esac
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029   (eval "$ac_link") 2>conftest.er1
14030   ac_status=$?
14031   grep -v '^ *+' conftest.er1 >conftest.err
14032   rm -f conftest.er1
14033   cat conftest.err >&5
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); } && {
14036          test -z "$ac_c_werror_flag" ||
14037          test ! -s conftest.err
14038        } && test -s conftest$ac_exeext &&
14039        $as_test_x conftest$ac_exeext; then
14040   case "$LIBEXT" in
14041     dll) ;;
14042     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'` ;;
14043     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
14044   esac
14045 else
14046   echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049
14050 fi
14051
14052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14053       conftest$ac_exeext conftest.$ac_ext
14054   LIBS=$ac_check_soname_save_LIBS
14055 fi
14056 if test "x$ac_cv_lib_soname_jpeg" = "x"; then
14057   { echo "$as_me:$LINENO: result: not found" >&5
14058 echo "${ECHO_T}not found" >&6; }
14059
14060 else
14061   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
14062 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
14063
14064 cat >>confdefs.h <<_ACEOF
14065 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
14066 _ACEOF
14067
14068
14069 fi
14070
14071 fi
14072
14073
14074 EXTRACFLAGS=""
14075
14076 if test "x${GCC}" = "xyes"
14077 then
14078   EXTRACFLAGS="-Wall -pipe"
14079
14080     { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14081 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14082 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14083   echo $ECHO_N "(cached) $ECHO_C" >&6
14084 else
14085   if test "$cross_compiling" = yes; then
14086   ac_cv_c_gcc_strength_bug="yes"
14087 else
14088   cat >conftest.$ac_ext <<_ACEOF
14089 /* confdefs.h.  */
14090 _ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h.  */
14094 int L[4] = {0,1,2,3};
14095 int
14096 main ()
14097 {
14098 static int Array[3];
14099   unsigned int B = 3;
14100   int i;
14101   for(i=0; i<B; i++) Array[i] = i - 3;
14102   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14103   L[i] = 4;
14104   exit( Array[1] != -2 || L[2] != 3)
14105   ;
14106   return 0;
14107 }
14108 _ACEOF
14109 rm -f conftest$ac_exeext
14110 if { (ac_try="$ac_link"
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_link") 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14120   { (case "(($ac_try" in
14121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14122   *) ac_try_echo=$ac_try;;
14123 esac
14124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14125   (eval "$ac_try") 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; }; then
14129   ac_cv_c_gcc_strength_bug="no"
14130 else
14131   echo "$as_me: program exited with status $ac_status" >&5
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14134
14135 ( exit $ac_status )
14136 ac_cv_c_gcc_strength_bug="yes"
14137 fi
14138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14139 fi
14140
14141
14142 fi
14143 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14144 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
14145   if test "$ac_cv_c_gcc_strength_bug" = "yes"
14146   then
14147     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
14148   fi
14149
14150
14151   { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
14152 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
14153 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
14154   echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156   ac_wine_try_cflags_saved=$CFLAGS
14157 CFLAGS="$CFLAGS -fshort-wchar"
14158 cat >conftest.$ac_ext <<_ACEOF
14159 /* confdefs.h.  */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h.  */
14164
14165 int
14166 main ()
14167 {
14168
14169   ;
14170   return 0;
14171 }
14172 _ACEOF
14173 rm -f conftest.$ac_objext conftest$ac_exeext
14174 if { (ac_try="$ac_link"
14175 case "(($ac_try" in
14176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177   *) ac_try_echo=$ac_try;;
14178 esac
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180   (eval "$ac_link") 2>conftest.er1
14181   ac_status=$?
14182   grep -v '^ *+' conftest.er1 >conftest.err
14183   rm -f conftest.er1
14184   cat conftest.err >&5
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); } && {
14187          test -z "$ac_c_werror_flag" ||
14188          test ! -s conftest.err
14189        } && test -s conftest$ac_exeext &&
14190        $as_test_x conftest$ac_exeext; then
14191   ac_cv_cflags__fshort_wchar=yes
14192 else
14193   echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196         ac_cv_cflags__fshort_wchar=no
14197 fi
14198
14199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14200       conftest$ac_exeext conftest.$ac_ext
14201 CFLAGS=$ac_wine_try_cflags_saved
14202 fi
14203 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
14204 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
14205 if test $ac_cv_cflags__fshort_wchar = yes; then
14206
14207 cat >>confdefs.h <<\_ACEOF
14208 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
14209 _ACEOF
14210
14211 fi
14212
14213   { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
14214 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
14215 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
14216   echo $ECHO_N "(cached) $ECHO_C" >&6
14217 else
14218   ac_wine_try_cflags_saved=$CFLAGS
14219 CFLAGS="$CFLAGS -fno-strict-aliasing"
14220 cat >conftest.$ac_ext <<_ACEOF
14221 /* confdefs.h.  */
14222 _ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h.  */
14226
14227 int
14228 main ()
14229 {
14230
14231   ;
14232   return 0;
14233 }
14234 _ACEOF
14235 rm -f conftest.$ac_objext conftest$ac_exeext
14236 if { (ac_try="$ac_link"
14237 case "(($ac_try" in
14238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239   *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242   (eval "$ac_link") 2>conftest.er1
14243   ac_status=$?
14244   grep -v '^ *+' conftest.er1 >conftest.err
14245   rm -f conftest.er1
14246   cat conftest.err >&5
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); } && {
14249          test -z "$ac_c_werror_flag" ||
14250          test ! -s conftest.err
14251        } && test -s conftest$ac_exeext &&
14252        $as_test_x conftest$ac_exeext; then
14253   ac_cv_cflags__fno_strict_aliasing=yes
14254 else
14255   echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14257
14258         ac_cv_cflags__fno_strict_aliasing=no
14259 fi
14260
14261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14262       conftest$ac_exeext conftest.$ac_ext
14263 CFLAGS=$ac_wine_try_cflags_saved
14264 fi
14265 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
14266 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
14267 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
14268   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
14269 fi
14270
14271   { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
14272 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
14273 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276   ac_wine_try_cflags_saved=$CFLAGS
14277 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14278 cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h.  */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h.  */
14284
14285 int
14286 main ()
14287 {
14288
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 rm -f conftest.$ac_objext conftest$ac_exeext
14294 if { (ac_try="$ac_link"
14295 case "(($ac_try" in
14296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297   *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300   (eval "$ac_link") 2>conftest.er1
14301   ac_status=$?
14302   grep -v '^ *+' conftest.er1 >conftest.err
14303   rm -f conftest.er1
14304   cat conftest.err >&5
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); } && {
14307          test -z "$ac_c_werror_flag" ||
14308          test ! -s conftest.err
14309        } && test -s conftest$ac_exeext &&
14310        $as_test_x conftest$ac_exeext; then
14311   ac_cv_cflags__Wdeclaration_after_statement=yes
14312 else
14313   echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316         ac_cv_cflags__Wdeclaration_after_statement=no
14317 fi
14318
14319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14320       conftest$ac_exeext conftest.$ac_ext
14321 CFLAGS=$ac_wine_try_cflags_saved
14322 fi
14323 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
14324 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
14325 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
14326   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
14327 fi
14328
14329   { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
14330 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
14331 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
14332   echo $ECHO_N "(cached) $ECHO_C" >&6
14333 else
14334   ac_wine_try_cflags_saved=$CFLAGS
14335 CFLAGS="$CFLAGS -Wwrite-strings"
14336 cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h.  */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h.  */
14342
14343 int
14344 main ()
14345 {
14346
14347   ;
14348   return 0;
14349 }
14350 _ACEOF
14351 rm -f conftest.$ac_objext conftest$ac_exeext
14352 if { (ac_try="$ac_link"
14353 case "(($ac_try" in
14354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355   *) ac_try_echo=$ac_try;;
14356 esac
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358   (eval "$ac_link") 2>conftest.er1
14359   ac_status=$?
14360   grep -v '^ *+' conftest.er1 >conftest.err
14361   rm -f conftest.er1
14362   cat conftest.err >&5
14363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364   (exit $ac_status); } && {
14365          test -z "$ac_c_werror_flag" ||
14366          test ! -s conftest.err
14367        } && test -s conftest$ac_exeext &&
14368        $as_test_x conftest$ac_exeext; then
14369   ac_cv_cflags__Wwrite_strings=yes
14370 else
14371   echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14373
14374         ac_cv_cflags__Wwrite_strings=no
14375 fi
14376
14377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14378       conftest$ac_exeext conftest.$ac_ext
14379 CFLAGS=$ac_wine_try_cflags_saved
14380 fi
14381 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
14382 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
14383 if test $ac_cv_cflags__Wwrite_strings = yes; then
14384   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
14385 fi
14386
14387
14388     saved_CFLAGS="$CFLAGS"
14389   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
14390   { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
14391 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
14392 if test "${ac_cv_c_string_h_warnings+set}" = set; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395   cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h.  */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h.  */
14401 #include <string.h>
14402 int
14403 main ()
14404 {
14405
14406   ;
14407   return 0;
14408 }
14409 _ACEOF
14410 rm -f conftest.$ac_objext
14411 if { (ac_try="$ac_compile"
14412 case "(($ac_try" in
14413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414   *) ac_try_echo=$ac_try;;
14415 esac
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417   (eval "$ac_compile") 2>conftest.er1
14418   ac_status=$?
14419   grep -v '^ *+' conftest.er1 >conftest.err
14420   rm -f conftest.er1
14421   cat conftest.err >&5
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); } && {
14424          test -z "$ac_c_werror_flag" ||
14425          test ! -s conftest.err
14426        } && test -s conftest.$ac_objext; then
14427   ac_cv_c_string_h_warnings=no
14428 else
14429   echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14431
14432         ac_cv_c_string_h_warnings=yes
14433 fi
14434
14435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14436 fi
14437 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
14438 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
14439   CFLAGS="$saved_CFLAGS"
14440   if test "$ac_cv_c_string_h_warnings" = "no"
14441   then
14442     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
14443   fi
14444
14445   BUILTINFLAG=""
14446
14447   saved_CFLAGS="$CFLAGS"
14448   CFLAGS="$CFLAGS -Werror"
14449   { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
14450 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
14451 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
14452   echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454   cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h.  */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h.  */
14460
14461 int
14462 main ()
14463 {
14464 int iswlower(unsigned short);
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest.$ac_objext
14470 if { (ac_try="$ac_compile"
14471 case "(($ac_try" in
14472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473   *) ac_try_echo=$ac_try;;
14474 esac
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476   (eval "$ac_compile") 2>conftest.er1
14477   ac_status=$?
14478   grep -v '^ *+' conftest.er1 >conftest.err
14479   rm -f conftest.er1
14480   cat conftest.err >&5
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); } && {
14483          test -z "$ac_c_werror_flag" ||
14484          test ! -s conftest.err
14485        } && test -s conftest.$ac_objext; then
14486   ac_cv_c_builtin_wchar_ctype=no
14487 else
14488   echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14490
14491         ac_cv_c_builtin_wchar_ctype=yes
14492 fi
14493
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 fi
14496 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
14497 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
14498   CFLAGS="$saved_CFLAGS"
14499   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
14500   then
14501     BUILTINFLAG="-fno-builtin"
14502   fi
14503 fi
14504
14505
14506 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
14507 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
14508 if test "${ac_cv_asm_func_def+set}" = set; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511   cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h.  */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h.  */
14517
14518 int
14519 main ()
14520 {
14521 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14522   ;
14523   return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext conftest$ac_exeext
14527 if { (ac_try="$ac_link"
14528 case "(($ac_try" in
14529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530   *) ac_try_echo=$ac_try;;
14531 esac
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533   (eval "$ac_link") 2>conftest.er1
14534   ac_status=$?
14535   grep -v '^ *+' conftest.er1 >conftest.err
14536   rm -f conftest.er1
14537   cat conftest.err >&5
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); } && {
14540          test -z "$ac_c_werror_flag" ||
14541          test ! -s conftest.err
14542        } && test -s conftest$ac_exeext &&
14543        $as_test_x conftest$ac_exeext; then
14544   ac_cv_asm_func_def=".def"
14545 else
14546   echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549         cat >conftest.$ac_ext <<_ACEOF
14550 /* confdefs.h.  */
14551 _ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h.  */
14555
14556 int
14557 main ()
14558 {
14559 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14560   ;
14561   return 0;
14562 }
14563 _ACEOF
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (ac_try="$ac_link"
14566 case "(($ac_try" in
14567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568   *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571   (eval "$ac_link") 2>conftest.er1
14572   ac_status=$?
14573   grep -v '^ *+' conftest.er1 >conftest.err
14574   rm -f conftest.er1
14575   cat conftest.err >&5
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); } && {
14578          test -z "$ac_c_werror_flag" ||
14579          test ! -s conftest.err
14580        } && test -s conftest$ac_exeext &&
14581        $as_test_x conftest$ac_exeext; then
14582   ac_cv_asm_func_def=".type @function"
14583 else
14584   echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587         cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h.  */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h.  */
14593
14594 int
14595 main ()
14596 {
14597 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14598   ;
14599   return 0;
14600 }
14601 _ACEOF
14602 rm -f conftest.$ac_objext conftest$ac_exeext
14603 if { (ac_try="$ac_link"
14604 case "(($ac_try" in
14605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606   *) ac_try_echo=$ac_try;;
14607 esac
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609   (eval "$ac_link") 2>conftest.er1
14610   ac_status=$?
14611   grep -v '^ *+' conftest.er1 >conftest.err
14612   rm -f conftest.er1
14613   cat conftest.err >&5
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); } && {
14616          test -z "$ac_c_werror_flag" ||
14617          test ! -s conftest.err
14618        } && test -s conftest$ac_exeext &&
14619        $as_test_x conftest$ac_exeext; then
14620   ac_cv_asm_func_def=".type 2"
14621 else
14622   echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625         ac_cv_asm_func_def="unknown"
14626 fi
14627
14628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14629       conftest$ac_exeext conftest.$ac_ext
14630 fi
14631
14632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14633       conftest$ac_exeext conftest.$ac_ext
14634 fi
14635
14636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14637       conftest$ac_exeext conftest.$ac_ext
14638 fi
14639 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
14640 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
14641
14642
14643
14644 case "$ac_cv_asm_func_def" in
14645   ".def")
14646      cat >>confdefs.h <<\_ACEOF
14647 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
14648 _ACEOF
14649  ;;
14650   ".type @function")
14651      cat >>confdefs.h <<\_ACEOF
14652 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
14653 _ACEOF
14654  ;;
14655   ".type 2")
14656      cat >>confdefs.h <<\_ACEOF
14657 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
14658 _ACEOF
14659  ;;
14660   *)
14661      cat >>confdefs.h <<\_ACEOF
14662 #define __ASM_FUNC(name) ""
14663 _ACEOF
14664  ;;
14665 esac
14666
14667
14668 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
14669 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
14670 if test "${ac_cv_c_extern_prefix+set}" = set; then
14671   echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673   cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h.  */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h.  */
14679 extern int ac_test;
14680 int
14681 main ()
14682 {
14683 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14684   ;
14685   return 0;
14686 }
14687 _ACEOF
14688 rm -f conftest.$ac_objext conftest$ac_exeext
14689 if { (ac_try="$ac_link"
14690 case "(($ac_try" in
14691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14692   *) ac_try_echo=$ac_try;;
14693 esac
14694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14695   (eval "$ac_link") 2>conftest.er1
14696   ac_status=$?
14697   grep -v '^ *+' conftest.er1 >conftest.err
14698   rm -f conftest.er1
14699   cat conftest.err >&5
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); } && {
14702          test -z "$ac_c_werror_flag" ||
14703          test ! -s conftest.err
14704        } && test -s conftest$ac_exeext &&
14705        $as_test_x conftest$ac_exeext; then
14706   ac_cv_c_extern_prefix="yes"
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711         ac_cv_c_extern_prefix="no"
14712 fi
14713
14714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14715       conftest$ac_exeext conftest.$ac_ext
14716 fi
14717 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
14718 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
14719
14720
14721
14722 if test "$ac_cv_c_extern_prefix" = "yes"
14723 then
14724   cat >>confdefs.h <<\_ACEOF
14725 #define __ASM_NAME(name) "_" name
14726 _ACEOF
14727
14728 else
14729   cat >>confdefs.h <<\_ACEOF
14730 #define __ASM_NAME(name) name
14731 _ACEOF
14732
14733 fi
14734
14735
14736 LDPATH=""
14737
14738 case $build_os in
14739   cygwin*|mingw32*)
14740     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
14741     ;;
14742   darwin*|macosx*)
14743     ;;
14744   linux*|solaris*)      if test -z "$LDRPATH_LOCAL"
14745     then
14746       LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
14747     fi
14748     ;;
14749   *)
14750     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
14751     ;;
14752 esac
14753
14754 case $host_os in
14755   mingw32*)
14756     CRTLIBS="-lmsvcrt"
14757
14758     SOCKETLIBS="-lws2_32"
14759
14760     ;;
14761 esac
14762
14763 MAIN_BINARY="wine-pthread"
14764   case $host_cpu in
14765   *i[3456789]86*)
14766     case $host_os in
14767       linux* | k*bsd*-gnu)
14768         MAIN_BINARY="wine-glibc"
14769
14770         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
14771  ;;
14772     esac
14773     ;;
14774 esac
14775
14776
14777
14778 cat >>confdefs.h <<_ACEOF
14779 #define SONAME_EXT ".$LIBEXT"
14780 _ACEOF
14781
14782
14783 { echo "$as_me:$LINENO: checking for -lX11" >&5
14784 echo $ECHO_N "checking for -lX11... $ECHO_C" >&6; }
14785 if test "${ac_cv_lib_soname_X11+set}" = set; then
14786   echo $ECHO_N "(cached) $ECHO_C" >&6
14787 else
14788   ac_check_soname_save_LIBS=$LIBS
14789 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14790   cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h.  */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h.  */
14796
14797 /* Override any GCC internal prototype to avoid an error.
14798    Use char because int might match the return type of a GCC
14799    builtin and then its argument prototype would still apply.  */
14800 #ifdef __cplusplus
14801 extern "C"
14802 #endif
14803 char XCreateWindow ();
14804 int
14805 main ()
14806 {
14807 return XCreateWindow ();
14808   ;
14809   return 0;
14810 }
14811 _ACEOF
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (ac_try="$ac_link"
14814 case "(($ac_try" in
14815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816   *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819   (eval "$ac_link") 2>conftest.er1
14820   ac_status=$?
14821   grep -v '^ *+' conftest.er1 >conftest.err
14822   rm -f conftest.er1
14823   cat conftest.err >&5
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); } && {
14826          test -z "$ac_c_werror_flag" ||
14827          test ! -s conftest.err
14828        } && test -s conftest$ac_exeext &&
14829        $as_test_x conftest$ac_exeext; then
14830   case "$LIBEXT" in
14831     dll) ;;
14832     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'` ;;
14833     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
14834   esac
14835 else
14836   echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14838
14839
14840 fi
14841
14842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14843       conftest$ac_exeext conftest.$ac_ext
14844   LIBS=$ac_check_soname_save_LIBS
14845 fi
14846 if test "x$ac_cv_lib_soname_X11" = "x"; then
14847   { echo "$as_me:$LINENO: result: not found" >&5
14848 echo "${ECHO_T}not found" >&6; }
14849
14850 else
14851   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14852 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
14853
14854 cat >>confdefs.h <<_ACEOF
14855 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14856 _ACEOF
14857
14858
14859 fi
14860
14861 { echo "$as_me:$LINENO: checking for -lXext" >&5
14862 echo $ECHO_N "checking for -lXext... $ECHO_C" >&6; }
14863 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14864   echo $ECHO_N "(cached) $ECHO_C" >&6
14865 else
14866   ac_check_soname_save_LIBS=$LIBS
14867 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14868   cat >conftest.$ac_ext <<_ACEOF
14869 /* confdefs.h.  */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h.  */
14874
14875 /* Override any GCC internal prototype to avoid an error.
14876    Use char because int might match the return type of a GCC
14877    builtin and then its argument prototype would still apply.  */
14878 #ifdef __cplusplus
14879 extern "C"
14880 #endif
14881 char XextCreateExtension ();
14882 int
14883 main ()
14884 {
14885 return XextCreateExtension ();
14886   ;
14887   return 0;
14888 }
14889 _ACEOF
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (ac_try="$ac_link"
14892 case "(($ac_try" in
14893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894   *) ac_try_echo=$ac_try;;
14895 esac
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897   (eval "$ac_link") 2>conftest.er1
14898   ac_status=$?
14899   grep -v '^ *+' conftest.er1 >conftest.err
14900   rm -f conftest.er1
14901   cat conftest.err >&5
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); } && {
14904          test -z "$ac_c_werror_flag" ||
14905          test ! -s conftest.err
14906        } && test -s conftest$ac_exeext &&
14907        $as_test_x conftest$ac_exeext; then
14908   case "$LIBEXT" in
14909     dll) ;;
14910     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'` ;;
14911     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
14912   esac
14913 else
14914   echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14916
14917
14918 fi
14919
14920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14921       conftest$ac_exeext conftest.$ac_ext
14922   LIBS=$ac_check_soname_save_LIBS
14923 fi
14924 if test "x$ac_cv_lib_soname_Xext" = "x"; then
14925   { echo "$as_me:$LINENO: result: not found" >&5
14926 echo "${ECHO_T}not found" >&6; }
14927
14928 else
14929   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14930 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
14931
14932 cat >>confdefs.h <<_ACEOF
14933 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14934 _ACEOF
14935
14936
14937 fi
14938
14939 { echo "$as_me:$LINENO: checking for -lXi" >&5
14940 echo $ECHO_N "checking for -lXi... $ECHO_C" >&6; }
14941 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14942   echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944   ac_check_soname_save_LIBS=$LIBS
14945 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14946   cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h.  */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h.  */
14952
14953 /* Override any GCC internal prototype to avoid an error.
14954    Use char because int might match the return type of a GCC
14955    builtin and then its argument prototype would still apply.  */
14956 #ifdef __cplusplus
14957 extern "C"
14958 #endif
14959 char XOpenDevice ();
14960 int
14961 main ()
14962 {
14963 return XOpenDevice ();
14964   ;
14965   return 0;
14966 }
14967 _ACEOF
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (ac_try="$ac_link"
14970 case "(($ac_try" in
14971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972   *) ac_try_echo=$ac_try;;
14973 esac
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975   (eval "$ac_link") 2>conftest.er1
14976   ac_status=$?
14977   grep -v '^ *+' conftest.er1 >conftest.err
14978   rm -f conftest.er1
14979   cat conftest.err >&5
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } && {
14982          test -z "$ac_c_werror_flag" ||
14983          test ! -s conftest.err
14984        } && test -s conftest$ac_exeext &&
14985        $as_test_x conftest$ac_exeext; then
14986   case "$LIBEXT" in
14987     dll) ;;
14988     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'` ;;
14989     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
14990   esac
14991 else
14992   echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14994
14995
14996 fi
14997
14998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14999       conftest$ac_exeext conftest.$ac_ext
15000   LIBS=$ac_check_soname_save_LIBS
15001 fi
15002 if test "x$ac_cv_lib_soname_Xi" = "x"; then
15003   { echo "$as_me:$LINENO: result: not found" >&5
15004 echo "${ECHO_T}not found" >&6; }
15005
15006 else
15007   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
15008 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
15009
15010 cat >>confdefs.h <<_ACEOF
15011 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
15012 _ACEOF
15013
15014
15015 fi
15016
15017 { echo "$as_me:$LINENO: checking for -lXinerama" >&5
15018 echo $ECHO_N "checking for -lXinerama... $ECHO_C" >&6; }
15019 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
15020   echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022   ac_check_soname_save_LIBS=$LIBS
15023 LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15024   cat >conftest.$ac_ext <<_ACEOF
15025 /* confdefs.h.  */
15026 _ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h.  */
15030
15031 /* Override any GCC internal prototype to avoid an error.
15032    Use char because int might match the return type of a GCC
15033    builtin and then its argument prototype would still apply.  */
15034 #ifdef __cplusplus
15035 extern "C"
15036 #endif
15037 char XineramaQueryScreens ();
15038 int
15039 main ()
15040 {
15041 return XineramaQueryScreens ();
15042   ;
15043   return 0;
15044 }
15045 _ACEOF
15046 rm -f conftest.$ac_objext conftest$ac_exeext
15047 if { (ac_try="$ac_link"
15048 case "(($ac_try" in
15049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050   *) ac_try_echo=$ac_try;;
15051 esac
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053   (eval "$ac_link") 2>conftest.er1
15054   ac_status=$?
15055   grep -v '^ *+' conftest.er1 >conftest.err
15056   rm -f conftest.er1
15057   cat conftest.err >&5
15058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059   (exit $ac_status); } && {
15060          test -z "$ac_c_werror_flag" ||
15061          test ! -s conftest.err
15062        } && test -s conftest$ac_exeext &&
15063        $as_test_x conftest$ac_exeext; then
15064   case "$LIBEXT" in
15065     dll) ;;
15066     dylib) ac_cv_lib_soname_Xinerama=`otool -L conftest$ac_exeext | grep "libXinerama\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXinerama\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15067     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
15068   esac
15069 else
15070   echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073
15074 fi
15075
15076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15077       conftest$ac_exeext conftest.$ac_ext
15078   LIBS=$ac_check_soname_save_LIBS
15079 fi
15080 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then
15081   { echo "$as_me:$LINENO: result: not found" >&5
15082 echo "${ECHO_T}not found" >&6; }
15083
15084 else
15085   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
15086 echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
15087
15088 cat >>confdefs.h <<_ACEOF
15089 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
15090 _ACEOF
15091
15092
15093 fi
15094
15095 { echo "$as_me:$LINENO: checking for -lXrender" >&5
15096 echo $ECHO_N "checking for -lXrender... $ECHO_C" >&6; }
15097 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
15098   echo $ECHO_N "(cached) $ECHO_C" >&6
15099 else
15100   ac_check_soname_save_LIBS=$LIBS
15101 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15102   cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h.  */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h.  */
15108
15109 /* Override any GCC internal prototype to avoid an error.
15110    Use char because int might match the return type of a GCC
15111    builtin and then its argument prototype would still apply.  */
15112 #ifdef __cplusplus
15113 extern "C"
15114 #endif
15115 char XRenderQueryExtension ();
15116 int
15117 main ()
15118 {
15119 return XRenderQueryExtension ();
15120   ;
15121   return 0;
15122 }
15123 _ACEOF
15124 rm -f conftest.$ac_objext conftest$ac_exeext
15125 if { (ac_try="$ac_link"
15126 case "(($ac_try" in
15127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128   *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131   (eval "$ac_link") 2>conftest.er1
15132   ac_status=$?
15133   grep -v '^ *+' conftest.er1 >conftest.err
15134   rm -f conftest.er1
15135   cat conftest.err >&5
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); } && {
15138          test -z "$ac_c_werror_flag" ||
15139          test ! -s conftest.err
15140        } && test -s conftest$ac_exeext &&
15141        $as_test_x conftest$ac_exeext; then
15142   case "$LIBEXT" in
15143     dll) ;;
15144     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'` ;;
15145     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
15146   esac
15147 else
15148   echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15150
15151
15152 fi
15153
15154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15155       conftest$ac_exeext conftest.$ac_ext
15156   LIBS=$ac_check_soname_save_LIBS
15157 fi
15158 if test "x$ac_cv_lib_soname_Xrender" = "x"; then
15159   { echo "$as_me:$LINENO: result: not found" >&5
15160 echo "${ECHO_T}not found" >&6; }
15161
15162 else
15163   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
15164 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
15165
15166 cat >>confdefs.h <<_ACEOF
15167 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
15168 _ACEOF
15169
15170
15171 fi
15172
15173 { echo "$as_me:$LINENO: checking for -lXrandr" >&5
15174 echo $ECHO_N "checking for -lXrandr... $ECHO_C" >&6; }
15175 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
15176   echo $ECHO_N "(cached) $ECHO_C" >&6
15177 else
15178   ac_check_soname_save_LIBS=$LIBS
15179 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15180   cat >conftest.$ac_ext <<_ACEOF
15181 /* confdefs.h.  */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h.  */
15186
15187 /* Override any GCC internal prototype to avoid an error.
15188    Use char because int might match the return type of a GCC
15189    builtin and then its argument prototype would still apply.  */
15190 #ifdef __cplusplus
15191 extern "C"
15192 #endif
15193 char XRRQueryExtension ();
15194 int
15195 main ()
15196 {
15197 return XRRQueryExtension ();
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (ac_try="$ac_link"
15204 case "(($ac_try" in
15205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15206   *) ac_try_echo=$ac_try;;
15207 esac
15208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15209   (eval "$ac_link") 2>conftest.er1
15210   ac_status=$?
15211   grep -v '^ *+' conftest.er1 >conftest.err
15212   rm -f conftest.er1
15213   cat conftest.err >&5
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); } && {
15216          test -z "$ac_c_werror_flag" ||
15217          test ! -s conftest.err
15218        } && test -s conftest$ac_exeext &&
15219        $as_test_x conftest$ac_exeext; then
15220   case "$LIBEXT" in
15221     dll) ;;
15222     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'` ;;
15223     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
15224   esac
15225 else
15226   echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15228
15229
15230 fi
15231
15232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15233       conftest$ac_exeext conftest.$ac_ext
15234   LIBS=$ac_check_soname_save_LIBS
15235 fi
15236 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then
15237   { echo "$as_me:$LINENO: result: not found" >&5
15238 echo "${ECHO_T}not found" >&6; }
15239
15240 else
15241   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
15242 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
15243
15244 cat >>confdefs.h <<_ACEOF
15245 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
15246 _ACEOF
15247
15248
15249 fi
15250
15251 { echo "$as_me:$LINENO: checking for -lXcursor" >&5
15252 echo $ECHO_N "checking for -lXcursor... $ECHO_C" >&6; }
15253 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then
15254   echo $ECHO_N "(cached) $ECHO_C" >&6
15255 else
15256   ac_check_soname_save_LIBS=$LIBS
15257 LIBS="-lXcursor $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
15258   cat >conftest.$ac_ext <<_ACEOF
15259 /* confdefs.h.  */
15260 _ACEOF
15261 cat confdefs.h >>conftest.$ac_ext
15262 cat >>conftest.$ac_ext <<_ACEOF
15263 /* end confdefs.h.  */
15264
15265 /* Override any GCC internal prototype to avoid an error.
15266    Use char because int might match the return type of a GCC
15267    builtin and then its argument prototype would still apply.  */
15268 #ifdef __cplusplus
15269 extern "C"
15270 #endif
15271 char XcursorImageLoadCursor ();
15272 int
15273 main ()
15274 {
15275 return XcursorImageLoadCursor ();
15276   ;
15277   return 0;
15278 }
15279 _ACEOF
15280 rm -f conftest.$ac_objext conftest$ac_exeext
15281 if { (ac_try="$ac_link"
15282 case "(($ac_try" in
15283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284   *) ac_try_echo=$ac_try;;
15285 esac
15286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15287   (eval "$ac_link") 2>conftest.er1
15288   ac_status=$?
15289   grep -v '^ *+' conftest.er1 >conftest.err
15290   rm -f conftest.er1
15291   cat conftest.err >&5
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); } && {
15294          test -z "$ac_c_werror_flag" ||
15295          test ! -s conftest.err
15296        } && test -s conftest$ac_exeext &&
15297        $as_test_x conftest$ac_exeext; then
15298   case "$LIBEXT" in
15299     dll) ;;
15300     dylib) ac_cv_lib_soname_Xcursor=`otool -L conftest$ac_exeext | grep "libXcursor\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcursor\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15301     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
15302   esac
15303 else
15304   echo "$as_me: failed program was:" >&5
15305 sed 's/^/| /' conftest.$ac_ext >&5
15306
15307
15308 fi
15309
15310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15311       conftest$ac_exeext conftest.$ac_ext
15312   LIBS=$ac_check_soname_save_LIBS
15313 fi
15314 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then
15315   { echo "$as_me:$LINENO: result: not found" >&5
15316 echo "${ECHO_T}not found" >&6; }
15317
15318 else
15319   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xcursor" >&5
15320 echo "${ECHO_T}$ac_cv_lib_soname_Xcursor" >&6; }
15321
15322 cat >>confdefs.h <<_ACEOF
15323 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
15324 _ACEOF
15325
15326
15327 fi
15328
15329 { echo "$as_me:$LINENO: checking for -lfreetype" >&5
15330 echo $ECHO_N "checking for -lfreetype... $ECHO_C" >&6; }
15331 if test "${ac_cv_lib_soname_freetype+set}" = set; then
15332   echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334   ac_check_soname_save_LIBS=$LIBS
15335 LIBS="-lfreetype $X_LIBS $LIBS"
15336   cat >conftest.$ac_ext <<_ACEOF
15337 /* confdefs.h.  */
15338 _ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h.  */
15342
15343 /* Override any GCC internal prototype to avoid an error.
15344    Use char because int might match the return type of a GCC
15345    builtin and then its argument prototype would still apply.  */
15346 #ifdef __cplusplus
15347 extern "C"
15348 #endif
15349 char FT_Init_FreeType ();
15350 int
15351 main ()
15352 {
15353 return FT_Init_FreeType ();
15354   ;
15355   return 0;
15356 }
15357 _ACEOF
15358 rm -f conftest.$ac_objext conftest$ac_exeext
15359 if { (ac_try="$ac_link"
15360 case "(($ac_try" in
15361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362   *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365   (eval "$ac_link") 2>conftest.er1
15366   ac_status=$?
15367   grep -v '^ *+' conftest.er1 >conftest.err
15368   rm -f conftest.er1
15369   cat conftest.err >&5
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); } && {
15372          test -z "$ac_c_werror_flag" ||
15373          test ! -s conftest.err
15374        } && test -s conftest$ac_exeext &&
15375        $as_test_x conftest$ac_exeext; then
15376   case "$LIBEXT" in
15377     dll) ;;
15378     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'` ;;
15379     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
15380   esac
15381 else
15382   echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15384
15385
15386 fi
15387
15388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15389       conftest$ac_exeext conftest.$ac_ext
15390   LIBS=$ac_check_soname_save_LIBS
15391 fi
15392 if test "x$ac_cv_lib_soname_freetype" = "x"; then
15393   { echo "$as_me:$LINENO: result: not found" >&5
15394 echo "${ECHO_T}not found" >&6; }
15395
15396 else
15397   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15398 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
15399
15400 cat >>confdefs.h <<_ACEOF
15401 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15402 _ACEOF
15403
15404
15405 fi
15406
15407 { echo "$as_me:$LINENO: checking for -lGL" >&5
15408 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
15409 if test "${ac_cv_lib_soname_GL+set}" = set; then
15410   echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412   ac_check_soname_save_LIBS=$LIBS
15413 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15414   cat >conftest.$ac_ext <<_ACEOF
15415 /* confdefs.h.  */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h.  */
15420
15421 /* Override any GCC internal prototype to avoid an error.
15422    Use char because int might match the return type of a GCC
15423    builtin and then its argument prototype would still apply.  */
15424 #ifdef __cplusplus
15425 extern "C"
15426 #endif
15427 char glXQueryExtension ();
15428 int
15429 main ()
15430 {
15431 return glXQueryExtension ();
15432   ;
15433   return 0;
15434 }
15435 _ACEOF
15436 rm -f conftest.$ac_objext conftest$ac_exeext
15437 if { (ac_try="$ac_link"
15438 case "(($ac_try" in
15439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440   *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443   (eval "$ac_link") 2>conftest.er1
15444   ac_status=$?
15445   grep -v '^ *+' conftest.er1 >conftest.err
15446   rm -f conftest.er1
15447   cat conftest.err >&5
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); } && {
15450          test -z "$ac_c_werror_flag" ||
15451          test ! -s conftest.err
15452        } && test -s conftest$ac_exeext &&
15453        $as_test_x conftest$ac_exeext; then
15454   case "$LIBEXT" in
15455     dll) ;;
15456     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'` ;;
15457     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
15458   esac
15459 else
15460   echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463
15464 fi
15465
15466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15467       conftest$ac_exeext conftest.$ac_ext
15468   LIBS=$ac_check_soname_save_LIBS
15469 fi
15470 if test "x$ac_cv_lib_soname_GL" = "x"; then
15471   { echo "$as_me:$LINENO: result: not found" >&5
15472 echo "${ECHO_T}not found" >&6; }
15473
15474 else
15475   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15476 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
15477
15478 cat >>confdefs.h <<_ACEOF
15479 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15480 _ACEOF
15481
15482
15483 fi
15484
15485 { echo "$as_me:$LINENO: checking for -ltxc_dxtn" >&5
15486 echo $ECHO_N "checking for -ltxc_dxtn... $ECHO_C" >&6; }
15487 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15488   echo $ECHO_N "(cached) $ECHO_C" >&6
15489 else
15490   ac_check_soname_save_LIBS=$LIBS
15491 LIBS="-ltxc_dxtn  $LIBS"
15492   cat >conftest.$ac_ext <<_ACEOF
15493 /* confdefs.h.  */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h.  */
15498
15499 /* Override any GCC internal prototype to avoid an error.
15500    Use char because int might match the return type of a GCC
15501    builtin and then its argument prototype would still apply.  */
15502 #ifdef __cplusplus
15503 extern "C"
15504 #endif
15505 char fetch_2d_texel_rgba_dxt1 ();
15506 int
15507 main ()
15508 {
15509 return fetch_2d_texel_rgba_dxt1 ();
15510   ;
15511   return 0;
15512 }
15513 _ACEOF
15514 rm -f conftest.$ac_objext conftest$ac_exeext
15515 if { (ac_try="$ac_link"
15516 case "(($ac_try" in
15517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518   *) ac_try_echo=$ac_try;;
15519 esac
15520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15521   (eval "$ac_link") 2>conftest.er1
15522   ac_status=$?
15523   grep -v '^ *+' conftest.er1 >conftest.err
15524   rm -f conftest.er1
15525   cat conftest.err >&5
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); } && {
15528          test -z "$ac_c_werror_flag" ||
15529          test ! -s conftest.err
15530        } && test -s conftest$ac_exeext &&
15531        $as_test_x conftest$ac_exeext; then
15532   case "$LIBEXT" in
15533     dll) ;;
15534     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'` ;;
15535     *) ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtxc_dxtn\\.$LIBEXT" | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
15536   esac
15537 else
15538   echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15540
15541
15542 fi
15543
15544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15545       conftest$ac_exeext conftest.$ac_ext
15546   LIBS=$ac_check_soname_save_LIBS
15547 fi
15548 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"; then
15549   { echo "$as_me:$LINENO: result: not found" >&5
15550 echo "${ECHO_T}not found" >&6; }
15551
15552 else
15553   { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15554 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
15555
15556 cat >>confdefs.h <<_ACEOF
15557 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15558 _ACEOF
15559
15560
15561 fi
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627 for ac_func in \
15628         _pclose \
15629         _popen \
15630         _snprintf \
15631         _spawnvp \
15632         _stricmp \
15633         _strnicmp \
15634         _vsnprintf \
15635         asctime_r \
15636         chsize \
15637         clone \
15638         dlopen \
15639         epoll_create \
15640         ffs \
15641         finite \
15642         fork \
15643         fpclass \
15644         fstatfs \
15645         fstatvfs \
15646         ftruncate \
15647         futimes \
15648         futimesat \
15649         getdirentries \
15650         getopt_long \
15651         getpagesize \
15652         getpwuid \
15653         gettid \
15654         gettimeofday \
15655         getuid \
15656         inet_pton \
15657         kqueue \
15658         lstat \
15659         memmove \
15660         mmap \
15661         pclose \
15662         poll \
15663         popen \
15664         prctl \
15665         pread \
15666         pwrite \
15667         readlink \
15668         rfork \
15669         sched_yield \
15670         select \
15671         setrlimit \
15672         settimeofday \
15673         sigaltstack \
15674         sigprocmask \
15675         snprintf \
15676         spawnvp \
15677         statfs \
15678         statvfs \
15679         strcasecmp \
15680         strerror \
15681         strncasecmp \
15682         strtold \
15683         tcgetattr \
15684         timegm \
15685         usleep \
15686         vsnprintf \
15687         wait4 \
15688         waitpid \
15689
15690 do
15691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15692 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15695   echo $ECHO_N "(cached) $ECHO_C" >&6
15696 else
15697   cat >conftest.$ac_ext <<_ACEOF
15698 /* confdefs.h.  */
15699 _ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h.  */
15703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15705 #define $ac_func innocuous_$ac_func
15706
15707 /* System header to define __stub macros and hopefully few prototypes,
15708     which can conflict with char $ac_func (); below.
15709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15710     <limits.h> exists even on freestanding compilers.  */
15711
15712 #ifdef __STDC__
15713 # include <limits.h>
15714 #else
15715 # include <assert.h>
15716 #endif
15717
15718 #undef $ac_func
15719
15720 /* Override any GCC internal prototype to avoid an error.
15721    Use char because int might match the return type of a GCC
15722    builtin and then its argument prototype would still apply.  */
15723 #ifdef __cplusplus
15724 extern "C"
15725 #endif
15726 char $ac_func ();
15727 /* The GNU C library defines this for functions which it implements
15728     to always fail with ENOSYS.  Some functions are actually named
15729     something starting with __ and the normal name is an alias.  */
15730 #if defined __stub_$ac_func || defined __stub___$ac_func
15731 choke me
15732 #endif
15733
15734 int
15735 main ()
15736 {
15737 return $ac_func ();
15738   ;
15739   return 0;
15740 }
15741 _ACEOF
15742 rm -f conftest.$ac_objext conftest$ac_exeext
15743 if { (ac_try="$ac_link"
15744 case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749   (eval "$ac_link") 2>conftest.er1
15750   ac_status=$?
15751   grep -v '^ *+' conftest.er1 >conftest.err
15752   rm -f conftest.er1
15753   cat conftest.err >&5
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); } && {
15756          test -z "$ac_c_werror_flag" ||
15757          test ! -s conftest.err
15758        } && test -s conftest$ac_exeext &&
15759        $as_test_x conftest$ac_exeext; then
15760   eval "$as_ac_var=yes"
15761 else
15762   echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15764
15765         eval "$as_ac_var=no"
15766 fi
15767
15768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15769       conftest$ac_exeext conftest.$ac_ext
15770 fi
15771 ac_res=`eval echo '${'$as_ac_var'}'`
15772                { echo "$as_me:$LINENO: result: $ac_res" >&5
15773 echo "${ECHO_T}$ac_res" >&6; }
15774 if test `eval echo '${'$as_ac_var'}'` = yes; then
15775   cat >>confdefs.h <<_ACEOF
15776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15777 _ACEOF
15778
15779 fi
15780 done
15781
15782
15783 if test "$ac_cv_func_dlopen" = no
15784 then
15785     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15786 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15787 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15788   echo $ECHO_N "(cached) $ECHO_C" >&6
15789 else
15790   ac_check_lib_save_LIBS=$LIBS
15791 LIBS="-ldl  $LIBS"
15792 cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h.  */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h.  */
15798
15799 /* Override any GCC internal prototype to avoid an error.
15800    Use char because int might match the return type of a GCC
15801    builtin and then its argument prototype would still apply.  */
15802 #ifdef __cplusplus
15803 extern "C"
15804 #endif
15805 char dlopen ();
15806 int
15807 main ()
15808 {
15809 return dlopen ();
15810   ;
15811   return 0;
15812 }
15813 _ACEOF
15814 rm -f conftest.$ac_objext conftest$ac_exeext
15815 if { (ac_try="$ac_link"
15816 case "(($ac_try" in
15817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818   *) ac_try_echo=$ac_try;;
15819 esac
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821   (eval "$ac_link") 2>conftest.er1
15822   ac_status=$?
15823   grep -v '^ *+' conftest.er1 >conftest.err
15824   rm -f conftest.er1
15825   cat conftest.err >&5
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); } && {
15828          test -z "$ac_c_werror_flag" ||
15829          test ! -s conftest.err
15830        } && test -s conftest$ac_exeext &&
15831        $as_test_x conftest$ac_exeext; then
15832   ac_cv_lib_dl_dlopen=yes
15833 else
15834   echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15836
15837         ac_cv_lib_dl_dlopen=no
15838 fi
15839
15840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15841       conftest$ac_exeext conftest.$ac_ext
15842 LIBS=$ac_check_lib_save_LIBS
15843 fi
15844 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15845 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15846 if test $ac_cv_lib_dl_dlopen = yes; then
15847   cat >>confdefs.h <<\_ACEOF
15848 #define HAVE_DLOPEN 1
15849 _ACEOF
15850  LIBDL="-ldl"
15851
15852 fi
15853
15854 fi
15855 ac_wine_check_funcs_save_LIBS="$LIBS"
15856 LIBS="$LIBS $LIBDL"
15857
15858 for ac_func in dladdr
15859 do
15860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15864   echo $ECHO_N "(cached) $ECHO_C" >&6
15865 else
15866   cat >conftest.$ac_ext <<_ACEOF
15867 /* confdefs.h.  */
15868 _ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h.  */
15872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15874 #define $ac_func innocuous_$ac_func
15875
15876 /* System header to define __stub macros and hopefully few prototypes,
15877     which can conflict with char $ac_func (); below.
15878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15879     <limits.h> exists even on freestanding compilers.  */
15880
15881 #ifdef __STDC__
15882 # include <limits.h>
15883 #else
15884 # include <assert.h>
15885 #endif
15886
15887 #undef $ac_func
15888
15889 /* Override any GCC internal prototype to avoid an error.
15890    Use char because int might match the return type of a GCC
15891    builtin and then its argument prototype would still apply.  */
15892 #ifdef __cplusplus
15893 extern "C"
15894 #endif
15895 char $ac_func ();
15896 /* The GNU C library defines this for functions which it implements
15897     to always fail with ENOSYS.  Some functions are actually named
15898     something starting with __ and the normal name is an alias.  */
15899 #if defined __stub_$ac_func || defined __stub___$ac_func
15900 choke me
15901 #endif
15902
15903 int
15904 main ()
15905 {
15906 return $ac_func ();
15907   ;
15908   return 0;
15909 }
15910 _ACEOF
15911 rm -f conftest.$ac_objext conftest$ac_exeext
15912 if { (ac_try="$ac_link"
15913 case "(($ac_try" in
15914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915   *) ac_try_echo=$ac_try;;
15916 esac
15917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918   (eval "$ac_link") 2>conftest.er1
15919   ac_status=$?
15920   grep -v '^ *+' conftest.er1 >conftest.err
15921   rm -f conftest.er1
15922   cat conftest.err >&5
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); } && {
15925          test -z "$ac_c_werror_flag" ||
15926          test ! -s conftest.err
15927        } && test -s conftest$ac_exeext &&
15928        $as_test_x conftest$ac_exeext; then
15929   eval "$as_ac_var=yes"
15930 else
15931   echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15933
15934         eval "$as_ac_var=no"
15935 fi
15936
15937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15938       conftest$ac_exeext conftest.$ac_ext
15939 fi
15940 ac_res=`eval echo '${'$as_ac_var'}'`
15941                { echo "$as_me:$LINENO: result: $ac_res" >&5
15942 echo "${ECHO_T}$ac_res" >&6; }
15943 if test `eval echo '${'$as_ac_var'}'` = yes; then
15944   cat >>confdefs.h <<_ACEOF
15945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15946 _ACEOF
15947
15948 fi
15949 done
15950
15951 LIBS="$ac_wine_check_funcs_save_LIBS"
15952
15953 if test "$ac_cv_func_poll" = no
15954 then
15955     { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
15956 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
15957 if test "${ac_cv_lib_poll_poll+set}" = set; then
15958   echo $ECHO_N "(cached) $ECHO_C" >&6
15959 else
15960   ac_check_lib_save_LIBS=$LIBS
15961 LIBS="-lpoll  $LIBS"
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h.  */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h.  */
15968
15969 /* Override any GCC internal prototype to avoid an error.
15970    Use char because int might match the return type of a GCC
15971    builtin and then its argument prototype would still apply.  */
15972 #ifdef __cplusplus
15973 extern "C"
15974 #endif
15975 char poll ();
15976 int
15977 main ()
15978 {
15979 return poll ();
15980   ;
15981   return 0;
15982 }
15983 _ACEOF
15984 rm -f conftest.$ac_objext conftest$ac_exeext
15985 if { (ac_try="$ac_link"
15986 case "(($ac_try" in
15987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988   *) ac_try_echo=$ac_try;;
15989 esac
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991   (eval "$ac_link") 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } && {
15998          test -z "$ac_c_werror_flag" ||
15999          test ! -s conftest.err
16000        } && test -s conftest$ac_exeext &&
16001        $as_test_x conftest$ac_exeext; then
16002   ac_cv_lib_poll_poll=yes
16003 else
16004   echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16006
16007         ac_cv_lib_poll_poll=no
16008 fi
16009
16010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16011       conftest$ac_exeext conftest.$ac_ext
16012 LIBS=$ac_check_lib_save_LIBS
16013 fi
16014 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
16015 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
16016 if test $ac_cv_lib_poll_poll = yes; then
16017   cat >>confdefs.h <<\_ACEOF
16018 #define HAVE_POLL 1
16019 _ACEOF
16020  LIBPOLL="-lpoll"
16021
16022 fi
16023
16024 fi
16025
16026 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
16027 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
16028 if test "${ac_cv_search_gethostbyname+set}" = set; then
16029   echo $ECHO_N "(cached) $ECHO_C" >&6
16030 else
16031   ac_func_search_save_LIBS=$LIBS
16032 cat >conftest.$ac_ext <<_ACEOF
16033 /* confdefs.h.  */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h.  */
16038
16039 /* Override any GCC internal prototype to avoid an error.
16040    Use char because int might match the return type of a GCC
16041    builtin and then its argument prototype would still apply.  */
16042 #ifdef __cplusplus
16043 extern "C"
16044 #endif
16045 char gethostbyname ();
16046 int
16047 main ()
16048 {
16049 return gethostbyname ();
16050   ;
16051   return 0;
16052 }
16053 _ACEOF
16054 for ac_lib in '' nsl; do
16055   if test -z "$ac_lib"; then
16056     ac_res="none required"
16057   else
16058     ac_res=-l$ac_lib
16059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16060   fi
16061   rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (ac_try="$ac_link"
16063 case "(($ac_try" in
16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065   *) ac_try_echo=$ac_try;;
16066 esac
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068   (eval "$ac_link") 2>conftest.er1
16069   ac_status=$?
16070   grep -v '^ *+' conftest.er1 >conftest.err
16071   rm -f conftest.er1
16072   cat conftest.err >&5
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); } && {
16075          test -z "$ac_c_werror_flag" ||
16076          test ! -s conftest.err
16077        } && test -s conftest$ac_exeext &&
16078        $as_test_x conftest$ac_exeext; then
16079   ac_cv_search_gethostbyname=$ac_res
16080 else
16081   echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16083
16084
16085 fi
16086
16087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16088       conftest$ac_exeext
16089   if test "${ac_cv_search_gethostbyname+set}" = set; then
16090   break
16091 fi
16092 done
16093 if test "${ac_cv_search_gethostbyname+set}" = set; then
16094   :
16095 else
16096   ac_cv_search_gethostbyname=no
16097 fi
16098 rm conftest.$ac_ext
16099 LIBS=$ac_func_search_save_LIBS
16100 fi
16101 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
16102 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
16103 ac_res=$ac_cv_search_gethostbyname
16104 if test "$ac_res" != no; then
16105   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16106
16107 fi
16108
16109
16110 { echo "$as_me:$LINENO: checking for library containing connect" >&5
16111 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
16112 if test "${ac_cv_search_connect+set}" = set; then
16113   echo $ECHO_N "(cached) $ECHO_C" >&6
16114 else
16115   ac_func_search_save_LIBS=$LIBS
16116 cat >conftest.$ac_ext <<_ACEOF
16117 /* confdefs.h.  */
16118 _ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h.  */
16122
16123 /* Override any GCC internal prototype to avoid an error.
16124    Use char because int might match the return type of a GCC
16125    builtin and then its argument prototype would still apply.  */
16126 #ifdef __cplusplus
16127 extern "C"
16128 #endif
16129 char connect ();
16130 int
16131 main ()
16132 {
16133 return connect ();
16134   ;
16135   return 0;
16136 }
16137 _ACEOF
16138 for ac_lib in '' socket; do
16139   if test -z "$ac_lib"; then
16140     ac_res="none required"
16141   else
16142     ac_res=-l$ac_lib
16143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16144   fi
16145   rm -f conftest.$ac_objext conftest$ac_exeext
16146 if { (ac_try="$ac_link"
16147 case "(($ac_try" in
16148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149   *) ac_try_echo=$ac_try;;
16150 esac
16151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152   (eval "$ac_link") 2>conftest.er1
16153   ac_status=$?
16154   grep -v '^ *+' conftest.er1 >conftest.err
16155   rm -f conftest.er1
16156   cat conftest.err >&5
16157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); } && {
16159          test -z "$ac_c_werror_flag" ||
16160          test ! -s conftest.err
16161        } && test -s conftest$ac_exeext &&
16162        $as_test_x conftest$ac_exeext; then
16163   ac_cv_search_connect=$ac_res
16164 else
16165   echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16167
16168
16169 fi
16170
16171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16172       conftest$ac_exeext
16173   if test "${ac_cv_search_connect+set}" = set; then
16174   break
16175 fi
16176 done
16177 if test "${ac_cv_search_connect+set}" = set; then
16178   :
16179 else
16180   ac_cv_search_connect=no
16181 fi
16182 rm conftest.$ac_ext
16183 LIBS=$ac_func_search_save_LIBS
16184 fi
16185 { echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
16186 echo "${ECHO_T}$ac_cv_search_connect" >&6; }
16187 ac_res=$ac_cv_search_connect
16188 if test "$ac_res" != no; then
16189   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16190
16191 fi
16192
16193
16194 { echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
16195 echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
16196 if test "${ac_cv_search_inet_aton+set}" = set; then
16197   echo $ECHO_N "(cached) $ECHO_C" >&6
16198 else
16199   ac_func_search_save_LIBS=$LIBS
16200 cat >conftest.$ac_ext <<_ACEOF
16201 /* confdefs.h.  */
16202 _ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h.  */
16206
16207 /* Override any GCC internal prototype to avoid an error.
16208    Use char because int might match the return type of a GCC
16209    builtin and then its argument prototype would still apply.  */
16210 #ifdef __cplusplus
16211 extern "C"
16212 #endif
16213 char inet_aton ();
16214 int
16215 main ()
16216 {
16217 return inet_aton ();
16218   ;
16219   return 0;
16220 }
16221 _ACEOF
16222 for ac_lib in '' resolv; do
16223   if test -z "$ac_lib"; then
16224     ac_res="none required"
16225   else
16226     ac_res=-l$ac_lib
16227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16228   fi
16229   rm -f conftest.$ac_objext conftest$ac_exeext
16230 if { (ac_try="$ac_link"
16231 case "(($ac_try" in
16232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233   *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236   (eval "$ac_link") 2>conftest.er1
16237   ac_status=$?
16238   grep -v '^ *+' conftest.er1 >conftest.err
16239   rm -f conftest.er1
16240   cat conftest.err >&5
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); } && {
16243          test -z "$ac_c_werror_flag" ||
16244          test ! -s conftest.err
16245        } && test -s conftest$ac_exeext &&
16246        $as_test_x conftest$ac_exeext; then
16247   ac_cv_search_inet_aton=$ac_res
16248 else
16249   echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16251
16252
16253 fi
16254
16255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16256       conftest$ac_exeext
16257   if test "${ac_cv_search_inet_aton+set}" = set; then
16258   break
16259 fi
16260 done
16261 if test "${ac_cv_search_inet_aton+set}" = set; then
16262   :
16263 else
16264   ac_cv_search_inet_aton=no
16265 fi
16266 rm conftest.$ac_ext
16267 LIBS=$ac_func_search_save_LIBS
16268 fi
16269 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
16270 echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
16271 ac_res=$ac_cv_search_inet_aton
16272 if test "$ac_res" != no; then
16273   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16274
16275 fi
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286 for ac_func in \
16287         getaddrinfo \
16288         getnameinfo \
16289         getnetbyname \
16290         getprotobyname \
16291         getprotobynumber \
16292         getservbyport \
16293         inet_network \
16294         sendmsg \
16295
16296 do
16297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16301   echo $ECHO_N "(cached) $ECHO_C" >&6
16302 else
16303   cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h.  */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h.  */
16309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16311 #define $ac_func innocuous_$ac_func
16312
16313 /* System header to define __stub macros and hopefully few prototypes,
16314     which can conflict with char $ac_func (); below.
16315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16316     <limits.h> exists even on freestanding compilers.  */
16317
16318 #ifdef __STDC__
16319 # include <limits.h>
16320 #else
16321 # include <assert.h>
16322 #endif
16323
16324 #undef $ac_func
16325
16326 /* Override any GCC internal prototype to avoid an error.
16327    Use char because int might match the return type of a GCC
16328    builtin and then its argument prototype would still apply.  */
16329 #ifdef __cplusplus
16330 extern "C"
16331 #endif
16332 char $ac_func ();
16333 /* The GNU C library defines this for functions which it implements
16334     to always fail with ENOSYS.  Some functions are actually named
16335     something starting with __ and the normal name is an alias.  */
16336 #if defined __stub_$ac_func || defined __stub___$ac_func
16337 choke me
16338 #endif
16339
16340 int
16341 main ()
16342 {
16343 return $ac_func ();
16344   ;
16345   return 0;
16346 }
16347 _ACEOF
16348 rm -f conftest.$ac_objext conftest$ac_exeext
16349 if { (ac_try="$ac_link"
16350 case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355   (eval "$ac_link") 2>conftest.er1
16356   ac_status=$?
16357   grep -v '^ *+' conftest.er1 >conftest.err
16358   rm -f conftest.er1
16359   cat conftest.err >&5
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); } && {
16362          test -z "$ac_c_werror_flag" ||
16363          test ! -s conftest.err
16364        } && test -s conftest$ac_exeext &&
16365        $as_test_x conftest$ac_exeext; then
16366   eval "$as_ac_var=yes"
16367 else
16368   echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16370
16371         eval "$as_ac_var=no"
16372 fi
16373
16374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16375       conftest$ac_exeext conftest.$ac_ext
16376 fi
16377 ac_res=`eval echo '${'$as_ac_var'}'`
16378                { echo "$as_me:$LINENO: result: $ac_res" >&5
16379 echo "${ECHO_T}$ac_res" >&6; }
16380 if test `eval echo '${'$as_ac_var'}'` = yes; then
16381   cat >>confdefs.h <<_ACEOF
16382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16383 _ACEOF
16384
16385 fi
16386 done
16387
16388
16389
16390 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16391 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
16392 if test "${ac_cv_c_const+set}" = set; then
16393   echo $ECHO_N "(cached) $ECHO_C" >&6
16394 else
16395   cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h.  */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h.  */
16401
16402 int
16403 main ()
16404 {
16405 /* FIXME: Include the comments suggested by Paul. */
16406 #ifndef __cplusplus
16407   /* Ultrix mips cc rejects this.  */
16408   typedef int charset[2];
16409   const charset cs;
16410   /* SunOS 4.1.1 cc rejects this.  */
16411   char const *const *pcpcc;
16412   char **ppc;
16413   /* NEC SVR4.0.2 mips cc rejects this.  */
16414   struct point {int x, y;};
16415   static struct point const zero = {0,0};
16416   /* AIX XL C 1.02.0.0 rejects this.
16417      It does not let you subtract one const X* pointer from another in
16418      an arm of an if-expression whose if-part is not a constant
16419      expression */
16420   const char *g = "string";
16421   pcpcc = &g + (g ? g-g : 0);
16422   /* HPUX 7.0 cc rejects these. */
16423   ++pcpcc;
16424   ppc = (char**) pcpcc;
16425   pcpcc = (char const *const *) ppc;
16426   { /* SCO 3.2v4 cc rejects this.  */
16427     char *t;
16428     char const *s = 0 ? (char *) 0 : (char const *) 0;
16429
16430     *t++ = 0;
16431     if (s) return 0;
16432   }
16433   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16434     int x[] = {25, 17};
16435     const int *foo = &x[0];
16436     ++foo;
16437   }
16438   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16439     typedef const int *iptr;
16440     iptr p = 0;
16441     ++p;
16442   }
16443   { /* AIX XL C 1.02.0.0 rejects this saying
16444        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16445     struct s { int j; const int *ap[3]; };
16446     struct s *b; b->j = 5;
16447   }
16448   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16449     const int foo = 10;
16450     if (!foo) return 0;
16451   }
16452   return !cs[0] && !zero.x;
16453 #endif
16454
16455   ;
16456   return 0;
16457 }
16458 _ACEOF
16459 rm -f conftest.$ac_objext
16460 if { (ac_try="$ac_compile"
16461 case "(($ac_try" in
16462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463   *) ac_try_echo=$ac_try;;
16464 esac
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466   (eval "$ac_compile") 2>conftest.er1
16467   ac_status=$?
16468   grep -v '^ *+' conftest.er1 >conftest.err
16469   rm -f conftest.er1
16470   cat conftest.err >&5
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); } && {
16473          test -z "$ac_c_werror_flag" ||
16474          test ! -s conftest.err
16475        } && test -s conftest.$ac_objext; then
16476   ac_cv_c_const=yes
16477 else
16478   echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481         ac_cv_c_const=no
16482 fi
16483
16484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16485 fi
16486 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16487 echo "${ECHO_T}$ac_cv_c_const" >&6; }
16488 if test $ac_cv_c_const = no; then
16489
16490 cat >>confdefs.h <<\_ACEOF
16491 #define const
16492 _ACEOF
16493
16494 fi
16495
16496 { echo "$as_me:$LINENO: checking for inline" >&5
16497 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
16498 if test "${ac_cv_c_inline+set}" = set; then
16499   echo $ECHO_N "(cached) $ECHO_C" >&6
16500 else
16501   ac_cv_c_inline=no
16502 for ac_kw in inline __inline__ __inline; do
16503   cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509 #ifndef __cplusplus
16510 typedef int foo_t;
16511 static $ac_kw foo_t static_foo () {return 0; }
16512 $ac_kw foo_t foo () {return 0; }
16513 #endif
16514
16515 _ACEOF
16516 rm -f conftest.$ac_objext
16517 if { (ac_try="$ac_compile"
16518 case "(($ac_try" in
16519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520   *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523   (eval "$ac_compile") 2>conftest.er1
16524   ac_status=$?
16525   grep -v '^ *+' conftest.er1 >conftest.err
16526   rm -f conftest.er1
16527   cat conftest.err >&5
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); } && {
16530          test -z "$ac_c_werror_flag" ||
16531          test ! -s conftest.err
16532        } && test -s conftest.$ac_objext; then
16533   ac_cv_c_inline=$ac_kw
16534 else
16535   echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16537
16538
16539 fi
16540
16541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542   test "$ac_cv_c_inline" != no && break
16543 done
16544
16545 fi
16546 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16547 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
16548
16549
16550 case $ac_cv_c_inline in
16551   inline | yes) ;;
16552   *)
16553     case $ac_cv_c_inline in
16554       no) ac_val=;;
16555       *) ac_val=$ac_cv_c_inline;;
16556     esac
16557     cat >>confdefs.h <<_ACEOF
16558 #ifndef __cplusplus
16559 #define inline $ac_val
16560 #endif
16561 _ACEOF
16562     ;;
16563 esac
16564
16565 { echo "$as_me:$LINENO: checking for mode_t" >&5
16566 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
16567 if test "${ac_cv_type_mode_t+set}" = set; then
16568   echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570   cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h.  */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h.  */
16576 $ac_includes_default
16577 typedef mode_t ac__type_new_;
16578 int
16579 main ()
16580 {
16581 if ((ac__type_new_ *) 0)
16582   return 0;
16583 if (sizeof (ac__type_new_))
16584   return 0;
16585   ;
16586   return 0;
16587 }
16588 _ACEOF
16589 rm -f conftest.$ac_objext
16590 if { (ac_try="$ac_compile"
16591 case "(($ac_try" in
16592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593   *) ac_try_echo=$ac_try;;
16594 esac
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596   (eval "$ac_compile") 2>conftest.er1
16597   ac_status=$?
16598   grep -v '^ *+' conftest.er1 >conftest.err
16599   rm -f conftest.er1
16600   cat conftest.err >&5
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); } && {
16603          test -z "$ac_c_werror_flag" ||
16604          test ! -s conftest.err
16605        } && test -s conftest.$ac_objext; then
16606   ac_cv_type_mode_t=yes
16607 else
16608   echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611         ac_cv_type_mode_t=no
16612 fi
16613
16614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 fi
16616 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16617 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
16618 if test $ac_cv_type_mode_t = yes; then
16619
16620 cat >>confdefs.h <<_ACEOF
16621 #define HAVE_MODE_T 1
16622 _ACEOF
16623
16624
16625 fi
16626 { echo "$as_me:$LINENO: checking for off_t" >&5
16627 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
16628 if test "${ac_cv_type_off_t+set}" = set; then
16629   echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631   cat >conftest.$ac_ext <<_ACEOF
16632 /* confdefs.h.  */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h.  */
16637 $ac_includes_default
16638 typedef off_t ac__type_new_;
16639 int
16640 main ()
16641 {
16642 if ((ac__type_new_ *) 0)
16643   return 0;
16644 if (sizeof (ac__type_new_))
16645   return 0;
16646   ;
16647   return 0;
16648 }
16649 _ACEOF
16650 rm -f conftest.$ac_objext
16651 if { (ac_try="$ac_compile"
16652 case "(($ac_try" in
16653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654   *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657   (eval "$ac_compile") 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } && {
16664          test -z "$ac_c_werror_flag" ||
16665          test ! -s conftest.err
16666        } && test -s conftest.$ac_objext; then
16667   ac_cv_type_off_t=yes
16668 else
16669   echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16671
16672         ac_cv_type_off_t=no
16673 fi
16674
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676 fi
16677 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16678 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
16679 if test $ac_cv_type_off_t = yes; then
16680
16681 cat >>confdefs.h <<_ACEOF
16682 #define HAVE_OFF_T 1
16683 _ACEOF
16684
16685
16686 fi
16687 { echo "$as_me:$LINENO: checking for pid_t" >&5
16688 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16689 if test "${ac_cv_type_pid_t+set}" = set; then
16690   echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692   cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h.  */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h.  */
16698 $ac_includes_default
16699 typedef pid_t ac__type_new_;
16700 int
16701 main ()
16702 {
16703 if ((ac__type_new_ *) 0)
16704   return 0;
16705 if (sizeof (ac__type_new_))
16706   return 0;
16707   ;
16708   return 0;
16709 }
16710 _ACEOF
16711 rm -f conftest.$ac_objext
16712 if { (ac_try="$ac_compile"
16713 case "(($ac_try" in
16714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715   *) ac_try_echo=$ac_try;;
16716 esac
16717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16718   (eval "$ac_compile") 2>conftest.er1
16719   ac_status=$?
16720   grep -v '^ *+' conftest.er1 >conftest.err
16721   rm -f conftest.er1
16722   cat conftest.err >&5
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); } && {
16725          test -z "$ac_c_werror_flag" ||
16726          test ! -s conftest.err
16727        } && test -s conftest.$ac_objext; then
16728   ac_cv_type_pid_t=yes
16729 else
16730   echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16732
16733         ac_cv_type_pid_t=no
16734 fi
16735
16736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16737 fi
16738 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16739 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16740 if test $ac_cv_type_pid_t = yes; then
16741
16742 cat >>confdefs.h <<_ACEOF
16743 #define HAVE_PID_T 1
16744 _ACEOF
16745
16746
16747 fi
16748 { echo "$as_me:$LINENO: checking for size_t" >&5
16749 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16750 if test "${ac_cv_type_size_t+set}" = set; then
16751   echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753   cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759 $ac_includes_default
16760 typedef size_t ac__type_new_;
16761 int
16762 main ()
16763 {
16764 if ((ac__type_new_ *) 0)
16765   return 0;
16766 if (sizeof (ac__type_new_))
16767   return 0;
16768   ;
16769   return 0;
16770 }
16771 _ACEOF
16772 rm -f conftest.$ac_objext
16773 if { (ac_try="$ac_compile"
16774 case "(($ac_try" in
16775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776   *) ac_try_echo=$ac_try;;
16777 esac
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779   (eval "$ac_compile") 2>conftest.er1
16780   ac_status=$?
16781   grep -v '^ *+' conftest.er1 >conftest.err
16782   rm -f conftest.er1
16783   cat conftest.err >&5
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); } && {
16786          test -z "$ac_c_werror_flag" ||
16787          test ! -s conftest.err
16788        } && test -s conftest.$ac_objext; then
16789   ac_cv_type_size_t=yes
16790 else
16791   echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16793
16794         ac_cv_type_size_t=no
16795 fi
16796
16797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16798 fi
16799 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16800 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16801 if test $ac_cv_type_size_t = yes; then
16802
16803 cat >>confdefs.h <<_ACEOF
16804 #define HAVE_SIZE_T 1
16805 _ACEOF
16806
16807
16808 fi
16809 { echo "$as_me:$LINENO: checking for ssize_t" >&5
16810 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
16811 if test "${ac_cv_type_ssize_t+set}" = set; then
16812   echo $ECHO_N "(cached) $ECHO_C" >&6
16813 else
16814   cat >conftest.$ac_ext <<_ACEOF
16815 /* confdefs.h.  */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h.  */
16820 $ac_includes_default
16821 typedef ssize_t ac__type_new_;
16822 int
16823 main ()
16824 {
16825 if ((ac__type_new_ *) 0)
16826   return 0;
16827 if (sizeof (ac__type_new_))
16828   return 0;
16829   ;
16830   return 0;
16831 }
16832 _ACEOF
16833 rm -f conftest.$ac_objext
16834 if { (ac_try="$ac_compile"
16835 case "(($ac_try" in
16836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837   *) ac_try_echo=$ac_try;;
16838 esac
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840   (eval "$ac_compile") 2>conftest.er1
16841   ac_status=$?
16842   grep -v '^ *+' conftest.er1 >conftest.err
16843   rm -f conftest.er1
16844   cat conftest.err >&5
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); } && {
16847          test -z "$ac_c_werror_flag" ||
16848          test ! -s conftest.err
16849        } && test -s conftest.$ac_objext; then
16850   ac_cv_type_ssize_t=yes
16851 else
16852   echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16854
16855         ac_cv_type_ssize_t=no
16856 fi
16857
16858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16859 fi
16860 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16861 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
16862 if test $ac_cv_type_ssize_t = yes; then
16863
16864 cat >>confdefs.h <<_ACEOF
16865 #define HAVE_SSIZE_T 1
16866 _ACEOF
16867
16868
16869 fi
16870 { echo "$as_me:$LINENO: checking for long long" >&5
16871 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
16872 if test "${ac_cv_type_long_long+set}" = set; then
16873   echo $ECHO_N "(cached) $ECHO_C" >&6
16874 else
16875   cat >conftest.$ac_ext <<_ACEOF
16876 /* confdefs.h.  */
16877 _ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h.  */
16881 $ac_includes_default
16882 typedef long long ac__type_new_;
16883 int
16884 main ()
16885 {
16886 if ((ac__type_new_ *) 0)
16887   return 0;
16888 if (sizeof (ac__type_new_))
16889   return 0;
16890   ;
16891   return 0;
16892 }
16893 _ACEOF
16894 rm -f conftest.$ac_objext
16895 if { (ac_try="$ac_compile"
16896 case "(($ac_try" in
16897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898   *) ac_try_echo=$ac_try;;
16899 esac
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901   (eval "$ac_compile") 2>conftest.er1
16902   ac_status=$?
16903   grep -v '^ *+' conftest.er1 >conftest.err
16904   rm -f conftest.er1
16905   cat conftest.err >&5
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); } && {
16908          test -z "$ac_c_werror_flag" ||
16909          test ! -s conftest.err
16910        } && test -s conftest.$ac_objext; then
16911   ac_cv_type_long_long=yes
16912 else
16913   echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16915
16916         ac_cv_type_long_long=no
16917 fi
16918
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920 fi
16921 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16922 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
16923 if test $ac_cv_type_long_long = yes; then
16924
16925 cat >>confdefs.h <<_ACEOF
16926 #define HAVE_LONG_LONG 1
16927 _ACEOF
16928
16929
16930 fi
16931 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
16932 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
16933 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
16934   echo $ECHO_N "(cached) $ECHO_C" >&6
16935 else
16936   cat >conftest.$ac_ext <<_ACEOF
16937 /* confdefs.h.  */
16938 _ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h.  */
16942 $ac_includes_default
16943 typedef fsblkcnt_t ac__type_new_;
16944 int
16945 main ()
16946 {
16947 if ((ac__type_new_ *) 0)
16948   return 0;
16949 if (sizeof (ac__type_new_))
16950   return 0;
16951   ;
16952   return 0;
16953 }
16954 _ACEOF
16955 rm -f conftest.$ac_objext
16956 if { (ac_try="$ac_compile"
16957 case "(($ac_try" in
16958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959   *) ac_try_echo=$ac_try;;
16960 esac
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962   (eval "$ac_compile") 2>conftest.er1
16963   ac_status=$?
16964   grep -v '^ *+' conftest.er1 >conftest.err
16965   rm -f conftest.er1
16966   cat conftest.err >&5
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); } && {
16969          test -z "$ac_c_werror_flag" ||
16970          test ! -s conftest.err
16971        } && test -s conftest.$ac_objext; then
16972   ac_cv_type_fsblkcnt_t=yes
16973 else
16974   echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16976
16977         ac_cv_type_fsblkcnt_t=no
16978 fi
16979
16980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16981 fi
16982 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
16983 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
16984 if test $ac_cv_type_fsblkcnt_t = yes; then
16985
16986 cat >>confdefs.h <<_ACEOF
16987 #define HAVE_FSBLKCNT_T 1
16988 _ACEOF
16989
16990
16991 fi
16992 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
16993 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
16994 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
16995   echo $ECHO_N "(cached) $ECHO_C" >&6
16996 else
16997   cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h.  */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h.  */
17003 $ac_includes_default
17004 typedef fsfilcnt_t ac__type_new_;
17005 int
17006 main ()
17007 {
17008 if ((ac__type_new_ *) 0)
17009   return 0;
17010 if (sizeof (ac__type_new_))
17011   return 0;
17012   ;
17013   return 0;
17014 }
17015 _ACEOF
17016 rm -f conftest.$ac_objext
17017 if { (ac_try="$ac_compile"
17018 case "(($ac_try" in
17019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020   *) ac_try_echo=$ac_try;;
17021 esac
17022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023   (eval "$ac_compile") 2>conftest.er1
17024   ac_status=$?
17025   grep -v '^ *+' conftest.er1 >conftest.err
17026   rm -f conftest.er1
17027   cat conftest.err >&5
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); } && {
17030          test -z "$ac_c_werror_flag" ||
17031          test ! -s conftest.err
17032        } && test -s conftest.$ac_objext; then
17033   ac_cv_type_fsfilcnt_t=yes
17034 else
17035   echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038         ac_cv_type_fsfilcnt_t=no
17039 fi
17040
17041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042 fi
17043 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17044 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
17045 if test $ac_cv_type_fsfilcnt_t = yes; then
17046
17047 cat >>confdefs.h <<_ACEOF
17048 #define HAVE_FSFILCNT_T 1
17049 _ACEOF
17050
17051
17052 fi
17053
17054 { echo "$as_me:$LINENO: checking for sigset_t" >&5
17055 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
17056 if test "${ac_cv_type_sigset_t+set}" = set; then
17057   echo $ECHO_N "(cached) $ECHO_C" >&6
17058 else
17059   cat >conftest.$ac_ext <<_ACEOF
17060 /* confdefs.h.  */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h.  */
17065 #include <signal.h>
17066
17067 typedef sigset_t ac__type_new_;
17068 int
17069 main ()
17070 {
17071 if ((ac__type_new_ *) 0)
17072   return 0;
17073 if (sizeof (ac__type_new_))
17074   return 0;
17075   ;
17076   return 0;
17077 }
17078 _ACEOF
17079 rm -f conftest.$ac_objext
17080 if { (ac_try="$ac_compile"
17081 case "(($ac_try" in
17082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083   *) ac_try_echo=$ac_try;;
17084 esac
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086   (eval "$ac_compile") 2>conftest.er1
17087   ac_status=$?
17088   grep -v '^ *+' conftest.er1 >conftest.err
17089   rm -f conftest.er1
17090   cat conftest.err >&5
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); } && {
17093          test -z "$ac_c_werror_flag" ||
17094          test ! -s conftest.err
17095        } && test -s conftest.$ac_objext; then
17096   ac_cv_type_sigset_t=yes
17097 else
17098   echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17100
17101         ac_cv_type_sigset_t=no
17102 fi
17103
17104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105 fi
17106 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17107 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
17108 if test $ac_cv_type_sigset_t = yes; then
17109
17110 cat >>confdefs.h <<_ACEOF
17111 #define HAVE_SIGSET_T 1
17112 _ACEOF
17113
17114
17115 fi
17116
17117 { echo "$as_me:$LINENO: checking for request_sense" >&5
17118 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
17119 if test "${ac_cv_type_request_sense+set}" = set; then
17120   echo $ECHO_N "(cached) $ECHO_C" >&6
17121 else
17122   cat >conftest.$ac_ext <<_ACEOF
17123 /* confdefs.h.  */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h.  */
17128 #include <linux/cdrom.h>
17129
17130 typedef request_sense ac__type_new_;
17131 int
17132 main ()
17133 {
17134 if ((ac__type_new_ *) 0)
17135   return 0;
17136 if (sizeof (ac__type_new_))
17137   return 0;
17138   ;
17139   return 0;
17140 }
17141 _ACEOF
17142 rm -f conftest.$ac_objext
17143 if { (ac_try="$ac_compile"
17144 case "(($ac_try" in
17145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146   *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149   (eval "$ac_compile") 2>conftest.er1
17150   ac_status=$?
17151   grep -v '^ *+' conftest.er1 >conftest.err
17152   rm -f conftest.er1
17153   cat conftest.err >&5
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); } && {
17156          test -z "$ac_c_werror_flag" ||
17157          test ! -s conftest.err
17158        } && test -s conftest.$ac_objext; then
17159   ac_cv_type_request_sense=yes
17160 else
17161   echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17163
17164         ac_cv_type_request_sense=no
17165 fi
17166
17167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168 fi
17169 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
17170 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
17171 if test $ac_cv_type_request_sense = yes; then
17172
17173 cat >>confdefs.h <<_ACEOF
17174 #define HAVE_REQUEST_SENSE 1
17175 _ACEOF
17176
17177
17178 fi
17179
17180
17181 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
17182 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
17183 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
17184   echo $ECHO_N "(cached) $ECHO_C" >&6
17185 else
17186   cat >conftest.$ac_ext <<_ACEOF
17187 /* confdefs.h.  */
17188 _ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h.  */
17192 #ifdef HAVE_LINUX_INPUT_H
17193 #include <linux/input.h>
17194 #endif
17195
17196 int
17197 main ()
17198 {
17199 static struct ff_effect ac_aggr;
17200 if (ac_aggr.direction)
17201 return 0;
17202   ;
17203   return 0;
17204 }
17205 _ACEOF
17206 rm -f conftest.$ac_objext
17207 if { (ac_try="$ac_compile"
17208 case "(($ac_try" in
17209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210   *) ac_try_echo=$ac_try;;
17211 esac
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213   (eval "$ac_compile") 2>conftest.er1
17214   ac_status=$?
17215   grep -v '^ *+' conftest.er1 >conftest.err
17216   rm -f conftest.er1
17217   cat conftest.err >&5
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); } && {
17220          test -z "$ac_c_werror_flag" ||
17221          test ! -s conftest.err
17222        } && test -s conftest.$ac_objext; then
17223   ac_cv_member_struct_ff_effect_direction=yes
17224 else
17225   echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17227
17228         cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h.  */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h.  */
17234 #ifdef HAVE_LINUX_INPUT_H
17235 #include <linux/input.h>
17236 #endif
17237
17238 int
17239 main ()
17240 {
17241 static struct ff_effect ac_aggr;
17242 if (sizeof ac_aggr.direction)
17243 return 0;
17244   ;
17245   return 0;
17246 }
17247 _ACEOF
17248 rm -f conftest.$ac_objext
17249 if { (ac_try="$ac_compile"
17250 case "(($ac_try" in
17251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252   *) ac_try_echo=$ac_try;;
17253 esac
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255   (eval "$ac_compile") 2>conftest.er1
17256   ac_status=$?
17257   grep -v '^ *+' conftest.er1 >conftest.err
17258   rm -f conftest.er1
17259   cat conftest.err >&5
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); } && {
17262          test -z "$ac_c_werror_flag" ||
17263          test ! -s conftest.err
17264        } && test -s conftest.$ac_objext; then
17265   ac_cv_member_struct_ff_effect_direction=yes
17266 else
17267   echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270         ac_cv_member_struct_ff_effect_direction=no
17271 fi
17272
17273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274 fi
17275
17276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17277 fi
17278 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
17279 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
17280 if test $ac_cv_member_struct_ff_effect_direction = yes; then
17281
17282 cat >>confdefs.h <<_ACEOF
17283 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
17284 _ACEOF
17285
17286
17287 fi
17288
17289
17290 { echo "$as_me:$LINENO: checking for sigaddset" >&5
17291 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
17292 if test "${wine_cv_have_sigaddset+set}" = set; then
17293   echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295   cat >conftest.$ac_ext <<_ACEOF
17296 /* confdefs.h.  */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h.  */
17301 #include <signal.h>
17302 int
17303 main ()
17304 {
17305 sigset_t set; sigaddset(&set,SIGTERM);
17306   ;
17307   return 0;
17308 }
17309 _ACEOF
17310 rm -f conftest.$ac_objext conftest$ac_exeext
17311 if { (ac_try="$ac_link"
17312 case "(($ac_try" in
17313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314   *) ac_try_echo=$ac_try;;
17315 esac
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317   (eval "$ac_link") 2>conftest.er1
17318   ac_status=$?
17319   grep -v '^ *+' conftest.er1 >conftest.err
17320   rm -f conftest.er1
17321   cat conftest.err >&5
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); } && {
17324          test -z "$ac_c_werror_flag" ||
17325          test ! -s conftest.err
17326        } && test -s conftest$ac_exeext &&
17327        $as_test_x conftest$ac_exeext; then
17328   wine_cv_have_sigaddset=yes
17329 else
17330   echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17332
17333         wine_cv_have_sigaddset=no
17334 fi
17335
17336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17337       conftest$ac_exeext conftest.$ac_ext
17338 fi
17339 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17340 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
17341 if test "$wine_cv_have_sigaddset" = "yes"
17342 then
17343
17344 cat >>confdefs.h <<\_ACEOF
17345 #define HAVE_SIGADDSET 1
17346 _ACEOF
17347
17348 fi
17349
17350
17351 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17352 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
17353 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17354   echo $ECHO_N "(cached) $ECHO_C" >&6
17355 else
17356   cat >conftest.$ac_ext <<_ACEOF
17357 /* confdefs.h.  */
17358 _ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h.  */
17362 #include <netdb.h>
17363 int
17364 main ()
17365 {
17366
17367     char *name=NULL;
17368     struct hostent he;
17369     struct hostent *result;
17370     char *buf=NULL;
17371     int bufsize=0;
17372     int res,errnr;
17373     char *addr=NULL;
17374     int addrlen=0;
17375     int addrtype=0;
17376     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17377     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17378
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387   *) ac_try_echo=$ac_try;;
17388 esac
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390   (eval "$ac_link") 2>conftest.er1
17391   ac_status=$?
17392   grep -v '^ *+' conftest.er1 >conftest.err
17393   rm -f conftest.er1
17394   cat conftest.err >&5
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); } && {
17397          test -z "$ac_c_werror_flag" ||
17398          test ! -s conftest.err
17399        } && test -s conftest$ac_exeext &&
17400        $as_test_x conftest$ac_exeext; then
17401   wine_cv_linux_gethostbyname_r_6=yes
17402 else
17403   echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17405
17406         wine_cv_linux_gethostbyname_r_6=no
17407
17408 fi
17409
17410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17411       conftest$ac_exeext conftest.$ac_ext
17412
17413 fi
17414 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17415 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
17416    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17417    then
17418
17419 cat >>confdefs.h <<\_ACEOF
17420 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17421 _ACEOF
17422
17423    fi
17424
17425 if test "$ac_cv_header_linux_joystick_h" = "yes"
17426 then
17427    { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17428 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
17429 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 else
17432   cat >conftest.$ac_ext <<_ACEOF
17433 /* confdefs.h.  */
17434 _ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h.  */
17438
17439         #include <sys/ioctl.h>
17440         #include <sys/types.h>
17441         #include <linux/joystick.h>
17442
17443         struct js_event blub;
17444         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17445         #error "no 2.2 header"
17446         #endif
17447
17448 int
17449 main ()
17450 {
17451 /*empty*/
17452   ;
17453   return 0;
17454 }
17455 _ACEOF
17456 rm -f conftest.$ac_objext
17457 if { (ac_try="$ac_compile"
17458 case "(($ac_try" in
17459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460   *) ac_try_echo=$ac_try;;
17461 esac
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463   (eval "$ac_compile") 2>conftest.er1
17464   ac_status=$?
17465   grep -v '^ *+' conftest.er1 >conftest.err
17466   rm -f conftest.er1
17467   cat conftest.err >&5
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); } && {
17470          test -z "$ac_c_werror_flag" ||
17471          test ! -s conftest.err
17472        } && test -s conftest.$ac_objext; then
17473   wine_cv_linux_joystick_22_api=yes
17474 else
17475   echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17477
17478         wine_cv_linux_joystick_22_api=no
17479 fi
17480
17481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17482
17483 fi
17484 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17485 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
17486    if test "$wine_cv_linux_joystick_22_api" = "yes"
17487    then
17488
17489 cat >>confdefs.h <<\_ACEOF
17490 #define HAVE_LINUX_22_JOYSTICK_API 1
17491 _ACEOF
17492
17493    fi
17494 fi
17495
17496
17497 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17498 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
17499 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502   cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h.  */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h.  */
17508 #include <sys/types.h>
17509 #ifdef HAVE_SYS_PARAM_H
17510 # include <sys/param.h>
17511 #endif
17512 #ifdef HAVE_SYS_MOUNT_H
17513 # include <sys/mount.h>
17514 #endif
17515 #ifdef HAVE_SYS_VFS_H
17516 # include <sys/vfs.h>
17517 #endif
17518 #ifdef HAVE_SYS_STATFS_H
17519 # include <sys/statfs.h>
17520 #endif
17521
17522 int
17523 main ()
17524 {
17525 static struct statfs ac_aggr;
17526 if (ac_aggr.f_bfree)
17527 return 0;
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext
17533 if { (ac_try="$ac_compile"
17534 case "(($ac_try" in
17535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536   *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539   (eval "$ac_compile") 2>conftest.er1
17540   ac_status=$?
17541   grep -v '^ *+' conftest.er1 >conftest.err
17542   rm -f conftest.er1
17543   cat conftest.err >&5
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } && {
17546          test -z "$ac_c_werror_flag" ||
17547          test ! -s conftest.err
17548        } && test -s conftest.$ac_objext; then
17549   ac_cv_member_struct_statfs_f_bfree=yes
17550 else
17551   echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17553
17554         cat >conftest.$ac_ext <<_ACEOF
17555 /* confdefs.h.  */
17556 _ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h.  */
17560 #include <sys/types.h>
17561 #ifdef HAVE_SYS_PARAM_H
17562 # include <sys/param.h>
17563 #endif
17564 #ifdef HAVE_SYS_MOUNT_H
17565 # include <sys/mount.h>
17566 #endif
17567 #ifdef HAVE_SYS_VFS_H
17568 # include <sys/vfs.h>
17569 #endif
17570 #ifdef HAVE_SYS_STATFS_H
17571 # include <sys/statfs.h>
17572 #endif
17573
17574 int
17575 main ()
17576 {
17577 static struct statfs ac_aggr;
17578 if (sizeof ac_aggr.f_bfree)
17579 return 0;
17580   ;
17581   return 0;
17582 }
17583 _ACEOF
17584 rm -f conftest.$ac_objext
17585 if { (ac_try="$ac_compile"
17586 case "(($ac_try" in
17587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588   *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591   (eval "$ac_compile") 2>conftest.er1
17592   ac_status=$?
17593   grep -v '^ *+' conftest.er1 >conftest.err
17594   rm -f conftest.er1
17595   cat conftest.err >&5
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); } && {
17598          test -z "$ac_c_werror_flag" ||
17599          test ! -s conftest.err
17600        } && test -s conftest.$ac_objext; then
17601   ac_cv_member_struct_statfs_f_bfree=yes
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606         ac_cv_member_struct_statfs_f_bfree=no
17607 fi
17608
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610 fi
17611
17612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17613 fi
17614 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17615 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
17616 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17617
17618 cat >>confdefs.h <<_ACEOF
17619 #define HAVE_STRUCT_STATFS_F_BFREE 1
17620 _ACEOF
17621
17622
17623 fi
17624 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17625 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
17626 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
17627   echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
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 #include <sys/types.h>
17636 #ifdef HAVE_SYS_PARAM_H
17637 # include <sys/param.h>
17638 #endif
17639 #ifdef HAVE_SYS_MOUNT_H
17640 # include <sys/mount.h>
17641 #endif
17642 #ifdef HAVE_SYS_VFS_H
17643 # include <sys/vfs.h>
17644 #endif
17645 #ifdef HAVE_SYS_STATFS_H
17646 # include <sys/statfs.h>
17647 #endif
17648
17649 int
17650 main ()
17651 {
17652 static struct statfs ac_aggr;
17653 if (ac_aggr.f_bavail)
17654 return 0;
17655   ;
17656   return 0;
17657 }
17658 _ACEOF
17659 rm -f conftest.$ac_objext
17660 if { (ac_try="$ac_compile"
17661 case "(($ac_try" in
17662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663   *) ac_try_echo=$ac_try;;
17664 esac
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666   (eval "$ac_compile") 2>conftest.er1
17667   ac_status=$?
17668   grep -v '^ *+' conftest.er1 >conftest.err
17669   rm -f conftest.er1
17670   cat conftest.err >&5
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); } && {
17673          test -z "$ac_c_werror_flag" ||
17674          test ! -s conftest.err
17675        } && test -s conftest.$ac_objext; then
17676   ac_cv_member_struct_statfs_f_bavail=yes
17677 else
17678   echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17680
17681         cat >conftest.$ac_ext <<_ACEOF
17682 /* confdefs.h.  */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h.  */
17687 #include <sys/types.h>
17688 #ifdef HAVE_SYS_PARAM_H
17689 # include <sys/param.h>
17690 #endif
17691 #ifdef HAVE_SYS_MOUNT_H
17692 # include <sys/mount.h>
17693 #endif
17694 #ifdef HAVE_SYS_VFS_H
17695 # include <sys/vfs.h>
17696 #endif
17697 #ifdef HAVE_SYS_STATFS_H
17698 # include <sys/statfs.h>
17699 #endif
17700
17701 int
17702 main ()
17703 {
17704 static struct statfs ac_aggr;
17705 if (sizeof ac_aggr.f_bavail)
17706 return 0;
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715   *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718   (eval "$ac_compile") 2>conftest.er1
17719   ac_status=$?
17720   grep -v '^ *+' conftest.er1 >conftest.err
17721   rm -f conftest.er1
17722   cat conftest.err >&5
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); } && {
17725          test -z "$ac_c_werror_flag" ||
17726          test ! -s conftest.err
17727        } && test -s conftest.$ac_objext; then
17728   ac_cv_member_struct_statfs_f_bavail=yes
17729 else
17730   echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733         ac_cv_member_struct_statfs_f_bavail=no
17734 fi
17735
17736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17737 fi
17738
17739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17740 fi
17741 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17742 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
17743 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
17744
17745 cat >>confdefs.h <<_ACEOF
17746 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
17747 _ACEOF
17748
17749
17750 fi
17751 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
17752 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
17753 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
17754   echo $ECHO_N "(cached) $ECHO_C" >&6
17755 else
17756   cat >conftest.$ac_ext <<_ACEOF
17757 /* confdefs.h.  */
17758 _ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h.  */
17762 #include <sys/types.h>
17763 #ifdef HAVE_SYS_PARAM_H
17764 # include <sys/param.h>
17765 #endif
17766 #ifdef HAVE_SYS_MOUNT_H
17767 # include <sys/mount.h>
17768 #endif
17769 #ifdef HAVE_SYS_VFS_H
17770 # include <sys/vfs.h>
17771 #endif
17772 #ifdef HAVE_SYS_STATFS_H
17773 # include <sys/statfs.h>
17774 #endif
17775
17776 int
17777 main ()
17778 {
17779 static struct statfs ac_aggr;
17780 if (ac_aggr.f_frsize)
17781 return 0;
17782   ;
17783   return 0;
17784 }
17785 _ACEOF
17786 rm -f conftest.$ac_objext
17787 if { (ac_try="$ac_compile"
17788 case "(($ac_try" in
17789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790   *) ac_try_echo=$ac_try;;
17791 esac
17792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793   (eval "$ac_compile") 2>conftest.er1
17794   ac_status=$?
17795   grep -v '^ *+' conftest.er1 >conftest.err
17796   rm -f conftest.er1
17797   cat conftest.err >&5
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); } && {
17800          test -z "$ac_c_werror_flag" ||
17801          test ! -s conftest.err
17802        } && test -s conftest.$ac_objext; then
17803   ac_cv_member_struct_statfs_f_frsize=yes
17804 else
17805   echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17807
17808         cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h.  */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h.  */
17814 #include <sys/types.h>
17815 #ifdef HAVE_SYS_PARAM_H
17816 # include <sys/param.h>
17817 #endif
17818 #ifdef HAVE_SYS_MOUNT_H
17819 # include <sys/mount.h>
17820 #endif
17821 #ifdef HAVE_SYS_VFS_H
17822 # include <sys/vfs.h>
17823 #endif
17824 #ifdef HAVE_SYS_STATFS_H
17825 # include <sys/statfs.h>
17826 #endif
17827
17828 int
17829 main ()
17830 {
17831 static struct statfs ac_aggr;
17832 if (sizeof ac_aggr.f_frsize)
17833 return 0;
17834   ;
17835   return 0;
17836 }
17837 _ACEOF
17838 rm -f conftest.$ac_objext
17839 if { (ac_try="$ac_compile"
17840 case "(($ac_try" in
17841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842   *) ac_try_echo=$ac_try;;
17843 esac
17844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17845   (eval "$ac_compile") 2>conftest.er1
17846   ac_status=$?
17847   grep -v '^ *+' conftest.er1 >conftest.err
17848   rm -f conftest.er1
17849   cat conftest.err >&5
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); } && {
17852          test -z "$ac_c_werror_flag" ||
17853          test ! -s conftest.err
17854        } && test -s conftest.$ac_objext; then
17855   ac_cv_member_struct_statfs_f_frsize=yes
17856 else
17857   echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17859
17860         ac_cv_member_struct_statfs_f_frsize=no
17861 fi
17862
17863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17864 fi
17865
17866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17867 fi
17868 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
17869 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
17870 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
17871
17872 cat >>confdefs.h <<_ACEOF
17873 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
17874 _ACEOF
17875
17876
17877 fi
17878 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
17879 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
17880 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
17881   echo $ECHO_N "(cached) $ECHO_C" >&6
17882 else
17883   cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h.  */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h.  */
17889 #include <sys/types.h>
17890 #ifdef HAVE_SYS_PARAM_H
17891 # include <sys/param.h>
17892 #endif
17893 #ifdef HAVE_SYS_MOUNT_H
17894 # include <sys/mount.h>
17895 #endif
17896 #ifdef HAVE_SYS_VFS_H
17897 # include <sys/vfs.h>
17898 #endif
17899 #ifdef HAVE_SYS_STATFS_H
17900 # include <sys/statfs.h>
17901 #endif
17902
17903 int
17904 main ()
17905 {
17906 static struct statfs ac_aggr;
17907 if (ac_aggr.f_ffree)
17908 return 0;
17909   ;
17910   return 0;
17911 }
17912 _ACEOF
17913 rm -f conftest.$ac_objext
17914 if { (ac_try="$ac_compile"
17915 case "(($ac_try" in
17916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917   *) ac_try_echo=$ac_try;;
17918 esac
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920   (eval "$ac_compile") 2>conftest.er1
17921   ac_status=$?
17922   grep -v '^ *+' conftest.er1 >conftest.err
17923   rm -f conftest.er1
17924   cat conftest.err >&5
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); } && {
17927          test -z "$ac_c_werror_flag" ||
17928          test ! -s conftest.err
17929        } && test -s conftest.$ac_objext; then
17930   ac_cv_member_struct_statfs_f_ffree=yes
17931 else
17932   echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17934
17935         cat >conftest.$ac_ext <<_ACEOF
17936 /* confdefs.h.  */
17937 _ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h.  */
17941 #include <sys/types.h>
17942 #ifdef HAVE_SYS_PARAM_H
17943 # include <sys/param.h>
17944 #endif
17945 #ifdef HAVE_SYS_MOUNT_H
17946 # include <sys/mount.h>
17947 #endif
17948 #ifdef HAVE_SYS_VFS_H
17949 # include <sys/vfs.h>
17950 #endif
17951 #ifdef HAVE_SYS_STATFS_H
17952 # include <sys/statfs.h>
17953 #endif
17954
17955 int
17956 main ()
17957 {
17958 static struct statfs ac_aggr;
17959 if (sizeof ac_aggr.f_ffree)
17960 return 0;
17961   ;
17962   return 0;
17963 }
17964 _ACEOF
17965 rm -f conftest.$ac_objext
17966 if { (ac_try="$ac_compile"
17967 case "(($ac_try" in
17968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969   *) ac_try_echo=$ac_try;;
17970 esac
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972   (eval "$ac_compile") 2>conftest.er1
17973   ac_status=$?
17974   grep -v '^ *+' conftest.er1 >conftest.err
17975   rm -f conftest.er1
17976   cat conftest.err >&5
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); } && {
17979          test -z "$ac_c_werror_flag" ||
17980          test ! -s conftest.err
17981        } && test -s conftest.$ac_objext; then
17982   ac_cv_member_struct_statfs_f_ffree=yes
17983 else
17984   echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17986
17987         ac_cv_member_struct_statfs_f_ffree=no
17988 fi
17989
17990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17991 fi
17992
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994 fi
17995 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
17996 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
17997 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
17998
17999 cat >>confdefs.h <<_ACEOF
18000 #define HAVE_STRUCT_STATFS_F_FFREE 1
18001 _ACEOF
18002
18003
18004 fi
18005 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18006 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
18007 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18008   echo $ECHO_N "(cached) $ECHO_C" >&6
18009 else
18010   cat >conftest.$ac_ext <<_ACEOF
18011 /* confdefs.h.  */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h.  */
18016 #include <sys/types.h>
18017 #ifdef HAVE_SYS_PARAM_H
18018 # include <sys/param.h>
18019 #endif
18020 #ifdef HAVE_SYS_MOUNT_H
18021 # include <sys/mount.h>
18022 #endif
18023 #ifdef HAVE_SYS_VFS_H
18024 # include <sys/vfs.h>
18025 #endif
18026 #ifdef HAVE_SYS_STATFS_H
18027 # include <sys/statfs.h>
18028 #endif
18029
18030 int
18031 main ()
18032 {
18033 static struct statfs ac_aggr;
18034 if (ac_aggr.f_favail)
18035 return 0;
18036   ;
18037   return 0;
18038 }
18039 _ACEOF
18040 rm -f conftest.$ac_objext
18041 if { (ac_try="$ac_compile"
18042 case "(($ac_try" in
18043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044   *) ac_try_echo=$ac_try;;
18045 esac
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047   (eval "$ac_compile") 2>conftest.er1
18048   ac_status=$?
18049   grep -v '^ *+' conftest.er1 >conftest.err
18050   rm -f conftest.er1
18051   cat conftest.err >&5
18052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053   (exit $ac_status); } && {
18054          test -z "$ac_c_werror_flag" ||
18055          test ! -s conftest.err
18056        } && test -s conftest.$ac_objext; then
18057   ac_cv_member_struct_statfs_f_favail=yes
18058 else
18059   echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062         cat >conftest.$ac_ext <<_ACEOF
18063 /* confdefs.h.  */
18064 _ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h.  */
18068 #include <sys/types.h>
18069 #ifdef HAVE_SYS_PARAM_H
18070 # include <sys/param.h>
18071 #endif
18072 #ifdef HAVE_SYS_MOUNT_H
18073 # include <sys/mount.h>
18074 #endif
18075 #ifdef HAVE_SYS_VFS_H
18076 # include <sys/vfs.h>
18077 #endif
18078 #ifdef HAVE_SYS_STATFS_H
18079 # include <sys/statfs.h>
18080 #endif
18081
18082 int
18083 main ()
18084 {
18085 static struct statfs ac_aggr;
18086 if (sizeof ac_aggr.f_favail)
18087 return 0;
18088   ;
18089   return 0;
18090 }
18091 _ACEOF
18092 rm -f conftest.$ac_objext
18093 if { (ac_try="$ac_compile"
18094 case "(($ac_try" in
18095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096   *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099   (eval "$ac_compile") 2>conftest.er1
18100   ac_status=$?
18101   grep -v '^ *+' conftest.er1 >conftest.err
18102   rm -f conftest.er1
18103   cat conftest.err >&5
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); } && {
18106          test -z "$ac_c_werror_flag" ||
18107          test ! -s conftest.err
18108        } && test -s conftest.$ac_objext; then
18109   ac_cv_member_struct_statfs_f_favail=yes
18110 else
18111   echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18113
18114         ac_cv_member_struct_statfs_f_favail=no
18115 fi
18116
18117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18118 fi
18119
18120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18121 fi
18122 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18123 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
18124 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18125
18126 cat >>confdefs.h <<_ACEOF
18127 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18128 _ACEOF
18129
18130
18131 fi
18132 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18133 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
18134 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18135   echo $ECHO_N "(cached) $ECHO_C" >&6
18136 else
18137   cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h.  */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h.  */
18143 #include <sys/types.h>
18144 #ifdef HAVE_SYS_PARAM_H
18145 # include <sys/param.h>
18146 #endif
18147 #ifdef HAVE_SYS_MOUNT_H
18148 # include <sys/mount.h>
18149 #endif
18150 #ifdef HAVE_SYS_VFS_H
18151 # include <sys/vfs.h>
18152 #endif
18153 #ifdef HAVE_SYS_STATFS_H
18154 # include <sys/statfs.h>
18155 #endif
18156
18157 int
18158 main ()
18159 {
18160 static struct statfs ac_aggr;
18161 if (ac_aggr.f_namelen)
18162 return 0;
18163   ;
18164   return 0;
18165 }
18166 _ACEOF
18167 rm -f conftest.$ac_objext
18168 if { (ac_try="$ac_compile"
18169 case "(($ac_try" in
18170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171   *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174   (eval "$ac_compile") 2>conftest.er1
18175   ac_status=$?
18176   grep -v '^ *+' conftest.er1 >conftest.err
18177   rm -f conftest.er1
18178   cat conftest.err >&5
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); } && {
18181          test -z "$ac_c_werror_flag" ||
18182          test ! -s conftest.err
18183        } && test -s conftest.$ac_objext; then
18184   ac_cv_member_struct_statfs_f_namelen=yes
18185 else
18186   echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18188
18189         cat >conftest.$ac_ext <<_ACEOF
18190 /* confdefs.h.  */
18191 _ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h.  */
18195 #include <sys/types.h>
18196 #ifdef HAVE_SYS_PARAM_H
18197 # include <sys/param.h>
18198 #endif
18199 #ifdef HAVE_SYS_MOUNT_H
18200 # include <sys/mount.h>
18201 #endif
18202 #ifdef HAVE_SYS_VFS_H
18203 # include <sys/vfs.h>
18204 #endif
18205 #ifdef HAVE_SYS_STATFS_H
18206 # include <sys/statfs.h>
18207 #endif
18208
18209 int
18210 main ()
18211 {
18212 static struct statfs ac_aggr;
18213 if (sizeof ac_aggr.f_namelen)
18214 return 0;
18215   ;
18216   return 0;
18217 }
18218 _ACEOF
18219 rm -f conftest.$ac_objext
18220 if { (ac_try="$ac_compile"
18221 case "(($ac_try" in
18222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223   *) ac_try_echo=$ac_try;;
18224 esac
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226   (eval "$ac_compile") 2>conftest.er1
18227   ac_status=$?
18228   grep -v '^ *+' conftest.er1 >conftest.err
18229   rm -f conftest.er1
18230   cat conftest.err >&5
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); } && {
18233          test -z "$ac_c_werror_flag" ||
18234          test ! -s conftest.err
18235        } && test -s conftest.$ac_objext; then
18236   ac_cv_member_struct_statfs_f_namelen=yes
18237 else
18238   echo "$as_me: failed program was:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18240
18241         ac_cv_member_struct_statfs_f_namelen=no
18242 fi
18243
18244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18245 fi
18246
18247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18248 fi
18249 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18250 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
18251 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18252
18253 cat >>confdefs.h <<_ACEOF
18254 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18255 _ACEOF
18256
18257
18258 fi
18259
18260
18261 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18262 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
18263 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18264   echo $ECHO_N "(cached) $ECHO_C" >&6
18265 else
18266   cat >conftest.$ac_ext <<_ACEOF
18267 /* confdefs.h.  */
18268 _ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h.  */
18272 #ifdef HAVE_SYS_STATVFS_H
18273 #include <sys/statvfs.h>
18274 #endif
18275
18276 int
18277 main ()
18278 {
18279 static struct statvfs ac_aggr;
18280 if (ac_aggr.f_blocks)
18281 return 0;
18282   ;
18283   return 0;
18284 }
18285 _ACEOF
18286 rm -f conftest.$ac_objext
18287 if { (ac_try="$ac_compile"
18288 case "(($ac_try" in
18289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290   *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293   (eval "$ac_compile") 2>conftest.er1
18294   ac_status=$?
18295   grep -v '^ *+' conftest.er1 >conftest.err
18296   rm -f conftest.er1
18297   cat conftest.err >&5
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); } && {
18300          test -z "$ac_c_werror_flag" ||
18301          test ! -s conftest.err
18302        } && test -s conftest.$ac_objext; then
18303   ac_cv_member_struct_statvfs_f_blocks=yes
18304 else
18305   echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18307
18308         cat >conftest.$ac_ext <<_ACEOF
18309 /* confdefs.h.  */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h.  */
18314 #ifdef HAVE_SYS_STATVFS_H
18315 #include <sys/statvfs.h>
18316 #endif
18317
18318 int
18319 main ()
18320 {
18321 static struct statvfs ac_aggr;
18322 if (sizeof ac_aggr.f_blocks)
18323 return 0;
18324   ;
18325   return 0;
18326 }
18327 _ACEOF
18328 rm -f conftest.$ac_objext
18329 if { (ac_try="$ac_compile"
18330 case "(($ac_try" in
18331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332   *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335   (eval "$ac_compile") 2>conftest.er1
18336   ac_status=$?
18337   grep -v '^ *+' conftest.er1 >conftest.err
18338   rm -f conftest.er1
18339   cat conftest.err >&5
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); } && {
18342          test -z "$ac_c_werror_flag" ||
18343          test ! -s conftest.err
18344        } && test -s conftest.$ac_objext; then
18345   ac_cv_member_struct_statvfs_f_blocks=yes
18346 else
18347   echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350         ac_cv_member_struct_statvfs_f_blocks=no
18351 fi
18352
18353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18354 fi
18355
18356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18357 fi
18358 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18359 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
18360 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18361
18362 cat >>confdefs.h <<_ACEOF
18363 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18364 _ACEOF
18365
18366
18367 fi
18368
18369
18370 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18371 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
18372 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18373   echo $ECHO_N "(cached) $ECHO_C" >&6
18374 else
18375   cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h.  */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h.  */
18381 #include <sys/types.h>
18382 #ifdef HAVE_SYS_SOCKET_H
18383 # include <sys/socket.h>
18384 #endif
18385 #ifdef HAVE_SYS_UN_H
18386 # include <sys/un.h>
18387 #endif
18388
18389 int
18390 main ()
18391 {
18392 static struct msghdr ac_aggr;
18393 if (ac_aggr.msg_accrights)
18394 return 0;
18395   ;
18396   return 0;
18397 }
18398 _ACEOF
18399 rm -f conftest.$ac_objext
18400 if { (ac_try="$ac_compile"
18401 case "(($ac_try" in
18402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403   *) ac_try_echo=$ac_try;;
18404 esac
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406   (eval "$ac_compile") 2>conftest.er1
18407   ac_status=$?
18408   grep -v '^ *+' conftest.er1 >conftest.err
18409   rm -f conftest.er1
18410   cat conftest.err >&5
18411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412   (exit $ac_status); } && {
18413          test -z "$ac_c_werror_flag" ||
18414          test ! -s conftest.err
18415        } && test -s conftest.$ac_objext; then
18416   ac_cv_member_struct_msghdr_msg_accrights=yes
18417 else
18418   echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421         cat >conftest.$ac_ext <<_ACEOF
18422 /* confdefs.h.  */
18423 _ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h.  */
18427 #include <sys/types.h>
18428 #ifdef HAVE_SYS_SOCKET_H
18429 # include <sys/socket.h>
18430 #endif
18431 #ifdef HAVE_SYS_UN_H
18432 # include <sys/un.h>
18433 #endif
18434
18435 int
18436 main ()
18437 {
18438 static struct msghdr ac_aggr;
18439 if (sizeof ac_aggr.msg_accrights)
18440 return 0;
18441   ;
18442   return 0;
18443 }
18444 _ACEOF
18445 rm -f conftest.$ac_objext
18446 if { (ac_try="$ac_compile"
18447 case "(($ac_try" in
18448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449   *) ac_try_echo=$ac_try;;
18450 esac
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452   (eval "$ac_compile") 2>conftest.er1
18453   ac_status=$?
18454   grep -v '^ *+' conftest.er1 >conftest.err
18455   rm -f conftest.er1
18456   cat conftest.err >&5
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); } && {
18459          test -z "$ac_c_werror_flag" ||
18460          test ! -s conftest.err
18461        } && test -s conftest.$ac_objext; then
18462   ac_cv_member_struct_msghdr_msg_accrights=yes
18463 else
18464   echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18466
18467         ac_cv_member_struct_msghdr_msg_accrights=no
18468 fi
18469
18470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18471 fi
18472
18473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474 fi
18475 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18476 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
18477 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18478
18479 cat >>confdefs.h <<_ACEOF
18480 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18481 _ACEOF
18482
18483
18484 fi
18485 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18486 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
18487 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18488   echo $ECHO_N "(cached) $ECHO_C" >&6
18489 else
18490   cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h.  */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h.  */
18496 #include <sys/types.h>
18497 #ifdef HAVE_SYS_SOCKET_H
18498 # include <sys/socket.h>
18499 #endif
18500 #ifdef HAVE_SYS_UN_H
18501 # include <sys/un.h>
18502 #endif
18503
18504 int
18505 main ()
18506 {
18507 static struct sockaddr ac_aggr;
18508 if (ac_aggr.sa_len)
18509 return 0;
18510   ;
18511   return 0;
18512 }
18513 _ACEOF
18514 rm -f conftest.$ac_objext
18515 if { (ac_try="$ac_compile"
18516 case "(($ac_try" in
18517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518   *) ac_try_echo=$ac_try;;
18519 esac
18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521   (eval "$ac_compile") 2>conftest.er1
18522   ac_status=$?
18523   grep -v '^ *+' conftest.er1 >conftest.err
18524   rm -f conftest.er1
18525   cat conftest.err >&5
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); } && {
18528          test -z "$ac_c_werror_flag" ||
18529          test ! -s conftest.err
18530        } && test -s conftest.$ac_objext; then
18531   ac_cv_member_struct_sockaddr_sa_len=yes
18532 else
18533   echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18535
18536         cat >conftest.$ac_ext <<_ACEOF
18537 /* confdefs.h.  */
18538 _ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h.  */
18542 #include <sys/types.h>
18543 #ifdef HAVE_SYS_SOCKET_H
18544 # include <sys/socket.h>
18545 #endif
18546 #ifdef HAVE_SYS_UN_H
18547 # include <sys/un.h>
18548 #endif
18549
18550 int
18551 main ()
18552 {
18553 static struct sockaddr ac_aggr;
18554 if (sizeof ac_aggr.sa_len)
18555 return 0;
18556   ;
18557   return 0;
18558 }
18559 _ACEOF
18560 rm -f conftest.$ac_objext
18561 if { (ac_try="$ac_compile"
18562 case "(($ac_try" in
18563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564   *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567   (eval "$ac_compile") 2>conftest.er1
18568   ac_status=$?
18569   grep -v '^ *+' conftest.er1 >conftest.err
18570   rm -f conftest.er1
18571   cat conftest.err >&5
18572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573   (exit $ac_status); } && {
18574          test -z "$ac_c_werror_flag" ||
18575          test ! -s conftest.err
18576        } && test -s conftest.$ac_objext; then
18577   ac_cv_member_struct_sockaddr_sa_len=yes
18578 else
18579   echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18581
18582         ac_cv_member_struct_sockaddr_sa_len=no
18583 fi
18584
18585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18586 fi
18587
18588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18589 fi
18590 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18591 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
18592 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18593
18594 cat >>confdefs.h <<_ACEOF
18595 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18596 _ACEOF
18597
18598
18599 fi
18600 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18601 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
18602 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18603   echo $ECHO_N "(cached) $ECHO_C" >&6
18604 else
18605   cat >conftest.$ac_ext <<_ACEOF
18606 /* confdefs.h.  */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h.  */
18611 #include <sys/types.h>
18612 #ifdef HAVE_SYS_SOCKET_H
18613 # include <sys/socket.h>
18614 #endif
18615 #ifdef HAVE_SYS_UN_H
18616 # include <sys/un.h>
18617 #endif
18618
18619 int
18620 main ()
18621 {
18622 static struct sockaddr_un ac_aggr;
18623 if (ac_aggr.sun_len)
18624 return 0;
18625   ;
18626   return 0;
18627 }
18628 _ACEOF
18629 rm -f conftest.$ac_objext
18630 if { (ac_try="$ac_compile"
18631 case "(($ac_try" in
18632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633   *) ac_try_echo=$ac_try;;
18634 esac
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636   (eval "$ac_compile") 2>conftest.er1
18637   ac_status=$?
18638   grep -v '^ *+' conftest.er1 >conftest.err
18639   rm -f conftest.er1
18640   cat conftest.err >&5
18641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642   (exit $ac_status); } && {
18643          test -z "$ac_c_werror_flag" ||
18644          test ! -s conftest.err
18645        } && test -s conftest.$ac_objext; then
18646   ac_cv_member_struct_sockaddr_un_sun_len=yes
18647 else
18648   echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18650
18651         cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h.  */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h.  */
18657 #include <sys/types.h>
18658 #ifdef HAVE_SYS_SOCKET_H
18659 # include <sys/socket.h>
18660 #endif
18661 #ifdef HAVE_SYS_UN_H
18662 # include <sys/un.h>
18663 #endif
18664
18665 int
18666 main ()
18667 {
18668 static struct sockaddr_un ac_aggr;
18669 if (sizeof ac_aggr.sun_len)
18670 return 0;
18671   ;
18672   return 0;
18673 }
18674 _ACEOF
18675 rm -f conftest.$ac_objext
18676 if { (ac_try="$ac_compile"
18677 case "(($ac_try" in
18678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679   *) ac_try_echo=$ac_try;;
18680 esac
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682   (eval "$ac_compile") 2>conftest.er1
18683   ac_status=$?
18684   grep -v '^ *+' conftest.er1 >conftest.err
18685   rm -f conftest.er1
18686   cat conftest.err >&5
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); } && {
18689          test -z "$ac_c_werror_flag" ||
18690          test ! -s conftest.err
18691        } && test -s conftest.$ac_objext; then
18692   ac_cv_member_struct_sockaddr_un_sun_len=yes
18693 else
18694   echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18696
18697         ac_cv_member_struct_sockaddr_un_sun_len=no
18698 fi
18699
18700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701 fi
18702
18703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18704 fi
18705 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18706 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
18707 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18708
18709 cat >>confdefs.h <<_ACEOF
18710 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18711 _ACEOF
18712
18713
18714 fi
18715
18716
18717 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18718 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
18719 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18720   echo $ECHO_N "(cached) $ECHO_C" >&6
18721 else
18722   cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h.  */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h.  */
18728 #include <sys/types.h>
18729 #ifdef HAVE_SCSI_SG_H
18730 #include <scsi/sg.h>
18731 #endif
18732
18733 int
18734 main ()
18735 {
18736 static scsireq_t ac_aggr;
18737 if (ac_aggr.cmd)
18738 return 0;
18739   ;
18740   return 0;
18741 }
18742 _ACEOF
18743 rm -f conftest.$ac_objext
18744 if { (ac_try="$ac_compile"
18745 case "(($ac_try" in
18746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747   *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750   (eval "$ac_compile") 2>conftest.er1
18751   ac_status=$?
18752   grep -v '^ *+' conftest.er1 >conftest.err
18753   rm -f conftest.er1
18754   cat conftest.err >&5
18755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756   (exit $ac_status); } && {
18757          test -z "$ac_c_werror_flag" ||
18758          test ! -s conftest.err
18759        } && test -s conftest.$ac_objext; then
18760   ac_cv_member_scsireq_t_cmd=yes
18761 else
18762   echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18764
18765         cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h.  */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h.  */
18771 #include <sys/types.h>
18772 #ifdef HAVE_SCSI_SG_H
18773 #include <scsi/sg.h>
18774 #endif
18775
18776 int
18777 main ()
18778 {
18779 static scsireq_t ac_aggr;
18780 if (sizeof ac_aggr.cmd)
18781 return 0;
18782   ;
18783   return 0;
18784 }
18785 _ACEOF
18786 rm -f conftest.$ac_objext
18787 if { (ac_try="$ac_compile"
18788 case "(($ac_try" in
18789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790   *) ac_try_echo=$ac_try;;
18791 esac
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793   (eval "$ac_compile") 2>conftest.er1
18794   ac_status=$?
18795   grep -v '^ *+' conftest.er1 >conftest.err
18796   rm -f conftest.er1
18797   cat conftest.err >&5
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); } && {
18800          test -z "$ac_c_werror_flag" ||
18801          test ! -s conftest.err
18802        } && test -s conftest.$ac_objext; then
18803   ac_cv_member_scsireq_t_cmd=yes
18804 else
18805   echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18807
18808         ac_cv_member_scsireq_t_cmd=no
18809 fi
18810
18811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18812 fi
18813
18814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18815 fi
18816 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
18817 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
18818 if test $ac_cv_member_scsireq_t_cmd = yes; then
18819
18820 cat >>confdefs.h <<_ACEOF
18821 #define HAVE_SCSIREQ_T_CMD 1
18822 _ACEOF
18823
18824
18825 fi
18826 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
18827 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
18828 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
18829   echo $ECHO_N "(cached) $ECHO_C" >&6
18830 else
18831   cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h.  */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h.  */
18837 #include <sys/types.h>
18838 #ifdef HAVE_SCSI_SG_H
18839 #include <scsi/sg.h>
18840 #endif
18841
18842 int
18843 main ()
18844 {
18845 static sg_io_hdr_t ac_aggr;
18846 if (ac_aggr.interface_id)
18847 return 0;
18848   ;
18849   return 0;
18850 }
18851 _ACEOF
18852 rm -f conftest.$ac_objext
18853 if { (ac_try="$ac_compile"
18854 case "(($ac_try" in
18855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856   *) ac_try_echo=$ac_try;;
18857 esac
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859   (eval "$ac_compile") 2>conftest.er1
18860   ac_status=$?
18861   grep -v '^ *+' conftest.er1 >conftest.err
18862   rm -f conftest.er1
18863   cat conftest.err >&5
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); } && {
18866          test -z "$ac_c_werror_flag" ||
18867          test ! -s conftest.err
18868        } && test -s conftest.$ac_objext; then
18869   ac_cv_member_sg_io_hdr_t_interface_id=yes
18870 else
18871   echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18873
18874         cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h.  */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h.  */
18880 #include <sys/types.h>
18881 #ifdef HAVE_SCSI_SG_H
18882 #include <scsi/sg.h>
18883 #endif
18884
18885 int
18886 main ()
18887 {
18888 static sg_io_hdr_t ac_aggr;
18889 if (sizeof ac_aggr.interface_id)
18890 return 0;
18891   ;
18892   return 0;
18893 }
18894 _ACEOF
18895 rm -f conftest.$ac_objext
18896 if { (ac_try="$ac_compile"
18897 case "(($ac_try" in
18898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899   *) ac_try_echo=$ac_try;;
18900 esac
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902   (eval "$ac_compile") 2>conftest.er1
18903   ac_status=$?
18904   grep -v '^ *+' conftest.er1 >conftest.err
18905   rm -f conftest.er1
18906   cat conftest.err >&5
18907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908   (exit $ac_status); } && {
18909          test -z "$ac_c_werror_flag" ||
18910          test ! -s conftest.err
18911        } && test -s conftest.$ac_objext; then
18912   ac_cv_member_sg_io_hdr_t_interface_id=yes
18913 else
18914   echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18916
18917         ac_cv_member_sg_io_hdr_t_interface_id=no
18918 fi
18919
18920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921 fi
18922
18923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18924 fi
18925 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
18926 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
18927 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
18928
18929 cat >>confdefs.h <<_ACEOF
18930 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
18931 _ACEOF
18932
18933
18934 fi
18935
18936
18937 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
18938 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
18939 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
18940   echo $ECHO_N "(cached) $ECHO_C" >&6
18941 else
18942   cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h.  */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h.  */
18948 #include <signal.h>
18949
18950 int
18951 main ()
18952 {
18953 static siginfo_t ac_aggr;
18954 if (ac_aggr.si_fd)
18955 return 0;
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext
18961 if { (ac_try="$ac_compile"
18962 case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_compile") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } && {
18974          test -z "$ac_c_werror_flag" ||
18975          test ! -s conftest.err
18976        } && test -s conftest.$ac_objext; then
18977   ac_cv_member_siginfo_t_si_fd=yes
18978 else
18979   echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18981
18982         cat >conftest.$ac_ext <<_ACEOF
18983 /* confdefs.h.  */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h.  */
18988 #include <signal.h>
18989
18990 int
18991 main ()
18992 {
18993 static siginfo_t ac_aggr;
18994 if (sizeof ac_aggr.si_fd)
18995 return 0;
18996   ;
18997   return 0;
18998 }
18999 _ACEOF
19000 rm -f conftest.$ac_objext
19001 if { (ac_try="$ac_compile"
19002 case "(($ac_try" in
19003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004   *) ac_try_echo=$ac_try;;
19005 esac
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007   (eval "$ac_compile") 2>conftest.er1
19008   ac_status=$?
19009   grep -v '^ *+' conftest.er1 >conftest.err
19010   rm -f conftest.er1
19011   cat conftest.err >&5
19012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013   (exit $ac_status); } && {
19014          test -z "$ac_c_werror_flag" ||
19015          test ! -s conftest.err
19016        } && test -s conftest.$ac_objext; then
19017   ac_cv_member_siginfo_t_si_fd=yes
19018 else
19019   echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19021
19022         ac_cv_member_siginfo_t_si_fd=no
19023 fi
19024
19025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19026 fi
19027
19028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19029 fi
19030 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19031 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
19032 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19033
19034 cat >>confdefs.h <<_ACEOF
19035 #define HAVE_SIGINFO_T_SI_FD 1
19036 _ACEOF
19037
19038
19039 fi
19040
19041
19042 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
19043 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
19044 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
19045   echo $ECHO_N "(cached) $ECHO_C" >&6
19046 else
19047   cat >conftest.$ac_ext <<_ACEOF
19048 /* confdefs.h.  */
19049 _ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h.  */
19053 #include <sys/types.h>
19054 #ifdef HAVE_SYS_MTIO_H
19055 #include <sys/mtio.h>
19056 #endif
19057
19058 int
19059 main ()
19060 {
19061 static struct mtget ac_aggr;
19062 if (ac_aggr.mt_blksiz)
19063 return 0;
19064   ;
19065   return 0;
19066 }
19067 _ACEOF
19068 rm -f conftest.$ac_objext
19069 if { (ac_try="$ac_compile"
19070 case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075   (eval "$ac_compile") 2>conftest.er1
19076   ac_status=$?
19077   grep -v '^ *+' conftest.er1 >conftest.err
19078   rm -f conftest.er1
19079   cat conftest.err >&5
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); } && {
19082          test -z "$ac_c_werror_flag" ||
19083          test ! -s conftest.err
19084        } && test -s conftest.$ac_objext; then
19085   ac_cv_member_struct_mtget_mt_blksiz=yes
19086 else
19087   echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19089
19090         cat >conftest.$ac_ext <<_ACEOF
19091 /* confdefs.h.  */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h.  */
19096 #include <sys/types.h>
19097 #ifdef HAVE_SYS_MTIO_H
19098 #include <sys/mtio.h>
19099 #endif
19100
19101 int
19102 main ()
19103 {
19104 static struct mtget ac_aggr;
19105 if (sizeof ac_aggr.mt_blksiz)
19106 return 0;
19107   ;
19108   return 0;
19109 }
19110 _ACEOF
19111 rm -f conftest.$ac_objext
19112 if { (ac_try="$ac_compile"
19113 case "(($ac_try" in
19114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115   *) ac_try_echo=$ac_try;;
19116 esac
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118   (eval "$ac_compile") 2>conftest.er1
19119   ac_status=$?
19120   grep -v '^ *+' conftest.er1 >conftest.err
19121   rm -f conftest.er1
19122   cat conftest.err >&5
19123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124   (exit $ac_status); } && {
19125          test -z "$ac_c_werror_flag" ||
19126          test ! -s conftest.err
19127        } && test -s conftest.$ac_objext; then
19128   ac_cv_member_struct_mtget_mt_blksiz=yes
19129 else
19130   echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133         ac_cv_member_struct_mtget_mt_blksiz=no
19134 fi
19135
19136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19137 fi
19138
19139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19140 fi
19141 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
19142 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
19143 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
19144
19145 cat >>confdefs.h <<_ACEOF
19146 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
19147 _ACEOF
19148
19149
19150 fi
19151 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
19152 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
19153 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
19154   echo $ECHO_N "(cached) $ECHO_C" >&6
19155 else
19156   cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h.  */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h.  */
19162 #include <sys/types.h>
19163 #ifdef HAVE_SYS_MTIO_H
19164 #include <sys/mtio.h>
19165 #endif
19166
19167 int
19168 main ()
19169 {
19170 static struct mtget ac_aggr;
19171 if (ac_aggr.mt_gstat)
19172 return 0;
19173   ;
19174   return 0;
19175 }
19176 _ACEOF
19177 rm -f conftest.$ac_objext
19178 if { (ac_try="$ac_compile"
19179 case "(($ac_try" in
19180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181   *) ac_try_echo=$ac_try;;
19182 esac
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184   (eval "$ac_compile") 2>conftest.er1
19185   ac_status=$?
19186   grep -v '^ *+' conftest.er1 >conftest.err
19187   rm -f conftest.er1
19188   cat conftest.err >&5
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); } && {
19191          test -z "$ac_c_werror_flag" ||
19192          test ! -s conftest.err
19193        } && test -s conftest.$ac_objext; then
19194   ac_cv_member_struct_mtget_mt_gstat=yes
19195 else
19196   echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19198
19199         cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h.  */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h.  */
19205 #include <sys/types.h>
19206 #ifdef HAVE_SYS_MTIO_H
19207 #include <sys/mtio.h>
19208 #endif
19209
19210 int
19211 main ()
19212 {
19213 static struct mtget ac_aggr;
19214 if (sizeof ac_aggr.mt_gstat)
19215 return 0;
19216   ;
19217   return 0;
19218 }
19219 _ACEOF
19220 rm -f conftest.$ac_objext
19221 if { (ac_try="$ac_compile"
19222 case "(($ac_try" in
19223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224   *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227   (eval "$ac_compile") 2>conftest.er1
19228   ac_status=$?
19229   grep -v '^ *+' conftest.er1 >conftest.err
19230   rm -f conftest.er1
19231   cat conftest.err >&5
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); } && {
19234          test -z "$ac_c_werror_flag" ||
19235          test ! -s conftest.err
19236        } && test -s conftest.$ac_objext; then
19237   ac_cv_member_struct_mtget_mt_gstat=yes
19238 else
19239   echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19241
19242         ac_cv_member_struct_mtget_mt_gstat=no
19243 fi
19244
19245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19246 fi
19247
19248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19249 fi
19250 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
19251 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
19252 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
19253
19254 cat >>confdefs.h <<_ACEOF
19255 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
19256 _ACEOF
19257
19258
19259 fi
19260 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
19261 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
19262 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
19263   echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265   cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h.  */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h.  */
19271 #include <sys/types.h>
19272 #ifdef HAVE_SYS_MTIO_H
19273 #include <sys/mtio.h>
19274 #endif
19275
19276 int
19277 main ()
19278 {
19279 static struct mtget ac_aggr;
19280 if (ac_aggr.mt_blkno)
19281 return 0;
19282   ;
19283   return 0;
19284 }
19285 _ACEOF
19286 rm -f conftest.$ac_objext
19287 if { (ac_try="$ac_compile"
19288 case "(($ac_try" in
19289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290   *) ac_try_echo=$ac_try;;
19291 esac
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293   (eval "$ac_compile") 2>conftest.er1
19294   ac_status=$?
19295   grep -v '^ *+' conftest.er1 >conftest.err
19296   rm -f conftest.er1
19297   cat conftest.err >&5
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } && {
19300          test -z "$ac_c_werror_flag" ||
19301          test ! -s conftest.err
19302        } && test -s conftest.$ac_objext; then
19303   ac_cv_member_struct_mtget_mt_blkno=yes
19304 else
19305   echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308         cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h.  */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h.  */
19314 #include <sys/types.h>
19315 #ifdef HAVE_SYS_MTIO_H
19316 #include <sys/mtio.h>
19317 #endif
19318
19319 int
19320 main ()
19321 {
19322 static struct mtget ac_aggr;
19323 if (sizeof ac_aggr.mt_blkno)
19324 return 0;
19325   ;
19326   return 0;
19327 }
19328 _ACEOF
19329 rm -f conftest.$ac_objext
19330 if { (ac_try="$ac_compile"
19331 case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336   (eval "$ac_compile") 2>conftest.er1
19337   ac_status=$?
19338   grep -v '^ *+' conftest.er1 >conftest.err
19339   rm -f conftest.er1
19340   cat conftest.err >&5
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); } && {
19343          test -z "$ac_c_werror_flag" ||
19344          test ! -s conftest.err
19345        } && test -s conftest.$ac_objext; then
19346   ac_cv_member_struct_mtget_mt_blkno=yes
19347 else
19348   echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19350
19351         ac_cv_member_struct_mtget_mt_blkno=no
19352 fi
19353
19354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19355 fi
19356
19357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19358 fi
19359 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19360 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
19361 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19362
19363 cat >>confdefs.h <<_ACEOF
19364 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
19365 _ACEOF
19366
19367
19368 fi
19369
19370
19371 { echo "$as_me:$LINENO: checking for struct option.name" >&5
19372 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
19373 if test "${ac_cv_member_struct_option_name+set}" = set; then
19374   echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19376   cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h.  */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h.  */
19382 #ifdef HAVE_GETOPT_H
19383 #include <getopt.h>
19384 #endif
19385
19386 int
19387 main ()
19388 {
19389 static struct option ac_aggr;
19390 if (ac_aggr.name)
19391 return 0;
19392   ;
19393   return 0;
19394 }
19395 _ACEOF
19396 rm -f conftest.$ac_objext
19397 if { (ac_try="$ac_compile"
19398 case "(($ac_try" in
19399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400   *) ac_try_echo=$ac_try;;
19401 esac
19402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403   (eval "$ac_compile") 2>conftest.er1
19404   ac_status=$?
19405   grep -v '^ *+' conftest.er1 >conftest.err
19406   rm -f conftest.er1
19407   cat conftest.err >&5
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); } && {
19410          test -z "$ac_c_werror_flag" ||
19411          test ! -s conftest.err
19412        } && test -s conftest.$ac_objext; then
19413   ac_cv_member_struct_option_name=yes
19414 else
19415   echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19417
19418         cat >conftest.$ac_ext <<_ACEOF
19419 /* confdefs.h.  */
19420 _ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h.  */
19424 #ifdef HAVE_GETOPT_H
19425 #include <getopt.h>
19426 #endif
19427
19428 int
19429 main ()
19430 {
19431 static struct option ac_aggr;
19432 if (sizeof ac_aggr.name)
19433 return 0;
19434   ;
19435   return 0;
19436 }
19437 _ACEOF
19438 rm -f conftest.$ac_objext
19439 if { (ac_try="$ac_compile"
19440 case "(($ac_try" in
19441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442   *) ac_try_echo=$ac_try;;
19443 esac
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445   (eval "$ac_compile") 2>conftest.er1
19446   ac_status=$?
19447   grep -v '^ *+' conftest.er1 >conftest.err
19448   rm -f conftest.er1
19449   cat conftest.err >&5
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); } && {
19452          test -z "$ac_c_werror_flag" ||
19453          test ! -s conftest.err
19454        } && test -s conftest.$ac_objext; then
19455   ac_cv_member_struct_option_name=yes
19456 else
19457   echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19459
19460         ac_cv_member_struct_option_name=no
19461 fi
19462
19463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19464 fi
19465
19466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19467 fi
19468 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19469 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
19470 if test $ac_cv_member_struct_option_name = yes; then
19471
19472 cat >>confdefs.h <<_ACEOF
19473 #define HAVE_STRUCT_OPTION_NAME 1
19474 _ACEOF
19475
19476
19477 fi
19478
19479
19480 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19481 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19482 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19483   echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485   cat >conftest.$ac_ext <<_ACEOF
19486 /* confdefs.h.  */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h.  */
19491 $ac_includes_default
19492 int
19493 main ()
19494 {
19495 static struct stat ac_aggr;
19496 if (ac_aggr.st_blocks)
19497 return 0;
19498   ;
19499   return 0;
19500 }
19501 _ACEOF
19502 rm -f conftest.$ac_objext
19503 if { (ac_try="$ac_compile"
19504 case "(($ac_try" in
19505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506   *) ac_try_echo=$ac_try;;
19507 esac
19508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509   (eval "$ac_compile") 2>conftest.er1
19510   ac_status=$?
19511   grep -v '^ *+' conftest.er1 >conftest.err
19512   rm -f conftest.er1
19513   cat conftest.err >&5
19514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515   (exit $ac_status); } && {
19516          test -z "$ac_c_werror_flag" ||
19517          test ! -s conftest.err
19518        } && test -s conftest.$ac_objext; then
19519   ac_cv_member_struct_stat_st_blocks=yes
19520 else
19521   echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19523
19524         cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h.  */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h.  */
19530 $ac_includes_default
19531 int
19532 main ()
19533 {
19534 static struct stat ac_aggr;
19535 if (sizeof ac_aggr.st_blocks)
19536 return 0;
19537   ;
19538   return 0;
19539 }
19540 _ACEOF
19541 rm -f conftest.$ac_objext
19542 if { (ac_try="$ac_compile"
19543 case "(($ac_try" in
19544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545   *) ac_try_echo=$ac_try;;
19546 esac
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548   (eval "$ac_compile") 2>conftest.er1
19549   ac_status=$?
19550   grep -v '^ *+' conftest.er1 >conftest.err
19551   rm -f conftest.er1
19552   cat conftest.err >&5
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); } && {
19555          test -z "$ac_c_werror_flag" ||
19556          test ! -s conftest.err
19557        } && test -s conftest.$ac_objext; then
19558   ac_cv_member_struct_stat_st_blocks=yes
19559 else
19560   echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563         ac_cv_member_struct_stat_st_blocks=no
19564 fi
19565
19566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19567 fi
19568
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 fi
19571 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19572 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19573 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19574
19575 cat >>confdefs.h <<_ACEOF
19576 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19577 _ACEOF
19578
19579
19580 fi
19581
19582
19583 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19584 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
19585 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19586   echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588   cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594 #ifdef HAVE_SYS_TYPES_H
19595 #include <sys/types.h>
19596 #endif
19597 #ifdef HAVE_NETINET_IN_H
19598 #include <netinet/in.h>
19599 #endif
19600
19601 int
19602 main ()
19603 {
19604 static struct sockaddr_in6 ac_aggr;
19605 if (ac_aggr.sin6_scope_id)
19606 return 0;
19607   ;
19608   return 0;
19609 }
19610 _ACEOF
19611 rm -f conftest.$ac_objext
19612 if { (ac_try="$ac_compile"
19613 case "(($ac_try" in
19614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19615   *) ac_try_echo=$ac_try;;
19616 esac
19617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19618   (eval "$ac_compile") 2>conftest.er1
19619   ac_status=$?
19620   grep -v '^ *+' conftest.er1 >conftest.err
19621   rm -f conftest.er1
19622   cat conftest.err >&5
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); } && {
19625          test -z "$ac_c_werror_flag" ||
19626          test ! -s conftest.err
19627        } && test -s conftest.$ac_objext; then
19628   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19629 else
19630   echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19632
19633         cat >conftest.$ac_ext <<_ACEOF
19634 /* confdefs.h.  */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h.  */
19639 #ifdef HAVE_SYS_TYPES_H
19640 #include <sys/types.h>
19641 #endif
19642 #ifdef HAVE_NETINET_IN_H
19643 #include <netinet/in.h>
19644 #endif
19645
19646 int
19647 main ()
19648 {
19649 static struct sockaddr_in6 ac_aggr;
19650 if (sizeof ac_aggr.sin6_scope_id)
19651 return 0;
19652   ;
19653   return 0;
19654 }
19655 _ACEOF
19656 rm -f conftest.$ac_objext
19657 if { (ac_try="$ac_compile"
19658 case "(($ac_try" in
19659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660   *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663   (eval "$ac_compile") 2>conftest.er1
19664   ac_status=$?
19665   grep -v '^ *+' conftest.er1 >conftest.err
19666   rm -f conftest.er1
19667   cat conftest.err >&5
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); } && {
19670          test -z "$ac_c_werror_flag" ||
19671          test ! -s conftest.err
19672        } && test -s conftest.$ac_objext; then
19673   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19674 else
19675   echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19677
19678         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
19679 fi
19680
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19682 fi
19683
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685 fi
19686 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19687 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
19688 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19689
19690 cat >>confdefs.h <<_ACEOF
19691 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19692 _ACEOF
19693
19694
19695 fi
19696
19697
19698 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
19699 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
19700 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
19701   echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703   cat >conftest.$ac_ext <<_ACEOF
19704 /* confdefs.h.  */
19705 _ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h.  */
19709 #ifdef HAVE_SYS_TYPES_H
19710 #include <sys/types.h>
19711 #endif
19712 #ifdef HAVE_NETINET_IN_H
19713 # include <netinet/in.h>
19714 #endif
19715 #ifdef HAVE_ARPA_NAMESER_H
19716 # include <arpa/nameser.h>
19717 #endif
19718
19719 int
19720 main ()
19721 {
19722 static ns_msg ac_aggr;
19723 if (ac_aggr._msg_ptr)
19724 return 0;
19725   ;
19726   return 0;
19727 }
19728 _ACEOF
19729 rm -f conftest.$ac_objext
19730 if { (ac_try="$ac_compile"
19731 case "(($ac_try" in
19732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733   *) ac_try_echo=$ac_try;;
19734 esac
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736   (eval "$ac_compile") 2>conftest.er1
19737   ac_status=$?
19738   grep -v '^ *+' conftest.er1 >conftest.err
19739   rm -f conftest.er1
19740   cat conftest.err >&5
19741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742   (exit $ac_status); } && {
19743          test -z "$ac_c_werror_flag" ||
19744          test ! -s conftest.err
19745        } && test -s conftest.$ac_objext; then
19746   ac_cv_member_ns_msg__msg_ptr=yes
19747 else
19748   echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751         cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h.  */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h.  */
19757 #ifdef HAVE_SYS_TYPES_H
19758 #include <sys/types.h>
19759 #endif
19760 #ifdef HAVE_NETINET_IN_H
19761 # include <netinet/in.h>
19762 #endif
19763 #ifdef HAVE_ARPA_NAMESER_H
19764 # include <arpa/nameser.h>
19765 #endif
19766
19767 int
19768 main ()
19769 {
19770 static ns_msg ac_aggr;
19771 if (sizeof ac_aggr._msg_ptr)
19772 return 0;
19773   ;
19774   return 0;
19775 }
19776 _ACEOF
19777 rm -f conftest.$ac_objext
19778 if { (ac_try="$ac_compile"
19779 case "(($ac_try" in
19780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781   *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784   (eval "$ac_compile") 2>conftest.er1
19785   ac_status=$?
19786   grep -v '^ *+' conftest.er1 >conftest.err
19787   rm -f conftest.er1
19788   cat conftest.err >&5
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); } && {
19791          test -z "$ac_c_werror_flag" ||
19792          test ! -s conftest.err
19793        } && test -s conftest.$ac_objext; then
19794   ac_cv_member_ns_msg__msg_ptr=yes
19795 else
19796   echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799         ac_cv_member_ns_msg__msg_ptr=no
19800 fi
19801
19802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19803 fi
19804
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 fi
19807 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
19808 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
19809 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
19810
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_NS_MSG__MSG_PTR 1
19813 _ACEOF
19814
19815
19816 fi
19817
19818
19819 { echo "$as_me:$LINENO: checking for timezone variable" >&5
19820 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
19821 if test "${ac_cv_have_timezone+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h.  */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h.  */
19830 #include <time.h>
19831 int
19832 main ()
19833 {
19834 timezone = 1
19835   ;
19836   return 0;
19837 }
19838 _ACEOF
19839 rm -f conftest.$ac_objext conftest$ac_exeext
19840 if { (ac_try="$ac_link"
19841 case "(($ac_try" in
19842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843   *) ac_try_echo=$ac_try;;
19844 esac
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846   (eval "$ac_link") 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } && {
19853          test -z "$ac_c_werror_flag" ||
19854          test ! -s conftest.err
19855        } && test -s conftest$ac_exeext &&
19856        $as_test_x conftest$ac_exeext; then
19857   ac_cv_have_timezone="yes"
19858 else
19859   echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862         ac_cv_have_timezone="no"
19863 fi
19864
19865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19866       conftest$ac_exeext conftest.$ac_ext
19867 fi
19868 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19869 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
19870 if test "$ac_cv_have_timezone" = "yes"
19871 then
19872
19873 cat >>confdefs.h <<\_ACEOF
19874 #define HAVE_TIMEZONE 1
19875 _ACEOF
19876
19877 fi
19878 { echo "$as_me:$LINENO: checking for daylight variable" >&5
19879 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
19880 if test "${ac_cv_have_daylight+set}" = set; then
19881   echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883   cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h.  */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h.  */
19889 #include <time.h>
19890 int
19891 main ()
19892 {
19893 daylight = 1
19894   ;
19895   return 0;
19896 }
19897 _ACEOF
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899 if { (ac_try="$ac_link"
19900 case "(($ac_try" in
19901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902   *) ac_try_echo=$ac_try;;
19903 esac
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905   (eval "$ac_link") 2>conftest.er1
19906   ac_status=$?
19907   grep -v '^ *+' conftest.er1 >conftest.err
19908   rm -f conftest.er1
19909   cat conftest.err >&5
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); } && {
19912          test -z "$ac_c_werror_flag" ||
19913          test ! -s conftest.err
19914        } && test -s conftest$ac_exeext &&
19915        $as_test_x conftest$ac_exeext; then
19916   ac_cv_have_daylight="yes"
19917 else
19918   echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19920
19921         ac_cv_have_daylight="no"
19922 fi
19923
19924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19925       conftest$ac_exeext conftest.$ac_ext
19926 fi
19927 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
19928 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
19929 if test "$ac_cv_have_daylight" = "yes"
19930 then
19931
19932 cat >>confdefs.h <<\_ACEOF
19933 #define HAVE_DAYLIGHT 1
19934 _ACEOF
19935
19936 fi
19937
19938
19939 case $host_cpu in
19940   *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19941 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
19942 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19943   echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945   cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h.  */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h.  */
19951 #ifndef __i386__
19952 yes
19953 #endif
19954 _ACEOF
19955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19956   $EGREP "yes" >/dev/null 2>&1; then
19957   ac_cv_cpp_def___i386__=yes
19958 else
19959   ac_cv_cpp_def___i386__=no
19960 fi
19961 rm -f conftest*
19962
19963 fi
19964 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19965 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
19966 if test $ac_cv_cpp_def___i386__ = yes; then
19967   CFLAGS="$CFLAGS -D__i386__"
19968   LINTFLAGS="$LINTFLAGS -D__i386__"
19969 fi
19970  ;;
19971   *x86_64*)         { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
19972 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
19973 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
19974   echo $ECHO_N "(cached) $ECHO_C" >&6
19975 else
19976   cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h.  */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h.  */
19982 #ifndef __x86_64__
19983 yes
19984 #endif
19985 _ACEOF
19986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19987   $EGREP "yes" >/dev/null 2>&1; then
19988   ac_cv_cpp_def___x86_64__=yes
19989 else
19990   ac_cv_cpp_def___x86_64__=no
19991 fi
19992 rm -f conftest*
19993
19994 fi
19995 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
19996 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
19997 if test $ac_cv_cpp_def___x86_64__ = yes; then
19998   CFLAGS="$CFLAGS -D__x86_64__"
19999   LINTFLAGS="$LINTFLAGS -D__x86_64__"
20000 fi
20001  ;;
20002   *alpha*)          { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20003 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
20004 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20005   echo $ECHO_N "(cached) $ECHO_C" >&6
20006 else
20007   cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h.  */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h.  */
20013 #ifndef __ALPHA__
20014 yes
20015 #endif
20016 _ACEOF
20017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20018   $EGREP "yes" >/dev/null 2>&1; then
20019   ac_cv_cpp_def___ALPHA__=yes
20020 else
20021   ac_cv_cpp_def___ALPHA__=no
20022 fi
20023 rm -f conftest*
20024
20025 fi
20026 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20027 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
20028 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20029   CFLAGS="$CFLAGS -D__ALPHA__"
20030   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20031 fi
20032  ;;
20033   *sparc*)          { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20034 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
20035 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20036   echo $ECHO_N "(cached) $ECHO_C" >&6
20037 else
20038   cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h.  */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h.  */
20044 #ifndef __sparc__
20045 yes
20046 #endif
20047 _ACEOF
20048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20049   $EGREP "yes" >/dev/null 2>&1; then
20050   ac_cv_cpp_def___sparc__=yes
20051 else
20052   ac_cv_cpp_def___sparc__=no
20053 fi
20054 rm -f conftest*
20055
20056 fi
20057 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20058 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
20059 if test $ac_cv_cpp_def___sparc__ = yes; then
20060   CFLAGS="$CFLAGS -D__sparc__"
20061   LINTFLAGS="$LINTFLAGS -D__sparc__"
20062 fi
20063  ;;
20064   *powerpc*)        { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20065 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
20066 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20067   echo $ECHO_N "(cached) $ECHO_C" >&6
20068 else
20069   cat >conftest.$ac_ext <<_ACEOF
20070 /* confdefs.h.  */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h.  */
20075 #ifndef __powerpc__
20076 yes
20077 #endif
20078 _ACEOF
20079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20080   $EGREP "yes" >/dev/null 2>&1; then
20081   ac_cv_cpp_def___powerpc__=yes
20082 else
20083   ac_cv_cpp_def___powerpc__=no
20084 fi
20085 rm -f conftest*
20086
20087 fi
20088 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20089 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
20090 if test $ac_cv_cpp_def___powerpc__ = yes; then
20091   CFLAGS="$CFLAGS -D__powerpc__"
20092   LINTFLAGS="$LINTFLAGS -D__powerpc__"
20093 fi
20094  ;;
20095 esac
20096
20097 case $host_vendor in
20098   *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20099 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
20100 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103   cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h.  */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h.  */
20109 #ifndef __sun__
20110 yes
20111 #endif
20112 _ACEOF
20113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20114   $EGREP "yes" >/dev/null 2>&1; then
20115   ac_cv_cpp_def___sun__=yes
20116 else
20117   ac_cv_cpp_def___sun__=no
20118 fi
20119 rm -f conftest*
20120
20121 fi
20122 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20123 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
20124 if test $ac_cv_cpp_def___sun__ = yes; then
20125   CFLAGS="$CFLAGS -D__sun__"
20126   LINTFLAGS="$LINTFLAGS -D__sun__"
20127 fi
20128  ;;
20129 esac
20130
20131
20132 DEPENDENCIES="### Dependencies:
20133
20134 .INIT: Makefile
20135 .BEGIN: Makefile
20136 Makefile: dummy
20137         -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
20138
20139 \$(OBJS): \$(IDL_GEN_HEADERS)
20140 \$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
20141 \$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
20142 \$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
20143
20144
20145
20146
20147
20148 ac_config_commands="$ac_config_commands include/stamp-h"
20149
20150
20151 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
20152
20153 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
20154
20155 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
20156
20157 ac_config_commands="$ac_config_commands dlls/user32/resources"
20158
20159 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
20160
20161 ac_config_commands="$ac_config_commands include/wine"
20162
20163
20164 MAKE_RULES=Make.rules
20165
20166
20167 MAKE_DLL_RULES=dlls/Makedll.rules
20168
20169
20170 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
20171
20172
20173 MAKE_TEST_RULES=dlls/Maketest.rules
20174
20175
20176 MAKE_PROG_RULES=programs/Makeprog.rules
20177
20178
20179 ac_config_files="$ac_config_files Make.rules"
20180
20181 ac_config_files="$ac_config_files dlls/Makedll.rules"
20182
20183 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
20184
20185 ac_config_files="$ac_config_files dlls/Maketest.rules"
20186
20187 ac_config_files="$ac_config_files programs/Makeprog.rules"
20188
20189 ac_config_files="$ac_config_files Makefile"
20190
20191 ac_config_files="$ac_config_files dlls/Makefile"
20192
20193 ac_config_files="$ac_config_files dlls/acledit/Makefile"
20194
20195 ac_config_files="$ac_config_files dlls/activeds/Makefile"
20196
20197 ac_config_files="$ac_config_files dlls/advapi32/Makefile"
20198
20199 ac_config_files="$ac_config_files dlls/advapi32/tests/Makefile"
20200
20201 ac_config_files="$ac_config_files dlls/advpack/Makefile"
20202
20203 ac_config_files="$ac_config_files dlls/advpack/tests/Makefile"
20204
20205 ac_config_files="$ac_config_files dlls/amstream/Makefile"
20206
20207 ac_config_files="$ac_config_files dlls/atl/Makefile"
20208
20209 ac_config_files="$ac_config_files dlls/avicap32/Makefile"
20210
20211 ac_config_files="$ac_config_files dlls/avifil32/Makefile"
20212
20213 ac_config_files="$ac_config_files dlls/browseui/Makefile"
20214
20215 ac_config_files="$ac_config_files dlls/browseui/tests/Makefile"
20216
20217 ac_config_files="$ac_config_files dlls/cabinet/Makefile"
20218
20219 ac_config_files="$ac_config_files dlls/cabinet/tests/Makefile"
20220
20221 ac_config_files="$ac_config_files dlls/capi2032/Makefile"
20222
20223 ac_config_files="$ac_config_files dlls/cards/Makefile"
20224
20225 ac_config_files="$ac_config_files dlls/cfgmgr32/Makefile"
20226
20227 ac_config_files="$ac_config_files dlls/clusapi/Makefile"
20228
20229 ac_config_files="$ac_config_files dlls/comcat/Makefile"
20230
20231 ac_config_files="$ac_config_files dlls/comcat/tests/Makefile"
20232
20233 ac_config_files="$ac_config_files dlls/comctl32/Makefile"
20234
20235 ac_config_files="$ac_config_files dlls/comctl32/tests/Makefile"
20236
20237 ac_config_files="$ac_config_files dlls/comdlg32/Makefile"
20238
20239 ac_config_files="$ac_config_files dlls/comdlg32/tests/Makefile"
20240
20241 ac_config_files="$ac_config_files dlls/compstui/Makefile"
20242
20243 ac_config_files="$ac_config_files dlls/credui/Makefile"
20244
20245 ac_config_files="$ac_config_files dlls/crtdll/Makefile"
20246
20247 ac_config_files="$ac_config_files dlls/crypt32/Makefile"
20248
20249 ac_config_files="$ac_config_files dlls/crypt32/tests/Makefile"
20250
20251 ac_config_files="$ac_config_files dlls/cryptdll/Makefile"
20252
20253 ac_config_files="$ac_config_files dlls/cryptnet/Makefile"
20254
20255 ac_config_files="$ac_config_files dlls/ctl3d32/Makefile"
20256
20257 ac_config_files="$ac_config_files dlls/d3d8/Makefile"
20258
20259 ac_config_files="$ac_config_files dlls/d3d8/tests/Makefile"
20260
20261 ac_config_files="$ac_config_files dlls/d3d9/Makefile"
20262
20263 ac_config_files="$ac_config_files dlls/d3d9/tests/Makefile"
20264
20265 ac_config_files="$ac_config_files dlls/d3dim/Makefile"
20266
20267 ac_config_files="$ac_config_files dlls/d3drm/Makefile"
20268
20269 ac_config_files="$ac_config_files dlls/d3drm/tests/Makefile"
20270
20271 ac_config_files="$ac_config_files dlls/d3dx8/Makefile"
20272
20273 ac_config_files="$ac_config_files dlls/d3dxof/Makefile"
20274
20275 ac_config_files="$ac_config_files dlls/dbghelp/Makefile"
20276
20277 ac_config_files="$ac_config_files dlls/dciman32/Makefile"
20278
20279 ac_config_files="$ac_config_files dlls/ddraw/Makefile"
20280
20281 ac_config_files="$ac_config_files dlls/ddraw/tests/Makefile"
20282
20283 ac_config_files="$ac_config_files dlls/ddrawex/Makefile"
20284
20285 ac_config_files="$ac_config_files dlls/devenum/Makefile"
20286
20287 ac_config_files="$ac_config_files dlls/dinput/Makefile"
20288
20289 ac_config_files="$ac_config_files dlls/dinput/tests/Makefile"
20290
20291 ac_config_files="$ac_config_files dlls/dinput8/Makefile"
20292
20293 ac_config_files="$ac_config_files dlls/dmband/Makefile"
20294
20295 ac_config_files="$ac_config_files dlls/dmcompos/Makefile"
20296
20297 ac_config_files="$ac_config_files dlls/dmime/Makefile"
20298
20299 ac_config_files="$ac_config_files dlls/dmloader/Makefile"
20300
20301 ac_config_files="$ac_config_files dlls/dmscript/Makefile"
20302
20303 ac_config_files="$ac_config_files dlls/dmstyle/Makefile"
20304
20305 ac_config_files="$ac_config_files dlls/dmsynth/Makefile"
20306
20307 ac_config_files="$ac_config_files dlls/dmusic/Makefile"
20308
20309 ac_config_files="$ac_config_files dlls/dmusic32/Makefile"
20310
20311 ac_config_files="$ac_config_files dlls/dnsapi/Makefile"
20312
20313 ac_config_files="$ac_config_files dlls/dnsapi/tests/Makefile"
20314
20315 ac_config_files="$ac_config_files dlls/dplay/Makefile"
20316
20317 ac_config_files="$ac_config_files dlls/dplayx/Makefile"
20318
20319 ac_config_files="$ac_config_files dlls/dplayx/tests/Makefile"
20320
20321 ac_config_files="$ac_config_files dlls/dpnaddr/Makefile"
20322
20323 ac_config_files="$ac_config_files dlls/dpnet/Makefile"
20324
20325 ac_config_files="$ac_config_files dlls/dpnhpast/Makefile"
20326
20327 ac_config_files="$ac_config_files dlls/dsound/Makefile"
20328
20329 ac_config_files="$ac_config_files dlls/dsound/tests/Makefile"
20330
20331 ac_config_files="$ac_config_files dlls/dswave/Makefile"
20332
20333 ac_config_files="$ac_config_files dlls/dwmapi/Makefile"
20334
20335 ac_config_files="$ac_config_files dlls/dxdiagn/Makefile"
20336
20337 ac_config_files="$ac_config_files dlls/dxerr8/Makefile"
20338
20339 ac_config_files="$ac_config_files dlls/dxerr9/Makefile"
20340
20341 ac_config_files="$ac_config_files dlls/dxguid/Makefile"
20342
20343 ac_config_files="$ac_config_files dlls/gdi32/Makefile"
20344
20345 ac_config_files="$ac_config_files dlls/gdi32/tests/Makefile"
20346
20347 ac_config_files="$ac_config_files dlls/gdiplus/Makefile"
20348
20349 ac_config_files="$ac_config_files dlls/gdiplus/tests/Makefile"
20350
20351 ac_config_files="$ac_config_files dlls/glu32/Makefile"
20352
20353 ac_config_files="$ac_config_files dlls/gphoto2.ds/Makefile"
20354
20355 ac_config_files="$ac_config_files dlls/hal/Makefile"
20356
20357 ac_config_files="$ac_config_files dlls/hhctrl.ocx/Makefile"
20358
20359 ac_config_files="$ac_config_files dlls/hid/Makefile"
20360
20361 ac_config_files="$ac_config_files dlls/hlink/Makefile"
20362
20363 ac_config_files="$ac_config_files dlls/hlink/tests/Makefile"
20364
20365 ac_config_files="$ac_config_files dlls/hnetcfg/Makefile"
20366
20367 ac_config_files="$ac_config_files dlls/iccvid/Makefile"
20368
20369 ac_config_files="$ac_config_files dlls/icmp/Makefile"
20370
20371 ac_config_files="$ac_config_files dlls/ifsmgr.vxd/Makefile"
20372
20373 ac_config_files="$ac_config_files dlls/imaadp32.acm/Makefile"
20374
20375 ac_config_files="$ac_config_files dlls/imagehlp/Makefile"
20376
20377 ac_config_files="$ac_config_files dlls/imm32/Makefile"
20378
20379 ac_config_files="$ac_config_files dlls/infosoft/Makefile"
20380
20381 ac_config_files="$ac_config_files dlls/infosoft/tests/Makefile"
20382
20383 ac_config_files="$ac_config_files dlls/inseng/Makefile"
20384
20385 ac_config_files="$ac_config_files dlls/iphlpapi/Makefile"
20386
20387 ac_config_files="$ac_config_files dlls/iphlpapi/tests/Makefile"
20388
20389 ac_config_files="$ac_config_files dlls/itss/Makefile"
20390
20391 ac_config_files="$ac_config_files dlls/itss/tests/Makefile"
20392
20393 ac_config_files="$ac_config_files dlls/kernel32/Makefile"
20394
20395 ac_config_files="$ac_config_files dlls/kernel32/tests/Makefile"
20396
20397 ac_config_files="$ac_config_files dlls/localspl/Makefile"
20398
20399 ac_config_files="$ac_config_files dlls/localspl/tests/Makefile"
20400
20401 ac_config_files="$ac_config_files dlls/localui/Makefile"
20402
20403 ac_config_files="$ac_config_files dlls/localui/tests/Makefile"
20404
20405 ac_config_files="$ac_config_files dlls/lz32/Makefile"
20406
20407 ac_config_files="$ac_config_files dlls/lz32/tests/Makefile"
20408
20409 ac_config_files="$ac_config_files dlls/mapi32/Makefile"
20410
20411 ac_config_files="$ac_config_files dlls/mapi32/tests/Makefile"
20412
20413 ac_config_files="$ac_config_files dlls/mciavi32/Makefile"
20414
20415 ac_config_files="$ac_config_files dlls/mcicda/Makefile"
20416
20417 ac_config_files="$ac_config_files dlls/mciseq/Makefile"
20418
20419 ac_config_files="$ac_config_files dlls/mciwave/Makefile"
20420
20421 ac_config_files="$ac_config_files dlls/midimap/Makefile"
20422
20423 ac_config_files="$ac_config_files dlls/mlang/Makefile"
20424
20425 ac_config_files="$ac_config_files dlls/mlang/tests/Makefile"
20426
20427 ac_config_files="$ac_config_files dlls/mmdevldr.vxd/Makefile"
20428
20429 ac_config_files="$ac_config_files dlls/monodebg.vxd/Makefile"
20430
20431 ac_config_files="$ac_config_files dlls/mpr/Makefile"
20432
20433 ac_config_files="$ac_config_files dlls/mprapi/Makefile"
20434
20435 ac_config_files="$ac_config_files dlls/msacm32.drv/Makefile"
20436
20437 ac_config_files="$ac_config_files dlls/msacm32/Makefile"
20438
20439 ac_config_files="$ac_config_files dlls/msacm32/tests/Makefile"
20440
20441 ac_config_files="$ac_config_files dlls/msadp32.acm/Makefile"
20442
20443 ac_config_files="$ac_config_files dlls/mscms/Makefile"
20444
20445 ac_config_files="$ac_config_files dlls/mscms/tests/Makefile"
20446
20447 ac_config_files="$ac_config_files dlls/mscoree/Makefile"
20448
20449 ac_config_files="$ac_config_files dlls/msdmo/Makefile"
20450
20451 ac_config_files="$ac_config_files dlls/msftedit/Makefile"
20452
20453 ac_config_files="$ac_config_files dlls/msg711.acm/Makefile"
20454
20455 ac_config_files="$ac_config_files dlls/mshtml/Makefile"
20456
20457 ac_config_files="$ac_config_files dlls/mshtml/tests/Makefile"
20458
20459 ac_config_files="$ac_config_files dlls/msi/Makefile"
20460
20461 ac_config_files="$ac_config_files dlls/msi/tests/Makefile"
20462
20463 ac_config_files="$ac_config_files dlls/msimg32/Makefile"
20464
20465 ac_config_files="$ac_config_files dlls/msisys.ocx/Makefile"
20466
20467 ac_config_files="$ac_config_files dlls/msnet32/Makefile"
20468
20469 ac_config_files="$ac_config_files dlls/msrle32/Makefile"
20470
20471 ac_config_files="$ac_config_files dlls/msvcrt/Makefile"
20472
20473 ac_config_files="$ac_config_files dlls/msvcrt/tests/Makefile"
20474
20475 ac_config_files="$ac_config_files dlls/msvcrt20/Makefile"
20476
20477 ac_config_files="$ac_config_files dlls/msvcrt40/Makefile"
20478
20479 ac_config_files="$ac_config_files dlls/msvcrtd/Makefile"
20480
20481 ac_config_files="$ac_config_files dlls/msvcrtd/tests/Makefile"
20482
20483 ac_config_files="$ac_config_files dlls/msvfw32/Makefile"
20484
20485 ac_config_files="$ac_config_files dlls/msvidc32/Makefile"
20486
20487 ac_config_files="$ac_config_files dlls/mswsock/Makefile"
20488
20489 ac_config_files="$ac_config_files dlls/msxml3/Makefile"
20490
20491 ac_config_files="$ac_config_files dlls/msxml3/tests/Makefile"
20492
20493 ac_config_files="$ac_config_files dlls/nddeapi/Makefile"
20494
20495 ac_config_files="$ac_config_files dlls/netapi32/Makefile"
20496
20497 ac_config_files="$ac_config_files dlls/netapi32/tests/Makefile"
20498
20499 ac_config_files="$ac_config_files dlls/newdev/Makefile"
20500
20501 ac_config_files="$ac_config_files dlls/ntdll/Makefile"
20502
20503 ac_config_files="$ac_config_files dlls/ntdll/tests/Makefile"
20504
20505 ac_config_files="$ac_config_files dlls/ntdsapi/Makefile"
20506
20507 ac_config_files="$ac_config_files dlls/ntoskrnl.exe/Makefile"
20508
20509 ac_config_files="$ac_config_files dlls/ntprint/Makefile"
20510
20511 ac_config_files="$ac_config_files dlls/ntprint/tests/Makefile"
20512
20513 ac_config_files="$ac_config_files dlls/objsel/Makefile"
20514
20515 ac_config_files="$ac_config_files dlls/odbc32/Makefile"
20516
20517 ac_config_files="$ac_config_files dlls/odbccp32/Makefile"
20518
20519 ac_config_files="$ac_config_files dlls/odbccp32/tests/Makefile"
20520
20521 ac_config_files="$ac_config_files dlls/ole32/Makefile"
20522
20523 ac_config_files="$ac_config_files dlls/ole32/tests/Makefile"
20524
20525 ac_config_files="$ac_config_files dlls/oleacc/Makefile"
20526
20527 ac_config_files="$ac_config_files dlls/oleaut32/Makefile"
20528
20529 ac_config_files="$ac_config_files dlls/oleaut32/tests/Makefile"
20530
20531 ac_config_files="$ac_config_files dlls/olecli32/Makefile"
20532
20533 ac_config_files="$ac_config_files dlls/oledlg/Makefile"
20534
20535 ac_config_files="$ac_config_files dlls/olepro32/Makefile"
20536
20537 ac_config_files="$ac_config_files dlls/olesvr32/Makefile"
20538
20539 ac_config_files="$ac_config_files dlls/opengl32/Makefile"
20540
20541 ac_config_files="$ac_config_files dlls/pdh/Makefile"
20542
20543 ac_config_files="$ac_config_files dlls/powrprof/Makefile"
20544
20545 ac_config_files="$ac_config_files dlls/printui/Makefile"
20546
20547 ac_config_files="$ac_config_files dlls/psapi/Makefile"
20548
20549 ac_config_files="$ac_config_files dlls/psapi/tests/Makefile"
20550
20551 ac_config_files="$ac_config_files dlls/pstorec/Makefile"
20552
20553 ac_config_files="$ac_config_files dlls/qcap/Makefile"
20554
20555 ac_config_files="$ac_config_files dlls/quartz/Makefile"
20556
20557 ac_config_files="$ac_config_files dlls/quartz/tests/Makefile"
20558
20559 ac_config_files="$ac_config_files dlls/query/Makefile"
20560
20561 ac_config_files="$ac_config_files dlls/rasapi32/Makefile"
20562
20563 ac_config_files="$ac_config_files dlls/resutils/Makefile"
20564
20565 ac_config_files="$ac_config_files dlls/riched20/Makefile"
20566
20567 ac_config_files="$ac_config_files dlls/riched20/tests/Makefile"
20568
20569 ac_config_files="$ac_config_files dlls/riched32/Makefile"
20570
20571 ac_config_files="$ac_config_files dlls/rpcrt4/Makefile"
20572
20573 ac_config_files="$ac_config_files dlls/rpcrt4/tests/Makefile"
20574
20575 ac_config_files="$ac_config_files dlls/rsabase/Makefile"
20576
20577 ac_config_files="$ac_config_files dlls/rsabase/tests/Makefile"
20578
20579 ac_config_files="$ac_config_files dlls/rsaenh/Makefile"
20580
20581 ac_config_files="$ac_config_files dlls/rsaenh/tests/Makefile"
20582
20583 ac_config_files="$ac_config_files dlls/sane.ds/Makefile"
20584
20585 ac_config_files="$ac_config_files dlls/schannel/Makefile"
20586
20587 ac_config_files="$ac_config_files dlls/schannel/tests/Makefile"
20588
20589 ac_config_files="$ac_config_files dlls/secur32/Makefile"
20590
20591 ac_config_files="$ac_config_files dlls/secur32/tests/Makefile"
20592
20593 ac_config_files="$ac_config_files dlls/security/Makefile"
20594
20595 ac_config_files="$ac_config_files dlls/sensapi/Makefile"
20596
20597 ac_config_files="$ac_config_files dlls/serialui/Makefile"
20598
20599 ac_config_files="$ac_config_files dlls/serialui/tests/Makefile"
20600
20601 ac_config_files="$ac_config_files dlls/setupapi/Makefile"
20602
20603 ac_config_files="$ac_config_files dlls/setupapi/tests/Makefile"
20604
20605 ac_config_files="$ac_config_files dlls/sfc/Makefile"
20606
20607 ac_config_files="$ac_config_files dlls/sfc_os/Makefile"
20608
20609 ac_config_files="$ac_config_files dlls/shdoclc/Makefile"
20610
20611 ac_config_files="$ac_config_files dlls/shdocvw/Makefile"
20612
20613 ac_config_files="$ac_config_files dlls/shdocvw/tests/Makefile"
20614
20615 ac_config_files="$ac_config_files dlls/shell32/Makefile"
20616
20617 ac_config_files="$ac_config_files dlls/shell32/tests/Makefile"
20618
20619 ac_config_files="$ac_config_files dlls/shfolder/Makefile"
20620
20621 ac_config_files="$ac_config_files dlls/shlwapi/Makefile"
20622
20623 ac_config_files="$ac_config_files dlls/shlwapi/tests/Makefile"
20624
20625 ac_config_files="$ac_config_files dlls/snmpapi/Makefile"
20626
20627 ac_config_files="$ac_config_files dlls/snmpapi/tests/Makefile"
20628
20629 ac_config_files="$ac_config_files dlls/spoolss/Makefile"
20630
20631 ac_config_files="$ac_config_files dlls/stdole2.tlb/Makefile"
20632
20633 ac_config_files="$ac_config_files dlls/stdole32.tlb/Makefile"
20634
20635 ac_config_files="$ac_config_files dlls/sti/Makefile"
20636
20637 ac_config_files="$ac_config_files dlls/strmiids/Makefile"
20638
20639 ac_config_files="$ac_config_files dlls/svrapi/Makefile"
20640
20641 ac_config_files="$ac_config_files dlls/sxs/Makefile"
20642
20643 ac_config_files="$ac_config_files dlls/tapi32/Makefile"
20644
20645 ac_config_files="$ac_config_files dlls/twain_32/Makefile"
20646
20647 ac_config_files="$ac_config_files dlls/unicows/Makefile"
20648
20649 ac_config_files="$ac_config_files dlls/url/Makefile"
20650
20651 ac_config_files="$ac_config_files dlls/urlmon/Makefile"
20652
20653 ac_config_files="$ac_config_files dlls/urlmon/tests/Makefile"
20654
20655 ac_config_files="$ac_config_files dlls/user32/Makefile"
20656
20657 ac_config_files="$ac_config_files dlls/user32/tests/Makefile"
20658
20659 ac_config_files="$ac_config_files dlls/userenv/Makefile"
20660
20661 ac_config_files="$ac_config_files dlls/usp10/Makefile"
20662
20663 ac_config_files="$ac_config_files dlls/usp10/tests/Makefile"
20664
20665 ac_config_files="$ac_config_files dlls/uuid/Makefile"
20666
20667 ac_config_files="$ac_config_files dlls/uxtheme/Makefile"
20668
20669 ac_config_files="$ac_config_files dlls/uxtheme/tests/Makefile"
20670
20671 ac_config_files="$ac_config_files dlls/vdhcp.vxd/Makefile"
20672
20673 ac_config_files="$ac_config_files dlls/vdmdbg/Makefile"
20674
20675 ac_config_files="$ac_config_files dlls/version/Makefile"
20676
20677 ac_config_files="$ac_config_files dlls/version/tests/Makefile"
20678
20679 ac_config_files="$ac_config_files dlls/vmm.vxd/Makefile"
20680
20681 ac_config_files="$ac_config_files dlls/vnbt.vxd/Makefile"
20682
20683 ac_config_files="$ac_config_files dlls/vnetbios.vxd/Makefile"
20684
20685 ac_config_files="$ac_config_files dlls/vtdapi.vxd/Makefile"
20686
20687 ac_config_files="$ac_config_files dlls/vwin32.vxd/Makefile"
20688
20689 ac_config_files="$ac_config_files dlls/w32skrnl/Makefile"
20690
20691 ac_config_files="$ac_config_files dlls/winealsa.drv/Makefile"
20692
20693 ac_config_files="$ac_config_files dlls/wineaudioio.drv/Makefile"
20694
20695 ac_config_files="$ac_config_files dlls/winecoreaudio.drv/Makefile"
20696
20697 ac_config_files="$ac_config_files dlls/winecrt0/Makefile"
20698
20699 ac_config_files="$ac_config_files dlls/wined3d/Makefile"
20700
20701 ac_config_files="$ac_config_files dlls/winedos/Makefile"
20702
20703 ac_config_files="$ac_config_files dlls/wineesd.drv/Makefile"
20704
20705 ac_config_files="$ac_config_files dlls/winejack.drv/Makefile"
20706
20707 ac_config_files="$ac_config_files dlls/winejoystick.drv/Makefile"
20708
20709 ac_config_files="$ac_config_files dlls/winemp3.acm/Makefile"
20710
20711 ac_config_files="$ac_config_files dlls/winenas.drv/Makefile"
20712
20713 ac_config_files="$ac_config_files dlls/wineoss.drv/Makefile"
20714
20715 ac_config_files="$ac_config_files dlls/wineps.drv/Makefile"
20716
20717 ac_config_files="$ac_config_files dlls/winequartz.drv/Makefile"
20718
20719 ac_config_files="$ac_config_files dlls/winex11.drv/Makefile"
20720
20721 ac_config_files="$ac_config_files dlls/wing32/Makefile"
20722
20723 ac_config_files="$ac_config_files dlls/wininet/Makefile"
20724
20725 ac_config_files="$ac_config_files dlls/wininet/tests/Makefile"
20726
20727 ac_config_files="$ac_config_files dlls/winmm/Makefile"
20728
20729 ac_config_files="$ac_config_files dlls/winmm/tests/Makefile"
20730
20731 ac_config_files="$ac_config_files dlls/winnls32/Makefile"
20732
20733 ac_config_files="$ac_config_files dlls/winscard/Makefile"
20734
20735 ac_config_files="$ac_config_files dlls/winspool.drv/Makefile"
20736
20737 ac_config_files="$ac_config_files dlls/winspool.drv/tests/Makefile"
20738
20739 ac_config_files="$ac_config_files dlls/wintab32/Makefile"
20740
20741 ac_config_files="$ac_config_files dlls/wintrust/Makefile"
20742
20743 ac_config_files="$ac_config_files dlls/wintrust/tests/Makefile"
20744
20745 ac_config_files="$ac_config_files dlls/wldap32/Makefile"
20746
20747 ac_config_files="$ac_config_files dlls/wnaspi32/Makefile"
20748
20749 ac_config_files="$ac_config_files dlls/wow32/Makefile"
20750
20751 ac_config_files="$ac_config_files dlls/ws2_32/Makefile"
20752
20753 ac_config_files="$ac_config_files dlls/ws2_32/tests/Makefile"
20754
20755 ac_config_files="$ac_config_files dlls/wsock32/Makefile"
20756
20757 ac_config_files="$ac_config_files dlls/wtsapi32/Makefile"
20758
20759 ac_config_files="$ac_config_files documentation/Makefile"
20760
20761 ac_config_files="$ac_config_files fonts/Makefile"
20762
20763 ac_config_files="$ac_config_files include/Makefile"
20764
20765 ac_config_files="$ac_config_files libs/Makefile"
20766
20767 ac_config_files="$ac_config_files libs/port/Makefile"
20768
20769 ac_config_files="$ac_config_files libs/wine/Makefile"
20770
20771 ac_config_files="$ac_config_files libs/wpp/Makefile"
20772
20773 ac_config_files="$ac_config_files loader/Makefile"
20774
20775 ac_config_files="$ac_config_files programs/Makefile"
20776
20777 ac_config_files="$ac_config_files programs/clock/Makefile"
20778
20779 ac_config_files="$ac_config_files programs/cmd/Makefile"
20780
20781 ac_config_files="$ac_config_files programs/cmdlgtst/Makefile"
20782
20783 ac_config_files="$ac_config_files programs/control/Makefile"
20784
20785 ac_config_files="$ac_config_files programs/eject/Makefile"
20786
20787 ac_config_files="$ac_config_files programs/expand/Makefile"
20788
20789 ac_config_files="$ac_config_files programs/explorer/Makefile"
20790
20791 ac_config_files="$ac_config_files programs/hh/Makefile"
20792
20793 ac_config_files="$ac_config_files programs/icinfo/Makefile"
20794
20795 ac_config_files="$ac_config_files programs/iexplore/Makefile"
20796
20797 ac_config_files="$ac_config_files programs/msiexec/Makefile"
20798
20799 ac_config_files="$ac_config_files programs/net/Makefile"
20800
20801 ac_config_files="$ac_config_files programs/notepad/Makefile"
20802
20803 ac_config_files="$ac_config_files programs/oleview/Makefile"
20804
20805 ac_config_files="$ac_config_files programs/progman/Makefile"
20806
20807 ac_config_files="$ac_config_files programs/regedit/Makefile"
20808
20809 ac_config_files="$ac_config_files programs/regsvr32/Makefile"
20810
20811 ac_config_files="$ac_config_files programs/rpcss/Makefile"
20812
20813 ac_config_files="$ac_config_files programs/rundll32/Makefile"
20814
20815 ac_config_files="$ac_config_files programs/spoolsv/Makefile"
20816
20817 ac_config_files="$ac_config_files programs/start/Makefile"
20818
20819 ac_config_files="$ac_config_files programs/taskmgr/Makefile"
20820
20821 ac_config_files="$ac_config_files programs/uninstaller/Makefile"
20822
20823 ac_config_files="$ac_config_files programs/view/Makefile"
20824
20825 ac_config_files="$ac_config_files programs/wineboot/Makefile"
20826
20827 ac_config_files="$ac_config_files programs/winebrowser/Makefile"
20828
20829 ac_config_files="$ac_config_files programs/winecfg/Makefile"
20830
20831 ac_config_files="$ac_config_files programs/wineconsole/Makefile"
20832
20833 ac_config_files="$ac_config_files programs/winedbg/Makefile"
20834
20835 ac_config_files="$ac_config_files programs/winedevice/Makefile"
20836
20837 ac_config_files="$ac_config_files programs/winefile/Makefile"
20838
20839 ac_config_files="$ac_config_files programs/winemenubuilder/Makefile"
20840
20841 ac_config_files="$ac_config_files programs/winemine/Makefile"
20842
20843 ac_config_files="$ac_config_files programs/winepath/Makefile"
20844
20845 ac_config_files="$ac_config_files programs/winetest/Makefile"
20846
20847 ac_config_files="$ac_config_files programs/winevdm/Makefile"
20848
20849 ac_config_files="$ac_config_files programs/winhelp/Makefile"
20850
20851 ac_config_files="$ac_config_files programs/winver/Makefile"
20852
20853 ac_config_files="$ac_config_files programs/wordpad/Makefile"
20854
20855 ac_config_files="$ac_config_files programs/xcopy/Makefile"
20856
20857 ac_config_files="$ac_config_files server/Makefile"
20858
20859 ac_config_files="$ac_config_files tools/Makefile"
20860
20861 ac_config_files="$ac_config_files tools/widl/Makefile"
20862
20863 ac_config_files="$ac_config_files tools/winebuild/Makefile"
20864
20865 ac_config_files="$ac_config_files tools/winedump/Makefile"
20866
20867 ac_config_files="$ac_config_files tools/winegcc/Makefile"
20868
20869 ac_config_files="$ac_config_files tools/wmc/Makefile"
20870
20871 ac_config_files="$ac_config_files tools/wrc/Makefile"
20872
20873
20874 cat >confcache <<\_ACEOF
20875 # This file is a shell script that caches the results of configure
20876 # tests run on this system so they can be shared between configure
20877 # scripts and configure runs, see configure's option --config-cache.
20878 # It is not useful on other systems.  If it contains results you don't
20879 # want to keep, you may remove or edit it.
20880 #
20881 # config.status only pays attention to the cache file if you give it
20882 # the --recheck option to rerun configure.
20883 #
20884 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20885 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20886 # following values.
20887
20888 _ACEOF
20889
20890 # The following way of writing the cache mishandles newlines in values,
20891 # but we know of no workaround that is simple, portable, and efficient.
20892 # So, we kill variables containing newlines.
20893 # Ultrix sh set writes to stderr and can't be redirected directly,
20894 # and sets the high bit in the cache file unless we assign to the vars.
20895 (
20896   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20897     eval ac_val=\$$ac_var
20898     case $ac_val in #(
20899     *${as_nl}*)
20900       case $ac_var in #(
20901       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20902 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20903       esac
20904       case $ac_var in #(
20905       _ | IFS | as_nl) ;; #(
20906       *) $as_unset $ac_var ;;
20907       esac ;;
20908     esac
20909   done
20910
20911   (set) 2>&1 |
20912     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20913     *${as_nl}ac_space=\ *)
20914       # `set' does not quote correctly, so add quotes (double-quote
20915       # substitution turns \\\\ into \\, and sed turns \\ into \).
20916       sed -n \
20917         "s/'/'\\\\''/g;
20918           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20919       ;; #(
20920     *)
20921       # `set' quotes correctly as required by POSIX, so do not add quotes.
20922       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20923       ;;
20924     esac |
20925     sort
20926 ) |
20927   sed '
20928      /^ac_cv_env_/b end
20929      t clear
20930      :clear
20931      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20932      t end
20933      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20934      :end' >>confcache
20935 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20936   if test -w "$cache_file"; then
20937     test "x$cache_file" != "x/dev/null" &&
20938       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20939 echo "$as_me: updating cache $cache_file" >&6;}
20940     cat confcache >$cache_file
20941   else
20942     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20943 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20944   fi
20945 fi
20946 rm -f confcache
20947
20948 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20949 # Let make expand exec_prefix.
20950 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20951
20952 DEFS=-DHAVE_CONFIG_H
20953
20954 ac_libobjs=
20955 ac_ltlibobjs=
20956 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20957   # 1. Remove the extension, and $U if already installed.
20958   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20959   ac_i=`echo "$ac_i" | sed "$ac_script"`
20960   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20961   #    will be set to the directory where LIBOBJS objects are built.
20962   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20963   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20964 done
20965 LIBOBJS=$ac_libobjs
20966
20967 LTLIBOBJS=$ac_ltlibobjs
20968
20969
20970
20971 : ${CONFIG_STATUS=./config.status}
20972 ac_clean_files_save=$ac_clean_files
20973 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20974 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20975 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20976 cat >$CONFIG_STATUS <<_ACEOF
20977 #! $SHELL
20978 # Generated by $as_me.
20979 # Run this file to recreate the current configuration.
20980 # Compiler output produced by configure, useful for debugging
20981 # configure, is in config.log if it exists.
20982
20983 debug=false
20984 ac_cs_recheck=false
20985 ac_cs_silent=false
20986 SHELL=\${CONFIG_SHELL-$SHELL}
20987 _ACEOF
20988
20989 cat >>$CONFIG_STATUS <<\_ACEOF
20990 ## --------------------- ##
20991 ## M4sh Initialization.  ##
20992 ## --------------------- ##
20993
20994 # Be more Bourne compatible
20995 DUALCASE=1; export DUALCASE # for MKS sh
20996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20997   emulate sh
20998   NULLCMD=:
20999   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21000   # is contrary to our usage.  Disable this feature.
21001   alias -g '${1+"$@"}'='"$@"'
21002   setopt NO_GLOB_SUBST
21003 else
21004   case `(set -o) 2>/dev/null` in
21005   *posix*) set -o posix ;;
21006 esac
21007
21008 fi
21009
21010
21011
21012
21013 # PATH needs CR
21014 # Avoid depending upon Character Ranges.
21015 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21016 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21017 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21018 as_cr_digits='0123456789'
21019 as_cr_alnum=$as_cr_Letters$as_cr_digits
21020
21021 # The user is always right.
21022 if test "${PATH_SEPARATOR+set}" != set; then
21023   echo "#! /bin/sh" >conf$$.sh
21024   echo  "exit 0"   >>conf$$.sh
21025   chmod +x conf$$.sh
21026   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21027     PATH_SEPARATOR=';'
21028   else
21029     PATH_SEPARATOR=:
21030   fi
21031   rm -f conf$$.sh
21032 fi
21033
21034 # Support unset when possible.
21035 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21036   as_unset=unset
21037 else
21038   as_unset=false
21039 fi
21040
21041
21042 # IFS
21043 # We need space, tab and new line, in precisely that order.  Quoting is
21044 # there to prevent editors from complaining about space-tab.
21045 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21046 # splitting by setting IFS to empty value.)
21047 as_nl='
21048 '
21049 IFS=" ""        $as_nl"
21050
21051 # Find who we are.  Look in the path if we contain no directory separator.
21052 case $0 in
21053   *[\\/]* ) as_myself=$0 ;;
21054   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21055 for as_dir in $PATH
21056 do
21057   IFS=$as_save_IFS
21058   test -z "$as_dir" && as_dir=.
21059   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21060 done
21061 IFS=$as_save_IFS
21062
21063      ;;
21064 esac
21065 # We did not find ourselves, most probably we were run as `sh COMMAND'
21066 # in which case we are not to be found in the path.
21067 if test "x$as_myself" = x; then
21068   as_myself=$0
21069 fi
21070 if test ! -f "$as_myself"; then
21071   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21072   { (exit 1); exit 1; }
21073 fi
21074
21075 # Work around bugs in pre-3.0 UWIN ksh.
21076 for as_var in ENV MAIL MAILPATH
21077 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21078 done
21079 PS1='$ '
21080 PS2='> '
21081 PS4='+ '
21082
21083 # NLS nuisances.
21084 for as_var in \
21085   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21086   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21087   LC_TELEPHONE LC_TIME
21088 do
21089   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21090     eval $as_var=C; export $as_var
21091   else
21092     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21093   fi
21094 done
21095
21096 # Required to use basename.
21097 if expr a : '\(a\)' >/dev/null 2>&1 &&
21098    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21099   as_expr=expr
21100 else
21101   as_expr=false
21102 fi
21103
21104 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21105   as_basename=basename
21106 else
21107   as_basename=false
21108 fi
21109
21110
21111 # Name of the executable.
21112 as_me=`$as_basename -- "$0" ||
21113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21114          X"$0" : 'X\(//\)$' \| \
21115          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21116 echo X/"$0" |
21117     sed '/^.*\/\([^/][^/]*\)\/*$/{
21118             s//\1/
21119             q
21120           }
21121           /^X\/\(\/\/\)$/{
21122             s//\1/
21123             q
21124           }
21125           /^X\/\(\/\).*/{
21126             s//\1/
21127             q
21128           }
21129           s/.*/./; q'`
21130
21131 # CDPATH.
21132 $as_unset CDPATH
21133
21134
21135
21136   as_lineno_1=$LINENO
21137   as_lineno_2=$LINENO
21138   test "x$as_lineno_1" != "x$as_lineno_2" &&
21139   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21140
21141   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21142   # uniformly replaced by the line number.  The first 'sed' inserts a
21143   # line-number line after each line using $LINENO; the second 'sed'
21144   # does the real work.  The second script uses 'N' to pair each
21145   # line-number line with the line containing $LINENO, and appends
21146   # trailing '-' during substitution so that $LINENO is not a special
21147   # case at line end.
21148   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21149   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21150   # E. McMahon (1931-1989) for sed's syntax.  :-)
21151   sed -n '
21152     p
21153     /[$]LINENO/=
21154   ' <$as_myself |
21155     sed '
21156       s/[$]LINENO.*/&-/
21157       t lineno
21158       b
21159       :lineno
21160       N
21161       :loop
21162       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21163       t loop
21164       s/-\n.*//
21165     ' >$as_me.lineno &&
21166   chmod +x "$as_me.lineno" ||
21167     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21168    { (exit 1); exit 1; }; }
21169
21170   # Don't try to exec as it changes $[0], causing all sort of problems
21171   # (the dirname of $[0] is not the place where we might find the
21172   # original and so on.  Autoconf is especially sensitive to this).
21173   . "./$as_me.lineno"
21174   # Exit status is that of the last command.
21175   exit
21176 }
21177
21178
21179 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21180   as_dirname=dirname
21181 else
21182   as_dirname=false
21183 fi
21184
21185 ECHO_C= ECHO_N= ECHO_T=
21186 case `echo -n x` in
21187 -n*)
21188   case `echo 'x\c'` in
21189   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21190   *)   ECHO_C='\c';;
21191   esac;;
21192 *)
21193   ECHO_N='-n';;
21194 esac
21195
21196 if expr a : '\(a\)' >/dev/null 2>&1 &&
21197    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21198   as_expr=expr
21199 else
21200   as_expr=false
21201 fi
21202
21203 rm -f conf$$ conf$$.exe conf$$.file
21204 if test -d conf$$.dir; then
21205   rm -f conf$$.dir/conf$$.file
21206 else
21207   rm -f conf$$.dir
21208   mkdir conf$$.dir
21209 fi
21210 echo >conf$$.file
21211 if ln -s conf$$.file conf$$ 2>/dev/null; then
21212   as_ln_s='ln -s'
21213   # ... but there are two gotchas:
21214   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21215   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21216   # In both cases, we have to default to `cp -p'.
21217   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21218     as_ln_s='cp -p'
21219 elif ln conf$$.file conf$$ 2>/dev/null; then
21220   as_ln_s=ln
21221 else
21222   as_ln_s='cp -p'
21223 fi
21224 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21225 rmdir conf$$.dir 2>/dev/null
21226
21227 if mkdir -p . 2>/dev/null; then
21228   as_mkdir_p=:
21229 else
21230   test -d ./-p && rmdir ./-p
21231   as_mkdir_p=false
21232 fi
21233
21234 if test -x / >/dev/null 2>&1; then
21235   as_test_x='test -x'
21236 else
21237   if ls -dL / >/dev/null 2>&1; then
21238     as_ls_L_option=L
21239   else
21240     as_ls_L_option=
21241   fi
21242   as_test_x='
21243     eval sh -c '\''
21244       if test -d "$1"; then
21245         test -d "$1/.";
21246       else
21247         case $1 in
21248         -*)set "./$1";;
21249         esac;
21250         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21251         ???[sx]*):;;*)false;;esac;fi
21252     '\'' sh
21253   '
21254 fi
21255 as_executable_p=$as_test_x
21256
21257 # Sed expression to map a string onto a valid CPP name.
21258 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21259
21260 # Sed expression to map a string onto a valid variable name.
21261 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21262
21263
21264 exec 6>&1
21265
21266 # Save the log message, to keep $[0] and so on meaningful, and to
21267 # report actual input values of CONFIG_FILES etc. instead of their
21268 # values after options handling.
21269 ac_log="
21270 This file was extended by Wine $as_me 0.9.40, which was
21271 generated by GNU Autoconf 2.61.  Invocation command line was
21272
21273   CONFIG_FILES    = $CONFIG_FILES
21274   CONFIG_HEADERS  = $CONFIG_HEADERS
21275   CONFIG_LINKS    = $CONFIG_LINKS
21276   CONFIG_COMMANDS = $CONFIG_COMMANDS
21277   $ $0 $@
21278
21279 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21280 "
21281
21282 _ACEOF
21283
21284 cat >>$CONFIG_STATUS <<_ACEOF
21285 # Files that config.status was made for.
21286 config_files="$ac_config_files"
21287 config_headers="$ac_config_headers"
21288 config_commands="$ac_config_commands"
21289
21290 _ACEOF
21291
21292 cat >>$CONFIG_STATUS <<\_ACEOF
21293 ac_cs_usage="\
21294 \`$as_me' instantiates files from templates according to the
21295 current configuration.
21296
21297 Usage: $0 [OPTIONS] [FILE]...
21298
21299   -h, --help       print this help, then exit
21300   -V, --version    print version number and configuration settings, then exit
21301   -q, --quiet      do not print progress messages
21302   -d, --debug      don't remove temporary files
21303       --recheck    update $as_me by reconfiguring in the same conditions
21304   --file=FILE[:TEMPLATE]
21305                    instantiate the configuration file FILE
21306   --header=FILE[:TEMPLATE]
21307                    instantiate the configuration header FILE
21308
21309 Configuration files:
21310 $config_files
21311
21312 Configuration headers:
21313 $config_headers
21314
21315 Configuration commands:
21316 $config_commands
21317
21318 Report bugs to <bug-autoconf@gnu.org>."
21319
21320 _ACEOF
21321 cat >>$CONFIG_STATUS <<_ACEOF
21322 ac_cs_version="\\
21323 Wine config.status 0.9.40
21324 configured by $0, generated by GNU Autoconf 2.61,
21325   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21326
21327 Copyright (C) 2006 Free Software Foundation, Inc.
21328 This config.status script is free software; the Free Software Foundation
21329 gives unlimited permission to copy, distribute and modify it."
21330
21331 ac_pwd='$ac_pwd'
21332 srcdir='$srcdir'
21333 INSTALL='$INSTALL'
21334 _ACEOF
21335
21336 cat >>$CONFIG_STATUS <<\_ACEOF
21337 # If no file are specified by the user, then we need to provide default
21338 # value.  By we need to know if files were specified by the user.
21339 ac_need_defaults=:
21340 while test $# != 0
21341 do
21342   case $1 in
21343   --*=*)
21344     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21345     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21346     ac_shift=:
21347     ;;
21348   *)
21349     ac_option=$1
21350     ac_optarg=$2
21351     ac_shift=shift
21352     ;;
21353   esac
21354
21355   case $ac_option in
21356   # Handling of the options.
21357   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21358     ac_cs_recheck=: ;;
21359   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21360     echo "$ac_cs_version"; exit ;;
21361   --debug | --debu | --deb | --de | --d | -d )
21362     debug=: ;;
21363   --file | --fil | --fi | --f )
21364     $ac_shift
21365     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21366     ac_need_defaults=false;;
21367   --header | --heade | --head | --hea )
21368     $ac_shift
21369     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21370     ac_need_defaults=false;;
21371   --he | --h)
21372     # Conflict between --help and --header
21373     { echo "$as_me: error: ambiguous option: $1
21374 Try \`$0 --help' for more information." >&2
21375    { (exit 1); exit 1; }; };;
21376   --help | --hel | -h )
21377     echo "$ac_cs_usage"; exit ;;
21378   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21379   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21380     ac_cs_silent=: ;;
21381
21382   # This is an error.
21383   -*) { echo "$as_me: error: unrecognized option: $1
21384 Try \`$0 --help' for more information." >&2
21385    { (exit 1); exit 1; }; } ;;
21386
21387   *) ac_config_targets="$ac_config_targets $1"
21388      ac_need_defaults=false ;;
21389
21390   esac
21391   shift
21392 done
21393
21394 ac_configure_extra_args=
21395
21396 if $ac_cs_silent; then
21397   exec 6>/dev/null
21398   ac_configure_extra_args="$ac_configure_extra_args --silent"
21399 fi
21400
21401 _ACEOF
21402 cat >>$CONFIG_STATUS <<_ACEOF
21403 if \$ac_cs_recheck; then
21404   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21405   CONFIG_SHELL=$SHELL
21406   export CONFIG_SHELL
21407   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21408 fi
21409
21410 _ACEOF
21411 cat >>$CONFIG_STATUS <<\_ACEOF
21412 exec 5>>config.log
21413 {
21414   echo
21415   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21416 ## Running $as_me. ##
21417 _ASBOX
21418   echo "$ac_log"
21419 } >&5
21420
21421 _ACEOF
21422 cat >>$CONFIG_STATUS <<_ACEOF
21423 _ACEOF
21424
21425 cat >>$CONFIG_STATUS <<\_ACEOF
21426
21427 # Handling of arguments.
21428 for ac_config_target in $ac_config_targets
21429 do
21430   case $ac_config_target in
21431     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21432     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
21433     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
21434     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
21435     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
21436     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
21437     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
21438     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21439     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
21440     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
21441     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
21442     "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
21443     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
21444     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21445     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
21446     "dlls/acledit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/acledit/Makefile" ;;
21447     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
21448     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
21449     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
21450     "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
21451     "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
21452     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
21453     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
21454     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
21455     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
21456     "dlls/browseui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/Makefile" ;;
21457     "dlls/browseui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/tests/Makefile" ;;
21458     "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
21459     "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
21460     "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
21461     "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
21462     "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
21463     "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
21464     "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
21465     "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
21466     "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
21467     "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
21468     "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
21469     "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
21470     "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
21471     "dlls/credui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/credui/Makefile" ;;
21472     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
21473     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
21474     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
21475     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
21476     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
21477     "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
21478     "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
21479     "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
21480     "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
21481     "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
21482     "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
21483     "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
21484     "dlls/d3drm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/tests/Makefile" ;;
21485     "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
21486     "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
21487     "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
21488     "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
21489     "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
21490     "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
21491     "dlls/ddrawex/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddrawex/Makefile" ;;
21492     "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
21493     "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
21494     "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
21495     "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
21496     "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
21497     "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
21498     "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
21499     "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
21500     "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
21501     "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
21502     "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
21503     "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
21504     "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
21505     "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
21506     "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
21507     "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
21508     "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
21509     "dlls/dplayx/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/tests/Makefile" ;;
21510     "dlls/dpnaddr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnaddr/Makefile" ;;
21511     "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
21512     "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
21513     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
21514     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
21515     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
21516     "dlls/dwmapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dwmapi/Makefile" ;;
21517     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
21518     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
21519     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
21520     "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
21521     "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
21522     "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
21523     "dlls/gdiplus/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/Makefile" ;;
21524     "dlls/gdiplus/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/tests/Makefile" ;;
21525     "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
21526     "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
21527     "dlls/hal/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hal/Makefile" ;;
21528     "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
21529     "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
21530     "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
21531     "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
21532     "dlls/hnetcfg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hnetcfg/Makefile" ;;
21533     "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
21534     "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
21535     "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
21536     "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
21537     "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
21538     "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
21539     "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
21540     "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
21541     "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
21542     "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
21543     "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
21544     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
21545     "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
21546     "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
21547     "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
21548     "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
21549     "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
21550     "dlls/localui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localui/Makefile" ;;
21551     "dlls/localui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localui/tests/Makefile" ;;
21552     "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
21553     "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
21554     "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
21555     "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
21556     "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
21557     "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
21558     "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
21559     "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
21560     "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
21561     "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
21562     "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
21563     "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
21564     "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
21565     "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
21566     "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
21567     "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
21568     "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
21569     "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
21570     "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
21571     "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
21572     "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
21573     "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
21574     "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
21575     "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
21576     "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
21577     "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
21578     "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
21579     "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
21580     "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
21581     "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
21582     "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
21583     "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
21584     "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
21585     "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
21586     "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
21587     "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
21588     "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
21589     "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
21590     "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
21591     "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
21592     "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
21593     "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
21594     "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
21595     "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
21596     "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
21597     "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
21598     "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
21599     "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
21600     "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
21601     "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
21602     "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
21603     "dlls/ntoskrnl.exe/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntoskrnl.exe/Makefile" ;;
21604     "dlls/ntprint/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntprint/Makefile" ;;
21605     "dlls/ntprint/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntprint/tests/Makefile" ;;
21606     "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
21607     "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
21608     "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
21609     "dlls/odbccp32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/tests/Makefile" ;;
21610     "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
21611     "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21612     "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21613     "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21614     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21615     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21616     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21617     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21618     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
21619     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
21620     "dlls/pdh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/Makefile" ;;
21621     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
21622     "dlls/printui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/printui/Makefile" ;;
21623     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21624     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
21625     "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
21626     "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
21627     "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21628     "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
21629     "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
21630     "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
21631     "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
21632     "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21633     "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21634     "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21635     "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21636     "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21637     "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21638     "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21639     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21640     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21641     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
21642     "dlls/schannel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/Makefile" ;;
21643     "dlls/schannel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/tests/Makefile" ;;
21644     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21645     "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21646     "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21647     "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21648     "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
21649     "dlls/serialui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/tests/Makefile" ;;
21650     "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21651     "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21652     "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
21653     "dlls/sfc_os/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc_os/Makefile" ;;
21654     "dlls/shdoclc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdoclc/Makefile" ;;
21655     "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21656     "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21657     "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21658     "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21659     "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21660     "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21661     "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21662     "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
21663     "dlls/snmpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/tests/Makefile" ;;
21664     "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
21665     "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21666     "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21667     "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21668     "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
21669     "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
21670     "dlls/sxs/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sxs/Makefile" ;;
21671     "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21672     "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21673     "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21674     "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21675     "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21676     "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
21677     "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;;
21678     "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;;
21679     "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
21680     "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21681     "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21682     "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21683     "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
21684     "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
21685     "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21686     "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21687     "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21688     "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21689     "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21690     "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21691     "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21692     "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21693     "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21694     "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
21695     "dlls/winealsa.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winealsa.drv/Makefile" ;;
21696     "dlls/wineaudioio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineaudioio.drv/Makefile" ;;
21697     "dlls/winecoreaudio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecoreaudio.drv/Makefile" ;;
21698     "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21699     "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21700     "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
21701     "dlls/wineesd.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineesd.drv/Makefile" ;;
21702     "dlls/winejack.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejack.drv/Makefile" ;;
21703     "dlls/winejoystick.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejoystick.drv/Makefile" ;;
21704     "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
21705     "dlls/winenas.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winenas.drv/Makefile" ;;
21706     "dlls/wineoss.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineoss.drv/Makefile" ;;
21707     "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
21708     "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
21709     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
21710     "dlls/wing32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wing32/Makefile" ;;
21711     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21712     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
21713     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
21714     "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
21715     "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
21716     "dlls/winscard/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winscard/Makefile" ;;
21717     "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
21718     "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
21719     "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
21720     "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
21721     "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
21722     "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
21723     "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
21724     "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
21725     "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
21726     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
21727     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
21728     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
21729     "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
21730     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
21731     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21732     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
21733     "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
21734     "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
21735     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
21736     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
21737     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21738     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
21739     "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
21740     "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21741     "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
21742     "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
21743     "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
21744     "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
21745     "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
21746     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
21747     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
21748     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
21749     "programs/net/Makefile") CONFIG_FILES="$CONFIG_FILES programs/net/Makefile" ;;
21750     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
21751     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
21752     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
21753     "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
21754     "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
21755     "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
21756     "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
21757     "programs/spoolsv/Makefile") CONFIG_FILES="$CONFIG_FILES programs/spoolsv/Makefile" ;;
21758     "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
21759     "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
21760     "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21761     "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
21762     "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21763     "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21764     "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21765     "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21766     "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
21767     "programs/winedevice/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedevice/Makefile" ;;
21768     "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21769     "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21770     "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21771     "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21772     "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21773     "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21774     "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21775     "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21776     "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
21777     "programs/xcopy/Makefile") CONFIG_FILES="$CONFIG_FILES programs/xcopy/Makefile" ;;
21778     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21779     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21780     "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21781     "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21782     "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21783     "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21784     "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21785     "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21786
21787   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21788 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21789    { (exit 1); exit 1; }; };;
21790   esac
21791 done
21792
21793
21794 # If the user did not use the arguments to specify the items to instantiate,
21795 # then the envvar interface is used.  Set only those that are not.
21796 # We use the long form for the default assignment because of an extremely
21797 # bizarre bug on SunOS 4.1.3.
21798 if $ac_need_defaults; then
21799   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21800   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21801   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21802 fi
21803
21804 # Have a temporary directory for convenience.  Make it in the build tree
21805 # simply because there is no reason against having it here, and in addition,
21806 # creating and moving files from /tmp can sometimes cause problems.
21807 # Hook for its removal unless debugging.
21808 # Note that there is a small window in which the directory will not be cleaned:
21809 # after its creation but before its name has been assigned to `$tmp'.
21810 $debug ||
21811 {
21812   tmp=
21813   trap 'exit_status=$?
21814   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21815 ' 0
21816   trap '{ (exit 1); exit 1; }' 1 2 13 15
21817 }
21818 # Create a (secure) tmp directory for tmp files.
21819
21820 {
21821   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21822   test -n "$tmp" && test -d "$tmp"
21823 }  ||
21824 {
21825   tmp=./conf$$-$RANDOM
21826   (umask 077 && mkdir "$tmp")
21827 } ||
21828 {
21829    echo "$me: cannot create a temporary directory in ." >&2
21830    { (exit 1); exit 1; }
21831 }
21832
21833 #
21834 # Set up the sed scripts for CONFIG_FILES section.
21835 #
21836
21837 # No need to generate the scripts if there are no CONFIG_FILES.
21838 # This happens for instance when ./config.status config.h
21839 if test -n "$CONFIG_FILES"; then
21840
21841 _ACEOF
21842
21843 # Create sed commands to just substitute file output variables.
21844
21845 # Remaining file output variables are in a fragment that also has non-file
21846 # output varibles.
21847
21848
21849
21850 ac_delim='%!_!# '
21851 for ac_last_try in false false false false false :; do
21852   cat >conf$$subs.sed <<_ACEOF
21853 SHELL!$SHELL$ac_delim
21854 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21855 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21856 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21857 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21858 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21859 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21860 exec_prefix!$exec_prefix$ac_delim
21861 prefix!$prefix$ac_delim
21862 program_transform_name!$program_transform_name$ac_delim
21863 bindir!$bindir$ac_delim
21864 sbindir!$sbindir$ac_delim
21865 libexecdir!$libexecdir$ac_delim
21866 datarootdir!$datarootdir$ac_delim
21867 datadir!$datadir$ac_delim
21868 sysconfdir!$sysconfdir$ac_delim
21869 sharedstatedir!$sharedstatedir$ac_delim
21870 localstatedir!$localstatedir$ac_delim
21871 includedir!$includedir$ac_delim
21872 oldincludedir!$oldincludedir$ac_delim
21873 docdir!$docdir$ac_delim
21874 infodir!$infodir$ac_delim
21875 htmldir!$htmldir$ac_delim
21876 dvidir!$dvidir$ac_delim
21877 pdfdir!$pdfdir$ac_delim
21878 psdir!$psdir$ac_delim
21879 libdir!$libdir$ac_delim
21880 localedir!$localedir$ac_delim
21881 mandir!$mandir$ac_delim
21882 DEFS!$DEFS$ac_delim
21883 ECHO_C!$ECHO_C$ac_delim
21884 ECHO_N!$ECHO_N$ac_delim
21885 ECHO_T!$ECHO_T$ac_delim
21886 LIBS!$LIBS$ac_delim
21887 build_alias!$build_alias$ac_delim
21888 host_alias!$host_alias$ac_delim
21889 target_alias!$target_alias$ac_delim
21890 build!$build$ac_delim
21891 build_cpu!$build_cpu$ac_delim
21892 build_vendor!$build_vendor$ac_delim
21893 build_os!$build_os$ac_delim
21894 host!$host$ac_delim
21895 host_cpu!$host_cpu$ac_delim
21896 host_vendor!$host_vendor$ac_delim
21897 host_os!$host_os$ac_delim
21898 WIN16_FILES!$WIN16_FILES$ac_delim
21899 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
21900 SET_MAKE!$SET_MAKE$ac_delim
21901 CC!$CC$ac_delim
21902 CFLAGS!$CFLAGS$ac_delim
21903 LDFLAGS!$LDFLAGS$ac_delim
21904 CPPFLAGS!$CPPFLAGS$ac_delim
21905 ac_ct_CC!$ac_ct_CC$ac_delim
21906 EXEEXT!$EXEEXT$ac_delim
21907 OBJEXT!$OBJEXT$ac_delim
21908 CXX!$CXX$ac_delim
21909 CXXFLAGS!$CXXFLAGS$ac_delim
21910 ac_ct_CXX!$ac_ct_CXX$ac_delim
21911 CPPBIN!$CPPBIN$ac_delim
21912 TOOLSDIR!$TOOLSDIR$ac_delim
21913 XMKMF!$XMKMF$ac_delim
21914 CPP!$CPP$ac_delim
21915 X_CFLAGS!$X_CFLAGS$ac_delim
21916 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
21917 X_LIBS!$X_LIBS$ac_delim
21918 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
21919 FLEX!$FLEX$ac_delim
21920 BISON!$BISON$ac_delim
21921 AS!$AS$ac_delim
21922 ac_ct_AS!$ac_ct_AS$ac_delim
21923 LD!$LD$ac_delim
21924 AR!$AR$ac_delim
21925 RANLIB!$RANLIB$ac_delim
21926 STRIP!$STRIP$ac_delim
21927 WINDRES!$WINDRES$ac_delim
21928 LN_S!$LN_S$ac_delim
21929 LN!$LN$ac_delim
21930 GREP!$GREP$ac_delim
21931 EGREP!$EGREP$ac_delim
21932 LDCONFIG!$LDCONFIG$ac_delim
21933 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21934 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21935 _ACEOF
21936
21937   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
21938     break
21939   elif $ac_last_try; then
21940     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21941 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21942    { (exit 1); exit 1; }; }
21943   else
21944     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21945   fi
21946 done
21947
21948 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21949 if test -n "$ac_eof"; then
21950   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21951   ac_eof=`expr $ac_eof + 1`
21952 fi
21953
21954 cat >>$CONFIG_STATUS <<_ACEOF
21955 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21956 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21957 /^[      ]*@MAKE_RULES@[         ]*$/{
21958 r $MAKE_RULES
21959 d
21960 }
21961 /^[      ]*@MAKE_DLL_RULES@[     ]*$/{
21962 r $MAKE_DLL_RULES
21963 d
21964 }
21965 /^[      ]*@MAKE_IMPLIB_RULES@[  ]*$/{
21966 r $MAKE_IMPLIB_RULES
21967 d
21968 }
21969 /^[      ]*@MAKE_TEST_RULES@[    ]*$/{
21970 r $MAKE_TEST_RULES
21971 d
21972 }
21973 /^[      ]*@MAKE_PROG_RULES@[    ]*$/{
21974 r $MAKE_PROG_RULES
21975 d
21976 }
21977 _ACEOF
21978 sed '
21979 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21980 s/^/s,@/; s/!/@,|#_!!_#|/
21981 :n
21982 t n
21983 s/'"$ac_delim"'$/,g/; t
21984 s/$/\\/; p
21985 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21986 ' >>$CONFIG_STATUS <conf$$subs.sed
21987 rm -f conf$$subs.sed
21988 cat >>$CONFIG_STATUS <<_ACEOF
21989 CEOF$ac_eof
21990 _ACEOF
21991
21992
21993 ac_delim='%!_!# '
21994 for ac_last_try in false false false false false :; do
21995   cat >conf$$subs.sed <<_ACEOF
21996 INSTALL_DATA!$INSTALL_DATA$ac_delim
21997 LINT!$LINT$ac_delim
21998 LINTFLAGS!$LINTFLAGS$ac_delim
21999 FONTFORGE!$FONTFORGE$ac_delim
22000 PKG_CONFIG!$PKG_CONFIG$ac_delim
22001 PRELINK!$PRELINK$ac_delim
22002 LIBPTHREAD!$LIBPTHREAD$ac_delim
22003 XLIB!$XLIB$ac_delim
22004 XFILES!$XFILES$ac_delim
22005 OPENGLFILES!$OPENGLFILES$ac_delim
22006 GLU32FILES!$GLU32FILES$ac_delim
22007 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
22008 QUARTZFILES!$QUARTZFILES$ac_delim
22009 DLLEXT!$DLLEXT$ac_delim
22010 DLLFLAGS!$DLLFLAGS$ac_delim
22011 LDSHARED!$LDSHARED$ac_delim
22012 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
22013 LIBEXT!$LIBEXT$ac_delim
22014 IMPLIBEXT!$IMPLIBEXT$ac_delim
22015 LDRPATH_INSTALL!$LDRPATH_INSTALL$ac_delim
22016 LDRPATH_LOCAL!$LDRPATH_LOCAL$ac_delim
22017 LDD!$LDD$ac_delim
22018 DLLTOOL!$DLLTOOL$ac_delim
22019 DLLWRAP!$DLLWRAP$ac_delim
22020 MINGWAR!$MINGWAR$ac_delim
22021 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
22022 IOKITLIB!$IOKITLIB$ac_delim
22023 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
22024 DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
22025 COREAUDIO!$COREAUDIO$ac_delim
22026 CARBONLIB!$CARBONLIB$ac_delim
22027 CROSSTEST!$CROSSTEST$ac_delim
22028 CROSSCC!$CROSSCC$ac_delim
22029 CROSSWINDRES!$CROSSWINDRES$ac_delim
22030 NASLIBS!$NASLIBS$ac_delim
22031 XML2LIBS!$XML2LIBS$ac_delim
22032 XML2INCL!$XML2INCL$ac_delim
22033 XSLTLIBS!$XSLTLIBS$ac_delim
22034 XSLTINCL!$XSLTINCL$ac_delim
22035 HALINCL!$HALINCL$ac_delim
22036 sane_devel!$sane_devel$ac_delim
22037 SANEINCL!$SANEINCL$ac_delim
22038 gphoto2_devel!$gphoto2_devel$ac_delim
22039 gphoto2port_devel!$gphoto2port_devel$ac_delim
22040 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
22041 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
22042 ICULIBS!$ICULIBS$ac_delim
22043 RESOLVLIBS!$RESOLVLIBS$ac_delim
22044 LCMSLIBS!$LCMSLIBS$ac_delim
22045 LDAPLIBS!$LDAPLIBS$ac_delim
22046 FREETYPELIBS!$FREETYPELIBS$ac_delim
22047 FREETYPEINCL!$FREETYPEINCL$ac_delim
22048 ft_devel!$ft_devel$ac_delim
22049 ft_devel2!$ft_devel2$ac_delim
22050 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
22051 ESDCONFIG!$ESDCONFIG$ac_delim
22052 ESDLIBS!$ESDLIBS$ac_delim
22053 ESDINCL!$ESDINCL$ac_delim
22054 ALSALIBS!$ALSALIBS$ac_delim
22055 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
22056 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
22057 BUILTINFLAG!$BUILTINFLAG$ac_delim
22058 LDPATH!$LDPATH$ac_delim
22059 CRTLIBS!$CRTLIBS$ac_delim
22060 SOCKETLIBS!$SOCKETLIBS$ac_delim
22061 MAIN_BINARY!$MAIN_BINARY$ac_delim
22062 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
22063 LIBDL!$LIBDL$ac_delim
22064 LIBPOLL!$LIBPOLL$ac_delim
22065 DEPENDENCIES!$DEPENDENCIES$ac_delim
22066 LIBOBJS!$LIBOBJS$ac_delim
22067 LTLIBOBJS!$LTLIBOBJS$ac_delim
22068 _ACEOF
22069
22070   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 72; then
22071     break
22072   elif $ac_last_try; then
22073     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22074 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22075    { (exit 1); exit 1; }; }
22076   else
22077     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22078   fi
22079 done
22080
22081 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22082 if test -n "$ac_eof"; then
22083   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22084   ac_eof=`expr $ac_eof + 1`
22085 fi
22086
22087 cat >>$CONFIG_STATUS <<_ACEOF
22088 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22090 _ACEOF
22091 sed '
22092 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22093 s/^/s,@/; s/!/@,|#_!!_#|/
22094 :n
22095 t n
22096 s/'"$ac_delim"'$/,g/; t
22097 s/$/\\/; p
22098 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22099 ' >>$CONFIG_STATUS <conf$$subs.sed
22100 rm -f conf$$subs.sed
22101 cat >>$CONFIG_STATUS <<_ACEOF
22102 :end
22103 s/|#_!!_#|//g
22104 CEOF$ac_eof
22105 _ACEOF
22106
22107
22108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22110 # trailing colons and then remove the whole line if VPATH becomes empty
22111 # (actually we leave an empty line to preserve line numbers).
22112 if test "x$srcdir" = x.; then
22113   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22114 s/:*\$(srcdir):*/:/
22115 s/:*\${srcdir}:*/:/
22116 s/:*@srcdir@:*/:/
22117 s/^\([^=]*=[     ]*\):*/\1/
22118 s/:*$//
22119 s/^[^=]*=[       ]*$//
22120 }'
22121 fi
22122
22123 cat >>$CONFIG_STATUS <<\_ACEOF
22124 fi # test -n "$CONFIG_FILES"
22125
22126
22127 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22128 do
22129   case $ac_tag in
22130   :[FHLC]) ac_mode=$ac_tag; continue;;
22131   esac
22132   case $ac_mode$ac_tag in
22133   :[FHL]*:*);;
22134   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22135 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22136    { (exit 1); exit 1; }; };;
22137   :[FH]-) ac_tag=-:-;;
22138   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22139   esac
22140   ac_save_IFS=$IFS
22141   IFS=:
22142   set x $ac_tag
22143   IFS=$ac_save_IFS
22144   shift
22145   ac_file=$1
22146   shift
22147
22148   case $ac_mode in
22149   :L) ac_source=$1;;
22150   :[FH])
22151     ac_file_inputs=
22152     for ac_f
22153     do
22154       case $ac_f in
22155       -) ac_f="$tmp/stdin";;
22156       *) # Look for the file first in the build tree, then in the source tree
22157          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22158          # because $ac_f cannot contain `:'.
22159          test -f "$ac_f" ||
22160            case $ac_f in
22161            [\\/$]*) false;;
22162            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22163            esac ||
22164            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22165 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22166    { (exit 1); exit 1; }; };;
22167       esac
22168       ac_file_inputs="$ac_file_inputs $ac_f"
22169     done
22170
22171     # Let's still pretend it is `configure' which instantiates (i.e., don't
22172     # use $as_me), people would be surprised to read:
22173     #    /* config.h.  Generated by config.status.  */
22174     configure_input="Generated from "`IFS=:
22175           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22176     if test x"$ac_file" != x-; then
22177       configure_input="$ac_file.  $configure_input"
22178       { echo "$as_me:$LINENO: creating $ac_file" >&5
22179 echo "$as_me: creating $ac_file" >&6;}
22180     fi
22181
22182     case $ac_tag in
22183     *:-:* | *:-) cat >"$tmp/stdin";;
22184     esac
22185     ;;
22186   esac
22187
22188   ac_dir=`$as_dirname -- "$ac_file" ||
22189 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22190          X"$ac_file" : 'X\(//\)[^/]' \| \
22191          X"$ac_file" : 'X\(//\)$' \| \
22192          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22193 echo X"$ac_file" |
22194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22195             s//\1/
22196             q
22197           }
22198           /^X\(\/\/\)[^/].*/{
22199             s//\1/
22200             q
22201           }
22202           /^X\(\/\/\)$/{
22203             s//\1/
22204             q
22205           }
22206           /^X\(\/\).*/{
22207             s//\1/
22208             q
22209           }
22210           s/.*/./; q'`
22211   { as_dir="$ac_dir"
22212   case $as_dir in #(
22213   -*) as_dir=./$as_dir;;
22214   esac
22215   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22216     as_dirs=
22217     while :; do
22218       case $as_dir in #(
22219       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22220       *) as_qdir=$as_dir;;
22221       esac
22222       as_dirs="'$as_qdir' $as_dirs"
22223       as_dir=`$as_dirname -- "$as_dir" ||
22224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22225          X"$as_dir" : 'X\(//\)[^/]' \| \
22226          X"$as_dir" : 'X\(//\)$' \| \
22227          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22228 echo X"$as_dir" |
22229     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22230             s//\1/
22231             q
22232           }
22233           /^X\(\/\/\)[^/].*/{
22234             s//\1/
22235             q
22236           }
22237           /^X\(\/\/\)$/{
22238             s//\1/
22239             q
22240           }
22241           /^X\(\/\).*/{
22242             s//\1/
22243             q
22244           }
22245           s/.*/./; q'`
22246       test -d "$as_dir" && break
22247     done
22248     test -z "$as_dirs" || eval "mkdir $as_dirs"
22249   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22250 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22251    { (exit 1); exit 1; }; }; }
22252   ac_builddir=.
22253
22254 case "$ac_dir" in
22255 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22256 *)
22257   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22258   # A ".." for each directory in $ac_dir_suffix.
22259   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22260   case $ac_top_builddir_sub in
22261   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22262   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22263   esac ;;
22264 esac
22265 ac_abs_top_builddir=$ac_pwd
22266 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22267 # for backward compatibility:
22268 ac_top_builddir=$ac_top_build_prefix
22269
22270 case $srcdir in
22271   .)  # We are building in place.
22272     ac_srcdir=.
22273     ac_top_srcdir=$ac_top_builddir_sub
22274     ac_abs_top_srcdir=$ac_pwd ;;
22275   [\\/]* | ?:[\\/]* )  # Absolute name.
22276     ac_srcdir=$srcdir$ac_dir_suffix;
22277     ac_top_srcdir=$srcdir
22278     ac_abs_top_srcdir=$srcdir ;;
22279   *) # Relative name.
22280     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22281     ac_top_srcdir=$ac_top_build_prefix$srcdir
22282     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22283 esac
22284 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22285
22286
22287   case $ac_mode in
22288   :F)
22289   #
22290   # CONFIG_FILE
22291   #
22292
22293   case $INSTALL in
22294   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22295   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22296   esac
22297 _ACEOF
22298
22299 cat >>$CONFIG_STATUS <<\_ACEOF
22300 # If the template does not know about datarootdir, expand it.
22301 # FIXME: This hack should be removed a few years after 2.60.
22302 ac_datarootdir_hack=; ac_datarootdir_seen=
22303
22304 case `sed -n '/datarootdir/ {
22305   p
22306   q
22307 }
22308 /@datadir@/p
22309 /@docdir@/p
22310 /@infodir@/p
22311 /@localedir@/p
22312 /@mandir@/p
22313 ' $ac_file_inputs` in
22314 *datarootdir*) ac_datarootdir_seen=yes;;
22315 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22316   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22317 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22318 _ACEOF
22319 cat >>$CONFIG_STATUS <<_ACEOF
22320   ac_datarootdir_hack='
22321   s&@datadir@&$datadir&g
22322   s&@docdir@&$docdir&g
22323   s&@infodir@&$infodir&g
22324   s&@localedir@&$localedir&g
22325   s&@mandir@&$mandir&g
22326     s&\\\${datarootdir}&$datarootdir&g' ;;
22327 esac
22328 _ACEOF
22329
22330 # Neutralize VPATH when `$srcdir' = `.'.
22331 # Shell code in configure.ac might set extrasub.
22332 # FIXME: do we really want to maintain this feature?
22333 cat >>$CONFIG_STATUS <<_ACEOF
22334   sed "$ac_vpsub
22335 $extrasub
22336 _ACEOF
22337 cat >>$CONFIG_STATUS <<\_ACEOF
22338 :t
22339 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22340 s&@configure_input@&$configure_input&;t t
22341 s&@top_builddir@&$ac_top_builddir_sub&;t t
22342 s&@srcdir@&$ac_srcdir&;t t
22343 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22344 s&@top_srcdir@&$ac_top_srcdir&;t t
22345 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22346 s&@builddir@&$ac_builddir&;t t
22347 s&@abs_builddir@&$ac_abs_builddir&;t t
22348 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22349 s&@INSTALL@&$ac_INSTALL&;t t
22350 $ac_datarootdir_hack
22351 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22352
22353 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22354   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22355   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22356   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22357 which seems to be undefined.  Please make sure it is defined." >&5
22358 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22359 which seems to be undefined.  Please make sure it is defined." >&2;}
22360
22361   rm -f "$tmp/stdin"
22362   case $ac_file in
22363   -) cat "$tmp/out"; rm -f "$tmp/out";;
22364   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22365   esac
22366  ;;
22367   :H)
22368   #
22369   # CONFIG_HEADER
22370   #
22371 _ACEOF
22372
22373 # Transform confdefs.h into a sed script `conftest.defines', that
22374 # substitutes the proper values into config.h.in to produce config.h.
22375 rm -f conftest.defines conftest.tail
22376 # First, append a space to every undef/define line, to ease matching.
22377 echo 's/$/ /' >conftest.defines
22378 # Then, protect against being on the right side of a sed subst, or in
22379 # an unquoted here document, in config.status.  If some macros were
22380 # called several times there might be several #defines for the same
22381 # symbol, which is useless.  But do not sort them, since the last
22382 # AC_DEFINE must be honored.
22383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22384 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22385 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22386 # PARAMS is the parameter list in the macro definition--in most cases, it's
22387 # just an empty string.
22388 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22389 ac_dB='\\)[      (].*,\\1define\\2'
22390 ac_dC=' '
22391 ac_dD=' ,'
22392
22393 uniq confdefs.h |
22394   sed -n '
22395         t rset
22396         :rset
22397         s/^[     ]*#[    ]*define[       ][      ]*//
22398         t ok
22399         d
22400         :ok
22401         s/[\\&,]/\\&/g
22402         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22403         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22404   ' >>conftest.defines
22405
22406 # Remove the space that was appended to ease matching.
22407 # Then replace #undef with comments.  This is necessary, for
22408 # example, in the case of _POSIX_SOURCE, which is predefined and required
22409 # on some systems where configure will not decide to define it.
22410 # (The regexp can be short, since the line contains either #define or #undef.)
22411 echo 's/ $//
22412 s,^[     #]*u.*,/* & */,' >>conftest.defines
22413
22414 # Break up conftest.defines:
22415 ac_max_sed_lines=50
22416
22417 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22418 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22419 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22420 # et cetera.
22421 ac_in='$ac_file_inputs'
22422 ac_out='"$tmp/out1"'
22423 ac_nxt='"$tmp/out2"'
22424
22425 while :
22426 do
22427   # Write a here document:
22428     cat >>$CONFIG_STATUS <<_ACEOF
22429     # First, check the format of the line:
22430     cat >"\$tmp/defines.sed" <<\\CEOF
22431 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22432 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22433 b
22434 :def
22435 _ACEOF
22436   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22437   echo 'CEOF
22438     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22439   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22440   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22441   grep . conftest.tail >/dev/null || break
22442   rm -f conftest.defines
22443   mv conftest.tail conftest.defines
22444 done
22445 rm -f conftest.defines conftest.tail
22446
22447 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22448 cat >>$CONFIG_STATUS <<\_ACEOF
22449   if test x"$ac_file" != x-; then
22450     echo "/* $configure_input  */" >"$tmp/config.h"
22451     cat "$ac_result" >>"$tmp/config.h"
22452     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22453       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22454 echo "$as_me: $ac_file is unchanged" >&6;}
22455     else
22456       rm -f $ac_file
22457       mv "$tmp/config.h" $ac_file
22458     fi
22459   else
22460     echo "/* $configure_input  */"
22461     cat "$ac_result"
22462   fi
22463   rm -f "$tmp/out12"
22464  ;;
22465
22466   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22467 echo "$as_me: executing $ac_file commands" >&6;}
22468  ;;
22469   esac
22470
22471
22472   case $ac_file$ac_mode in
22473     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
22474     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
22475 echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
22476     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
22477 echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
22478     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
22479 echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
22480     "dlls/user32/resources":C) test -d "dlls/user32/resources" || ({ echo "$as_me:$LINENO: creating dlls/user32/resources" >&5
22481 echo "$as_me: creating dlls/user32/resources" >&6;} && mkdir "dlls/user32/resources") ;;
22482     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
22483 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
22484     "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
22485 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
22486
22487   esac
22488 done # for ac_tag
22489
22490
22491 { (exit 0); exit 0; }
22492 _ACEOF
22493 chmod +x $CONFIG_STATUS
22494 ac_clean_files=$ac_clean_files_save
22495
22496
22497 # configure is writing to config.log, and then calls config.status.
22498 # config.status does its own redirection, appending to config.log.
22499 # Unfortunately, on DOS this fails, as config.log is still kept open
22500 # by configure, so config.status won't be able to write to it; its
22501 # output is simply discarded.  So we exec the FD to /dev/null,
22502 # effectively closing config.log, so it can be properly (re)opened and
22503 # appended to by config.status.  When coming back to configure, we
22504 # need to make the FD available again.
22505 if test "$no_create" != yes; then
22506   ac_cs_success=:
22507   ac_config_status_args=
22508   test "$silent" = yes &&
22509     ac_config_status_args="$ac_config_status_args --quiet"
22510   exec 5>/dev/null
22511   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22512   exec 5>>config.log
22513   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22514   # would make configure fail if this is the last instruction.
22515   $ac_cs_success || { (exit 1); exit 1; }
22516 fi
22517
22518
22519
22520 if test "$no_create" = "yes"
22521 then
22522   exit 0
22523 fi
22524
22525 if test "$verbose" = "yes"
22526 then
22527     if test "$ac_cv_header_capi20_h" != "yes" -o "$ac_cv_header_linux_capi_h" != "yes"
22528   then
22529     echo >&2
22530     { echo "$as_me:$LINENO: libcapi20 development files not found." >&5
22531 echo "$as_me: libcapi20 development files not found." >&6;}
22532     { echo "$as_me:$LINENO: Wine will be built without ISDN support. (capi2032.dll)" >&5
22533 echo "$as_me: Wine will be built without ISDN support. (capi2032.dll)" >&6;}
22534   fi
22535
22536     if test "$ac_cv_header_cups_cups_h" != "yes"
22537   then
22538     echo >&2
22539     { echo "$as_me:$LINENO: libcups development files not found." >&5
22540 echo "$as_me: libcups development files not found." >&6;}
22541     { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
22542 echo "$as_me: Wine will be built without CUPS support." >&6;}
22543   fi
22544
22545
22546     if test "$ac_cv_header_gphoto2_camera_h" != "yes"
22547   then
22548     echo >&2
22549     { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
22550 echo "$as_me: libgphoto2 development files not found." >&6;}
22551     if test "$ac_cv_header_sane_sane_h" = "yes"
22552     then
22553       { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
22554 echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
22555     else
22556       { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
22557 echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
22558     fi
22559   fi
22560
22561       if test "$ac_cv_header_hal_libhal_h" != "yes"
22562   then
22563     echo >&2
22564     { echo "$as_me:$LINENO: libhal development files not found." >&5
22565 echo "$as_me: libhal development files not found." >&6;}
22566     { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
22567 echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
22568   fi
22569
22570     if test "$ac_cv_header_unicode_ubidi_h" != "yes"
22571   then
22572     echo >&2
22573     { echo "$as_me:$LINENO: libicu development files not found." >&5
22574 echo "$as_me: libicu development files not found." >&6;}
22575     { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
22576 echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
22577   fi
22578
22579     if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
22580   then
22581     echo >&2
22582     { echo "$as_me:$LINENO: liblcms development files not found." >&5
22583 echo "$as_me: liblcms development files not found." >&6;}
22584     { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
22585 echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
22586   fi
22587
22588     if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
22589   then
22590     echo >&2
22591     { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
22592 echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
22593     { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
22594 echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
22595   fi
22596
22597     if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
22598   then
22599     echo >&2
22600     { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
22601 echo "$as_me: lib(n)curses development files not found." >&6;}
22602     { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
22603 echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
22604   fi
22605
22606     if test "$ac_cv_header_sane_sane_h" != "yes"
22607   then
22608     echo >&2
22609     { echo "$as_me:$LINENO: libsane development files not found." >&5
22610 echo "$as_me: libsane development files not found." >&6;}
22611     { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
22612 echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
22613   fi
22614
22615       if test "$have_x" = "yes"
22616   then
22617         if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
22618     then
22619       echo >&2
22620       { echo "$as_me:$LINENO: libxext development files not found." >&5
22621 echo "$as_me: libxext development files not found." >&6;}
22622       { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
22623 echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
22624     fi
22625
22626         if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
22627     then
22628       echo >&2
22629       { echo "$as_me:$LINENO: libXrandr development files not found." >&5
22630 echo "$as_me: libXrandr development files not found." >&6;}
22631       { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
22632 echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
22633     fi
22634
22635         if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
22636     then
22637       echo >&2
22638       { echo "$as_me:$LINENO: libXrender development files not found." >&5
22639 echo "$as_me: libXrender development files not found." >&6;}
22640       { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
22641 echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
22642     fi
22643
22644         if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
22645     then
22646       echo >&2
22647       { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
22648 echo "$as_me: libXxf86vm development files not found." >&6;}
22649       { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
22650 echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
22651     fi
22652   fi
22653
22654     if test "$ac_cv_header_libxml_parser_h" != "yes"
22655   then
22656     echo >&2
22657     { echo "$as_me:$LINENO: libxml2 development files not found." >&5
22658 echo "$as_me: libxml2 development files not found." >&6;}
22659     { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
22660 echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
22661   fi
22662
22663     if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
22664   then
22665     echo >&2
22666     { echo "$as_me:$LINENO: libxslt development files not found." >&5
22667 echo "$as_me: libxslt development files not found." >&6;}
22668     { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
22669 echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
22670   fi
22671 fi
22672
22673
22674 if test "$have_x" = "no"
22675 then
22676   echo >&2
22677   { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
22678 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
22679   { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
22680 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
22681   { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
22682 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
22683   { echo "$as_me:$LINENO: WARNING:  packages of Xlib/Xfree86 at the very least." >&5
22684 echo "$as_me: WARNING:  packages of Xlib/Xfree86 at the very least." >&2;}
22685 fi
22686
22687 if test -z "$OPENGLFILES"
22688 then
22689   echo >&2
22690   { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
22691 echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
22692   { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
22693 echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
22694   if test "$wine_cv_opengl_headers_found" = "no"
22695   then
22696     { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
22697 echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
22698   fi
22699   if test "$wine_cv_opengl_header_version_OK" = "no"
22700   then
22701     { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
22702 echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
22703   elif test "$ac_cv_lib_GL_glXCreateContext" = "no"
22704   then
22705      if test -f /usr/X11R6/lib/libGL.a
22706      then
22707         { echo "$as_me:$LINENO: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22708 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&5
22709 echo "$as_me: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22710 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&2;}
22711      else
22712         { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
22713 echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
22714      fi
22715   fi
22716 fi
22717
22718 if test "$wine_cv_msg_freetype" = "yes"
22719 then
22720   echo >&2
22721   { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
22722 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
22723   { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
22724 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
22725   { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
22726 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
22727   { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
22728 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
22729 fi
22730
22731 if test -z "$FONTSSUBDIRS"
22732 then
22733   echo >&2
22734   if test "$FONTFORGE" = "false"
22735   then
22736     { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
22737 echo "$as_me: WARNING: FontForge is missing." >&2;}
22738   else
22739     { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
22740 echo "$as_me: WARNING: FreeType is missing." >&2;}
22741   fi
22742   { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
22743 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
22744 fi
22745
22746 if test -z "$ALSALIBS" -a \
22747         -z "$AUDIOIOLIBS" -a \
22748         -z "$NASLIBS" -a \
22749         -z "$ESD_LIBS" -a \
22750         -z "$ac_cv_lib_soname_jack" -a \
22751         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
22752         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
22753         "$ac_cv_header_soundcard_h" != "yes"
22754 then
22755   echo >&2
22756   { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
22757 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
22758   { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
22759 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
22760   { echo "$as_me:$LINENO: WARNING: ALSA, EsounD, AudioIO, Jack, NAS and OSS" >&5
22761 echo "$as_me: WARNING: ALSA, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
22762 fi
22763
22764 echo
22765 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
22766 echo
22767