snmpapi: Add a bunch of tests.
[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.29.
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.29'
578 PACKAGE_STRING='Wine 0.9.29'
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 LEX
685 LEX_OUTPUT_ROOT
686 LEXLIB
687 XLEX
688 BISON
689 AS
690 ac_ct_AS
691 LD
692 AR
693 RANLIB
694 STRIP
695 WINDRES
696 LN_S
697 LN
698 GREP
699 EGREP
700 LDCONFIG
701 INSTALL_PROGRAM
702 INSTALL_SCRIPT
703 INSTALL_DATA
704 LINT
705 LINTFLAGS
706 FONTFORGE
707 PKG_CONFIG
708 PRELINK
709 LIBPTHREAD
710 XLIB
711 XFILES
712 OPENGLFILES
713 GLU32FILES
714 OPENGL_LIBS
715 QUARTZFILES
716 NASLIBS
717 XML2LIBS
718 XML2INCL
719 XSLTLIBS
720 XSLTINCL
721 HALINCL
722 sane_devel
723 SANELIBS
724 SANEINCL
725 gphoto2_devel
726 gphoto2port_devel
727 GPHOTO2LIBS
728 GPHOTO2INCL
729 ICULIBS
730 RESOLVLIBS
731 LCMSLIBS
732 LDAPLIBS
733 FREETYPELIBS
734 FREETYPEINCL
735 ft_devel
736 ft_devel2
737 FONTSSUBDIRS
738 ARTSCCONFIG
739 ARTSLIBS
740 ARTSINCL
741 ESDCONFIG
742 ESDLIBS
743 ESDINCL
744 ALSALIBS
745 AUDIOIOLIBS
746 EXTRACFLAGS
747 BUILTINFLAG
748 DLLEXT
749 DLLFLAGS
750 LDSHARED
751 LDDLLFLAGS
752 LIBEXT
753 IMPLIBEXT
754 LIBWINE_LDFLAGS
755 DLLTOOL
756 DLLWRAP
757 MINGWAR
758 COREFOUNDATIONLIB
759 IOKITLIB
760 LDEXECFLAGS
761 DISKARBITRATIONLIB
762 COREAUDIO
763 CARBONLIB
764 CROSSTEST
765 CROSSCC
766 CROSSWINDRES
767 LDPATH
768 CRTLIBS
769 SOCKETLIBS
770 MAIN_BINARY
771 EXTRA_BINARIES
772 LDD
773 LIBDL
774 LIBPOLL
775 DEPENDENCIES
776 LIBOBJS
777 LTLIBOBJS'
778 ac_subst_files='MAKE_RULES
779 MAKE_DLL_RULES
780 MAKE_IMPLIB_RULES
781 MAKE_TEST_RULES
782 MAKE_PROG_RULES'
783       ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CXX
792 CXXFLAGS
793 CCC
794 XMKMF
795 CPP'
796
797
798 # Initialize some variables set by options.
799 ac_init_help=
800 ac_init_version=false
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
843
844 ac_prev=
845 ac_dashdash=
846 for ac_option
847 do
848   # If the previous option needs an argument, assign it.
849   if test -n "$ac_prev"; then
850     eval $ac_prev=\$ac_option
851     ac_prev=
852     continue
853   fi
854
855   case $ac_option in
856   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857   *)    ac_optarg=yes ;;
858   esac
859
860   # Accept the important Cygnus configure options, so we can diagnose typos.
861
862   case $ac_dashdash$ac_option in
863   --)
864     ac_dashdash=yes ;;
865
866   -bindir | --bindir | --bindi | --bind | --bin | --bi)
867     ac_prev=bindir ;;
868   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869     bindir=$ac_optarg ;;
870
871   -build | --build | --buil | --bui | --bu)
872     ac_prev=build_alias ;;
873   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874     build_alias=$ac_optarg ;;
875
876   -cache-file | --cache-file | --cache-fil | --cache-fi \
877   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878     ac_prev=cache_file ;;
879   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881     cache_file=$ac_optarg ;;
882
883   --config-cache | -C)
884     cache_file=config.cache ;;
885
886   -datadir | --datadir | --datadi | --datad)
887     ac_prev=datadir ;;
888   -datadir=* | --datadir=* | --datadi=* | --datad=*)
889     datadir=$ac_optarg ;;
890
891   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892   | --dataroo | --dataro | --datar)
893     ac_prev=datarootdir ;;
894   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896     datarootdir=$ac_optarg ;;
897
898   -disable-* | --disable-*)
899     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900     # Reject names that are not valid shell variable names.
901     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
902       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
903    { (exit 1); exit 1; }; }
904     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
905     eval enable_$ac_feature=no ;;
906
907   -docdir | --docdir | --docdi | --doc | --do)
908     ac_prev=docdir ;;
909   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910     docdir=$ac_optarg ;;
911
912   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913     ac_prev=dvidir ;;
914   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915     dvidir=$ac_optarg ;;
916
917   -enable-* | --enable-*)
918     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
921       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922    { (exit 1); exit 1; }; }
923     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
924     eval enable_$ac_feature=\$ac_optarg ;;
925
926   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928   | --exec | --exe | --ex)
929     ac_prev=exec_prefix ;;
930   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932   | --exec=* | --exe=* | --ex=*)
933     exec_prefix=$ac_optarg ;;
934
935   -gas | --gas | --ga | --g)
936     # Obsolete; use --with-gas.
937     with_gas=yes ;;
938
939   -help | --help | --hel | --he | -h)
940     ac_init_help=long ;;
941   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942     ac_init_help=recursive ;;
943   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944     ac_init_help=short ;;
945
946   -host | --host | --hos | --ho)
947     ac_prev=host_alias ;;
948   -host=* | --host=* | --hos=* | --ho=*)
949     host_alias=$ac_optarg ;;
950
951   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952     ac_prev=htmldir ;;
953   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954   | --ht=*)
955     htmldir=$ac_optarg ;;
956
957   -includedir | --includedir | --includedi | --included | --include \
958   | --includ | --inclu | --incl | --inc)
959     ac_prev=includedir ;;
960   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961   | --includ=* | --inclu=* | --incl=* | --inc=*)
962     includedir=$ac_optarg ;;
963
964   -infodir | --infodir | --infodi | --infod | --info | --inf)
965     ac_prev=infodir ;;
966   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967     infodir=$ac_optarg ;;
968
969   -libdir | --libdir | --libdi | --libd)
970     ac_prev=libdir ;;
971   -libdir=* | --libdir=* | --libdi=* | --libd=*)
972     libdir=$ac_optarg ;;
973
974   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975   | --libexe | --libex | --libe)
976     ac_prev=libexecdir ;;
977   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978   | --libexe=* | --libex=* | --libe=*)
979     libexecdir=$ac_optarg ;;
980
981   -localedir | --localedir | --localedi | --localed | --locale)
982     ac_prev=localedir ;;
983   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984     localedir=$ac_optarg ;;
985
986   -localstatedir | --localstatedir | --localstatedi | --localstated \
987   | --localstate | --localstat | --localsta | --localst | --locals)
988     ac_prev=localstatedir ;;
989   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991     localstatedir=$ac_optarg ;;
992
993   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994     ac_prev=mandir ;;
995   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996     mandir=$ac_optarg ;;
997
998   -nfp | --nfp | --nf)
999     # Obsolete; use --without-fp.
1000     with_fp=no ;;
1001
1002   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003   | --no-cr | --no-c | -n)
1004     no_create=yes ;;
1005
1006   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008     no_recursion=yes ;;
1009
1010   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012   | --oldin | --oldi | --old | --ol | --o)
1013     ac_prev=oldincludedir ;;
1014   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017     oldincludedir=$ac_optarg ;;
1018
1019   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020     ac_prev=prefix ;;
1021   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022     prefix=$ac_optarg ;;
1023
1024   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025   | --program-pre | --program-pr | --program-p)
1026     ac_prev=program_prefix ;;
1027   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029     program_prefix=$ac_optarg ;;
1030
1031   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032   | --program-suf | --program-su | --program-s)
1033     ac_prev=program_suffix ;;
1034   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036     program_suffix=$ac_optarg ;;
1037
1038   -program-transform-name | --program-transform-name \
1039   | --program-transform-nam | --program-transform-na \
1040   | --program-transform-n | --program-transform- \
1041   | --program-transform | --program-transfor \
1042   | --program-transfo | --program-transf \
1043   | --program-trans | --program-tran \
1044   | --progr-tra | --program-tr | --program-t)
1045     ac_prev=program_transform_name ;;
1046   -program-transform-name=* | --program-transform-name=* \
1047   | --program-transform-nam=* | --program-transform-na=* \
1048   | --program-transform-n=* | --program-transform-=* \
1049   | --program-transform=* | --program-transfor=* \
1050   | --program-transfo=* | --program-transf=* \
1051   | --program-trans=* | --program-tran=* \
1052   | --progr-tra=* | --program-tr=* | --program-t=*)
1053     program_transform_name=$ac_optarg ;;
1054
1055   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056     ac_prev=pdfdir ;;
1057   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058     pdfdir=$ac_optarg ;;
1059
1060   -psdir | --psdir | --psdi | --psd | --ps)
1061     ac_prev=psdir ;;
1062   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063     psdir=$ac_optarg ;;
1064
1065   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066   | -silent | --silent | --silen | --sile | --sil)
1067     silent=yes ;;
1068
1069   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070     ac_prev=sbindir ;;
1071   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072   | --sbi=* | --sb=*)
1073     sbindir=$ac_optarg ;;
1074
1075   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077   | --sharedst | --shareds | --shared | --share | --shar \
1078   | --sha | --sh)
1079     ac_prev=sharedstatedir ;;
1080   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083   | --sha=* | --sh=*)
1084     sharedstatedir=$ac_optarg ;;
1085
1086   -site | --site | --sit)
1087     ac_prev=site ;;
1088   -site=* | --site=* | --sit=*)
1089     site=$ac_optarg ;;
1090
1091   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092     ac_prev=srcdir ;;
1093   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094     srcdir=$ac_optarg ;;
1095
1096   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097   | --syscon | --sysco | --sysc | --sys | --sy)
1098     ac_prev=sysconfdir ;;
1099   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101     sysconfdir=$ac_optarg ;;
1102
1103   -target | --target | --targe | --targ | --tar | --ta | --t)
1104     ac_prev=target_alias ;;
1105   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106     target_alias=$ac_optarg ;;
1107
1108   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109     verbose=yes ;;
1110
1111   -version | --version | --versio | --versi | --vers | -V)
1112     ac_init_version=: ;;
1113
1114   -with-* | --with-*)
1115     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1118       { echo "$as_me: error: invalid package name: $ac_package" >&2
1119    { (exit 1); exit 1; }; }
1120     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1121     eval with_$ac_package=\$ac_optarg ;;
1122
1123   -without-* | --without-*)
1124     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125     # Reject names that are not valid shell variable names.
1126     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1127       { echo "$as_me: error: invalid package name: $ac_package" >&2
1128    { (exit 1); exit 1; }; }
1129     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1130     eval with_$ac_package=no ;;
1131
1132   --x)
1133     # Obsolete; use --with-x.
1134     with_x=yes ;;
1135
1136   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137   | --x-incl | --x-inc | --x-in | --x-i)
1138     ac_prev=x_includes ;;
1139   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141     x_includes=$ac_optarg ;;
1142
1143   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145     ac_prev=x_libraries ;;
1146   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148     x_libraries=$ac_optarg ;;
1149
1150   -*) { echo "$as_me: error: unrecognized option: $ac_option
1151 Try \`$0 --help' for more information." >&2
1152    { (exit 1); exit 1; }; }
1153     ;;
1154
1155   *=*)
1156     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1159       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1160    { (exit 1); exit 1; }; }
1161     eval $ac_envvar=\$ac_optarg
1162     export $ac_envvar ;;
1163
1164   *)
1165     # FIXME: should be removed in autoconf 3.0.
1166     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170     ;;
1171
1172   esac
1173 done
1174
1175 if test -n "$ac_prev"; then
1176   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177   { echo "$as_me: error: missing argument to $ac_option" >&2
1178    { (exit 1); exit 1; }; }
1179 fi
1180
1181 # Be sure to have absolute directory names.
1182 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183                 datadir sysconfdir sharedstatedir localstatedir includedir \
1184                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185                 libdir localedir mandir
1186 do
1187   eval ac_val=\$$ac_var
1188   case $ac_val in
1189     [\\/$]* | ?:[\\/]* )  continue;;
1190     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1191   esac
1192   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1193    { (exit 1); exit 1; }; }
1194 done
1195
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1199 build=$build_alias
1200 host=$host_alias
1201 target=$target_alias
1202
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x; then
1205   if test "x$build_alias" = x; then
1206     cross_compiling=maybe
1207     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1208     If a cross compiler is detected then cross compile mode will be used." >&2
1209   elif test "x$build_alias" != "x$host_alias"; then
1210     cross_compiling=yes
1211   fi
1212 fi
1213
1214 ac_tool_prefix=
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216
1217 test "$silent" = yes && exec 6>/dev/null
1218
1219
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223   { echo "$as_me: error: Working directory cannot be determined" >&2
1224    { (exit 1); exit 1; }; }
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226   { echo "$as_me: error: pwd does not report name of working directory" >&2
1227    { (exit 1); exit 1; }; }
1228
1229
1230 # Find the source files, if location was not specified.
1231 if test -z "$srcdir"; then
1232   ac_srcdir_defaulted=yes
1233   # Try the directory containing this script, then the parent directory.
1234   ac_confdir=`$as_dirname -- "$0" ||
1235 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236          X"$0" : 'X\(//\)[^/]' \| \
1237          X"$0" : 'X\(//\)$' \| \
1238          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1239 echo X"$0" |
1240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241             s//\1/
1242             q
1243           }
1244           /^X\(\/\/\)[^/].*/{
1245             s//\1/
1246             q
1247           }
1248           /^X\(\/\/\)$/{
1249             s//\1/
1250             q
1251           }
1252           /^X\(\/\).*/{
1253             s//\1/
1254             q
1255           }
1256           s/.*/./; q'`
1257   srcdir=$ac_confdir
1258   if test ! -r "$srcdir/$ac_unique_file"; then
1259     srcdir=..
1260   fi
1261 else
1262   ac_srcdir_defaulted=no
1263 fi
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1267    { (exit 1); exit 1; }; }
1268 fi
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 ac_abs_confdir=`(
1271         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1272    { (exit 1); exit 1; }; }
1273         pwd)`
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276   srcdir=.
1277 fi
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1281 case $srcdir in
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 esac
1284 for ac_var in $ac_precious_vars; do
1285   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286   eval ac_env_${ac_var}_value=\$${ac_var}
1287   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 done
1290
1291 #
1292 # Report the --help message.
1293 #
1294 if test "$ac_init_help" = "long"; then
1295   # Omit some internal or obsolete options to make the list less imposing.
1296   # This message is too long to be a string in the A/UX 3.1 sh.
1297   cat <<_ACEOF
1298 \`configure' configures Wine 0.9.29 to adapt to many kinds of systems.
1299
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE.  See below for descriptions of some of the useful variables.
1304
1305 Defaults for the options are specified in brackets.
1306
1307 Configuration:
1308   -h, --help              display this help and exit
1309       --help=short        display options specific to this package
1310       --help=recursive    display the short help of all the included packages
1311   -V, --version           display version information and exit
1312   -q, --quiet, --silent   do not print \`checking...' messages
1313       --cache-file=FILE   cache test results in FILE [disabled]
1314   -C, --config-cache      alias for \`--cache-file=config.cache'
1315   -n, --no-create         do not create output files
1316       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1317
1318 Installation directories:
1319   --prefix=PREFIX         install architecture-independent files in PREFIX
1320                           [$ac_default_prefix]
1321   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1322                           [PREFIX]
1323
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1328
1329 For better control, use the options below.
1330
1331 Fine tuning of the installation directories:
1332   --bindir=DIR           user executables [EPREFIX/bin]
1333   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1334   --libexecdir=DIR       program executables [EPREFIX/libexec]
1335   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1336   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1337   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1338   --libdir=DIR           object code libraries [EPREFIX/lib]
1339   --includedir=DIR       C header files [PREFIX/include]
1340   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1341   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1342   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1343   --infodir=DIR          info documentation [DATAROOTDIR/info]
1344   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1345   --mandir=DIR           man documentation [DATAROOTDIR/man]
1346   --docdir=DIR           documentation root [DATAROOTDIR/doc/wine]
1347   --htmldir=DIR          html documentation [DOCDIR]
1348   --dvidir=DIR           dvi documentation [DOCDIR]
1349   --pdfdir=DIR           pdf documentation [DOCDIR]
1350   --psdir=DIR            ps documentation [DOCDIR]
1351 _ACEOF
1352
1353   cat <<\_ACEOF
1354
1355 X features:
1356   --x-includes=DIR    X include files are in DIR
1357   --x-libraries=DIR   X library files are in DIR
1358
1359 System types:
1360   --build=BUILD     configure for building on BUILD [guessed]
1361   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1362 _ACEOF
1363 fi
1364
1365 if test -n "$ac_init_help"; then
1366   case $ac_init_help in
1367      short | recursive ) echo "Configuration of Wine 0.9.29:";;
1368    esac
1369   cat <<\_ACEOF
1370
1371 Optional Features:
1372   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1373   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1374   --disable-win16         do not include Win16 support
1375   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1376                           binaries)
1377
1378 Optional Packages:
1379   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1380   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1381   --without-opengl        do not use OpenGL
1382   --with-wine-tools=<dir> use Wine tools from directory <dir>
1383   --with-x                use the X Window System
1384
1385 Some influential environment variables:
1386   CC          C compiler command
1387   CFLAGS      C compiler flags
1388   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1389               nonstandard directory <lib dir>
1390   LIBS        libraries to pass to the linker, e.g. -l<library>
1391   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1392               you have headers in a nonstandard directory <include dir>
1393   CXX         C++ compiler command
1394   CXXFLAGS    C++ compiler flags
1395   XMKMF       Path to xmkmf, Makefile generator for X Window System
1396   CPP         C preprocessor
1397
1398 Use these variables to override the choices made by `configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1400
1401 Report bugs to <wine-devel@winehq.org>.
1402 _ACEOF
1403 ac_status=$?
1404 fi
1405
1406 if test "$ac_init_help" = "recursive"; then
1407   # If there are subdirs, report their specific --help.
1408   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409     test -d "$ac_dir" || continue
1410     ac_builddir=.
1411
1412 case "$ac_dir" in
1413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *)
1415   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1416   # A ".." for each directory in $ac_dir_suffix.
1417   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1418   case $ac_top_builddir_sub in
1419   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421   esac ;;
1422 esac
1423 ac_abs_top_builddir=$ac_pwd
1424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1425 # for backward compatibility:
1426 ac_top_builddir=$ac_top_build_prefix
1427
1428 case $srcdir in
1429   .)  # We are building in place.
1430     ac_srcdir=.
1431     ac_top_srcdir=$ac_top_builddir_sub
1432     ac_abs_top_srcdir=$ac_pwd ;;
1433   [\\/]* | ?:[\\/]* )  # Absolute name.
1434     ac_srcdir=$srcdir$ac_dir_suffix;
1435     ac_top_srcdir=$srcdir
1436     ac_abs_top_srcdir=$srcdir ;;
1437   *) # Relative name.
1438     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439     ac_top_srcdir=$ac_top_build_prefix$srcdir
1440     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1441 esac
1442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1443
1444     cd "$ac_dir" || { ac_status=$?; continue; }
1445     # Check for guested configure.
1446     if test -f "$ac_srcdir/configure.gnu"; then
1447       echo &&
1448       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449     elif test -f "$ac_srcdir/configure"; then
1450       echo &&
1451       $SHELL "$ac_srcdir/configure" --help=recursive
1452     else
1453       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454     fi || ac_status=$?
1455     cd "$ac_pwd" || { ac_status=$?; break; }
1456   done
1457 fi
1458
1459 test -n "$ac_init_help" && exit $ac_status
1460 if $ac_init_version; then
1461   cat <<\_ACEOF
1462 Wine configure 0.9.29
1463 generated by GNU Autoconf 2.61
1464
1465 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1466 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1469 _ACEOF
1470   exit
1471 fi
1472 cat >config.log <<_ACEOF
1473 This file contains any messages produced by compilers while
1474 running configure, to aid debugging if configure makes a mistake.
1475
1476 It was created by Wine $as_me 0.9.29, which was
1477 generated by GNU Autoconf 2.61.  Invocation command line was
1478
1479   $ $0 $@
1480
1481 _ACEOF
1482 exec 5>>config.log
1483 {
1484 cat <<_ASUNAME
1485 ## --------- ##
1486 ## Platform. ##
1487 ## --------- ##
1488
1489 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1490 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1491 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1492 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1493 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1494
1495 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1496 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1497
1498 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1499 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1500 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1501 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1502 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1503 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1504 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1505
1506 _ASUNAME
1507
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509 for as_dir in $PATH
1510 do
1511   IFS=$as_save_IFS
1512   test -z "$as_dir" && as_dir=.
1513   echo "PATH: $as_dir"
1514 done
1515 IFS=$as_save_IFS
1516
1517 } >&5
1518
1519 cat >&5 <<_ACEOF
1520
1521
1522 ## ----------- ##
1523 ## Core tests. ##
1524 ## ----------- ##
1525
1526 _ACEOF
1527
1528
1529 # Keep a trace of the command line.
1530 # Strip out --no-create and --no-recursion so they do not pile up.
1531 # Strip out --silent because we don't want to record it for future runs.
1532 # Also quote any args containing shell meta-characters.
1533 # Make two passes to allow for proper duplicate-argument suppression.
1534 ac_configure_args=
1535 ac_configure_args0=
1536 ac_configure_args1=
1537 ac_must_keep_next=false
1538 for ac_pass in 1 2
1539 do
1540   for ac_arg
1541   do
1542     case $ac_arg in
1543     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1544     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1545     | -silent | --silent | --silen | --sile | --sil)
1546       continue ;;
1547     *\'*)
1548       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1549     esac
1550     case $ac_pass in
1551     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1552     2)
1553       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1554       if test $ac_must_keep_next = true; then
1555         ac_must_keep_next=false # Got value, back to normal.
1556       else
1557         case $ac_arg in
1558           *=* | --config-cache | -C | -disable-* | --disable-* \
1559           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1560           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1561           | -with-* | --with-* | -without-* | --without-* | --x)
1562             case "$ac_configure_args0 " in
1563               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1564             esac
1565             ;;
1566           -* ) ac_must_keep_next=true ;;
1567         esac
1568       fi
1569       ac_configure_args="$ac_configure_args '$ac_arg'"
1570       ;;
1571     esac
1572   done
1573 done
1574 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1575 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1576
1577 # When interrupted or exit'd, cleanup temporary files, and complete
1578 # config.log.  We remove comments because anyway the quotes in there
1579 # would cause problems or look ugly.
1580 # WARNING: Use '\'' to represent an apostrophe within the trap.
1581 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1582 trap 'exit_status=$?
1583   # Save into config.log some information that might help in debugging.
1584   {
1585     echo
1586
1587     cat <<\_ASBOX
1588 ## ---------------- ##
1589 ## Cache variables. ##
1590 ## ---------------- ##
1591 _ASBOX
1592     echo
1593     # The following way of writing the cache mishandles newlines in values,
1594 (
1595   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1596     eval ac_val=\$$ac_var
1597     case $ac_val in #(
1598     *${as_nl}*)
1599       case $ac_var in #(
1600       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1601 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1602       esac
1603       case $ac_var in #(
1604       _ | IFS | as_nl) ;; #(
1605       *) $as_unset $ac_var ;;
1606       esac ;;
1607     esac
1608   done
1609   (set) 2>&1 |
1610     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1611     *${as_nl}ac_space=\ *)
1612       sed -n \
1613         "s/'\''/'\''\\\\'\'''\''/g;
1614           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1615       ;; #(
1616     *)
1617       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1618       ;;
1619     esac |
1620     sort
1621 )
1622     echo
1623
1624     cat <<\_ASBOX
1625 ## ----------------- ##
1626 ## Output variables. ##
1627 ## ----------------- ##
1628 _ASBOX
1629     echo
1630     for ac_var in $ac_subst_vars
1631     do
1632       eval ac_val=\$$ac_var
1633       case $ac_val in
1634       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635       esac
1636       echo "$ac_var='\''$ac_val'\''"
1637     done | sort
1638     echo
1639
1640     if test -n "$ac_subst_files"; then
1641       cat <<\_ASBOX
1642 ## ------------------- ##
1643 ## File substitutions. ##
1644 ## ------------------- ##
1645 _ASBOX
1646       echo
1647       for ac_var in $ac_subst_files
1648       do
1649         eval ac_val=\$$ac_var
1650         case $ac_val in
1651         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1652         esac
1653         echo "$ac_var='\''$ac_val'\''"
1654       done | sort
1655       echo
1656     fi
1657
1658     if test -s confdefs.h; then
1659       cat <<\_ASBOX
1660 ## ----------- ##
1661 ## confdefs.h. ##
1662 ## ----------- ##
1663 _ASBOX
1664       echo
1665       cat confdefs.h
1666       echo
1667     fi
1668     test "$ac_signal" != 0 &&
1669       echo "$as_me: caught signal $ac_signal"
1670     echo "$as_me: exit $exit_status"
1671   } >&5
1672   rm -f core *.core core.conftest.* &&
1673     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1674     exit $exit_status
1675 ' 0
1676 for ac_signal in 1 2 13 15; do
1677   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1678 done
1679 ac_signal=0
1680
1681 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1682 rm -f -r conftest* confdefs.h
1683
1684 # Predefined preprocessor variables.
1685
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_NAME "$PACKAGE_NAME"
1688 _ACEOF
1689
1690
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1693 _ACEOF
1694
1695
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1698 _ACEOF
1699
1700
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_STRING "$PACKAGE_STRING"
1703 _ACEOF
1704
1705
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1708 _ACEOF
1709
1710
1711 # Let the site file select an alternate cache file if it wants to.
1712 # Prefer explicitly selected file to automatically selected ones.
1713 if test -n "$CONFIG_SITE"; then
1714   set x "$CONFIG_SITE"
1715 elif test "x$prefix" != xNONE; then
1716   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1717 else
1718   set x "$ac_default_prefix/share/config.site" \
1719         "$ac_default_prefix/etc/config.site"
1720 fi
1721 shift
1722 for ac_site_file
1723 do
1724   if test -r "$ac_site_file"; then
1725     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1726 echo "$as_me: loading site script $ac_site_file" >&6;}
1727     sed 's/^/| /' "$ac_site_file" >&5
1728     . "$ac_site_file"
1729   fi
1730 done
1731
1732 if test -r "$cache_file"; then
1733   # Some versions of bash will fail to source /dev/null (special
1734   # files actually), so we avoid doing that.
1735   if test -f "$cache_file"; then
1736     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1737 echo "$as_me: loading cache $cache_file" >&6;}
1738     case $cache_file in
1739       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1740       *)                      . "./$cache_file";;
1741     esac
1742   fi
1743 else
1744   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1745 echo "$as_me: creating cache $cache_file" >&6;}
1746   >$cache_file
1747 fi
1748
1749 # Check that the precious variables saved in the cache have kept the same
1750 # value.
1751 ac_cache_corrupted=false
1752 for ac_var in $ac_precious_vars; do
1753   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1754   eval ac_new_set=\$ac_env_${ac_var}_set
1755   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1756   eval ac_new_val=\$ac_env_${ac_var}_value
1757   case $ac_old_set,$ac_new_set in
1758     set,)
1759       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1760 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1761       ac_cache_corrupted=: ;;
1762     ,set)
1763       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1764 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1765       ac_cache_corrupted=: ;;
1766     ,);;
1767     *)
1768       if test "x$ac_old_val" != "x$ac_new_val"; then
1769         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1770 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1771         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1772 echo "$as_me:   former value:  $ac_old_val" >&2;}
1773         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1774 echo "$as_me:   current value: $ac_new_val" >&2;}
1775         ac_cache_corrupted=:
1776       fi;;
1777   esac
1778   # Pass precious variables to config.status.
1779   if test "$ac_new_set" = set; then
1780     case $ac_new_val in
1781     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1782     *) ac_arg=$ac_var=$ac_new_val ;;
1783     esac
1784     case " $ac_configure_args " in
1785       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1786       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1787     esac
1788   fi
1789 done
1790 if $ac_cache_corrupted; then
1791   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1792 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1793   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1794 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1795    { (exit 1); exit 1; }; }
1796 fi
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822 ac_ext=c
1823 ac_cpp='$CPP $CPPFLAGS'
1824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1827
1828
1829
1830 ac_config_headers="$ac_config_headers include/config.h"
1831
1832 ac_aux_dir=
1833 for ac_dir in tools "$srcdir"/tools; do
1834   if test -f "$ac_dir/install-sh"; then
1835     ac_aux_dir=$ac_dir
1836     ac_install_sh="$ac_aux_dir/install-sh -c"
1837     break
1838   elif test -f "$ac_dir/install.sh"; then
1839     ac_aux_dir=$ac_dir
1840     ac_install_sh="$ac_aux_dir/install.sh -c"
1841     break
1842   elif test -f "$ac_dir/shtool"; then
1843     ac_aux_dir=$ac_dir
1844     ac_install_sh="$ac_aux_dir/shtool install -c"
1845     break
1846   fi
1847 done
1848 if test -z "$ac_aux_dir"; then
1849   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1850 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1851    { (exit 1); exit 1; }; }
1852 fi
1853
1854 # These three variables are undocumented and unsupported,
1855 # and are intended to be withdrawn in a future Autoconf release.
1856 # They can cause serious problems if a builder's source tree is in a directory
1857 # whose full name contains unusual characters.
1858 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1859 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1860 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1861
1862
1863
1864
1865 # Check whether --enable-win16 was given.
1866 if test "${enable_win16+set}" = set; then
1867   enableval=$enable_win16;
1868 fi
1869
1870 # Check whether --enable-win64 was given.
1871 if test "${enable_win64+set}" = set; then
1872   enableval=$enable_win64;
1873 fi
1874
1875
1876
1877 # Check whether --with-opengl was given.
1878 if test "${with_opengl+set}" = set; then
1879   withval=$with_opengl;
1880 fi
1881
1882
1883 # Check whether --with-wine-tools was given.
1884 if test "${with_wine_tools+set}" = set; then
1885   withval=$with_wine_tools;
1886 fi
1887
1888
1889 # Make sure we can run config.sub.
1890 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1891   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1892 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1893    { (exit 1); exit 1; }; }
1894
1895 { echo "$as_me:$LINENO: checking build system type" >&5
1896 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1897 if test "${ac_cv_build+set}" = set; then
1898   echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900   ac_build_alias=$build_alias
1901 test "x$ac_build_alias" = x &&
1902   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1903 test "x$ac_build_alias" = x &&
1904   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1905 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1906    { (exit 1); exit 1; }; }
1907 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1908   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1909 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1910    { (exit 1); exit 1; }; }
1911
1912 fi
1913 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1914 echo "${ECHO_T}$ac_cv_build" >&6; }
1915 case $ac_cv_build in
1916 *-*-*) ;;
1917 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1918 echo "$as_me: error: invalid value of canonical build" >&2;}
1919    { (exit 1); exit 1; }; };;
1920 esac
1921 build=$ac_cv_build
1922 ac_save_IFS=$IFS; IFS='-'
1923 set x $ac_cv_build
1924 shift
1925 build_cpu=$1
1926 build_vendor=$2
1927 shift; shift
1928 # Remember, the first character of IFS is used to create $*,
1929 # except with old shells:
1930 build_os=$*
1931 IFS=$ac_save_IFS
1932 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1933
1934
1935 { echo "$as_me:$LINENO: checking host system type" >&5
1936 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1937 if test "${ac_cv_host+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   if test "x$host_alias" = x; then
1941   ac_cv_host=$ac_cv_build
1942 else
1943   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1944     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1945 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1946    { (exit 1); exit 1; }; }
1947 fi
1948
1949 fi
1950 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1951 echo "${ECHO_T}$ac_cv_host" >&6; }
1952 case $ac_cv_host in
1953 *-*-*) ;;
1954 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1955 echo "$as_me: error: invalid value of canonical host" >&2;}
1956    { (exit 1); exit 1; }; };;
1957 esac
1958 host=$ac_cv_host
1959 ac_save_IFS=$IFS; IFS='-'
1960 set x $ac_cv_host
1961 shift
1962 host_cpu=$1
1963 host_vendor=$2
1964 shift; shift
1965 # Remember, the first character of IFS is used to create $*,
1966 # except with old shells:
1967 host_os=$*
1968 IFS=$ac_save_IFS
1969 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1970
1971
1972 case $host in
1973   x86_64*linux*)
1974     if test "x$enable_win64" != "xyes"
1975     then
1976       test -n "$CC" || CC="gcc -m32"
1977       test -n "$LD" || LD="ld -m elf_i386"
1978       test -n "$AS" || AS="as --32"
1979       host_cpu="i386"
1980     fi
1981     ;;
1982 esac
1983
1984 case $host_cpu in
1985   *i[3456789]86*)
1986     if test "x$enable_win16" != "xno"
1987     then
1988       enable_win16="yes"
1989     fi
1990     ;;
1991 esac
1992
1993 WIN16_FILES="\$(WIN16_FILES)"
1994
1995 WIN16_INSTALL="\$(WIN16_INSTALL)"
1996
1997 if test "x$enable_win16" != "xyes"
1998 then
1999   WIN16_FILES=""
2000   WIN16_INSTALL=""
2001 fi
2002
2003 case "$srcdir" in
2004  .) ;;
2005  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2006       { { echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
2007 You need to run 'make distclean' in the source tree first." >&5
2008 echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
2009 You need to run 'make distclean' in the source tree first." >&2;}
2010    { (exit 1); exit 1; }; }
2011     fi ;;
2012 esac
2013
2014
2015 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2016 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2017 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2018 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   cat >conftest.make <<\_ACEOF
2022 SHELL = /bin/sh
2023 all:
2024         @echo '@@@%%%=$(MAKE)=@@@%%%'
2025 _ACEOF
2026 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2027 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2028   *@@@%%%=?*=@@@%%%*)
2029     eval ac_cv_prog_make_${ac_make}_set=yes;;
2030   *)
2031     eval ac_cv_prog_make_${ac_make}_set=no;;
2032 esac
2033 rm -f conftest.make
2034 fi
2035 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2036   { echo "$as_me:$LINENO: result: yes" >&5
2037 echo "${ECHO_T}yes" >&6; }
2038   SET_MAKE=
2039 else
2040   { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2042   SET_MAKE="MAKE=${MAKE-make}"
2043 fi
2044
2045 ac_ext=c
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 if test -n "$ac_tool_prefix"; then
2051   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2052 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$CC"; then
2059   ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074 IFS=$as_save_IFS
2075
2076 fi
2077 fi
2078 CC=$ac_cv_prog_CC
2079 if test -n "$CC"; then
2080   { echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6; }
2082 else
2083   { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2085 fi
2086
2087
2088 fi
2089 if test -z "$ac_cv_prog_CC"; then
2090   ac_ct_CC=$CC
2091   # Extract the first word of "gcc", so it can be a program name with args.
2092 set dummy gcc; ac_word=$2
2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   if test -n "$ac_ct_CC"; then
2099   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2100 else
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106   for ac_exec_ext in '' $ac_executable_extensions; do
2107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108     ac_cv_prog_ac_ct_CC="gcc"
2109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110     break 2
2111   fi
2112 done
2113 done
2114 IFS=$as_save_IFS
2115
2116 fi
2117 fi
2118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2119 if test -n "$ac_ct_CC"; then
2120   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2121 echo "${ECHO_T}$ac_ct_CC" >&6; }
2122 else
2123   { echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6; }
2125 fi
2126
2127   if test "x$ac_ct_CC" = x; then
2128     CC=""
2129   else
2130     case $cross_compiling:$ac_tool_warned in
2131 yes:)
2132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2133 whose name does not start with the host triplet.  If you think this
2134 configuration is useful to you, please write to autoconf@gnu.org." >&5
2135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2136 whose name does not start with the host triplet.  If you think this
2137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2138 ac_tool_warned=yes ;;
2139 esac
2140     CC=$ac_ct_CC
2141   fi
2142 else
2143   CC="$ac_cv_prog_CC"
2144 fi
2145
2146 if test -z "$CC"; then
2147           if test -n "$ac_tool_prefix"; then
2148     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2149 set dummy ${ac_tool_prefix}cc; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   if test -n "$CC"; then
2156   ac_cv_prog_CC="$CC" # Let the user override the test.
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161   IFS=$as_save_IFS
2162   test -z "$as_dir" && as_dir=.
2163   for ac_exec_ext in '' $ac_executable_extensions; do
2164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165     ac_cv_prog_CC="${ac_tool_prefix}cc"
2166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167     break 2
2168   fi
2169 done
2170 done
2171 IFS=$as_save_IFS
2172
2173 fi
2174 fi
2175 CC=$ac_cv_prog_CC
2176 if test -n "$CC"; then
2177   { echo "$as_me:$LINENO: result: $CC" >&5
2178 echo "${ECHO_T}$CC" >&6; }
2179 else
2180   { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2182 fi
2183
2184
2185   fi
2186 fi
2187 if test -z "$CC"; then
2188   # Extract the first word of "cc", so it can be a program name with args.
2189 set dummy cc; ac_word=$2
2190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2192 if test "${ac_cv_prog_CC+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   if test -n "$CC"; then
2196   ac_cv_prog_CC="$CC" # Let the user override the test.
2197 else
2198   ac_prog_rejected=no
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202   IFS=$as_save_IFS
2203   test -z "$as_dir" && as_dir=.
2204   for ac_exec_ext in '' $ac_executable_extensions; do
2205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2207        ac_prog_rejected=yes
2208        continue
2209      fi
2210     ac_cv_prog_CC="cc"
2211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212     break 2
2213   fi
2214 done
2215 done
2216 IFS=$as_save_IFS
2217
2218 if test $ac_prog_rejected = yes; then
2219   # We found a bogon in the path, so make sure we never use it.
2220   set dummy $ac_cv_prog_CC
2221   shift
2222   if test $# != 0; then
2223     # We chose a different compiler from the bogus one.
2224     # However, it has the same basename, so the bogon will be chosen
2225     # first if we set CC to just the basename; use the full file name.
2226     shift
2227     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2228   fi
2229 fi
2230 fi
2231 fi
2232 CC=$ac_cv_prog_CC
2233 if test -n "$CC"; then
2234   { echo "$as_me:$LINENO: result: $CC" >&5
2235 echo "${ECHO_T}$CC" >&6; }
2236 else
2237   { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2239 fi
2240
2241
2242 fi
2243 if test -z "$CC"; then
2244   if test -n "$ac_tool_prefix"; then
2245   for ac_prog in cl.exe
2246   do
2247     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_prog_CC+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   if test -n "$CC"; then
2255   ac_cv_prog_CC="$CC" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260   IFS=$as_save_IFS
2261   test -z "$as_dir" && as_dir=.
2262   for ac_exec_ext in '' $ac_executable_extensions; do
2263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266     break 2
2267   fi
2268 done
2269 done
2270 IFS=$as_save_IFS
2271
2272 fi
2273 fi
2274 CC=$ac_cv_prog_CC
2275 if test -n "$CC"; then
2276   { echo "$as_me:$LINENO: result: $CC" >&5
2277 echo "${ECHO_T}$CC" >&6; }
2278 else
2279   { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281 fi
2282
2283
2284     test -n "$CC" && break
2285   done
2286 fi
2287 if test -z "$CC"; then
2288   ac_ct_CC=$CC
2289   for ac_prog in cl.exe
2290 do
2291   # Extract the first word of "$ac_prog", so it can be a program name with args.
2292 set dummy $ac_prog; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   if test -n "$ac_ct_CC"; then
2299   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304   IFS=$as_save_IFS
2305   test -z "$as_dir" && as_dir=.
2306   for ac_exec_ext in '' $ac_executable_extensions; do
2307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308     ac_cv_prog_ac_ct_CC="$ac_prog"
2309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310     break 2
2311   fi
2312 done
2313 done
2314 IFS=$as_save_IFS
2315
2316 fi
2317 fi
2318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2319 if test -n "$ac_ct_CC"; then
2320   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2321 echo "${ECHO_T}$ac_ct_CC" >&6; }
2322 else
2323   { echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6; }
2325 fi
2326
2327
2328   test -n "$ac_ct_CC" && break
2329 done
2330
2331   if test "x$ac_ct_CC" = x; then
2332     CC=""
2333   else
2334     case $cross_compiling:$ac_tool_warned in
2335 yes:)
2336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2337 whose name does not start with the host triplet.  If you think this
2338 configuration is useful to you, please write to autoconf@gnu.org." >&5
2339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2340 whose name does not start with the host triplet.  If you think this
2341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2342 ac_tool_warned=yes ;;
2343 esac
2344     CC=$ac_ct_CC
2345   fi
2346 fi
2347
2348 fi
2349
2350
2351 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2352 See \`config.log' for more details." >&5
2353 echo "$as_me: error: no acceptable C compiler found in \$PATH
2354 See \`config.log' for more details." >&2;}
2355    { (exit 1); exit 1; }; }
2356
2357 # Provide some information about the compiler.
2358 echo "$as_me:$LINENO: checking for C compiler version" >&5
2359 ac_compiler=`set X $ac_compile; echo $2`
2360 { (ac_try="$ac_compiler --version >&5"
2361 case "(($ac_try" in
2362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363   *) ac_try_echo=$ac_try;;
2364 esac
2365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2366   (eval "$ac_compiler --version >&5") 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }
2370 { (ac_try="$ac_compiler -v >&5"
2371 case "(($ac_try" in
2372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373   *) ac_try_echo=$ac_try;;
2374 esac
2375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2376   (eval "$ac_compiler -v >&5") 2>&5
2377   ac_status=$?
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); }
2380 { (ac_try="$ac_compiler -V >&5"
2381 case "(($ac_try" in
2382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383   *) ac_try_echo=$ac_try;;
2384 esac
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386   (eval "$ac_compiler -V >&5") 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }
2390
2391 cat >conftest.$ac_ext <<_ACEOF
2392 /* confdefs.h.  */
2393 _ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h.  */
2397
2398 int
2399 main ()
2400 {
2401
2402   ;
2403   return 0;
2404 }
2405 _ACEOF
2406 ac_clean_files_save=$ac_clean_files
2407 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2408 # Try to create an executable without -o first, disregard a.out.
2409 # It will help us diagnose broken compilers, and finding out an intuition
2410 # of exeext.
2411 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2412 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2413 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2414 #
2415 # List of possible output files, starting from the most likely.
2416 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2417 # only as a last resort.  b.out is created by i960 compilers.
2418 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2419 #
2420 # The IRIX 6 linker writes into existing files which may not be
2421 # executable, retaining their permissions.  Remove them first so a
2422 # subsequent execution test works.
2423 ac_rmfiles=
2424 for ac_file in $ac_files
2425 do
2426   case $ac_file in
2427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2428     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2429   esac
2430 done
2431 rm -f $ac_rmfiles
2432
2433 if { (ac_try="$ac_link_default"
2434 case "(($ac_try" in
2435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436   *) ac_try_echo=$ac_try;;
2437 esac
2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439   (eval "$ac_link_default") 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; then
2443   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2444 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2445 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2446 # so that the user can short-circuit this test for compilers unknown to
2447 # Autoconf.
2448 for ac_file in $ac_files ''
2449 do
2450   test -f "$ac_file" || continue
2451   case $ac_file in
2452     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2453         ;;
2454     [ab].out )
2455         # We found the default executable, but exeext='' is most
2456         # certainly right.
2457         break;;
2458     *.* )
2459         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2460         then :; else
2461            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462         fi
2463         # We set ac_cv_exeext here because the later test for it is not
2464         # safe: cross compilers may not add the suffix if given an `-o'
2465         # argument, so we may need to know it at that point already.
2466         # Even if this section looks crufty: it has the advantage of
2467         # actually working.
2468         break;;
2469     * )
2470         break;;
2471   esac
2472 done
2473 test "$ac_cv_exeext" = no && ac_cv_exeext=
2474
2475 else
2476   ac_file=''
2477 fi
2478
2479 { echo "$as_me:$LINENO: result: $ac_file" >&5
2480 echo "${ECHO_T}$ac_file" >&6; }
2481 if test -z "$ac_file"; then
2482   echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: C compiler cannot create executables
2488 See \`config.log' for more details." >&2;}
2489    { (exit 77); exit 77; }; }
2490 fi
2491
2492 ac_exeext=$ac_cv_exeext
2493
2494 # Check that the compiler produces executables we can run.  If not, either
2495 # the compiler is broken, or we cross compile.
2496 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2497 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2498 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2499 # If not cross compiling, check that we can run a simple program.
2500 if test "$cross_compiling" != yes; then
2501   if { ac_try='./$ac_file'
2502   { (case "(($ac_try" in
2503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504   *) ac_try_echo=$ac_try;;
2505 esac
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507   (eval "$ac_try") 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; }; then
2511     cross_compiling=no
2512   else
2513     if test "$cross_compiling" = maybe; then
2514         cross_compiling=yes
2515     else
2516         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2517 If you meant to cross compile, use \`--host'.
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: cannot run C compiled programs.
2520 If you meant to cross compile, use \`--host'.
2521 See \`config.log' for more details." >&2;}
2522    { (exit 1); exit 1; }; }
2523     fi
2524   fi
2525 fi
2526 { echo "$as_me:$LINENO: result: yes" >&5
2527 echo "${ECHO_T}yes" >&6; }
2528
2529 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2530 ac_clean_files=$ac_clean_files_save
2531 # Check that the compiler produces executables we can run.  If not, either
2532 # the compiler is broken, or we cross compile.
2533 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2534 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2535 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2536 echo "${ECHO_T}$cross_compiling" >&6; }
2537
2538 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2539 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2540 if { (ac_try="$ac_link"
2541 case "(($ac_try" in
2542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543   *) ac_try_echo=$ac_try;;
2544 esac
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546   (eval "$ac_link") 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }; then
2550   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2551 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2552 # work properly (i.e., refer to `conftest.exe'), while it won't with
2553 # `rm'.
2554 for ac_file in conftest.exe conftest conftest.*; do
2555   test -f "$ac_file" || continue
2556   case $ac_file in
2557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2558     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559           break;;
2560     * ) break;;
2561   esac
2562 done
2563 else
2564   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2567 See \`config.log' for more details." >&2;}
2568    { (exit 1); exit 1; }; }
2569 fi
2570
2571 rm -f conftest$ac_cv_exeext
2572 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2573 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2574
2575 rm -f conftest.$ac_ext
2576 EXEEXT=$ac_cv_exeext
2577 ac_exeext=$EXEEXT
2578 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2579 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2580 if test "${ac_cv_objext+set}" = set; then
2581   echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583   cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h.  */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h.  */
2589
2590 int
2591 main ()
2592 {
2593
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.o conftest.obj
2599 if { (ac_try="$ac_compile"
2600 case "(($ac_try" in
2601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602   *) ac_try_echo=$ac_try;;
2603 esac
2604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605   (eval "$ac_compile") 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; then
2609   for ac_file in conftest.o conftest.obj conftest.*; do
2610   test -f "$ac_file" || continue;
2611   case $ac_file in
2612     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2613     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2614        break;;
2615   esac
2616 done
2617 else
2618   echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2622 See \`config.log' for more details." >&5
2623 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2624 See \`config.log' for more details." >&2;}
2625    { (exit 1); exit 1; }; }
2626 fi
2627
2628 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2629 fi
2630 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2631 echo "${ECHO_T}$ac_cv_objext" >&6; }
2632 OBJEXT=$ac_cv_objext
2633 ac_objext=$OBJEXT
2634 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2635 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2636 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645
2646 int
2647 main ()
2648 {
2649 #ifndef __GNUC__
2650        choke me
2651 #endif
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2659 case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_compile") 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } && {
2671          test -z "$ac_c_werror_flag" ||
2672          test ! -s conftest.err
2673        } && test -s conftest.$ac_objext; then
2674   ac_compiler_gnu=yes
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679         ac_compiler_gnu=no
2680 fi
2681
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2684
2685 fi
2686 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2687 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2688 GCC=`test $ac_compiler_gnu = yes && echo yes`
2689 ac_test_CFLAGS=${CFLAGS+set}
2690 ac_save_CFLAGS=$CFLAGS
2691 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2692 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2693 if test "${ac_cv_prog_cc_g+set}" = set; then
2694   echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696   ac_save_c_werror_flag=$ac_c_werror_flag
2697    ac_c_werror_flag=yes
2698    ac_cv_prog_cc_g=no
2699    CFLAGS="-g"
2700    cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706
2707 int
2708 main ()
2709 {
2710
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 rm -f conftest.$ac_objext
2716 if { (ac_try="$ac_compile"
2717 case "(($ac_try" in
2718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719   *) ac_try_echo=$ac_try;;
2720 esac
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722   (eval "$ac_compile") 2>conftest.er1
2723   ac_status=$?
2724   grep -v '^ *+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } && {
2729          test -z "$ac_c_werror_flag" ||
2730          test ! -s conftest.err
2731        } && test -s conftest.$ac_objext; then
2732   ac_cv_prog_cc_g=yes
2733 else
2734   echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737         CFLAGS=""
2738       cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744
2745 int
2746 main ()
2747 {
2748
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 rm -f conftest.$ac_objext
2754 if { (ac_try="$ac_compile"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760   (eval "$ac_compile") 2>conftest.er1
2761   ac_status=$?
2762   grep -v '^ *+' conftest.er1 >conftest.err
2763   rm -f conftest.er1
2764   cat conftest.err >&5
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); } && {
2767          test -z "$ac_c_werror_flag" ||
2768          test ! -s conftest.err
2769        } && test -s conftest.$ac_objext; then
2770   :
2771 else
2772   echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775         ac_c_werror_flag=$ac_save_c_werror_flag
2776          CFLAGS="-g"
2777          cat >conftest.$ac_ext <<_ACEOF
2778 /* confdefs.h.  */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h.  */
2783
2784 int
2785 main ()
2786 {
2787
2788   ;
2789   return 0;
2790 }
2791 _ACEOF
2792 rm -f conftest.$ac_objext
2793 if { (ac_try="$ac_compile"
2794 case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_compile") 2>conftest.er1
2800   ac_status=$?
2801   grep -v '^ *+' conftest.er1 >conftest.err
2802   rm -f conftest.er1
2803   cat conftest.err >&5
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } && {
2806          test -z "$ac_c_werror_flag" ||
2807          test ! -s conftest.err
2808        } && test -s conftest.$ac_objext; then
2809   ac_cv_prog_cc_g=yes
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814
2815 fi
2816
2817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818 fi
2819
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2821 fi
2822
2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824    ac_c_werror_flag=$ac_save_c_werror_flag
2825 fi
2826 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2827 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2828 if test "$ac_test_CFLAGS" = set; then
2829   CFLAGS=$ac_save_CFLAGS
2830 elif test $ac_cv_prog_cc_g = yes; then
2831   if test "$GCC" = yes; then
2832     CFLAGS="-g -O2"
2833   else
2834     CFLAGS="-g"
2835   fi
2836 else
2837   if test "$GCC" = yes; then
2838     CFLAGS="-O2"
2839   else
2840     CFLAGS=
2841   fi
2842 fi
2843 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2844 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2845 if test "${ac_cv_prog_cc_c89+set}" = set; then
2846   echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848   ac_cv_prog_cc_c89=no
2849 ac_save_CC=$CC
2850 cat >conftest.$ac_ext <<_ACEOF
2851 /* confdefs.h.  */
2852 _ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h.  */
2856 #include <stdarg.h>
2857 #include <stdio.h>
2858 #include <sys/types.h>
2859 #include <sys/stat.h>
2860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2861 struct buf { int x; };
2862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2863 static char *e (p, i)
2864      char **p;
2865      int i;
2866 {
2867   return p[i];
2868 }
2869 static char *f (char * (*g) (char **, int), char **p, ...)
2870 {
2871   char *s;
2872   va_list v;
2873   va_start (v,p);
2874   s = g (p, va_arg (v,int));
2875   va_end (v);
2876   return s;
2877 }
2878
2879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2880    function prototypes and stuff, but not '\xHH' hex character constants.
2881    These don't provoke an error unfortunately, instead are silently treated
2882    as 'x'.  The following induces an error, until -std is added to get
2883    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2884    array size at least.  It's necessary to write '\x00'==0 to get something
2885    that's true only with -std.  */
2886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2887
2888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2889    inside strings and character constants.  */
2890 #define FOO(x) 'x'
2891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2892
2893 int test (int i, double x);
2894 struct s1 {int (*f) (int a);};
2895 struct s2 {int (*f) (double a);};
2896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2897 int argc;
2898 char **argv;
2899 int
2900 main ()
2901 {
2902 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2903   ;
2904   return 0;
2905 }
2906 _ACEOF
2907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2908         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2909 do
2910   CC="$ac_save_CC $ac_arg"
2911   rm -f conftest.$ac_objext
2912 if { (ac_try="$ac_compile"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_compile") 2>conftest.er1
2919   ac_status=$?
2920   grep -v '^ *+' conftest.er1 >conftest.err
2921   rm -f conftest.er1
2922   cat conftest.err >&5
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } && {
2925          test -z "$ac_c_werror_flag" ||
2926          test ! -s conftest.err
2927        } && test -s conftest.$ac_objext; then
2928   ac_cv_prog_cc_c89=$ac_arg
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933
2934 fi
2935
2936 rm -f core conftest.err conftest.$ac_objext
2937   test "x$ac_cv_prog_cc_c89" != "xno" && break
2938 done
2939 rm -f conftest.$ac_ext
2940 CC=$ac_save_CC
2941
2942 fi
2943 # AC_CACHE_VAL
2944 case "x$ac_cv_prog_cc_c89" in
2945   x)
2946     { echo "$as_me:$LINENO: result: none needed" >&5
2947 echo "${ECHO_T}none needed" >&6; } ;;
2948   xno)
2949     { echo "$as_me:$LINENO: result: unsupported" >&5
2950 echo "${ECHO_T}unsupported" >&6; } ;;
2951   *)
2952     CC="$CC $ac_cv_prog_cc_c89"
2953     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2954 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2955 esac
2956
2957
2958 ac_ext=c
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963
2964 ac_ext=cpp
2965 ac_cpp='$CXXCPP $CPPFLAGS'
2966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2969 if test -z "$CXX"; then
2970   if test -n "$CCC"; then
2971     CXX=$CCC
2972   else
2973     if test -n "$ac_tool_prefix"; then
2974   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2975   do
2976     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_CXX+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   if test -n "$CXX"; then
2984   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989   IFS=$as_save_IFS
2990   test -z "$as_dir" && as_dir=.
2991   for ac_exec_ext in '' $ac_executable_extensions; do
2992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995     break 2
2996   fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 CXX=$ac_cv_prog_CXX
3004 if test -n "$CXX"; then
3005   { echo "$as_me:$LINENO: result: $CXX" >&5
3006 echo "${ECHO_T}$CXX" >&6; }
3007 else
3008   { echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6; }
3010 fi
3011
3012
3013     test -n "$CXX" && break
3014   done
3015 fi
3016 if test -z "$CXX"; then
3017   ac_ct_CXX=$CXX
3018   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3019 do
3020   # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; ac_word=$2
3022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   if test -n "$ac_ct_CXX"; then
3028   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033   IFS=$as_save_IFS
3034   test -z "$as_dir" && as_dir=.
3035   for ac_exec_ext in '' $ac_executable_extensions; do
3036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037     ac_cv_prog_ac_ct_CXX="$ac_prog"
3038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039     break 2
3040   fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3048 if test -n "$ac_ct_CXX"; then
3049   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3050 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3051 else
3052   { echo "$as_me:$LINENO: result: no" >&5
3053 echo "${ECHO_T}no" >&6; }
3054 fi
3055
3056
3057   test -n "$ac_ct_CXX" && break
3058 done
3059
3060   if test "x$ac_ct_CXX" = x; then
3061     CXX="g++"
3062   else
3063     case $cross_compiling:$ac_tool_warned in
3064 yes:)
3065 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3066 whose name does not start with the host triplet.  If you think this
3067 configuration is useful to you, please write to autoconf@gnu.org." >&5
3068 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3069 whose name does not start with the host triplet.  If you think this
3070 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3071 ac_tool_warned=yes ;;
3072 esac
3073     CXX=$ac_ct_CXX
3074   fi
3075 fi
3076
3077   fi
3078 fi
3079 # Provide some information about the compiler.
3080 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3081 ac_compiler=`set X $ac_compile; echo $2`
3082 { (ac_try="$ac_compiler --version >&5"
3083 case "(($ac_try" in
3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085   *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088   (eval "$ac_compiler --version >&5") 2>&5
3089   ac_status=$?
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); }
3092 { (ac_try="$ac_compiler -v >&5"
3093 case "(($ac_try" in
3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095   *) ac_try_echo=$ac_try;;
3096 esac
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098   (eval "$ac_compiler -v >&5") 2>&5
3099   ac_status=$?
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); }
3102 { (ac_try="$ac_compiler -V >&5"
3103 case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_compiler -V >&5") 2>&5
3109   ac_status=$?
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); }
3112
3113 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3114 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3115 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118   cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h.  */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h.  */
3124
3125 int
3126 main ()
3127 {
3128 #ifndef __GNUC__
3129        choke me
3130 #endif
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_compile") 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } && {
3150          test -z "$ac_cxx_werror_flag" ||
3151          test ! -s conftest.err
3152        } && test -s conftest.$ac_objext; then
3153   ac_compiler_gnu=yes
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158         ac_compiler_gnu=no
3159 fi
3160
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3163
3164 fi
3165 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3166 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3167 GXX=`test $ac_compiler_gnu = yes && echo yes`
3168 ac_test_CXXFLAGS=${CXXFLAGS+set}
3169 ac_save_CXXFLAGS=$CXXFLAGS
3170 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3171 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3172 if test "${ac_cv_prog_cxx_g+set}" = set; then
3173   echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3176    ac_cxx_werror_flag=yes
3177    ac_cv_prog_cxx_g=no
3178    CXXFLAGS="-g"
3179    cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h.  */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h.  */
3185
3186 int
3187 main ()
3188 {
3189
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 rm -f conftest.$ac_objext
3195 if { (ac_try="$ac_compile"
3196 case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201   (eval "$ac_compile") 2>conftest.er1
3202   ac_status=$?
3203   grep -v '^ *+' conftest.er1 >conftest.err
3204   rm -f conftest.er1
3205   cat conftest.err >&5
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); } && {
3208          test -z "$ac_cxx_werror_flag" ||
3209          test ! -s conftest.err
3210        } && test -s conftest.$ac_objext; then
3211   ac_cv_prog_cxx_g=yes
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216         CXXFLAGS=""
3217       cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223
3224 int
3225 main ()
3226 {
3227
3228   ;
3229   return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest.$ac_objext
3233 if { (ac_try="$ac_compile"
3234 case "(($ac_try" in
3235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236   *) ac_try_echo=$ac_try;;
3237 esac
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239   (eval "$ac_compile") 2>conftest.er1
3240   ac_status=$?
3241   grep -v '^ *+' conftest.er1 >conftest.err
3242   rm -f conftest.er1
3243   cat conftest.err >&5
3244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245   (exit $ac_status); } && {
3246          test -z "$ac_cxx_werror_flag" ||
3247          test ! -s conftest.err
3248        } && test -s conftest.$ac_objext; then
3249   :
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3255          CXXFLAGS="-g"
3256          cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262
3263 int
3264 main ()
3265 {
3266
3267   ;
3268   return 0;
3269 }
3270 _ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3273 case "(($ac_try" in
3274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275   *) ac_try_echo=$ac_try;;
3276 esac
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278   (eval "$ac_compile") 2>conftest.er1
3279   ac_status=$?
3280   grep -v '^ *+' conftest.er1 >conftest.err
3281   rm -f conftest.er1
3282   cat conftest.err >&5
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } && {
3285          test -z "$ac_cxx_werror_flag" ||
3286          test ! -s conftest.err
3287        } && test -s conftest.$ac_objext; then
3288   ac_cv_prog_cxx_g=yes
3289 else
3290   echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293
3294 fi
3295
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 fi
3298
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 fi
3301
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3304 fi
3305 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3306 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3307 if test "$ac_test_CXXFLAGS" = set; then
3308   CXXFLAGS=$ac_save_CXXFLAGS
3309 elif test $ac_cv_prog_cxx_g = yes; then
3310   if test "$GXX" = yes; then
3311     CXXFLAGS="-g -O2"
3312   else
3313     CXXFLAGS="-g"
3314   fi
3315 else
3316   if test "$GXX" = yes; then
3317     CXXFLAGS="-O2"
3318   else
3319     CXXFLAGS=
3320   fi
3321 fi
3322 ac_ext=c
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327
3328 if test -n "$ac_tool_prefix"; then
3329   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3330 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3333 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3334   echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336   if test -n "$CPPBIN"; then
3337   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342   IFS=$as_save_IFS
3343   test -z "$as_dir" && as_dir=.
3344   for ac_exec_ext in '' $ac_executable_extensions; do
3345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348     break 2
3349   fi
3350 done
3351 done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 CPPBIN=$ac_cv_prog_CPPBIN
3357 if test -n "$CPPBIN"; then
3358   { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3359 echo "${ECHO_T}$CPPBIN" >&6; }
3360 else
3361   { echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6; }
3363 fi
3364
3365
3366 fi
3367 if test -z "$ac_cv_prog_CPPBIN"; then
3368   ac_ct_CPPBIN=$CPPBIN
3369   # Extract the first word of "cpp", so it can be a program name with args.
3370 set dummy cpp; ac_word=$2
3371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3373 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376   if test -n "$ac_ct_CPPBIN"; then
3377   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384   for ac_exec_ext in '' $ac_executable_extensions; do
3385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386     ac_cv_prog_ac_ct_CPPBIN="cpp"
3387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388     break 2
3389   fi
3390 done
3391 done
3392 IFS=$as_save_IFS
3393
3394 fi
3395 fi
3396 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3397 if test -n "$ac_ct_CPPBIN"; then
3398   { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3399 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3400 else
3401   { echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6; }
3403 fi
3404
3405   if test "x$ac_ct_CPPBIN" = x; then
3406     CPPBIN="cpp"
3407   else
3408     case $cross_compiling:$ac_tool_warned in
3409 yes:)
3410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3411 whose name does not start with the host triplet.  If you think this
3412 configuration is useful to you, please write to autoconf@gnu.org." >&5
3413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3414 whose name does not start with the host triplet.  If you think this
3415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3416 ac_tool_warned=yes ;;
3417 esac
3418     CPPBIN=$ac_ct_CPPBIN
3419   fi
3420 else
3421   CPPBIN="$ac_cv_prog_CPPBIN"
3422 fi
3423
3424
3425 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3426 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3427 if test "${wine_cv_toolsdir+set}" = set; then
3428   echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430   if test -z "$with_wine_tools"; then
3431      if test "$cross_compiling" = "yes"; then
3432        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3433 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3434    { (exit 1); exit 1; }; }
3435      else
3436        wine_cv_toolsdir="\$(TOPOBJDIR)"
3437      fi
3438    elif test -d "$with_wine_tools/tools/winebuild"; then
3439      case $with_wine_tools in
3440        /*) wine_cv_toolsdir="$with_wine_tools" ;;
3441        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3442      esac
3443    else
3444      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3445 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3446    { (exit 1); exit 1; }; }
3447    fi
3448 fi
3449 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3450 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3451 TOOLSDIR=$wine_cv_toolsdir
3452
3453
3454
3455 ac_ext=c
3456 ac_cpp='$CPP $CPPFLAGS'
3457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3461 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3462 # On Suns, sometimes $CPP names a directory.
3463 if test -n "$CPP" && test -d "$CPP"; then
3464   CPP=
3465 fi
3466 if test -z "$CPP"; then
3467   if test "${ac_cv_prog_CPP+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470       # Double quotes because CPP needs to be expanded
3471     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3472     do
3473       ac_preproc_ok=false
3474 for ac_c_preproc_warn_flag in '' yes
3475 do
3476   # Use a header file that comes with gcc, so configuring glibc
3477   # with a fresh cross-compiler works.
3478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3479   # <limits.h> exists even on freestanding compilers.
3480   # On the NeXT, cc -E runs the code through the compiler's parser,
3481   # not just through cpp. "Syntax error" is here to catch this case.
3482   cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488 #ifdef __STDC__
3489 # include <limits.h>
3490 #else
3491 # include <assert.h>
3492 #endif
3493                      Syntax error
3494 _ACEOF
3495 if { (ac_try="$ac_cpp conftest.$ac_ext"
3496 case "(($ac_try" in
3497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498   *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3502   ac_status=$?
3503   grep -v '^ *+' conftest.er1 >conftest.err
3504   rm -f conftest.er1
3505   cat conftest.err >&5
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); } >/dev/null && {
3508          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3509          test ! -s conftest.err
3510        }; then
3511   :
3512 else
3513   echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516   # Broken: fails on valid input.
3517 continue
3518 fi
3519
3520 rm -f conftest.err conftest.$ac_ext
3521
3522   # OK, works on sane cases.  Now check whether nonexistent headers
3523   # can be detected and how.
3524   cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h.  */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h.  */
3530 #include <ac_nonexistent.h>
3531 _ACEOF
3532 if { (ac_try="$ac_cpp conftest.$ac_ext"
3533 case "(($ac_try" in
3534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535   *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3539   ac_status=$?
3540   grep -v '^ *+' conftest.er1 >conftest.err
3541   rm -f conftest.er1
3542   cat conftest.err >&5
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } >/dev/null && {
3545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3546          test ! -s conftest.err
3547        }; then
3548   # Broken: success on invalid input.
3549 continue
3550 else
3551   echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554   # Passes both tests.
3555 ac_preproc_ok=:
3556 break
3557 fi
3558
3559 rm -f conftest.err conftest.$ac_ext
3560
3561 done
3562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3563 rm -f conftest.err conftest.$ac_ext
3564 if $ac_preproc_ok; then
3565   break
3566 fi
3567
3568     done
3569     ac_cv_prog_CPP=$CPP
3570
3571 fi
3572   CPP=$ac_cv_prog_CPP
3573 else
3574   ac_cv_prog_CPP=$CPP
3575 fi
3576 { echo "$as_me:$LINENO: result: $CPP" >&5
3577 echo "${ECHO_T}$CPP" >&6; }
3578 ac_preproc_ok=false
3579 for ac_c_preproc_warn_flag in '' yes
3580 do
3581   # Use a header file that comes with gcc, so configuring glibc
3582   # with a fresh cross-compiler works.
3583   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3584   # <limits.h> exists even on freestanding compilers.
3585   # On the NeXT, cc -E runs the code through the compiler's parser,
3586   # not just through cpp. "Syntax error" is here to catch this case.
3587   cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593 #ifdef __STDC__
3594 # include <limits.h>
3595 #else
3596 # include <assert.h>
3597 #endif
3598                      Syntax error
3599 _ACEOF
3600 if { (ac_try="$ac_cpp conftest.$ac_ext"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3607   ac_status=$?
3608   grep -v '^ *+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
3610   cat conftest.err >&5
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } >/dev/null && {
3613          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3614          test ! -s conftest.err
3615        }; then
3616   :
3617 else
3618   echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621   # Broken: fails on valid input.
3622 continue
3623 fi
3624
3625 rm -f conftest.err conftest.$ac_ext
3626
3627   # OK, works on sane cases.  Now check whether nonexistent headers
3628   # can be detected and how.
3629   cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635 #include <ac_nonexistent.h>
3636 _ACEOF
3637 if { (ac_try="$ac_cpp conftest.$ac_ext"
3638 case "(($ac_try" in
3639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640   *) ac_try_echo=$ac_try;;
3641 esac
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3644   ac_status=$?
3645   grep -v '^ *+' conftest.er1 >conftest.err
3646   rm -f conftest.er1
3647   cat conftest.err >&5
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); } >/dev/null && {
3650          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3651          test ! -s conftest.err
3652        }; then
3653   # Broken: success on invalid input.
3654 continue
3655 else
3656   echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3658
3659   # Passes both tests.
3660 ac_preproc_ok=:
3661 break
3662 fi
3663
3664 rm -f conftest.err conftest.$ac_ext
3665
3666 done
3667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3668 rm -f conftest.err conftest.$ac_ext
3669 if $ac_preproc_ok; then
3670   :
3671 else
3672   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3673 See \`config.log' for more details." >&5
3674 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3675 See \`config.log' for more details." >&2;}
3676    { (exit 1); exit 1; }; }
3677 fi
3678
3679 ac_ext=c
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684
3685
3686 { echo "$as_me:$LINENO: checking for X" >&5
3687 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3688
3689
3690 # Check whether --with-x was given.
3691 if test "${with_x+set}" = set; then
3692   withval=$with_x;
3693 fi
3694
3695 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3696 if test "x$with_x" = xno; then
3697   # The user explicitly disabled X.
3698   have_x=disabled
3699 else
3700   case $x_includes,$x_libraries in #(
3701     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3702 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3703    { (exit 1); exit 1; }; };; #(
3704     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   # One or both of the vars are not set, and there is no cached value.
3708 ac_x_includes=no ac_x_libraries=no
3709 rm -f -r conftest.dir
3710 if mkdir conftest.dir; then
3711   cd conftest.dir
3712   cat >Imakefile <<'_ACEOF'
3713 incroot:
3714         @echo incroot='${INCROOT}'
3715 usrlibdir:
3716         @echo usrlibdir='${USRLIBDIR}'
3717 libdir:
3718         @echo libdir='${LIBDIR}'
3719 _ACEOF
3720   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3721     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3722     for ac_var in incroot usrlibdir libdir; do
3723       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3724     done
3725     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3726     for ac_extension in a so sl; do
3727       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3728          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3729         ac_im_usrlibdir=$ac_im_libdir; break
3730       fi
3731     done
3732     # Screen out bogus values from the imake configuration.  They are
3733     # bogus both because they are the default anyway, and because
3734     # using them would break gcc on systems where it needs fixed includes.
3735     case $ac_im_incroot in
3736         /usr/include) ac_x_includes= ;;
3737         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3738     esac
3739     case $ac_im_usrlibdir in
3740         /usr/lib | /lib) ;;
3741         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3742     esac
3743   fi
3744   cd ..
3745   rm -f -r conftest.dir
3746 fi
3747
3748 # Standard set of common directories for X headers.
3749 # Check X11 before X11Rn because it is often a symlink to the current release.
3750 ac_x_header_dirs='
3751 /usr/X11/include
3752 /usr/X11R6/include
3753 /usr/X11R5/include
3754 /usr/X11R4/include
3755
3756 /usr/include/X11
3757 /usr/include/X11R6
3758 /usr/include/X11R5
3759 /usr/include/X11R4
3760
3761 /usr/local/X11/include
3762 /usr/local/X11R6/include
3763 /usr/local/X11R5/include
3764 /usr/local/X11R4/include
3765
3766 /usr/local/include/X11
3767 /usr/local/include/X11R6
3768 /usr/local/include/X11R5
3769 /usr/local/include/X11R4
3770
3771 /usr/X386/include
3772 /usr/x386/include
3773 /usr/XFree86/include/X11
3774
3775 /usr/include
3776 /usr/local/include
3777 /usr/unsupported/include
3778 /usr/athena/include
3779 /usr/local/x11r5/include
3780 /usr/lpp/Xamples/include
3781
3782 /usr/openwin/include
3783 /usr/openwin/share/include'
3784
3785 if test "$ac_x_includes" = no; then
3786   # Guess where to find include files, by looking for Xlib.h.
3787   # First, try using that file with no special directory specified.
3788   cat >conftest.$ac_ext <<_ACEOF
3789 /* confdefs.h.  */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h.  */
3794 #include <X11/Xlib.h>
3795 _ACEOF
3796 if { (ac_try="$ac_cpp conftest.$ac_ext"
3797 case "(($ac_try" in
3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799   *) ac_try_echo=$ac_try;;
3800 esac
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3803   ac_status=$?
3804   grep -v '^ *+' conftest.er1 >conftest.err
3805   rm -f conftest.er1
3806   cat conftest.err >&5
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); } >/dev/null && {
3809          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3810          test ! -s conftest.err
3811        }; then
3812   # We can compile using X headers with no special include directory.
3813 ac_x_includes=
3814 else
3815   echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818   for ac_dir in $ac_x_header_dirs; do
3819   if test -r "$ac_dir/X11/Xlib.h"; then
3820     ac_x_includes=$ac_dir
3821     break
3822   fi
3823 done
3824 fi
3825
3826 rm -f conftest.err conftest.$ac_ext
3827 fi # $ac_x_includes = no
3828
3829 if test "$ac_x_libraries" = no; then
3830   # Check for the libraries.
3831   # See if we find them without any special options.
3832   # Don't add to $LIBS permanently.
3833   ac_save_LIBS=$LIBS
3834   LIBS="-lX11 $LIBS"
3835   cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h.  */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h.  */
3841 #include <X11/Xlib.h>
3842 int
3843 main ()
3844 {
3845 XrmInitialize ()
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 rm -f conftest.$ac_objext conftest$ac_exeext
3851 if { (ac_try="$ac_link"
3852 case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857   (eval "$ac_link") 2>conftest.er1
3858   ac_status=$?
3859   grep -v '^ *+' conftest.er1 >conftest.err
3860   rm -f conftest.er1
3861   cat conftest.err >&5
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); } && {
3864          test -z "$ac_c_werror_flag" ||
3865          test ! -s conftest.err
3866        } && test -s conftest$ac_exeext &&
3867        $as_test_x conftest$ac_exeext; then
3868   LIBS=$ac_save_LIBS
3869 # We can link X programs with no special library path.
3870 ac_x_libraries=
3871 else
3872   echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875         LIBS=$ac_save_LIBS
3876 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3877 do
3878   # Don't even attempt the hair of trying to link an X program!
3879   for ac_extension in a so sl; do
3880     if test -r "$ac_dir/libX11.$ac_extension"; then
3881       ac_x_libraries=$ac_dir
3882       break 2
3883     fi
3884   done
3885 done
3886 fi
3887
3888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3889       conftest$ac_exeext conftest.$ac_ext
3890 fi # $ac_x_libraries = no
3891
3892 case $ac_x_includes,$ac_x_libraries in #(
3893   no,* | *,no | *\'*)
3894     # Didn't find X, or a directory has "'" in its name.
3895     ac_cv_have_x="have_x=no";; #(
3896   *)
3897     # Record where we found X for the cache.
3898     ac_cv_have_x="have_x=yes\
3899         ac_x_includes='$ac_x_includes'\
3900         ac_x_libraries='$ac_x_libraries'"
3901 esac
3902 fi
3903 ;; #(
3904     *) have_x=yes;;
3905   esac
3906   eval "$ac_cv_have_x"
3907 fi # $with_x != no
3908
3909 if test "$have_x" != yes; then
3910   { echo "$as_me:$LINENO: result: $have_x" >&5
3911 echo "${ECHO_T}$have_x" >&6; }
3912   no_x=yes
3913 else
3914   # If each of the values was on the command line, it overrides each guess.
3915   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3916   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3917   # Update the cache value to reflect the command line values.
3918   ac_cv_have_x="have_x=yes\
3919         ac_x_includes='$x_includes'\
3920         ac_x_libraries='$x_libraries'"
3921   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3922 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3923 fi
3924
3925 if test "$no_x" = yes; then
3926   # Not all programs may use this symbol, but it does not hurt to define it.
3927
3928 cat >>confdefs.h <<\_ACEOF
3929 #define X_DISPLAY_MISSING 1
3930 _ACEOF
3931
3932   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3933 else
3934   if test -n "$x_includes"; then
3935     X_CFLAGS="$X_CFLAGS -I$x_includes"
3936   fi
3937
3938   # It would also be nice to do this for all -L options, not just this one.
3939   if test -n "$x_libraries"; then
3940     X_LIBS="$X_LIBS -L$x_libraries"
3941     # For Solaris; some versions of Sun CC require a space after -R and
3942     # others require no space.  Words are not sufficient . . . .
3943     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3944 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3945     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3946     ac_xsave_c_werror_flag=$ac_c_werror_flag
3947     ac_c_werror_flag=yes
3948     cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h.  */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h.  */
3954
3955 int
3956 main ()
3957 {
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 rm -f conftest.$ac_objext conftest$ac_exeext
3964 if { (ac_try="$ac_link"
3965 case "(($ac_try" in
3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967   *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970   (eval "$ac_link") 2>conftest.er1
3971   ac_status=$?
3972   grep -v '^ *+' conftest.er1 >conftest.err
3973   rm -f conftest.er1
3974   cat conftest.err >&5
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); } && {
3977          test -z "$ac_c_werror_flag" ||
3978          test ! -s conftest.err
3979        } && test -s conftest$ac_exeext &&
3980        $as_test_x conftest$ac_exeext; then
3981   { echo "$as_me:$LINENO: result: no" >&5
3982 echo "${ECHO_T}no" >&6; }
3983        X_LIBS="$X_LIBS -R$x_libraries"
3984 else
3985   echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988         LIBS="$ac_xsave_LIBS -R $x_libraries"
3989        cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h.  */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h.  */
3995
3996 int
3997 main ()
3998 {
3999
4000   ;
4001   return 0;
4002 }
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (ac_try="$ac_link"
4006 case "(($ac_try" in
4007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008   *) ac_try_echo=$ac_try;;
4009 esac
4010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4011   (eval "$ac_link") 2>conftest.er1
4012   ac_status=$?
4013   grep -v '^ *+' conftest.er1 >conftest.err
4014   rm -f conftest.er1
4015   cat conftest.err >&5
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); } && {
4018          test -z "$ac_c_werror_flag" ||
4019          test ! -s conftest.err
4020        } && test -s conftest$ac_exeext &&
4021        $as_test_x conftest$ac_exeext; then
4022   { echo "$as_me:$LINENO: result: yes" >&5
4023 echo "${ECHO_T}yes" >&6; }
4024           X_LIBS="$X_LIBS -R $x_libraries"
4025 else
4026   echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029         { echo "$as_me:$LINENO: result: neither works" >&5
4030 echo "${ECHO_T}neither works" >&6; }
4031 fi
4032
4033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4034       conftest$ac_exeext conftest.$ac_ext
4035 fi
4036
4037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4038       conftest$ac_exeext conftest.$ac_ext
4039     ac_c_werror_flag=$ac_xsave_c_werror_flag
4040     LIBS=$ac_xsave_LIBS
4041   fi
4042
4043   # Check for system-dependent libraries X programs must link with.
4044   # Do this before checking for the system-independent R6 libraries
4045   # (-lICE), since we may need -lsocket or whatever for X linking.
4046
4047   if test "$ISC" = yes; then
4048     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4049   else
4050     # Martyn Johnson says this is needed for Ultrix, if the X
4051     # libraries were built with DECnet support.  And Karl Berry says
4052     # the Alpha needs dnet_stub (dnet does not exist).
4053     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4054     cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h.  */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h.  */
4060
4061 /* Override any GCC internal prototype to avoid an error.
4062    Use char because int might match the return type of a GCC
4063    builtin and then its argument prototype would still apply.  */
4064 #ifdef __cplusplus
4065 extern "C"
4066 #endif
4067 char XOpenDisplay ();
4068 int
4069 main ()
4070 {
4071 return XOpenDisplay ();
4072   ;
4073   return 0;
4074 }
4075 _ACEOF
4076 rm -f conftest.$ac_objext conftest$ac_exeext
4077 if { (ac_try="$ac_link"
4078 case "(($ac_try" in
4079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080   *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083   (eval "$ac_link") 2>conftest.er1
4084   ac_status=$?
4085   grep -v '^ *+' conftest.er1 >conftest.err
4086   rm -f conftest.er1
4087   cat conftest.err >&5
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); } && {
4090          test -z "$ac_c_werror_flag" ||
4091          test ! -s conftest.err
4092        } && test -s conftest$ac_exeext &&
4093        $as_test_x conftest$ac_exeext; then
4094   :
4095 else
4096   echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4100 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4101 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   ac_check_lib_save_LIBS=$LIBS
4105 LIBS="-ldnet  $LIBS"
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h.  */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h.  */
4112
4113 /* Override any GCC internal prototype to avoid an error.
4114    Use char because int might match the return type of a GCC
4115    builtin and then its argument prototype would still apply.  */
4116 #ifdef __cplusplus
4117 extern "C"
4118 #endif
4119 char dnet_ntoa ();
4120 int
4121 main ()
4122 {
4123 return dnet_ntoa ();
4124   ;
4125   return 0;
4126 }
4127 _ACEOF
4128 rm -f conftest.$ac_objext conftest$ac_exeext
4129 if { (ac_try="$ac_link"
4130 case "(($ac_try" in
4131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132   *) ac_try_echo=$ac_try;;
4133 esac
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135   (eval "$ac_link") 2>conftest.er1
4136   ac_status=$?
4137   grep -v '^ *+' conftest.er1 >conftest.err
4138   rm -f conftest.er1
4139   cat conftest.err >&5
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); } && {
4142          test -z "$ac_c_werror_flag" ||
4143          test ! -s conftest.err
4144        } && test -s conftest$ac_exeext &&
4145        $as_test_x conftest$ac_exeext; then
4146   ac_cv_lib_dnet_dnet_ntoa=yes
4147 else
4148   echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151         ac_cv_lib_dnet_dnet_ntoa=no
4152 fi
4153
4154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4155       conftest$ac_exeext conftest.$ac_ext
4156 LIBS=$ac_check_lib_save_LIBS
4157 fi
4158 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4159 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4160 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4161   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4162 fi
4163
4164     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4165       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4166 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4167 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   ac_check_lib_save_LIBS=$LIBS
4171 LIBS="-ldnet_stub  $LIBS"
4172 cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178
4179 /* Override any GCC internal prototype to avoid an error.
4180    Use char because int might match the return type of a GCC
4181    builtin and then its argument prototype would still apply.  */
4182 #ifdef __cplusplus
4183 extern "C"
4184 #endif
4185 char dnet_ntoa ();
4186 int
4187 main ()
4188 {
4189 return dnet_ntoa ();
4190   ;
4191   return 0;
4192 }
4193 _ACEOF
4194 rm -f conftest.$ac_objext conftest$ac_exeext
4195 if { (ac_try="$ac_link"
4196 case "(($ac_try" in
4197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198   *) ac_try_echo=$ac_try;;
4199 esac
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201   (eval "$ac_link") 2>conftest.er1
4202   ac_status=$?
4203   grep -v '^ *+' conftest.er1 >conftest.err
4204   rm -f conftest.er1
4205   cat conftest.err >&5
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); } && {
4208          test -z "$ac_c_werror_flag" ||
4209          test ! -s conftest.err
4210        } && test -s conftest$ac_exeext &&
4211        $as_test_x conftest$ac_exeext; then
4212   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4213 else
4214   echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4216
4217         ac_cv_lib_dnet_stub_dnet_ntoa=no
4218 fi
4219
4220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4221       conftest$ac_exeext conftest.$ac_ext
4222 LIBS=$ac_check_lib_save_LIBS
4223 fi
4224 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4225 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4226 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4227   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4228 fi
4229
4230     fi
4231 fi
4232
4233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4234       conftest$ac_exeext conftest.$ac_ext
4235     LIBS="$ac_xsave_LIBS"
4236
4237     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4238     # to get the SysV transport functions.
4239     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4240     # needs -lnsl.
4241     # The nsl library prevents programs from opening the X display
4242     # on Irix 5.2, according to T.E. Dickey.
4243     # The functions gethostbyname, getservbyname, and inet_addr are
4244     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4245     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4246 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4247 if test "${ac_cv_func_gethostbyname+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4258 #define gethostbyname innocuous_gethostbyname
4259
4260 /* System header to define __stub macros and hopefully few prototypes,
4261     which can conflict with char gethostbyname (); below.
4262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4263     <limits.h> exists even on freestanding compilers.  */
4264
4265 #ifdef __STDC__
4266 # include <limits.h>
4267 #else
4268 # include <assert.h>
4269 #endif
4270
4271 #undef gethostbyname
4272
4273 /* Override any GCC internal prototype to avoid an error.
4274    Use char because int might match the return type of a GCC
4275    builtin and then its argument prototype would still apply.  */
4276 #ifdef __cplusplus
4277 extern "C"
4278 #endif
4279 char gethostbyname ();
4280 /* The GNU C library defines this for functions which it implements
4281     to always fail with ENOSYS.  Some functions are actually named
4282     something starting with __ and the normal name is an alias.  */
4283 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4284 choke me
4285 #endif
4286
4287 int
4288 main ()
4289 {
4290 return gethostbyname ();
4291   ;
4292   return 0;
4293 }
4294 _ACEOF
4295 rm -f conftest.$ac_objext conftest$ac_exeext
4296 if { (ac_try="$ac_link"
4297 case "(($ac_try" in
4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299   *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302   (eval "$ac_link") 2>conftest.er1
4303   ac_status=$?
4304   grep -v '^ *+' conftest.er1 >conftest.err
4305   rm -f conftest.er1
4306   cat conftest.err >&5
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); } && {
4309          test -z "$ac_c_werror_flag" ||
4310          test ! -s conftest.err
4311        } && test -s conftest$ac_exeext &&
4312        $as_test_x conftest$ac_exeext; then
4313   ac_cv_func_gethostbyname=yes
4314 else
4315   echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4317
4318         ac_cv_func_gethostbyname=no
4319 fi
4320
4321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4322       conftest$ac_exeext conftest.$ac_ext
4323 fi
4324 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4325 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4326
4327     if test $ac_cv_func_gethostbyname = no; then
4328       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4329 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4330 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   ac_check_lib_save_LIBS=$LIBS
4334 LIBS="-lnsl  $LIBS"
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341
4342 /* Override any GCC internal prototype to avoid an error.
4343    Use char because int might match the return type of a GCC
4344    builtin and then its argument prototype would still apply.  */
4345 #ifdef __cplusplus
4346 extern "C"
4347 #endif
4348 char gethostbyname ();
4349 int
4350 main ()
4351 {
4352 return gethostbyname ();
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 rm -f conftest.$ac_objext conftest$ac_exeext
4358 if { (ac_try="$ac_link"
4359 case "(($ac_try" in
4360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361   *) ac_try_echo=$ac_try;;
4362 esac
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364   (eval "$ac_link") 2>conftest.er1
4365   ac_status=$?
4366   grep -v '^ *+' conftest.er1 >conftest.err
4367   rm -f conftest.er1
4368   cat conftest.err >&5
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } && {
4371          test -z "$ac_c_werror_flag" ||
4372          test ! -s conftest.err
4373        } && test -s conftest$ac_exeext &&
4374        $as_test_x conftest$ac_exeext; then
4375   ac_cv_lib_nsl_gethostbyname=yes
4376 else
4377   echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380         ac_cv_lib_nsl_gethostbyname=no
4381 fi
4382
4383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4384       conftest$ac_exeext conftest.$ac_ext
4385 LIBS=$ac_check_lib_save_LIBS
4386 fi
4387 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4388 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4389 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4390   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4391 fi
4392
4393       if test $ac_cv_lib_nsl_gethostbyname = no; then
4394         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4395 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4396 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   ac_check_lib_save_LIBS=$LIBS
4400 LIBS="-lbsd  $LIBS"
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h.  */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h.  */
4407
4408 /* Override any GCC internal prototype to avoid an error.
4409    Use char because int might match the return type of a GCC
4410    builtin and then its argument prototype would still apply.  */
4411 #ifdef __cplusplus
4412 extern "C"
4413 #endif
4414 char gethostbyname ();
4415 int
4416 main ()
4417 {
4418 return gethostbyname ();
4419   ;
4420   return 0;
4421 }
4422 _ACEOF
4423 rm -f conftest.$ac_objext conftest$ac_exeext
4424 if { (ac_try="$ac_link"
4425 case "(($ac_try" in
4426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427   *) ac_try_echo=$ac_try;;
4428 esac
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430   (eval "$ac_link") 2>conftest.er1
4431   ac_status=$?
4432   grep -v '^ *+' conftest.er1 >conftest.err
4433   rm -f conftest.er1
4434   cat conftest.err >&5
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); } && {
4437          test -z "$ac_c_werror_flag" ||
4438          test ! -s conftest.err
4439        } && test -s conftest$ac_exeext &&
4440        $as_test_x conftest$ac_exeext; then
4441   ac_cv_lib_bsd_gethostbyname=yes
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446         ac_cv_lib_bsd_gethostbyname=no
4447 fi
4448
4449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4450       conftest$ac_exeext conftest.$ac_ext
4451 LIBS=$ac_check_lib_save_LIBS
4452 fi
4453 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4454 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4455 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4456   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4457 fi
4458
4459       fi
4460     fi
4461
4462     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4463     # socket/setsockopt and other routines are undefined under SCO ODT
4464     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4465     # on later versions), says Simon Leinen: it contains gethostby*
4466     # variants that don't use the name server (or something).  -lsocket
4467     # must be given before -lnsl if both are needed.  We assume that
4468     # if connect needs -lnsl, so does gethostbyname.
4469     { echo "$as_me:$LINENO: checking for connect" >&5
4470 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4471 if test "${ac_cv_func_connect+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   cat >conftest.$ac_ext <<_ACEOF
4475 /* confdefs.h.  */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h.  */
4480 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4482 #define connect innocuous_connect
4483
4484 /* System header to define __stub macros and hopefully few prototypes,
4485     which can conflict with char connect (); below.
4486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487     <limits.h> exists even on freestanding compilers.  */
4488
4489 #ifdef __STDC__
4490 # include <limits.h>
4491 #else
4492 # include <assert.h>
4493 #endif
4494
4495 #undef connect
4496
4497 /* Override any GCC internal prototype to avoid an error.
4498    Use char because int might match the return type of a GCC
4499    builtin and then its argument prototype would still apply.  */
4500 #ifdef __cplusplus
4501 extern "C"
4502 #endif
4503 char connect ();
4504 /* The GNU C library defines this for functions which it implements
4505     to always fail with ENOSYS.  Some functions are actually named
4506     something starting with __ and the normal name is an alias.  */
4507 #if defined __stub_connect || defined __stub___connect
4508 choke me
4509 #endif
4510
4511 int
4512 main ()
4513 {
4514 return connect ();
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest.$ac_objext conftest$ac_exeext
4520 if { (ac_try="$ac_link"
4521 case "(($ac_try" in
4522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523   *) ac_try_echo=$ac_try;;
4524 esac
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526   (eval "$ac_link") 2>conftest.er1
4527   ac_status=$?
4528   grep -v '^ *+' conftest.er1 >conftest.err
4529   rm -f conftest.er1
4530   cat conftest.err >&5
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); } && {
4533          test -z "$ac_c_werror_flag" ||
4534          test ! -s conftest.err
4535        } && test -s conftest$ac_exeext &&
4536        $as_test_x conftest$ac_exeext; then
4537   ac_cv_func_connect=yes
4538 else
4539   echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542         ac_cv_func_connect=no
4543 fi
4544
4545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4546       conftest$ac_exeext conftest.$ac_ext
4547 fi
4548 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4549 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4550
4551     if test $ac_cv_func_connect = no; then
4552       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4553 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4554 if test "${ac_cv_lib_socket_connect+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   ac_check_lib_save_LIBS=$LIBS
4558 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565
4566 /* Override any GCC internal prototype to avoid an error.
4567    Use char because int might match the return type of a GCC
4568    builtin and then its argument prototype would still apply.  */
4569 #ifdef __cplusplus
4570 extern "C"
4571 #endif
4572 char connect ();
4573 int
4574 main ()
4575 {
4576 return connect ();
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext conftest$ac_exeext
4582 if { (ac_try="$ac_link"
4583 case "(($ac_try" in
4584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585   *) ac_try_echo=$ac_try;;
4586 esac
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588   (eval "$ac_link") 2>conftest.er1
4589   ac_status=$?
4590   grep -v '^ *+' conftest.er1 >conftest.err
4591   rm -f conftest.er1
4592   cat conftest.err >&5
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } && {
4595          test -z "$ac_c_werror_flag" ||
4596          test ! -s conftest.err
4597        } && test -s conftest$ac_exeext &&
4598        $as_test_x conftest$ac_exeext; then
4599   ac_cv_lib_socket_connect=yes
4600 else
4601   echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604         ac_cv_lib_socket_connect=no
4605 fi
4606
4607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4608       conftest$ac_exeext conftest.$ac_ext
4609 LIBS=$ac_check_lib_save_LIBS
4610 fi
4611 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4612 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4613 if test $ac_cv_lib_socket_connect = yes; then
4614   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4615 fi
4616
4617     fi
4618
4619     # Guillermo Gomez says -lposix is necessary on A/UX.
4620     { echo "$as_me:$LINENO: checking for remove" >&5
4621 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4622 if test "${ac_cv_func_remove+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h.  */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h.  */
4631 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4633 #define remove innocuous_remove
4634
4635 /* System header to define __stub macros and hopefully few prototypes,
4636     which can conflict with char remove (); below.
4637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4638     <limits.h> exists even on freestanding compilers.  */
4639
4640 #ifdef __STDC__
4641 # include <limits.h>
4642 #else
4643 # include <assert.h>
4644 #endif
4645
4646 #undef remove
4647
4648 /* Override any GCC internal prototype to avoid an error.
4649    Use char because int might match the return type of a GCC
4650    builtin and then its argument prototype would still apply.  */
4651 #ifdef __cplusplus
4652 extern "C"
4653 #endif
4654 char remove ();
4655 /* The GNU C library defines this for functions which it implements
4656     to always fail with ENOSYS.  Some functions are actually named
4657     something starting with __ and the normal name is an alias.  */
4658 #if defined __stub_remove || defined __stub___remove
4659 choke me
4660 #endif
4661
4662 int
4663 main ()
4664 {
4665 return remove ();
4666   ;
4667   return 0;
4668 }
4669 _ACEOF
4670 rm -f conftest.$ac_objext conftest$ac_exeext
4671 if { (ac_try="$ac_link"
4672 case "(($ac_try" in
4673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674   *) ac_try_echo=$ac_try;;
4675 esac
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677   (eval "$ac_link") 2>conftest.er1
4678   ac_status=$?
4679   grep -v '^ *+' conftest.er1 >conftest.err
4680   rm -f conftest.er1
4681   cat conftest.err >&5
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); } && {
4684          test -z "$ac_c_werror_flag" ||
4685          test ! -s conftest.err
4686        } && test -s conftest$ac_exeext &&
4687        $as_test_x conftest$ac_exeext; then
4688   ac_cv_func_remove=yes
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693         ac_cv_func_remove=no
4694 fi
4695
4696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4697       conftest$ac_exeext conftest.$ac_ext
4698 fi
4699 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4700 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4701
4702     if test $ac_cv_func_remove = no; then
4703       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4704 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4705 if test "${ac_cv_lib_posix_remove+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   ac_check_lib_save_LIBS=$LIBS
4709 LIBS="-lposix  $LIBS"
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716
4717 /* Override any GCC internal prototype to avoid an error.
4718    Use char because int might match the return type of a GCC
4719    builtin and then its argument prototype would still apply.  */
4720 #ifdef __cplusplus
4721 extern "C"
4722 #endif
4723 char remove ();
4724 int
4725 main ()
4726 {
4727 return remove ();
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest.$ac_objext conftest$ac_exeext
4733 if { (ac_try="$ac_link"
4734 case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739   (eval "$ac_link") 2>conftest.er1
4740   ac_status=$?
4741   grep -v '^ *+' conftest.er1 >conftest.err
4742   rm -f conftest.er1
4743   cat conftest.err >&5
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } && {
4746          test -z "$ac_c_werror_flag" ||
4747          test ! -s conftest.err
4748        } && test -s conftest$ac_exeext &&
4749        $as_test_x conftest$ac_exeext; then
4750   ac_cv_lib_posix_remove=yes
4751 else
4752   echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4754
4755         ac_cv_lib_posix_remove=no
4756 fi
4757
4758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4759       conftest$ac_exeext conftest.$ac_ext
4760 LIBS=$ac_check_lib_save_LIBS
4761 fi
4762 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4763 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4764 if test $ac_cv_lib_posix_remove = yes; then
4765   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4766 fi
4767
4768     fi
4769
4770     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4771     { echo "$as_me:$LINENO: checking for shmat" >&5
4772 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4773 if test "${ac_cv_func_shmat+set}" = set; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776   cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h.  */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h.  */
4782 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4784 #define shmat innocuous_shmat
4785
4786 /* System header to define __stub macros and hopefully few prototypes,
4787     which can conflict with char shmat (); below.
4788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4789     <limits.h> exists even on freestanding compilers.  */
4790
4791 #ifdef __STDC__
4792 # include <limits.h>
4793 #else
4794 # include <assert.h>
4795 #endif
4796
4797 #undef shmat
4798
4799 /* Override any GCC internal prototype to avoid an error.
4800    Use char because int might match the return type of a GCC
4801    builtin and then its argument prototype would still apply.  */
4802 #ifdef __cplusplus
4803 extern "C"
4804 #endif
4805 char shmat ();
4806 /* The GNU C library defines this for functions which it implements
4807     to always fail with ENOSYS.  Some functions are actually named
4808     something starting with __ and the normal name is an alias.  */
4809 #if defined __stub_shmat || defined __stub___shmat
4810 choke me
4811 #endif
4812
4813 int
4814 main ()
4815 {
4816 return shmat ();
4817   ;
4818   return 0;
4819 }
4820 _ACEOF
4821 rm -f conftest.$ac_objext conftest$ac_exeext
4822 if { (ac_try="$ac_link"
4823 case "(($ac_try" in
4824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825   *) ac_try_echo=$ac_try;;
4826 esac
4827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828   (eval "$ac_link") 2>conftest.er1
4829   ac_status=$?
4830   grep -v '^ *+' conftest.er1 >conftest.err
4831   rm -f conftest.er1
4832   cat conftest.err >&5
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } && {
4835          test -z "$ac_c_werror_flag" ||
4836          test ! -s conftest.err
4837        } && test -s conftest$ac_exeext &&
4838        $as_test_x conftest$ac_exeext; then
4839   ac_cv_func_shmat=yes
4840 else
4841   echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4843
4844         ac_cv_func_shmat=no
4845 fi
4846
4847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4848       conftest$ac_exeext conftest.$ac_ext
4849 fi
4850 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4851 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4852
4853     if test $ac_cv_func_shmat = no; then
4854       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4855 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4856 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859   ac_check_lib_save_LIBS=$LIBS
4860 LIBS="-lipc  $LIBS"
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h.  */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h.  */
4867
4868 /* Override any GCC internal prototype to avoid an error.
4869    Use char because int might match the return type of a GCC
4870    builtin and then its argument prototype would still apply.  */
4871 #ifdef __cplusplus
4872 extern "C"
4873 #endif
4874 char shmat ();
4875 int
4876 main ()
4877 {
4878 return shmat ();
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 rm -f conftest.$ac_objext conftest$ac_exeext
4884 if { (ac_try="$ac_link"
4885 case "(($ac_try" in
4886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887   *) ac_try_echo=$ac_try;;
4888 esac
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890   (eval "$ac_link") 2>conftest.er1
4891   ac_status=$?
4892   grep -v '^ *+' conftest.er1 >conftest.err
4893   rm -f conftest.er1
4894   cat conftest.err >&5
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); } && {
4897          test -z "$ac_c_werror_flag" ||
4898          test ! -s conftest.err
4899        } && test -s conftest$ac_exeext &&
4900        $as_test_x conftest$ac_exeext; then
4901   ac_cv_lib_ipc_shmat=yes
4902 else
4903   echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906         ac_cv_lib_ipc_shmat=no
4907 fi
4908
4909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4910       conftest$ac_exeext conftest.$ac_ext
4911 LIBS=$ac_check_lib_save_LIBS
4912 fi
4913 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4914 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4915 if test $ac_cv_lib_ipc_shmat = yes; then
4916   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4917 fi
4918
4919     fi
4920   fi
4921
4922   # Check for libraries that X11R6 Xt/Xaw programs need.
4923   ac_save_LDFLAGS=$LDFLAGS
4924   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4925   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4926   # check for ICE first), but we must link in the order -lSM -lICE or
4927   # we get undefined symbols.  So assume we have SM if we have ICE.
4928   # These have to be linked with before -lX11, unlike the other
4929   # libraries we check for below, so use a different variable.
4930   # John Interrante, Karl Berry
4931   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4932 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4933 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4934   echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936   ac_check_lib_save_LIBS=$LIBS
4937 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h.  */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h.  */
4944
4945 /* Override any GCC internal prototype to avoid an error.
4946    Use char because int might match the return type of a GCC
4947    builtin and then its argument prototype would still apply.  */
4948 #ifdef __cplusplus
4949 extern "C"
4950 #endif
4951 char IceConnectionNumber ();
4952 int
4953 main ()
4954 {
4955 return IceConnectionNumber ();
4956   ;
4957   return 0;
4958 }
4959 _ACEOF
4960 rm -f conftest.$ac_objext conftest$ac_exeext
4961 if { (ac_try="$ac_link"
4962 case "(($ac_try" in
4963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964   *) ac_try_echo=$ac_try;;
4965 esac
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967   (eval "$ac_link") 2>conftest.er1
4968   ac_status=$?
4969   grep -v '^ *+' conftest.er1 >conftest.err
4970   rm -f conftest.er1
4971   cat conftest.err >&5
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); } && {
4974          test -z "$ac_c_werror_flag" ||
4975          test ! -s conftest.err
4976        } && test -s conftest$ac_exeext &&
4977        $as_test_x conftest$ac_exeext; then
4978   ac_cv_lib_ICE_IceConnectionNumber=yes
4979 else
4980   echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4982
4983         ac_cv_lib_ICE_IceConnectionNumber=no
4984 fi
4985
4986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4987       conftest$ac_exeext conftest.$ac_ext
4988 LIBS=$ac_check_lib_save_LIBS
4989 fi
4990 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4991 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4992 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4993   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4994 fi
4995
4996   LDFLAGS=$ac_save_LDFLAGS
4997
4998 fi
4999
5000 for ac_prog in flex lex
5001 do
5002   # Extract the first word of "$ac_prog", so it can be a program name with args.
5003 set dummy $ac_prog; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_prog_LEX+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   if test -n "$LEX"; then
5010   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017   for ac_exec_ext in '' $ac_executable_extensions; do
5018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019     ac_cv_prog_LEX="$ac_prog"
5020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024 done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 LEX=$ac_cv_prog_LEX
5030 if test -n "$LEX"; then
5031   { echo "$as_me:$LINENO: result: $LEX" >&5
5032 echo "${ECHO_T}$LEX" >&6; }
5033 else
5034   { echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6; }
5036 fi
5037
5038
5039   test -n "$LEX" && break
5040 done
5041 test -n "$LEX" || LEX=":"
5042
5043 if test "x$LEX" != "x:"; then
5044   cat >conftest.l <<_ACEOF
5045 %%
5046 a { ECHO; }
5047 b { REJECT; }
5048 c { yymore (); }
5049 d { yyless (1); }
5050 e { yyless (input () != 0); }
5051 f { unput (yytext[0]); }
5052 . { BEGIN INITIAL; }
5053 %%
5054 #ifdef YYTEXT_POINTER
5055 extern char *yytext;
5056 #endif
5057 int
5058 main (void)
5059 {
5060   return ! yylex () + ! yywrap ();
5061 }
5062 _ACEOF
5063 { (ac_try="$LEX conftest.l"
5064 case "(($ac_try" in
5065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066   *) ac_try_echo=$ac_try;;
5067 esac
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069   (eval "$LEX conftest.l") 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }
5073 { echo "$as_me:$LINENO: checking lex output file root" >&5
5074 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5075 if test "${ac_cv_prog_lex_root+set}" = set; then
5076   echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078
5079 if test -f lex.yy.c; then
5080   ac_cv_prog_lex_root=lex.yy
5081 elif test -f lexyy.c; then
5082   ac_cv_prog_lex_root=lexyy
5083 else
5084   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5085 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5086    { (exit 1); exit 1; }; }
5087 fi
5088 fi
5089 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5090 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5091 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5092
5093 if test -z "${LEXLIB+set}"; then
5094   { echo "$as_me:$LINENO: checking lex library" >&5
5095 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5096 if test "${ac_cv_lib_lex+set}" = set; then
5097   echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099
5100     ac_save_LIBS=$LIBS
5101     ac_cv_lib_lex='none needed'
5102     for ac_lib in '' -lfl -ll; do
5103       LIBS="$ac_lib $ac_save_LIBS"
5104       cat >conftest.$ac_ext <<_ACEOF
5105 `cat $LEX_OUTPUT_ROOT.c`
5106 _ACEOF
5107 rm -f conftest.$ac_objext conftest$ac_exeext
5108 if { (ac_try="$ac_link"
5109 case "(($ac_try" in
5110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111   *) ac_try_echo=$ac_try;;
5112 esac
5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114   (eval "$ac_link") 2>conftest.er1
5115   ac_status=$?
5116   grep -v '^ *+' conftest.er1 >conftest.err
5117   rm -f conftest.er1
5118   cat conftest.err >&5
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); } && {
5121          test -z "$ac_c_werror_flag" ||
5122          test ! -s conftest.err
5123        } && test -s conftest$ac_exeext &&
5124        $as_test_x conftest$ac_exeext; then
5125   ac_cv_lib_lex=$ac_lib
5126 else
5127   echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5129
5130
5131 fi
5132
5133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5134       conftest$ac_exeext conftest.$ac_ext
5135       test "$ac_cv_lib_lex" != 'none needed' && break
5136     done
5137     LIBS=$ac_save_LIBS
5138
5139 fi
5140 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5141 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5142   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5143 fi
5144
5145
5146 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5147 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5148 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   # POSIX says lex can declare yytext either as a pointer or an array; the
5152 # default is implementation-dependent.  Figure out which it is, since
5153 # not all implementations provide the %pointer and %array declarations.
5154 ac_cv_prog_lex_yytext_pointer=no
5155 ac_save_LIBS=$LIBS
5156 LIBS="$LEXLIB $ac_save_LIBS"
5157 cat >conftest.$ac_ext <<_ACEOF
5158 #define YYTEXT_POINTER 1
5159 `cat $LEX_OUTPUT_ROOT.c`
5160 _ACEOF
5161 rm -f conftest.$ac_objext conftest$ac_exeext
5162 if { (ac_try="$ac_link"
5163 case "(($ac_try" in
5164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165   *) ac_try_echo=$ac_try;;
5166 esac
5167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168   (eval "$ac_link") 2>conftest.er1
5169   ac_status=$?
5170   grep -v '^ *+' conftest.er1 >conftest.err
5171   rm -f conftest.er1
5172   cat conftest.err >&5
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); } && {
5175          test -z "$ac_c_werror_flag" ||
5176          test ! -s conftest.err
5177        } && test -s conftest$ac_exeext &&
5178        $as_test_x conftest$ac_exeext; then
5179   ac_cv_prog_lex_yytext_pointer=yes
5180 else
5181   echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5183
5184
5185 fi
5186
5187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5188       conftest$ac_exeext conftest.$ac_ext
5189 LIBS=$ac_save_LIBS
5190
5191 fi
5192 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5193 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5194 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5195
5196 cat >>confdefs.h <<\_ACEOF
5197 #define YYTEXT_POINTER 1
5198 _ACEOF
5199
5200 fi
5201 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5202
5203 fi
5204
5205 for ac_prog in $LEX flex lex
5206 do
5207   # Extract the first word of "$ac_prog", so it can be a program name with args.
5208 set dummy $ac_prog; ac_word=$2
5209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5211 if test "${ac_cv_prog_XLEX+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   if test -n "$XLEX"; then
5215   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222   for ac_exec_ext in '' $ac_executable_extensions; do
5223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224     ac_cv_prog_XLEX="$ac_prog"
5225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226     break 2
5227   fi
5228 done
5229 done
5230 IFS=$as_save_IFS
5231
5232 fi
5233 fi
5234 XLEX=$ac_cv_prog_XLEX
5235 if test -n "$XLEX"; then
5236   { echo "$as_me:$LINENO: result: $XLEX" >&5
5237 echo "${ECHO_T}$XLEX" >&6; }
5238 else
5239   { echo "$as_me:$LINENO: result: no" >&5
5240 echo "${ECHO_T}no" >&6; }
5241 fi
5242
5243
5244   test -n "$XLEX" && break
5245 done
5246 test -n "$XLEX" || XLEX="none"
5247
5248 if test "$XLEX" = "none"
5249 then
5250   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5251 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5252    { (exit 1); exit 1; }; }
5253 fi
5254
5255 for ac_prog in bison
5256 do
5257   # Extract the first word of "$ac_prog", so it can be a program name with args.
5258 set dummy $ac_prog; ac_word=$2
5259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5261 if test "${ac_cv_prog_BISON+set}" = set; then
5262   echo $ECHO_N "(cached) $ECHO_C" >&6
5263 else
5264   if test -n "$BISON"; then
5265   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270   IFS=$as_save_IFS
5271   test -z "$as_dir" && as_dir=.
5272   for ac_exec_ext in '' $ac_executable_extensions; do
5273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274     ac_cv_prog_BISON="$ac_prog"
5275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276     break 2
5277   fi
5278 done
5279 done
5280 IFS=$as_save_IFS
5281
5282 fi
5283 fi
5284 BISON=$ac_cv_prog_BISON
5285 if test -n "$BISON"; then
5286   { echo "$as_me:$LINENO: result: $BISON" >&5
5287 echo "${ECHO_T}$BISON" >&6; }
5288 else
5289   { echo "$as_me:$LINENO: result: no" >&5
5290 echo "${ECHO_T}no" >&6; }
5291 fi
5292
5293
5294   test -n "$BISON" && break
5295 done
5296 test -n "$BISON" || BISON="none"
5297
5298 if test "$BISON" = "none"
5299 then
5300   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5301 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5302    { (exit 1); exit 1; }; }
5303 fi
5304
5305 if test -n "$ac_tool_prefix"; then
5306   for ac_prog in gas as
5307   do
5308     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5312 if test "${ac_cv_prog_AS+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   if test -n "$AS"; then
5316   ac_cv_prog_AS="$AS" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321   IFS=$as_save_IFS
5322   test -z "$as_dir" && as_dir=.
5323   for ac_exec_ext in '' $ac_executable_extensions; do
5324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327     break 2
5328   fi
5329 done
5330 done
5331 IFS=$as_save_IFS
5332
5333 fi
5334 fi
5335 AS=$ac_cv_prog_AS
5336 if test -n "$AS"; then
5337   { echo "$as_me:$LINENO: result: $AS" >&5
5338 echo "${ECHO_T}$AS" >&6; }
5339 else
5340   { echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6; }
5342 fi
5343
5344
5345     test -n "$AS" && break
5346   done
5347 fi
5348 if test -z "$AS"; then
5349   ac_ct_AS=$AS
5350   for ac_prog in gas as
5351 do
5352   # Extract the first word of "$ac_prog", so it can be a program name with args.
5353 set dummy $ac_prog; ac_word=$2
5354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5356 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5357   echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359   if test -n "$ac_ct_AS"; then
5360   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365   IFS=$as_save_IFS
5366   test -z "$as_dir" && as_dir=.
5367   for ac_exec_ext in '' $ac_executable_extensions; do
5368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5369     ac_cv_prog_ac_ct_AS="$ac_prog"
5370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371     break 2
5372   fi
5373 done
5374 done
5375 IFS=$as_save_IFS
5376
5377 fi
5378 fi
5379 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5380 if test -n "$ac_ct_AS"; then
5381   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5382 echo "${ECHO_T}$ac_ct_AS" >&6; }
5383 else
5384   { echo "$as_me:$LINENO: result: no" >&5
5385 echo "${ECHO_T}no" >&6; }
5386 fi
5387
5388
5389   test -n "$ac_ct_AS" && break
5390 done
5391
5392   if test "x$ac_ct_AS" = x; then
5393     AS="as"
5394   else
5395     case $cross_compiling:$ac_tool_warned in
5396 yes:)
5397 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5398 whose name does not start with the host triplet.  If you think this
5399 configuration is useful to you, please write to autoconf@gnu.org." >&5
5400 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5401 whose name does not start with the host triplet.  If you think this
5402 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5403 ac_tool_warned=yes ;;
5404 esac
5405     AS=$ac_ct_AS
5406   fi
5407 fi
5408
5409 if test -n "$ac_tool_prefix"; then
5410   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5411 set dummy ${ac_tool_prefix}ld; ac_word=$2
5412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5414 if test "${ac_cv_prog_LD+set}" = set; then
5415   echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417   if test -n "$LD"; then
5418   ac_cv_prog_LD="$LD" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5422 do
5423   IFS=$as_save_IFS
5424   test -z "$as_dir" && as_dir=.
5425   for ac_exec_ext in '' $ac_executable_extensions; do
5426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427     ac_cv_prog_LD="${ac_tool_prefix}ld"
5428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429     break 2
5430   fi
5431 done
5432 done
5433 IFS=$as_save_IFS
5434
5435 fi
5436 fi
5437 LD=$ac_cv_prog_LD
5438 if test -n "$LD"; then
5439   { echo "$as_me:$LINENO: result: $LD" >&5
5440 echo "${ECHO_T}$LD" >&6; }
5441 else
5442   { echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6; }
5444 fi
5445
5446
5447 fi
5448 if test -z "$ac_cv_prog_LD"; then
5449   ac_ct_LD=$LD
5450   # Extract the first word of "ld", so it can be a program name with args.
5451 set dummy ld; ac_word=$2
5452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5454 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5455   echo $ECHO_N "(cached) $ECHO_C" >&6
5456 else
5457   if test -n "$ac_ct_LD"; then
5458   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463   IFS=$as_save_IFS
5464   test -z "$as_dir" && as_dir=.
5465   for ac_exec_ext in '' $ac_executable_extensions; do
5466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467     ac_cv_prog_ac_ct_LD="ld"
5468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5469     break 2
5470   fi
5471 done
5472 done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5478 if test -n "$ac_ct_LD"; then
5479   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5480 echo "${ECHO_T}$ac_ct_LD" >&6; }
5481 else
5482   { echo "$as_me:$LINENO: result: no" >&5
5483 echo "${ECHO_T}no" >&6; }
5484 fi
5485
5486   if test "x$ac_ct_LD" = x; then
5487     LD="ld"
5488   else
5489     case $cross_compiling:$ac_tool_warned in
5490 yes:)
5491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5492 whose name does not start with the host triplet.  If you think this
5493 configuration is useful to you, please write to autoconf@gnu.org." >&5
5494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5495 whose name does not start with the host triplet.  If you think this
5496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5497 ac_tool_warned=yes ;;
5498 esac
5499     LD=$ac_ct_LD
5500   fi
5501 else
5502   LD="$ac_cv_prog_LD"
5503 fi
5504
5505 if test -n "$ac_tool_prefix"; then
5506   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}ar; ac_word=$2
5508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5510 if test "${ac_cv_prog_AR+set}" = set; then
5511   echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513   if test -n "$AR"; then
5514   ac_cv_prog_AR="$AR" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519   IFS=$as_save_IFS
5520   test -z "$as_dir" && as_dir=.
5521   for ac_exec_ext in '' $ac_executable_extensions; do
5522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523     ac_cv_prog_AR="${ac_tool_prefix}ar"
5524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525     break 2
5526   fi
5527 done
5528 done
5529 IFS=$as_save_IFS
5530
5531 fi
5532 fi
5533 AR=$ac_cv_prog_AR
5534 if test -n "$AR"; then
5535   { echo "$as_me:$LINENO: result: $AR" >&5
5536 echo "${ECHO_T}$AR" >&6; }
5537 else
5538   { echo "$as_me:$LINENO: result: no" >&5
5539 echo "${ECHO_T}no" >&6; }
5540 fi
5541
5542
5543 fi
5544 if test -z "$ac_cv_prog_AR"; then
5545   ac_ct_AR=$AR
5546   # Extract the first word of "ar", so it can be a program name with args.
5547 set dummy ar; ac_word=$2
5548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5550 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5551   echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553   if test -n "$ac_ct_AR"; then
5554   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561   for ac_exec_ext in '' $ac_executable_extensions; do
5562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563     ac_cv_prog_ac_ct_AR="ar"
5564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565     break 2
5566   fi
5567 done
5568 done
5569 IFS=$as_save_IFS
5570
5571 fi
5572 fi
5573 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5574 if test -n "$ac_ct_AR"; then
5575   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5576 echo "${ECHO_T}$ac_ct_AR" >&6; }
5577 else
5578   { echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6; }
5580 fi
5581
5582   if test "x$ac_ct_AR" = x; then
5583     AR="ar"
5584   else
5585     case $cross_compiling:$ac_tool_warned in
5586 yes:)
5587 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5588 whose name does not start with the host triplet.  If you think this
5589 configuration is useful to you, please write to autoconf@gnu.org." >&5
5590 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5591 whose name does not start with the host triplet.  If you think this
5592 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5593 ac_tool_warned=yes ;;
5594 esac
5595     AR=$ac_ct_AR
5596   fi
5597 else
5598   AR="$ac_cv_prog_AR"
5599 fi
5600
5601 if test -n "$ac_tool_prefix"; then
5602   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5603 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5606 if test "${ac_cv_prog_RANLIB+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609   if test -n "$RANLIB"; then
5610   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617   for ac_exec_ext in '' $ac_executable_extensions; do
5618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624 done
5625 IFS=$as_save_IFS
5626
5627 fi
5628 fi
5629 RANLIB=$ac_cv_prog_RANLIB
5630 if test -n "$RANLIB"; then
5631   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5632 echo "${ECHO_T}$RANLIB" >&6; }
5633 else
5634   { echo "$as_me:$LINENO: result: no" >&5
5635 echo "${ECHO_T}no" >&6; }
5636 fi
5637
5638
5639 fi
5640 if test -z "$ac_cv_prog_RANLIB"; then
5641   ac_ct_RANLIB=$RANLIB
5642   # Extract the first word of "ranlib", so it can be a program name with args.
5643 set dummy ranlib; ac_word=$2
5644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5646 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5647   echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649   if test -n "$ac_ct_RANLIB"; then
5650   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655   IFS=$as_save_IFS
5656   test -z "$as_dir" && as_dir=.
5657   for ac_exec_ext in '' $ac_executable_extensions; do
5658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5659     ac_cv_prog_ac_ct_RANLIB="ranlib"
5660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661     break 2
5662   fi
5663 done
5664 done
5665 IFS=$as_save_IFS
5666
5667 fi
5668 fi
5669 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5670 if test -n "$ac_ct_RANLIB"; then
5671   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5672 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5673 else
5674   { echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6; }
5676 fi
5677
5678   if test "x$ac_ct_RANLIB" = x; then
5679     RANLIB=":"
5680   else
5681     case $cross_compiling:$ac_tool_warned in
5682 yes:)
5683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5684 whose name does not start with the host triplet.  If you think this
5685 configuration is useful to you, please write to autoconf@gnu.org." >&5
5686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5687 whose name does not start with the host triplet.  If you think this
5688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5689 ac_tool_warned=yes ;;
5690 esac
5691     RANLIB=$ac_ct_RANLIB
5692   fi
5693 else
5694   RANLIB="$ac_cv_prog_RANLIB"
5695 fi
5696
5697 if test -n "$ac_tool_prefix"; then
5698   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5699 set dummy ${ac_tool_prefix}strip; ac_word=$2
5700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5702 if test "${ac_cv_prog_STRIP+set}" = set; then
5703   echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705   if test -n "$STRIP"; then
5706   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713   for ac_exec_ext in '' $ac_executable_extensions; do
5714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720 done
5721 IFS=$as_save_IFS
5722
5723 fi
5724 fi
5725 STRIP=$ac_cv_prog_STRIP
5726 if test -n "$STRIP"; then
5727   { echo "$as_me:$LINENO: result: $STRIP" >&5
5728 echo "${ECHO_T}$STRIP" >&6; }
5729 else
5730   { echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6; }
5732 fi
5733
5734
5735 fi
5736 if test -z "$ac_cv_prog_STRIP"; then
5737   ac_ct_STRIP=$STRIP
5738   # Extract the first word of "strip", so it can be a program name with args.
5739 set dummy strip; ac_word=$2
5740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5742 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   if test -n "$ac_ct_STRIP"; then
5746   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753   for ac_exec_ext in '' $ac_executable_extensions; do
5754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755     ac_cv_prog_ac_ct_STRIP="strip"
5756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760 done
5761 IFS=$as_save_IFS
5762
5763 fi
5764 fi
5765 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5766 if test -n "$ac_ct_STRIP"; then
5767   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5768 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5769 else
5770   { echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6; }
5772 fi
5773
5774   if test "x$ac_ct_STRIP" = x; then
5775     STRIP="strip"
5776   else
5777     case $cross_compiling:$ac_tool_warned in
5778 yes:)
5779 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5780 whose name does not start with the host triplet.  If you think this
5781 configuration is useful to you, please write to autoconf@gnu.org." >&5
5782 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5783 whose name does not start with the host triplet.  If you think this
5784 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5785 ac_tool_warned=yes ;;
5786 esac
5787     STRIP=$ac_ct_STRIP
5788   fi
5789 else
5790   STRIP="$ac_cv_prog_STRIP"
5791 fi
5792
5793 if test -n "$ac_tool_prefix"; then
5794   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}windres; ac_word=$2
5796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5798 if test "${ac_cv_prog_WINDRES+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   if test -n "$WINDRES"; then
5802   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 WINDRES=$ac_cv_prog_WINDRES
5822 if test -n "$WINDRES"; then
5823   { echo "$as_me:$LINENO: result: $WINDRES" >&5
5824 echo "${ECHO_T}$WINDRES" >&6; }
5825 else
5826   { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5828 fi
5829
5830
5831 fi
5832 if test -z "$ac_cv_prog_WINDRES"; then
5833   ac_ct_WINDRES=$WINDRES
5834   # Extract the first word of "windres", so it can be a program name with args.
5835 set dummy windres; ac_word=$2
5836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5838 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   if test -n "$ac_ct_WINDRES"; then
5842   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847   IFS=$as_save_IFS
5848   test -z "$as_dir" && as_dir=.
5849   for ac_exec_ext in '' $ac_executable_extensions; do
5850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5851     ac_cv_prog_ac_ct_WINDRES="windres"
5852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853     break 2
5854   fi
5855 done
5856 done
5857 IFS=$as_save_IFS
5858
5859 fi
5860 fi
5861 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5862 if test -n "$ac_ct_WINDRES"; then
5863   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5864 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
5865 else
5866   { echo "$as_me:$LINENO: result: no" >&5
5867 echo "${ECHO_T}no" >&6; }
5868 fi
5869
5870   if test "x$ac_ct_WINDRES" = x; then
5871     WINDRES="false"
5872   else
5873     case $cross_compiling:$ac_tool_warned in
5874 yes:)
5875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5876 whose name does not start with the host triplet.  If you think this
5877 configuration is useful to you, please write to autoconf@gnu.org." >&5
5878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5879 whose name does not start with the host triplet.  If you think this
5880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5881 ac_tool_warned=yes ;;
5882 esac
5883     WINDRES=$ac_ct_WINDRES
5884   fi
5885 else
5886   WINDRES="$ac_cv_prog_WINDRES"
5887 fi
5888
5889 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5890 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5891 LN_S=$as_ln_s
5892 if test "$LN_S" = "ln -s"; then
5893   { echo "$as_me:$LINENO: result: yes" >&5
5894 echo "${ECHO_T}yes" >&6; }
5895 else
5896   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5897 echo "${ECHO_T}no, using $LN_S" >&6; }
5898 fi
5899
5900 { echo "$as_me:$LINENO: checking whether ln works" >&5
5901 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
5902 rm -f conf$$ conf$$.file
5903 echo >conf$$.file
5904 if ln conf$$.file conf$$ 2>/dev/null; then
5905   LN=ln
5906
5907   { echo "$as_me:$LINENO: result: yes" >&5
5908 echo "${ECHO_T}yes" >&6; }
5909 else
5910   LN="cp -p"
5911
5912   { echo "$as_me:$LINENO: result: no, using $LN" >&5
5913 echo "${ECHO_T}no, using $LN" >&6; }
5914 fi
5915 rm -f conf$$ conf$$.file
5916 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5917 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5918 if test "${ac_cv_path_GREP+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   # Extract the first word of "grep ggrep" to use in msg output
5922 if test -z "$GREP"; then
5923 set dummy grep ggrep; ac_prog_name=$2
5924 if test "${ac_cv_path_GREP+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   ac_path_GREP_found=false
5928 # Loop through the user's path and test for each of PROGNAME-LIST
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5931 do
5932   IFS=$as_save_IFS
5933   test -z "$as_dir" && as_dir=.
5934   for ac_prog in grep ggrep; do
5935   for ac_exec_ext in '' $ac_executable_extensions; do
5936     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5937     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5938     # Check for GNU ac_path_GREP and select it if it is found.
5939   # Check for GNU $ac_path_GREP
5940 case `"$ac_path_GREP" --version 2>&1` in
5941 *GNU*)
5942   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5943 *)
5944   ac_count=0
5945   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5946   while :
5947   do
5948     cat "conftest.in" "conftest.in" >"conftest.tmp"
5949     mv "conftest.tmp" "conftest.in"
5950     cp "conftest.in" "conftest.nl"
5951     echo 'GREP' >> "conftest.nl"
5952     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5953     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5954     ac_count=`expr $ac_count + 1`
5955     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5956       # Best one so far, save it but keep looking for a better one
5957       ac_cv_path_GREP="$ac_path_GREP"
5958       ac_path_GREP_max=$ac_count
5959     fi
5960     # 10*(2^10) chars as input seems more than enough
5961     test $ac_count -gt 10 && break
5962   done
5963   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5964 esac
5965
5966
5967     $ac_path_GREP_found && break 3
5968   done
5969 done
5970
5971 done
5972 IFS=$as_save_IFS
5973
5974
5975 fi
5976
5977 GREP="$ac_cv_path_GREP"
5978 if test -z "$GREP"; then
5979   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5980 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5981    { (exit 1); exit 1; }; }
5982 fi
5983
5984 else
5985   ac_cv_path_GREP=$GREP
5986 fi
5987
5988
5989 fi
5990 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5991 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5992  GREP="$ac_cv_path_GREP"
5993
5994
5995 { echo "$as_me:$LINENO: checking for egrep" >&5
5996 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5997 if test "${ac_cv_path_EGREP+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6001    then ac_cv_path_EGREP="$GREP -E"
6002    else
6003      # Extract the first word of "egrep" to use in msg output
6004 if test -z "$EGREP"; then
6005 set dummy egrep; ac_prog_name=$2
6006 if test "${ac_cv_path_EGREP+set}" = set; then
6007   echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009   ac_path_EGREP_found=false
6010 # Loop through the user's path and test for each of PROGNAME-LIST
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016   for ac_prog in egrep; do
6017   for ac_exec_ext in '' $ac_executable_extensions; do
6018     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6019     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6020     # Check for GNU ac_path_EGREP and select it if it is found.
6021   # Check for GNU $ac_path_EGREP
6022 case `"$ac_path_EGREP" --version 2>&1` in
6023 *GNU*)
6024   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6025 *)
6026   ac_count=0
6027   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6028   while :
6029   do
6030     cat "conftest.in" "conftest.in" >"conftest.tmp"
6031     mv "conftest.tmp" "conftest.in"
6032     cp "conftest.in" "conftest.nl"
6033     echo 'EGREP' >> "conftest.nl"
6034     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6035     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6036     ac_count=`expr $ac_count + 1`
6037     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6038       # Best one so far, save it but keep looking for a better one
6039       ac_cv_path_EGREP="$ac_path_EGREP"
6040       ac_path_EGREP_max=$ac_count
6041     fi
6042     # 10*(2^10) chars as input seems more than enough
6043     test $ac_count -gt 10 && break
6044   done
6045   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6046 esac
6047
6048
6049     $ac_path_EGREP_found && break 3
6050   done
6051 done
6052
6053 done
6054 IFS=$as_save_IFS
6055
6056
6057 fi
6058
6059 EGREP="$ac_cv_path_EGREP"
6060 if test -z "$EGREP"; then
6061   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6062 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6063    { (exit 1); exit 1; }; }
6064 fi
6065
6066 else
6067   ac_cv_path_EGREP=$EGREP
6068 fi
6069
6070
6071    fi
6072 fi
6073 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6074 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6075  EGREP="$ac_cv_path_EGREP"
6076
6077
6078 # Extract the first word of "ldconfig", so it can be a program name with args.
6079 set dummy ldconfig; ac_word=$2
6080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085   case $LDCONFIG in
6086   [\\/]* | ?:[\\/]*)
6087   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6088   ;;
6089   *)
6090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in /sbin /usr/sbin $PATH
6092 do
6093   IFS=$as_save_IFS
6094   test -z "$as_dir" && as_dir=.
6095   for ac_exec_ext in '' $ac_executable_extensions; do
6096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6097     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099     break 2
6100   fi
6101 done
6102 done
6103 IFS=$as_save_IFS
6104
6105   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6106   ;;
6107 esac
6108 fi
6109 LDCONFIG=$ac_cv_path_LDCONFIG
6110 if test -n "$LDCONFIG"; then
6111   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6112 echo "${ECHO_T}$LDCONFIG" >&6; }
6113 else
6114   { echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6; }
6116 fi
6117
6118
6119 # Find a good install program.  We prefer a C program (faster),
6120 # so one script is as good as another.  But avoid the broken or
6121 # incompatible versions:
6122 # SysV /etc/install, /usr/sbin/install
6123 # SunOS /usr/etc/install
6124 # IRIX /sbin/install
6125 # AIX /bin/install
6126 # AmigaOS /C/install, which installs bootblocks on floppy discs
6127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6130 # OS/2's system install, which has a completely different semantic
6131 # ./install, which can be erroneously created by make from ./install.sh.
6132 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6133 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6134 if test -z "$INSTALL"; then
6135 if test "${ac_cv_path_install+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141   IFS=$as_save_IFS
6142   test -z "$as_dir" && as_dir=.
6143   # Account for people who put trailing slashes in PATH elements.
6144 case $as_dir/ in
6145   ./ | .// | /cC/* | \
6146   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6147   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6148   /usr/ucb/* ) ;;
6149   *)
6150     # OSF1 and SCO ODT 3.0 have their own names for install.
6151     # Don't use installbsd from OSF since it installs stuff as root
6152     # by default.
6153     for ac_prog in ginstall scoinst install; do
6154       for ac_exec_ext in '' $ac_executable_extensions; do
6155         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6156           if test $ac_prog = install &&
6157             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6158             # AIX install.  It has an incompatible calling convention.
6159             :
6160           elif test $ac_prog = install &&
6161             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6162             # program-specific install script used by HP pwplus--don't use.
6163             :
6164           else
6165             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6166             break 3
6167           fi
6168         fi
6169       done
6170     done
6171     ;;
6172 esac
6173 done
6174 IFS=$as_save_IFS
6175
6176
6177 fi
6178   if test "${ac_cv_path_install+set}" = set; then
6179     INSTALL=$ac_cv_path_install
6180   else
6181     # As a last resort, use the slow shell script.  Don't cache a
6182     # value for INSTALL within a source directory, because that will
6183     # break other packages using the cache if that directory is
6184     # removed, or if the value is a relative name.
6185     INSTALL=$ac_install_sh
6186   fi
6187 fi
6188 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6189 echo "${ECHO_T}$INSTALL" >&6; }
6190
6191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6192 # It thinks the first close brace ends the variable substitution.
6193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6194
6195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6196
6197 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6198
6199 case "$INSTALL" in
6200   [\\/$]* | ?:[\\/]* ) ;;
6201   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6202 esac
6203
6204 for ac_prog in lclint lint
6205 do
6206   # Extract the first word of "$ac_prog", so it can be a program name with args.
6207 set dummy $ac_prog; ac_word=$2
6208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210 if test "${ac_cv_prog_LINT+set}" = set; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   if test -n "$LINT"; then
6214   ac_cv_prog_LINT="$LINT" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219   IFS=$as_save_IFS
6220   test -z "$as_dir" && as_dir=.
6221   for ac_exec_ext in '' $ac_executable_extensions; do
6222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223     ac_cv_prog_LINT="$ac_prog"
6224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225     break 2
6226   fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 LINT=$ac_cv_prog_LINT
6234 if test -n "$LINT"; then
6235   { echo "$as_me:$LINENO: result: $LINT" >&5
6236 echo "${ECHO_T}$LINT" >&6; }
6237 else
6238   { echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6; }
6240 fi
6241
6242
6243   test -n "$LINT" && break
6244 done
6245
6246 if test "$LINT" = "lint"
6247 then
6248   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6249   fi
6250
6251
6252
6253 for ac_prog in fontforge
6254 do
6255   # Extract the first word of "$ac_prog", so it can be a program name with args.
6256 set dummy $ac_prog; ac_word=$2
6257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   if test -n "$FONTFORGE"; then
6263   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268   IFS=$as_save_IFS
6269   test -z "$as_dir" && as_dir=.
6270   for ac_exec_ext in '' $ac_executable_extensions; do
6271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272     ac_cv_prog_FONTFORGE="$ac_prog"
6273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274     break 2
6275   fi
6276 done
6277 done
6278 IFS=$as_save_IFS
6279
6280 fi
6281 fi
6282 FONTFORGE=$ac_cv_prog_FONTFORGE
6283 if test -n "$FONTFORGE"; then
6284   { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6285 echo "${ECHO_T}$FONTFORGE" >&6; }
6286 else
6287   { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6289 fi
6290
6291
6292   test -n "$FONTFORGE" && break
6293 done
6294 test -n "$FONTFORGE" || FONTFORGE="false"
6295
6296 for ac_prog in pkg-config
6297 do
6298   # Extract the first word of "$ac_prog", so it can be a program name with args.
6299 set dummy $ac_prog; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   if test -n "$PKG_CONFIG"; then
6306   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311   IFS=$as_save_IFS
6312   test -z "$as_dir" && as_dir=.
6313   for ac_exec_ext in '' $ac_executable_extensions; do
6314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315     ac_cv_prog_PKG_CONFIG="$ac_prog"
6316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317     break 2
6318   fi
6319 done
6320 done
6321 IFS=$as_save_IFS
6322
6323 fi
6324 fi
6325 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6326 if test -n "$PKG_CONFIG"; then
6327   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6328 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6329 else
6330   { echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6; }
6332 fi
6333
6334
6335   test -n "$PKG_CONFIG" && break
6336 done
6337 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6338
6339
6340 case $host_cpu in
6341   *i[3456789]86*)
6342     # Extract the first word of "prelink", so it can be a program name with args.
6343 set dummy prelink; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_path_PRELINK+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   case $PRELINK in
6350   [\\/]* | ?:[\\/]*)
6351   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6352   ;;
6353   *)
6354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in /sbin /usr/sbin $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359   for ac_exec_ext in '' $ac_executable_extensions; do
6360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6370   ;;
6371 esac
6372 fi
6373 PRELINK=$ac_cv_path_PRELINK
6374 if test -n "$PRELINK"; then
6375   { echo "$as_me:$LINENO: result: $PRELINK" >&5
6376 echo "${ECHO_T}$PRELINK" >&6; }
6377 else
6378   { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6380 fi
6381
6382
6383     ;;
6384 esac
6385
6386
6387
6388 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6389 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6390 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393   ac_check_lib_save_LIBS=$LIBS
6394 LIBS="-li386  $LIBS"
6395 cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h.  */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h.  */
6401
6402 /* Override any GCC internal prototype to avoid an error.
6403    Use char because int might match the return type of a GCC
6404    builtin and then its argument prototype would still apply.  */
6405 #ifdef __cplusplus
6406 extern "C"
6407 #endif
6408 char i386_set_ldt ();
6409 int
6410 main ()
6411 {
6412 return i386_set_ldt ();
6413   ;
6414   return 0;
6415 }
6416 _ACEOF
6417 rm -f conftest.$ac_objext conftest$ac_exeext
6418 if { (ac_try="$ac_link"
6419 case "(($ac_try" in
6420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421   *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424   (eval "$ac_link") 2>conftest.er1
6425   ac_status=$?
6426   grep -v '^ *+' conftest.er1 >conftest.err
6427   rm -f conftest.er1
6428   cat conftest.err >&5
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } && {
6431          test -z "$ac_c_werror_flag" ||
6432          test ! -s conftest.err
6433        } && test -s conftest$ac_exeext &&
6434        $as_test_x conftest$ac_exeext; then
6435   ac_cv_lib_i386_i386_set_ldt=yes
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440         ac_cv_lib_i386_i386_set_ldt=no
6441 fi
6442
6443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6444       conftest$ac_exeext conftest.$ac_ext
6445 LIBS=$ac_check_lib_save_LIBS
6446 fi
6447 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6448 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
6449 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
6450   cat >>confdefs.h <<_ACEOF
6451 #define HAVE_LIBI386 1
6452 _ACEOF
6453
6454   LIBS="-li386 $LIBS"
6455
6456 fi
6457
6458
6459 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6460 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6461 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   ac_check_lib_save_LIBS=$LIBS
6465 LIBS="-lossaudio  $LIBS"
6466 cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h.  */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h.  */
6472
6473 /* Override any GCC internal prototype to avoid an error.
6474    Use char because int might match the return type of a GCC
6475    builtin and then its argument prototype would still apply.  */
6476 #ifdef __cplusplus
6477 extern "C"
6478 #endif
6479 char _oss_ioctl ();
6480 int
6481 main ()
6482 {
6483 return _oss_ioctl ();
6484   ;
6485   return 0;
6486 }
6487 _ACEOF
6488 rm -f conftest.$ac_objext conftest$ac_exeext
6489 if { (ac_try="$ac_link"
6490 case "(($ac_try" in
6491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492   *) ac_try_echo=$ac_try;;
6493 esac
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495   (eval "$ac_link") 2>conftest.er1
6496   ac_status=$?
6497   grep -v '^ *+' conftest.er1 >conftest.err
6498   rm -f conftest.er1
6499   cat conftest.err >&5
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); } && {
6502          test -z "$ac_c_werror_flag" ||
6503          test ! -s conftest.err
6504        } && test -s conftest$ac_exeext &&
6505        $as_test_x conftest$ac_exeext; then
6506   ac_cv_lib_ossaudio__oss_ioctl=yes
6507 else
6508   echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6510
6511         ac_cv_lib_ossaudio__oss_ioctl=no
6512 fi
6513
6514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6515       conftest$ac_exeext conftest.$ac_ext
6516 LIBS=$ac_check_lib_save_LIBS
6517 fi
6518 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6519 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6520 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6521   cat >>confdefs.h <<_ACEOF
6522 #define HAVE_LIBOSSAUDIO 1
6523 _ACEOF
6524
6525   LIBS="-lossaudio $LIBS"
6526
6527 fi
6528
6529
6530 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6531 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
6532 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   ac_check_lib_save_LIBS=$LIBS
6536 LIBS="-lxpg4  $LIBS"
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h.  */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h.  */
6543
6544 /* Override any GCC internal prototype to avoid an error.
6545    Use char because int might match the return type of a GCC
6546    builtin and then its argument prototype would still apply.  */
6547 #ifdef __cplusplus
6548 extern "C"
6549 #endif
6550 char _xpg4_setrunelocale ();
6551 int
6552 main ()
6553 {
6554 return _xpg4_setrunelocale ();
6555   ;
6556   return 0;
6557 }
6558 _ACEOF
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (ac_try="$ac_link"
6561 case "(($ac_try" in
6562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563   *) ac_try_echo=$ac_try;;
6564 esac
6565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6566   (eval "$ac_link") 2>conftest.er1
6567   ac_status=$?
6568   grep -v '^ *+' conftest.er1 >conftest.err
6569   rm -f conftest.er1
6570   cat conftest.err >&5
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); } && {
6573          test -z "$ac_c_werror_flag" ||
6574          test ! -s conftest.err
6575        } && test -s conftest$ac_exeext &&
6576        $as_test_x conftest$ac_exeext; then
6577   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6578 else
6579   echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582         ac_cv_lib_xpg4__xpg4_setrunelocale=no
6583 fi
6584
6585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6586       conftest$ac_exeext conftest.$ac_ext
6587 LIBS=$ac_check_lib_save_LIBS
6588 fi
6589 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6590 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
6591 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6592   cat >>confdefs.h <<_ACEOF
6593 #define HAVE_LIBXPG4 1
6594 _ACEOF
6595
6596   LIBS="-lxpg4 $LIBS"
6597
6598 fi
6599
6600 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6601 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
6602 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605   ac_check_lib_save_LIBS=$LIBS
6606 LIBS="-lpthread  $LIBS"
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h.  */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h.  */
6613
6614 /* Override any GCC internal prototype to avoid an error.
6615    Use char because int might match the return type of a GCC
6616    builtin and then its argument prototype would still apply.  */
6617 #ifdef __cplusplus
6618 extern "C"
6619 #endif
6620 char pthread_create ();
6621 int
6622 main ()
6623 {
6624 return pthread_create ();
6625   ;
6626   return 0;
6627 }
6628 _ACEOF
6629 rm -f conftest.$ac_objext conftest$ac_exeext
6630 if { (ac_try="$ac_link"
6631 case "(($ac_try" in
6632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633   *) ac_try_echo=$ac_try;;
6634 esac
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636   (eval "$ac_link") 2>conftest.er1
6637   ac_status=$?
6638   grep -v '^ *+' conftest.er1 >conftest.err
6639   rm -f conftest.er1
6640   cat conftest.err >&5
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); } && {
6643          test -z "$ac_c_werror_flag" ||
6644          test ! -s conftest.err
6645        } && test -s conftest$ac_exeext &&
6646        $as_test_x conftest$ac_exeext; then
6647   ac_cv_lib_pthread_pthread_create=yes
6648 else
6649   echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652         ac_cv_lib_pthread_pthread_create=no
6653 fi
6654
6655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6656       conftest$ac_exeext conftest.$ac_ext
6657 LIBS=$ac_check_lib_save_LIBS
6658 fi
6659 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6660 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
6661 if test $ac_cv_lib_pthread_pthread_create = yes; then
6662   LIBPTHREAD="-lpthread"
6663
6664 fi
6665
6666
6667 XLIB=""
6668
6669 XFILES=""
6670
6671 OPENGLFILES=""
6672
6673 GLU32FILES=""
6674
6675 OPENGL_LIBS=""
6676
6677 QUARTZFILES=""
6678
6679
6680
6681 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6682 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6683 if test "${ac_cv_header_stdc+set}" = set; then
6684   echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686   cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h.  */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h.  */
6692 #include <stdlib.h>
6693 #include <stdarg.h>
6694 #include <string.h>
6695 #include <float.h>
6696
6697 int
6698 main ()
6699 {
6700
6701   ;
6702   return 0;
6703 }
6704 _ACEOF
6705 rm -f conftest.$ac_objext
6706 if { (ac_try="$ac_compile"
6707 case "(($ac_try" in
6708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709   *) ac_try_echo=$ac_try;;
6710 esac
6711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712   (eval "$ac_compile") 2>conftest.er1
6713   ac_status=$?
6714   grep -v '^ *+' conftest.er1 >conftest.err
6715   rm -f conftest.er1
6716   cat conftest.err >&5
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); } && {
6719          test -z "$ac_c_werror_flag" ||
6720          test ! -s conftest.err
6721        } && test -s conftest.$ac_objext; then
6722   ac_cv_header_stdc=yes
6723 else
6724   echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6726
6727         ac_cv_header_stdc=no
6728 fi
6729
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731
6732 if test $ac_cv_header_stdc = yes; then
6733   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6734   cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h.  */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h.  */
6740 #include <string.h>
6741
6742 _ACEOF
6743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6744   $EGREP "memchr" >/dev/null 2>&1; then
6745   :
6746 else
6747   ac_cv_header_stdc=no
6748 fi
6749 rm -f conftest*
6750
6751 fi
6752
6753 if test $ac_cv_header_stdc = yes; then
6754   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6755   cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h.  */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h.  */
6761 #include <stdlib.h>
6762
6763 _ACEOF
6764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6765   $EGREP "free" >/dev/null 2>&1; then
6766   :
6767 else
6768   ac_cv_header_stdc=no
6769 fi
6770 rm -f conftest*
6771
6772 fi
6773
6774 if test $ac_cv_header_stdc = yes; then
6775   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6776   if test "$cross_compiling" = yes; then
6777   :
6778 else
6779   cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h.  */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h.  */
6785 #include <ctype.h>
6786 #include <stdlib.h>
6787 #if ((' ' & 0x0FF) == 0x020)
6788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6790 #else
6791 # define ISLOWER(c) \
6792                    (('a' <= (c) && (c) <= 'i') \
6793                      || ('j' <= (c) && (c) <= 'r') \
6794                      || ('s' <= (c) && (c) <= 'z'))
6795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6796 #endif
6797
6798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6799 int
6800 main ()
6801 {
6802   int i;
6803   for (i = 0; i < 256; i++)
6804     if (XOR (islower (i), ISLOWER (i))
6805         || toupper (i) != TOUPPER (i))
6806       return 2;
6807   return 0;
6808 }
6809 _ACEOF
6810 rm -f conftest$ac_exeext
6811 if { (ac_try="$ac_link"
6812 case "(($ac_try" in
6813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814   *) ac_try_echo=$ac_try;;
6815 esac
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817   (eval "$ac_link") 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6821   { (case "(($ac_try" in
6822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823   *) ac_try_echo=$ac_try;;
6824 esac
6825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6826   (eval "$ac_try") 2>&5
6827   ac_status=$?
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); }; }; then
6830   :
6831 else
6832   echo "$as_me: program exited with status $ac_status" >&5
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6835
6836 ( exit $ac_status )
6837 ac_cv_header_stdc=no
6838 fi
6839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6840 fi
6841
6842
6843 fi
6844 fi
6845 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6846 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6847 if test $ac_cv_header_stdc = yes; then
6848
6849 cat >>confdefs.h <<\_ACEOF
6850 #define STDC_HEADERS 1
6851 _ACEOF
6852
6853 fi
6854
6855 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6866                   inttypes.h stdint.h unistd.h
6867 do
6868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6872   echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874   cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h.  */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h.  */
6880 $ac_includes_default
6881
6882 #include <$ac_header>
6883 _ACEOF
6884 rm -f conftest.$ac_objext
6885 if { (ac_try="$ac_compile"
6886 case "(($ac_try" in
6887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888   *) ac_try_echo=$ac_try;;
6889 esac
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891   (eval "$ac_compile") 2>conftest.er1
6892   ac_status=$?
6893   grep -v '^ *+' conftest.er1 >conftest.err
6894   rm -f conftest.er1
6895   cat conftest.err >&5
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } && {
6898          test -z "$ac_c_werror_flag" ||
6899          test ! -s conftest.err
6900        } && test -s conftest.$ac_objext; then
6901   eval "$as_ac_Header=yes"
6902 else
6903   echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906         eval "$as_ac_Header=no"
6907 fi
6908
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 fi
6911 ac_res=`eval echo '${'$as_ac_Header'}'`
6912                { echo "$as_me:$LINENO: result: $ac_res" >&5
6913 echo "${ECHO_T}$ac_res" >&6; }
6914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6915   cat >>confdefs.h <<_ACEOF
6916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6917 _ACEOF
6918
6919 fi
6920
6921 done
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033 for ac_header in \
7034         AudioUnit/AudioUnit.h \
7035         Carbon/Carbon.h \
7036         CoreAudio/CoreAudio.h \
7037         DiskArbitration/DiskArbitration.h \
7038         IOKit/IOKitLib.h \
7039         alsa/asoundlib.h \
7040         arpa/inet.h \
7041         arpa/nameser.h \
7042         asm/types.h \
7043         capi20.h \
7044         cups/cups.h \
7045         curses.h \
7046         direct.h \
7047         dlfcn.h \
7048         elf.h \
7049         float.h \
7050         fontconfig/fontconfig.h \
7051         getopt.h \
7052         ieeefp.h \
7053         io.h \
7054         jack/jack.h \
7055         jpeglib.h \
7056         lber.h \
7057         lcms.h \
7058         lcms/lcms.h \
7059         ldap.h \
7060         libaudioio.h \
7061         link.h \
7062         linux/cdrom.h \
7063         linux/compiler.h \
7064         linux/hdreg.h \
7065         linux/input.h \
7066         linux/ioctl.h \
7067         linux/joystick.h \
7068         linux/major.h \
7069         linux/param.h \
7070         linux/serial.h \
7071         linux/ucdrom.h \
7072         mach/mach.h \
7073         mach/machine.h \
7074         machine/cpu.h \
7075         machine/limits.h \
7076         machine/soundcard.h \
7077         mntent.h \
7078         ncurses.h \
7079         netdb.h \
7080         netinet/in.h \
7081         netinet/in_systm.h \
7082         netinet/tcp.h \
7083         netinet/tcp_fsm.h \
7084         openssl/err.h \
7085         openssl/ssl.h \
7086         poll.h \
7087         process.h \
7088         pthread.h \
7089         pwd.h \
7090         regex.h \
7091         sched.h \
7092         scsi/scsi.h \
7093         scsi/scsi_ioctl.h \
7094         scsi/sg.h \
7095         soundcard.h \
7096         stdint.h \
7097         strings.h \
7098         sys/asoundlib.h \
7099         sys/cdio.h \
7100         sys/elf32.h \
7101         sys/epoll.h \
7102         sys/errno.h \
7103         sys/event.h \
7104         sys/exec_elf.h \
7105         sys/filio.h \
7106         sys/ioctl.h \
7107         sys/ipc.h \
7108         sys/limits.h \
7109         sys/link.h \
7110         sys/lwp.h \
7111         sys/mman.h \
7112         sys/modem.h \
7113         sys/msg.h \
7114         sys/mtio.h \
7115         sys/param.h \
7116         sys/poll.h \
7117         sys/prctl.h \
7118         sys/ptrace.h \
7119         sys/reg.h \
7120         sys/resource.h \
7121         sys/scsiio.h \
7122         sys/shm.h \
7123         sys/signal.h \
7124         sys/socket.h \
7125         sys/sockio.h \
7126         sys/soundcard.h \
7127         sys/statvfs.h \
7128         sys/strtio.h \
7129         sys/syscall.h \
7130         sys/sysctl.h \
7131         sys/time.h \
7132         sys/times.h \
7133         sys/uio.h \
7134         sys/un.h \
7135         sys/vm86.h \
7136         sys/wait.h \
7137         syscall.h \
7138         termios.h \
7139         unicode/ubidi.h \
7140         unistd.h \
7141         utime.h \
7142         valgrind/memcheck.h
7143
7144 do
7145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7147   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 fi
7152 ac_res=`eval echo '${'$as_ac_Header'}'`
7153                { echo "$as_me:$LINENO: result: $ac_res" >&5
7154 echo "${ECHO_T}$ac_res" >&6; }
7155 else
7156   # Is the header compilable?
7157 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
7166 #include <$ac_header>
7167 _ACEOF
7168 rm -f conftest.$ac_objext
7169 if { (ac_try="$ac_compile"
7170 case "(($ac_try" in
7171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172   *) ac_try_echo=$ac_try;;
7173 esac
7174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7175   (eval "$ac_compile") 2>conftest.er1
7176   ac_status=$?
7177   grep -v '^ *+' conftest.er1 >conftest.err
7178   rm -f conftest.er1
7179   cat conftest.err >&5
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); } && {
7182          test -z "$ac_c_werror_flag" ||
7183          test ! -s conftest.err
7184        } && test -s conftest.$ac_objext; then
7185   ac_header_compiler=yes
7186 else
7187   echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190         ac_header_compiler=no
7191 fi
7192
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7195 echo "${ECHO_T}$ac_header_compiler" >&6; }
7196
7197 # Is the header present?
7198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7200 cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h.  */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h.  */
7206 #include <$ac_header>
7207 _ACEOF
7208 if { (ac_try="$ac_cpp conftest.$ac_ext"
7209 case "(($ac_try" in
7210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211   *) ac_try_echo=$ac_try;;
7212 esac
7213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7214   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7215   ac_status=$?
7216   grep -v '^ *+' conftest.er1 >conftest.err
7217   rm -f conftest.er1
7218   cat conftest.err >&5
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); } >/dev/null && {
7221          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7222          test ! -s conftest.err
7223        }; then
7224   ac_header_preproc=yes
7225 else
7226   echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7228
7229   ac_header_preproc=no
7230 fi
7231
7232 rm -f conftest.err conftest.$ac_ext
7233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7234 echo "${ECHO_T}$ac_header_preproc" >&6; }
7235
7236 # So?  What about this header?
7237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7238   yes:no: )
7239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7243     ac_header_preproc=yes
7244     ;;
7245   no:yes:* )
7246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7258     ( cat <<\_ASBOX
7259 ## ------------------------------------ ##
7260 ## Report this to wine-devel@winehq.org ##
7261 ## ------------------------------------ ##
7262 _ASBOX
7263      ) | sed "s/^/$as_me: WARNING:     /" >&2
7264     ;;
7265 esac
7266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7269   echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271   eval "$as_ac_Header=\$ac_header_preproc"
7272 fi
7273 ac_res=`eval echo '${'$as_ac_Header'}'`
7274                { echo "$as_me:$LINENO: result: $ac_res" >&5
7275 echo "${ECHO_T}$ac_res" >&6; }
7276
7277 fi
7278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7279   cat >>confdefs.h <<_ACEOF
7280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7281 _ACEOF
7282
7283 fi
7284
7285 done
7286
7287 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7288 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7289 if test "${ac_cv_header_stat_broken+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h.  */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h.  */
7298 #include <sys/types.h>
7299 #include <sys/stat.h>
7300
7301 #if defined S_ISBLK && defined S_IFDIR
7302 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7303 #endif
7304
7305 #if defined S_ISBLK && defined S_IFCHR
7306 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7307 #endif
7308
7309 #if defined S_ISLNK && defined S_IFREG
7310 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7311 #endif
7312
7313 #if defined S_ISSOCK && defined S_IFREG
7314 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7315 #endif
7316
7317 _ACEOF
7318 rm -f conftest.$ac_objext
7319 if { (ac_try="$ac_compile"
7320 case "(($ac_try" in
7321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322   *) ac_try_echo=$ac_try;;
7323 esac
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325   (eval "$ac_compile") 2>conftest.er1
7326   ac_status=$?
7327   grep -v '^ *+' conftest.er1 >conftest.err
7328   rm -f conftest.er1
7329   cat conftest.err >&5
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); } && {
7332          test -z "$ac_c_werror_flag" ||
7333          test ! -s conftest.err
7334        } && test -s conftest.$ac_objext; then
7335   ac_cv_header_stat_broken=no
7336 else
7337   echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7339
7340         ac_cv_header_stat_broken=yes
7341 fi
7342
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 fi
7345 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7346 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7347 if test $ac_cv_header_stat_broken = yes; then
7348
7349 cat >>confdefs.h <<\_ACEOF
7350 #define STAT_MACROS_BROKEN 1
7351 _ACEOF
7352
7353 fi
7354
7355
7356
7357
7358
7359
7360
7361 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7362 do
7363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7367   echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369   cat >conftest.$ac_ext <<_ACEOF
7370 /* confdefs.h.  */
7371 _ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h.  */
7375 #include <sys/types.h>
7376      #if HAVE_SYS_PARAM_H
7377      # include <sys/param.h>
7378      #endif
7379
7380 #include <$ac_header>
7381 _ACEOF
7382 rm -f conftest.$ac_objext
7383 if { (ac_try="$ac_compile"
7384 case "(($ac_try" in
7385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386   *) ac_try_echo=$ac_try;;
7387 esac
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389   (eval "$ac_compile") 2>conftest.er1
7390   ac_status=$?
7391   grep -v '^ *+' conftest.er1 >conftest.err
7392   rm -f conftest.er1
7393   cat conftest.err >&5
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); } && {
7396          test -z "$ac_c_werror_flag" ||
7397          test ! -s conftest.err
7398        } && test -s conftest.$ac_objext; then
7399   eval "$as_ac_Header=yes"
7400 else
7401   echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7403
7404         eval "$as_ac_Header=no"
7405 fi
7406
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 fi
7409 ac_res=`eval echo '${'$as_ac_Header'}'`
7410                { echo "$as_me:$LINENO: result: $ac_res" >&5
7411 echo "${ECHO_T}$ac_res" >&6; }
7412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7413   cat >>confdefs.h <<_ACEOF
7414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7415 _ACEOF
7416
7417 fi
7418
7419 done
7420
7421
7422
7423
7424
7425
7426
7427
7428 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
7429 do
7430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7434   echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436   cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h.  */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h.  */
7442 #include <sys/types.h>
7443      #if HAVE_SYS_SOCKET_H
7444      # include <sys/socket.h>
7445      #endif
7446
7447 #include <$ac_header>
7448 _ACEOF
7449 rm -f conftest.$ac_objext
7450 if { (ac_try="$ac_compile"
7451 case "(($ac_try" in
7452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453   *) ac_try_echo=$ac_try;;
7454 esac
7455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7456   (eval "$ac_compile") 2>conftest.er1
7457   ac_status=$?
7458   grep -v '^ *+' conftest.er1 >conftest.err
7459   rm -f conftest.er1
7460   cat conftest.err >&5
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); } && {
7463          test -z "$ac_c_werror_flag" ||
7464          test ! -s conftest.err
7465        } && test -s conftest.$ac_objext; then
7466   eval "$as_ac_Header=yes"
7467 else
7468   echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7470
7471         eval "$as_ac_Header=no"
7472 fi
7473
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 fi
7476 ac_res=`eval echo '${'$as_ac_Header'}'`
7477                { echo "$as_me:$LINENO: result: $ac_res" >&5
7478 echo "${ECHO_T}$ac_res" >&6; }
7479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7480   cat >>confdefs.h <<_ACEOF
7481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7482 _ACEOF
7483
7484 fi
7485
7486 done
7487
7488
7489
7490 for ac_header in linux/ipx.h
7491 do
7492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h.  */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h.  */
7504 #include <sys/types.h>
7505      #ifdef HAVE_ASM_TYPES_H
7506      # include <asm/types.h>
7507      #endif
7508      #if HAVE_SYS_SOCKET_H
7509      # include <sys/socket.h>
7510      #endif
7511
7512 #include <$ac_header>
7513 _ACEOF
7514 rm -f conftest.$ac_objext
7515 if { (ac_try="$ac_compile"
7516 case "(($ac_try" in
7517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518   *) ac_try_echo=$ac_try;;
7519 esac
7520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521   (eval "$ac_compile") 2>conftest.er1
7522   ac_status=$?
7523   grep -v '^ *+' conftest.er1 >conftest.err
7524   rm -f conftest.er1
7525   cat conftest.err >&5
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); } && {
7528          test -z "$ac_c_werror_flag" ||
7529          test ! -s conftest.err
7530        } && test -s conftest.$ac_objext; then
7531   eval "$as_ac_Header=yes"
7532 else
7533   echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7535
7536         eval "$as_ac_Header=no"
7537 fi
7538
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 fi
7541 ac_res=`eval echo '${'$as_ac_Header'}'`
7542                { echo "$as_me:$LINENO: result: $ac_res" >&5
7543 echo "${ECHO_T}$ac_res" >&6; }
7544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7545   cat >>confdefs.h <<_ACEOF
7546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7547 _ACEOF
7548
7549 fi
7550
7551 done
7552
7553
7554
7555 for ac_header in resolv.h
7556 do
7557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7561   echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563   cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h.  */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h.  */
7569 #include <sys/types.h>
7570      #if HAVE_SYS_SOCKET_H
7571      # include <sys/socket.h>
7572      #endif
7573      #if HAVE_NETINET_IN_H
7574      # include <netinet/in.h>
7575      #endif
7576      #if HAVE_ARPA_NAMESER_H
7577      # include <arpa/nameser.h>
7578      #endif
7579
7580 #include <$ac_header>
7581 _ACEOF
7582 rm -f conftest.$ac_objext
7583 if { (ac_try="$ac_compile"
7584 case "(($ac_try" in
7585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586   *) ac_try_echo=$ac_try;;
7587 esac
7588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7589   (eval "$ac_compile") 2>conftest.er1
7590   ac_status=$?
7591   grep -v '^ *+' conftest.er1 >conftest.err
7592   rm -f conftest.er1
7593   cat conftest.err >&5
7594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595   (exit $ac_status); } && {
7596          test -z "$ac_c_werror_flag" ||
7597          test ! -s conftest.err
7598        } && test -s conftest.$ac_objext; then
7599   eval "$as_ac_Header=yes"
7600 else
7601   echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7603
7604         eval "$as_ac_Header=no"
7605 fi
7606
7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 fi
7609 ac_res=`eval echo '${'$as_ac_Header'}'`
7610                { echo "$as_me:$LINENO: result: $ac_res" >&5
7611 echo "${ECHO_T}$ac_res" >&6; }
7612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7613   cat >>confdefs.h <<_ACEOF
7614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7615 _ACEOF
7616
7617 fi
7618
7619 done
7620
7621
7622
7623 for ac_header in ucontext.h
7624 do
7625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   cat >conftest.$ac_ext <<_ACEOF
7632 /* confdefs.h.  */
7633 _ACEOF
7634 cat confdefs.h >>conftest.$ac_ext
7635 cat >>conftest.$ac_ext <<_ACEOF
7636 /* end confdefs.h.  */
7637 #include <signal.h>
7638
7639 #include <$ac_header>
7640 _ACEOF
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7643 case "(($ac_try" in
7644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645   *) ac_try_echo=$ac_try;;
7646 esac
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648   (eval "$ac_compile") 2>conftest.er1
7649   ac_status=$?
7650   grep -v '^ *+' conftest.er1 >conftest.err
7651   rm -f conftest.er1
7652   cat conftest.err >&5
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); } && {
7655          test -z "$ac_c_werror_flag" ||
7656          test ! -s conftest.err
7657        } && test -s conftest.$ac_objext; then
7658   eval "$as_ac_Header=yes"
7659 else
7660   echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7662
7663         eval "$as_ac_Header=no"
7664 fi
7665
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 ac_res=`eval echo '${'$as_ac_Header'}'`
7669                { echo "$as_me:$LINENO: result: $ac_res" >&5
7670 echo "${ECHO_T}$ac_res" >&6; }
7671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7672   cat >>confdefs.h <<_ACEOF
7673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7674 _ACEOF
7675
7676 fi
7677
7678 done
7679
7680
7681
7682 for ac_header in pthread_np.h
7683 do
7684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696 #ifdef HAVE_PTHREAD_H
7697 #include <pthread.h>
7698 #endif
7699
7700 #include <$ac_header>
7701 _ACEOF
7702 rm -f conftest.$ac_objext
7703 if { (ac_try="$ac_compile"
7704 case "(($ac_try" in
7705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706   *) ac_try_echo=$ac_try;;
7707 esac
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709   (eval "$ac_compile") 2>conftest.er1
7710   ac_status=$?
7711   grep -v '^ *+' conftest.er1 >conftest.err
7712   rm -f conftest.er1
7713   cat conftest.err >&5
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } && {
7716          test -z "$ac_c_werror_flag" ||
7717          test ! -s conftest.err
7718        } && test -s conftest.$ac_objext; then
7719   eval "$as_ac_Header=yes"
7720 else
7721   echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7723
7724         eval "$as_ac_Header=no"
7725 fi
7726
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 fi
7729 ac_res=`eval echo '${'$as_ac_Header'}'`
7730                { echo "$as_me:$LINENO: result: $ac_res" >&5
7731 echo "${ECHO_T}$ac_res" >&6; }
7732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7733   cat >>confdefs.h <<_ACEOF
7734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7735 _ACEOF
7736
7737 fi
7738
7739 done
7740
7741
7742
7743 for ac_header in linux/videodev.h
7744 do
7745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757 #ifdef HAVE_SYS_TIME_H
7758 #include <sys/time.h>
7759 #endif
7760 #include <sys/types.h>
7761 #ifdef HAVE_ASM_TYPES_H
7762 #include <asm/types.h>
7763 #endif
7764
7765 #include <$ac_header>
7766 _ACEOF
7767 rm -f conftest.$ac_objext
7768 if { (ac_try="$ac_compile"
7769 case "(($ac_try" in
7770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771   *) ac_try_echo=$ac_try;;
7772 esac
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774   (eval "$ac_compile") 2>conftest.er1
7775   ac_status=$?
7776   grep -v '^ *+' conftest.er1 >conftest.err
7777   rm -f conftest.er1
7778   cat conftest.err >&5
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); } && {
7781          test -z "$ac_c_werror_flag" ||
7782          test ! -s conftest.err
7783        } && test -s conftest.$ac_objext; then
7784   eval "$as_ac_Header=yes"
7785 else
7786   echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7788
7789         eval "$as_ac_Header=no"
7790 fi
7791
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 fi
7794 ac_res=`eval echo '${'$as_ac_Header'}'`
7795                { echo "$as_me:$LINENO: result: $ac_res" >&5
7796 echo "${ECHO_T}$ac_res" >&6; }
7797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7798   cat >>confdefs.h <<_ACEOF
7799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7800 _ACEOF
7801
7802 fi
7803
7804 done
7805
7806
7807
7808 for ac_header in linux/capi.h
7809 do
7810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7814   echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816   cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h.  */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h.  */
7822 #define __user
7823
7824 #include <$ac_header>
7825 _ACEOF
7826 rm -f conftest.$ac_objext
7827 if { (ac_try="$ac_compile"
7828 case "(($ac_try" in
7829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830   *) ac_try_echo=$ac_try;;
7831 esac
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833   (eval "$ac_compile") 2>conftest.er1
7834   ac_status=$?
7835   grep -v '^ *+' conftest.er1 >conftest.err
7836   rm -f conftest.er1
7837   cat conftest.err >&5
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); } && {
7840          test -z "$ac_c_werror_flag" ||
7841          test ! -s conftest.err
7842        } && test -s conftest.$ac_objext; then
7843   eval "$as_ac_Header=yes"
7844 else
7845   echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848         eval "$as_ac_Header=no"
7849 fi
7850
7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852 fi
7853 ac_res=`eval echo '${'$as_ac_Header'}'`
7854                { echo "$as_me:$LINENO: result: $ac_res" >&5
7855 echo "${ECHO_T}$ac_res" >&6; }
7856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7857   cat >>confdefs.h <<_ACEOF
7858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7859 _ACEOF
7860
7861 fi
7862
7863 done
7864
7865
7866
7867 if test "$have_x" = "yes"
7868 then
7869     XLIB="-lXext -lX11"
7870     ac_save_CPPFLAGS="$CPPFLAGS"
7871     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883 for ac_header in X11/Xlib.h \
7884                       X11/XKBlib.h \
7885                       X11/Xutil.h \
7886                       X11/extensions/shape.h \
7887                       X11/extensions/XInput.h \
7888                       X11/extensions/XShm.h \
7889                       X11/extensions/Xinerama.h \
7890                       X11/extensions/Xrandr.h \
7891                       X11/extensions/Xrender.h \
7892                       X11/extensions/xf86vmode.h
7893 do
7894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7898   echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900   cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h.  */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h.  */
7906 #ifdef HAVE_X11_XLIB_H
7907 # include <X11/Xlib.h>
7908 #endif
7909 #ifdef HAVE_X11_XUTIL_H
7910 # include <X11/Xutil.h>
7911 #endif
7912
7913 #include <$ac_header>
7914 _ACEOF
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7917 case "(($ac_try" in
7918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919   *) ac_try_echo=$ac_try;;
7920 esac
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922   (eval "$ac_compile") 2>conftest.er1
7923   ac_status=$?
7924   grep -v '^ *+' conftest.er1 >conftest.err
7925   rm -f conftest.er1
7926   cat conftest.err >&5
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); } && {
7929          test -z "$ac_c_werror_flag" ||
7930          test ! -s conftest.err
7931        } && test -s conftest.$ac_objext; then
7932   eval "$as_ac_Header=yes"
7933 else
7934   echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7936
7937         eval "$as_ac_Header=no"
7938 fi
7939
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 fi
7942 ac_res=`eval echo '${'$as_ac_Header'}'`
7943                { echo "$as_me:$LINENO: result: $ac_res" >&5
7944 echo "${ECHO_T}$ac_res" >&6; }
7945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7946   cat >>confdefs.h <<_ACEOF
7947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7948 _ACEOF
7949
7950 fi
7951
7952 done
7953
7954
7955                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7956         then
7957               { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7958 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
7959 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7960   echo $ECHO_N "(cached) $ECHO_C" >&6
7961 else
7962   ac_check_lib_save_LIBS=$LIBS
7963 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7964 cat >conftest.$ac_ext <<_ACEOF
7965 /* confdefs.h.  */
7966 _ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h.  */
7970
7971 /* Override any GCC internal prototype to avoid an error.
7972    Use char because int might match the return type of a GCC
7973    builtin and then its argument prototype would still apply.  */
7974 #ifdef __cplusplus
7975 extern "C"
7976 #endif
7977 char XkbQueryExtension ();
7978 int
7979 main ()
7980 {
7981 return XkbQueryExtension ();
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest.$ac_objext conftest$ac_exeext
7987 if { (ac_try="$ac_link"
7988 case "(($ac_try" in
7989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990   *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993   (eval "$ac_link") 2>conftest.er1
7994   ac_status=$?
7995   grep -v '^ *+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } && {
8000          test -z "$ac_c_werror_flag" ||
8001          test ! -s conftest.err
8002        } && test -s conftest$ac_exeext &&
8003        $as_test_x conftest$ac_exeext; then
8004   ac_cv_lib_X11_XkbQueryExtension=yes
8005 else
8006   echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009         ac_cv_lib_X11_XkbQueryExtension=no
8010 fi
8011
8012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8013       conftest$ac_exeext conftest.$ac_ext
8014 LIBS=$ac_check_lib_save_LIBS
8015 fi
8016 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8017 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8018 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
8019
8020 cat >>confdefs.h <<\_ACEOF
8021 #define HAVE_XKB 1
8022 _ACEOF
8023
8024 fi
8025
8026         fi
8027
8028                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8029         then
8030               { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
8031 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
8032 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
8033   echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035   ac_check_lib_save_LIBS=$LIBS
8036 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043
8044 /* Override any GCC internal prototype to avoid an error.
8045    Use char because int might match the return type of a GCC
8046    builtin and then its argument prototype would still apply.  */
8047 #ifdef __cplusplus
8048 extern "C"
8049 #endif
8050 char XShmQueryExtension ();
8051 int
8052 main ()
8053 {
8054 return XShmQueryExtension ();
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (ac_try="$ac_link"
8061 case "(($ac_try" in
8062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063   *) ac_try_echo=$ac_try;;
8064 esac
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066   (eval "$ac_link") 2>conftest.er1
8067   ac_status=$?
8068   grep -v '^ *+' conftest.er1 >conftest.err
8069   rm -f conftest.er1
8070   cat conftest.err >&5
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } && {
8073          test -z "$ac_c_werror_flag" ||
8074          test ! -s conftest.err
8075        } && test -s conftest$ac_exeext &&
8076        $as_test_x conftest$ac_exeext; then
8077   ac_cv_lib_Xext_XShmQueryExtension=yes
8078 else
8079   echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082         ac_cv_lib_Xext_XShmQueryExtension=no
8083 fi
8084
8085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8086       conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8088 fi
8089 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8090 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8091 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8092
8093 cat >>confdefs.h <<\_ACEOF
8094 #define HAVE_LIBXXSHM 1
8095 _ACEOF
8096
8097 fi
8098
8099         fi
8100
8101                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8102         then
8103               { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8104 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
8105 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108   ac_check_lib_save_LIBS=$LIBS
8109 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8110 cat >conftest.$ac_ext <<_ACEOF
8111 /* confdefs.h.  */
8112 _ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h.  */
8116
8117 /* Override any GCC internal prototype to avoid an error.
8118    Use char because int might match the return type of a GCC
8119    builtin and then its argument prototype would still apply.  */
8120 #ifdef __cplusplus
8121 extern "C"
8122 #endif
8123 char XShapeQueryExtension ();
8124 int
8125 main ()
8126 {
8127 return XShapeQueryExtension ();
8128   ;
8129   return 0;
8130 }
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (ac_try="$ac_link"
8134 case "(($ac_try" in
8135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136   *) ac_try_echo=$ac_try;;
8137 esac
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139   (eval "$ac_link") 2>conftest.er1
8140   ac_status=$?
8141   grep -v '^ *+' conftest.er1 >conftest.err
8142   rm -f conftest.er1
8143   cat conftest.err >&5
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); } && {
8146          test -z "$ac_c_werror_flag" ||
8147          test ! -s conftest.err
8148        } && test -s conftest$ac_exeext &&
8149        $as_test_x conftest$ac_exeext; then
8150   ac_cv_lib_Xext_XShapeQueryExtension=yes
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155         ac_cv_lib_Xext_XShapeQueryExtension=no
8156 fi
8157
8158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8159       conftest$ac_exeext conftest.$ac_ext
8160 LIBS=$ac_check_lib_save_LIBS
8161 fi
8162 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8163 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8164 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8165
8166 cat >>confdefs.h <<\_ACEOF
8167 #define HAVE_LIBXSHAPE 1
8168 _ACEOF
8169
8170 fi
8171
8172         fi
8173
8174                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8175         then
8176                 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8177 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
8178 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181   ac_check_lib_save_LIBS=$LIBS
8182 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8183 cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h.  */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h.  */
8189
8190 /* Override any GCC internal prototype to avoid an error.
8191    Use char because int might match the return type of a GCC
8192    builtin and then its argument prototype would still apply.  */
8193 #ifdef __cplusplus
8194 extern "C"
8195 #endif
8196 char XF86VidModeQueryExtension ();
8197 int
8198 main ()
8199 {
8200 return XF86VidModeQueryExtension ();
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 rm -f conftest.$ac_objext conftest$ac_exeext
8206 if { (ac_try="$ac_link"
8207 case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212   (eval "$ac_link") 2>conftest.er1
8213   ac_status=$?
8214   grep -v '^ *+' conftest.er1 >conftest.err
8215   rm -f conftest.er1
8216   cat conftest.err >&5
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); } && {
8219          test -z "$ac_c_werror_flag" ||
8220          test ! -s conftest.err
8221        } && test -s conftest$ac_exeext &&
8222        $as_test_x conftest$ac_exeext; then
8223   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8229 fi
8230
8231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8232       conftest$ac_exeext conftest.$ac_ext
8233 LIBS=$ac_check_lib_save_LIBS
8234 fi
8235 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8236 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
8237 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8238
8239 cat >>confdefs.h <<\_ACEOF
8240 #define HAVE_LIBXXF86VM 1
8241 _ACEOF
8242
8243                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8244
8245 fi
8246
8247         fi
8248
8249                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8250         then
8251                 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257 #include <X11/Xlib.h>
8258 #include <X11/extensions/Xrandr.h>
8259 int
8260 main ()
8261 {
8262 static typeof(XRRSetScreenConfigAndRate) * func;
8263   ;
8264   return 0;
8265 }
8266 _ACEOF
8267 rm -f conftest.$ac_objext
8268 if { (ac_try="$ac_compile"
8269 case "(($ac_try" in
8270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271   *) ac_try_echo=$ac_try;;
8272 esac
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274   (eval "$ac_compile") 2>conftest.er1
8275   ac_status=$?
8276   grep -v '^ *+' conftest.er1 >conftest.err
8277   rm -f conftest.er1
8278   cat conftest.err >&5
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); } && {
8281          test -z "$ac_c_werror_flag" ||
8282          test ! -s conftest.err
8283        } && test -s conftest.$ac_objext; then
8284
8285 cat >>confdefs.h <<\_ACEOF
8286 #define HAVE_LIBXRANDR 1
8287 _ACEOF
8288
8289 else
8290   echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293
8294 fi
8295
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297         fi
8298
8299                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8300         then
8301               { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8302 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
8303 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8304   echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306   ac_check_lib_save_LIBS=$LIBS
8307 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8308 cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314
8315 /* Override any GCC internal prototype to avoid an error.
8316    Use char because int might match the return type of a GCC
8317    builtin and then its argument prototype would still apply.  */
8318 #ifdef __cplusplus
8319 extern "C"
8320 #endif
8321 char XRenderSetPictureTransform ();
8322 int
8323 main ()
8324 {
8325 return XRenderSetPictureTransform ();
8326   ;
8327   return 0;
8328 }
8329 _ACEOF
8330 rm -f conftest.$ac_objext conftest$ac_exeext
8331 if { (ac_try="$ac_link"
8332 case "(($ac_try" in
8333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334   *) ac_try_echo=$ac_try;;
8335 esac
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337   (eval "$ac_link") 2>conftest.er1
8338   ac_status=$?
8339   grep -v '^ *+' conftest.er1 >conftest.err
8340   rm -f conftest.er1
8341   cat conftest.err >&5
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); } && {
8344          test -z "$ac_c_werror_flag" ||
8345          test ! -s conftest.err
8346        } && test -s conftest$ac_exeext &&
8347        $as_test_x conftest$ac_exeext; then
8348   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8349 else
8350   echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8352
8353         ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8354 fi
8355
8356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8357       conftest$ac_exeext conftest.$ac_ext
8358 LIBS=$ac_check_lib_save_LIBS
8359 fi
8360 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8361 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8362 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8363
8364 cat >>confdefs.h <<\_ACEOF
8365 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8366 _ACEOF
8367
8368 fi
8369
8370         fi
8371
8372                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8373         then
8374                 cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h.  */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h.  */
8380 #include <X11/Xlib.h>
8381 #include <X11/extensions/Xinerama.h>
8382 int
8383 main ()
8384 {
8385 static typeof(XineramaQueryScreens) * func;
8386   ;
8387   return 0;
8388 }
8389 _ACEOF
8390 rm -f conftest.$ac_objext
8391 if { (ac_try="$ac_compile"
8392 case "(($ac_try" in
8393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394   *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397   (eval "$ac_compile") 2>conftest.er1
8398   ac_status=$?
8399   grep -v '^ *+' conftest.er1 >conftest.err
8400   rm -f conftest.er1
8401   cat conftest.err >&5
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); } && {
8404          test -z "$ac_c_werror_flag" ||
8405          test ! -s conftest.err
8406        } && test -s conftest.$ac_objext; then
8407
8408 cat >>confdefs.h <<\_ACEOF
8409 #define HAVE_LIBXINERAMA 1
8410 _ACEOF
8411
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416
8417 fi
8418
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420         fi
8421
8422
8423         if test "x$with_opengl" != "xno"
8424     then
8425
8426
8427
8428
8429 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
8430 do
8431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8435   echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437   cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h.  */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h.  */
8443 #ifdef HAVE_GL_GLX_H
8444 # include <GL/glx.h>
8445 #endif
8446
8447 #include <$ac_header>
8448 _ACEOF
8449 rm -f conftest.$ac_objext
8450 if { (ac_try="$ac_compile"
8451 case "(($ac_try" in
8452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453   *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456   (eval "$ac_compile") 2>conftest.er1
8457   ac_status=$?
8458   grep -v '^ *+' conftest.er1 >conftest.err
8459   rm -f conftest.er1
8460   cat conftest.err >&5
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); } && {
8463          test -z "$ac_c_werror_flag" ||
8464          test ! -s conftest.err
8465        } && test -s conftest.$ac_objext; then
8466   eval "$as_ac_Header=yes"
8467 else
8468   echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8470
8471         eval "$as_ac_Header=no"
8472 fi
8473
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 fi
8476 ac_res=`eval echo '${'$as_ac_Header'}'`
8477                { echo "$as_me:$LINENO: result: $ac_res" >&5
8478 echo "${ECHO_T}$ac_res" >&6; }
8479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8480   cat >>confdefs.h <<_ACEOF
8481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8482 _ACEOF
8483
8484 fi
8485
8486 done
8487
8488         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8489         then
8490                     { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8491 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
8492 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501 #include <GL/gl.h>
8502 int
8503 main ()
8504 {
8505 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8506   ;
8507   return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8512 case "(($ac_try" in
8513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514   *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517   (eval "$ac_compile") 2>conftest.er1
8518   ac_status=$?
8519   grep -v '^ *+' conftest.er1 >conftest.err
8520   rm -f conftest.er1
8521   cat conftest.err >&5
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } && {
8524          test -z "$ac_c_werror_flag" ||
8525          test ! -s conftest.err
8526        } && test -s conftest.$ac_objext; then
8527   wine_cv_opengl_header_version_OK="yes"
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532         wine_cv_opengl_header_version_OK="no"
8533
8534 fi
8535
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537
8538 fi
8539 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
8540 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
8541
8542             if test "$wine_cv_opengl_header_version_OK" = "yes"
8543             then
8544                                 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8545 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
8546 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   ac_check_lib_save_LIBS=$LIBS
8550 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h.  */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h.  */
8557
8558 /* Override any GCC internal prototype to avoid an error.
8559    Use char because int might match the return type of a GCC
8560    builtin and then its argument prototype would still apply.  */
8561 #ifdef __cplusplus
8562 extern "C"
8563 #endif
8564 char glXCreateContext ();
8565 int
8566 main ()
8567 {
8568 return glXCreateContext ();
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext conftest$ac_exeext
8574 if { (ac_try="$ac_link"
8575 case "(($ac_try" in
8576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577   *) ac_try_echo=$ac_try;;
8578 esac
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580   (eval "$ac_link") 2>conftest.er1
8581   ac_status=$?
8582   grep -v '^ *+' conftest.er1 >conftest.err
8583   rm -f conftest.er1
8584   cat conftest.err >&5
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } && {
8587          test -z "$ac_c_werror_flag" ||
8588          test ! -s conftest.err
8589        } && test -s conftest$ac_exeext &&
8590        $as_test_x conftest$ac_exeext; then
8591   ac_cv_lib_GL_glXCreateContext=yes
8592 else
8593   echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8595
8596         ac_cv_lib_GL_glXCreateContext=no
8597 fi
8598
8599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8600       conftest$ac_exeext conftest.$ac_ext
8601 LIBS=$ac_check_lib_save_LIBS
8602 fi
8603 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8604 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
8605 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8606   OPENGL_LIBS="-lGL"
8607                              OPENGLFILES='$(OPENGLFILES)'
8608
8609 cat >>confdefs.h <<\_ACEOF
8610 #define HAVE_OPENGL 1
8611 _ACEOF
8612
8613
8614 fi
8615
8616
8617                                 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8618 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
8619 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622   ac_check_lib_save_LIBS=$LIBS
8623 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8624                  $LIBS"
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631
8632 /* Override any GCC internal prototype to avoid an error.
8633    Use char because int might match the return type of a GCC
8634    builtin and then its argument prototype would still apply.  */
8635 #ifdef __cplusplus
8636 extern "C"
8637 #endif
8638 char gluLookAt ();
8639 int
8640 main ()
8641 {
8642 return gluLookAt ();
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 rm -f conftest.$ac_objext conftest$ac_exeext
8648 if { (ac_try="$ac_link"
8649 case "(($ac_try" in
8650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651   *) ac_try_echo=$ac_try;;
8652 esac
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654   (eval "$ac_link") 2>conftest.er1
8655   ac_status=$?
8656   grep -v '^ *+' conftest.er1 >conftest.err
8657   rm -f conftest.er1
8658   cat conftest.err >&5
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); } && {
8661          test -z "$ac_c_werror_flag" ||
8662          test ! -s conftest.err
8663        } && test -s conftest$ac_exeext &&
8664        $as_test_x conftest$ac_exeext; then
8665   ac_cv_lib_GLU_gluLookAt=yes
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670         ac_cv_lib_GLU_gluLookAt=no
8671 fi
8672
8673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8674       conftest$ac_exeext conftest.$ac_ext
8675 LIBS=$ac_check_lib_save_LIBS
8676 fi
8677 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8678 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
8679 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8680   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8681                              GLU32FILES='$(GLU32FILES)'
8682
8683 fi
8684
8685              fi
8686          else
8687              wine_cv_opengl_headers_found="no"
8688          fi
8689     fi
8690         NASLIBS=""
8691
8692
8693 for ac_header in audio/audiolib.h
8694 do
8695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8697   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 fi
8702 ac_res=`eval echo '${'$as_ac_Header'}'`
8703                { echo "$as_me:$LINENO: result: $ac_res" >&5
8704 echo "${ECHO_T}$ac_res" >&6; }
8705 else
8706   # Is the header compilable?
8707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8709 cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h.  */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h.  */
8715 $ac_includes_default
8716 #include <$ac_header>
8717 _ACEOF
8718 rm -f conftest.$ac_objext
8719 if { (ac_try="$ac_compile"
8720 case "(($ac_try" in
8721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722   *) ac_try_echo=$ac_try;;
8723 esac
8724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725   (eval "$ac_compile") 2>conftest.er1
8726   ac_status=$?
8727   grep -v '^ *+' conftest.er1 >conftest.err
8728   rm -f conftest.er1
8729   cat conftest.err >&5
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); } && {
8732          test -z "$ac_c_werror_flag" ||
8733          test ! -s conftest.err
8734        } && test -s conftest.$ac_objext; then
8735   ac_header_compiler=yes
8736 else
8737   echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8739
8740         ac_header_compiler=no
8741 fi
8742
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8745 echo "${ECHO_T}$ac_header_compiler" >&6; }
8746
8747 # Is the header present?
8748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8750 cat >conftest.$ac_ext <<_ACEOF
8751 /* confdefs.h.  */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h.  */
8756 #include <$ac_header>
8757 _ACEOF
8758 if { (ac_try="$ac_cpp conftest.$ac_ext"
8759 case "(($ac_try" in
8760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761   *) ac_try_echo=$ac_try;;
8762 esac
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8765   ac_status=$?
8766   grep -v '^ *+' conftest.er1 >conftest.err
8767   rm -f conftest.er1
8768   cat conftest.err >&5
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } >/dev/null && {
8771          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8772          test ! -s conftest.err
8773        }; then
8774   ac_header_preproc=yes
8775 else
8776   echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779   ac_header_preproc=no
8780 fi
8781
8782 rm -f conftest.err conftest.$ac_ext
8783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8784 echo "${ECHO_T}$ac_header_preproc" >&6; }
8785
8786 # So?  What about this header?
8787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8788   yes:no: )
8789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8793     ac_header_preproc=yes
8794     ;;
8795   no:yes:* )
8796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8798     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8799 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8800     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8802     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8803 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8806     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8808     ( cat <<\_ASBOX
8809 ## ------------------------------------ ##
8810 ## Report this to wine-devel@winehq.org ##
8811 ## ------------------------------------ ##
8812 _ASBOX
8813      ) | sed "s/^/$as_me: WARNING:     /" >&2
8814     ;;
8815 esac
8816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8819   echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821   eval "$as_ac_Header=\$ac_header_preproc"
8822 fi
8823 ac_res=`eval echo '${'$as_ac_Header'}'`
8824                { echo "$as_me:$LINENO: result: $ac_res" >&5
8825 echo "${ECHO_T}$ac_res" >&6; }
8826
8827 fi
8828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8829   cat >>confdefs.h <<_ACEOF
8830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8831 _ACEOF
8832
8833 for ac_header in audio/soundlib.h
8834 do
8835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8839   echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841   cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h.  */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h.  */
8847 #include <audio/audiolib.h>
8848
8849 #include <$ac_header>
8850 _ACEOF
8851 rm -f conftest.$ac_objext
8852 if { (ac_try="$ac_compile"
8853 case "(($ac_try" in
8854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855   *) ac_try_echo=$ac_try;;
8856 esac
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858   (eval "$ac_compile") 2>conftest.er1
8859   ac_status=$?
8860   grep -v '^ *+' conftest.er1 >conftest.err
8861   rm -f conftest.er1
8862   cat conftest.err >&5
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } && {
8865          test -z "$ac_c_werror_flag" ||
8866          test ! -s conftest.err
8867        } && test -s conftest.$ac_objext; then
8868   eval "$as_ac_Header=yes"
8869 else
8870   echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873         eval "$as_ac_Header=no"
8874 fi
8875
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 fi
8878 ac_res=`eval echo '${'$as_ac_Header'}'`
8879                { echo "$as_me:$LINENO: result: $ac_res" >&5
8880 echo "${ECHO_T}$ac_res" >&6; }
8881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8882   cat >>confdefs.h <<_ACEOF
8883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8884 _ACEOF
8885
8886 fi
8887
8888 done
8889
8890           { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8891 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
8892 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8893   echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895   ac_check_lib_save_LIBS=$LIBS
8896 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8897 cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h.  */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h.  */
8903
8904 /* Override any GCC internal prototype to avoid an error.
8905    Use char because int might match the return type of a GCC
8906    builtin and then its argument prototype would still apply.  */
8907 #ifdef __cplusplus
8908 extern "C"
8909 #endif
8910 char AuCreateFlow ();
8911 int
8912 main ()
8913 {
8914 return AuCreateFlow ();
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (ac_try="$ac_link"
8921 case "(($ac_try" in
8922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923   *) ac_try_echo=$ac_try;;
8924 esac
8925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926   (eval "$ac_link") 2>conftest.er1
8927   ac_status=$?
8928   grep -v '^ *+' conftest.er1 >conftest.err
8929   rm -f conftest.er1
8930   cat conftest.err >&5
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); } && {
8933          test -z "$ac_c_werror_flag" ||
8934          test ! -s conftest.err
8935        } && test -s conftest$ac_exeext &&
8936        $as_test_x conftest$ac_exeext; then
8937   ac_cv_lib_audio_AuCreateFlow=yes
8938 else
8939   echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8941
8942         ac_cv_lib_audio_AuCreateFlow=no
8943 fi
8944
8945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8946       conftest$ac_exeext conftest.$ac_ext
8947 LIBS=$ac_check_lib_save_LIBS
8948 fi
8949 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8950 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
8951 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8952
8953 cat >>confdefs.h <<\_ACEOF
8954 #define HAVE_NAS 1
8955 _ACEOF
8956
8957                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8958 fi
8959
8960 fi
8961
8962 done
8963
8964
8965     CPPFLAGS="$ac_save_CPPFLAGS"
8966     XFILES='$(XFILES)'
8967 else
8968     XLIB=""
8969     X_CFLAGS=""
8970     X_LIBS=""
8971 fi
8972
8973
8974 XML2LIBS=""
8975
8976 XML2INCL=""
8977
8978 XSLTLIBS=""
8979
8980 XSLTINCL=""
8981
8982 if test "$PKG_CONFIG" != "false"
8983 then
8984     ac_save_CPPFLAGS="$CPPFLAGS"
8985     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8986     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8987     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8988
8989 for ac_header in libxml/parser.h
8990 do
8991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8993   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8996   echo $ECHO_N "(cached) $ECHO_C" >&6
8997 fi
8998 ac_res=`eval echo '${'$as_ac_Header'}'`
8999                { echo "$as_me:$LINENO: result: $ac_res" >&5
9000 echo "${ECHO_T}$ac_res" >&6; }
9001 else
9002   # Is the header compilable?
9003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9005 cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h.  */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h.  */
9011 $ac_includes_default
9012 #include <$ac_header>
9013 _ACEOF
9014 rm -f conftest.$ac_objext
9015 if { (ac_try="$ac_compile"
9016 case "(($ac_try" in
9017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018   *) ac_try_echo=$ac_try;;
9019 esac
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021   (eval "$ac_compile") 2>conftest.er1
9022   ac_status=$?
9023   grep -v '^ *+' conftest.er1 >conftest.err
9024   rm -f conftest.er1
9025   cat conftest.err >&5
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); } && {
9028          test -z "$ac_c_werror_flag" ||
9029          test ! -s conftest.err
9030        } && test -s conftest.$ac_objext; then
9031   ac_header_compiler=yes
9032 else
9033   echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036         ac_header_compiler=no
9037 fi
9038
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9041 echo "${ECHO_T}$ac_header_compiler" >&6; }
9042
9043 # Is the header present?
9044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9046 cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h.  */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h.  */
9052 #include <$ac_header>
9053 _ACEOF
9054 if { (ac_try="$ac_cpp conftest.$ac_ext"
9055 case "(($ac_try" in
9056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057   *) ac_try_echo=$ac_try;;
9058 esac
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9061   ac_status=$?
9062   grep -v '^ *+' conftest.er1 >conftest.err
9063   rm -f conftest.er1
9064   cat conftest.err >&5
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); } >/dev/null && {
9067          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9068          test ! -s conftest.err
9069        }; then
9070   ac_header_preproc=yes
9071 else
9072   echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075   ac_header_preproc=no
9076 fi
9077
9078 rm -f conftest.err conftest.$ac_ext
9079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9080 echo "${ECHO_T}$ac_header_preproc" >&6; }
9081
9082 # So?  What about this header?
9083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9084   yes:no: )
9085     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9089     ac_header_preproc=yes
9090     ;;
9091   no:yes:* )
9092     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9094     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9095 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9096     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9098     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9099 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9102     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9104     ( cat <<\_ASBOX
9105 ## ------------------------------------ ##
9106 ## Report this to wine-devel@winehq.org ##
9107 ## ------------------------------------ ##
9108 _ASBOX
9109      ) | sed "s/^/$as_me: WARNING:     /" >&2
9110     ;;
9111 esac
9112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117   eval "$as_ac_Header=\$ac_header_preproc"
9118 fi
9119 ac_res=`eval echo '${'$as_ac_Header'}'`
9120                { echo "$as_me:$LINENO: result: $ac_res" >&5
9121 echo "${ECHO_T}$ac_res" >&6; }
9122
9123 fi
9124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9125   cat >>confdefs.h <<_ACEOF
9126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9127 _ACEOF
9128  { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
9129 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
9130 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
9131   echo $ECHO_N "(cached) $ECHO_C" >&6
9132 else
9133   ac_check_lib_save_LIBS=$LIBS
9134 LIBS="-lxml2 $ac_xml_libs $LIBS"
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h.  */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h.  */
9141
9142 /* Override any GCC internal prototype to avoid an error.
9143    Use char because int might match the return type of a GCC
9144    builtin and then its argument prototype would still apply.  */
9145 #ifdef __cplusplus
9146 extern "C"
9147 #endif
9148 char xmlParseMemory ();
9149 int
9150 main ()
9151 {
9152 return xmlParseMemory ();
9153   ;
9154   return 0;
9155 }
9156 _ACEOF
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (ac_try="$ac_link"
9159 case "(($ac_try" in
9160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161   *) ac_try_echo=$ac_try;;
9162 esac
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164   (eval "$ac_link") 2>conftest.er1
9165   ac_status=$?
9166   grep -v '^ *+' conftest.er1 >conftest.err
9167   rm -f conftest.er1
9168   cat conftest.err >&5
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); } && {
9171          test -z "$ac_c_werror_flag" ||
9172          test ! -s conftest.err
9173        } && test -s conftest$ac_exeext &&
9174        $as_test_x conftest$ac_exeext; then
9175   ac_cv_lib_xml2_xmlParseMemory=yes
9176 else
9177   echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9179
9180         ac_cv_lib_xml2_xmlParseMemory=no
9181 fi
9182
9183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9184       conftest$ac_exeext conftest.$ac_ext
9185 LIBS=$ac_check_lib_save_LIBS
9186 fi
9187 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9188 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9189 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
9190
9191 cat >>confdefs.h <<\_ACEOF
9192 #define HAVE_LIBXML2 1
9193 _ACEOF
9194
9195              XML2LIBS="$ac_xml_libs"
9196              XML2INCL="$ac_xml_cflags"
9197 fi
9198
9199          { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
9200 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
9201 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
9202   echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204   ac_check_lib_save_LIBS=$LIBS
9205 LIBS="-lxml2 $ac_xml_libs $LIBS"
9206 cat >conftest.$ac_ext <<_ACEOF
9207 /* confdefs.h.  */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h.  */
9212
9213 /* Override any GCC internal prototype to avoid an error.
9214    Use char because int might match the return type of a GCC
9215    builtin and then its argument prototype would still apply.  */
9216 #ifdef __cplusplus
9217 extern "C"
9218 #endif
9219 char xmlReadMemory ();
9220 int
9221 main ()
9222 {
9223 return xmlReadMemory ();
9224   ;
9225   return 0;
9226 }
9227 _ACEOF
9228 rm -f conftest.$ac_objext conftest$ac_exeext
9229 if { (ac_try="$ac_link"
9230 case "(($ac_try" in
9231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232   *) ac_try_echo=$ac_try;;
9233 esac
9234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235   (eval "$ac_link") 2>conftest.er1
9236   ac_status=$?
9237   grep -v '^ *+' conftest.er1 >conftest.err
9238   rm -f conftest.er1
9239   cat conftest.err >&5
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); } && {
9242          test -z "$ac_c_werror_flag" ||
9243          test ! -s conftest.err
9244        } && test -s conftest$ac_exeext &&
9245        $as_test_x conftest$ac_exeext; then
9246   ac_cv_lib_xml2_xmlReadMemory=yes
9247 else
9248   echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251         ac_cv_lib_xml2_xmlReadMemory=no
9252 fi
9253
9254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9255       conftest$ac_exeext conftest.$ac_ext
9256 LIBS=$ac_check_lib_save_LIBS
9257 fi
9258 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9259 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9260 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
9261
9262 cat >>confdefs.h <<\_ACEOF
9263 #define HAVE_XMLREADMEMORY 1
9264 _ACEOF
9265
9266 fi
9267
9268          { echo "$as_me:$LINENO: checking for xmlNewDocPI in -lxml2" >&5
9269 echo $ECHO_N "checking for xmlNewDocPI in -lxml2... $ECHO_C" >&6; }
9270 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then
9271   echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273   ac_check_lib_save_LIBS=$LIBS
9274 LIBS="-lxml2 $ac_xml_libs $LIBS"
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h.  */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h.  */
9281
9282 /* Override any GCC internal prototype to avoid an error.
9283    Use char because int might match the return type of a GCC
9284    builtin and then its argument prototype would still apply.  */
9285 #ifdef __cplusplus
9286 extern "C"
9287 #endif
9288 char xmlNewDocPI ();
9289 int
9290 main ()
9291 {
9292 return xmlNewDocPI ();
9293   ;
9294   return 0;
9295 }
9296 _ACEOF
9297 rm -f conftest.$ac_objext conftest$ac_exeext
9298 if { (ac_try="$ac_link"
9299 case "(($ac_try" in
9300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301   *) ac_try_echo=$ac_try;;
9302 esac
9303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304   (eval "$ac_link") 2>conftest.er1
9305   ac_status=$?
9306   grep -v '^ *+' conftest.er1 >conftest.err
9307   rm -f conftest.er1
9308   cat conftest.err >&5
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); } && {
9311          test -z "$ac_c_werror_flag" ||
9312          test ! -s conftest.err
9313        } && test -s conftest$ac_exeext &&
9314        $as_test_x conftest$ac_exeext; then
9315   ac_cv_lib_xml2_xmlNewDocPI=yes
9316 else
9317   echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9319
9320         ac_cv_lib_xml2_xmlNewDocPI=no
9321 fi
9322
9323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9324       conftest$ac_exeext conftest.$ac_ext
9325 LIBS=$ac_check_lib_save_LIBS
9326 fi
9327 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9328 echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9329 if test $ac_cv_lib_xml2_xmlNewDocPI = yes; then
9330
9331 cat >>confdefs.h <<\_ACEOF
9332 #define HAVE_XMLNEWDOCPI 1
9333 _ACEOF
9334
9335 fi
9336
9337
9338 fi
9339
9340 done
9341
9342     CPPFLAGS="$ac_save_CPPFLAGS"
9343     ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9344     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9345     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9346
9347
9348 for ac_header in libxslt/pattern.h libxslt/transform.h
9349 do
9350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9354   echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356   cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h.  */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h.  */
9362 #ifdef HAVE_LIBXSLT_PATTERN_H
9363 # include <libxslt/pattern.h>
9364 #endif
9365
9366 #include <$ac_header>
9367 _ACEOF
9368 rm -f conftest.$ac_objext
9369 if { (ac_try="$ac_compile"
9370 case "(($ac_try" in
9371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372   *) ac_try_echo=$ac_try;;
9373 esac
9374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375   (eval "$ac_compile") 2>conftest.er1
9376   ac_status=$?
9377   grep -v '^ *+' conftest.er1 >conftest.err
9378   rm -f conftest.er1
9379   cat conftest.err >&5
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); } && {
9382          test -z "$ac_c_werror_flag" ||
9383          test ! -s conftest.err
9384        } && test -s conftest.$ac_objext; then
9385   eval "$as_ac_Header=yes"
9386 else
9387   echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390         eval "$as_ac_Header=no"
9391 fi
9392
9393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394 fi
9395 ac_res=`eval echo '${'$as_ac_Header'}'`
9396                { echo "$as_me:$LINENO: result: $ac_res" >&5
9397 echo "${ECHO_T}$ac_res" >&6; }
9398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9399   cat >>confdefs.h <<_ACEOF
9400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9401 _ACEOF
9402  { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
9403 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
9404 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
9405   echo $ECHO_N "(cached) $ECHO_C" >&6
9406 else
9407   ac_check_lib_save_LIBS=$LIBS
9408 LIBS="-lxslt $ac_xslt_libs $LIBS"
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h.  */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h.  */
9415
9416 /* Override any GCC internal prototype to avoid an error.
9417    Use char because int might match the return type of a GCC
9418    builtin and then its argument prototype would still apply.  */
9419 #ifdef __cplusplus
9420 extern "C"
9421 #endif
9422 char xsltCompilePattern ();
9423 int
9424 main ()
9425 {
9426 return xsltCompilePattern ();
9427   ;
9428   return 0;
9429 }
9430 _ACEOF
9431 rm -f conftest.$ac_objext conftest$ac_exeext
9432 if { (ac_try="$ac_link"
9433 case "(($ac_try" in
9434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435   *) ac_try_echo=$ac_try;;
9436 esac
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438   (eval "$ac_link") 2>conftest.er1
9439   ac_status=$?
9440   grep -v '^ *+' conftest.er1 >conftest.err
9441   rm -f conftest.er1
9442   cat conftest.err >&5
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); } && {
9445          test -z "$ac_c_werror_flag" ||
9446          test ! -s conftest.err
9447        } && test -s conftest$ac_exeext &&
9448        $as_test_x conftest$ac_exeext; then
9449   ac_cv_lib_xslt_xsltCompilePattern=yes
9450 else
9451   echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9453
9454         ac_cv_lib_xslt_xsltCompilePattern=no
9455 fi
9456
9457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9458       conftest$ac_exeext conftest.$ac_ext
9459 LIBS=$ac_check_lib_save_LIBS
9460 fi
9461 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
9462 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
9463 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
9464
9465 cat >>confdefs.h <<\_ACEOF
9466 #define HAVE_LIBXSLT 1
9467 _ACEOF
9468
9469              XSLTLIBS="$ac_xslt_libs"
9470              XSLTINCL="$ac_xslt_cflags"
9471 fi
9472
9473
9474 fi
9475
9476 done
9477
9478     CPPFLAGS="$ac_save_CPPFLAGS"
9479 fi
9480
9481 HALINCL=""
9482
9483 if test "$PKG_CONFIG" != "false"
9484 then
9485     ac_save_CPPFLAGS="$CPPFLAGS"
9486     ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9487     ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9488     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9489
9490
9491 for ac_header in dbus/dbus.h hal/libhal.h
9492 do
9493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9495   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 fi
9500 ac_res=`eval echo '${'$as_ac_Header'}'`
9501                { echo "$as_me:$LINENO: result: $ac_res" >&5
9502 echo "${ECHO_T}$ac_res" >&6; }
9503 else
9504   # Is the header compilable?
9505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9507 cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h.  */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h.  */
9513 $ac_includes_default
9514 #include <$ac_header>
9515 _ACEOF
9516 rm -f conftest.$ac_objext
9517 if { (ac_try="$ac_compile"
9518 case "(($ac_try" in
9519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520   *) ac_try_echo=$ac_try;;
9521 esac
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523   (eval "$ac_compile") 2>conftest.er1
9524   ac_status=$?
9525   grep -v '^ *+' conftest.er1 >conftest.err
9526   rm -f conftest.er1
9527   cat conftest.err >&5
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); } && {
9530          test -z "$ac_c_werror_flag" ||
9531          test ! -s conftest.err
9532        } && test -s conftest.$ac_objext; then
9533   ac_header_compiler=yes
9534 else
9535   echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9537
9538         ac_header_compiler=no
9539 fi
9540
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9543 echo "${ECHO_T}$ac_header_compiler" >&6; }
9544
9545 # Is the header present?
9546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h.  */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h.  */
9554 #include <$ac_header>
9555 _ACEOF
9556 if { (ac_try="$ac_cpp conftest.$ac_ext"
9557 case "(($ac_try" in
9558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559   *) ac_try_echo=$ac_try;;
9560 esac
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9563   ac_status=$?
9564   grep -v '^ *+' conftest.er1 >conftest.err
9565   rm -f conftest.er1
9566   cat conftest.err >&5
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); } >/dev/null && {
9569          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9570          test ! -s conftest.err
9571        }; then
9572   ac_header_preproc=yes
9573 else
9574   echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577   ac_header_preproc=no
9578 fi
9579
9580 rm -f conftest.err conftest.$ac_ext
9581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9582 echo "${ECHO_T}$ac_header_preproc" >&6; }
9583
9584 # So?  What about this header?
9585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9586   yes:no: )
9587     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9591     ac_header_preproc=yes
9592     ;;
9593   no:yes:* )
9594     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9596     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9597 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9598     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9600     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9601 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9604     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9606     ( cat <<\_ASBOX
9607 ## ------------------------------------ ##
9608 ## Report this to wine-devel@winehq.org ##
9609 ## ------------------------------------ ##
9610 _ASBOX
9611      ) | sed "s/^/$as_me: WARNING:     /" >&2
9612     ;;
9613 esac
9614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9617   echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619   eval "$as_ac_Header=\$ac_header_preproc"
9620 fi
9621 ac_res=`eval echo '${'$as_ac_Header'}'`
9622                { echo "$as_me:$LINENO: result: $ac_res" >&5
9623 echo "${ECHO_T}$ac_res" >&6; }
9624
9625 fi
9626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9627   cat >>confdefs.h <<_ACEOF
9628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9629 _ACEOF
9630
9631 fi
9632
9633 done
9634
9635     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9636     then
9637         { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
9638 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
9639 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
9640   echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642   ac_check_lib_save_LIBS=$LIBS
9643 LIBS="-lhal  $LIBS"
9644 cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h.  */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h.  */
9650
9651 /* Override any GCC internal prototype to avoid an error.
9652    Use char because int might match the return type of a GCC
9653    builtin and then its argument prototype would still apply.  */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 char libhal_ctx_new ();
9658 int
9659 main ()
9660 {
9661 return libhal_ctx_new ();
9662   ;
9663   return 0;
9664 }
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9668 case "(($ac_try" in
9669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670   *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673   (eval "$ac_link") 2>conftest.er1
9674   ac_status=$?
9675   grep -v '^ *+' conftest.er1 >conftest.err
9676   rm -f conftest.er1
9677   cat conftest.err >&5
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); } && {
9680          test -z "$ac_c_werror_flag" ||
9681          test ! -s conftest.err
9682        } && test -s conftest$ac_exeext &&
9683        $as_test_x conftest$ac_exeext; then
9684   ac_cv_lib_hal_libhal_ctx_new=yes
9685 else
9686   echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689         ac_cv_lib_hal_libhal_ctx_new=no
9690 fi
9691
9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693       conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_lib_save_LIBS
9695 fi
9696 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
9697 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
9698 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
9699   { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
9700 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
9701 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704   ac_check_lib_save_LIBS=$LIBS
9705 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714    Use char because int might match the return type of a GCC
9715    builtin and then its argument prototype would still apply.  */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char dbus_connection_close ();
9720 int
9721 main ()
9722 {
9723 return dbus_connection_close ();
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9730 case "(($ac_try" in
9731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732   *) ac_try_echo=$ac_try;;
9733 esac
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735   (eval "$ac_link") 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } && {
9742          test -z "$ac_c_werror_flag" ||
9743          test ! -s conftest.err
9744        } && test -s conftest$ac_exeext &&
9745        $as_test_x conftest$ac_exeext; then
9746   ac_cv_lib_dbus_1_dbus_connection_close=yes
9747 else
9748   echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9750
9751         ac_cv_lib_dbus_1_dbus_connection_close=no
9752 fi
9753
9754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9755       conftest$ac_exeext conftest.$ac_ext
9756 LIBS=$ac_check_lib_save_LIBS
9757 fi
9758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9759 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9760 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
9761
9762 cat >>confdefs.h <<\_ACEOF
9763 #define HAVE_LIBHAL 1
9764 _ACEOF
9765
9766              HALINCL="$ac_hal_cflags"
9767 fi
9768
9769 fi
9770
9771     fi
9772     CPPFLAGS="$ac_save_CPPFLAGS"
9773 fi
9774
9775 CURSESLIBS=""
9776 if test "$ac_cv_header_ncurses_h" = "yes"
9777 then
9778     { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9779 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
9780 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783   ac_check_lib_save_LIBS=$LIBS
9784 LIBS="-lncurses  $LIBS"
9785 cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h.  */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h.  */
9791
9792 /* Override any GCC internal prototype to avoid an error.
9793    Use char because int might match the return type of a GCC
9794    builtin and then its argument prototype would still apply.  */
9795 #ifdef __cplusplus
9796 extern "C"
9797 #endif
9798 char waddch ();
9799 int
9800 main ()
9801 {
9802 return waddch ();
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (ac_try="$ac_link"
9809 case "(($ac_try" in
9810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811   *) ac_try_echo=$ac_try;;
9812 esac
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814   (eval "$ac_link") 2>conftest.er1
9815   ac_status=$?
9816   grep -v '^ *+' conftest.er1 >conftest.err
9817   rm -f conftest.er1
9818   cat conftest.err >&5
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } && {
9821          test -z "$ac_c_werror_flag" ||
9822          test ! -s conftest.err
9823        } && test -s conftest$ac_exeext &&
9824        $as_test_x conftest$ac_exeext; then
9825   ac_cv_lib_ncurses_waddch=yes
9826 else
9827   echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830         ac_cv_lib_ncurses_waddch=no
9831 fi
9832
9833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9834       conftest$ac_exeext conftest.$ac_ext
9835 LIBS=$ac_check_lib_save_LIBS
9836 fi
9837 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9838 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
9839 if test $ac_cv_lib_ncurses_waddch = yes; then
9840   CURSESLIBS="-lncurses"
9841 fi
9842
9843 elif test "$ac_cv_header_curses_h" = "yes"
9844 then
9845     { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9846 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
9847 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9848   echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850   ac_check_lib_save_LIBS=$LIBS
9851 LIBS="-lcurses  $LIBS"
9852 cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h.  */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h.  */
9858
9859 /* Override any GCC internal prototype to avoid an error.
9860    Use char because int might match the return type of a GCC
9861    builtin and then its argument prototype would still apply.  */
9862 #ifdef __cplusplus
9863 extern "C"
9864 #endif
9865 char waddch ();
9866 int
9867 main ()
9868 {
9869 return waddch ();
9870   ;
9871   return 0;
9872 }
9873 _ACEOF
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (ac_try="$ac_link"
9876 case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881   (eval "$ac_link") 2>conftest.er1
9882   ac_status=$?
9883   grep -v '^ *+' conftest.er1 >conftest.err
9884   rm -f conftest.er1
9885   cat conftest.err >&5
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); } && {
9888          test -z "$ac_c_werror_flag" ||
9889          test ! -s conftest.err
9890        } && test -s conftest$ac_exeext &&
9891        $as_test_x conftest$ac_exeext; then
9892   ac_cv_lib_curses_waddch=yes
9893 else
9894   echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897         ac_cv_lib_curses_waddch=no
9898 fi
9899
9900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9901       conftest$ac_exeext conftest.$ac_ext
9902 LIBS=$ac_check_lib_save_LIBS
9903 fi
9904 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9905 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
9906 if test $ac_cv_lib_curses_waddch = yes; then
9907   CURSESLIBS="-lcurses"
9908 fi
9909
9910 fi
9911 ac_save_LIBS="$LIBS"
9912 LIBS="$LIBS $CURSESLIBS"
9913
9914 for ac_func in mousemask
9915 do
9916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9930 #define $ac_func innocuous_$ac_func
9931
9932 /* System header to define __stub macros and hopefully few prototypes,
9933     which can conflict with char $ac_func (); below.
9934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9935     <limits.h> exists even on freestanding compilers.  */
9936
9937 #ifdef __STDC__
9938 # include <limits.h>
9939 #else
9940 # include <assert.h>
9941 #endif
9942
9943 #undef $ac_func
9944
9945 /* Override any GCC internal prototype to avoid an error.
9946    Use char because int might match the return type of a GCC
9947    builtin and then its argument prototype would still apply.  */
9948 #ifdef __cplusplus
9949 extern "C"
9950 #endif
9951 char $ac_func ();
9952 /* The GNU C library defines this for functions which it implements
9953     to always fail with ENOSYS.  Some functions are actually named
9954     something starting with __ and the normal name is an alias.  */
9955 #if defined __stub_$ac_func || defined __stub___$ac_func
9956 choke me
9957 #endif
9958
9959 int
9960 main ()
9961 {
9962 return $ac_func ();
9963   ;
9964   return 0;
9965 }
9966 _ACEOF
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (ac_try="$ac_link"
9969 case "(($ac_try" in
9970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971   *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974   (eval "$ac_link") 2>conftest.er1
9975   ac_status=$?
9976   grep -v '^ *+' conftest.er1 >conftest.err
9977   rm -f conftest.er1
9978   cat conftest.err >&5
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); } && {
9981          test -z "$ac_c_werror_flag" ||
9982          test ! -s conftest.err
9983        } && test -s conftest$ac_exeext &&
9984        $as_test_x conftest$ac_exeext; then
9985   eval "$as_ac_var=yes"
9986 else
9987   echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990         eval "$as_ac_var=no"
9991 fi
9992
9993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9994       conftest$ac_exeext conftest.$ac_ext
9995 fi
9996 ac_res=`eval echo '${'$as_ac_var'}'`
9997                { echo "$as_me:$LINENO: result: $ac_res" >&5
9998 echo "${ECHO_T}$ac_res" >&6; }
9999 if test `eval echo '${'$as_ac_var'}'` = yes; then
10000   cat >>confdefs.h <<_ACEOF
10001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10002 _ACEOF
10003
10004 fi
10005 done
10006
10007 LIBS="$ac_save_LIBS"
10008
10009 # Extract the first word of "sane-config", so it can be a program name with args.
10010 set dummy sane-config; ac_word=$2
10011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10013 if test "${ac_cv_prog_sane_devel+set}" = set; then
10014   echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016   if test -n "$sane_devel"; then
10017   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
10018 else
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10021 do
10022   IFS=$as_save_IFS
10023   test -z "$as_dir" && as_dir=.
10024   for ac_exec_ext in '' $ac_executable_extensions; do
10025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10026     ac_cv_prog_sane_devel="sane-config"
10027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10028     break 2
10029   fi
10030 done
10031 done
10032 IFS=$as_save_IFS
10033
10034   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10035 fi
10036 fi
10037 sane_devel=$ac_cv_prog_sane_devel
10038 if test -n "$sane_devel"; then
10039   { echo "$as_me:$LINENO: result: $sane_devel" >&5
10040 echo "${ECHO_T}$sane_devel" >&6; }
10041 else
10042   { echo "$as_me:$LINENO: result: no" >&5
10043 echo "${ECHO_T}no" >&6; }
10044 fi
10045
10046
10047 SANELIBS=""
10048
10049 SANEINCL=""
10050
10051 if test "$sane_devel" != "no"
10052 then
10053     SANELIBS="`$sane_devel --libs`"
10054     SANEINCL="`$sane_devel --cflags`"
10055     ac_save_CPPFLAGS="$CPPFLAGS"
10056     ac_save_LIBS="$LIBS"
10057     CPPFLAGS="$CPPFLAGS $SANEINCL"
10058     LIBS="$LIBS $SANELIBS"
10059     if test "${ac_cv_header_sane_sane_h+set}" = set; then
10060   { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10061 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
10062 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10063   echo $ECHO_N "(cached) $ECHO_C" >&6
10064 fi
10065 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10066 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
10067 else
10068   # Is the header compilable?
10069 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10070 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h.  */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h.  */
10077 $ac_includes_default
10078 #include <sane/sane.h>
10079 _ACEOF
10080 rm -f conftest.$ac_objext
10081 if { (ac_try="$ac_compile"
10082 case "(($ac_try" in
10083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084   *) ac_try_echo=$ac_try;;
10085 esac
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087   (eval "$ac_compile") 2>conftest.er1
10088   ac_status=$?
10089   grep -v '^ *+' conftest.er1 >conftest.err
10090   rm -f conftest.er1
10091   cat conftest.err >&5
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); } && {
10094          test -z "$ac_c_werror_flag" ||
10095          test ! -s conftest.err
10096        } && test -s conftest.$ac_objext; then
10097   ac_header_compiler=yes
10098 else
10099   echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10101
10102         ac_header_compiler=no
10103 fi
10104
10105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10107 echo "${ECHO_T}$ac_header_compiler" >&6; }
10108
10109 # Is the header present?
10110 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10111 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118 #include <sane/sane.h>
10119 _ACEOF
10120 if { (ac_try="$ac_cpp conftest.$ac_ext"
10121 case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10127   ac_status=$?
10128   grep -v '^ *+' conftest.er1 >conftest.err
10129   rm -f conftest.er1
10130   cat conftest.err >&5
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); } >/dev/null && {
10133          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10134          test ! -s conftest.err
10135        }; then
10136   ac_header_preproc=yes
10137 else
10138   echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141   ac_header_preproc=no
10142 fi
10143
10144 rm -f conftest.err conftest.$ac_ext
10145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10146 echo "${ECHO_T}$ac_header_preproc" >&6; }
10147
10148 # So?  What about this header?
10149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10150   yes:no: )
10151     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10152 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10153     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10154 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10155     ac_header_preproc=yes
10156     ;;
10157   no:yes:* )
10158     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10159 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10160     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
10161 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
10162     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10163 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10164     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
10165 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10166     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10167 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10168     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10169 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10170     ( cat <<\_ASBOX
10171 ## ------------------------------------ ##
10172 ## Report this to wine-devel@winehq.org ##
10173 ## ------------------------------------ ##
10174 _ASBOX
10175      ) | sed "s/^/$as_me: WARNING:     /" >&2
10176     ;;
10177 esac
10178 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10179 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
10180 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10181   echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183   ac_cv_header_sane_sane_h=$ac_header_preproc
10184 fi
10185 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10186 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
10187
10188 fi
10189 if test $ac_cv_header_sane_sane_h = yes; then
10190   { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10191 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
10192 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195   ac_check_lib_save_LIBS=$LIBS
10196 LIBS="-lsane  $LIBS"
10197 cat >conftest.$ac_ext <<_ACEOF
10198 /* confdefs.h.  */
10199 _ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h.  */
10203
10204 /* Override any GCC internal prototype to avoid an error.
10205    Use char because int might match the return type of a GCC
10206    builtin and then its argument prototype would still apply.  */
10207 #ifdef __cplusplus
10208 extern "C"
10209 #endif
10210 char sane_open ();
10211 int
10212 main ()
10213 {
10214 return sane_open ();
10215   ;
10216   return 0;
10217 }
10218 _ACEOF
10219 rm -f conftest.$ac_objext conftest$ac_exeext
10220 if { (ac_try="$ac_link"
10221 case "(($ac_try" in
10222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223   *) ac_try_echo=$ac_try;;
10224 esac
10225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226   (eval "$ac_link") 2>conftest.er1
10227   ac_status=$?
10228   grep -v '^ *+' conftest.er1 >conftest.err
10229   rm -f conftest.er1
10230   cat conftest.err >&5
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); } && {
10233          test -z "$ac_c_werror_flag" ||
10234          test ! -s conftest.err
10235        } && test -s conftest$ac_exeext &&
10236        $as_test_x conftest$ac_exeext; then
10237   ac_cv_lib_sane_sane_open=yes
10238 else
10239   echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10241
10242         ac_cv_lib_sane_sane_open=no
10243 fi
10244
10245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10246       conftest$ac_exeext conftest.$ac_ext
10247 LIBS=$ac_check_lib_save_LIBS
10248 fi
10249 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10250 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
10251 if test $ac_cv_lib_sane_sane_open = yes; then
10252
10253 cat >>confdefs.h <<\_ACEOF
10254 #define HAVE_SANE 1
10255 _ACEOF
10256
10257 else
10258   SANELIBS=""
10259                                   SANEINCL=""
10260 fi
10261
10262 else
10263   SANELIBS=""
10264                     SANEINCL=""
10265 fi
10266
10267
10268     LIBS="$ac_save_LIBS"
10269     CPPFLAGS="$ac_save_CPPFLAGS"
10270 fi
10271
10272 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10273 set dummy gphoto2-config; ac_word=$2
10274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10276 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   if test -n "$gphoto2_devel"; then
10280   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10281 else
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10284 do
10285   IFS=$as_save_IFS
10286   test -z "$as_dir" && as_dir=.
10287   for ac_exec_ext in '' $ac_executable_extensions; do
10288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10289     ac_cv_prog_gphoto2_devel="gphoto2-config"
10290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10291     break 2
10292   fi
10293 done
10294 done
10295 IFS=$as_save_IFS
10296
10297   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10298 fi
10299 fi
10300 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10301 if test -n "$gphoto2_devel"; then
10302   { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
10303 echo "${ECHO_T}$gphoto2_devel" >&6; }
10304 else
10305   { echo "$as_me:$LINENO: result: no" >&5
10306 echo "${ECHO_T}no" >&6; }
10307 fi
10308
10309
10310 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10311 set dummy gphoto2-port-config; ac_word=$2
10312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10314 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
10315   echo $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317   if test -n "$gphoto2port_devel"; then
10318   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10319 else
10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321 for as_dir in $PATH
10322 do
10323   IFS=$as_save_IFS
10324   test -z "$as_dir" && as_dir=.
10325   for ac_exec_ext in '' $ac_executable_extensions; do
10326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10327     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10329     break 2
10330   fi
10331 done
10332 done
10333 IFS=$as_save_IFS
10334
10335   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10336 fi
10337 fi
10338 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10339 if test -n "$gphoto2port_devel"; then
10340   { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
10341 echo "${ECHO_T}$gphoto2port_devel" >&6; }
10342 else
10343   { echo "$as_me:$LINENO: result: no" >&5
10344 echo "${ECHO_T}no" >&6; }
10345 fi
10346
10347
10348 GPHOTO2LIBS=""
10349
10350 GPHOTO2INCL=""
10351
10352 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10353 then
10354     GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10355     GPHOTO2LIBS=""
10356     for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10357     do
10358       case "$i" in
10359         -L/usr/lib|-L/usr/lib64) ;;
10360         -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
10361       esac
10362     done
10363     ac_save_CPPFLAGS="$CPPFLAGS"
10364     ac_save_LIBS="$LIBS"
10365     CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
10366     LIBS="$LIBS $GPHOTO2LIBS"
10367     if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10368   { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10369 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10370 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10371   echo $ECHO_N "(cached) $ECHO_C" >&6
10372 fi
10373 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10374 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10375 else
10376   # Is the header compilable?
10377 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
10378 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
10379 cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385 $ac_includes_default
10386 #include <gphoto2-camera.h>
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (ac_try="$ac_compile"
10390 case "(($ac_try" in
10391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392   *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395   (eval "$ac_compile") 2>conftest.er1
10396   ac_status=$?
10397   grep -v '^ *+' conftest.er1 >conftest.err
10398   rm -f conftest.er1
10399   cat conftest.err >&5
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); } && {
10402          test -z "$ac_c_werror_flag" ||
10403          test ! -s conftest.err
10404        } && test -s conftest.$ac_objext; then
10405   ac_header_compiler=yes
10406 else
10407   echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410         ac_header_compiler=no
10411 fi
10412
10413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10415 echo "${ECHO_T}$ac_header_compiler" >&6; }
10416
10417 # Is the header present?
10418 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
10419 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
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 #include <gphoto2-camera.h>
10427 _ACEOF
10428 if { (ac_try="$ac_cpp conftest.$ac_ext"
10429 case "(($ac_try" in
10430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431   *) ac_try_echo=$ac_try;;
10432 esac
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10435   ac_status=$?
10436   grep -v '^ *+' conftest.er1 >conftest.err
10437   rm -f conftest.er1
10438   cat conftest.err >&5
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); } >/dev/null && {
10441          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10442          test ! -s conftest.err
10443        }; then
10444   ac_header_preproc=yes
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449   ac_header_preproc=no
10450 fi
10451
10452 rm -f conftest.err conftest.$ac_ext
10453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10454 echo "${ECHO_T}$ac_header_preproc" >&6; }
10455
10456 # So?  What about this header?
10457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10458   yes:no: )
10459     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
10460 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10461     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
10462 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
10463     ac_header_preproc=yes
10464     ;;
10465   no:yes:* )
10466     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
10467 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
10468     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&5
10469 echo "$as_me: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&2;}
10470     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
10471 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
10472     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&5
10473 echo "$as_me: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10474     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
10475 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
10476     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
10477 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
10478     ( cat <<\_ASBOX
10479 ## ------------------------------------ ##
10480 ## Report this to wine-devel@winehq.org ##
10481 ## ------------------------------------ ##
10482 _ASBOX
10483      ) | sed "s/^/$as_me: WARNING:     /" >&2
10484     ;;
10485 esac
10486 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10487 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10488 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10489   echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491   ac_cv_header_gphoto2_camera_h=$ac_header_preproc
10492 fi
10493 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10494 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10495
10496 fi
10497 if test $ac_cv_header_gphoto2_camera_h = yes; then
10498   { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
10499 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
10500 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
10501   echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503   ac_check_lib_save_LIBS=$LIBS
10504 LIBS="-lgphoto2  $LIBS"
10505 cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h.  */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h.  */
10511
10512 /* Override any GCC internal prototype to avoid an error.
10513    Use char because int might match the return type of a GCC
10514    builtin and then its argument prototype would still apply.  */
10515 #ifdef __cplusplus
10516 extern "C"
10517 #endif
10518 char gp_camera_new ();
10519 int
10520 main ()
10521 {
10522 return gp_camera_new ();
10523   ;
10524   return 0;
10525 }
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (ac_try="$ac_link"
10529 case "(($ac_try" in
10530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531   *) ac_try_echo=$ac_try;;
10532 esac
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534   (eval "$ac_link") 2>conftest.er1
10535   ac_status=$?
10536   grep -v '^ *+' conftest.er1 >conftest.err
10537   rm -f conftest.er1
10538   cat conftest.err >&5
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); } && {
10541          test -z "$ac_c_werror_flag" ||
10542          test ! -s conftest.err
10543        } && test -s conftest$ac_exeext &&
10544        $as_test_x conftest$ac_exeext; then
10545   ac_cv_lib_gphoto2_gp_camera_new=yes
10546 else
10547   echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550         ac_cv_lib_gphoto2_gp_camera_new=no
10551 fi
10552
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554       conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10556 fi
10557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10558 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10559 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
10560
10561 cat >>confdefs.h <<\_ACEOF
10562 #define HAVE_GPHOTO2 1
10563 _ACEOF
10564
10565 else
10566   GPHOTO2LIBS=""
10567                                   GPHOTO2INCL=""
10568 fi
10569
10570 else
10571   GPHOTO2LIBS=""
10572                     GPHOTO2INCL=""
10573 fi
10574
10575
10576     LIBS="$ac_save_LIBS"
10577     CPPFLAGS="$ac_save_CPPFLAGS"
10578 fi
10579
10580 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10581 then
10582     saved_libs="$LIBS"
10583     for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
10584     do
10585         TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
10586         TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
10587         { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
10588 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
10589         LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
10590         cat >conftest.$ac_ext <<_ACEOF
10591 /* confdefs.h.  */
10592 _ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h.  */
10596 #include <unicode/ubidi.h>
10597 int
10598 main ()
10599 {
10600 ubidi_open()
10601   ;
10602   return 0;
10603 }
10604 _ACEOF
10605 rm -f conftest.$ac_objext conftest$ac_exeext
10606 if { (ac_try="$ac_link"
10607 case "(($ac_try" in
10608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609   *) ac_try_echo=$ac_try;;
10610 esac
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612   (eval "$ac_link") 2>conftest.er1
10613   ac_status=$?
10614   grep -v '^ *+' conftest.er1 >conftest.err
10615   rm -f conftest.er1
10616   cat conftest.err >&5
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); } && {
10619          test -z "$ac_c_werror_flag" ||
10620          test ! -s conftest.err
10621        } && test -s conftest$ac_exeext &&
10622        $as_test_x conftest$ac_exeext; then
10623
10624 cat >>confdefs.h <<\_ACEOF
10625 #define HAVE_ICU 1
10626 _ACEOF
10627
10628                      ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
10629
10630                      { echo "$as_me:$LINENO: result: yes" >&5
10631 echo "${ECHO_T}yes" >&6; }
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636         { echo "$as_me:$LINENO: result: no" >&5
10637 echo "${ECHO_T}no" >&6; }
10638 fi
10639
10640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10641       conftest$ac_exeext conftest.$ac_ext
10642     done
10643     LIBS="$saved_libs"
10644 fi
10645
10646 RESOLVLIBS=""
10647
10648 if test "$ac_cv_header_resolv_h" = "yes"
10649 then
10650     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
10651 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
10652 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
10653   echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655   ac_check_lib_save_LIBS=$LIBS
10656 LIBS="-lresolv  $LIBS"
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
10664 /* Override any GCC internal prototype to avoid an error.
10665    Use char because int might match the return type of a GCC
10666    builtin and then its argument prototype would still apply.  */
10667 #ifdef __cplusplus
10668 extern "C"
10669 #endif
10670 char res_query ();
10671 int
10672 main ()
10673 {
10674 return res_query ();
10675   ;
10676   return 0;
10677 }
10678 _ACEOF
10679 rm -f conftest.$ac_objext conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683   *) ac_try_echo=$ac_try;;
10684 esac
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686   (eval "$ac_link") 2>conftest.er1
10687   ac_status=$?
10688   grep -v '^ *+' conftest.er1 >conftest.err
10689   rm -f conftest.er1
10690   cat conftest.err >&5
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } && {
10693          test -z "$ac_c_werror_flag" ||
10694          test ! -s conftest.err
10695        } && test -s conftest$ac_exeext &&
10696        $as_test_x conftest$ac_exeext; then
10697   ac_cv_lib_resolv_res_query=yes
10698 else
10699   echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10701
10702         ac_cv_lib_resolv_res_query=no
10703 fi
10704
10705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10706       conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10708 fi
10709 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
10710 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
10711 if test $ac_cv_lib_resolv_res_query = yes; then
10712
10713 cat >>confdefs.h <<\_ACEOF
10714 #define HAVE_RESOLV 1
10715 _ACEOF
10716
10717          RESOLVLIBS="-lresolv"
10718 fi
10719
10720 fi
10721
10722 LCMSLIBS=""
10723
10724 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10725 then
10726     { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
10727 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
10728 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731   ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-llcms  $LIBS"
10733 cat >conftest.$ac_ext <<_ACEOF
10734 /* confdefs.h.  */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h.  */
10739
10740 /* Override any GCC internal prototype to avoid an error.
10741    Use char because int might match the return type of a GCC
10742    builtin and then its argument prototype would still apply.  */
10743 #ifdef __cplusplus
10744 extern "C"
10745 #endif
10746 char cmsOpenProfileFromFile ();
10747 int
10748 main ()
10749 {
10750 return cmsOpenProfileFromFile ();
10751   ;
10752   return 0;
10753 }
10754 _ACEOF
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (ac_try="$ac_link"
10757 case "(($ac_try" in
10758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759   *) ac_try_echo=$ac_try;;
10760 esac
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762   (eval "$ac_link") 2>conftest.er1
10763   ac_status=$?
10764   grep -v '^ *+' conftest.er1 >conftest.err
10765   rm -f conftest.er1
10766   cat conftest.err >&5
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); } && {
10769          test -z "$ac_c_werror_flag" ||
10770          test ! -s conftest.err
10771        } && test -s conftest$ac_exeext &&
10772        $as_test_x conftest$ac_exeext; then
10773   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10774 else
10775   echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10777
10778         ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10779 fi
10780
10781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10782       conftest$ac_exeext conftest.$ac_ext
10783 LIBS=$ac_check_lib_save_LIBS
10784 fi
10785 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10786 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10787 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
10788
10789 cat >>confdefs.h <<\_ACEOF
10790 #define HAVE_LCMS 1
10791 _ACEOF
10792
10793          LCMSLIBS="-llcms"
10794 fi
10795
10796 fi
10797
10798 LDAPLIBS=""
10799
10800 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
10801 then
10802     { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
10803 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
10804 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
10805   echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807   ac_check_lib_save_LIBS=$LIBS
10808 LIBS="-lldap_r $LIBPTHREAD $LIBS"
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h.  */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h.  */
10815
10816 /* Override any GCC internal prototype to avoid an error.
10817    Use char because int might match the return type of a GCC
10818    builtin and then its argument prototype would still apply.  */
10819 #ifdef __cplusplus
10820 extern "C"
10821 #endif
10822 char ldap_initialize ();
10823 int
10824 main ()
10825 {
10826 return ldap_initialize ();
10827   ;
10828   return 0;
10829 }
10830 _ACEOF
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (ac_try="$ac_link"
10833 case "(($ac_try" in
10834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835   *) ac_try_echo=$ac_try;;
10836 esac
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838   (eval "$ac_link") 2>conftest.er1
10839   ac_status=$?
10840   grep -v '^ *+' conftest.er1 >conftest.err
10841   rm -f conftest.er1
10842   cat conftest.err >&5
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); } && {
10845          test -z "$ac_c_werror_flag" ||
10846          test ! -s conftest.err
10847        } && test -s conftest$ac_exeext &&
10848        $as_test_x conftest$ac_exeext; then
10849   ac_cv_lib_ldap_r_ldap_initialize=yes
10850 else
10851   echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10853
10854         ac_cv_lib_ldap_r_ldap_initialize=no
10855 fi
10856
10857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10858       conftest$ac_exeext conftest.$ac_ext
10859 LIBS=$ac_check_lib_save_LIBS
10860 fi
10861 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
10862 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
10863 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
10864   { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
10865 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
10866 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
10867   echo $ECHO_N "(cached) $ECHO_C" >&6
10868 else
10869   ac_check_lib_save_LIBS=$LIBS
10870 LIBS="-llber $LIBPTHREAD $LIBS"
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h.  */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h.  */
10877
10878 /* Override any GCC internal prototype to avoid an error.
10879    Use char because int might match the return type of a GCC
10880    builtin and then its argument prototype would still apply.  */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 char ber_init ();
10885 int
10886 main ()
10887 {
10888 return ber_init ();
10889   ;
10890   return 0;
10891 }
10892 _ACEOF
10893 rm -f conftest.$ac_objext conftest$ac_exeext
10894 if { (ac_try="$ac_link"
10895 case "(($ac_try" in
10896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897   *) ac_try_echo=$ac_try;;
10898 esac
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900   (eval "$ac_link") 2>conftest.er1
10901   ac_status=$?
10902   grep -v '^ *+' conftest.er1 >conftest.err
10903   rm -f conftest.er1
10904   cat conftest.err >&5
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); } && {
10907          test -z "$ac_c_werror_flag" ||
10908          test ! -s conftest.err
10909        } && test -s conftest$ac_exeext &&
10910        $as_test_x conftest$ac_exeext; then
10911   ac_cv_lib_lber_ber_init=yes
10912 else
10913   echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10915
10916         ac_cv_lib_lber_ber_init=no
10917 fi
10918
10919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10920       conftest$ac_exeext conftest.$ac_ext
10921 LIBS=$ac_check_lib_save_LIBS
10922 fi
10923 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
10924 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
10925 if test $ac_cv_lib_lber_ber_init = yes; then
10926
10927 cat >>confdefs.h <<\_ACEOF
10928 #define HAVE_LDAP 1
10929 _ACEOF
10930
10931              LDAPLIBS="-lldap_r -llber"
10932 fi
10933
10934 fi
10935
10936     ac_wine_check_funcs_save_LIBS="$LIBS"
10937 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
10938
10939
10940
10941
10942 for ac_func in \
10943         ldap_count_references \
10944         ldap_first_reference \
10945         ldap_next_reference \
10946         ldap_parse_reference
10947 do
10948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10952   echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954   cat >conftest.$ac_ext <<_ACEOF
10955 /* confdefs.h.  */
10956 _ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h.  */
10960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10962 #define $ac_func innocuous_$ac_func
10963
10964 /* System header to define __stub macros and hopefully few prototypes,
10965     which can conflict with char $ac_func (); below.
10966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10967     <limits.h> exists even on freestanding compilers.  */
10968
10969 #ifdef __STDC__
10970 # include <limits.h>
10971 #else
10972 # include <assert.h>
10973 #endif
10974
10975 #undef $ac_func
10976
10977 /* Override any GCC internal prototype to avoid an error.
10978    Use char because int might match the return type of a GCC
10979    builtin and then its argument prototype would still apply.  */
10980 #ifdef __cplusplus
10981 extern "C"
10982 #endif
10983 char $ac_func ();
10984 /* The GNU C library defines this for functions which it implements
10985     to always fail with ENOSYS.  Some functions are actually named
10986     something starting with __ and the normal name is an alias.  */
10987 #if defined __stub_$ac_func || defined __stub___$ac_func
10988 choke me
10989 #endif
10990
10991 int
10992 main ()
10993 {
10994 return $ac_func ();
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003   *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006   (eval "$ac_link") 2>conftest.er1
11007   ac_status=$?
11008   grep -v '^ *+' conftest.er1 >conftest.err
11009   rm -f conftest.er1
11010   cat conftest.err >&5
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } && {
11013          test -z "$ac_c_werror_flag" ||
11014          test ! -s conftest.err
11015        } && test -s conftest$ac_exeext &&
11016        $as_test_x conftest$ac_exeext; then
11017   eval "$as_ac_var=yes"
11018 else
11019   echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11021
11022         eval "$as_ac_var=no"
11023 fi
11024
11025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11026       conftest$ac_exeext conftest.$ac_ext
11027 fi
11028 ac_res=`eval echo '${'$as_ac_var'}'`
11029                { echo "$as_me:$LINENO: result: $ac_res" >&5
11030 echo "${ECHO_T}$ac_res" >&6; }
11031 if test `eval echo '${'$as_ac_var'}'` = yes; then
11032   cat >>confdefs.h <<_ACEOF
11033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11034 _ACEOF
11035
11036 fi
11037 done
11038
11039 LIBS="$ac_wine_check_funcs_save_LIBS"
11040 fi
11041
11042 FREETYPELIBS=""
11043
11044 FREETYPEINCL=""
11045
11046 # Extract the first word of "freetype-config", so it can be a program name with args.
11047 set dummy freetype-config; ac_word=$2
11048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11050 if test "${ac_cv_prog_ft_devel+set}" = set; then
11051   echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053   if test -n "$ft_devel"; then
11054   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
11055 else
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11058 do
11059   IFS=$as_save_IFS
11060   test -z "$as_dir" && as_dir=.
11061   for ac_exec_ext in '' $ac_executable_extensions; do
11062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11063     ac_cv_prog_ft_devel="freetype-config"
11064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11065     break 2
11066   fi
11067 done
11068 done
11069 IFS=$as_save_IFS
11070
11071   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
11072 fi
11073 fi
11074 ft_devel=$ac_cv_prog_ft_devel
11075 if test -n "$ft_devel"; then
11076   { echo "$as_me:$LINENO: result: $ft_devel" >&5
11077 echo "${ECHO_T}$ft_devel" >&6; }
11078 else
11079   { echo "$as_me:$LINENO: result: no" >&5
11080 echo "${ECHO_T}no" >&6; }
11081 fi
11082
11083
11084 if test "$ft_devel" = "no"
11085 then
11086     # Extract the first word of "freetype2-config", so it can be a program name with args.
11087 set dummy freetype2-config; ac_word=$2
11088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11090 if test "${ac_cv_prog_ft_devel2+set}" = set; then
11091   echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093   if test -n "$ft_devel2"; then
11094   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
11095 else
11096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097 for as_dir in $PATH
11098 do
11099   IFS=$as_save_IFS
11100   test -z "$as_dir" && as_dir=.
11101   for ac_exec_ext in '' $ac_executable_extensions; do
11102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11103     ac_cv_prog_ft_devel2="freetype2-config"
11104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11105     break 2
11106   fi
11107 done
11108 done
11109 IFS=$as_save_IFS
11110
11111   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
11112 fi
11113 fi
11114 ft_devel2=$ac_cv_prog_ft_devel2
11115 if test -n "$ft_devel2"; then
11116   { echo "$as_me:$LINENO: result: $ft_devel2" >&5
11117 echo "${ECHO_T}$ft_devel2" >&6; }
11118 else
11119   { echo "$as_me:$LINENO: result: no" >&5
11120 echo "${ECHO_T}no" >&6; }
11121 fi
11122
11123
11124     if test "$ft_devel2" = "freetype2-config"
11125     then
11126         ft_devel=$ft_devel2
11127     fi
11128 fi
11129
11130 if test "$ft_devel" = "no"
11131 then
11132     wine_cv_msg_freetype=yes
11133 else
11134     FREETYPELIBS=`$ft_devel --libs`
11135     FREETYPEINCL=`$ft_devel --cflags`
11136     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
11137 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
11138 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141   ac_check_lib_save_LIBS=$LIBS
11142 LIBS="-lfreetype $FREETYPELIBS $LIBS"
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h.  */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h.  */
11149
11150 /* Override any GCC internal prototype to avoid an error.
11151    Use char because int might match the return type of a GCC
11152    builtin and then its argument prototype would still apply.  */
11153 #ifdef __cplusplus
11154 extern "C"
11155 #endif
11156 char FT_Init_FreeType ();
11157 int
11158 main ()
11159 {
11160 return FT_Init_FreeType ();
11161   ;
11162   return 0;
11163 }
11164 _ACEOF
11165 rm -f conftest.$ac_objext conftest$ac_exeext
11166 if { (ac_try="$ac_link"
11167 case "(($ac_try" in
11168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169   *) ac_try_echo=$ac_try;;
11170 esac
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172   (eval "$ac_link") 2>conftest.er1
11173   ac_status=$?
11174   grep -v '^ *+' conftest.er1 >conftest.err
11175   rm -f conftest.er1
11176   cat conftest.err >&5
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); } && {
11179          test -z "$ac_c_werror_flag" ||
11180          test ! -s conftest.err
11181        } && test -s conftest$ac_exeext &&
11182        $as_test_x conftest$ac_exeext; then
11183   ac_cv_lib_freetype_FT_Init_FreeType=yes
11184 else
11185   echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188         ac_cv_lib_freetype_FT_Init_FreeType=no
11189 fi
11190
11191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11192       conftest$ac_exeext conftest.$ac_ext
11193 LIBS=$ac_check_lib_save_LIBS
11194 fi
11195 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
11196 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
11197 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
11198   ft_lib=yes
11199 else
11200   ft_lib=no
11201 fi
11202
11203     if test "$ft_lib" = "no"
11204     then
11205         wine_cv_msg_freetype=yes
11206         FREETYPELIBS=""
11207         FREETYPEINCL=""
11208     else
11209         ac_save_CPPFLAGS="$CPPFLAGS"
11210         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222 for ac_header in ft2build.h \
11223                          freetype/freetype.h \
11224                          freetype/ftglyph.h \
11225                          freetype/tttables.h \
11226                          freetype/ftnames.h \
11227                          freetype/ftsnames.h \
11228                          freetype/ttnameid.h \
11229                          freetype/ftoutln.h \
11230                          freetype/ftwinfnt.h \
11231                          freetype/ftmodapi.h \
11232                          freetype/internal/sfnt.h
11233 do
11234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238   echo $ECHO_N "(cached) $ECHO_C" >&6
11239 else
11240   cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h.  */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h.  */
11246 #if HAVE_FT2BUILD_H
11247                           #include <ft2build.h>
11248                           #endif
11249
11250 #include <$ac_header>
11251 _ACEOF
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_compile") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } && {
11266          test -z "$ac_c_werror_flag" ||
11267          test ! -s conftest.err
11268        } && test -s conftest.$ac_objext; then
11269   eval "$as_ac_Header=yes"
11270 else
11271   echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11273
11274         eval "$as_ac_Header=no"
11275 fi
11276
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 fi
11279 ac_res=`eval echo '${'$as_ac_Header'}'`
11280                { echo "$as_me:$LINENO: result: $ac_res" >&5
11281 echo "${ECHO_T}$ac_res" >&6; }
11282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11283   cat >>confdefs.h <<_ACEOF
11284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11285 _ACEOF
11286
11287 fi
11288
11289 done
11290
11291         cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h.  */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h.  */
11297 #include <ft2build.h>
11298                     #include <freetype/fttrigon.h>
11299 _ACEOF
11300 if { (ac_try="$ac_cpp conftest.$ac_ext"
11301 case "(($ac_try" in
11302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303   *) ac_try_echo=$ac_try;;
11304 esac
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11307   ac_status=$?
11308   grep -v '^ *+' conftest.er1 >conftest.err
11309   rm -f conftest.er1
11310   cat conftest.err >&5
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); } >/dev/null && {
11313          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11314          test ! -s conftest.err
11315        }; then
11316
11317 cat >>confdefs.h <<\_ACEOF
11318 #define HAVE_FREETYPE_FTTRIGON_H 1
11319 _ACEOF
11320
11321                     wine_cv_fttrigon=yes
11322 else
11323   echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326   wine_cv_fttrigon=no
11327 fi
11328
11329 rm -f conftest.err conftest.$ac_ext
11330         { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
11331 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
11332 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
11333   echo $ECHO_N "(cached) $ECHO_C" >&6
11334 else
11335   cat >conftest.$ac_ext <<_ACEOF
11336 /* confdefs.h.  */
11337 _ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h.  */
11341 #include <freetype/ftmodapi.h>
11342
11343 typedef FT_TrueTypeEngineType ac__type_new_;
11344 int
11345 main ()
11346 {
11347 if ((ac__type_new_ *) 0)
11348   return 0;
11349 if (sizeof (ac__type_new_))
11350   return 0;
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 rm -f conftest.$ac_objext
11356 if { (ac_try="$ac_compile"
11357 case "(($ac_try" in
11358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359   *) ac_try_echo=$ac_try;;
11360 esac
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362   (eval "$ac_compile") 2>conftest.er1
11363   ac_status=$?
11364   grep -v '^ *+' conftest.er1 >conftest.err
11365   rm -f conftest.er1
11366   cat conftest.err >&5
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); } && {
11369          test -z "$ac_c_werror_flag" ||
11370          test ! -s conftest.err
11371        } && test -s conftest.$ac_objext; then
11372   ac_cv_type_FT_TrueTypeEngineType=yes
11373 else
11374   echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11376
11377         ac_cv_type_FT_TrueTypeEngineType=no
11378 fi
11379
11380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11381 fi
11382 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
11383 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
11384 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
11385
11386 cat >>confdefs.h <<_ACEOF
11387 #define HAVE_FT_TRUETYPEENGINETYPE 1
11388 _ACEOF
11389
11390
11391 fi
11392
11393         ac_save_CFLAGS="$CFLAGS"
11394         CFLAGS="$CFLAGS $FREETYPELIBS"
11395
11396 for ac_func in FT_Load_Sfnt_Table
11397 do
11398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11402   echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404   cat >conftest.$ac_ext <<_ACEOF
11405 /* confdefs.h.  */
11406 _ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h.  */
11410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11412 #define $ac_func innocuous_$ac_func
11413
11414 /* System header to define __stub macros and hopefully few prototypes,
11415     which can conflict with char $ac_func (); below.
11416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11417     <limits.h> exists even on freestanding compilers.  */
11418
11419 #ifdef __STDC__
11420 # include <limits.h>
11421 #else
11422 # include <assert.h>
11423 #endif
11424
11425 #undef $ac_func
11426
11427 /* Override any GCC internal prototype to avoid an error.
11428    Use char because int might match the return type of a GCC
11429    builtin and then its argument prototype would still apply.  */
11430 #ifdef __cplusplus
11431 extern "C"
11432 #endif
11433 char $ac_func ();
11434 /* The GNU C library defines this for functions which it implements
11435     to always fail with ENOSYS.  Some functions are actually named
11436     something starting with __ and the normal name is an alias.  */
11437 #if defined __stub_$ac_func || defined __stub___$ac_func
11438 choke me
11439 #endif
11440
11441 int
11442 main ()
11443 {
11444 return $ac_func ();
11445   ;
11446   return 0;
11447 }
11448 _ACEOF
11449 rm -f conftest.$ac_objext conftest$ac_exeext
11450 if { (ac_try="$ac_link"
11451 case "(($ac_try" in
11452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453   *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456   (eval "$ac_link") 2>conftest.er1
11457   ac_status=$?
11458   grep -v '^ *+' conftest.er1 >conftest.err
11459   rm -f conftest.er1
11460   cat conftest.err >&5
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); } && {
11463          test -z "$ac_c_werror_flag" ||
11464          test ! -s conftest.err
11465        } && test -s conftest$ac_exeext &&
11466        $as_test_x conftest$ac_exeext; then
11467   eval "$as_ac_var=yes"
11468 else
11469   echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11471
11472         eval "$as_ac_var=no"
11473 fi
11474
11475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11476       conftest$ac_exeext conftest.$ac_ext
11477 fi
11478 ac_res=`eval echo '${'$as_ac_var'}'`
11479                { echo "$as_me:$LINENO: result: $ac_res" >&5
11480 echo "${ECHO_T}$ac_res" >&6; }
11481 if test `eval echo '${'$as_ac_var'}'` = yes; then
11482   cat >>confdefs.h <<_ACEOF
11483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11484 _ACEOF
11485
11486 fi
11487 done
11488
11489         CFLAGS="$ac_save_CFLAGS"
11490         CPPFLAGS="$ac_save_CPPFLAGS"
11491                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11492         then
11493
11494 cat >>confdefs.h <<\_ACEOF
11495 #define HAVE_FREETYPE 1
11496 _ACEOF
11497
11498             wine_cv_msg_freetype=no
11499         else
11500             FREETYPELIBS=""
11501             FREETYPEINCL=""
11502             wine_cv_msg_freetype=yes
11503         fi
11504     fi
11505 fi
11506
11507 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
11508 then
11509   FONTSSUBDIRS="fonts"
11510
11511 fi
11512
11513 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
11514 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
11515 if test "${ac_cv_c_ppdev+set}" = set; then
11516   echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518   cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h.  */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h.  */
11524 #include <linux/ppdev.h>
11525 int
11526 main ()
11527 {
11528 ioctl (1,PPCLAIM,0)
11529   ;
11530   return 0;
11531 }
11532 _ACEOF
11533 rm -f conftest.$ac_objext
11534 if { (ac_try="$ac_compile"
11535 case "(($ac_try" in
11536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537   *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540   (eval "$ac_compile") 2>conftest.er1
11541   ac_status=$?
11542   grep -v '^ *+' conftest.er1 >conftest.err
11543   rm -f conftest.er1
11544   cat conftest.err >&5
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); } && {
11547          test -z "$ac_c_werror_flag" ||
11548          test ! -s conftest.err
11549        } && test -s conftest.$ac_objext; then
11550   ac_cv_c_ppdev="yes"
11551 else
11552   echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11554
11555         ac_cv_c_ppdev="no"
11556 fi
11557
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559
11560 fi
11561 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
11562 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
11563 if test "$ac_cv_c_ppdev" = "yes"
11564 then
11565
11566 cat >>confdefs.h <<\_ACEOF
11567 #define HAVE_PPDEV 1
11568 _ACEOF
11569
11570 fi
11571
11572 { echo "$as_me:$LINENO: checking for va_copy" >&5
11573 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
11574 if test "${ac_cv_c_va_copy+set}" = set; then
11575   echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11577   cat >conftest.$ac_ext <<_ACEOF
11578 /* confdefs.h.  */
11579 _ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h.  */
11583 #include <stdarg.h>
11584 int
11585 main ()
11586 {
11587 va_list ap1, ap2;
11588     va_copy(ap1,ap2);
11589
11590   ;
11591   return 0;
11592 }
11593 _ACEOF
11594 rm -f conftest.$ac_objext conftest$ac_exeext
11595 if { (ac_try="$ac_link"
11596 case "(($ac_try" in
11597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598   *) ac_try_echo=$ac_try;;
11599 esac
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601   (eval "$ac_link") 2>conftest.er1
11602   ac_status=$?
11603   grep -v '^ *+' conftest.er1 >conftest.err
11604   rm -f conftest.er1
11605   cat conftest.err >&5
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); } && {
11608          test -z "$ac_c_werror_flag" ||
11609          test ! -s conftest.err
11610        } && test -s conftest$ac_exeext &&
11611        $as_test_x conftest$ac_exeext; then
11612   ac_cv_c_va_copy="yes"
11613 else
11614   echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11616
11617         ac_cv_c_va_copy="no"
11618 fi
11619
11620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11621       conftest$ac_exeext conftest.$ac_ext
11622
11623 fi
11624 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
11625 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
11626 if test "$ac_cv_c_va_copy" = "yes"
11627 then
11628
11629 cat >>confdefs.h <<\_ACEOF
11630 #define HAVE_VA_COPY 1
11631 _ACEOF
11632
11633 fi
11634 { echo "$as_me:$LINENO: checking for __va_copy" >&5
11635 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
11636 if test "${ac_cv_c___va_copy+set}" = set; then
11637   echo $ECHO_N "(cached) $ECHO_C" >&6
11638 else
11639   cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h.  */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h.  */
11645 #include <stdarg.h>
11646 int
11647 main ()
11648 {
11649 va_list ap1, ap2;
11650     __va_copy(ap1,ap2);
11651
11652   ;
11653   return 0;
11654 }
11655 _ACEOF
11656 rm -f conftest.$ac_objext conftest$ac_exeext
11657 if { (ac_try="$ac_link"
11658 case "(($ac_try" in
11659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660   *) ac_try_echo=$ac_try;;
11661 esac
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663   (eval "$ac_link") 2>conftest.er1
11664   ac_status=$?
11665   grep -v '^ *+' conftest.er1 >conftest.err
11666   rm -f conftest.er1
11667   cat conftest.err >&5
11668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); } && {
11670          test -z "$ac_c_werror_flag" ||
11671          test ! -s conftest.err
11672        } && test -s conftest$ac_exeext &&
11673        $as_test_x conftest$ac_exeext; then
11674   ac_cv_c___va_copy="yes"
11675 else
11676   echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11678
11679         ac_cv_c___va_copy="no"
11680 fi
11681
11682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11683       conftest$ac_exeext conftest.$ac_ext
11684
11685 fi
11686 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
11687 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
11688 if test "$ac_cv_c___va_copy" = "yes"
11689 then
11690
11691 cat >>confdefs.h <<\_ACEOF
11692 #define HAVE___VA_COPY 1
11693 _ACEOF
11694
11695 fi
11696
11697 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11698 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
11699 if test "${ac_cv_c_sigsetjmp+set}" = set; then
11700   echo $ECHO_N "(cached) $ECHO_C" >&6
11701 else
11702   cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h.  */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h.  */
11708 #include <setjmp.h>
11709 int
11710 main ()
11711 {
11712 sigjmp_buf buf;
11713     sigsetjmp( buf, 1 );
11714     siglongjmp( buf, 1 );
11715   ;
11716   return 0;
11717 }
11718 _ACEOF
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (ac_try="$ac_link"
11721 case "(($ac_try" in
11722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723   *) ac_try_echo=$ac_try;;
11724 esac
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726   (eval "$ac_link") 2>conftest.er1
11727   ac_status=$?
11728   grep -v '^ *+' conftest.er1 >conftest.err
11729   rm -f conftest.er1
11730   cat conftest.err >&5
11731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732   (exit $ac_status); } && {
11733          test -z "$ac_c_werror_flag" ||
11734          test ! -s conftest.err
11735        } && test -s conftest$ac_exeext &&
11736        $as_test_x conftest$ac_exeext; then
11737   ac_cv_c_sigsetjmp="yes"
11738 else
11739   echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742         ac_cv_c_sigsetjmp="no"
11743 fi
11744
11745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11746       conftest$ac_exeext conftest.$ac_ext
11747
11748 fi
11749 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11750 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
11751 if test "$ac_cv_c_sigsetjmp" = "yes"
11752 then
11753
11754 cat >>confdefs.h <<\_ACEOF
11755 #define HAVE_SIGSETJMP 1
11756 _ACEOF
11757
11758 fi
11759
11760 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11761 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
11762 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11763   echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765   cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771 #define _GNU_SOURCE
11772 #include <pthread.h>
11773
11774 typedef pthread_rwlock_t ac__type_new_;
11775 int
11776 main ()
11777 {
11778 if ((ac__type_new_ *) 0)
11779   return 0;
11780 if (sizeof (ac__type_new_))
11781   return 0;
11782   ;
11783   return 0;
11784 }
11785 _ACEOF
11786 rm -f conftest.$ac_objext
11787 if { (ac_try="$ac_compile"
11788 case "(($ac_try" in
11789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790   *) ac_try_echo=$ac_try;;
11791 esac
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793   (eval "$ac_compile") 2>conftest.er1
11794   ac_status=$?
11795   grep -v '^ *+' conftest.er1 >conftest.err
11796   rm -f conftest.er1
11797   cat conftest.err >&5
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); } && {
11800          test -z "$ac_c_werror_flag" ||
11801          test ! -s conftest.err
11802        } && test -s conftest.$ac_objext; then
11803   ac_cv_type_pthread_rwlock_t=yes
11804 else
11805   echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11807
11808         ac_cv_type_pthread_rwlock_t=no
11809 fi
11810
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 fi
11813 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11814 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
11815 if test $ac_cv_type_pthread_rwlock_t = yes; then
11816
11817 cat >>confdefs.h <<_ACEOF
11818 #define HAVE_PTHREAD_RWLOCK_T 1
11819 _ACEOF
11820
11821
11822 fi
11823 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11824 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
11825 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11826   echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828   cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h.  */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h.  */
11834 #define _GNU_SOURCE
11835 #include <pthread.h>
11836
11837 typedef pthread_rwlockattr_t ac__type_new_;
11838 int
11839 main ()
11840 {
11841 if ((ac__type_new_ *) 0)
11842   return 0;
11843 if (sizeof (ac__type_new_))
11844   return 0;
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 rm -f conftest.$ac_objext
11850 if { (ac_try="$ac_compile"
11851 case "(($ac_try" in
11852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853   *) ac_try_echo=$ac_try;;
11854 esac
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856   (eval "$ac_compile") 2>conftest.er1
11857   ac_status=$?
11858   grep -v '^ *+' conftest.er1 >conftest.err
11859   rm -f conftest.er1
11860   cat conftest.err >&5
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); } && {
11863          test -z "$ac_c_werror_flag" ||
11864          test ! -s conftest.err
11865        } && test -s conftest.$ac_objext; then
11866   ac_cv_type_pthread_rwlockattr_t=yes
11867 else
11868   echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871         ac_cv_type_pthread_rwlockattr_t=no
11872 fi
11873
11874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11875 fi
11876 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11877 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
11878 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11879
11880 cat >>confdefs.h <<_ACEOF
11881 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11882 _ACEOF
11883
11884
11885 fi
11886
11887
11888 ac_wine_check_funcs_save_LIBS="$LIBS"
11889 LIBS="$LIBS $LIBPTHREAD"
11890
11891
11892
11893
11894 for ac_func in \
11895         pthread_attr_get_np \
11896         pthread_getattr_np \
11897         pthread_get_stackaddr_np \
11898         pthread_get_stacksize_np
11899 do
11900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11904   echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906   cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h.  */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h.  */
11912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11914 #define $ac_func innocuous_$ac_func
11915
11916 /* System header to define __stub macros and hopefully few prototypes,
11917     which can conflict with char $ac_func (); below.
11918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11919     <limits.h> exists even on freestanding compilers.  */
11920
11921 #ifdef __STDC__
11922 # include <limits.h>
11923 #else
11924 # include <assert.h>
11925 #endif
11926
11927 #undef $ac_func
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 $ac_func ();
11936 /* The GNU C library defines this for functions which it implements
11937     to always fail with ENOSYS.  Some functions are actually named
11938     something starting with __ and the normal name is an alias.  */
11939 #if defined __stub_$ac_func || defined __stub___$ac_func
11940 choke me
11941 #endif
11942
11943 int
11944 main ()
11945 {
11946 return $ac_func ();
11947   ;
11948   return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (ac_try="$ac_link"
11953 case "(($ac_try" in
11954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955   *) ac_try_echo=$ac_try;;
11956 esac
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958   (eval "$ac_link") 2>conftest.er1
11959   ac_status=$?
11960   grep -v '^ *+' conftest.er1 >conftest.err
11961   rm -f conftest.er1
11962   cat conftest.err >&5
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); } && {
11965          test -z "$ac_c_werror_flag" ||
11966          test ! -s conftest.err
11967        } && test -s conftest$ac_exeext &&
11968        $as_test_x conftest$ac_exeext; then
11969   eval "$as_ac_var=yes"
11970 else
11971   echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11973
11974         eval "$as_ac_var=no"
11975 fi
11976
11977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11978       conftest$ac_exeext conftest.$ac_ext
11979 fi
11980 ac_res=`eval echo '${'$as_ac_var'}'`
11981                { echo "$as_me:$LINENO: result: $ac_res" >&5
11982 echo "${ECHO_T}$ac_res" >&6; }
11983 if test `eval echo '${'$as_ac_var'}'` = yes; then
11984   cat >>confdefs.h <<_ACEOF
11985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11986 _ACEOF
11987
11988 fi
11989 done
11990
11991 LIBS="$ac_wine_check_funcs_save_LIBS"
11992
11993 # Extract the first word of "artsc-config", so it can be a program name with args.
11994 set dummy artsc-config; ac_word=$2
11995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11997 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11998   echo $ECHO_N "(cached) $ECHO_C" >&6
11999 else
12000   case $ARTSCCONFIG in
12001   [\\/]* | ?:[\\/]*)
12002   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
12003   ;;
12004   *)
12005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006 for as_dir in $PATH
12007 do
12008   IFS=$as_save_IFS
12009   test -z "$as_dir" && as_dir=.
12010   for ac_exec_ext in '' $ac_executable_extensions; do
12011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12012     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
12013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12014     break 2
12015   fi
12016 done
12017 done
12018 IFS=$as_save_IFS
12019
12020   ;;
12021 esac
12022 fi
12023 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
12024 if test -n "$ARTSCCONFIG"; then
12025   { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
12026 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
12027 else
12028   { echo "$as_me:$LINENO: result: no" >&5
12029 echo "${ECHO_T}no" >&6; }
12030 fi
12031
12032
12033 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
12034 then
12035     ARTSC_CFLAGS=""
12036     for i in `$ARTSCCONFIG --cflags`
12037     do
12038       case "$i" in
12039         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
12040       esac
12041     done
12042     ARTSC_LIBS=""
12043     for i in `$ARTSCCONFIG --libs`
12044     do
12045       case "$i" in
12046         -L/usr/lib|-L/usr/lib64) ;;
12047         -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
12048       esac
12049     done
12050     save_CFLAGS="$CFLAGS"
12051     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
12052     { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
12053 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
12054 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
12055   echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057   ac_check_lib_save_LIBS=$LIBS
12058 LIBS="-lartsc $ARTSC_LIBS $LIBS"
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h.  */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h.  */
12065
12066 /* Override any GCC internal prototype to avoid an error.
12067    Use char because int might match the return type of a GCC
12068    builtin and then its argument prototype would still apply.  */
12069 #ifdef __cplusplus
12070 extern "C"
12071 #endif
12072 char arts_init ();
12073 int
12074 main ()
12075 {
12076 return arts_init ();
12077   ;
12078   return 0;
12079 }
12080 _ACEOF
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (ac_try="$ac_link"
12083 case "(($ac_try" in
12084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085   *) ac_try_echo=$ac_try;;
12086 esac
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088   (eval "$ac_link") 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } && {
12095          test -z "$ac_c_werror_flag" ||
12096          test ! -s conftest.err
12097        } && test -s conftest$ac_exeext &&
12098        $as_test_x conftest$ac_exeext; then
12099   ac_cv_lib_artsc_arts_init=yes
12100 else
12101   echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12103
12104         ac_cv_lib_artsc_arts_init=no
12105 fi
12106
12107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12108       conftest$ac_exeext conftest.$ac_ext
12109 LIBS=$ac_check_lib_save_LIBS
12110 fi
12111 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
12112 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
12113 if test $ac_cv_lib_artsc_arts_init = yes; then
12114   cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h.  */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h.  */
12120 #include <artsc.h>
12121 int
12122 main ()
12123 {
12124 arts_stream_t stream;
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext
12130 if { (ac_try="$ac_compile"
12131 case "(($ac_try" in
12132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133   *) ac_try_echo=$ac_try;;
12134 esac
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136   (eval "$ac_compile") 2>conftest.er1
12137   ac_status=$?
12138   grep -v '^ *+' conftest.er1 >conftest.err
12139   rm -f conftest.er1
12140   cat conftest.err >&5
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); } && {
12143          test -z "$ac_c_werror_flag" ||
12144          test ! -s conftest.err
12145        } && test -s conftest.$ac_objext; then
12146   ARTSLIBS=$ARTSC_LIBS
12147
12148             ARTSINCL=$ARTSC_CFLAGS
12149
12150
12151 cat >>confdefs.h <<\_ACEOF
12152 #define HAVE_ARTS 1
12153 _ACEOF
12154
12155 else
12156   echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12158
12159
12160 fi
12161
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163 fi
12164
12165     CFLAGS="$save_CFLAGS"
12166 fi
12167
12168 # Extract the first word of "esd-config", so it can be a program name with args.
12169 set dummy esd-config; ac_word=$2
12170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12172 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
12173   echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175   case $ESDCONFIG in
12176   [\\/]* | ?:[\\/]*)
12177   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
12178   ;;
12179   *)
12180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181 for as_dir in $PATH
12182 do
12183   IFS=$as_save_IFS
12184   test -z "$as_dir" && as_dir=.
12185   for ac_exec_ext in '' $ac_executable_extensions; do
12186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12187     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12189     break 2
12190   fi
12191 done
12192 done
12193 IFS=$as_save_IFS
12194
12195   ;;
12196 esac
12197 fi
12198 ESDCONFIG=$ac_cv_path_ESDCONFIG
12199 if test -n "$ESDCONFIG"; then
12200   { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
12201 echo "${ECHO_T}$ESDCONFIG" >&6; }
12202 else
12203   { echo "$as_me:$LINENO: result: no" >&5
12204 echo "${ECHO_T}no" >&6; }
12205 fi
12206
12207
12208 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
12209 then
12210     ESD_CFLAGS=""
12211     for i in `$ESDCONFIG --cflags`
12212     do
12213       case "$i" in
12214         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
12215       esac
12216     done
12217     ESD_LIBS=`$ESDCONFIG --libs`
12218     save_CFLAGS="$CFLAGS"
12219     CFLAGS="$CFLAGS $ESD_CFLAGS"
12220     { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
12221 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
12222 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
12223   echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225   ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-lesd  $LIBS"
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h.  */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h.  */
12233
12234 /* Override any GCC internal prototype to avoid an error.
12235    Use char because int might match the return type of a GCC
12236    builtin and then its argument prototype would still apply.  */
12237 #ifdef __cplusplus
12238 extern "C"
12239 #endif
12240 char esd_open_sound ();
12241 int
12242 main ()
12243 {
12244 return esd_open_sound ();
12245   ;
12246   return 0;
12247 }
12248 _ACEOF
12249 rm -f conftest.$ac_objext conftest$ac_exeext
12250 if { (ac_try="$ac_link"
12251 case "(($ac_try" in
12252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253   *) ac_try_echo=$ac_try;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256   (eval "$ac_link") 2>conftest.er1
12257   ac_status=$?
12258   grep -v '^ *+' conftest.er1 >conftest.err
12259   rm -f conftest.er1
12260   cat conftest.err >&5
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); } && {
12263          test -z "$ac_c_werror_flag" ||
12264          test ! -s conftest.err
12265        } && test -s conftest$ac_exeext &&
12266        $as_test_x conftest$ac_exeext; then
12267   ac_cv_lib_esd_esd_open_sound=yes
12268 else
12269   echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12271
12272         ac_cv_lib_esd_esd_open_sound=no
12273 fi
12274
12275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12276       conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12278 fi
12279 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
12280 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
12281 if test $ac_cv_lib_esd_esd_open_sound = yes; then
12282   ESDLIBS=$ESD_LIBS
12283
12284          ESDINCL=$ESD_CFLAGS
12285
12286
12287 cat >>confdefs.h <<\_ACEOF
12288 #define HAVE_ESD 1
12289 _ACEOF
12290
12291 fi
12292
12293     CFLAGS="$save_CFLAGS"
12294 fi
12295
12296 ALSALIBS=""
12297
12298 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12299 then
12300     { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
12301 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
12302 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
12303   echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305   ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-lasound  $LIBS"
12307 cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h.  */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h.  */
12313
12314 /* Override any GCC internal prototype to avoid an error.
12315    Use char because int might match the return type of a GCC
12316    builtin and then its argument prototype would still apply.  */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 char snd_pcm_hw_params_get_access ();
12321 int
12322 main ()
12323 {
12324 return snd_pcm_hw_params_get_access ();
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (ac_try="$ac_link"
12331 case "(($ac_try" in
12332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333   *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336   (eval "$ac_link") 2>conftest.er1
12337   ac_status=$?
12338   grep -v '^ *+' conftest.er1 >conftest.err
12339   rm -f conftest.er1
12340   cat conftest.err >&5
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); } && {
12343          test -z "$ac_c_werror_flag" ||
12344          test ! -s conftest.err
12345        } && test -s conftest$ac_exeext &&
12346        $as_test_x conftest$ac_exeext; then
12347   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
12348 else
12349   echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12351
12352         ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
12353 fi
12354
12355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12356       conftest$ac_exeext conftest.$ac_ext
12357 LIBS=$ac_check_lib_save_LIBS
12358 fi
12359 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
12360 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
12361 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
12362   cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368 #ifdef HAVE_ALSA_ASOUNDLIB_H
12369 #include <alsa/asoundlib.h>
12370 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12371 #include <sys/asoundlib.h>
12372 #endif
12373 int
12374 main ()
12375 {
12376 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
12377   ;
12378   return 0;
12379 }
12380 _ACEOF
12381 rm -f conftest.$ac_objext
12382 if { (ac_try="$ac_compile"
12383 case "(($ac_try" in
12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385   *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388   (eval "$ac_compile") 2>conftest.er1
12389   ac_status=$?
12390   grep -v '^ *+' conftest.er1 >conftest.err
12391   rm -f conftest.er1
12392   cat conftest.err >&5
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } && {
12395          test -z "$ac_c_werror_flag" ||
12396          test ! -s conftest.err
12397        } && test -s conftest.$ac_objext; then
12398
12399 cat >>confdefs.h <<\_ACEOF
12400 #define HAVE_ALSA 1
12401 _ACEOF
12402
12403                          ALSALIBS="-lasound"
12404 else
12405   echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12407
12408
12409 fi
12410
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 fi
12413
12414 fi
12415
12416
12417 AUDIOIOLIBS=""
12418
12419 if test "$ac_cv_header_libaudioio_h" = "yes"
12420 then
12421     { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12422 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
12423 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12424   echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426   ac_check_lib_save_LIBS=$LIBS
12427 LIBS="-laudioio  $LIBS"
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h.  */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h.  */
12434
12435 /* Override any GCC internal prototype to avoid an error.
12436    Use char because int might match the return type of a GCC
12437    builtin and then its argument prototype would still apply.  */
12438 #ifdef __cplusplus
12439 extern "C"
12440 #endif
12441 char AudioIOGetVersion ();
12442 int
12443 main ()
12444 {
12445 return AudioIOGetVersion ();
12446   ;
12447   return 0;
12448 }
12449 _ACEOF
12450 rm -f conftest.$ac_objext conftest$ac_exeext
12451 if { (ac_try="$ac_link"
12452 case "(($ac_try" in
12453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454   *) ac_try_echo=$ac_try;;
12455 esac
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457   (eval "$ac_link") 2>conftest.er1
12458   ac_status=$?
12459   grep -v '^ *+' conftest.er1 >conftest.err
12460   rm -f conftest.er1
12461   cat conftest.err >&5
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); } && {
12464          test -z "$ac_c_werror_flag" ||
12465          test ! -s conftest.err
12466        } && test -s conftest$ac_exeext &&
12467        $as_test_x conftest$ac_exeext; then
12468   ac_cv_lib_audioio_AudioIOGetVersion=yes
12469 else
12470   echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473         ac_cv_lib_audioio_AudioIOGetVersion=no
12474 fi
12475
12476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12477       conftest$ac_exeext conftest.$ac_ext
12478 LIBS=$ac_check_lib_save_LIBS
12479 fi
12480 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12481 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
12482 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12483   AUDIOIOLIBS="-laudioio"
12484
12485 cat >>confdefs.h <<\_ACEOF
12486 #define HAVE_LIBAUDIOIO 1
12487 _ACEOF
12488
12489 fi
12490
12491 fi
12492
12493
12494 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12495 then
12496     { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12497 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
12498 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12499   echo $ECHO_N "(cached) $ECHO_C" >&6
12500 else
12501   ac_check_lib_save_LIBS=$LIBS
12502 LIBS="-lcapi20  $LIBS"
12503 cat >conftest.$ac_ext <<_ACEOF
12504 /* confdefs.h.  */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h.  */
12509
12510 /* Override any GCC internal prototype to avoid an error.
12511    Use char because int might match the return type of a GCC
12512    builtin and then its argument prototype would still apply.  */
12513 #ifdef __cplusplus
12514 extern "C"
12515 #endif
12516 char capi20_register ();
12517 int
12518 main ()
12519 {
12520 return capi20_register ();
12521   ;
12522   return 0;
12523 }
12524 _ACEOF
12525 rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (ac_try="$ac_link"
12527 case "(($ac_try" in
12528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529   *) ac_try_echo=$ac_try;;
12530 esac
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532   (eval "$ac_link") 2>conftest.er1
12533   ac_status=$?
12534   grep -v '^ *+' conftest.er1 >conftest.err
12535   rm -f conftest.er1
12536   cat conftest.err >&5
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); } && {
12539          test -z "$ac_c_werror_flag" ||
12540          test ! -s conftest.err
12541        } && test -s conftest$ac_exeext &&
12542        $as_test_x conftest$ac_exeext; then
12543   ac_cv_lib_capi20_capi20_register=yes
12544 else
12545   echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548         ac_cv_lib_capi20_capi20_register=no
12549 fi
12550
12551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12552       conftest$ac_exeext conftest.$ac_ext
12553 LIBS=$ac_check_lib_save_LIBS
12554 fi
12555 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12556 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
12557 if test $ac_cv_lib_capi20_capi20_register = yes; then
12558
12559 cat >>confdefs.h <<\_ACEOF
12560 #define HAVE_CAPI4LINUX 1
12561 _ACEOF
12562
12563 fi
12564
12565 fi
12566
12567
12568 EXTRACFLAGS=""
12569
12570 if test "x${GCC}" = "xyes"
12571 then
12572   EXTRACFLAGS="-Wall -pipe"
12573
12574     { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12575 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
12576 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12577   echo $ECHO_N "(cached) $ECHO_C" >&6
12578 else
12579   if test "$cross_compiling" = yes; then
12580   ac_cv_c_gcc_strength_bug="yes"
12581 else
12582   cat >conftest.$ac_ext <<_ACEOF
12583 /* confdefs.h.  */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h.  */
12588
12589 int     L[4] = {0,1,2,3};
12590 int main(void) {
12591   static int Array[3];
12592   unsigned int B = 3;
12593   int i;
12594   for(i=0; i<B; i++) Array[i] = i - 3;
12595   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12596   L[i] = 4;
12597
12598   exit( Array[1] != -2 || L[2] != 3);
12599 }
12600 _ACEOF
12601 rm -f conftest$ac_exeext
12602 if { (ac_try="$ac_link"
12603 case "(($ac_try" in
12604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605   *) ac_try_echo=$ac_try;;
12606 esac
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608   (eval "$ac_link") 2>&5
12609   ac_status=$?
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12612   { (case "(($ac_try" in
12613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614   *) ac_try_echo=$ac_try;;
12615 esac
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617   (eval "$ac_try") 2>&5
12618   ac_status=$?
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); }; }; then
12621   ac_cv_c_gcc_strength_bug="no"
12622 else
12623   echo "$as_me: program exited with status $ac_status" >&5
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12626
12627 ( exit $ac_status )
12628 ac_cv_c_gcc_strength_bug="yes"
12629 fi
12630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12631 fi
12632
12633
12634 fi
12635 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12636 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
12637   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12638   then
12639     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12640   fi
12641
12642
12643   { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
12644 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
12645 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
12646   echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648   ac_wine_try_cflags_saved=$CFLAGS
12649 CFLAGS="$CFLAGS -fshort-wchar"
12650 cat >conftest.$ac_ext <<_ACEOF
12651 /* confdefs.h.  */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h.  */
12656
12657 int
12658 main ()
12659 {
12660
12661   ;
12662   return 0;
12663 }
12664 _ACEOF
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (ac_try="$ac_link"
12667 case "(($ac_try" in
12668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669   *) ac_try_echo=$ac_try;;
12670 esac
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672   (eval "$ac_link") 2>conftest.er1
12673   ac_status=$?
12674   grep -v '^ *+' conftest.er1 >conftest.err
12675   rm -f conftest.er1
12676   cat conftest.err >&5
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); } && {
12679          test -z "$ac_c_werror_flag" ||
12680          test ! -s conftest.err
12681        } && test -s conftest$ac_exeext &&
12682        $as_test_x conftest$ac_exeext; then
12683   ac_cv_cflags__fshort_wchar=yes
12684 else
12685   echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12687
12688         ac_cv_cflags__fshort_wchar=no
12689 fi
12690
12691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12692       conftest$ac_exeext conftest.$ac_ext
12693 CFLAGS=$ac_wine_try_cflags_saved
12694 fi
12695 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
12696 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
12697 if test $ac_cv_cflags__fshort_wchar = yes; then
12698
12699 cat >>confdefs.h <<\_ACEOF
12700 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12701 _ACEOF
12702
12703 fi
12704
12705   { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
12706 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
12707 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
12708   echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710   ac_wine_try_cflags_saved=$CFLAGS
12711 CFLAGS="$CFLAGS -fno-strict-aliasing"
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h.  */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h.  */
12718
12719 int
12720 main ()
12721 {
12722
12723   ;
12724   return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (ac_try="$ac_link"
12729 case "(($ac_try" in
12730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731   *) ac_try_echo=$ac_try;;
12732 esac
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734   (eval "$ac_link") 2>conftest.er1
12735   ac_status=$?
12736   grep -v '^ *+' conftest.er1 >conftest.err
12737   rm -f conftest.er1
12738   cat conftest.err >&5
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); } && {
12741          test -z "$ac_c_werror_flag" ||
12742          test ! -s conftest.err
12743        } && test -s conftest$ac_exeext &&
12744        $as_test_x conftest$ac_exeext; then
12745   ac_cv_cflags__fno_strict_aliasing=yes
12746 else
12747   echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12749
12750         ac_cv_cflags__fno_strict_aliasing=no
12751 fi
12752
12753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12754       conftest$ac_exeext conftest.$ac_ext
12755 CFLAGS=$ac_wine_try_cflags_saved
12756 fi
12757 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12758 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
12759 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
12760   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12761 fi
12762
12763   { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12764 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
12765 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
12766   echo $ECHO_N "(cached) $ECHO_C" >&6
12767 else
12768   ac_wine_try_cflags_saved=$CFLAGS
12769 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h.  */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h.  */
12776
12777 int
12778 main ()
12779 {
12780
12781   ;
12782   return 0;
12783 }
12784 _ACEOF
12785 rm -f conftest.$ac_objext conftest$ac_exeext
12786 if { (ac_try="$ac_link"
12787 case "(($ac_try" in
12788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789   *) ac_try_echo=$ac_try;;
12790 esac
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792   (eval "$ac_link") 2>conftest.er1
12793   ac_status=$?
12794   grep -v '^ *+' conftest.er1 >conftest.err
12795   rm -f conftest.er1
12796   cat conftest.err >&5
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); } && {
12799          test -z "$ac_c_werror_flag" ||
12800          test ! -s conftest.err
12801        } && test -s conftest$ac_exeext &&
12802        $as_test_x conftest$ac_exeext; then
12803   ac_cv_cflags__Wdeclaration_after_statement=yes
12804 else
12805   echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12807
12808         ac_cv_cflags__Wdeclaration_after_statement=no
12809 fi
12810
12811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12812       conftest$ac_exeext conftest.$ac_ext
12813 CFLAGS=$ac_wine_try_cflags_saved
12814 fi
12815 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12816 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12817 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
12818   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12819 fi
12820
12821   { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
12822 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
12823 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826   ac_wine_try_cflags_saved=$CFLAGS
12827 CFLAGS="$CFLAGS -Wwrite-strings"
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h.  */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h.  */
12834
12835 int
12836 main ()
12837 {
12838
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 rm -f conftest.$ac_objext conftest$ac_exeext
12844 if { (ac_try="$ac_link"
12845 case "(($ac_try" in
12846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847   *) ac_try_echo=$ac_try;;
12848 esac
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850   (eval "$ac_link") 2>conftest.er1
12851   ac_status=$?
12852   grep -v '^ *+' conftest.er1 >conftest.err
12853   rm -f conftest.er1
12854   cat conftest.err >&5
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); } && {
12857          test -z "$ac_c_werror_flag" ||
12858          test ! -s conftest.err
12859        } && test -s conftest$ac_exeext &&
12860        $as_test_x conftest$ac_exeext; then
12861   ac_cv_cflags__Wwrite_strings=yes
12862 else
12863   echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866         ac_cv_cflags__Wwrite_strings=no
12867 fi
12868
12869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12870       conftest$ac_exeext conftest.$ac_ext
12871 CFLAGS=$ac_wine_try_cflags_saved
12872 fi
12873 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
12874 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
12875 if test $ac_cv_cflags__Wwrite_strings = yes; then
12876   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12877 fi
12878
12879
12880     saved_CFLAGS="$CFLAGS"
12881   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12882   { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12883 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
12884 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12885   echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887   cat >conftest.$ac_ext <<_ACEOF
12888 /* confdefs.h.  */
12889 _ACEOF
12890 cat confdefs.h >>conftest.$ac_ext
12891 cat >>conftest.$ac_ext <<_ACEOF
12892 /* end confdefs.h.  */
12893 #include <string.h>
12894 int
12895 main ()
12896 {
12897
12898   ;
12899   return 0;
12900 }
12901 _ACEOF
12902 rm -f conftest.$ac_objext
12903 if { (ac_try="$ac_compile"
12904 case "(($ac_try" in
12905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906   *) ac_try_echo=$ac_try;;
12907 esac
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909   (eval "$ac_compile") 2>conftest.er1
12910   ac_status=$?
12911   grep -v '^ *+' conftest.er1 >conftest.err
12912   rm -f conftest.er1
12913   cat conftest.err >&5
12914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915   (exit $ac_status); } && {
12916          test -z "$ac_c_werror_flag" ||
12917          test ! -s conftest.err
12918        } && test -s conftest.$ac_objext; then
12919   ac_cv_c_string_h_warnings=no
12920 else
12921   echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12923
12924         ac_cv_c_string_h_warnings=yes
12925 fi
12926
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12928 fi
12929 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12930 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
12931   CFLAGS="$saved_CFLAGS"
12932   if test "$ac_cv_c_string_h_warnings" = "no"
12933   then
12934     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12935   fi
12936
12937   BUILTINFLAG=""
12938
12939   saved_CFLAGS="$CFLAGS"
12940   CFLAGS="$CFLAGS -Werror"
12941   { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
12942 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
12943 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
12944   echo $ECHO_N "(cached) $ECHO_C" >&6
12945 else
12946   cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h.  */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h.  */
12952
12953 int
12954 main ()
12955 {
12956 int iswlower(unsigned short);
12957   ;
12958   return 0;
12959 }
12960 _ACEOF
12961 rm -f conftest.$ac_objext
12962 if { (ac_try="$ac_compile"
12963 case "(($ac_try" in
12964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965   *) ac_try_echo=$ac_try;;
12966 esac
12967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968   (eval "$ac_compile") 2>conftest.er1
12969   ac_status=$?
12970   grep -v '^ *+' conftest.er1 >conftest.err
12971   rm -f conftest.er1
12972   cat conftest.err >&5
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); } && {
12975          test -z "$ac_c_werror_flag" ||
12976          test ! -s conftest.err
12977        } && test -s conftest.$ac_objext; then
12978   ac_cv_c_builtin_wchar_ctype=no
12979 else
12980   echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12982
12983         ac_cv_c_builtin_wchar_ctype=yes
12984 fi
12985
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 fi
12988 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
12989 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
12990   CFLAGS="$saved_CFLAGS"
12991   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
12992   then
12993     BUILTINFLAG="-fno-builtin"
12994   fi
12995 fi
12996
12997
12998 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12999 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
13000 if test "${ac_cv_asm_func_def+set}" = set; then
13001   echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003   cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h.  */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h.  */
13009 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
13010
13011 int
13012 main ()
13013 {
13014
13015   ;
13016   return 0;
13017 }
13018 _ACEOF
13019 rm -f conftest.$ac_objext conftest$ac_exeext
13020 if { (ac_try="$ac_link"
13021 case "(($ac_try" in
13022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023   *) ac_try_echo=$ac_try;;
13024 esac
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026   (eval "$ac_link") 2>conftest.er1
13027   ac_status=$?
13028   grep -v '^ *+' conftest.er1 >conftest.err
13029   rm -f conftest.er1
13030   cat conftest.err >&5
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); } && {
13033          test -z "$ac_c_werror_flag" ||
13034          test ! -s conftest.err
13035        } && test -s conftest$ac_exeext &&
13036        $as_test_x conftest$ac_exeext; then
13037   ac_cv_asm_func_def=".def"
13038 else
13039   echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13041
13042         cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h.  */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h.  */
13048 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
13049
13050 int
13051 main ()
13052 {
13053
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (ac_try="$ac_link"
13060 case "(($ac_try" in
13061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062   *) ac_try_echo=$ac_try;;
13063 esac
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065   (eval "$ac_link") 2>conftest.er1
13066   ac_status=$?
13067   grep -v '^ *+' conftest.er1 >conftest.err
13068   rm -f conftest.er1
13069   cat conftest.err >&5
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); } && {
13072          test -z "$ac_c_werror_flag" ||
13073          test ! -s conftest.err
13074        } && test -s conftest$ac_exeext &&
13075        $as_test_x conftest$ac_exeext; then
13076   ac_cv_asm_func_def=".type @function"
13077 else
13078   echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13080
13081         cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
13088
13089 int
13090 main ()
13091 {
13092
13093   ;
13094   return 0;
13095 }
13096 _ACEOF
13097 rm -f conftest.$ac_objext conftest$ac_exeext
13098 if { (ac_try="$ac_link"
13099 case "(($ac_try" in
13100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101   *) ac_try_echo=$ac_try;;
13102 esac
13103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104   (eval "$ac_link") 2>conftest.er1
13105   ac_status=$?
13106   grep -v '^ *+' conftest.er1 >conftest.err
13107   rm -f conftest.er1
13108   cat conftest.err >&5
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); } && {
13111          test -z "$ac_c_werror_flag" ||
13112          test ! -s conftest.err
13113        } && test -s conftest$ac_exeext &&
13114        $as_test_x conftest$ac_exeext; then
13115   ac_cv_asm_func_def=".type 2"
13116 else
13117   echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13119
13120         ac_cv_asm_func_def="unknown"
13121 fi
13122
13123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13124       conftest$ac_exeext conftest.$ac_ext
13125 fi
13126
13127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13128       conftest$ac_exeext conftest.$ac_ext
13129 fi
13130
13131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13132       conftest$ac_exeext conftest.$ac_ext
13133 fi
13134 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13135 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
13136
13137
13138
13139 case "$ac_cv_asm_func_def" in
13140   ".def")
13141      cat >>confdefs.h <<\_ACEOF
13142 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13143 _ACEOF
13144  ;;
13145   ".type @function")
13146      cat >>confdefs.h <<\_ACEOF
13147 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13148 _ACEOF
13149  ;;
13150   ".type 2")
13151      cat >>confdefs.h <<\_ACEOF
13152 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13153 _ACEOF
13154  ;;
13155   *)
13156      cat >>confdefs.h <<\_ACEOF
13157 #define __ASM_FUNC(name) ""
13158 _ACEOF
13159  ;;
13160 esac
13161
13162
13163 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13164 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
13165 if test "${ac_cv_c_extern_prefix+set}" = set; then
13166   echo $ECHO_N "(cached) $ECHO_C" >&6
13167 else
13168   cat >conftest.$ac_ext <<_ACEOF
13169 /* confdefs.h.  */
13170 _ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h.  */
13174 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13175 extern int ac_test;
13176 int
13177 main ()
13178 {
13179 if (ac_test) return 1
13180   ;
13181   return 0;
13182 }
13183 _ACEOF
13184 rm -f conftest.$ac_objext conftest$ac_exeext
13185 if { (ac_try="$ac_link"
13186 case "(($ac_try" in
13187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188   *) ac_try_echo=$ac_try;;
13189 esac
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191   (eval "$ac_link") 2>conftest.er1
13192   ac_status=$?
13193   grep -v '^ *+' conftest.er1 >conftest.err
13194   rm -f conftest.er1
13195   cat conftest.err >&5
13196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197   (exit $ac_status); } && {
13198          test -z "$ac_c_werror_flag" ||
13199          test ! -s conftest.err
13200        } && test -s conftest$ac_exeext &&
13201        $as_test_x conftest$ac_exeext; then
13202   ac_cv_c_extern_prefix="yes"
13203 else
13204   echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13206
13207         ac_cv_c_extern_prefix="no"
13208 fi
13209
13210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13211       conftest$ac_exeext conftest.$ac_ext
13212 fi
13213 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13214 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
13215
13216
13217
13218 if test "$ac_cv_c_extern_prefix" = "yes"
13219 then
13220   cat >>confdefs.h <<\_ACEOF
13221 #define __ASM_NAME(name) "_" name
13222 _ACEOF
13223
13224 else
13225   cat >>confdefs.h <<\_ACEOF
13226 #define __ASM_NAME(name) name
13227 _ACEOF
13228
13229 fi
13230
13231
13232 DLLEXT=""
13233
13234 DLLFLAGS="-D_REENTRANT"
13235
13236 LDSHARED=""
13237
13238 LDDLLFLAGS=""
13239
13240 LIBEXT="so"
13241
13242 IMPLIBEXT="def"
13243
13244 LIBWINE_LDFLAGS=""
13245
13246
13247 case $host_os in
13248   cygwin*|mingw32*)
13249     if test -n "$ac_tool_prefix"; then
13250   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13251 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13254 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13255   echo $ECHO_N "(cached) $ECHO_C" >&6
13256 else
13257   if test -n "$DLLTOOL"; then
13258   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13259 else
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13262 do
13263   IFS=$as_save_IFS
13264   test -z "$as_dir" && as_dir=.
13265   for ac_exec_ext in '' $ac_executable_extensions; do
13266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13267     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13269     break 2
13270   fi
13271 done
13272 done
13273 IFS=$as_save_IFS
13274
13275 fi
13276 fi
13277 DLLTOOL=$ac_cv_prog_DLLTOOL
13278 if test -n "$DLLTOOL"; then
13279   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13280 echo "${ECHO_T}$DLLTOOL" >&6; }
13281 else
13282   { echo "$as_me:$LINENO: result: no" >&5
13283 echo "${ECHO_T}no" >&6; }
13284 fi
13285
13286
13287 fi
13288 if test -z "$ac_cv_prog_DLLTOOL"; then
13289   ac_ct_DLLTOOL=$DLLTOOL
13290   # Extract the first word of "dlltool", so it can be a program name with args.
13291 set dummy dlltool; ac_word=$2
13292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13294 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13295   echo $ECHO_N "(cached) $ECHO_C" >&6
13296 else
13297   if test -n "$ac_ct_DLLTOOL"; then
13298   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13299 else
13300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301 for as_dir in $PATH
13302 do
13303   IFS=$as_save_IFS
13304   test -z "$as_dir" && as_dir=.
13305   for ac_exec_ext in '' $ac_executable_extensions; do
13306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13307     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13309     break 2
13310   fi
13311 done
13312 done
13313 IFS=$as_save_IFS
13314
13315 fi
13316 fi
13317 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13318 if test -n "$ac_ct_DLLTOOL"; then
13319   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13320 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
13321 else
13322   { echo "$as_me:$LINENO: result: no" >&5
13323 echo "${ECHO_T}no" >&6; }
13324 fi
13325
13326   if test "x$ac_ct_DLLTOOL" = x; then
13327     DLLTOOL="false"
13328   else
13329     case $cross_compiling:$ac_tool_warned in
13330 yes:)
13331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13332 whose name does not start with the host triplet.  If you think this
13333 configuration is useful to you, please write to autoconf@gnu.org." >&5
13334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13335 whose name does not start with the host triplet.  If you think this
13336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13337 ac_tool_warned=yes ;;
13338 esac
13339     DLLTOOL=$ac_ct_DLLTOOL
13340   fi
13341 else
13342   DLLTOOL="$ac_cv_prog_DLLTOOL"
13343 fi
13344
13345     if test -n "$ac_tool_prefix"; then
13346   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13347 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13350 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13351   echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353   if test -n "$DLLWRAP"; then
13354   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13355 else
13356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13357 for as_dir in $PATH
13358 do
13359   IFS=$as_save_IFS
13360   test -z "$as_dir" && as_dir=.
13361   for ac_exec_ext in '' $ac_executable_extensions; do
13362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13363     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13365     break 2
13366   fi
13367 done
13368 done
13369 IFS=$as_save_IFS
13370
13371 fi
13372 fi
13373 DLLWRAP=$ac_cv_prog_DLLWRAP
13374 if test -n "$DLLWRAP"; then
13375   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13376 echo "${ECHO_T}$DLLWRAP" >&6; }
13377 else
13378   { echo "$as_me:$LINENO: result: no" >&5
13379 echo "${ECHO_T}no" >&6; }
13380 fi
13381
13382
13383 fi
13384 if test -z "$ac_cv_prog_DLLWRAP"; then
13385   ac_ct_DLLWRAP=$DLLWRAP
13386   # Extract the first word of "dllwrap", so it can be a program name with args.
13387 set dummy dllwrap; ac_word=$2
13388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13390 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13391   echo $ECHO_N "(cached) $ECHO_C" >&6
13392 else
13393   if test -n "$ac_ct_DLLWRAP"; then
13394   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13395 else
13396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397 for as_dir in $PATH
13398 do
13399   IFS=$as_save_IFS
13400   test -z "$as_dir" && as_dir=.
13401   for ac_exec_ext in '' $ac_executable_extensions; do
13402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13403     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13405     break 2
13406   fi
13407 done
13408 done
13409 IFS=$as_save_IFS
13410
13411 fi
13412 fi
13413 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13414 if test -n "$ac_ct_DLLWRAP"; then
13415   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13416 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
13417 else
13418   { echo "$as_me:$LINENO: result: no" >&5
13419 echo "${ECHO_T}no" >&6; }
13420 fi
13421
13422   if test "x$ac_ct_DLLWRAP" = x; then
13423     DLLWRAP="false"
13424   else
13425     case $cross_compiling:$ac_tool_warned in
13426 yes:)
13427 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13428 whose name does not start with the host triplet.  If you think this
13429 configuration is useful to you, please write to autoconf@gnu.org." >&5
13430 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13431 whose name does not start with the host triplet.  If you think this
13432 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13433 ac_tool_warned=yes ;;
13434 esac
13435     DLLWRAP=$ac_ct_DLLWRAP
13436   fi
13437 else
13438   DLLWRAP="$ac_cv_prog_DLLWRAP"
13439 fi
13440
13441     if test -n "$ac_tool_prefix"; then
13442   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13443 set dummy ${ac_tool_prefix}ar; ac_word=$2
13444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13446 if test "${ac_cv_prog_MINGWAR+set}" = set; then
13447   echo $ECHO_N "(cached) $ECHO_C" >&6
13448 else
13449   if test -n "$MINGWAR"; then
13450   ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
13451 else
13452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453 for as_dir in $PATH
13454 do
13455   IFS=$as_save_IFS
13456   test -z "$as_dir" && as_dir=.
13457   for ac_exec_ext in '' $ac_executable_extensions; do
13458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13459     ac_cv_prog_MINGWAR="${ac_tool_prefix}ar"
13460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13461     break 2
13462   fi
13463 done
13464 done
13465 IFS=$as_save_IFS
13466
13467 fi
13468 fi
13469 MINGWAR=$ac_cv_prog_MINGWAR
13470 if test -n "$MINGWAR"; then
13471   { echo "$as_me:$LINENO: result: $MINGWAR" >&5
13472 echo "${ECHO_T}$MINGWAR" >&6; }
13473 else
13474   { echo "$as_me:$LINENO: result: no" >&5
13475 echo "${ECHO_T}no" >&6; }
13476 fi
13477
13478
13479 fi
13480 if test -z "$ac_cv_prog_MINGWAR"; then
13481   ac_ct_MINGWAR=$MINGWAR
13482   # Extract the first word of "ar", so it can be a program name with args.
13483 set dummy ar; ac_word=$2
13484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13486 if test "${ac_cv_prog_ac_ct_MINGWAR+set}" = set; then
13487   echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489   if test -n "$ac_ct_MINGWAR"; then
13490   ac_cv_prog_ac_ct_MINGWAR="$ac_ct_MINGWAR" # Let the user override the test.
13491 else
13492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493 for as_dir in $PATH
13494 do
13495   IFS=$as_save_IFS
13496   test -z "$as_dir" && as_dir=.
13497   for ac_exec_ext in '' $ac_executable_extensions; do
13498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13499     ac_cv_prog_ac_ct_MINGWAR="ar"
13500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13501     break 2
13502   fi
13503 done
13504 done
13505 IFS=$as_save_IFS
13506
13507 fi
13508 fi
13509 ac_ct_MINGWAR=$ac_cv_prog_ac_ct_MINGWAR
13510 if test -n "$ac_ct_MINGWAR"; then
13511   { echo "$as_me:$LINENO: result: $ac_ct_MINGWAR" >&5
13512 echo "${ECHO_T}$ac_ct_MINGWAR" >&6; }
13513 else
13514   { echo "$as_me:$LINENO: result: no" >&5
13515 echo "${ECHO_T}no" >&6; }
13516 fi
13517
13518   if test "x$ac_ct_MINGWAR" = x; then
13519     MINGWAR="false"
13520   else
13521     case $cross_compiling:$ac_tool_warned in
13522 yes:)
13523 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13524 whose name does not start with the host triplet.  If you think this
13525 configuration is useful to you, please write to autoconf@gnu.org." >&5
13526 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13527 whose name does not start with the host triplet.  If you think this
13528 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13529 ac_tool_warned=yes ;;
13530 esac
13531     MINGWAR=$ac_ct_MINGWAR
13532   fi
13533 else
13534   MINGWAR="$ac_cv_prog_MINGWAR"
13535 fi
13536
13537     if test "$DLLWRAP" = "false"; then
13538       LIBEXT="a"
13539     else
13540             LIBEXT="dll"
13541     fi
13542     IMPLIBEXT="a"
13543         WIN16_FILES=""
13544     WIN16_INSTALL=""
13545     ;;
13546   darwin*|macosx*)
13547     DLLEXT=".so"
13548     LIBEXT="dylib"
13549     DLLFLAGS="$DLLFLAGS -fPIC"
13550     LDDLLFLAGS="-bundle -multiply_defined suppress"
13551     LIBWINE_LDFLAGS="-multiply_defined suppress"
13552     LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
13553     STRIP="$STRIP -u -r"
13554         COREFOUNDATIONLIB="-framework CoreFoundation"
13555
13556     IOKITLIB="-framework IOKit -framework CoreFoundation"
13557
13558     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
13559
13560     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
13561     then
13562                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
13563
13564     fi
13565     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
13566     then
13567                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
13568
13569     fi
13570     case $host_cpu in
13571       *powerpc*)
13572         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
13573     esac
13574         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
13575     then
13576         CARBONLIB="-framework Carbon"
13577
13578         QUARTZFILES='$(QUARTZFILES)'
13579     fi
13580     ;;
13581   *)
13582     DLLFLAGS="$DLLFLAGS -fPIC"
13583     DLLEXT=".so"
13584     { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13585 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
13586 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13587   echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589   ac_wine_try_cflags_saved=$CFLAGS
13590 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
13591 cat >conftest.$ac_ext <<_ACEOF
13592 void myfunc() {}
13593 _ACEOF
13594 rm -f conftest.$ac_objext conftest$ac_exeext
13595 if { (ac_try="$ac_link"
13596 case "(($ac_try" in
13597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598   *) ac_try_echo=$ac_try;;
13599 esac
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601   (eval "$ac_link") 2>conftest.er1
13602   ac_status=$?
13603   grep -v '^ *+' conftest.er1 >conftest.err
13604   rm -f conftest.er1
13605   cat conftest.err >&5
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); } && {
13608          test -z "$ac_c_werror_flag" ||
13609          test ! -s conftest.err
13610        } && test -s conftest$ac_exeext &&
13611        $as_test_x conftest$ac_exeext; then
13612   ac_cv_c_dll_gnuelf="yes"
13613 else
13614   echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13616
13617         ac_cv_c_dll_gnuelf="no"
13618 fi
13619
13620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13621       conftest$ac_exeext conftest.$ac_ext
13622 CFLAGS=$ac_wine_try_cflags_saved
13623 fi
13624 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13625 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
13626     if test "$ac_cv_c_dll_gnuelf" = "yes"
13627     then
13628       LDSHARED="\$(CC) -shared"
13629       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13630       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
13631 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
13632 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
13633   echo $ECHO_N "(cached) $ECHO_C" >&6
13634 else
13635   ac_wine_try_cflags_saved=$CFLAGS
13636 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
13637 cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h.  */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h.  */
13643
13644 int
13645 main ()
13646 {
13647
13648   ;
13649   return 0;
13650 }
13651 _ACEOF
13652 rm -f conftest.$ac_objext conftest$ac_exeext
13653 if { (ac_try="$ac_link"
13654 case "(($ac_try" in
13655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656   *) ac_try_echo=$ac_try;;
13657 esac
13658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659   (eval "$ac_link") 2>conftest.er1
13660   ac_status=$?
13661   grep -v '^ *+' conftest.er1 >conftest.err
13662   rm -f conftest.er1
13663   cat conftest.err >&5
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); } && {
13666          test -z "$ac_c_werror_flag" ||
13667          test ! -s conftest.err
13668        } && test -s conftest$ac_exeext &&
13669        $as_test_x conftest$ac_exeext; then
13670   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
13671 else
13672   echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13674
13675         ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
13676 fi
13677
13678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13679       conftest$ac_exeext conftest.$ac_ext
13680 CFLAGS=$ac_wine_try_cflags_saved
13681 fi
13682 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
13683 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
13684 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
13685   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13686 else
13687   { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
13688 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
13689 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
13690   echo $ECHO_N "(cached) $ECHO_C" >&6
13691 else
13692   ac_wine_try_cflags_saved=$CFLAGS
13693 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
13694 cat >conftest.$ac_ext <<_ACEOF
13695 /* confdefs.h.  */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h.  */
13700
13701 int
13702 main ()
13703 {
13704
13705   ;
13706   return 0;
13707 }
13708 _ACEOF
13709 rm -f conftest.$ac_objext conftest$ac_exeext
13710 if { (ac_try="$ac_link"
13711 case "(($ac_try" in
13712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713   *) ac_try_echo=$ac_try;;
13714 esac
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716   (eval "$ac_link") 2>conftest.er1
13717   ac_status=$?
13718   grep -v '^ *+' conftest.er1 >conftest.err
13719   rm -f conftest.er1
13720   cat conftest.err >&5
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); } && {
13723          test -z "$ac_c_werror_flag" ||
13724          test ! -s conftest.err
13725        } && test -s conftest$ac_exeext &&
13726        $as_test_x conftest$ac_exeext; then
13727   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
13728 else
13729   echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13731
13732         ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
13733 fi
13734
13735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13736       conftest$ac_exeext conftest.$ac_ext
13737 CFLAGS=$ac_wine_try_cflags_saved
13738 fi
13739 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
13740 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
13741 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
13742   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
13743 fi
13744
13745 fi
13746
13747
13748       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
13749 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
13750 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
13751   echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753   ac_wine_try_cflags_saved=$CFLAGS
13754 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h.  */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h.  */
13761
13762 int
13763 main ()
13764 {
13765
13766   ;
13767   return 0;
13768 }
13769 _ACEOF
13770 rm -f conftest.$ac_objext conftest$ac_exeext
13771 if { (ac_try="$ac_link"
13772 case "(($ac_try" in
13773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774   *) ac_try_echo=$ac_try;;
13775 esac
13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777   (eval "$ac_link") 2>conftest.er1
13778   ac_status=$?
13779   grep -v '^ *+' conftest.er1 >conftest.err
13780   rm -f conftest.er1
13781   cat conftest.err >&5
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); } && {
13784          test -z "$ac_c_werror_flag" ||
13785          test ! -s conftest.err
13786        } && test -s conftest$ac_exeext &&
13787        $as_test_x conftest$ac_exeext; then
13788   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
13789 else
13790   echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13792
13793         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
13794 fi
13795
13796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13797       conftest$ac_exeext conftest.$ac_ext
13798 CFLAGS=$ac_wine_try_cflags_saved
13799 fi
13800 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
13801 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
13802 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
13803   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13804 fi
13805
13806
13807       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
13808 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
13809 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
13810   echo $ECHO_N "(cached) $ECHO_C" >&6
13811 else
13812   ac_wine_try_cflags_saved=$CFLAGS
13813 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13814 cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h.  */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h.  */
13820
13821 int
13822 main ()
13823 {
13824
13825   ;
13826   return 0;
13827 }
13828 _ACEOF
13829 rm -f conftest.$ac_objext conftest$ac_exeext
13830 if { (ac_try="$ac_link"
13831 case "(($ac_try" in
13832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833   *) ac_try_echo=$ac_try;;
13834 esac
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836   (eval "$ac_link") 2>conftest.er1
13837   ac_status=$?
13838   grep -v '^ *+' conftest.er1 >conftest.err
13839   rm -f conftest.er1
13840   cat conftest.err >&5
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); } && {
13843          test -z "$ac_c_werror_flag" ||
13844          test ! -s conftest.err
13845        } && test -s conftest$ac_exeext &&
13846        $as_test_x conftest$ac_exeext; then
13847   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
13848 else
13849   echo "$as_me: failed program was:" >&5
13850 sed 's/^/| /' conftest.$ac_ext >&5
13851
13852         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
13853 fi
13854
13855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13856       conftest$ac_exeext conftest.$ac_ext
13857 CFLAGS=$ac_wine_try_cflags_saved
13858 fi
13859 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
13860 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
13861 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
13862   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13863 fi
13864
13865
13866       echo '{ global: *; };' >conftest.map
13867       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
13868 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
13869 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
13870   echo $ECHO_N "(cached) $ECHO_C" >&6
13871 else
13872   ac_wine_try_cflags_saved=$CFLAGS
13873 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13874 cat >conftest.$ac_ext <<_ACEOF
13875 /* confdefs.h.  */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h.  */
13880
13881 int
13882 main ()
13883 {
13884
13885   ;
13886   return 0;
13887 }
13888 _ACEOF
13889 rm -f conftest.$ac_objext conftest$ac_exeext
13890 if { (ac_try="$ac_link"
13891 case "(($ac_try" in
13892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893   *) ac_try_echo=$ac_try;;
13894 esac
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896   (eval "$ac_link") 2>conftest.er1
13897   ac_status=$?
13898   grep -v '^ *+' conftest.er1 >conftest.err
13899   rm -f conftest.er1
13900   cat conftest.err >&5
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); } && {
13903          test -z "$ac_c_werror_flag" ||
13904          test ! -s conftest.err
13905        } && test -s conftest$ac_exeext &&
13906        $as_test_x conftest$ac_exeext; then
13907   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912         ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
13913 fi
13914
13915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13916       conftest$ac_exeext conftest.$ac_ext
13917 CFLAGS=$ac_wine_try_cflags_saved
13918 fi
13919 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
13920 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
13921 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
13922   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13923 fi
13924
13925       rm -f conftest.map
13926
13927       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
13928 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
13929 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
13930   echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932   ac_wine_try_cflags_saved=$CFLAGS
13933 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13934 cat >conftest.$ac_ext <<_ACEOF
13935 /* confdefs.h.  */
13936 _ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h.  */
13940
13941 int
13942 main ()
13943 {
13944
13945   ;
13946   return 0;
13947 }
13948 _ACEOF
13949 rm -f conftest.$ac_objext conftest$ac_exeext
13950 if { (ac_try="$ac_link"
13951 case "(($ac_try" in
13952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953   *) ac_try_echo=$ac_try;;
13954 esac
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956   (eval "$ac_link") 2>conftest.er1
13957   ac_status=$?
13958   grep -v '^ *+' conftest.er1 >conftest.err
13959   rm -f conftest.er1
13960   cat conftest.err >&5
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); } && {
13963          test -z "$ac_c_werror_flag" ||
13964          test ! -s conftest.err
13965        } && test -s conftest$ac_exeext &&
13966        $as_test_x conftest$ac_exeext; then
13967   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
13968 else
13969   echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13971
13972         ac_cv_cflags__fPIC__Wl___export_dynamic=no
13973 fi
13974
13975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13976       conftest$ac_exeext conftest.$ac_ext
13977 CFLAGS=$ac_wine_try_cflags_saved
13978 fi
13979 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
13980 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
13981 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
13982   LDEXECFLAGS="-Wl,--export-dynamic"
13983
13984 fi
13985
13986
13987       as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
13988 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
13989 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
13990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13991   echo $ECHO_N "(cached) $ECHO_C" >&6
13992 else
13993   ac_wine_try_cflags_saved=$CFLAGS
13994 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001
14002 int
14003 main ()
14004 {
14005
14006   ;
14007   return 0;
14008 }
14009 _ACEOF
14010 rm -f conftest.$ac_objext conftest$ac_exeext
14011 if { (ac_try="$ac_link"
14012 case "(($ac_try" in
14013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014   *) ac_try_echo=$ac_try;;
14015 esac
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017   (eval "$ac_link") 2>conftest.er1
14018   ac_status=$?
14019   grep -v '^ *+' conftest.er1 >conftest.err
14020   rm -f conftest.er1
14021   cat conftest.err >&5
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); } && {
14024          test -z "$ac_c_werror_flag" ||
14025          test ! -s conftest.err
14026        } && test -s conftest$ac_exeext &&
14027        $as_test_x conftest$ac_exeext; then
14028   eval "$as_ac_var=yes"
14029 else
14030   echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14032
14033         eval "$as_ac_var=no"
14034 fi
14035
14036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14037       conftest$ac_exeext conftest.$ac_ext
14038 CFLAGS=$ac_wine_try_cflags_saved
14039 fi
14040 ac_res=`eval echo '${'$as_ac_var'}'`
14041                { echo "$as_me:$LINENO: result: $ac_res" >&5
14042 echo "${ECHO_T}$ac_res" >&6; }
14043 if test `eval echo '${'$as_ac_var'}'` = yes; then
14044   LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
14045 fi
14046
14047
14048       case $host_cpu in
14049         *i[3456789]86* | x86_64)
14050           { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
14051 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
14052 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
14053   echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055   ac_wine_try_cflags_saved=$CFLAGS
14056 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063
14064 int
14065 main ()
14066 {
14067
14068   ;
14069   return 0;
14070 }
14071 _ACEOF
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (ac_try="$ac_link"
14074 case "(($ac_try" in
14075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076   *) ac_try_echo=$ac_try;;
14077 esac
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079   (eval "$ac_link") 2>conftest.er1
14080   ac_status=$?
14081   grep -v '^ *+' conftest.er1 >conftest.err
14082   rm -f conftest.er1
14083   cat conftest.err >&5
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); } && {
14086          test -z "$ac_c_werror_flag" ||
14087          test ! -s conftest.err
14088        } && test -s conftest$ac_exeext &&
14089        $as_test_x conftest$ac_exeext; then
14090   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
14091 else
14092   echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095         ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
14096 fi
14097
14098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14099       conftest$ac_exeext conftest.$ac_ext
14100 CFLAGS=$ac_wine_try_cflags_saved
14101 fi
14102 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
14103 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
14104 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
14105   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
14106 fi
14107
14108           ;;
14109       esac
14110
14111     else
14112       { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14113 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
14114 if test "${ac_cv_c_dll_unixware+set}" = set; then
14115   echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117   ac_wine_try_cflags_saved=$CFLAGS
14118 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14119 cat >conftest.$ac_ext <<_ACEOF
14120 void myfunc() {}
14121 _ACEOF
14122 rm -f conftest.$ac_objext conftest$ac_exeext
14123 if { (ac_try="$ac_link"
14124 case "(($ac_try" in
14125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126   *) ac_try_echo=$ac_try;;
14127 esac
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129   (eval "$ac_link") 2>conftest.er1
14130   ac_status=$?
14131   grep -v '^ *+' conftest.er1 >conftest.err
14132   rm -f conftest.er1
14133   cat conftest.err >&5
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); } && {
14136          test -z "$ac_c_werror_flag" ||
14137          test ! -s conftest.err
14138        } && test -s conftest$ac_exeext &&
14139        $as_test_x conftest$ac_exeext; then
14140   ac_cv_c_dll_unixware="yes"
14141 else
14142   echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14144
14145         ac_cv_c_dll_unixware="no"
14146 fi
14147
14148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14149       conftest$ac_exeext conftest.$ac_ext
14150 CFLAGS=$ac_wine_try_cflags_saved
14151 fi
14152 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14153 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
14154       if test "$ac_cv_c_dll_unixware" = "yes"
14155       then
14156         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14157         LDDLLFLAGS="-Wl,-G,-B,symbolic"
14158
14159       else
14160         { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14161 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
14162 if test "${ac_cv_c_dll_hpux+set}" = set; then
14163   echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165   ac_wine_try_cflags_saved=$CFLAGS
14166 CFLAGS="$CFLAGS -shared"
14167 cat >conftest.$ac_ext <<_ACEOF
14168 void myfunc() {}
14169 _ACEOF
14170 rm -f conftest.$ac_objext conftest$ac_exeext
14171 if { (ac_try="$ac_link"
14172 case "(($ac_try" in
14173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174   *) ac_try_echo=$ac_try;;
14175 esac
14176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14177   (eval "$ac_link") 2>conftest.er1
14178   ac_status=$?
14179   grep -v '^ *+' conftest.er1 >conftest.err
14180   rm -f conftest.er1
14181   cat conftest.err >&5
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); } && {
14184          test -z "$ac_c_werror_flag" ||
14185          test ! -s conftest.err
14186        } && test -s conftest$ac_exeext &&
14187        $as_test_x conftest$ac_exeext; then
14188   ac_cv_c_dll_hpux="yes"
14189 else
14190   echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193         ac_cv_c_dll_hpux="no"
14194 fi
14195
14196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14197       conftest$ac_exeext conftest.$ac_ext
14198 CFLAGS=$ac_wine_try_cflags_saved
14199 fi
14200 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14201 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
14202         if test "$ac_cv_c_dll_hpux" = "yes"
14203         then
14204           LIBEXT="sl"
14205           DLLEXT=".sl"
14206           LDDLLFLAGS="-shared -fPIC"
14207           LDSHARED="\$(CC) -shared"
14208         fi
14209       fi
14210     fi
14211
14212         CROSSTEST=""
14213
14214     if test "$cross_compiling" = "no"
14215     then
14216       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
14217 do
14218   # Extract the first word of "$ac_prog", so it can be a program name with args.
14219 set dummy $ac_prog; ac_word=$2
14220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14222 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14223   echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225   if test -n "$CROSSCC"; then
14226   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14227 else
14228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14229 for as_dir in $PATH
14230 do
14231   IFS=$as_save_IFS
14232   test -z "$as_dir" && as_dir=.
14233   for ac_exec_ext in '' $ac_executable_extensions; do
14234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14235     ac_cv_prog_CROSSCC="$ac_prog"
14236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14237     break 2
14238   fi
14239 done
14240 done
14241 IFS=$as_save_IFS
14242
14243 fi
14244 fi
14245 CROSSCC=$ac_cv_prog_CROSSCC
14246 if test -n "$CROSSCC"; then
14247   { echo "$as_me:$LINENO: result: $CROSSCC" >&5
14248 echo "${ECHO_T}$CROSSCC" >&6; }
14249 else
14250   { echo "$as_me:$LINENO: result: no" >&5
14251 echo "${ECHO_T}no" >&6; }
14252 fi
14253
14254
14255   test -n "$CROSSCC" && break
14256 done
14257 test -n "$CROSSCC" || CROSSCC="false"
14258
14259       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
14260 do
14261   # Extract the first word of "$ac_prog", so it can be a program name with args.
14262 set dummy $ac_prog; ac_word=$2
14263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14265 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14266   echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268   if test -n "$DLLTOOL"; then
14269   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14270 else
14271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14272 for as_dir in $PATH
14273 do
14274   IFS=$as_save_IFS
14275   test -z "$as_dir" && as_dir=.
14276   for ac_exec_ext in '' $ac_executable_extensions; do
14277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14278     ac_cv_prog_DLLTOOL="$ac_prog"
14279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14280     break 2
14281   fi
14282 done
14283 done
14284 IFS=$as_save_IFS
14285
14286 fi
14287 fi
14288 DLLTOOL=$ac_cv_prog_DLLTOOL
14289 if test -n "$DLLTOOL"; then
14290   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14291 echo "${ECHO_T}$DLLTOOL" >&6; }
14292 else
14293   { echo "$as_me:$LINENO: result: no" >&5
14294 echo "${ECHO_T}no" >&6; }
14295 fi
14296
14297
14298   test -n "$DLLTOOL" && break
14299 done
14300 test -n "$DLLTOOL" || DLLTOOL="false"
14301
14302       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres
14303 do
14304   # Extract the first word of "$ac_prog", so it can be a program name with args.
14305 set dummy $ac_prog; ac_word=$2
14306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14308 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14309   echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311   if test -n "$CROSSWINDRES"; then
14312   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14313 else
14314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315 for as_dir in $PATH
14316 do
14317   IFS=$as_save_IFS
14318   test -z "$as_dir" && as_dir=.
14319   for ac_exec_ext in '' $ac_executable_extensions; do
14320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14321     ac_cv_prog_CROSSWINDRES="$ac_prog"
14322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14323     break 2
14324   fi
14325 done
14326 done
14327 IFS=$as_save_IFS
14328
14329 fi
14330 fi
14331 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14332 if test -n "$CROSSWINDRES"; then
14333   { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14334 echo "${ECHO_T}$CROSSWINDRES" >&6; }
14335 else
14336   { echo "$as_me:$LINENO: result: no" >&5
14337 echo "${ECHO_T}no" >&6; }
14338 fi
14339
14340
14341   test -n "$CROSSWINDRES" && break
14342 done
14343 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14344
14345       for ac_prog in i586-mingw32msvc-ar i386-mingw32msvc-ar i386-mingw32-ar mingw32-ar mingw-ar
14346 do
14347   # Extract the first word of "$ac_prog", so it can be a program name with args.
14348 set dummy $ac_prog; ac_word=$2
14349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14351 if test "${ac_cv_prog_MINGWAR+set}" = set; then
14352   echo $ECHO_N "(cached) $ECHO_C" >&6
14353 else
14354   if test -n "$MINGWAR"; then
14355   ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
14356 else
14357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14358 for as_dir in $PATH
14359 do
14360   IFS=$as_save_IFS
14361   test -z "$as_dir" && as_dir=.
14362   for ac_exec_ext in '' $ac_executable_extensions; do
14363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14364     ac_cv_prog_MINGWAR="$ac_prog"
14365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14366     break 2
14367   fi
14368 done
14369 done
14370 IFS=$as_save_IFS
14371
14372 fi
14373 fi
14374 MINGWAR=$ac_cv_prog_MINGWAR
14375 if test -n "$MINGWAR"; then
14376   { echo "$as_me:$LINENO: result: $MINGWAR" >&5
14377 echo "${ECHO_T}$MINGWAR" >&6; }
14378 else
14379   { echo "$as_me:$LINENO: result: no" >&5
14380 echo "${ECHO_T}no" >&6; }
14381 fi
14382
14383
14384   test -n "$MINGWAR" && break
14385 done
14386 test -n "$MINGWAR" || MINGWAR="false"
14387
14388       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14389     fi
14390     ;;
14391 esac
14392
14393 if test "$LIBEXT" = "a"; then
14394   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14395 It is currently not possible to build Wine without shared library
14396 (.so) support to allow transparent switch between .so and .dll files.
14397 If you are using Linux, you will need a newer binutils.
14398 " >&5
14399 echo "$as_me: error: could not find a way to build shared libraries.
14400 It is currently not possible to build Wine without shared library
14401 (.so) support to allow transparent switch between .so and .dll files.
14402 If you are using Linux, you will need a newer binutils.
14403 " >&2;}
14404    { (exit 1); exit 1; }; }
14405 fi
14406
14407 case $build_os in
14408   cygwin*|mingw32*)
14409     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
14410  ;;
14411   darwin*|macosx*)
14412     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
14413  ;;
14414   *)
14415     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
14416  ;;
14417 esac
14418
14419 case $host_os in
14420   mingw32*)
14421     CRTLIBS="-lmsvcrt"
14422
14423     SOCKETLIBS="-lws2_32"
14424
14425     ;;
14426 esac
14427
14428 MAIN_BINARY="wine-pthread"
14429   case $host_cpu in
14430   *i[3456789]86*)
14431     case $host_os in
14432       linux* | k*bsd*-gnu)
14433         MAIN_BINARY="wine-glibc"
14434
14435         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
14436  ;;
14437     esac
14438     ;;
14439 esac
14440
14441
14442 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14443 then
14444   # Extract the first word of "ldd", so it can be a program name with args.
14445 set dummy ldd; ac_word=$2
14446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14448 if test "${ac_cv_path_LDD+set}" = set; then
14449   echo $ECHO_N "(cached) $ECHO_C" >&6
14450 else
14451   case $LDD in
14452   [\\/]* | ?:[\\/]*)
14453   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14454   ;;
14455   *)
14456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14457 as_dummy="/sbin:/usr/sbin:$PATH"
14458 for as_dir in $as_dummy
14459 do
14460   IFS=$as_save_IFS
14461   test -z "$as_dir" && as_dir=.
14462   for ac_exec_ext in '' $ac_executable_extensions; do
14463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14464     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14466     break 2
14467   fi
14468 done
14469 done
14470 IFS=$as_save_IFS
14471
14472   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14473   ;;
14474 esac
14475 fi
14476 LDD=$ac_cv_path_LDD
14477 if test -n "$LDD"; then
14478   { echo "$as_me:$LINENO: result: $LDD" >&5
14479 echo "${ECHO_T}$LDD" >&6; }
14480 else
14481   { echo "$as_me:$LINENO: result: no" >&5
14482 echo "${ECHO_T}no" >&6; }
14483 fi
14484
14485
14486 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14487 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
14488 if test "${ac_cv_lib_soname_X11+set}" = set; then
14489   echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491   ac_get_soname_save_LIBS=$LIBS
14492 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14493   cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499
14500 /* Override any GCC internal prototype to avoid an error.
14501    Use char because int might match the return type of a GCC
14502    builtin and then its argument prototype would still apply.  */
14503 #ifdef __cplusplus
14504 extern "C"
14505 #endif
14506 char XCreateWindow ();
14507 int
14508 main ()
14509 {
14510 return XCreateWindow ();
14511   ;
14512   return 0;
14513 }
14514 _ACEOF
14515 rm -f conftest.$ac_objext conftest$ac_exeext
14516 if { (ac_try="$ac_link"
14517 case "(($ac_try" in
14518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519   *) ac_try_echo=$ac_try;;
14520 esac
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522   (eval "$ac_link") 2>conftest.er1
14523   ac_status=$?
14524   grep -v '^ *+' conftest.er1 >conftest.err
14525   rm -f conftest.er1
14526   cat conftest.err >&5
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } && {
14529          test -z "$ac_c_werror_flag" ||
14530          test ! -s conftest.err
14531        } && test -s conftest$ac_exeext &&
14532        $as_test_x conftest$ac_exeext; then
14533   case "$LIBEXT" in
14534     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'` ;;
14535     so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^        ]*\).*$/\1/"';2,$d'` ;;
14536   esac
14537   if test "x$ac_cv_lib_soname_X11" = "x"
14538   then
14539      ac_cv_lib_soname_X11="libX11.$LIBEXT"
14540   fi
14541 else
14542   echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545         ac_cv_lib_soname_X11="libX11.$LIBEXT"
14546 fi
14547
14548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14549       conftest$ac_exeext conftest.$ac_ext
14550   LIBS=$ac_get_soname_save_LIBS
14551 fi
14552 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14553 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
14554 if test "${ac_cv_lib_soname_X11+set}" = set; then
14555
14556 cat >>confdefs.h <<_ACEOF
14557 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14558 _ACEOF
14559
14560 fi
14561
14562   { echo "$as_me:$LINENO: checking for -lXext soname" >&5
14563 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
14564 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14565   echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567   ac_get_soname_save_LIBS=$LIBS
14568 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14569   cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h.  */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h.  */
14575
14576 /* Override any GCC internal prototype to avoid an error.
14577    Use char because int might match the return type of a GCC
14578    builtin and then its argument prototype would still apply.  */
14579 #ifdef __cplusplus
14580 extern "C"
14581 #endif
14582 char XextCreateExtension ();
14583 int
14584 main ()
14585 {
14586 return XextCreateExtension ();
14587   ;
14588   return 0;
14589 }
14590 _ACEOF
14591 rm -f conftest.$ac_objext conftest$ac_exeext
14592 if { (ac_try="$ac_link"
14593 case "(($ac_try" in
14594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595   *) ac_try_echo=$ac_try;;
14596 esac
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598   (eval "$ac_link") 2>conftest.er1
14599   ac_status=$?
14600   grep -v '^ *+' conftest.er1 >conftest.err
14601   rm -f conftest.er1
14602   cat conftest.err >&5
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); } && {
14605          test -z "$ac_c_werror_flag" ||
14606          test ! -s conftest.err
14607        } && test -s conftest$ac_exeext &&
14608        $as_test_x conftest$ac_exeext; then
14609   case "$LIBEXT" in
14610     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'` ;;
14611     so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^     ]*\).*$/\1/"';2,$d'` ;;
14612   esac
14613   if test "x$ac_cv_lib_soname_Xext" = "x"
14614   then
14615      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14616   fi
14617 else
14618   echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14620
14621         ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14622 fi
14623
14624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14625       conftest$ac_exeext conftest.$ac_ext
14626   LIBS=$ac_get_soname_save_LIBS
14627 fi
14628 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14629 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
14630 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14631
14632 cat >>confdefs.h <<_ACEOF
14633 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14634 _ACEOF
14635
14636 fi
14637
14638   { echo "$as_me:$LINENO: checking for -lXi soname" >&5
14639 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
14640 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14641   echo $ECHO_N "(cached) $ECHO_C" >&6
14642 else
14643   ac_get_soname_save_LIBS=$LIBS
14644 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14645   cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h.  */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h.  */
14651
14652 /* Override any GCC internal prototype to avoid an error.
14653    Use char because int might match the return type of a GCC
14654    builtin and then its argument prototype would still apply.  */
14655 #ifdef __cplusplus
14656 extern "C"
14657 #endif
14658 char XOpenDevice ();
14659 int
14660 main ()
14661 {
14662 return XOpenDevice ();
14663   ;
14664   return 0;
14665 }
14666 _ACEOF
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (ac_try="$ac_link"
14669 case "(($ac_try" in
14670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671   *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674   (eval "$ac_link") 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } && {
14681          test -z "$ac_c_werror_flag" ||
14682          test ! -s conftest.err
14683        } && test -s conftest$ac_exeext &&
14684        $as_test_x conftest$ac_exeext; then
14685   case "$LIBEXT" in
14686     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'` ;;
14687     so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^   ]*\).*$/\1/"';2,$d'` ;;
14688   esac
14689   if test "x$ac_cv_lib_soname_Xi" = "x"
14690   then
14691      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14692   fi
14693 else
14694   echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14696
14697         ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14698 fi
14699
14700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14701       conftest$ac_exeext conftest.$ac_ext
14702   LIBS=$ac_get_soname_save_LIBS
14703 fi
14704 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14705 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
14706 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14707
14708 cat >>confdefs.h <<_ACEOF
14709 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14710 _ACEOF
14711
14712 fi
14713
14714   { echo "$as_me:$LINENO: checking for -lXinerama soname" >&5
14715 echo $ECHO_N "checking for -lXinerama soname... $ECHO_C" >&6; }
14716 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14717   echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719   ac_get_soname_save_LIBS=$LIBS
14720 LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14721   cat >conftest.$ac_ext <<_ACEOF
14722 /* confdefs.h.  */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h.  */
14727
14728 /* Override any GCC internal prototype to avoid an error.
14729    Use char because int might match the return type of a GCC
14730    builtin and then its argument prototype would still apply.  */
14731 #ifdef __cplusplus
14732 extern "C"
14733 #endif
14734 char XineramaQueryScreens ();
14735 int
14736 main ()
14737 {
14738 return XineramaQueryScreens ();
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (ac_try="$ac_link"
14745 case "(($ac_try" in
14746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747   *) ac_try_echo=$ac_try;;
14748 esac
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750   (eval "$ac_link") 2>conftest.er1
14751   ac_status=$?
14752   grep -v '^ *+' conftest.er1 >conftest.err
14753   rm -f conftest.er1
14754   cat conftest.err >&5
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); } && {
14757          test -z "$ac_c_werror_flag" ||
14758          test ! -s conftest.err
14759        } && test -s conftest$ac_exeext &&
14760        $as_test_x conftest$ac_exeext; then
14761   case "$LIBEXT" in
14762     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'` ;;
14763     so) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep libXinerama\\.so | sed -e "s/^.*\(libXinerama\.so[^         ]*\).*$/\1/"';2,$d'` ;;
14764   esac
14765   if test "x$ac_cv_lib_soname_Xinerama" = "x"
14766   then
14767      ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14768   fi
14769 else
14770   echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773         ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14774 fi
14775
14776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14777       conftest$ac_exeext conftest.$ac_ext
14778   LIBS=$ac_get_soname_save_LIBS
14779 fi
14780 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
14781 echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
14782 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14783
14784 cat >>confdefs.h <<_ACEOF
14785 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
14786 _ACEOF
14787
14788 fi
14789
14790   { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14791 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
14792 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14793   echo $ECHO_N "(cached) $ECHO_C" >&6
14794 else
14795   ac_get_soname_save_LIBS=$LIBS
14796 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14797   cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h.  */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h.  */
14803
14804 /* Override any GCC internal prototype to avoid an error.
14805    Use char because int might match the return type of a GCC
14806    builtin and then its argument prototype would still apply.  */
14807 #ifdef __cplusplus
14808 extern "C"
14809 #endif
14810 char XRenderQueryExtension ();
14811 int
14812 main ()
14813 {
14814 return XRenderQueryExtension ();
14815   ;
14816   return 0;
14817 }
14818 _ACEOF
14819 rm -f conftest.$ac_objext conftest$ac_exeext
14820 if { (ac_try="$ac_link"
14821 case "(($ac_try" in
14822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823   *) ac_try_echo=$ac_try;;
14824 esac
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826   (eval "$ac_link") 2>conftest.er1
14827   ac_status=$?
14828   grep -v '^ *+' conftest.er1 >conftest.err
14829   rm -f conftest.er1
14830   cat conftest.err >&5
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); } && {
14833          test -z "$ac_c_werror_flag" ||
14834          test ! -s conftest.err
14835        } && test -s conftest$ac_exeext &&
14836        $as_test_x conftest$ac_exeext; then
14837   case "$LIBEXT" in
14838     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'` ;;
14839     so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^    ]*\).*$/\1/"';2,$d'` ;;
14840   esac
14841   if test "x$ac_cv_lib_soname_Xrender" = "x"
14842   then
14843      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14844   fi
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849         ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14850 fi
14851
14852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14853       conftest$ac_exeext conftest.$ac_ext
14854   LIBS=$ac_get_soname_save_LIBS
14855 fi
14856 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14857 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
14858 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14859
14860 cat >>confdefs.h <<_ACEOF
14861 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14862 _ACEOF
14863
14864 fi
14865
14866   { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14867 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
14868 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14869   echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871   ac_get_soname_save_LIBS=$LIBS
14872 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14873   cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h.  */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h.  */
14879
14880 /* Override any GCC internal prototype to avoid an error.
14881    Use char because int might match the return type of a GCC
14882    builtin and then its argument prototype would still apply.  */
14883 #ifdef __cplusplus
14884 extern "C"
14885 #endif
14886 char XRRQueryExtension ();
14887 int
14888 main ()
14889 {
14890 return XRRQueryExtension ();
14891   ;
14892   return 0;
14893 }
14894 _ACEOF
14895 rm -f conftest.$ac_objext conftest$ac_exeext
14896 if { (ac_try="$ac_link"
14897 case "(($ac_try" in
14898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899   *) ac_try_echo=$ac_try;;
14900 esac
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902   (eval "$ac_link") 2>conftest.er1
14903   ac_status=$?
14904   grep -v '^ *+' conftest.er1 >conftest.err
14905   rm -f conftest.er1
14906   cat conftest.err >&5
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); } && {
14909          test -z "$ac_c_werror_flag" ||
14910          test ! -s conftest.err
14911        } && test -s conftest$ac_exeext &&
14912        $as_test_x conftest$ac_exeext; then
14913   case "$LIBEXT" in
14914     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'` ;;
14915     so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^       ]*\).*$/\1/"';2,$d'` ;;
14916   esac
14917   if test "x$ac_cv_lib_soname_Xrandr" = "x"
14918   then
14919      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14920   fi
14921 else
14922   echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925         ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14926 fi
14927
14928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14929       conftest$ac_exeext conftest.$ac_ext
14930   LIBS=$ac_get_soname_save_LIBS
14931 fi
14932 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14933 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
14934 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14935
14936 cat >>confdefs.h <<_ACEOF
14937 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14938 _ACEOF
14939
14940 fi
14941
14942   { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14943 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
14944 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14945   echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947   ac_get_soname_save_LIBS=$LIBS
14948 LIBS="-lfreetype $X_LIBS $LIBS"
14949   cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h.  */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h.  */
14955
14956 /* Override any GCC internal prototype to avoid an error.
14957    Use char because int might match the return type of a GCC
14958    builtin and then its argument prototype would still apply.  */
14959 #ifdef __cplusplus
14960 extern "C"
14961 #endif
14962 char FT_Init_FreeType ();
14963 int
14964 main ()
14965 {
14966 return FT_Init_FreeType ();
14967   ;
14968   return 0;
14969 }
14970 _ACEOF
14971 rm -f conftest.$ac_objext conftest$ac_exeext
14972 if { (ac_try="$ac_link"
14973 case "(($ac_try" in
14974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975   *) ac_try_echo=$ac_try;;
14976 esac
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978   (eval "$ac_link") 2>conftest.er1
14979   ac_status=$?
14980   grep -v '^ *+' conftest.er1 >conftest.err
14981   rm -f conftest.er1
14982   cat conftest.err >&5
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); } && {
14985          test -z "$ac_c_werror_flag" ||
14986          test ! -s conftest.err
14987        } && test -s conftest$ac_exeext &&
14988        $as_test_x conftest$ac_exeext; then
14989   case "$LIBEXT" in
14990     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'` ;;
14991     so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^         ]*\).*$/\1/"';2,$d'` ;;
14992   esac
14993   if test "x$ac_cv_lib_soname_freetype" = "x"
14994   then
14995      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14996   fi
14997 else
14998   echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15000
15001         ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15002 fi
15003
15004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15005       conftest$ac_exeext conftest.$ac_ext
15006   LIBS=$ac_get_soname_save_LIBS
15007 fi
15008 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15009 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
15010 if test "${ac_cv_lib_soname_freetype+set}" = set; then
15011
15012 cat >>confdefs.h <<_ACEOF
15013 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15014 _ACEOF
15015
15016 fi
15017
15018   { echo "$as_me:$LINENO: checking for -lGL soname" >&5
15019 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
15020 if test "${ac_cv_lib_soname_GL+set}" = set; then
15021   echo $ECHO_N "(cached) $ECHO_C" >&6
15022 else
15023   ac_get_soname_save_LIBS=$LIBS
15024 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15025   cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h.  */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h.  */
15031
15032 /* Override any GCC internal prototype to avoid an error.
15033    Use char because int might match the return type of a GCC
15034    builtin and then its argument prototype would still apply.  */
15035 #ifdef __cplusplus
15036 extern "C"
15037 #endif
15038 char glXQueryExtension ();
15039 int
15040 main ()
15041 {
15042 return glXQueryExtension ();
15043   ;
15044   return 0;
15045 }
15046 _ACEOF
15047 rm -f conftest.$ac_objext conftest$ac_exeext
15048 if { (ac_try="$ac_link"
15049 case "(($ac_try" in
15050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051   *) ac_try_echo=$ac_try;;
15052 esac
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054   (eval "$ac_link") 2>conftest.er1
15055   ac_status=$?
15056   grep -v '^ *+' conftest.er1 >conftest.err
15057   rm -f conftest.er1
15058   cat conftest.err >&5
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } && {
15061          test -z "$ac_c_werror_flag" ||
15062          test ! -s conftest.err
15063        } && test -s conftest$ac_exeext &&
15064        $as_test_x conftest$ac_exeext; then
15065   case "$LIBEXT" in
15066     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'` ;;
15067     so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^   ]*\).*$/\1/"';2,$d'` ;;
15068   esac
15069   if test "x$ac_cv_lib_soname_GL" = "x"
15070   then
15071      ac_cv_lib_soname_GL="libGL.$LIBEXT"
15072   fi
15073 else
15074   echo "$as_me: failed program was:" >&5
15075 sed 's/^/| /' conftest.$ac_ext >&5
15076
15077         ac_cv_lib_soname_GL="libGL.$LIBEXT"
15078 fi
15079
15080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15081       conftest$ac_exeext conftest.$ac_ext
15082   LIBS=$ac_get_soname_save_LIBS
15083 fi
15084 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15085 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
15086 if test "${ac_cv_lib_soname_GL+set}" = set; then
15087
15088 cat >>confdefs.h <<_ACEOF
15089 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15090 _ACEOF
15091
15092 fi
15093
15094   { echo "$as_me:$LINENO: checking for -lhal soname" >&5
15095 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
15096 if test "${ac_cv_lib_soname_hal+set}" = set; then
15097   echo $ECHO_N "(cached) $ECHO_C" >&6
15098 else
15099   ac_get_soname_save_LIBS=$LIBS
15100 LIBS="-lhal  $LIBS"
15101   cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h.  */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h.  */
15107
15108 /* Override any GCC internal prototype to avoid an error.
15109    Use char because int might match the return type of a GCC
15110    builtin and then its argument prototype would still apply.  */
15111 #ifdef __cplusplus
15112 extern "C"
15113 #endif
15114 char libhal_ctx_new ();
15115 int
15116 main ()
15117 {
15118 return libhal_ctx_new ();
15119   ;
15120   return 0;
15121 }
15122 _ACEOF
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (ac_try="$ac_link"
15125 case "(($ac_try" in
15126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127   *) ac_try_echo=$ac_try;;
15128 esac
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130   (eval "$ac_link") 2>conftest.er1
15131   ac_status=$?
15132   grep -v '^ *+' conftest.er1 >conftest.err
15133   rm -f conftest.er1
15134   cat conftest.err >&5
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); } && {
15137          test -z "$ac_c_werror_flag" ||
15138          test ! -s conftest.err
15139        } && test -s conftest$ac_exeext &&
15140        $as_test_x conftest$ac_exeext; then
15141   case "$LIBEXT" in
15142     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'` ;;
15143     so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^        ]*\).*$/\1/"';2,$d'` ;;
15144   esac
15145   if test "x$ac_cv_lib_soname_hal" = "x"
15146   then
15147      ac_cv_lib_soname_hal="libhal.$LIBEXT"
15148   fi
15149 else
15150   echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15152
15153         ac_cv_lib_soname_hal="libhal.$LIBEXT"
15154 fi
15155
15156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15157       conftest$ac_exeext conftest.$ac_ext
15158   LIBS=$ac_get_soname_save_LIBS
15159 fi
15160 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
15161 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
15162 if test "${ac_cv_lib_soname_hal+set}" = set; then
15163
15164 cat >>confdefs.h <<_ACEOF
15165 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
15166 _ACEOF
15167
15168 fi
15169
15170   { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
15171 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
15172 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15173   echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175   ac_get_soname_save_LIBS=$LIBS
15176 LIBS="-ltxc_dxtn  $LIBS"
15177   cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183
15184 /* Override any GCC internal prototype to avoid an error.
15185    Use char because int might match the return type of a GCC
15186    builtin and then its argument prototype would still apply.  */
15187 #ifdef __cplusplus
15188 extern "C"
15189 #endif
15190 char fetch_2d_texel_rgba_dxt1 ();
15191 int
15192 main ()
15193 {
15194 return fetch_2d_texel_rgba_dxt1 ();
15195   ;
15196   return 0;
15197 }
15198 _ACEOF
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (ac_try="$ac_link"
15201 case "(($ac_try" in
15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203   *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206   (eval "$ac_link") 2>conftest.er1
15207   ac_status=$?
15208   grep -v '^ *+' conftest.er1 >conftest.err
15209   rm -f conftest.er1
15210   cat conftest.err >&5
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); } && {
15213          test -z "$ac_c_werror_flag" ||
15214          test ! -s conftest.err
15215        } && test -s conftest$ac_exeext &&
15216        $as_test_x conftest$ac_exeext; then
15217   case "$LIBEXT" in
15218     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'` ;;
15219     so) ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.so | sed -e "s/^.*\(libtxc_dxtn\.so[^         ]*\).*$/\1/"';2,$d'` ;;
15220   esac
15221   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
15222   then
15223      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15224   fi
15225 else
15226   echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15228
15229         ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
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_get_soname_save_LIBS
15235 fi
15236 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15237 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
15238 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15239
15240 cat >>confdefs.h <<_ACEOF
15241 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15242 _ACEOF
15243
15244 fi
15245
15246   { echo "$as_me:$LINENO: checking for -lcups soname" >&5
15247 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
15248 if test "${ac_cv_lib_soname_cups+set}" = set; then
15249   echo $ECHO_N "(cached) $ECHO_C" >&6
15250 else
15251   ac_get_soname_save_LIBS=$LIBS
15252 LIBS="-lcups  $LIBS"
15253   cat >conftest.$ac_ext <<_ACEOF
15254 /* confdefs.h.  */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h.  */
15259
15260 /* Override any GCC internal prototype to avoid an error.
15261    Use char because int might match the return type of a GCC
15262    builtin and then its argument prototype would still apply.  */
15263 #ifdef __cplusplus
15264 extern "C"
15265 #endif
15266 char cupsGetDefault ();
15267 int
15268 main ()
15269 {
15270 return cupsGetDefault ();
15271   ;
15272   return 0;
15273 }
15274 _ACEOF
15275 rm -f conftest.$ac_objext conftest$ac_exeext
15276 if { (ac_try="$ac_link"
15277 case "(($ac_try" in
15278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15279   *) ac_try_echo=$ac_try;;
15280 esac
15281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15282   (eval "$ac_link") 2>conftest.er1
15283   ac_status=$?
15284   grep -v '^ *+' conftest.er1 >conftest.err
15285   rm -f conftest.er1
15286   cat conftest.err >&5
15287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288   (exit $ac_status); } && {
15289          test -z "$ac_c_werror_flag" ||
15290          test ! -s conftest.err
15291        } && test -s conftest$ac_exeext &&
15292        $as_test_x conftest$ac_exeext; then
15293   case "$LIBEXT" in
15294     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'` ;;
15295     so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^     ]*\).*$/\1/"';2,$d'` ;;
15296   esac
15297   if test "x$ac_cv_lib_soname_cups" = "x"
15298   then
15299      ac_cv_lib_soname_cups="libcups.$LIBEXT"
15300   fi
15301 else
15302   echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15304
15305         ac_cv_lib_soname_cups="libcups.$LIBEXT"
15306 fi
15307
15308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15309       conftest$ac_exeext conftest.$ac_ext
15310   LIBS=$ac_get_soname_save_LIBS
15311 fi
15312 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15313 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
15314 if test "${ac_cv_lib_soname_cups+set}" = set; then
15315
15316 cat >>confdefs.h <<_ACEOF
15317 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15318 _ACEOF
15319
15320 fi
15321
15322   { echo "$as_me:$LINENO: checking for -ljack soname" >&5
15323 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
15324 if test "${ac_cv_lib_soname_jack+set}" = set; then
15325   echo $ECHO_N "(cached) $ECHO_C" >&6
15326 else
15327   ac_get_soname_save_LIBS=$LIBS
15328 LIBS="-ljack  $LIBS"
15329   cat >conftest.$ac_ext <<_ACEOF
15330 /* confdefs.h.  */
15331 _ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h.  */
15335
15336 /* Override any GCC internal prototype to avoid an error.
15337    Use char because int might match the return type of a GCC
15338    builtin and then its argument prototype would still apply.  */
15339 #ifdef __cplusplus
15340 extern "C"
15341 #endif
15342 char jack_client_new ();
15343 int
15344 main ()
15345 {
15346 return jack_client_new ();
15347   ;
15348   return 0;
15349 }
15350 _ACEOF
15351 rm -f conftest.$ac_objext conftest$ac_exeext
15352 if { (ac_try="$ac_link"
15353 case "(($ac_try" in
15354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355   *) ac_try_echo=$ac_try;;
15356 esac
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358   (eval "$ac_link") 2>conftest.er1
15359   ac_status=$?
15360   grep -v '^ *+' conftest.er1 >conftest.err
15361   rm -f conftest.er1
15362   cat conftest.err >&5
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); } && {
15365          test -z "$ac_c_werror_flag" ||
15366          test ! -s conftest.err
15367        } && test -s conftest$ac_exeext &&
15368        $as_test_x conftest$ac_exeext; then
15369   case "$LIBEXT" in
15370     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'` ;;
15371     so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^     ]*\).*$/\1/"';2,$d'` ;;
15372   esac
15373   if test "x$ac_cv_lib_soname_jack" = "x"
15374   then
15375      ac_cv_lib_soname_jack="libjack.$LIBEXT"
15376   fi
15377 else
15378   echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381         ac_cv_lib_soname_jack="libjack.$LIBEXT"
15382 fi
15383
15384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15385       conftest$ac_exeext conftest.$ac_ext
15386   LIBS=$ac_get_soname_save_LIBS
15387 fi
15388 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15389 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
15390 if test "${ac_cv_lib_soname_jack+set}" = set; then
15391
15392 cat >>confdefs.h <<_ACEOF
15393 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15394 _ACEOF
15395
15396 fi
15397
15398   { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15399 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
15400 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15401   echo $ECHO_N "(cached) $ECHO_C" >&6
15402 else
15403   ac_get_soname_save_LIBS=$LIBS
15404 LIBS="-lfontconfig  $LIBS"
15405   cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h.  */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h.  */
15411
15412 /* Override any GCC internal prototype to avoid an error.
15413    Use char because int might match the return type of a GCC
15414    builtin and then its argument prototype would still apply.  */
15415 #ifdef __cplusplus
15416 extern "C"
15417 #endif
15418 char FcInit ();
15419 int
15420 main ()
15421 {
15422 return FcInit ();
15423   ;
15424   return 0;
15425 }
15426 _ACEOF
15427 rm -f conftest.$ac_objext conftest$ac_exeext
15428 if { (ac_try="$ac_link"
15429 case "(($ac_try" in
15430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431   *) ac_try_echo=$ac_try;;
15432 esac
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434   (eval "$ac_link") 2>conftest.er1
15435   ac_status=$?
15436   grep -v '^ *+' conftest.er1 >conftest.err
15437   rm -f conftest.er1
15438   cat conftest.err >&5
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); } && {
15441          test -z "$ac_c_werror_flag" ||
15442          test ! -s conftest.err
15443        } && test -s conftest$ac_exeext &&
15444        $as_test_x conftest$ac_exeext; then
15445   case "$LIBEXT" in
15446     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'` ;;
15447     so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^   ]*\).*$/\1/"';2,$d'` ;;
15448   esac
15449   if test "x$ac_cv_lib_soname_fontconfig" = "x"
15450   then
15451      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15452   fi
15453 else
15454   echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15456
15457         ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15458 fi
15459
15460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15461       conftest$ac_exeext conftest.$ac_ext
15462   LIBS=$ac_get_soname_save_LIBS
15463 fi
15464 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15465 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
15466 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15467
15468 cat >>confdefs.h <<_ACEOF
15469 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15470 _ACEOF
15471
15472 fi
15473
15474   { echo "$as_me:$LINENO: checking for -lssl soname" >&5
15475 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
15476 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15477   echo $ECHO_N "(cached) $ECHO_C" >&6
15478 else
15479   ac_get_soname_save_LIBS=$LIBS
15480 LIBS="-lssl  $LIBS"
15481   cat >conftest.$ac_ext <<_ACEOF
15482 /* confdefs.h.  */
15483 _ACEOF
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h.  */
15487
15488 /* Override any GCC internal prototype to avoid an error.
15489    Use char because int might match the return type of a GCC
15490    builtin and then its argument prototype would still apply.  */
15491 #ifdef __cplusplus
15492 extern "C"
15493 #endif
15494 char SSL_library_init ();
15495 int
15496 main ()
15497 {
15498 return SSL_library_init ();
15499   ;
15500   return 0;
15501 }
15502 _ACEOF
15503 rm -f conftest.$ac_objext conftest$ac_exeext
15504 if { (ac_try="$ac_link"
15505 case "(($ac_try" in
15506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507   *) ac_try_echo=$ac_try;;
15508 esac
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510   (eval "$ac_link") 2>conftest.er1
15511   ac_status=$?
15512   grep -v '^ *+' conftest.er1 >conftest.err
15513   rm -f conftest.er1
15514   cat conftest.err >&5
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); } && {
15517          test -z "$ac_c_werror_flag" ||
15518          test ! -s conftest.err
15519        } && test -s conftest$ac_exeext &&
15520        $as_test_x conftest$ac_exeext; then
15521   case "$LIBEXT" in
15522     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'` ;;
15523     so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^        ]*\).*$/\1/"';2,$d'` ;;
15524   esac
15525   if test "x$ac_cv_lib_soname_ssl" = "x"
15526   then
15527      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15528   fi
15529 else
15530   echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15532
15533         ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15534 fi
15535
15536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15537       conftest$ac_exeext conftest.$ac_ext
15538   LIBS=$ac_get_soname_save_LIBS
15539 fi
15540 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15541 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
15542 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15543
15544 cat >>confdefs.h <<_ACEOF
15545 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15546 _ACEOF
15547
15548 fi
15549
15550   { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15551 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
15552 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15553   echo $ECHO_N "(cached) $ECHO_C" >&6
15554 else
15555   ac_get_soname_save_LIBS=$LIBS
15556 LIBS="-lcrypto  $LIBS"
15557   cat >conftest.$ac_ext <<_ACEOF
15558 /* confdefs.h.  */
15559 _ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h.  */
15563
15564 /* Override any GCC internal prototype to avoid an error.
15565    Use char because int might match the return type of a GCC
15566    builtin and then its argument prototype would still apply.  */
15567 #ifdef __cplusplus
15568 extern "C"
15569 #endif
15570 char BIO_new_socket ();
15571 int
15572 main ()
15573 {
15574 return BIO_new_socket ();
15575   ;
15576   return 0;
15577 }
15578 _ACEOF
15579 rm -f conftest.$ac_objext conftest$ac_exeext
15580 if { (ac_try="$ac_link"
15581 case "(($ac_try" in
15582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583   *) ac_try_echo=$ac_try;;
15584 esac
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586   (eval "$ac_link") 2>conftest.er1
15587   ac_status=$?
15588   grep -v '^ *+' conftest.er1 >conftest.err
15589   rm -f conftest.er1
15590   cat conftest.err >&5
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); } && {
15593          test -z "$ac_c_werror_flag" ||
15594          test ! -s conftest.err
15595        } && test -s conftest$ac_exeext &&
15596        $as_test_x conftest$ac_exeext; then
15597   case "$LIBEXT" in
15598     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'` ;;
15599     so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^       ]*\).*$/\1/"';2,$d'` ;;
15600   esac
15601   if test "x$ac_cv_lib_soname_crypto" = "x"
15602   then
15603      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15604   fi
15605 else
15606   echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15608
15609         ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15610 fi
15611
15612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15613       conftest$ac_exeext conftest.$ac_ext
15614   LIBS=$ac_get_soname_save_LIBS
15615 fi
15616 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15617 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
15618 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15619
15620 cat >>confdefs.h <<_ACEOF
15621 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15622 _ACEOF
15623
15624 fi
15625
15626   { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15627 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
15628 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15629   echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631   ac_get_soname_save_LIBS=$LIBS
15632 LIBS="-lncurses  $LIBS"
15633   cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h.  */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h.  */
15639
15640 /* Override any GCC internal prototype to avoid an error.
15641    Use char because int might match the return type of a GCC
15642    builtin and then its argument prototype would still apply.  */
15643 #ifdef __cplusplus
15644 extern "C"
15645 #endif
15646 char waddch ();
15647 int
15648 main ()
15649 {
15650 return waddch ();
15651   ;
15652   return 0;
15653 }
15654 _ACEOF
15655 rm -f conftest.$ac_objext conftest$ac_exeext
15656 if { (ac_try="$ac_link"
15657 case "(($ac_try" in
15658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659   *) ac_try_echo=$ac_try;;
15660 esac
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662   (eval "$ac_link") 2>conftest.er1
15663   ac_status=$?
15664   grep -v '^ *+' conftest.er1 >conftest.err
15665   rm -f conftest.er1
15666   cat conftest.err >&5
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); } && {
15669          test -z "$ac_c_werror_flag" ||
15670          test ! -s conftest.err
15671        } && test -s conftest$ac_exeext &&
15672        $as_test_x conftest$ac_exeext; then
15673   case "$LIBEXT" in
15674     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'` ;;
15675     so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^    ]*\).*$/\1/"';2,$d'` ;;
15676   esac
15677   if test "x$ac_cv_lib_soname_ncurses" = "x"
15678   then
15679      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15680   fi
15681 else
15682   echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15684
15685         ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15686 fi
15687
15688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15689       conftest$ac_exeext conftest.$ac_ext
15690   LIBS=$ac_get_soname_save_LIBS
15691 fi
15692 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15693 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
15694 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15695
15696 cat >>confdefs.h <<_ACEOF
15697 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15698 _ACEOF
15699
15700 fi
15701
15702   { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15703 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
15704 if test "${ac_cv_lib_soname_curses+set}" = set; then
15705   echo $ECHO_N "(cached) $ECHO_C" >&6
15706 else
15707   ac_get_soname_save_LIBS=$LIBS
15708 LIBS="-lcurses  $LIBS"
15709   cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h.  */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h.  */
15715
15716 /* Override any GCC internal prototype to avoid an error.
15717    Use char because int might match the return type of a GCC
15718    builtin and then its argument prototype would still apply.  */
15719 #ifdef __cplusplus
15720 extern "C"
15721 #endif
15722 char waddch ();
15723 int
15724 main ()
15725 {
15726 return waddch ();
15727   ;
15728   return 0;
15729 }
15730 _ACEOF
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (ac_try="$ac_link"
15733 case "(($ac_try" in
15734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735   *) ac_try_echo=$ac_try;;
15736 esac
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738   (eval "$ac_link") 2>conftest.er1
15739   ac_status=$?
15740   grep -v '^ *+' conftest.er1 >conftest.err
15741   rm -f conftest.er1
15742   cat conftest.err >&5
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); } && {
15745          test -z "$ac_c_werror_flag" ||
15746          test ! -s conftest.err
15747        } && test -s conftest$ac_exeext &&
15748        $as_test_x conftest$ac_exeext; then
15749   case "$LIBEXT" in
15750     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'` ;;
15751     so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^       ]*\).*$/\1/"';2,$d'` ;;
15752   esac
15753   if test "x$ac_cv_lib_soname_curses" = "x"
15754   then
15755      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15756   fi
15757 else
15758   echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15760
15761         ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15762 fi
15763
15764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15765       conftest$ac_exeext conftest.$ac_ext
15766   LIBS=$ac_get_soname_save_LIBS
15767 fi
15768 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15769 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
15770 if test "${ac_cv_lib_soname_curses+set}" = set; then
15771
15772 cat >>confdefs.h <<_ACEOF
15773 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15774 _ACEOF
15775
15776 fi
15777
15778   { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15779 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
15780 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15781   echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783   ac_get_soname_save_LIBS=$LIBS
15784 LIBS="-ljpeg  $LIBS"
15785   cat >conftest.$ac_ext <<_ACEOF
15786 /* confdefs.h.  */
15787 _ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h.  */
15791
15792 /* Override any GCC internal prototype to avoid an error.
15793    Use char because int might match the return type of a GCC
15794    builtin and then its argument prototype would still apply.  */
15795 #ifdef __cplusplus
15796 extern "C"
15797 #endif
15798 char jpeg_start_decompress ();
15799 int
15800 main ()
15801 {
15802 return jpeg_start_decompress ();
15803   ;
15804   return 0;
15805 }
15806 _ACEOF
15807 rm -f conftest.$ac_objext conftest$ac_exeext
15808 if { (ac_try="$ac_link"
15809 case "(($ac_try" in
15810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811   *) ac_try_echo=$ac_try;;
15812 esac
15813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814   (eval "$ac_link") 2>conftest.er1
15815   ac_status=$?
15816   grep -v '^ *+' conftest.er1 >conftest.err
15817   rm -f conftest.er1
15818   cat conftest.err >&5
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); } && {
15821          test -z "$ac_c_werror_flag" ||
15822          test ! -s conftest.err
15823        } && test -s conftest$ac_exeext &&
15824        $as_test_x conftest$ac_exeext; then
15825   case "$LIBEXT" in
15826     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'` ;;
15827     so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^     ]*\).*$/\1/"';2,$d'` ;;
15828   esac
15829   if test "x$ac_cv_lib_soname_jpeg" = "x"
15830   then
15831      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15832   fi
15833 else
15834   echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15836
15837         ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
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_get_soname_save_LIBS
15843 fi
15844 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15845 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
15846 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15847
15848 cat >>confdefs.h <<_ACEOF
15849 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15850 _ACEOF
15851
15852 fi
15853
15854   { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15855 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
15856 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15857   echo $ECHO_N "(cached) $ECHO_C" >&6
15858 else
15859   ac_get_soname_save_LIBS=$LIBS
15860 LIBS="-lcapi20  $LIBS"
15861   cat >conftest.$ac_ext <<_ACEOF
15862 /* confdefs.h.  */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h.  */
15867
15868 /* Override any GCC internal prototype to avoid an error.
15869    Use char because int might match the return type of a GCC
15870    builtin and then its argument prototype would still apply.  */
15871 #ifdef __cplusplus
15872 extern "C"
15873 #endif
15874 char capi20_isinstalled ();
15875 int
15876 main ()
15877 {
15878 return capi20_isinstalled ();
15879   ;
15880   return 0;
15881 }
15882 _ACEOF
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (ac_try="$ac_link"
15885 case "(($ac_try" in
15886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887   *) ac_try_echo=$ac_try;;
15888 esac
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890   (eval "$ac_link") 2>conftest.er1
15891   ac_status=$?
15892   grep -v '^ *+' conftest.er1 >conftest.err
15893   rm -f conftest.er1
15894   cat conftest.err >&5
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } && {
15897          test -z "$ac_c_werror_flag" ||
15898          test ! -s conftest.err
15899        } && test -s conftest$ac_exeext &&
15900        $as_test_x conftest$ac_exeext; then
15901   case "$LIBEXT" in
15902     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'` ;;
15903     so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^       ]*\).*$/\1/"';2,$d'` ;;
15904   esac
15905   if test "x$ac_cv_lib_soname_capi20" = "x"
15906   then
15907      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15908   fi
15909 else
15910   echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15912
15913         ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15914 fi
15915
15916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15917       conftest$ac_exeext conftest.$ac_ext
15918   LIBS=$ac_get_soname_save_LIBS
15919 fi
15920 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15921 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
15922 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15923
15924 cat >>confdefs.h <<_ACEOF
15925 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15926 _ACEOF
15927
15928 fi
15929
15930 fi
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005 for ac_func in \
16006         _pclose \
16007         _popen \
16008         _snprintf \
16009         _spawnvp \
16010         _stricmp \
16011         _strnicmp \
16012         _vsnprintf \
16013         asctime_r \
16014         chsize \
16015         clone \
16016         connect \
16017         dlopen \
16018         epoll_create \
16019         ffs \
16020         finite \
16021         fork \
16022         fpclass \
16023         fstatfs \
16024         fstatvfs \
16025         ftruncate \
16026         futimes \
16027         futimesat \
16028         getaddrinfo \
16029         getdirentries \
16030         gethostbyname \
16031         getnameinfo \
16032         getnetbyname \
16033         getopt_long \
16034         getpagesize \
16035         getprotobyname \
16036         getprotobynumber \
16037         getpwuid \
16038         getservbyport \
16039         gettid \
16040         gettimeofday \
16041         getuid \
16042         inet_aton \
16043         inet_network \
16044         kqueue \
16045         lstat \
16046         memmove \
16047         mmap \
16048         pclose \
16049         poll \
16050         popen \
16051         prctl \
16052         pread \
16053         pwrite \
16054         readlink \
16055         rfork \
16056         sched_yield \
16057         select \
16058         sendmsg \
16059         setrlimit \
16060         settimeofday \
16061         sigaltstack \
16062         sigprocmask \
16063         snprintf \
16064         spawnvp \
16065         statfs \
16066         statvfs \
16067         strcasecmp \
16068         strerror \
16069         strncasecmp \
16070         strtold \
16071         tcgetattr \
16072         timegm \
16073         usleep \
16074         vsnprintf \
16075         wait4 \
16076         waitpid \
16077
16078 do
16079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16080 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16083   echo $ECHO_N "(cached) $ECHO_C" >&6
16084 else
16085   cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h.  */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h.  */
16091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16093 #define $ac_func innocuous_$ac_func
16094
16095 /* System header to define __stub macros and hopefully few prototypes,
16096     which can conflict with char $ac_func (); below.
16097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16098     <limits.h> exists even on freestanding compilers.  */
16099
16100 #ifdef __STDC__
16101 # include <limits.h>
16102 #else
16103 # include <assert.h>
16104 #endif
16105
16106 #undef $ac_func
16107
16108 /* Override any GCC internal prototype to avoid an error.
16109    Use char because int might match the return type of a GCC
16110    builtin and then its argument prototype would still apply.  */
16111 #ifdef __cplusplus
16112 extern "C"
16113 #endif
16114 char $ac_func ();
16115 /* The GNU C library defines this for functions which it implements
16116     to always fail with ENOSYS.  Some functions are actually named
16117     something starting with __ and the normal name is an alias.  */
16118 #if defined __stub_$ac_func || defined __stub___$ac_func
16119 choke me
16120 #endif
16121
16122 int
16123 main ()
16124 {
16125 return $ac_func ();
16126   ;
16127   return 0;
16128 }
16129 _ACEOF
16130 rm -f conftest.$ac_objext conftest$ac_exeext
16131 if { (ac_try="$ac_link"
16132 case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_link") 2>conftest.er1
16138   ac_status=$?
16139   grep -v '^ *+' conftest.er1 >conftest.err
16140   rm -f conftest.er1
16141   cat conftest.err >&5
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); } && {
16144          test -z "$ac_c_werror_flag" ||
16145          test ! -s conftest.err
16146        } && test -s conftest$ac_exeext &&
16147        $as_test_x conftest$ac_exeext; then
16148   eval "$as_ac_var=yes"
16149 else
16150   echo "$as_me: failed program was:" >&5
16151 sed 's/^/| /' conftest.$ac_ext >&5
16152
16153         eval "$as_ac_var=no"
16154 fi
16155
16156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16157       conftest$ac_exeext conftest.$ac_ext
16158 fi
16159 ac_res=`eval echo '${'$as_ac_var'}'`
16160                { echo "$as_me:$LINENO: result: $ac_res" >&5
16161 echo "${ECHO_T}$ac_res" >&6; }
16162 if test `eval echo '${'$as_ac_var'}'` = yes; then
16163   cat >>confdefs.h <<_ACEOF
16164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16165 _ACEOF
16166
16167 fi
16168 done
16169
16170
16171 if test "$ac_cv_func_dlopen" = no
16172 then
16173     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16174 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16176   echo $ECHO_N "(cached) $ECHO_C" >&6
16177 else
16178   ac_check_lib_save_LIBS=$LIBS
16179 LIBS="-ldl  $LIBS"
16180 cat >conftest.$ac_ext <<_ACEOF
16181 /* confdefs.h.  */
16182 _ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h.  */
16186
16187 /* Override any GCC internal prototype to avoid an error.
16188    Use char because int might match the return type of a GCC
16189    builtin and then its argument prototype would still apply.  */
16190 #ifdef __cplusplus
16191 extern "C"
16192 #endif
16193 char dlopen ();
16194 int
16195 main ()
16196 {
16197 return dlopen ();
16198   ;
16199   return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (ac_try="$ac_link"
16204 case "(($ac_try" in
16205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206   *) ac_try_echo=$ac_try;;
16207 esac
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209   (eval "$ac_link") 2>conftest.er1
16210   ac_status=$?
16211   grep -v '^ *+' conftest.er1 >conftest.err
16212   rm -f conftest.er1
16213   cat conftest.err >&5
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } && {
16216          test -z "$ac_c_werror_flag" ||
16217          test ! -s conftest.err
16218        } && test -s conftest$ac_exeext &&
16219        $as_test_x conftest$ac_exeext; then
16220   ac_cv_lib_dl_dlopen=yes
16221 else
16222   echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16224
16225         ac_cv_lib_dl_dlopen=no
16226 fi
16227
16228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16229       conftest$ac_exeext conftest.$ac_ext
16230 LIBS=$ac_check_lib_save_LIBS
16231 fi
16232 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16233 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16234 if test $ac_cv_lib_dl_dlopen = yes; then
16235   cat >>confdefs.h <<\_ACEOF
16236 #define HAVE_DLOPEN 1
16237 _ACEOF
16238  LIBDL="-ldl"
16239
16240 fi
16241
16242 fi
16243 ac_wine_check_funcs_save_LIBS="$LIBS"
16244 LIBS="$LIBS $LIBDL"
16245
16246 for ac_func in dladdr
16247 do
16248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16252   echo $ECHO_N "(cached) $ECHO_C" >&6
16253 else
16254   cat >conftest.$ac_ext <<_ACEOF
16255 /* confdefs.h.  */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h.  */
16260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16262 #define $ac_func innocuous_$ac_func
16263
16264 /* System header to define __stub macros and hopefully few prototypes,
16265     which can conflict with char $ac_func (); below.
16266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16267     <limits.h> exists even on freestanding compilers.  */
16268
16269 #ifdef __STDC__
16270 # include <limits.h>
16271 #else
16272 # include <assert.h>
16273 #endif
16274
16275 #undef $ac_func
16276
16277 /* Override any GCC internal prototype to avoid an error.
16278    Use char because int might match the return type of a GCC
16279    builtin and then its argument prototype would still apply.  */
16280 #ifdef __cplusplus
16281 extern "C"
16282 #endif
16283 char $ac_func ();
16284 /* The GNU C library defines this for functions which it implements
16285     to always fail with ENOSYS.  Some functions are actually named
16286     something starting with __ and the normal name is an alias.  */
16287 #if defined __stub_$ac_func || defined __stub___$ac_func
16288 choke me
16289 #endif
16290
16291 int
16292 main ()
16293 {
16294 return $ac_func ();
16295   ;
16296   return 0;
16297 }
16298 _ACEOF
16299 rm -f conftest.$ac_objext conftest$ac_exeext
16300 if { (ac_try="$ac_link"
16301 case "(($ac_try" in
16302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303   *) ac_try_echo=$ac_try;;
16304 esac
16305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16306   (eval "$ac_link") 2>conftest.er1
16307   ac_status=$?
16308   grep -v '^ *+' conftest.er1 >conftest.err
16309   rm -f conftest.er1
16310   cat conftest.err >&5
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); } && {
16313          test -z "$ac_c_werror_flag" ||
16314          test ! -s conftest.err
16315        } && test -s conftest$ac_exeext &&
16316        $as_test_x conftest$ac_exeext; then
16317   eval "$as_ac_var=yes"
16318 else
16319   echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16321
16322         eval "$as_ac_var=no"
16323 fi
16324
16325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16326       conftest$ac_exeext conftest.$ac_ext
16327 fi
16328 ac_res=`eval echo '${'$as_ac_var'}'`
16329                { echo "$as_me:$LINENO: result: $ac_res" >&5
16330 echo "${ECHO_T}$ac_res" >&6; }
16331 if test `eval echo '${'$as_ac_var'}'` = yes; then
16332   cat >>confdefs.h <<_ACEOF
16333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16334 _ACEOF
16335
16336 fi
16337 done
16338
16339 LIBS="$ac_wine_check_funcs_save_LIBS"
16340
16341 if test "$ac_cv_func_poll" = no
16342 then
16343     { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
16344 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
16345 if test "${ac_cv_lib_poll_poll+set}" = set; then
16346   echo $ECHO_N "(cached) $ECHO_C" >&6
16347 else
16348   ac_check_lib_save_LIBS=$LIBS
16349 LIBS="-lpoll  $LIBS"
16350 cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h.  */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h.  */
16356
16357 /* Override any GCC internal prototype to avoid an error.
16358    Use char because int might match the return type of a GCC
16359    builtin and then its argument prototype would still apply.  */
16360 #ifdef __cplusplus
16361 extern "C"
16362 #endif
16363 char poll ();
16364 int
16365 main ()
16366 {
16367 return poll ();
16368   ;
16369   return 0;
16370 }
16371 _ACEOF
16372 rm -f conftest.$ac_objext conftest$ac_exeext
16373 if { (ac_try="$ac_link"
16374 case "(($ac_try" in
16375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376   *) ac_try_echo=$ac_try;;
16377 esac
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379   (eval "$ac_link") 2>conftest.er1
16380   ac_status=$?
16381   grep -v '^ *+' conftest.er1 >conftest.err
16382   rm -f conftest.er1
16383   cat conftest.err >&5
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); } && {
16386          test -z "$ac_c_werror_flag" ||
16387          test ! -s conftest.err
16388        } && test -s conftest$ac_exeext &&
16389        $as_test_x conftest$ac_exeext; then
16390   ac_cv_lib_poll_poll=yes
16391 else
16392   echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16394
16395         ac_cv_lib_poll_poll=no
16396 fi
16397
16398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16399       conftest$ac_exeext conftest.$ac_ext
16400 LIBS=$ac_check_lib_save_LIBS
16401 fi
16402 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
16403 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
16404 if test $ac_cv_lib_poll_poll = yes; then
16405   cat >>confdefs.h <<\_ACEOF
16406 #define HAVE_POLL 1
16407 _ACEOF
16408  LIBPOLL="-lpoll"
16409
16410 fi
16411
16412 fi
16413
16414 if test "$ac_cv_func_gethostbyname" = no
16415 then
16416
16417 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
16418 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
16419 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
16420   echo $ECHO_N "(cached) $ECHO_C" >&6
16421 else
16422   ac_check_lib_save_LIBS=$LIBS
16423 LIBS="-lnsl  $LIBS"
16424 cat >conftest.$ac_ext <<_ACEOF
16425 /* confdefs.h.  */
16426 _ACEOF
16427 cat confdefs.h >>conftest.$ac_ext
16428 cat >>conftest.$ac_ext <<_ACEOF
16429 /* end confdefs.h.  */
16430
16431 /* Override any GCC internal prototype to avoid an error.
16432    Use char because int might match the return type of a GCC
16433    builtin and then its argument prototype would still apply.  */
16434 #ifdef __cplusplus
16435 extern "C"
16436 #endif
16437 char gethostbyname ();
16438 int
16439 main ()
16440 {
16441 return gethostbyname ();
16442   ;
16443   return 0;
16444 }
16445 _ACEOF
16446 rm -f conftest.$ac_objext conftest$ac_exeext
16447 if { (ac_try="$ac_link"
16448 case "(($ac_try" in
16449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450   *) ac_try_echo=$ac_try;;
16451 esac
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453   (eval "$ac_link") 2>conftest.er1
16454   ac_status=$?
16455   grep -v '^ *+' conftest.er1 >conftest.err
16456   rm -f conftest.er1
16457   cat conftest.err >&5
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); } && {
16460          test -z "$ac_c_werror_flag" ||
16461          test ! -s conftest.err
16462        } && test -s conftest$ac_exeext &&
16463        $as_test_x conftest$ac_exeext; then
16464   ac_cv_lib_nsl_gethostbyname=yes
16465 else
16466   echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16468
16469         ac_cv_lib_nsl_gethostbyname=no
16470 fi
16471
16472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16473       conftest$ac_exeext conftest.$ac_ext
16474 LIBS=$ac_check_lib_save_LIBS
16475 fi
16476 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
16477 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
16478 if test $ac_cv_lib_nsl_gethostbyname = yes; then
16479   cat >>confdefs.h <<_ACEOF
16480 #define HAVE_LIBNSL 1
16481 _ACEOF
16482
16483   LIBS="-lnsl $LIBS"
16484
16485 fi
16486
16487 fi
16488
16489 if test "$ac_cv_func_connect" = no
16490 then
16491
16492 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
16493 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
16494 if test "${ac_cv_lib_socket_connect+set}" = set; then
16495   echo $ECHO_N "(cached) $ECHO_C" >&6
16496 else
16497   ac_check_lib_save_LIBS=$LIBS
16498 LIBS="-lsocket  $LIBS"
16499 cat >conftest.$ac_ext <<_ACEOF
16500 /* confdefs.h.  */
16501 _ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h.  */
16505
16506 /* Override any GCC internal prototype to avoid an error.
16507    Use char because int might match the return type of a GCC
16508    builtin and then its argument prototype would still apply.  */
16509 #ifdef __cplusplus
16510 extern "C"
16511 #endif
16512 char connect ();
16513 int
16514 main ()
16515 {
16516 return connect ();
16517   ;
16518   return 0;
16519 }
16520 _ACEOF
16521 rm -f conftest.$ac_objext conftest$ac_exeext
16522 if { (ac_try="$ac_link"
16523 case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528   (eval "$ac_link") 2>conftest.er1
16529   ac_status=$?
16530   grep -v '^ *+' conftest.er1 >conftest.err
16531   rm -f conftest.er1
16532   cat conftest.err >&5
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); } && {
16535          test -z "$ac_c_werror_flag" ||
16536          test ! -s conftest.err
16537        } && test -s conftest$ac_exeext &&
16538        $as_test_x conftest$ac_exeext; then
16539   ac_cv_lib_socket_connect=yes
16540 else
16541   echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16543
16544         ac_cv_lib_socket_connect=no
16545 fi
16546
16547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16548       conftest$ac_exeext conftest.$ac_ext
16549 LIBS=$ac_check_lib_save_LIBS
16550 fi
16551 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
16552 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
16553 if test $ac_cv_lib_socket_connect = yes; then
16554   cat >>confdefs.h <<_ACEOF
16555 #define HAVE_LIBSOCKET 1
16556 _ACEOF
16557
16558   LIBS="-lsocket $LIBS"
16559
16560 fi
16561
16562 fi
16563
16564 if test "$ac_cv_func_inet_aton" = no
16565 then
16566
16567 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16568 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16569 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16570   echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572   ac_check_lib_save_LIBS=$LIBS
16573 LIBS="-lresolv  $LIBS"
16574 cat >conftest.$ac_ext <<_ACEOF
16575 /* confdefs.h.  */
16576 _ACEOF
16577 cat confdefs.h >>conftest.$ac_ext
16578 cat >>conftest.$ac_ext <<_ACEOF
16579 /* end confdefs.h.  */
16580
16581 /* Override any GCC internal prototype to avoid an error.
16582    Use char because int might match the return type of a GCC
16583    builtin and then its argument prototype would still apply.  */
16584 #ifdef __cplusplus
16585 extern "C"
16586 #endif
16587 char inet_aton ();
16588 int
16589 main ()
16590 {
16591 return inet_aton ();
16592   ;
16593   return 0;
16594 }
16595 _ACEOF
16596 rm -f conftest.$ac_objext conftest$ac_exeext
16597 if { (ac_try="$ac_link"
16598 case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603   (eval "$ac_link") 2>conftest.er1
16604   ac_status=$?
16605   grep -v '^ *+' conftest.er1 >conftest.err
16606   rm -f conftest.er1
16607   cat conftest.err >&5
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } && {
16610          test -z "$ac_c_werror_flag" ||
16611          test ! -s conftest.err
16612        } && test -s conftest$ac_exeext &&
16613        $as_test_x conftest$ac_exeext; then
16614   ac_cv_lib_resolv_inet_aton=yes
16615 else
16616   echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16618
16619         ac_cv_lib_resolv_inet_aton=no
16620 fi
16621
16622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16623       conftest$ac_exeext conftest.$ac_ext
16624 LIBS=$ac_check_lib_save_LIBS
16625 fi
16626 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16627 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16628 if test $ac_cv_lib_resolv_inet_aton = yes; then
16629   cat >>confdefs.h <<_ACEOF
16630 #define HAVE_LIBRESOLV 1
16631 _ACEOF
16632
16633   LIBS="-lresolv $LIBS"
16634
16635 fi
16636
16637 fi
16638
16639
16640 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16641 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
16642 if test "${ac_cv_c_const+set}" = set; then
16643   echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645   cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h.  */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h.  */
16651
16652 int
16653 main ()
16654 {
16655 /* FIXME: Include the comments suggested by Paul. */
16656 #ifndef __cplusplus
16657   /* Ultrix mips cc rejects this.  */
16658   typedef int charset[2];
16659   const charset cs;
16660   /* SunOS 4.1.1 cc rejects this.  */
16661   char const *const *pcpcc;
16662   char **ppc;
16663   /* NEC SVR4.0.2 mips cc rejects this.  */
16664   struct point {int x, y;};
16665   static struct point const zero = {0,0};
16666   /* AIX XL C 1.02.0.0 rejects this.
16667      It does not let you subtract one const X* pointer from another in
16668      an arm of an if-expression whose if-part is not a constant
16669      expression */
16670   const char *g = "string";
16671   pcpcc = &g + (g ? g-g : 0);
16672   /* HPUX 7.0 cc rejects these. */
16673   ++pcpcc;
16674   ppc = (char**) pcpcc;
16675   pcpcc = (char const *const *) ppc;
16676   { /* SCO 3.2v4 cc rejects this.  */
16677     char *t;
16678     char const *s = 0 ? (char *) 0 : (char const *) 0;
16679
16680     *t++ = 0;
16681     if (s) return 0;
16682   }
16683   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16684     int x[] = {25, 17};
16685     const int *foo = &x[0];
16686     ++foo;
16687   }
16688   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16689     typedef const int *iptr;
16690     iptr p = 0;
16691     ++p;
16692   }
16693   { /* AIX XL C 1.02.0.0 rejects this saying
16694        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16695     struct s { int j; const int *ap[3]; };
16696     struct s *b; b->j = 5;
16697   }
16698   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16699     const int foo = 10;
16700     if (!foo) return 0;
16701   }
16702   return !cs[0] && !zero.x;
16703 #endif
16704
16705   ;
16706   return 0;
16707 }
16708 _ACEOF
16709 rm -f conftest.$ac_objext
16710 if { (ac_try="$ac_compile"
16711 case "(($ac_try" in
16712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713   *) ac_try_echo=$ac_try;;
16714 esac
16715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716   (eval "$ac_compile") 2>conftest.er1
16717   ac_status=$?
16718   grep -v '^ *+' conftest.er1 >conftest.err
16719   rm -f conftest.er1
16720   cat conftest.err >&5
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); } && {
16723          test -z "$ac_c_werror_flag" ||
16724          test ! -s conftest.err
16725        } && test -s conftest.$ac_objext; then
16726   ac_cv_c_const=yes
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731         ac_cv_c_const=no
16732 fi
16733
16734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16735 fi
16736 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16737 echo "${ECHO_T}$ac_cv_c_const" >&6; }
16738 if test $ac_cv_c_const = no; then
16739
16740 cat >>confdefs.h <<\_ACEOF
16741 #define const
16742 _ACEOF
16743
16744 fi
16745
16746 { echo "$as_me:$LINENO: checking for inline" >&5
16747 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
16748 if test "${ac_cv_c_inline+set}" = set; then
16749   echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751   ac_cv_c_inline=no
16752 for ac_kw in inline __inline__ __inline; do
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 #ifndef __cplusplus
16760 typedef int foo_t;
16761 static $ac_kw foo_t static_foo () {return 0; }
16762 $ac_kw foo_t foo () {return 0; }
16763 #endif
16764
16765 _ACEOF
16766 rm -f conftest.$ac_objext
16767 if { (ac_try="$ac_compile"
16768 case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773   (eval "$ac_compile") 2>conftest.er1
16774   ac_status=$?
16775   grep -v '^ *+' conftest.er1 >conftest.err
16776   rm -f conftest.er1
16777   cat conftest.err >&5
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); } && {
16780          test -z "$ac_c_werror_flag" ||
16781          test ! -s conftest.err
16782        } && test -s conftest.$ac_objext; then
16783   ac_cv_c_inline=$ac_kw
16784 else
16785   echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16787
16788
16789 fi
16790
16791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16792   test "$ac_cv_c_inline" != no && break
16793 done
16794
16795 fi
16796 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16797 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
16798
16799
16800 case $ac_cv_c_inline in
16801   inline | yes) ;;
16802   *)
16803     case $ac_cv_c_inline in
16804       no) ac_val=;;
16805       *) ac_val=$ac_cv_c_inline;;
16806     esac
16807     cat >>confdefs.h <<_ACEOF
16808 #ifndef __cplusplus
16809 #define inline $ac_val
16810 #endif
16811 _ACEOF
16812     ;;
16813 esac
16814
16815 { echo "$as_me:$LINENO: checking for mode_t" >&5
16816 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
16817 if test "${ac_cv_type_mode_t+set}" = set; then
16818   echo $ECHO_N "(cached) $ECHO_C" >&6
16819 else
16820   cat >conftest.$ac_ext <<_ACEOF
16821 /* confdefs.h.  */
16822 _ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h.  */
16826 $ac_includes_default
16827 typedef mode_t ac__type_new_;
16828 int
16829 main ()
16830 {
16831 if ((ac__type_new_ *) 0)
16832   return 0;
16833 if (sizeof (ac__type_new_))
16834   return 0;
16835   ;
16836   return 0;
16837 }
16838 _ACEOF
16839 rm -f conftest.$ac_objext
16840 if { (ac_try="$ac_compile"
16841 case "(($ac_try" in
16842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843   *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846   (eval "$ac_compile") 2>conftest.er1
16847   ac_status=$?
16848   grep -v '^ *+' conftest.er1 >conftest.err
16849   rm -f conftest.er1
16850   cat conftest.err >&5
16851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   (exit $ac_status); } && {
16853          test -z "$ac_c_werror_flag" ||
16854          test ! -s conftest.err
16855        } && test -s conftest.$ac_objext; then
16856   ac_cv_type_mode_t=yes
16857 else
16858   echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16860
16861         ac_cv_type_mode_t=no
16862 fi
16863
16864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865 fi
16866 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16867 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
16868 if test $ac_cv_type_mode_t = yes; then
16869
16870 cat >>confdefs.h <<_ACEOF
16871 #define HAVE_MODE_T 1
16872 _ACEOF
16873
16874
16875 fi
16876 { echo "$as_me:$LINENO: checking for off_t" >&5
16877 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
16878 if test "${ac_cv_type_off_t+set}" = set; then
16879   echo $ECHO_N "(cached) $ECHO_C" >&6
16880 else
16881   cat >conftest.$ac_ext <<_ACEOF
16882 /* confdefs.h.  */
16883 _ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h.  */
16887 $ac_includes_default
16888 typedef off_t ac__type_new_;
16889 int
16890 main ()
16891 {
16892 if ((ac__type_new_ *) 0)
16893   return 0;
16894 if (sizeof (ac__type_new_))
16895   return 0;
16896   ;
16897   return 0;
16898 }
16899 _ACEOF
16900 rm -f conftest.$ac_objext
16901 if { (ac_try="$ac_compile"
16902 case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907   (eval "$ac_compile") 2>conftest.er1
16908   ac_status=$?
16909   grep -v '^ *+' conftest.er1 >conftest.err
16910   rm -f conftest.er1
16911   cat conftest.err >&5
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); } && {
16914          test -z "$ac_c_werror_flag" ||
16915          test ! -s conftest.err
16916        } && test -s conftest.$ac_objext; then
16917   ac_cv_type_off_t=yes
16918 else
16919   echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16921
16922         ac_cv_type_off_t=no
16923 fi
16924
16925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926 fi
16927 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16928 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
16929 if test $ac_cv_type_off_t = yes; then
16930
16931 cat >>confdefs.h <<_ACEOF
16932 #define HAVE_OFF_T 1
16933 _ACEOF
16934
16935
16936 fi
16937 { echo "$as_me:$LINENO: checking for pid_t" >&5
16938 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16939 if test "${ac_cv_type_pid_t+set}" = set; then
16940   echo $ECHO_N "(cached) $ECHO_C" >&6
16941 else
16942   cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948 $ac_includes_default
16949 typedef pid_t ac__type_new_;
16950 int
16951 main ()
16952 {
16953 if ((ac__type_new_ *) 0)
16954   return 0;
16955 if (sizeof (ac__type_new_))
16956   return 0;
16957   ;
16958   return 0;
16959 }
16960 _ACEOF
16961 rm -f conftest.$ac_objext
16962 if { (ac_try="$ac_compile"
16963 case "(($ac_try" in
16964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965   *) ac_try_echo=$ac_try;;
16966 esac
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968   (eval "$ac_compile") 2>conftest.er1
16969   ac_status=$?
16970   grep -v '^ *+' conftest.er1 >conftest.err
16971   rm -f conftest.er1
16972   cat conftest.err >&5
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); } && {
16975          test -z "$ac_c_werror_flag" ||
16976          test ! -s conftest.err
16977        } && test -s conftest.$ac_objext; then
16978   ac_cv_type_pid_t=yes
16979 else
16980   echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16982
16983         ac_cv_type_pid_t=no
16984 fi
16985
16986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987 fi
16988 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16989 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16990 if test $ac_cv_type_pid_t = yes; then
16991
16992 cat >>confdefs.h <<_ACEOF
16993 #define HAVE_PID_T 1
16994 _ACEOF
16995
16996
16997 fi
16998 { echo "$as_me:$LINENO: checking for size_t" >&5
16999 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17000 if test "${ac_cv_type_size_t+set}" = set; then
17001   echo $ECHO_N "(cached) $ECHO_C" >&6
17002 else
17003   cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h.  */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h.  */
17009 $ac_includes_default
17010 typedef size_t ac__type_new_;
17011 int
17012 main ()
17013 {
17014 if ((ac__type_new_ *) 0)
17015   return 0;
17016 if (sizeof (ac__type_new_))
17017   return 0;
17018   ;
17019   return 0;
17020 }
17021 _ACEOF
17022 rm -f conftest.$ac_objext
17023 if { (ac_try="$ac_compile"
17024 case "(($ac_try" in
17025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026   *) ac_try_echo=$ac_try;;
17027 esac
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029   (eval "$ac_compile") 2>conftest.er1
17030   ac_status=$?
17031   grep -v '^ *+' conftest.er1 >conftest.err
17032   rm -f conftest.er1
17033   cat conftest.err >&5
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); } && {
17036          test -z "$ac_c_werror_flag" ||
17037          test ! -s conftest.err
17038        } && test -s conftest.$ac_objext; then
17039   ac_cv_type_size_t=yes
17040 else
17041   echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17043
17044         ac_cv_type_size_t=no
17045 fi
17046
17047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17048 fi
17049 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17050 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17051 if test $ac_cv_type_size_t = yes; then
17052
17053 cat >>confdefs.h <<_ACEOF
17054 #define HAVE_SIZE_T 1
17055 _ACEOF
17056
17057
17058 fi
17059 { echo "$as_me:$LINENO: checking for ssize_t" >&5
17060 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
17061 if test "${ac_cv_type_ssize_t+set}" = set; then
17062   echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064   cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h.  */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h.  */
17070 $ac_includes_default
17071 typedef ssize_t ac__type_new_;
17072 int
17073 main ()
17074 {
17075 if ((ac__type_new_ *) 0)
17076   return 0;
17077 if (sizeof (ac__type_new_))
17078   return 0;
17079   ;
17080   return 0;
17081 }
17082 _ACEOF
17083 rm -f conftest.$ac_objext
17084 if { (ac_try="$ac_compile"
17085 case "(($ac_try" in
17086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087   *) ac_try_echo=$ac_try;;
17088 esac
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090   (eval "$ac_compile") 2>conftest.er1
17091   ac_status=$?
17092   grep -v '^ *+' conftest.er1 >conftest.err
17093   rm -f conftest.er1
17094   cat conftest.err >&5
17095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096   (exit $ac_status); } && {
17097          test -z "$ac_c_werror_flag" ||
17098          test ! -s conftest.err
17099        } && test -s conftest.$ac_objext; then
17100   ac_cv_type_ssize_t=yes
17101 else
17102   echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105         ac_cv_type_ssize_t=no
17106 fi
17107
17108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109 fi
17110 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17111 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
17112 if test $ac_cv_type_ssize_t = yes; then
17113
17114 cat >>confdefs.h <<_ACEOF
17115 #define HAVE_SSIZE_T 1
17116 _ACEOF
17117
17118
17119 fi
17120 { echo "$as_me:$LINENO: checking for long long" >&5
17121 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
17122 if test "${ac_cv_type_long_long+set}" = set; then
17123   echo $ECHO_N "(cached) $ECHO_C" >&6
17124 else
17125   cat >conftest.$ac_ext <<_ACEOF
17126 /* confdefs.h.  */
17127 _ACEOF
17128 cat confdefs.h >>conftest.$ac_ext
17129 cat >>conftest.$ac_ext <<_ACEOF
17130 /* end confdefs.h.  */
17131 $ac_includes_default
17132 typedef long long ac__type_new_;
17133 int
17134 main ()
17135 {
17136 if ((ac__type_new_ *) 0)
17137   return 0;
17138 if (sizeof (ac__type_new_))
17139   return 0;
17140   ;
17141   return 0;
17142 }
17143 _ACEOF
17144 rm -f conftest.$ac_objext
17145 if { (ac_try="$ac_compile"
17146 case "(($ac_try" in
17147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148   *) ac_try_echo=$ac_try;;
17149 esac
17150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151   (eval "$ac_compile") 2>conftest.er1
17152   ac_status=$?
17153   grep -v '^ *+' conftest.er1 >conftest.err
17154   rm -f conftest.er1
17155   cat conftest.err >&5
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); } && {
17158          test -z "$ac_c_werror_flag" ||
17159          test ! -s conftest.err
17160        } && test -s conftest.$ac_objext; then
17161   ac_cv_type_long_long=yes
17162 else
17163   echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17165
17166         ac_cv_type_long_long=no
17167 fi
17168
17169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17170 fi
17171 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17172 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
17173 if test $ac_cv_type_long_long = yes; then
17174
17175 cat >>confdefs.h <<_ACEOF
17176 #define HAVE_LONG_LONG 1
17177 _ACEOF
17178
17179
17180 fi
17181 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17182 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
17183 if test "${ac_cv_type_fsblkcnt_t+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 $ac_includes_default
17193 typedef fsblkcnt_t ac__type_new_;
17194 int
17195 main ()
17196 {
17197 if ((ac__type_new_ *) 0)
17198   return 0;
17199 if (sizeof (ac__type_new_))
17200   return 0;
17201   ;
17202   return 0;
17203 }
17204 _ACEOF
17205 rm -f conftest.$ac_objext
17206 if { (ac_try="$ac_compile"
17207 case "(($ac_try" in
17208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209   *) ac_try_echo=$ac_try;;
17210 esac
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212   (eval "$ac_compile") 2>conftest.er1
17213   ac_status=$?
17214   grep -v '^ *+' conftest.er1 >conftest.err
17215   rm -f conftest.er1
17216   cat conftest.err >&5
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); } && {
17219          test -z "$ac_c_werror_flag" ||
17220          test ! -s conftest.err
17221        } && test -s conftest.$ac_objext; then
17222   ac_cv_type_fsblkcnt_t=yes
17223 else
17224   echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227         ac_cv_type_fsblkcnt_t=no
17228 fi
17229
17230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17231 fi
17232 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17233 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
17234 if test $ac_cv_type_fsblkcnt_t = yes; then
17235
17236 cat >>confdefs.h <<_ACEOF
17237 #define HAVE_FSBLKCNT_T 1
17238 _ACEOF
17239
17240
17241 fi
17242 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17243 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
17244 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17245   echo $ECHO_N "(cached) $ECHO_C" >&6
17246 else
17247   cat >conftest.$ac_ext <<_ACEOF
17248 /* confdefs.h.  */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h.  */
17253 $ac_includes_default
17254 typedef fsfilcnt_t ac__type_new_;
17255 int
17256 main ()
17257 {
17258 if ((ac__type_new_ *) 0)
17259   return 0;
17260 if (sizeof (ac__type_new_))
17261   return 0;
17262   ;
17263   return 0;
17264 }
17265 _ACEOF
17266 rm -f conftest.$ac_objext
17267 if { (ac_try="$ac_compile"
17268 case "(($ac_try" in
17269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270   *) ac_try_echo=$ac_try;;
17271 esac
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273   (eval "$ac_compile") 2>conftest.er1
17274   ac_status=$?
17275   grep -v '^ *+' conftest.er1 >conftest.err
17276   rm -f conftest.er1
17277   cat conftest.err >&5
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); } && {
17280          test -z "$ac_c_werror_flag" ||
17281          test ! -s conftest.err
17282        } && test -s conftest.$ac_objext; then
17283   ac_cv_type_fsfilcnt_t=yes
17284 else
17285   echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17287
17288         ac_cv_type_fsfilcnt_t=no
17289 fi
17290
17291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17292 fi
17293 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17294 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
17295 if test $ac_cv_type_fsfilcnt_t = yes; then
17296
17297 cat >>confdefs.h <<_ACEOF
17298 #define HAVE_FSFILCNT_T 1
17299 _ACEOF
17300
17301
17302 fi
17303
17304 { echo "$as_me:$LINENO: checking for sigset_t" >&5
17305 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
17306 if test "${ac_cv_type_sigset_t+set}" = set; then
17307   echo $ECHO_N "(cached) $ECHO_C" >&6
17308 else
17309   cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h.  */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h.  */
17315 #include <signal.h>
17316
17317 typedef sigset_t ac__type_new_;
17318 int
17319 main ()
17320 {
17321 if ((ac__type_new_ *) 0)
17322   return 0;
17323 if (sizeof (ac__type_new_))
17324   return 0;
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext
17330 if { (ac_try="$ac_compile"
17331 case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_compile") 2>conftest.er1
17337   ac_status=$?
17338   grep -v '^ *+' conftest.er1 >conftest.err
17339   rm -f conftest.er1
17340   cat conftest.err >&5
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); } && {
17343          test -z "$ac_c_werror_flag" ||
17344          test ! -s conftest.err
17345        } && test -s conftest.$ac_objext; then
17346   ac_cv_type_sigset_t=yes
17347 else
17348   echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17350
17351         ac_cv_type_sigset_t=no
17352 fi
17353
17354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17355 fi
17356 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17357 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
17358 if test $ac_cv_type_sigset_t = yes; then
17359
17360 cat >>confdefs.h <<_ACEOF
17361 #define HAVE_SIGSET_T 1
17362 _ACEOF
17363
17364
17365 fi
17366
17367 { echo "$as_me:$LINENO: checking for request_sense" >&5
17368 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
17369 if test "${ac_cv_type_request_sense+set}" = set; then
17370   echo $ECHO_N "(cached) $ECHO_C" >&6
17371 else
17372   cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h.  */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h.  */
17378 #include <linux/cdrom.h>
17379
17380 typedef request_sense ac__type_new_;
17381 int
17382 main ()
17383 {
17384 if ((ac__type_new_ *) 0)
17385   return 0;
17386 if (sizeof (ac__type_new_))
17387   return 0;
17388   ;
17389   return 0;
17390 }
17391 _ACEOF
17392 rm -f conftest.$ac_objext
17393 if { (ac_try="$ac_compile"
17394 case "(($ac_try" in
17395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396   *) ac_try_echo=$ac_try;;
17397 esac
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399   (eval "$ac_compile") 2>conftest.er1
17400   ac_status=$?
17401   grep -v '^ *+' conftest.er1 >conftest.err
17402   rm -f conftest.er1
17403   cat conftest.err >&5
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); } && {
17406          test -z "$ac_c_werror_flag" ||
17407          test ! -s conftest.err
17408        } && test -s conftest.$ac_objext; then
17409   ac_cv_type_request_sense=yes
17410 else
17411   echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17413
17414         ac_cv_type_request_sense=no
17415 fi
17416
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418 fi
17419 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
17420 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
17421 if test $ac_cv_type_request_sense = yes; then
17422
17423 cat >>confdefs.h <<_ACEOF
17424 #define HAVE_REQUEST_SENSE 1
17425 _ACEOF
17426
17427
17428 fi
17429
17430
17431 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
17432 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
17433 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
17434   echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436   cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h.  */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h.  */
17442 #ifdef HAVE_LINUX_INPUT_H
17443 #include <linux/input.h>
17444 #endif
17445
17446 int
17447 main ()
17448 {
17449 static struct ff_effect ac_aggr;
17450 if (ac_aggr.direction)
17451 return 0;
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   ac_cv_member_struct_ff_effect_direction=yes
17474 else
17475   echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17477
17478         cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h.  */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h.  */
17484 #ifdef HAVE_LINUX_INPUT_H
17485 #include <linux/input.h>
17486 #endif
17487
17488 int
17489 main ()
17490 {
17491 static struct ff_effect ac_aggr;
17492 if (sizeof ac_aggr.direction)
17493 return 0;
17494   ;
17495   return 0;
17496 }
17497 _ACEOF
17498 rm -f conftest.$ac_objext
17499 if { (ac_try="$ac_compile"
17500 case "(($ac_try" in
17501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502   *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505   (eval "$ac_compile") 2>conftest.er1
17506   ac_status=$?
17507   grep -v '^ *+' conftest.er1 >conftest.err
17508   rm -f conftest.er1
17509   cat conftest.err >&5
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); } && {
17512          test -z "$ac_c_werror_flag" ||
17513          test ! -s conftest.err
17514        } && test -s conftest.$ac_objext; then
17515   ac_cv_member_struct_ff_effect_direction=yes
17516 else
17517   echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17519
17520         ac_cv_member_struct_ff_effect_direction=no
17521 fi
17522
17523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17524 fi
17525
17526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17527 fi
17528 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
17529 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
17530 if test $ac_cv_member_struct_ff_effect_direction = yes; then
17531
17532 cat >>confdefs.h <<_ACEOF
17533 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
17534 _ACEOF
17535
17536
17537 fi
17538
17539
17540 { echo "$as_me:$LINENO: checking for sigaddset" >&5
17541 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
17542 if test "${wine_cv_have_sigaddset+set}" = set; then
17543   echo $ECHO_N "(cached) $ECHO_C" >&6
17544 else
17545   cat >conftest.$ac_ext <<_ACEOF
17546 /* confdefs.h.  */
17547 _ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h.  */
17551 #include <signal.h>
17552 int
17553 main ()
17554 {
17555 sigset_t set; sigaddset(&set,SIGTERM);
17556   ;
17557   return 0;
17558 }
17559 _ACEOF
17560 rm -f conftest.$ac_objext conftest$ac_exeext
17561 if { (ac_try="$ac_link"
17562 case "(($ac_try" in
17563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564   *) ac_try_echo=$ac_try;;
17565 esac
17566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567   (eval "$ac_link") 2>conftest.er1
17568   ac_status=$?
17569   grep -v '^ *+' conftest.er1 >conftest.err
17570   rm -f conftest.er1
17571   cat conftest.err >&5
17572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573   (exit $ac_status); } && {
17574          test -z "$ac_c_werror_flag" ||
17575          test ! -s conftest.err
17576        } && test -s conftest$ac_exeext &&
17577        $as_test_x conftest$ac_exeext; then
17578   wine_cv_have_sigaddset=yes
17579 else
17580   echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17582
17583         wine_cv_have_sigaddset=no
17584 fi
17585
17586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17587       conftest$ac_exeext conftest.$ac_ext
17588 fi
17589 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17590 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
17591 if test "$wine_cv_have_sigaddset" = "yes"
17592 then
17593
17594 cat >>confdefs.h <<\_ACEOF
17595 #define HAVE_SIGADDSET 1
17596 _ACEOF
17597
17598 fi
17599
17600
17601 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17602 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
17603 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17604   echo $ECHO_N "(cached) $ECHO_C" >&6
17605 else
17606   cat >conftest.$ac_ext <<_ACEOF
17607 /* confdefs.h.  */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h.  */
17612
17613 #include <netdb.h>
17614
17615 int
17616 main ()
17617 {
17618
17619     char *name=NULL;
17620     struct hostent he;
17621     struct hostent *result;
17622     char *buf=NULL;
17623     int bufsize=0;
17624     int res,errnr;
17625     char *addr=NULL;
17626     int addrlen=0;
17627     int addrtype=0;
17628     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17629     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17630
17631   ;
17632   return 0;
17633 }
17634 _ACEOF
17635 rm -f conftest.$ac_objext conftest$ac_exeext
17636 if { (ac_try="$ac_link"
17637 case "(($ac_try" in
17638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639   *) ac_try_echo=$ac_try;;
17640 esac
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642   (eval "$ac_link") 2>conftest.er1
17643   ac_status=$?
17644   grep -v '^ *+' conftest.er1 >conftest.err
17645   rm -f conftest.er1
17646   cat conftest.err >&5
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); } && {
17649          test -z "$ac_c_werror_flag" ||
17650          test ! -s conftest.err
17651        } && test -s conftest$ac_exeext &&
17652        $as_test_x conftest$ac_exeext; then
17653   wine_cv_linux_gethostbyname_r_6=yes
17654 else
17655   echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17657
17658         wine_cv_linux_gethostbyname_r_6=no
17659
17660 fi
17661
17662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17663       conftest$ac_exeext conftest.$ac_ext
17664
17665 fi
17666 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17667 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
17668    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17669    then
17670
17671 cat >>confdefs.h <<\_ACEOF
17672 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17673 _ACEOF
17674
17675    fi
17676
17677 if test "$ac_cv_header_linux_joystick_h" = "yes"
17678 then
17679    { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17680 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
17681 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17682   echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684   cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h.  */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h.  */
17690
17691         #include <sys/ioctl.h>
17692         #include <linux/joystick.h>
17693
17694         struct js_event blub;
17695         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17696         #error "no 2.2 header"
17697         #endif
17698
17699 int
17700 main ()
17701 {
17702 /*empty*/
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext
17708 if { (ac_try="$ac_compile"
17709 case "(($ac_try" in
17710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711   *) ac_try_echo=$ac_try;;
17712 esac
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714   (eval "$ac_compile") 2>conftest.er1
17715   ac_status=$?
17716   grep -v '^ *+' conftest.er1 >conftest.err
17717   rm -f conftest.er1
17718   cat conftest.err >&5
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } && {
17721          test -z "$ac_c_werror_flag" ||
17722          test ! -s conftest.err
17723        } && test -s conftest.$ac_objext; then
17724   wine_cv_linux_joystick_22_api=yes
17725 else
17726   echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17728
17729         wine_cv_linux_joystick_22_api=no
17730 fi
17731
17732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17733
17734 fi
17735 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17736 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
17737    if test "$wine_cv_linux_joystick_22_api" = "yes"
17738    then
17739
17740 cat >>confdefs.h <<\_ACEOF
17741 #define HAVE_LINUX_22_JOYSTICK_API 1
17742 _ACEOF
17743
17744    fi
17745 fi
17746
17747
17748 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17749 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
17750 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17751   echo $ECHO_N "(cached) $ECHO_C" >&6
17752 else
17753   cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759 #include <sys/types.h>
17760 #ifdef HAVE_SYS_PARAM_H
17761 # include <sys/param.h>
17762 #endif
17763 #ifdef HAVE_SYS_MOUNT_H
17764 # include <sys/mount.h>
17765 #endif
17766 #ifdef HAVE_SYS_VFS_H
17767 # include <sys/vfs.h>
17768 #endif
17769 #ifdef HAVE_SYS_STATFS_H
17770 # include <sys/statfs.h>
17771 #endif
17772
17773 int
17774 main ()
17775 {
17776 static struct statfs ac_aggr;
17777 if (ac_aggr.f_bfree)
17778 return 0;
17779   ;
17780   return 0;
17781 }
17782 _ACEOF
17783 rm -f conftest.$ac_objext
17784 if { (ac_try="$ac_compile"
17785 case "(($ac_try" in
17786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787   *) ac_try_echo=$ac_try;;
17788 esac
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790   (eval "$ac_compile") 2>conftest.er1
17791   ac_status=$?
17792   grep -v '^ *+' conftest.er1 >conftest.err
17793   rm -f conftest.er1
17794   cat conftest.err >&5
17795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796   (exit $ac_status); } && {
17797          test -z "$ac_c_werror_flag" ||
17798          test ! -s conftest.err
17799        } && test -s conftest.$ac_objext; then
17800   ac_cv_member_struct_statfs_f_bfree=yes
17801 else
17802   echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17804
17805         cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h.  */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h.  */
17811 #include <sys/types.h>
17812 #ifdef HAVE_SYS_PARAM_H
17813 # include <sys/param.h>
17814 #endif
17815 #ifdef HAVE_SYS_MOUNT_H
17816 # include <sys/mount.h>
17817 #endif
17818 #ifdef HAVE_SYS_VFS_H
17819 # include <sys/vfs.h>
17820 #endif
17821 #ifdef HAVE_SYS_STATFS_H
17822 # include <sys/statfs.h>
17823 #endif
17824
17825 int
17826 main ()
17827 {
17828 static struct statfs ac_aggr;
17829 if (sizeof ac_aggr.f_bfree)
17830 return 0;
17831   ;
17832   return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext
17836 if { (ac_try="$ac_compile"
17837 case "(($ac_try" in
17838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839   *) ac_try_echo=$ac_try;;
17840 esac
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842   (eval "$ac_compile") 2>conftest.er1
17843   ac_status=$?
17844   grep -v '^ *+' conftest.er1 >conftest.err
17845   rm -f conftest.er1
17846   cat conftest.err >&5
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); } && {
17849          test -z "$ac_c_werror_flag" ||
17850          test ! -s conftest.err
17851        } && test -s conftest.$ac_objext; then
17852   ac_cv_member_struct_statfs_f_bfree=yes
17853 else
17854   echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17856
17857         ac_cv_member_struct_statfs_f_bfree=no
17858 fi
17859
17860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17861 fi
17862
17863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17864 fi
17865 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17866 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
17867 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17868
17869 cat >>confdefs.h <<_ACEOF
17870 #define HAVE_STRUCT_STATFS_F_BFREE 1
17871 _ACEOF
17872
17873
17874 fi
17875 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17876 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
17877 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
17878   echo $ECHO_N "(cached) $ECHO_C" >&6
17879 else
17880   cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h.  */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h.  */
17886 #include <sys/types.h>
17887 #ifdef HAVE_SYS_PARAM_H
17888 # include <sys/param.h>
17889 #endif
17890 #ifdef HAVE_SYS_MOUNT_H
17891 # include <sys/mount.h>
17892 #endif
17893 #ifdef HAVE_SYS_VFS_H
17894 # include <sys/vfs.h>
17895 #endif
17896 #ifdef HAVE_SYS_STATFS_H
17897 # include <sys/statfs.h>
17898 #endif
17899
17900 int
17901 main ()
17902 {
17903 static struct statfs ac_aggr;
17904 if (ac_aggr.f_bavail)
17905 return 0;
17906   ;
17907   return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext
17911 if { (ac_try="$ac_compile"
17912 case "(($ac_try" in
17913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914   *) ac_try_echo=$ac_try;;
17915 esac
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917   (eval "$ac_compile") 2>conftest.er1
17918   ac_status=$?
17919   grep -v '^ *+' conftest.er1 >conftest.err
17920   rm -f conftest.er1
17921   cat conftest.err >&5
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); } && {
17924          test -z "$ac_c_werror_flag" ||
17925          test ! -s conftest.err
17926        } && test -s conftest.$ac_objext; then
17927   ac_cv_member_struct_statfs_f_bavail=yes
17928 else
17929   echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932         cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h.  */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h.  */
17938 #include <sys/types.h>
17939 #ifdef HAVE_SYS_PARAM_H
17940 # include <sys/param.h>
17941 #endif
17942 #ifdef HAVE_SYS_MOUNT_H
17943 # include <sys/mount.h>
17944 #endif
17945 #ifdef HAVE_SYS_VFS_H
17946 # include <sys/vfs.h>
17947 #endif
17948 #ifdef HAVE_SYS_STATFS_H
17949 # include <sys/statfs.h>
17950 #endif
17951
17952 int
17953 main ()
17954 {
17955 static struct statfs ac_aggr;
17956 if (sizeof ac_aggr.f_bavail)
17957 return 0;
17958   ;
17959   return 0;
17960 }
17961 _ACEOF
17962 rm -f conftest.$ac_objext
17963 if { (ac_try="$ac_compile"
17964 case "(($ac_try" in
17965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966   *) ac_try_echo=$ac_try;;
17967 esac
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969   (eval "$ac_compile") 2>conftest.er1
17970   ac_status=$?
17971   grep -v '^ *+' conftest.er1 >conftest.err
17972   rm -f conftest.er1
17973   cat conftest.err >&5
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); } && {
17976          test -z "$ac_c_werror_flag" ||
17977          test ! -s conftest.err
17978        } && test -s conftest.$ac_objext; then
17979   ac_cv_member_struct_statfs_f_bavail=yes
17980 else
17981   echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17983
17984         ac_cv_member_struct_statfs_f_bavail=no
17985 fi
17986
17987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17988 fi
17989
17990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17991 fi
17992 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17993 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
17994 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
17995
17996 cat >>confdefs.h <<_ACEOF
17997 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
17998 _ACEOF
17999
18000
18001 fi
18002 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18003 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
18004 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18005   echo $ECHO_N "(cached) $ECHO_C" >&6
18006 else
18007   cat >conftest.$ac_ext <<_ACEOF
18008 /* confdefs.h.  */
18009 _ACEOF
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h.  */
18013 #include <sys/types.h>
18014 #ifdef HAVE_SYS_PARAM_H
18015 # include <sys/param.h>
18016 #endif
18017 #ifdef HAVE_SYS_MOUNT_H
18018 # include <sys/mount.h>
18019 #endif
18020 #ifdef HAVE_SYS_VFS_H
18021 # include <sys/vfs.h>
18022 #endif
18023 #ifdef HAVE_SYS_STATFS_H
18024 # include <sys/statfs.h>
18025 #endif
18026
18027 int
18028 main ()
18029 {
18030 static struct statfs ac_aggr;
18031 if (ac_aggr.f_frsize)
18032 return 0;
18033   ;
18034   return 0;
18035 }
18036 _ACEOF
18037 rm -f conftest.$ac_objext
18038 if { (ac_try="$ac_compile"
18039 case "(($ac_try" in
18040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041   *) ac_try_echo=$ac_try;;
18042 esac
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044   (eval "$ac_compile") 2>conftest.er1
18045   ac_status=$?
18046   grep -v '^ *+' conftest.er1 >conftest.err
18047   rm -f conftest.er1
18048   cat conftest.err >&5
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); } && {
18051          test -z "$ac_c_werror_flag" ||
18052          test ! -s conftest.err
18053        } && test -s conftest.$ac_objext; then
18054   ac_cv_member_struct_statfs_f_frsize=yes
18055 else
18056   echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18058
18059         cat >conftest.$ac_ext <<_ACEOF
18060 /* confdefs.h.  */
18061 _ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h.  */
18065 #include <sys/types.h>
18066 #ifdef HAVE_SYS_PARAM_H
18067 # include <sys/param.h>
18068 #endif
18069 #ifdef HAVE_SYS_MOUNT_H
18070 # include <sys/mount.h>
18071 #endif
18072 #ifdef HAVE_SYS_VFS_H
18073 # include <sys/vfs.h>
18074 #endif
18075 #ifdef HAVE_SYS_STATFS_H
18076 # include <sys/statfs.h>
18077 #endif
18078
18079 int
18080 main ()
18081 {
18082 static struct statfs ac_aggr;
18083 if (sizeof ac_aggr.f_frsize)
18084 return 0;
18085   ;
18086   return 0;
18087 }
18088 _ACEOF
18089 rm -f conftest.$ac_objext
18090 if { (ac_try="$ac_compile"
18091 case "(($ac_try" in
18092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093   *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096   (eval "$ac_compile") 2>conftest.er1
18097   ac_status=$?
18098   grep -v '^ *+' conftest.er1 >conftest.err
18099   rm -f conftest.er1
18100   cat conftest.err >&5
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); } && {
18103          test -z "$ac_c_werror_flag" ||
18104          test ! -s conftest.err
18105        } && test -s conftest.$ac_objext; then
18106   ac_cv_member_struct_statfs_f_frsize=yes
18107 else
18108   echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18110
18111         ac_cv_member_struct_statfs_f_frsize=no
18112 fi
18113
18114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18115 fi
18116
18117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18118 fi
18119 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18120 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
18121 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18122
18123 cat >>confdefs.h <<_ACEOF
18124 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18125 _ACEOF
18126
18127
18128 fi
18129 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18130 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
18131 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18132   echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18134   cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h.  */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h.  */
18140 #include <sys/types.h>
18141 #ifdef HAVE_SYS_PARAM_H
18142 # include <sys/param.h>
18143 #endif
18144 #ifdef HAVE_SYS_MOUNT_H
18145 # include <sys/mount.h>
18146 #endif
18147 #ifdef HAVE_SYS_VFS_H
18148 # include <sys/vfs.h>
18149 #endif
18150 #ifdef HAVE_SYS_STATFS_H
18151 # include <sys/statfs.h>
18152 #endif
18153
18154 int
18155 main ()
18156 {
18157 static struct statfs ac_aggr;
18158 if (ac_aggr.f_ffree)
18159 return 0;
18160   ;
18161   return 0;
18162 }
18163 _ACEOF
18164 rm -f conftest.$ac_objext
18165 if { (ac_try="$ac_compile"
18166 case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171   (eval "$ac_compile") 2>conftest.er1
18172   ac_status=$?
18173   grep -v '^ *+' conftest.er1 >conftest.err
18174   rm -f conftest.er1
18175   cat conftest.err >&5
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); } && {
18178          test -z "$ac_c_werror_flag" ||
18179          test ! -s conftest.err
18180        } && test -s conftest.$ac_objext; then
18181   ac_cv_member_struct_statfs_f_ffree=yes
18182 else
18183   echo "$as_me: failed program was:" >&5
18184 sed 's/^/| /' conftest.$ac_ext >&5
18185
18186         cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h.  */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h.  */
18192 #include <sys/types.h>
18193 #ifdef HAVE_SYS_PARAM_H
18194 # include <sys/param.h>
18195 #endif
18196 #ifdef HAVE_SYS_MOUNT_H
18197 # include <sys/mount.h>
18198 #endif
18199 #ifdef HAVE_SYS_VFS_H
18200 # include <sys/vfs.h>
18201 #endif
18202 #ifdef HAVE_SYS_STATFS_H
18203 # include <sys/statfs.h>
18204 #endif
18205
18206 int
18207 main ()
18208 {
18209 static struct statfs ac_aggr;
18210 if (sizeof ac_aggr.f_ffree)
18211 return 0;
18212   ;
18213   return 0;
18214 }
18215 _ACEOF
18216 rm -f conftest.$ac_objext
18217 if { (ac_try="$ac_compile"
18218 case "(($ac_try" in
18219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220   *) ac_try_echo=$ac_try;;
18221 esac
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223   (eval "$ac_compile") 2>conftest.er1
18224   ac_status=$?
18225   grep -v '^ *+' conftest.er1 >conftest.err
18226   rm -f conftest.er1
18227   cat conftest.err >&5
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); } && {
18230          test -z "$ac_c_werror_flag" ||
18231          test ! -s conftest.err
18232        } && test -s conftest.$ac_objext; then
18233   ac_cv_member_struct_statfs_f_ffree=yes
18234 else
18235   echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238         ac_cv_member_struct_statfs_f_ffree=no
18239 fi
18240
18241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18242 fi
18243
18244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18245 fi
18246 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18247 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
18248 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18249
18250 cat >>confdefs.h <<_ACEOF
18251 #define HAVE_STRUCT_STATFS_F_FFREE 1
18252 _ACEOF
18253
18254
18255 fi
18256 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18257 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
18258 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18259   echo $ECHO_N "(cached) $ECHO_C" >&6
18260 else
18261   cat >conftest.$ac_ext <<_ACEOF
18262 /* confdefs.h.  */
18263 _ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h.  */
18267 #include <sys/types.h>
18268 #ifdef HAVE_SYS_PARAM_H
18269 # include <sys/param.h>
18270 #endif
18271 #ifdef HAVE_SYS_MOUNT_H
18272 # include <sys/mount.h>
18273 #endif
18274 #ifdef HAVE_SYS_VFS_H
18275 # include <sys/vfs.h>
18276 #endif
18277 #ifdef HAVE_SYS_STATFS_H
18278 # include <sys/statfs.h>
18279 #endif
18280
18281 int
18282 main ()
18283 {
18284 static struct statfs ac_aggr;
18285 if (ac_aggr.f_favail)
18286 return 0;
18287   ;
18288   return 0;
18289 }
18290 _ACEOF
18291 rm -f conftest.$ac_objext
18292 if { (ac_try="$ac_compile"
18293 case "(($ac_try" in
18294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295   *) ac_try_echo=$ac_try;;
18296 esac
18297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298   (eval "$ac_compile") 2>conftest.er1
18299   ac_status=$?
18300   grep -v '^ *+' conftest.er1 >conftest.err
18301   rm -f conftest.er1
18302   cat conftest.err >&5
18303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304   (exit $ac_status); } && {
18305          test -z "$ac_c_werror_flag" ||
18306          test ! -s conftest.err
18307        } && test -s conftest.$ac_objext; then
18308   ac_cv_member_struct_statfs_f_favail=yes
18309 else
18310   echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18312
18313         cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h.  */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h.  */
18319 #include <sys/types.h>
18320 #ifdef HAVE_SYS_PARAM_H
18321 # include <sys/param.h>
18322 #endif
18323 #ifdef HAVE_SYS_MOUNT_H
18324 # include <sys/mount.h>
18325 #endif
18326 #ifdef HAVE_SYS_VFS_H
18327 # include <sys/vfs.h>
18328 #endif
18329 #ifdef HAVE_SYS_STATFS_H
18330 # include <sys/statfs.h>
18331 #endif
18332
18333 int
18334 main ()
18335 {
18336 static struct statfs ac_aggr;
18337 if (sizeof ac_aggr.f_favail)
18338 return 0;
18339   ;
18340   return 0;
18341 }
18342 _ACEOF
18343 rm -f conftest.$ac_objext
18344 if { (ac_try="$ac_compile"
18345 case "(($ac_try" in
18346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347   *) ac_try_echo=$ac_try;;
18348 esac
18349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350   (eval "$ac_compile") 2>conftest.er1
18351   ac_status=$?
18352   grep -v '^ *+' conftest.er1 >conftest.err
18353   rm -f conftest.er1
18354   cat conftest.err >&5
18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356   (exit $ac_status); } && {
18357          test -z "$ac_c_werror_flag" ||
18358          test ! -s conftest.err
18359        } && test -s conftest.$ac_objext; then
18360   ac_cv_member_struct_statfs_f_favail=yes
18361 else
18362   echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18364
18365         ac_cv_member_struct_statfs_f_favail=no
18366 fi
18367
18368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18369 fi
18370
18371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18372 fi
18373 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18374 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
18375 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18376
18377 cat >>confdefs.h <<_ACEOF
18378 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18379 _ACEOF
18380
18381
18382 fi
18383 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18384 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
18385 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18386   echo $ECHO_N "(cached) $ECHO_C" >&6
18387 else
18388   cat >conftest.$ac_ext <<_ACEOF
18389 /* confdefs.h.  */
18390 _ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h.  */
18394 #include <sys/types.h>
18395 #ifdef HAVE_SYS_PARAM_H
18396 # include <sys/param.h>
18397 #endif
18398 #ifdef HAVE_SYS_MOUNT_H
18399 # include <sys/mount.h>
18400 #endif
18401 #ifdef HAVE_SYS_VFS_H
18402 # include <sys/vfs.h>
18403 #endif
18404 #ifdef HAVE_SYS_STATFS_H
18405 # include <sys/statfs.h>
18406 #endif
18407
18408 int
18409 main ()
18410 {
18411 static struct statfs ac_aggr;
18412 if (ac_aggr.f_namelen)
18413 return 0;
18414   ;
18415   return 0;
18416 }
18417 _ACEOF
18418 rm -f conftest.$ac_objext
18419 if { (ac_try="$ac_compile"
18420 case "(($ac_try" in
18421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422   *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425   (eval "$ac_compile") 2>conftest.er1
18426   ac_status=$?
18427   grep -v '^ *+' conftest.er1 >conftest.err
18428   rm -f conftest.er1
18429   cat conftest.err >&5
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); } && {
18432          test -z "$ac_c_werror_flag" ||
18433          test ! -s conftest.err
18434        } && test -s conftest.$ac_objext; then
18435   ac_cv_member_struct_statfs_f_namelen=yes
18436 else
18437   echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18439
18440         cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h.  */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h.  */
18446 #include <sys/types.h>
18447 #ifdef HAVE_SYS_PARAM_H
18448 # include <sys/param.h>
18449 #endif
18450 #ifdef HAVE_SYS_MOUNT_H
18451 # include <sys/mount.h>
18452 #endif
18453 #ifdef HAVE_SYS_VFS_H
18454 # include <sys/vfs.h>
18455 #endif
18456 #ifdef HAVE_SYS_STATFS_H
18457 # include <sys/statfs.h>
18458 #endif
18459
18460 int
18461 main ()
18462 {
18463 static struct statfs ac_aggr;
18464 if (sizeof ac_aggr.f_namelen)
18465 return 0;
18466   ;
18467   return 0;
18468 }
18469 _ACEOF
18470 rm -f conftest.$ac_objext
18471 if { (ac_try="$ac_compile"
18472 case "(($ac_try" in
18473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474   *) ac_try_echo=$ac_try;;
18475 esac
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477   (eval "$ac_compile") 2>conftest.er1
18478   ac_status=$?
18479   grep -v '^ *+' conftest.er1 >conftest.err
18480   rm -f conftest.er1
18481   cat conftest.err >&5
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); } && {
18484          test -z "$ac_c_werror_flag" ||
18485          test ! -s conftest.err
18486        } && test -s conftest.$ac_objext; then
18487   ac_cv_member_struct_statfs_f_namelen=yes
18488 else
18489   echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18491
18492         ac_cv_member_struct_statfs_f_namelen=no
18493 fi
18494
18495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18496 fi
18497
18498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18499 fi
18500 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18501 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
18502 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18503
18504 cat >>confdefs.h <<_ACEOF
18505 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18506 _ACEOF
18507
18508
18509 fi
18510
18511
18512 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18513 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
18514 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18515   echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517   cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523 #ifdef HAVE_SYS_STATVFS_H
18524 #include <sys/statvfs.h>
18525 #endif
18526
18527 int
18528 main ()
18529 {
18530 static struct statvfs ac_aggr;
18531 if (ac_aggr.f_blocks)
18532 return 0;
18533   ;
18534   return 0;
18535 }
18536 _ACEOF
18537 rm -f conftest.$ac_objext
18538 if { (ac_try="$ac_compile"
18539 case "(($ac_try" in
18540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541   *) ac_try_echo=$ac_try;;
18542 esac
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544   (eval "$ac_compile") 2>conftest.er1
18545   ac_status=$?
18546   grep -v '^ *+' conftest.er1 >conftest.err
18547   rm -f conftest.er1
18548   cat conftest.err >&5
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); } && {
18551          test -z "$ac_c_werror_flag" ||
18552          test ! -s conftest.err
18553        } && test -s conftest.$ac_objext; then
18554   ac_cv_member_struct_statvfs_f_blocks=yes
18555 else
18556   echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18558
18559         cat >conftest.$ac_ext <<_ACEOF
18560 /* confdefs.h.  */
18561 _ACEOF
18562 cat confdefs.h >>conftest.$ac_ext
18563 cat >>conftest.$ac_ext <<_ACEOF
18564 /* end confdefs.h.  */
18565 #ifdef HAVE_SYS_STATVFS_H
18566 #include <sys/statvfs.h>
18567 #endif
18568
18569 int
18570 main ()
18571 {
18572 static struct statvfs ac_aggr;
18573 if (sizeof ac_aggr.f_blocks)
18574 return 0;
18575   ;
18576   return 0;
18577 }
18578 _ACEOF
18579 rm -f conftest.$ac_objext
18580 if { (ac_try="$ac_compile"
18581 case "(($ac_try" in
18582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583   *) ac_try_echo=$ac_try;;
18584 esac
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586   (eval "$ac_compile") 2>conftest.er1
18587   ac_status=$?
18588   grep -v '^ *+' conftest.er1 >conftest.err
18589   rm -f conftest.er1
18590   cat conftest.err >&5
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); } && {
18593          test -z "$ac_c_werror_flag" ||
18594          test ! -s conftest.err
18595        } && test -s conftest.$ac_objext; then
18596   ac_cv_member_struct_statvfs_f_blocks=yes
18597 else
18598   echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.$ac_ext >&5
18600
18601         ac_cv_member_struct_statvfs_f_blocks=no
18602 fi
18603
18604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18605 fi
18606
18607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18608 fi
18609 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18610 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
18611 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18612
18613 cat >>confdefs.h <<_ACEOF
18614 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18615 _ACEOF
18616
18617
18618 fi
18619
18620
18621 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18622 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
18623 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632 #include <sys/types.h>
18633 #ifdef HAVE_SYS_SOCKET_H
18634 # include <sys/socket.h>
18635 #endif
18636 #ifdef HAVE_SYS_UN_H
18637 # include <sys/un.h>
18638 #endif
18639
18640 int
18641 main ()
18642 {
18643 static struct msghdr ac_aggr;
18644 if (ac_aggr.msg_accrights)
18645 return 0;
18646   ;
18647   return 0;
18648 }
18649 _ACEOF
18650 rm -f conftest.$ac_objext
18651 if { (ac_try="$ac_compile"
18652 case "(($ac_try" in
18653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654   *) ac_try_echo=$ac_try;;
18655 esac
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657   (eval "$ac_compile") 2>conftest.er1
18658   ac_status=$?
18659   grep -v '^ *+' conftest.er1 >conftest.err
18660   rm -f conftest.er1
18661   cat conftest.err >&5
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); } && {
18664          test -z "$ac_c_werror_flag" ||
18665          test ! -s conftest.err
18666        } && test -s conftest.$ac_objext; then
18667   ac_cv_member_struct_msghdr_msg_accrights=yes
18668 else
18669   echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18671
18672         cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h.  */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h.  */
18678 #include <sys/types.h>
18679 #ifdef HAVE_SYS_SOCKET_H
18680 # include <sys/socket.h>
18681 #endif
18682 #ifdef HAVE_SYS_UN_H
18683 # include <sys/un.h>
18684 #endif
18685
18686 int
18687 main ()
18688 {
18689 static struct msghdr ac_aggr;
18690 if (sizeof ac_aggr.msg_accrights)
18691 return 0;
18692   ;
18693   return 0;
18694 }
18695 _ACEOF
18696 rm -f conftest.$ac_objext
18697 if { (ac_try="$ac_compile"
18698 case "(($ac_try" in
18699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700   *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703   (eval "$ac_compile") 2>conftest.er1
18704   ac_status=$?
18705   grep -v '^ *+' conftest.er1 >conftest.err
18706   rm -f conftest.er1
18707   cat conftest.err >&5
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); } && {
18710          test -z "$ac_c_werror_flag" ||
18711          test ! -s conftest.err
18712        } && test -s conftest.$ac_objext; then
18713   ac_cv_member_struct_msghdr_msg_accrights=yes
18714 else
18715   echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18717
18718         ac_cv_member_struct_msghdr_msg_accrights=no
18719 fi
18720
18721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18722 fi
18723
18724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18725 fi
18726 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18727 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
18728 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18729
18730 cat >>confdefs.h <<_ACEOF
18731 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18732 _ACEOF
18733
18734
18735 fi
18736 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18737 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
18738 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18739   echo $ECHO_N "(cached) $ECHO_C" >&6
18740 else
18741   cat >conftest.$ac_ext <<_ACEOF
18742 /* confdefs.h.  */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h.  */
18747 #include <sys/types.h>
18748 #ifdef HAVE_SYS_SOCKET_H
18749 # include <sys/socket.h>
18750 #endif
18751 #ifdef HAVE_SYS_UN_H
18752 # include <sys/un.h>
18753 #endif
18754
18755 int
18756 main ()
18757 {
18758 static struct sockaddr ac_aggr;
18759 if (ac_aggr.sa_len)
18760 return 0;
18761   ;
18762   return 0;
18763 }
18764 _ACEOF
18765 rm -f conftest.$ac_objext
18766 if { (ac_try="$ac_compile"
18767 case "(($ac_try" in
18768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769   *) ac_try_echo=$ac_try;;
18770 esac
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772   (eval "$ac_compile") 2>conftest.er1
18773   ac_status=$?
18774   grep -v '^ *+' conftest.er1 >conftest.err
18775   rm -f conftest.er1
18776   cat conftest.err >&5
18777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778   (exit $ac_status); } && {
18779          test -z "$ac_c_werror_flag" ||
18780          test ! -s conftest.err
18781        } && test -s conftest.$ac_objext; then
18782   ac_cv_member_struct_sockaddr_sa_len=yes
18783 else
18784   echo "$as_me: failed program was:" >&5
18785 sed 's/^/| /' conftest.$ac_ext >&5
18786
18787         cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h.  */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h.  */
18793 #include <sys/types.h>
18794 #ifdef HAVE_SYS_SOCKET_H
18795 # include <sys/socket.h>
18796 #endif
18797 #ifdef HAVE_SYS_UN_H
18798 # include <sys/un.h>
18799 #endif
18800
18801 int
18802 main ()
18803 {
18804 static struct sockaddr ac_aggr;
18805 if (sizeof ac_aggr.sa_len)
18806 return 0;
18807   ;
18808   return 0;
18809 }
18810 _ACEOF
18811 rm -f conftest.$ac_objext
18812 if { (ac_try="$ac_compile"
18813 case "(($ac_try" in
18814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815   *) ac_try_echo=$ac_try;;
18816 esac
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818   (eval "$ac_compile") 2>conftest.er1
18819   ac_status=$?
18820   grep -v '^ *+' conftest.er1 >conftest.err
18821   rm -f conftest.er1
18822   cat conftest.err >&5
18823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); } && {
18825          test -z "$ac_c_werror_flag" ||
18826          test ! -s conftest.err
18827        } && test -s conftest.$ac_objext; then
18828   ac_cv_member_struct_sockaddr_sa_len=yes
18829 else
18830   echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18832
18833         ac_cv_member_struct_sockaddr_sa_len=no
18834 fi
18835
18836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18837 fi
18838
18839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18840 fi
18841 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18842 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
18843 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18844
18845 cat >>confdefs.h <<_ACEOF
18846 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18847 _ACEOF
18848
18849
18850 fi
18851 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18852 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
18853 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18854   echo $ECHO_N "(cached) $ECHO_C" >&6
18855 else
18856   cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h.  */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h.  */
18862 #include <sys/types.h>
18863 #ifdef HAVE_SYS_SOCKET_H
18864 # include <sys/socket.h>
18865 #endif
18866 #ifdef HAVE_SYS_UN_H
18867 # include <sys/un.h>
18868 #endif
18869
18870 int
18871 main ()
18872 {
18873 static struct sockaddr_un ac_aggr;
18874 if (ac_aggr.sun_len)
18875 return 0;
18876   ;
18877   return 0;
18878 }
18879 _ACEOF
18880 rm -f conftest.$ac_objext
18881 if { (ac_try="$ac_compile"
18882 case "(($ac_try" in
18883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884   *) ac_try_echo=$ac_try;;
18885 esac
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887   (eval "$ac_compile") 2>conftest.er1
18888   ac_status=$?
18889   grep -v '^ *+' conftest.er1 >conftest.err
18890   rm -f conftest.er1
18891   cat conftest.err >&5
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); } && {
18894          test -z "$ac_c_werror_flag" ||
18895          test ! -s conftest.err
18896        } && test -s conftest.$ac_objext; then
18897   ac_cv_member_struct_sockaddr_un_sun_len=yes
18898 else
18899   echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18901
18902         cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h.  */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h.  */
18908 #include <sys/types.h>
18909 #ifdef HAVE_SYS_SOCKET_H
18910 # include <sys/socket.h>
18911 #endif
18912 #ifdef HAVE_SYS_UN_H
18913 # include <sys/un.h>
18914 #endif
18915
18916 int
18917 main ()
18918 {
18919 static struct sockaddr_un ac_aggr;
18920 if (sizeof ac_aggr.sun_len)
18921 return 0;
18922   ;
18923   return 0;
18924 }
18925 _ACEOF
18926 rm -f conftest.$ac_objext
18927 if { (ac_try="$ac_compile"
18928 case "(($ac_try" in
18929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930   *) ac_try_echo=$ac_try;;
18931 esac
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933   (eval "$ac_compile") 2>conftest.er1
18934   ac_status=$?
18935   grep -v '^ *+' conftest.er1 >conftest.err
18936   rm -f conftest.er1
18937   cat conftest.err >&5
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); } && {
18940          test -z "$ac_c_werror_flag" ||
18941          test ! -s conftest.err
18942        } && test -s conftest.$ac_objext; then
18943   ac_cv_member_struct_sockaddr_un_sun_len=yes
18944 else
18945   echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18947
18948         ac_cv_member_struct_sockaddr_un_sun_len=no
18949 fi
18950
18951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952 fi
18953
18954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18955 fi
18956 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18957 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
18958 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18959
18960 cat >>confdefs.h <<_ACEOF
18961 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18962 _ACEOF
18963
18964
18965 fi
18966
18967
18968 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18969 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
18970 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18971   echo $ECHO_N "(cached) $ECHO_C" >&6
18972 else
18973   cat >conftest.$ac_ext <<_ACEOF
18974 /* confdefs.h.  */
18975 _ACEOF
18976 cat confdefs.h >>conftest.$ac_ext
18977 cat >>conftest.$ac_ext <<_ACEOF
18978 /* end confdefs.h.  */
18979 #include <sys/types.h>
18980 #ifdef HAVE_SCSI_SG_H
18981 #include <scsi/sg.h>
18982 #endif
18983
18984 int
18985 main ()
18986 {
18987 static scsireq_t ac_aggr;
18988 if (ac_aggr.cmd)
18989 return 0;
18990   ;
18991   return 0;
18992 }
18993 _ACEOF
18994 rm -f conftest.$ac_objext
18995 if { (ac_try="$ac_compile"
18996 case "(($ac_try" in
18997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998   *) ac_try_echo=$ac_try;;
18999 esac
19000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001   (eval "$ac_compile") 2>conftest.er1
19002   ac_status=$?
19003   grep -v '^ *+' conftest.er1 >conftest.err
19004   rm -f conftest.er1
19005   cat conftest.err >&5
19006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007   (exit $ac_status); } && {
19008          test -z "$ac_c_werror_flag" ||
19009          test ! -s conftest.err
19010        } && test -s conftest.$ac_objext; then
19011   ac_cv_member_scsireq_t_cmd=yes
19012 else
19013   echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19015
19016         cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h.  */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h.  */
19022 #include <sys/types.h>
19023 #ifdef HAVE_SCSI_SG_H
19024 #include <scsi/sg.h>
19025 #endif
19026
19027 int
19028 main ()
19029 {
19030 static scsireq_t ac_aggr;
19031 if (sizeof ac_aggr.cmd)
19032 return 0;
19033   ;
19034   return 0;
19035 }
19036 _ACEOF
19037 rm -f conftest.$ac_objext
19038 if { (ac_try="$ac_compile"
19039 case "(($ac_try" in
19040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041   *) ac_try_echo=$ac_try;;
19042 esac
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044   (eval "$ac_compile") 2>conftest.er1
19045   ac_status=$?
19046   grep -v '^ *+' conftest.er1 >conftest.err
19047   rm -f conftest.er1
19048   cat conftest.err >&5
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); } && {
19051          test -z "$ac_c_werror_flag" ||
19052          test ! -s conftest.err
19053        } && test -s conftest.$ac_objext; then
19054   ac_cv_member_scsireq_t_cmd=yes
19055 else
19056   echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19058
19059         ac_cv_member_scsireq_t_cmd=no
19060 fi
19061
19062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19063 fi
19064
19065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19066 fi
19067 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
19068 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
19069 if test $ac_cv_member_scsireq_t_cmd = yes; then
19070
19071 cat >>confdefs.h <<_ACEOF
19072 #define HAVE_SCSIREQ_T_CMD 1
19073 _ACEOF
19074
19075
19076 fi
19077 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
19078 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
19079 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
19080   echo $ECHO_N "(cached) $ECHO_C" >&6
19081 else
19082   cat >conftest.$ac_ext <<_ACEOF
19083 /* confdefs.h.  */
19084 _ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h.  */
19088 #include <sys/types.h>
19089 #ifdef HAVE_SCSI_SG_H
19090 #include <scsi/sg.h>
19091 #endif
19092
19093 int
19094 main ()
19095 {
19096 static sg_io_hdr_t ac_aggr;
19097 if (ac_aggr.interface_id)
19098 return 0;
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext
19104 if { (ac_try="$ac_compile"
19105 case "(($ac_try" in
19106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107   *) ac_try_echo=$ac_try;;
19108 esac
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110   (eval "$ac_compile") 2>conftest.er1
19111   ac_status=$?
19112   grep -v '^ *+' conftest.er1 >conftest.err
19113   rm -f conftest.er1
19114   cat conftest.err >&5
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); } && {
19117          test -z "$ac_c_werror_flag" ||
19118          test ! -s conftest.err
19119        } && test -s conftest.$ac_objext; then
19120   ac_cv_member_sg_io_hdr_t_interface_id=yes
19121 else
19122   echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19124
19125         cat >conftest.$ac_ext <<_ACEOF
19126 /* confdefs.h.  */
19127 _ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h.  */
19131 #include <sys/types.h>
19132 #ifdef HAVE_SCSI_SG_H
19133 #include <scsi/sg.h>
19134 #endif
19135
19136 int
19137 main ()
19138 {
19139 static sg_io_hdr_t ac_aggr;
19140 if (sizeof ac_aggr.interface_id)
19141 return 0;
19142   ;
19143   return 0;
19144 }
19145 _ACEOF
19146 rm -f conftest.$ac_objext
19147 if { (ac_try="$ac_compile"
19148 case "(($ac_try" in
19149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150   *) ac_try_echo=$ac_try;;
19151 esac
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153   (eval "$ac_compile") 2>conftest.er1
19154   ac_status=$?
19155   grep -v '^ *+' conftest.er1 >conftest.err
19156   rm -f conftest.er1
19157   cat conftest.err >&5
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); } && {
19160          test -z "$ac_c_werror_flag" ||
19161          test ! -s conftest.err
19162        } && test -s conftest.$ac_objext; then
19163   ac_cv_member_sg_io_hdr_t_interface_id=yes
19164 else
19165   echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19167
19168         ac_cv_member_sg_io_hdr_t_interface_id=no
19169 fi
19170
19171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19172 fi
19173
19174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19175 fi
19176 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19177 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
19178 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19179
19180 cat >>confdefs.h <<_ACEOF
19181 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19182 _ACEOF
19183
19184
19185 fi
19186
19187
19188 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19189 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
19190 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19191   echo $ECHO_N "(cached) $ECHO_C" >&6
19192 else
19193   cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h.  */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h.  */
19199 #include <signal.h>
19200
19201 int
19202 main ()
19203 {
19204 static siginfo_t ac_aggr;
19205 if (ac_aggr.si_fd)
19206 return 0;
19207   ;
19208   return 0;
19209 }
19210 _ACEOF
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215   *) ac_try_echo=$ac_try;;
19216 esac
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218   (eval "$ac_compile") 2>conftest.er1
19219   ac_status=$?
19220   grep -v '^ *+' conftest.er1 >conftest.err
19221   rm -f conftest.er1
19222   cat conftest.err >&5
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); } && {
19225          test -z "$ac_c_werror_flag" ||
19226          test ! -s conftest.err
19227        } && test -s conftest.$ac_objext; then
19228   ac_cv_member_siginfo_t_si_fd=yes
19229 else
19230   echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19232
19233         cat >conftest.$ac_ext <<_ACEOF
19234 /* confdefs.h.  */
19235 _ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h.  */
19239 #include <signal.h>
19240
19241 int
19242 main ()
19243 {
19244 static siginfo_t ac_aggr;
19245 if (sizeof ac_aggr.si_fd)
19246 return 0;
19247   ;
19248   return 0;
19249 }
19250 _ACEOF
19251 rm -f conftest.$ac_objext
19252 if { (ac_try="$ac_compile"
19253 case "(($ac_try" in
19254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255   *) ac_try_echo=$ac_try;;
19256 esac
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258   (eval "$ac_compile") 2>conftest.er1
19259   ac_status=$?
19260   grep -v '^ *+' conftest.er1 >conftest.err
19261   rm -f conftest.er1
19262   cat conftest.err >&5
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); } && {
19265          test -z "$ac_c_werror_flag" ||
19266          test ! -s conftest.err
19267        } && test -s conftest.$ac_objext; then
19268   ac_cv_member_siginfo_t_si_fd=yes
19269 else
19270   echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19272
19273         ac_cv_member_siginfo_t_si_fd=no
19274 fi
19275
19276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19277 fi
19278
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280 fi
19281 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19282 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
19283 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19284
19285 cat >>confdefs.h <<_ACEOF
19286 #define HAVE_SIGINFO_T_SI_FD 1
19287 _ACEOF
19288
19289
19290 fi
19291
19292
19293 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
19294 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
19295 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
19296   echo $ECHO_N "(cached) $ECHO_C" >&6
19297 else
19298   cat >conftest.$ac_ext <<_ACEOF
19299 /* confdefs.h.  */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h.  */
19304 #include <sys/types.h>
19305 #ifdef HAVE_SYS_MTIO_H
19306 #include <sys/mtio.h>
19307 #endif
19308
19309 int
19310 main ()
19311 {
19312 static struct mtget ac_aggr;
19313 if (ac_aggr.mt_blksiz)
19314 return 0;
19315   ;
19316   return 0;
19317 }
19318 _ACEOF
19319 rm -f conftest.$ac_objext
19320 if { (ac_try="$ac_compile"
19321 case "(($ac_try" in
19322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323   *) ac_try_echo=$ac_try;;
19324 esac
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326   (eval "$ac_compile") 2>conftest.er1
19327   ac_status=$?
19328   grep -v '^ *+' conftest.er1 >conftest.err
19329   rm -f conftest.er1
19330   cat conftest.err >&5
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); } && {
19333          test -z "$ac_c_werror_flag" ||
19334          test ! -s conftest.err
19335        } && test -s conftest.$ac_objext; then
19336   ac_cv_member_struct_mtget_mt_blksiz=yes
19337 else
19338   echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19340
19341         cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347 #include <sys/types.h>
19348 #ifdef HAVE_SYS_MTIO_H
19349 #include <sys/mtio.h>
19350 #endif
19351
19352 int
19353 main ()
19354 {
19355 static struct mtget ac_aggr;
19356 if (sizeof ac_aggr.mt_blksiz)
19357 return 0;
19358   ;
19359   return 0;
19360 }
19361 _ACEOF
19362 rm -f conftest.$ac_objext
19363 if { (ac_try="$ac_compile"
19364 case "(($ac_try" in
19365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366   *) ac_try_echo=$ac_try;;
19367 esac
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369   (eval "$ac_compile") 2>conftest.er1
19370   ac_status=$?
19371   grep -v '^ *+' conftest.er1 >conftest.err
19372   rm -f conftest.er1
19373   cat conftest.err >&5
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); } && {
19376          test -z "$ac_c_werror_flag" ||
19377          test ! -s conftest.err
19378        } && test -s conftest.$ac_objext; then
19379   ac_cv_member_struct_mtget_mt_blksiz=yes
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384         ac_cv_member_struct_mtget_mt_blksiz=no
19385 fi
19386
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388 fi
19389
19390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19391 fi
19392 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
19393 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
19394 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
19395
19396 cat >>confdefs.h <<_ACEOF
19397 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
19398 _ACEOF
19399
19400
19401 fi
19402 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
19403 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
19404 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
19405   echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407   cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h.  */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h.  */
19413 #include <sys/types.h>
19414 #ifdef HAVE_SYS_MTIO_H
19415 #include <sys/mtio.h>
19416 #endif
19417
19418 int
19419 main ()
19420 {
19421 static struct mtget ac_aggr;
19422 if (ac_aggr.mt_gstat)
19423 return 0;
19424   ;
19425   return 0;
19426 }
19427 _ACEOF
19428 rm -f conftest.$ac_objext
19429 if { (ac_try="$ac_compile"
19430 case "(($ac_try" in
19431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432   *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435   (eval "$ac_compile") 2>conftest.er1
19436   ac_status=$?
19437   grep -v '^ *+' conftest.er1 >conftest.err
19438   rm -f conftest.er1
19439   cat conftest.err >&5
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); } && {
19442          test -z "$ac_c_werror_flag" ||
19443          test ! -s conftest.err
19444        } && test -s conftest.$ac_objext; then
19445   ac_cv_member_struct_mtget_mt_gstat=yes
19446 else
19447   echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19449
19450         cat >conftest.$ac_ext <<_ACEOF
19451 /* confdefs.h.  */
19452 _ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h.  */
19456 #include <sys/types.h>
19457 #ifdef HAVE_SYS_MTIO_H
19458 #include <sys/mtio.h>
19459 #endif
19460
19461 int
19462 main ()
19463 {
19464 static struct mtget ac_aggr;
19465 if (sizeof ac_aggr.mt_gstat)
19466 return 0;
19467   ;
19468   return 0;
19469 }
19470 _ACEOF
19471 rm -f conftest.$ac_objext
19472 if { (ac_try="$ac_compile"
19473 case "(($ac_try" in
19474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475   *) ac_try_echo=$ac_try;;
19476 esac
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478   (eval "$ac_compile") 2>conftest.er1
19479   ac_status=$?
19480   grep -v '^ *+' conftest.er1 >conftest.err
19481   rm -f conftest.er1
19482   cat conftest.err >&5
19483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484   (exit $ac_status); } && {
19485          test -z "$ac_c_werror_flag" ||
19486          test ! -s conftest.err
19487        } && test -s conftest.$ac_objext; then
19488   ac_cv_member_struct_mtget_mt_gstat=yes
19489 else
19490   echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19492
19493         ac_cv_member_struct_mtget_mt_gstat=no
19494 fi
19495
19496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19497 fi
19498
19499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19500 fi
19501 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
19502 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
19503 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
19504
19505 cat >>confdefs.h <<_ACEOF
19506 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
19507 _ACEOF
19508
19509
19510 fi
19511 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
19512 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
19513 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
19514   echo $ECHO_N "(cached) $ECHO_C" >&6
19515 else
19516   cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h.  */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h.  */
19522 #include <sys/types.h>
19523 #ifdef HAVE_SYS_MTIO_H
19524 #include <sys/mtio.h>
19525 #endif
19526
19527 int
19528 main ()
19529 {
19530 static struct mtget ac_aggr;
19531 if (ac_aggr.mt_blkno)
19532 return 0;
19533   ;
19534   return 0;
19535 }
19536 _ACEOF
19537 rm -f conftest.$ac_objext
19538 if { (ac_try="$ac_compile"
19539 case "(($ac_try" in
19540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541   *) ac_try_echo=$ac_try;;
19542 esac
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544   (eval "$ac_compile") 2>conftest.er1
19545   ac_status=$?
19546   grep -v '^ *+' conftest.er1 >conftest.err
19547   rm -f conftest.er1
19548   cat conftest.err >&5
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); } && {
19551          test -z "$ac_c_werror_flag" ||
19552          test ! -s conftest.err
19553        } && test -s conftest.$ac_objext; then
19554   ac_cv_member_struct_mtget_mt_blkno=yes
19555 else
19556   echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19558
19559         cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h.  */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h.  */
19565 #include <sys/types.h>
19566 #ifdef HAVE_SYS_MTIO_H
19567 #include <sys/mtio.h>
19568 #endif
19569
19570 int
19571 main ()
19572 {
19573 static struct mtget ac_aggr;
19574 if (sizeof ac_aggr.mt_blkno)
19575 return 0;
19576   ;
19577   return 0;
19578 }
19579 _ACEOF
19580 rm -f conftest.$ac_objext
19581 if { (ac_try="$ac_compile"
19582 case "(($ac_try" in
19583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584   *) ac_try_echo=$ac_try;;
19585 esac
19586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19587   (eval "$ac_compile") 2>conftest.er1
19588   ac_status=$?
19589   grep -v '^ *+' conftest.er1 >conftest.err
19590   rm -f conftest.er1
19591   cat conftest.err >&5
19592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593   (exit $ac_status); } && {
19594          test -z "$ac_c_werror_flag" ||
19595          test ! -s conftest.err
19596        } && test -s conftest.$ac_objext; then
19597   ac_cv_member_struct_mtget_mt_blkno=yes
19598 else
19599   echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19601
19602         ac_cv_member_struct_mtget_mt_blkno=no
19603 fi
19604
19605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19606 fi
19607
19608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19609 fi
19610 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19611 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
19612 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19613
19614 cat >>confdefs.h <<_ACEOF
19615 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
19616 _ACEOF
19617
19618
19619 fi
19620
19621
19622 { echo "$as_me:$LINENO: checking for struct option.name" >&5
19623 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
19624 if test "${ac_cv_member_struct_option_name+set}" = set; then
19625   echo $ECHO_N "(cached) $ECHO_C" >&6
19626 else
19627   cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h.  */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h.  */
19633 #ifdef HAVE_GETOPT_H
19634 #include <getopt.h>
19635 #endif
19636
19637 int
19638 main ()
19639 {
19640 static struct option ac_aggr;
19641 if (ac_aggr.name)
19642 return 0;
19643   ;
19644   return 0;
19645 }
19646 _ACEOF
19647 rm -f conftest.$ac_objext
19648 if { (ac_try="$ac_compile"
19649 case "(($ac_try" in
19650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651   *) ac_try_echo=$ac_try;;
19652 esac
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654   (eval "$ac_compile") 2>conftest.er1
19655   ac_status=$?
19656   grep -v '^ *+' conftest.er1 >conftest.err
19657   rm -f conftest.er1
19658   cat conftest.err >&5
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); } && {
19661          test -z "$ac_c_werror_flag" ||
19662          test ! -s conftest.err
19663        } && test -s conftest.$ac_objext; then
19664   ac_cv_member_struct_option_name=yes
19665 else
19666   echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19668
19669         cat >conftest.$ac_ext <<_ACEOF
19670 /* confdefs.h.  */
19671 _ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h.  */
19675 #ifdef HAVE_GETOPT_H
19676 #include <getopt.h>
19677 #endif
19678
19679 int
19680 main ()
19681 {
19682 static struct option ac_aggr;
19683 if (sizeof ac_aggr.name)
19684 return 0;
19685   ;
19686   return 0;
19687 }
19688 _ACEOF
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693   *) ac_try_echo=$ac_try;;
19694 esac
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696   (eval "$ac_compile") 2>conftest.er1
19697   ac_status=$?
19698   grep -v '^ *+' conftest.er1 >conftest.err
19699   rm -f conftest.er1
19700   cat conftest.err >&5
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); } && {
19703          test -z "$ac_c_werror_flag" ||
19704          test ! -s conftest.err
19705        } && test -s conftest.$ac_objext; then
19706   ac_cv_member_struct_option_name=yes
19707 else
19708   echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711         ac_cv_member_struct_option_name=no
19712 fi
19713
19714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19715 fi
19716
19717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19718 fi
19719 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19720 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
19721 if test $ac_cv_member_struct_option_name = yes; then
19722
19723 cat >>confdefs.h <<_ACEOF
19724 #define HAVE_STRUCT_OPTION_NAME 1
19725 _ACEOF
19726
19727
19728 fi
19729
19730
19731 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19732 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19733 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19734   echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736   cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h.  */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h.  */
19742 $ac_includes_default
19743 int
19744 main ()
19745 {
19746 static struct stat ac_aggr;
19747 if (ac_aggr.st_blocks)
19748 return 0;
19749   ;
19750   return 0;
19751 }
19752 _ACEOF
19753 rm -f conftest.$ac_objext
19754 if { (ac_try="$ac_compile"
19755 case "(($ac_try" in
19756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19757   *) ac_try_echo=$ac_try;;
19758 esac
19759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19760   (eval "$ac_compile") 2>conftest.er1
19761   ac_status=$?
19762   grep -v '^ *+' conftest.er1 >conftest.err
19763   rm -f conftest.er1
19764   cat conftest.err >&5
19765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766   (exit $ac_status); } && {
19767          test -z "$ac_c_werror_flag" ||
19768          test ! -s conftest.err
19769        } && test -s conftest.$ac_objext; then
19770   ac_cv_member_struct_stat_st_blocks=yes
19771 else
19772   echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19774
19775         cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h.  */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h.  */
19781 $ac_includes_default
19782 int
19783 main ()
19784 {
19785 static struct stat ac_aggr;
19786 if (sizeof ac_aggr.st_blocks)
19787 return 0;
19788   ;
19789   return 0;
19790 }
19791 _ACEOF
19792 rm -f conftest.$ac_objext
19793 if { (ac_try="$ac_compile"
19794 case "(($ac_try" in
19795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796   *) ac_try_echo=$ac_try;;
19797 esac
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799   (eval "$ac_compile") 2>conftest.er1
19800   ac_status=$?
19801   grep -v '^ *+' conftest.er1 >conftest.err
19802   rm -f conftest.er1
19803   cat conftest.err >&5
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); } && {
19806          test -z "$ac_c_werror_flag" ||
19807          test ! -s conftest.err
19808        } && test -s conftest.$ac_objext; then
19809   ac_cv_member_struct_stat_st_blocks=yes
19810 else
19811   echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814         ac_cv_member_struct_stat_st_blocks=no
19815 fi
19816
19817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19818 fi
19819
19820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19821 fi
19822 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19823 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19824 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19825
19826 cat >>confdefs.h <<_ACEOF
19827 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19828 _ACEOF
19829
19830
19831 fi
19832
19833
19834 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19835 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
19836 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19837   echo $ECHO_N "(cached) $ECHO_C" >&6
19838 else
19839   cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h.  */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h.  */
19845 #ifdef HAVE_SYS_TYPES_H
19846 #include <sys/types.h>
19847 #endif
19848 #ifdef HAVE_NETINET_IN_H
19849 #include <netinet/in.h>
19850 #endif
19851
19852 int
19853 main ()
19854 {
19855 static struct sockaddr_in6 ac_aggr;
19856 if (ac_aggr.sin6_scope_id)
19857 return 0;
19858   ;
19859   return 0;
19860 }
19861 _ACEOF
19862 rm -f conftest.$ac_objext
19863 if { (ac_try="$ac_compile"
19864 case "(($ac_try" in
19865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866   *) ac_try_echo=$ac_try;;
19867 esac
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869   (eval "$ac_compile") 2>conftest.er1
19870   ac_status=$?
19871   grep -v '^ *+' conftest.er1 >conftest.err
19872   rm -f conftest.er1
19873   cat conftest.err >&5
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); } && {
19876          test -z "$ac_c_werror_flag" ||
19877          test ! -s conftest.err
19878        } && test -s conftest.$ac_objext; then
19879   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884         cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h.  */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h.  */
19890 #ifdef HAVE_SYS_TYPES_H
19891 #include <sys/types.h>
19892 #endif
19893 #ifdef HAVE_NETINET_IN_H
19894 #include <netinet/in.h>
19895 #endif
19896
19897 int
19898 main ()
19899 {
19900 static struct sockaddr_in6 ac_aggr;
19901 if (sizeof ac_aggr.sin6_scope_id)
19902 return 0;
19903   ;
19904   return 0;
19905 }
19906 _ACEOF
19907 rm -f conftest.$ac_objext
19908 if { (ac_try="$ac_compile"
19909 case "(($ac_try" in
19910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911   *) ac_try_echo=$ac_try;;
19912 esac
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914   (eval "$ac_compile") 2>conftest.er1
19915   ac_status=$?
19916   grep -v '^ *+' conftest.er1 >conftest.err
19917   rm -f conftest.er1
19918   cat conftest.err >&5
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); } && {
19921          test -z "$ac_c_werror_flag" ||
19922          test ! -s conftest.err
19923        } && test -s conftest.$ac_objext; then
19924   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19925 else
19926   echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
19930 fi
19931
19932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19933 fi
19934
19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19936 fi
19937 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19938 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
19939 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19940
19941 cat >>confdefs.h <<_ACEOF
19942 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19943 _ACEOF
19944
19945
19946 fi
19947
19948
19949 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
19950 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
19951 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
19952   echo $ECHO_N "(cached) $ECHO_C" >&6
19953 else
19954   cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h.  */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h.  */
19960 #ifdef HAVE_SYS_TYPES_H
19961 #include <sys/types.h>
19962 #endif
19963 #ifdef HAVE_NETINET_IN_H
19964 # include <netinet/in.h>
19965 #endif
19966 #ifdef HAVE_ARPA_NAMESER_H
19967 # include <arpa/nameser.h>
19968 #endif
19969
19970 int
19971 main ()
19972 {
19973 static ns_msg ac_aggr;
19974 if (ac_aggr._msg_ptr)
19975 return 0;
19976   ;
19977   return 0;
19978 }
19979 _ACEOF
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987   (eval "$ac_compile") 2>conftest.er1
19988   ac_status=$?
19989   grep -v '^ *+' conftest.er1 >conftest.err
19990   rm -f conftest.er1
19991   cat conftest.err >&5
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); } && {
19994          test -z "$ac_c_werror_flag" ||
19995          test ! -s conftest.err
19996        } && test -s conftest.$ac_objext; then
19997   ac_cv_member_ns_msg__msg_ptr=yes
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002         cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008 #ifdef HAVE_SYS_TYPES_H
20009 #include <sys/types.h>
20010 #endif
20011 #ifdef HAVE_NETINET_IN_H
20012 # include <netinet/in.h>
20013 #endif
20014 #ifdef HAVE_ARPA_NAMESER_H
20015 # include <arpa/nameser.h>
20016 #endif
20017
20018 int
20019 main ()
20020 {
20021 static ns_msg ac_aggr;
20022 if (sizeof ac_aggr._msg_ptr)
20023 return 0;
20024   ;
20025   return 0;
20026 }
20027 _ACEOF
20028 rm -f conftest.$ac_objext
20029 if { (ac_try="$ac_compile"
20030 case "(($ac_try" in
20031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032   *) ac_try_echo=$ac_try;;
20033 esac
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035   (eval "$ac_compile") 2>conftest.er1
20036   ac_status=$?
20037   grep -v '^ *+' conftest.er1 >conftest.err
20038   rm -f conftest.er1
20039   cat conftest.err >&5
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); } && {
20042          test -z "$ac_c_werror_flag" ||
20043          test ! -s conftest.err
20044        } && test -s conftest.$ac_objext; then
20045   ac_cv_member_ns_msg__msg_ptr=yes
20046 else
20047   echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20049
20050         ac_cv_member_ns_msg__msg_ptr=no
20051 fi
20052
20053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20054 fi
20055
20056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20057 fi
20058 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
20059 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
20060 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
20061
20062 cat >>confdefs.h <<_ACEOF
20063 #define HAVE_NS_MSG__MSG_PTR 1
20064 _ACEOF
20065
20066
20067 fi
20068
20069
20070 { echo "$as_me:$LINENO: checking for timezone variable" >&5
20071 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
20072 if test "${ac_cv_have_timezone+set}" = set; then
20073   echo $ECHO_N "(cached) $ECHO_C" >&6
20074 else
20075   cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h.  */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h.  */
20081 #include <time.h>
20082 int
20083 main ()
20084 {
20085 timezone = 1
20086   ;
20087   return 0;
20088 }
20089 _ACEOF
20090 rm -f conftest.$ac_objext conftest$ac_exeext
20091 if { (ac_try="$ac_link"
20092 case "(($ac_try" in
20093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094   *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097   (eval "$ac_link") 2>conftest.er1
20098   ac_status=$?
20099   grep -v '^ *+' conftest.er1 >conftest.err
20100   rm -f conftest.er1
20101   cat conftest.err >&5
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } && {
20104          test -z "$ac_c_werror_flag" ||
20105          test ! -s conftest.err
20106        } && test -s conftest$ac_exeext &&
20107        $as_test_x conftest$ac_exeext; then
20108   ac_cv_have_timezone="yes"
20109 else
20110   echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113         ac_cv_have_timezone="no"
20114 fi
20115
20116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20117       conftest$ac_exeext conftest.$ac_ext
20118 fi
20119 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
20120 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
20121 if test "$ac_cv_have_timezone" = "yes"
20122 then
20123
20124 cat >>confdefs.h <<\_ACEOF
20125 #define HAVE_TIMEZONE 1
20126 _ACEOF
20127
20128 fi
20129 { echo "$as_me:$LINENO: checking for daylight variable" >&5
20130 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
20131 if test "${ac_cv_have_daylight+set}" = set; then
20132   echo $ECHO_N "(cached) $ECHO_C" >&6
20133 else
20134   cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140 #include <time.h>
20141 int
20142 main ()
20143 {
20144 daylight = 1
20145   ;
20146   return 0;
20147 }
20148 _ACEOF
20149 rm -f conftest.$ac_objext conftest$ac_exeext
20150 if { (ac_try="$ac_link"
20151 case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156   (eval "$ac_link") 2>conftest.er1
20157   ac_status=$?
20158   grep -v '^ *+' conftest.er1 >conftest.err
20159   rm -f conftest.er1
20160   cat conftest.err >&5
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); } && {
20163          test -z "$ac_c_werror_flag" ||
20164          test ! -s conftest.err
20165        } && test -s conftest$ac_exeext &&
20166        $as_test_x conftest$ac_exeext; then
20167   ac_cv_have_daylight="yes"
20168 else
20169   echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172         ac_cv_have_daylight="no"
20173 fi
20174
20175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20176       conftest$ac_exeext conftest.$ac_ext
20177 fi
20178 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20179 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
20180 if test "$ac_cv_have_daylight" = "yes"
20181 then
20182
20183 cat >>confdefs.h <<\_ACEOF
20184 #define HAVE_DAYLIGHT 1
20185 _ACEOF
20186
20187 fi
20188
20189
20190 case $host_cpu in
20191   *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20192 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
20193 if test "${ac_cv_cpp_def___i386__+set}" = set; then
20194   echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196   cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202 #ifndef __i386__
20203 yes
20204 #endif
20205 _ACEOF
20206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20207   $EGREP "yes" >/dev/null 2>&1; then
20208   ac_cv_cpp_def___i386__=yes
20209 else
20210   ac_cv_cpp_def___i386__=no
20211 fi
20212 rm -f conftest*
20213
20214 fi
20215 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20216 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
20217 if test $ac_cv_cpp_def___i386__ = yes; then
20218   CFLAGS="$CFLAGS -D__i386__"
20219   LINTFLAGS="$LINTFLAGS -D__i386__"
20220 fi
20221  ;;
20222   *x86_64*)         { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
20223 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
20224 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
20225   echo $ECHO_N "(cached) $ECHO_C" >&6
20226 else
20227   cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233 #ifndef __x86_64__
20234 yes
20235 #endif
20236 _ACEOF
20237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20238   $EGREP "yes" >/dev/null 2>&1; then
20239   ac_cv_cpp_def___x86_64__=yes
20240 else
20241   ac_cv_cpp_def___x86_64__=no
20242 fi
20243 rm -f conftest*
20244
20245 fi
20246 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
20247 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
20248 if test $ac_cv_cpp_def___x86_64__ = yes; then
20249   CFLAGS="$CFLAGS -D__x86_64__"
20250   LINTFLAGS="$LINTFLAGS -D__x86_64__"
20251 fi
20252  ;;
20253   *alpha*)          { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20254 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
20255 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20256   echo $ECHO_N "(cached) $ECHO_C" >&6
20257 else
20258   cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h.  */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h.  */
20264 #ifndef __ALPHA__
20265 yes
20266 #endif
20267 _ACEOF
20268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20269   $EGREP "yes" >/dev/null 2>&1; then
20270   ac_cv_cpp_def___ALPHA__=yes
20271 else
20272   ac_cv_cpp_def___ALPHA__=no
20273 fi
20274 rm -f conftest*
20275
20276 fi
20277 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20278 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
20279 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20280   CFLAGS="$CFLAGS -D__ALPHA__"
20281   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20282 fi
20283  ;;
20284   *sparc*)          { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20285 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
20286 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20287   echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20289   cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h.  */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h.  */
20295 #ifndef __sparc__
20296 yes
20297 #endif
20298 _ACEOF
20299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20300   $EGREP "yes" >/dev/null 2>&1; then
20301   ac_cv_cpp_def___sparc__=yes
20302 else
20303   ac_cv_cpp_def___sparc__=no
20304 fi
20305 rm -f conftest*
20306
20307 fi
20308 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20309 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
20310 if test $ac_cv_cpp_def___sparc__ = yes; then
20311   CFLAGS="$CFLAGS -D__sparc__"
20312   LINTFLAGS="$LINTFLAGS -D__sparc__"
20313 fi
20314  ;;
20315   *powerpc*)        { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20316 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
20317 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20318   echo $ECHO_N "(cached) $ECHO_C" >&6
20319 else
20320   cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h.  */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h.  */
20326 #ifndef __powerpc__
20327 yes
20328 #endif
20329 _ACEOF
20330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20331   $EGREP "yes" >/dev/null 2>&1; then
20332   ac_cv_cpp_def___powerpc__=yes
20333 else
20334   ac_cv_cpp_def___powerpc__=no
20335 fi
20336 rm -f conftest*
20337
20338 fi
20339 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20340 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
20341 if test $ac_cv_cpp_def___powerpc__ = yes; then
20342   CFLAGS="$CFLAGS -D__powerpc__"
20343   LINTFLAGS="$LINTFLAGS -D__powerpc__"
20344 fi
20345  ;;
20346 esac
20347
20348 case $host_vendor in
20349   *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20350 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
20351 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20352   echo $ECHO_N "(cached) $ECHO_C" >&6
20353 else
20354   cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h.  */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h.  */
20360 #ifndef __sun__
20361 yes
20362 #endif
20363 _ACEOF
20364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20365   $EGREP "yes" >/dev/null 2>&1; then
20366   ac_cv_cpp_def___sun__=yes
20367 else
20368   ac_cv_cpp_def___sun__=no
20369 fi
20370 rm -f conftest*
20371
20372 fi
20373 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20374 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
20375 if test $ac_cv_cpp_def___sun__ = yes; then
20376   CFLAGS="$CFLAGS -D__sun__"
20377   LINTFLAGS="$LINTFLAGS -D__sun__"
20378 fi
20379  ;;
20380 esac
20381
20382
20383 DEPENDENCIES="### Dependencies:
20384
20385 .INIT: Makefile
20386 .BEGIN: Makefile
20387 Makefile: dummy
20388         -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
20389
20390 \$(ALL_OBJS): \$(IDL_H_SRCS:.idl=.h)
20391 \$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
20392 \$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
20393 \$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
20394
20395
20396
20397
20398
20399 ac_config_commands="$ac_config_commands include/stamp-h"
20400
20401
20402 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
20403
20404 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
20405
20406 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
20407
20408 ac_config_commands="$ac_config_commands dlls/user32/resources"
20409
20410 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
20411
20412 ac_config_commands="$ac_config_commands include/wine"
20413
20414
20415 MAKE_RULES=Make.rules
20416
20417
20418 MAKE_DLL_RULES=dlls/Makedll.rules
20419
20420
20421 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
20422
20423
20424 MAKE_TEST_RULES=dlls/Maketest.rules
20425
20426
20427 MAKE_PROG_RULES=programs/Makeprog.rules
20428
20429
20430 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/clusapi/Makefile dlls/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/ddrawex/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi32/Makefile dlls/gdi32/tests/Makefile dlls/glu32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hid/Makefile dlls/hlink/Makefile dlls/hlink/tests/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/infosoft/tests/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/itss/tests/Makefile dlls/kernel32/Makefile dlls/kernel32/tests/Makefile dlls/localspl/Makefile dlls/localspl/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/mscoree/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/nddeapi/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/odbccp32/tests/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/pstorec/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/resutils/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/sfc_os/Makefile dlls/shdoclc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/snmpapi/tests/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/svrapi/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user32/Makefile dlls/user32/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winealsa.drv/Makefile dlls/winearts.drv/Makefile dlls/wineaudioio.drv/Makefile dlls/winecoreaudio.drv/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineesd.drv/Makefile dlls/winejack.drv/Makefile dlls/winejoystick.drv/Makefile dlls/winemp3.acm/Makefile dlls/winenas.drv/Makefile dlls/wineoss.drv/Makefile dlls/wineps.drv/Makefile dlls/winequartz.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/tests/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wintrust/tests/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmd/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
20431
20432
20433 cat >confcache <<\_ACEOF
20434 # This file is a shell script that caches the results of configure
20435 # tests run on this system so they can be shared between configure
20436 # scripts and configure runs, see configure's option --config-cache.
20437 # It is not useful on other systems.  If it contains results you don't
20438 # want to keep, you may remove or edit it.
20439 #
20440 # config.status only pays attention to the cache file if you give it
20441 # the --recheck option to rerun configure.
20442 #
20443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20445 # following values.
20446
20447 _ACEOF
20448
20449 # The following way of writing the cache mishandles newlines in values,
20450 # but we know of no workaround that is simple, portable, and efficient.
20451 # So, we kill variables containing newlines.
20452 # Ultrix sh set writes to stderr and can't be redirected directly,
20453 # and sets the high bit in the cache file unless we assign to the vars.
20454 (
20455   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20456     eval ac_val=\$$ac_var
20457     case $ac_val in #(
20458     *${as_nl}*)
20459       case $ac_var in #(
20460       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20461 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20462       esac
20463       case $ac_var in #(
20464       _ | IFS | as_nl) ;; #(
20465       *) $as_unset $ac_var ;;
20466       esac ;;
20467     esac
20468   done
20469
20470   (set) 2>&1 |
20471     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20472     *${as_nl}ac_space=\ *)
20473       # `set' does not quote correctly, so add quotes (double-quote
20474       # substitution turns \\\\ into \\, and sed turns \\ into \).
20475       sed -n \
20476         "s/'/'\\\\''/g;
20477           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20478       ;; #(
20479     *)
20480       # `set' quotes correctly as required by POSIX, so do not add quotes.
20481       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20482       ;;
20483     esac |
20484     sort
20485 ) |
20486   sed '
20487      /^ac_cv_env_/b end
20488      t clear
20489      :clear
20490      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20491      t end
20492      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20493      :end' >>confcache
20494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20495   if test -w "$cache_file"; then
20496     test "x$cache_file" != "x/dev/null" &&
20497       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20498 echo "$as_me: updating cache $cache_file" >&6;}
20499     cat confcache >$cache_file
20500   else
20501     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20502 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20503   fi
20504 fi
20505 rm -f confcache
20506
20507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20508 # Let make expand exec_prefix.
20509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20510
20511 DEFS=-DHAVE_CONFIG_H
20512
20513 ac_libobjs=
20514 ac_ltlibobjs=
20515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20516   # 1. Remove the extension, and $U if already installed.
20517   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20518   ac_i=`echo "$ac_i" | sed "$ac_script"`
20519   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20520   #    will be set to the directory where LIBOBJS objects are built.
20521   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20522   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20523 done
20524 LIBOBJS=$ac_libobjs
20525
20526 LTLIBOBJS=$ac_ltlibobjs
20527
20528
20529
20530 : ${CONFIG_STATUS=./config.status}
20531 ac_clean_files_save=$ac_clean_files
20532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20533 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20534 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20535 cat >$CONFIG_STATUS <<_ACEOF
20536 #! $SHELL
20537 # Generated by $as_me.
20538 # Run this file to recreate the current configuration.
20539 # Compiler output produced by configure, useful for debugging
20540 # configure, is in config.log if it exists.
20541
20542 debug=false
20543 ac_cs_recheck=false
20544 ac_cs_silent=false
20545 SHELL=\${CONFIG_SHELL-$SHELL}
20546 _ACEOF
20547
20548 cat >>$CONFIG_STATUS <<\_ACEOF
20549 ## --------------------- ##
20550 ## M4sh Initialization.  ##
20551 ## --------------------- ##
20552
20553 # Be more Bourne compatible
20554 DUALCASE=1; export DUALCASE # for MKS sh
20555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20556   emulate sh
20557   NULLCMD=:
20558   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20559   # is contrary to our usage.  Disable this feature.
20560   alias -g '${1+"$@"}'='"$@"'
20561   setopt NO_GLOB_SUBST
20562 else
20563   case `(set -o) 2>/dev/null` in
20564   *posix*) set -o posix ;;
20565 esac
20566
20567 fi
20568
20569
20570
20571
20572 # PATH needs CR
20573 # Avoid depending upon Character Ranges.
20574 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20575 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20576 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20577 as_cr_digits='0123456789'
20578 as_cr_alnum=$as_cr_Letters$as_cr_digits
20579
20580 # The user is always right.
20581 if test "${PATH_SEPARATOR+set}" != set; then
20582   echo "#! /bin/sh" >conf$$.sh
20583   echo  "exit 0"   >>conf$$.sh
20584   chmod +x conf$$.sh
20585   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20586     PATH_SEPARATOR=';'
20587   else
20588     PATH_SEPARATOR=:
20589   fi
20590   rm -f conf$$.sh
20591 fi
20592
20593 # Support unset when possible.
20594 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20595   as_unset=unset
20596 else
20597   as_unset=false
20598 fi
20599
20600
20601 # IFS
20602 # We need space, tab and new line, in precisely that order.  Quoting is
20603 # there to prevent editors from complaining about space-tab.
20604 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20605 # splitting by setting IFS to empty value.)
20606 as_nl='
20607 '
20608 IFS=" ""        $as_nl"
20609
20610 # Find who we are.  Look in the path if we contain no directory separator.
20611 case $0 in
20612   *[\\/]* ) as_myself=$0 ;;
20613   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20614 for as_dir in $PATH
20615 do
20616   IFS=$as_save_IFS
20617   test -z "$as_dir" && as_dir=.
20618   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20619 done
20620 IFS=$as_save_IFS
20621
20622      ;;
20623 esac
20624 # We did not find ourselves, most probably we were run as `sh COMMAND'
20625 # in which case we are not to be found in the path.
20626 if test "x$as_myself" = x; then
20627   as_myself=$0
20628 fi
20629 if test ! -f "$as_myself"; then
20630   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20631   { (exit 1); exit 1; }
20632 fi
20633
20634 # Work around bugs in pre-3.0 UWIN ksh.
20635 for as_var in ENV MAIL MAILPATH
20636 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20637 done
20638 PS1='$ '
20639 PS2='> '
20640 PS4='+ '
20641
20642 # NLS nuisances.
20643 for as_var in \
20644   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20645   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20646   LC_TELEPHONE LC_TIME
20647 do
20648   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20649     eval $as_var=C; export $as_var
20650   else
20651     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20652   fi
20653 done
20654
20655 # Required to use basename.
20656 if expr a : '\(a\)' >/dev/null 2>&1 &&
20657    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20658   as_expr=expr
20659 else
20660   as_expr=false
20661 fi
20662
20663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20664   as_basename=basename
20665 else
20666   as_basename=false
20667 fi
20668
20669
20670 # Name of the executable.
20671 as_me=`$as_basename -- "$0" ||
20672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20673          X"$0" : 'X\(//\)$' \| \
20674          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20675 echo X/"$0" |
20676     sed '/^.*\/\([^/][^/]*\)\/*$/{
20677             s//\1/
20678             q
20679           }
20680           /^X\/\(\/\/\)$/{
20681             s//\1/
20682             q
20683           }
20684           /^X\/\(\/\).*/{
20685             s//\1/
20686             q
20687           }
20688           s/.*/./; q'`
20689
20690 # CDPATH.
20691 $as_unset CDPATH
20692
20693
20694
20695   as_lineno_1=$LINENO
20696   as_lineno_2=$LINENO
20697   test "x$as_lineno_1" != "x$as_lineno_2" &&
20698   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20699
20700   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20701   # uniformly replaced by the line number.  The first 'sed' inserts a
20702   # line-number line after each line using $LINENO; the second 'sed'
20703   # does the real work.  The second script uses 'N' to pair each
20704   # line-number line with the line containing $LINENO, and appends
20705   # trailing '-' during substitution so that $LINENO is not a special
20706   # case at line end.
20707   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20708   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20709   # E. McMahon (1931-1989) for sed's syntax.  :-)
20710   sed -n '
20711     p
20712     /[$]LINENO/=
20713   ' <$as_myself |
20714     sed '
20715       s/[$]LINENO.*/&-/
20716       t lineno
20717       b
20718       :lineno
20719       N
20720       :loop
20721       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20722       t loop
20723       s/-\n.*//
20724     ' >$as_me.lineno &&
20725   chmod +x "$as_me.lineno" ||
20726     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20727    { (exit 1); exit 1; }; }
20728
20729   # Don't try to exec as it changes $[0], causing all sort of problems
20730   # (the dirname of $[0] is not the place where we might find the
20731   # original and so on.  Autoconf is especially sensitive to this).
20732   . "./$as_me.lineno"
20733   # Exit status is that of the last command.
20734   exit
20735 }
20736
20737
20738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20739   as_dirname=dirname
20740 else
20741   as_dirname=false
20742 fi
20743
20744 ECHO_C= ECHO_N= ECHO_T=
20745 case `echo -n x` in
20746 -n*)
20747   case `echo 'x\c'` in
20748   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20749   *)   ECHO_C='\c';;
20750   esac;;
20751 *)
20752   ECHO_N='-n';;
20753 esac
20754
20755 if expr a : '\(a\)' >/dev/null 2>&1 &&
20756    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20757   as_expr=expr
20758 else
20759   as_expr=false
20760 fi
20761
20762 rm -f conf$$ conf$$.exe conf$$.file
20763 if test -d conf$$.dir; then
20764   rm -f conf$$.dir/conf$$.file
20765 else
20766   rm -f conf$$.dir
20767   mkdir conf$$.dir
20768 fi
20769 echo >conf$$.file
20770 if ln -s conf$$.file conf$$ 2>/dev/null; then
20771   as_ln_s='ln -s'
20772   # ... but there are two gotchas:
20773   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20774   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20775   # In both cases, we have to default to `cp -p'.
20776   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20777     as_ln_s='cp -p'
20778 elif ln conf$$.file conf$$ 2>/dev/null; then
20779   as_ln_s=ln
20780 else
20781   as_ln_s='cp -p'
20782 fi
20783 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20784 rmdir conf$$.dir 2>/dev/null
20785
20786 if mkdir -p . 2>/dev/null; then
20787   as_mkdir_p=:
20788 else
20789   test -d ./-p && rmdir ./-p
20790   as_mkdir_p=false
20791 fi
20792
20793 if test -x / >/dev/null 2>&1; then
20794   as_test_x='test -x'
20795 else
20796   if ls -dL / >/dev/null 2>&1; then
20797     as_ls_L_option=L
20798   else
20799     as_ls_L_option=
20800   fi
20801   as_test_x='
20802     eval sh -c '\''
20803       if test -d "$1"; then
20804         test -d "$1/.";
20805       else
20806         case $1 in
20807         -*)set "./$1";;
20808         esac;
20809         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20810         ???[sx]*):;;*)false;;esac;fi
20811     '\'' sh
20812   '
20813 fi
20814 as_executable_p=$as_test_x
20815
20816 # Sed expression to map a string onto a valid CPP name.
20817 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20818
20819 # Sed expression to map a string onto a valid variable name.
20820 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20821
20822
20823 exec 6>&1
20824
20825 # Save the log message, to keep $[0] and so on meaningful, and to
20826 # report actual input values of CONFIG_FILES etc. instead of their
20827 # values after options handling.
20828 ac_log="
20829 This file was extended by Wine $as_me 0.9.29, which was
20830 generated by GNU Autoconf 2.61.  Invocation command line was
20831
20832   CONFIG_FILES    = $CONFIG_FILES
20833   CONFIG_HEADERS  = $CONFIG_HEADERS
20834   CONFIG_LINKS    = $CONFIG_LINKS
20835   CONFIG_COMMANDS = $CONFIG_COMMANDS
20836   $ $0 $@
20837
20838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20839 "
20840
20841 _ACEOF
20842
20843 cat >>$CONFIG_STATUS <<_ACEOF
20844 # Files that config.status was made for.
20845 config_files="$ac_config_files"
20846 config_headers="$ac_config_headers"
20847 config_commands="$ac_config_commands"
20848
20849 _ACEOF
20850
20851 cat >>$CONFIG_STATUS <<\_ACEOF
20852 ac_cs_usage="\
20853 \`$as_me' instantiates files from templates according to the
20854 current configuration.
20855
20856 Usage: $0 [OPTIONS] [FILE]...
20857
20858   -h, --help       print this help, then exit
20859   -V, --version    print version number and configuration settings, then exit
20860   -q, --quiet      do not print progress messages
20861   -d, --debug      don't remove temporary files
20862       --recheck    update $as_me by reconfiguring in the same conditions
20863   --file=FILE[:TEMPLATE]
20864                    instantiate the configuration file FILE
20865   --header=FILE[:TEMPLATE]
20866                    instantiate the configuration header FILE
20867
20868 Configuration files:
20869 $config_files
20870
20871 Configuration headers:
20872 $config_headers
20873
20874 Configuration commands:
20875 $config_commands
20876
20877 Report bugs to <bug-autoconf@gnu.org>."
20878
20879 _ACEOF
20880 cat >>$CONFIG_STATUS <<_ACEOF
20881 ac_cs_version="\\
20882 Wine config.status 0.9.29
20883 configured by $0, generated by GNU Autoconf 2.61,
20884   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20885
20886 Copyright (C) 2006 Free Software Foundation, Inc.
20887 This config.status script is free software; the Free Software Foundation
20888 gives unlimited permission to copy, distribute and modify it."
20889
20890 ac_pwd='$ac_pwd'
20891 srcdir='$srcdir'
20892 INSTALL='$INSTALL'
20893 _ACEOF
20894
20895 cat >>$CONFIG_STATUS <<\_ACEOF
20896 # If no file are specified by the user, then we need to provide default
20897 # value.  By we need to know if files were specified by the user.
20898 ac_need_defaults=:
20899 while test $# != 0
20900 do
20901   case $1 in
20902   --*=*)
20903     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20904     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20905     ac_shift=:
20906     ;;
20907   *)
20908     ac_option=$1
20909     ac_optarg=$2
20910     ac_shift=shift
20911     ;;
20912   esac
20913
20914   case $ac_option in
20915   # Handling of the options.
20916   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20917     ac_cs_recheck=: ;;
20918   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20919     echo "$ac_cs_version"; exit ;;
20920   --debug | --debu | --deb | --de | --d | -d )
20921     debug=: ;;
20922   --file | --fil | --fi | --f )
20923     $ac_shift
20924     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20925     ac_need_defaults=false;;
20926   --header | --heade | --head | --hea )
20927     $ac_shift
20928     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20929     ac_need_defaults=false;;
20930   --he | --h)
20931     # Conflict between --help and --header
20932     { echo "$as_me: error: ambiguous option: $1
20933 Try \`$0 --help' for more information." >&2
20934    { (exit 1); exit 1; }; };;
20935   --help | --hel | -h )
20936     echo "$ac_cs_usage"; exit ;;
20937   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20938   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20939     ac_cs_silent=: ;;
20940
20941   # This is an error.
20942   -*) { echo "$as_me: error: unrecognized option: $1
20943 Try \`$0 --help' for more information." >&2
20944    { (exit 1); exit 1; }; } ;;
20945
20946   *) ac_config_targets="$ac_config_targets $1"
20947      ac_need_defaults=false ;;
20948
20949   esac
20950   shift
20951 done
20952
20953 ac_configure_extra_args=
20954
20955 if $ac_cs_silent; then
20956   exec 6>/dev/null
20957   ac_configure_extra_args="$ac_configure_extra_args --silent"
20958 fi
20959
20960 _ACEOF
20961 cat >>$CONFIG_STATUS <<_ACEOF
20962 if \$ac_cs_recheck; then
20963   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20964   CONFIG_SHELL=$SHELL
20965   export CONFIG_SHELL
20966   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20967 fi
20968
20969 _ACEOF
20970 cat >>$CONFIG_STATUS <<\_ACEOF
20971 exec 5>>config.log
20972 {
20973   echo
20974   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20975 ## Running $as_me. ##
20976 _ASBOX
20977   echo "$ac_log"
20978 } >&5
20979
20980 _ACEOF
20981 cat >>$CONFIG_STATUS <<_ACEOF
20982 _ACEOF
20983
20984 cat >>$CONFIG_STATUS <<\_ACEOF
20985
20986 # Handling of arguments.
20987 for ac_config_target in $ac_config_targets
20988 do
20989   case $ac_config_target in
20990     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20991     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
20992     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
20993     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
20994     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
20995     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
20996     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
20997     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20998     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20999     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
21000     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
21001     "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
21002     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
21003     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21004     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
21005     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
21006     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
21007     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
21008     "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
21009     "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
21010     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
21011     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
21012     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
21013     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
21014     "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
21015     "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
21016     "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
21017     "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
21018     "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
21019     "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
21020     "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
21021     "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
21022     "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
21023     "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
21024     "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
21025     "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
21026     "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
21027     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
21028     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
21029     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
21030     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
21031     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
21032     "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
21033     "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
21034     "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
21035     "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
21036     "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
21037     "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
21038     "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
21039     "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
21040     "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
21041     "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
21042     "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
21043     "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
21044     "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
21045     "dlls/ddrawex/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddrawex/Makefile" ;;
21046     "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
21047     "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
21048     "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
21049     "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
21050     "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
21051     "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
21052     "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
21053     "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
21054     "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
21055     "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
21056     "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
21057     "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
21058     "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
21059     "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
21060     "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
21061     "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
21062     "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
21063     "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
21064     "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
21065     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
21066     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
21067     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
21068     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
21069     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
21070     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
21071     "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
21072     "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
21073     "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
21074     "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
21075     "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
21076     "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
21077     "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
21078     "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
21079     "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
21080     "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
21081     "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
21082     "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
21083     "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
21084     "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
21085     "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
21086     "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
21087     "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
21088     "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
21089     "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
21090     "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
21091     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
21092     "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
21093     "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
21094     "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
21095     "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
21096     "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
21097     "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
21098     "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
21099     "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
21100     "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
21101     "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
21102     "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
21103     "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
21104     "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
21105     "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
21106     "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
21107     "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
21108     "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
21109     "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
21110     "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
21111     "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
21112     "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
21113     "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
21114     "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
21115     "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
21116     "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
21117     "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
21118     "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
21119     "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
21120     "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
21121     "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
21122     "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
21123     "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
21124     "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
21125     "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
21126     "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
21127     "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
21128     "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
21129     "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
21130     "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
21131     "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
21132     "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
21133     "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
21134     "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
21135     "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
21136     "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
21137     "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
21138     "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
21139     "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
21140     "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
21141     "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
21142     "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
21143     "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
21144     "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
21145     "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
21146     "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
21147     "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
21148     "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
21149     "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
21150     "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
21151     "dlls/odbccp32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/tests/Makefile" ;;
21152     "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
21153     "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21154     "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21155     "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21156     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21157     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21158     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21159     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21160     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
21161     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
21162     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
21163     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21164     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
21165     "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
21166     "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
21167     "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21168     "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
21169     "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
21170     "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
21171     "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
21172     "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21173     "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21174     "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21175     "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21176     "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21177     "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21178     "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21179     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21180     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21181     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
21182     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21183     "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21184     "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21185     "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21186     "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
21187     "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21188     "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21189     "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
21190     "dlls/sfc_os/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc_os/Makefile" ;;
21191     "dlls/shdoclc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdoclc/Makefile" ;;
21192     "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21193     "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21194     "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21195     "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21196     "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21197     "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21198     "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21199     "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
21200     "dlls/snmpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/tests/Makefile" ;;
21201     "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
21202     "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21203     "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21204     "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21205     "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
21206     "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
21207     "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21208     "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21209     "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21210     "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21211     "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21212     "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
21213     "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;;
21214     "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;;
21215     "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
21216     "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21217     "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21218     "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21219     "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
21220     "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
21221     "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21222     "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21223     "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21224     "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21225     "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21226     "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21227     "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21228     "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21229     "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21230     "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
21231     "dlls/winealsa.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winealsa.drv/Makefile" ;;
21232     "dlls/winearts.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winearts.drv/Makefile" ;;
21233     "dlls/wineaudioio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineaudioio.drv/Makefile" ;;
21234     "dlls/winecoreaudio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecoreaudio.drv/Makefile" ;;
21235     "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21236     "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21237     "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
21238     "dlls/wineesd.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineesd.drv/Makefile" ;;
21239     "dlls/winejack.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejack.drv/Makefile" ;;
21240     "dlls/winejoystick.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejoystick.drv/Makefile" ;;
21241     "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
21242     "dlls/winenas.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winenas.drv/Makefile" ;;
21243     "dlls/wineoss.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineoss.drv/Makefile" ;;
21244     "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
21245     "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
21246     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
21247     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21248     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
21249     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
21250     "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
21251     "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
21252     "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
21253     "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
21254     "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
21255     "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
21256     "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
21257     "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
21258     "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
21259     "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
21260     "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
21261     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
21262     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
21263     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
21264     "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
21265     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
21266     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21267     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
21268     "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
21269     "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
21270     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
21271     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
21272     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21273     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
21274     "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
21275     "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21276     "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
21277     "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
21278     "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
21279     "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
21280     "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
21281     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
21282     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
21283     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
21284     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
21285     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
21286     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
21287     "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
21288     "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
21289     "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
21290     "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
21291     "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
21292     "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
21293     "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21294     "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
21295     "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21296     "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21297     "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21298     "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21299     "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
21300     "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21301     "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21302     "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21303     "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21304     "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21305     "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21306     "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21307     "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21308     "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
21309     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21310     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21311     "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21312     "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21313     "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21314     "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21315     "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21316     "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21317
21318   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21319 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21320    { (exit 1); exit 1; }; };;
21321   esac
21322 done
21323
21324
21325 # If the user did not use the arguments to specify the items to instantiate,
21326 # then the envvar interface is used.  Set only those that are not.
21327 # We use the long form for the default assignment because of an extremely
21328 # bizarre bug on SunOS 4.1.3.
21329 if $ac_need_defaults; then
21330   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21331   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21332   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21333 fi
21334
21335 # Have a temporary directory for convenience.  Make it in the build tree
21336 # simply because there is no reason against having it here, and in addition,
21337 # creating and moving files from /tmp can sometimes cause problems.
21338 # Hook for its removal unless debugging.
21339 # Note that there is a small window in which the directory will not be cleaned:
21340 # after its creation but before its name has been assigned to `$tmp'.
21341 $debug ||
21342 {
21343   tmp=
21344   trap 'exit_status=$?
21345   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21346 ' 0
21347   trap '{ (exit 1); exit 1; }' 1 2 13 15
21348 }
21349 # Create a (secure) tmp directory for tmp files.
21350
21351 {
21352   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21353   test -n "$tmp" && test -d "$tmp"
21354 }  ||
21355 {
21356   tmp=./conf$$-$RANDOM
21357   (umask 077 && mkdir "$tmp")
21358 } ||
21359 {
21360    echo "$me: cannot create a temporary directory in ." >&2
21361    { (exit 1); exit 1; }
21362 }
21363
21364 #
21365 # Set up the sed scripts for CONFIG_FILES section.
21366 #
21367
21368 # No need to generate the scripts if there are no CONFIG_FILES.
21369 # This happens for instance when ./config.status config.h
21370 if test -n "$CONFIG_FILES"; then
21371
21372 _ACEOF
21373
21374 # Create sed commands to just substitute file output variables.
21375
21376 # Remaining file output variables are in a fragment that also has non-file
21377 # output varibles.
21378
21379
21380
21381 ac_delim='%!_!# '
21382 for ac_last_try in false false false false false :; do
21383   cat >conf$$subs.sed <<_ACEOF
21384 SHELL!$SHELL$ac_delim
21385 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21386 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21387 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21388 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21389 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21390 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21391 exec_prefix!$exec_prefix$ac_delim
21392 prefix!$prefix$ac_delim
21393 program_transform_name!$program_transform_name$ac_delim
21394 bindir!$bindir$ac_delim
21395 sbindir!$sbindir$ac_delim
21396 libexecdir!$libexecdir$ac_delim
21397 datarootdir!$datarootdir$ac_delim
21398 datadir!$datadir$ac_delim
21399 sysconfdir!$sysconfdir$ac_delim
21400 sharedstatedir!$sharedstatedir$ac_delim
21401 localstatedir!$localstatedir$ac_delim
21402 includedir!$includedir$ac_delim
21403 oldincludedir!$oldincludedir$ac_delim
21404 docdir!$docdir$ac_delim
21405 infodir!$infodir$ac_delim
21406 htmldir!$htmldir$ac_delim
21407 dvidir!$dvidir$ac_delim
21408 pdfdir!$pdfdir$ac_delim
21409 psdir!$psdir$ac_delim
21410 libdir!$libdir$ac_delim
21411 localedir!$localedir$ac_delim
21412 mandir!$mandir$ac_delim
21413 DEFS!$DEFS$ac_delim
21414 ECHO_C!$ECHO_C$ac_delim
21415 ECHO_N!$ECHO_N$ac_delim
21416 ECHO_T!$ECHO_T$ac_delim
21417 LIBS!$LIBS$ac_delim
21418 build_alias!$build_alias$ac_delim
21419 host_alias!$host_alias$ac_delim
21420 target_alias!$target_alias$ac_delim
21421 build!$build$ac_delim
21422 build_cpu!$build_cpu$ac_delim
21423 build_vendor!$build_vendor$ac_delim
21424 build_os!$build_os$ac_delim
21425 host!$host$ac_delim
21426 host_cpu!$host_cpu$ac_delim
21427 host_vendor!$host_vendor$ac_delim
21428 host_os!$host_os$ac_delim
21429 WIN16_FILES!$WIN16_FILES$ac_delim
21430 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
21431 SET_MAKE!$SET_MAKE$ac_delim
21432 CC!$CC$ac_delim
21433 CFLAGS!$CFLAGS$ac_delim
21434 LDFLAGS!$LDFLAGS$ac_delim
21435 CPPFLAGS!$CPPFLAGS$ac_delim
21436 ac_ct_CC!$ac_ct_CC$ac_delim
21437 EXEEXT!$EXEEXT$ac_delim
21438 OBJEXT!$OBJEXT$ac_delim
21439 CXX!$CXX$ac_delim
21440 CXXFLAGS!$CXXFLAGS$ac_delim
21441 ac_ct_CXX!$ac_ct_CXX$ac_delim
21442 CPPBIN!$CPPBIN$ac_delim
21443 TOOLSDIR!$TOOLSDIR$ac_delim
21444 XMKMF!$XMKMF$ac_delim
21445 CPP!$CPP$ac_delim
21446 X_CFLAGS!$X_CFLAGS$ac_delim
21447 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
21448 X_LIBS!$X_LIBS$ac_delim
21449 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
21450 LEX!$LEX$ac_delim
21451 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
21452 LEXLIB!$LEXLIB$ac_delim
21453 XLEX!$XLEX$ac_delim
21454 BISON!$BISON$ac_delim
21455 AS!$AS$ac_delim
21456 ac_ct_AS!$ac_ct_AS$ac_delim
21457 LD!$LD$ac_delim
21458 AR!$AR$ac_delim
21459 RANLIB!$RANLIB$ac_delim
21460 STRIP!$STRIP$ac_delim
21461 WINDRES!$WINDRES$ac_delim
21462 LN_S!$LN_S$ac_delim
21463 LN!$LN$ac_delim
21464 GREP!$GREP$ac_delim
21465 EGREP!$EGREP$ac_delim
21466 _ACEOF
21467
21468   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
21469     break
21470   elif $ac_last_try; then
21471     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21472 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21473    { (exit 1); exit 1; }; }
21474   else
21475     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21476   fi
21477 done
21478
21479 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21480 if test -n "$ac_eof"; then
21481   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21482   ac_eof=`expr $ac_eof + 1`
21483 fi
21484
21485 cat >>$CONFIG_STATUS <<_ACEOF
21486 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21487 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21488 /^[      ]*@MAKE_RULES@[         ]*$/{
21489 r $MAKE_RULES
21490 d
21491 }
21492 /^[      ]*@MAKE_DLL_RULES@[     ]*$/{
21493 r $MAKE_DLL_RULES
21494 d
21495 }
21496 /^[      ]*@MAKE_IMPLIB_RULES@[  ]*$/{
21497 r $MAKE_IMPLIB_RULES
21498 d
21499 }
21500 /^[      ]*@MAKE_TEST_RULES@[    ]*$/{
21501 r $MAKE_TEST_RULES
21502 d
21503 }
21504 /^[      ]*@MAKE_PROG_RULES@[    ]*$/{
21505 r $MAKE_PROG_RULES
21506 d
21507 }
21508 _ACEOF
21509 sed '
21510 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21511 s/^/s,@/; s/!/@,|#_!!_#|/
21512 :n
21513 t n
21514 s/'"$ac_delim"'$/,g/; t
21515 s/$/\\/; p
21516 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21517 ' >>$CONFIG_STATUS <conf$$subs.sed
21518 rm -f conf$$subs.sed
21519 cat >>$CONFIG_STATUS <<_ACEOF
21520 CEOF$ac_eof
21521 _ACEOF
21522
21523
21524 ac_delim='%!_!# '
21525 for ac_last_try in false false false false false :; do
21526   cat >conf$$subs.sed <<_ACEOF
21527 LDCONFIG!$LDCONFIG$ac_delim
21528 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21529 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21530 INSTALL_DATA!$INSTALL_DATA$ac_delim
21531 LINT!$LINT$ac_delim
21532 LINTFLAGS!$LINTFLAGS$ac_delim
21533 FONTFORGE!$FONTFORGE$ac_delim
21534 PKG_CONFIG!$PKG_CONFIG$ac_delim
21535 PRELINK!$PRELINK$ac_delim
21536 LIBPTHREAD!$LIBPTHREAD$ac_delim
21537 XLIB!$XLIB$ac_delim
21538 XFILES!$XFILES$ac_delim
21539 OPENGLFILES!$OPENGLFILES$ac_delim
21540 GLU32FILES!$GLU32FILES$ac_delim
21541 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
21542 QUARTZFILES!$QUARTZFILES$ac_delim
21543 NASLIBS!$NASLIBS$ac_delim
21544 XML2LIBS!$XML2LIBS$ac_delim
21545 XML2INCL!$XML2INCL$ac_delim
21546 XSLTLIBS!$XSLTLIBS$ac_delim
21547 XSLTINCL!$XSLTINCL$ac_delim
21548 HALINCL!$HALINCL$ac_delim
21549 sane_devel!$sane_devel$ac_delim
21550 SANELIBS!$SANELIBS$ac_delim
21551 SANEINCL!$SANEINCL$ac_delim
21552 gphoto2_devel!$gphoto2_devel$ac_delim
21553 gphoto2port_devel!$gphoto2port_devel$ac_delim
21554 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
21555 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
21556 ICULIBS!$ICULIBS$ac_delim
21557 RESOLVLIBS!$RESOLVLIBS$ac_delim
21558 LCMSLIBS!$LCMSLIBS$ac_delim
21559 LDAPLIBS!$LDAPLIBS$ac_delim
21560 FREETYPELIBS!$FREETYPELIBS$ac_delim
21561 FREETYPEINCL!$FREETYPEINCL$ac_delim
21562 ft_devel!$ft_devel$ac_delim
21563 ft_devel2!$ft_devel2$ac_delim
21564 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
21565 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
21566 ARTSLIBS!$ARTSLIBS$ac_delim
21567 ARTSINCL!$ARTSINCL$ac_delim
21568 ESDCONFIG!$ESDCONFIG$ac_delim
21569 ESDLIBS!$ESDLIBS$ac_delim
21570 ESDINCL!$ESDINCL$ac_delim
21571 ALSALIBS!$ALSALIBS$ac_delim
21572 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
21573 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
21574 BUILTINFLAG!$BUILTINFLAG$ac_delim
21575 DLLEXT!$DLLEXT$ac_delim
21576 DLLFLAGS!$DLLFLAGS$ac_delim
21577 LDSHARED!$LDSHARED$ac_delim
21578 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
21579 LIBEXT!$LIBEXT$ac_delim
21580 IMPLIBEXT!$IMPLIBEXT$ac_delim
21581 LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim
21582 DLLTOOL!$DLLTOOL$ac_delim
21583 DLLWRAP!$DLLWRAP$ac_delim
21584 MINGWAR!$MINGWAR$ac_delim
21585 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
21586 IOKITLIB!$IOKITLIB$ac_delim
21587 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
21588 DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
21589 COREAUDIO!$COREAUDIO$ac_delim
21590 CARBONLIB!$CARBONLIB$ac_delim
21591 CROSSTEST!$CROSSTEST$ac_delim
21592 CROSSCC!$CROSSCC$ac_delim
21593 CROSSWINDRES!$CROSSWINDRES$ac_delim
21594 LDPATH!$LDPATH$ac_delim
21595 CRTLIBS!$CRTLIBS$ac_delim
21596 SOCKETLIBS!$SOCKETLIBS$ac_delim
21597 MAIN_BINARY!$MAIN_BINARY$ac_delim
21598 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
21599 LDD!$LDD$ac_delim
21600 LIBDL!$LIBDL$ac_delim
21601 LIBPOLL!$LIBPOLL$ac_delim
21602 DEPENDENCIES!$DEPENDENCIES$ac_delim
21603 LIBOBJS!$LIBOBJS$ac_delim
21604 LTLIBOBJS!$LTLIBOBJS$ac_delim
21605 _ACEOF
21606
21607   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
21608     break
21609   elif $ac_last_try; then
21610     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21611 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21612    { (exit 1); exit 1; }; }
21613   else
21614     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21615   fi
21616 done
21617
21618 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21619 if test -n "$ac_eof"; then
21620   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21621   ac_eof=`expr $ac_eof + 1`
21622 fi
21623
21624 cat >>$CONFIG_STATUS <<_ACEOF
21625 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21627 _ACEOF
21628 sed '
21629 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21630 s/^/s,@/; s/!/@,|#_!!_#|/
21631 :n
21632 t n
21633 s/'"$ac_delim"'$/,g/; t
21634 s/$/\\/; p
21635 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21636 ' >>$CONFIG_STATUS <conf$$subs.sed
21637 rm -f conf$$subs.sed
21638 cat >>$CONFIG_STATUS <<_ACEOF
21639 :end
21640 s/|#_!!_#|//g
21641 CEOF$ac_eof
21642 _ACEOF
21643
21644
21645 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21646 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21647 # trailing colons and then remove the whole line if VPATH becomes empty
21648 # (actually we leave an empty line to preserve line numbers).
21649 if test "x$srcdir" = x.; then
21650   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21651 s/:*\$(srcdir):*/:/
21652 s/:*\${srcdir}:*/:/
21653 s/:*@srcdir@:*/:/
21654 s/^\([^=]*=[     ]*\):*/\1/
21655 s/:*$//
21656 s/^[^=]*=[       ]*$//
21657 }'
21658 fi
21659
21660 cat >>$CONFIG_STATUS <<\_ACEOF
21661 fi # test -n "$CONFIG_FILES"
21662
21663
21664 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21665 do
21666   case $ac_tag in
21667   :[FHLC]) ac_mode=$ac_tag; continue;;
21668   esac
21669   case $ac_mode$ac_tag in
21670   :[FHL]*:*);;
21671   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21672 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21673    { (exit 1); exit 1; }; };;
21674   :[FH]-) ac_tag=-:-;;
21675   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21676   esac
21677   ac_save_IFS=$IFS
21678   IFS=:
21679   set x $ac_tag
21680   IFS=$ac_save_IFS
21681   shift
21682   ac_file=$1
21683   shift
21684
21685   case $ac_mode in
21686   :L) ac_source=$1;;
21687   :[FH])
21688     ac_file_inputs=
21689     for ac_f
21690     do
21691       case $ac_f in
21692       -) ac_f="$tmp/stdin";;
21693       *) # Look for the file first in the build tree, then in the source tree
21694          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21695          # because $ac_f cannot contain `:'.
21696          test -f "$ac_f" ||
21697            case $ac_f in
21698            [\\/$]*) false;;
21699            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21700            esac ||
21701            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21702 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21703    { (exit 1); exit 1; }; };;
21704       esac
21705       ac_file_inputs="$ac_file_inputs $ac_f"
21706     done
21707
21708     # Let's still pretend it is `configure' which instantiates (i.e., don't
21709     # use $as_me), people would be surprised to read:
21710     #    /* config.h.  Generated by config.status.  */
21711     configure_input="Generated from "`IFS=:
21712           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21713     if test x"$ac_file" != x-; then
21714       configure_input="$ac_file.  $configure_input"
21715       { echo "$as_me:$LINENO: creating $ac_file" >&5
21716 echo "$as_me: creating $ac_file" >&6;}
21717     fi
21718
21719     case $ac_tag in
21720     *:-:* | *:-) cat >"$tmp/stdin";;
21721     esac
21722     ;;
21723   esac
21724
21725   ac_dir=`$as_dirname -- "$ac_file" ||
21726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21727          X"$ac_file" : 'X\(//\)[^/]' \| \
21728          X"$ac_file" : 'X\(//\)$' \| \
21729          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21730 echo X"$ac_file" |
21731     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21732             s//\1/
21733             q
21734           }
21735           /^X\(\/\/\)[^/].*/{
21736             s//\1/
21737             q
21738           }
21739           /^X\(\/\/\)$/{
21740             s//\1/
21741             q
21742           }
21743           /^X\(\/\).*/{
21744             s//\1/
21745             q
21746           }
21747           s/.*/./; q'`
21748   { as_dir="$ac_dir"
21749   case $as_dir in #(
21750   -*) as_dir=./$as_dir;;
21751   esac
21752   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21753     as_dirs=
21754     while :; do
21755       case $as_dir in #(
21756       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21757       *) as_qdir=$as_dir;;
21758       esac
21759       as_dirs="'$as_qdir' $as_dirs"
21760       as_dir=`$as_dirname -- "$as_dir" ||
21761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21762          X"$as_dir" : 'X\(//\)[^/]' \| \
21763          X"$as_dir" : 'X\(//\)$' \| \
21764          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21765 echo X"$as_dir" |
21766     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21767             s//\1/
21768             q
21769           }
21770           /^X\(\/\/\)[^/].*/{
21771             s//\1/
21772             q
21773           }
21774           /^X\(\/\/\)$/{
21775             s//\1/
21776             q
21777           }
21778           /^X\(\/\).*/{
21779             s//\1/
21780             q
21781           }
21782           s/.*/./; q'`
21783       test -d "$as_dir" && break
21784     done
21785     test -z "$as_dirs" || eval "mkdir $as_dirs"
21786   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21787 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21788    { (exit 1); exit 1; }; }; }
21789   ac_builddir=.
21790
21791 case "$ac_dir" in
21792 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21793 *)
21794   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21795   # A ".." for each directory in $ac_dir_suffix.
21796   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21797   case $ac_top_builddir_sub in
21798   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21799   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21800   esac ;;
21801 esac
21802 ac_abs_top_builddir=$ac_pwd
21803 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21804 # for backward compatibility:
21805 ac_top_builddir=$ac_top_build_prefix
21806
21807 case $srcdir in
21808   .)  # We are building in place.
21809     ac_srcdir=.
21810     ac_top_srcdir=$ac_top_builddir_sub
21811     ac_abs_top_srcdir=$ac_pwd ;;
21812   [\\/]* | ?:[\\/]* )  # Absolute name.
21813     ac_srcdir=$srcdir$ac_dir_suffix;
21814     ac_top_srcdir=$srcdir
21815     ac_abs_top_srcdir=$srcdir ;;
21816   *) # Relative name.
21817     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21818     ac_top_srcdir=$ac_top_build_prefix$srcdir
21819     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21820 esac
21821 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21822
21823
21824   case $ac_mode in
21825   :F)
21826   #
21827   # CONFIG_FILE
21828   #
21829
21830   case $INSTALL in
21831   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21832   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21833   esac
21834 _ACEOF
21835
21836 cat >>$CONFIG_STATUS <<\_ACEOF
21837 # If the template does not know about datarootdir, expand it.
21838 # FIXME: This hack should be removed a few years after 2.60.
21839 ac_datarootdir_hack=; ac_datarootdir_seen=
21840
21841 case `sed -n '/datarootdir/ {
21842   p
21843   q
21844 }
21845 /@datadir@/p
21846 /@docdir@/p
21847 /@infodir@/p
21848 /@localedir@/p
21849 /@mandir@/p
21850 ' $ac_file_inputs` in
21851 *datarootdir*) ac_datarootdir_seen=yes;;
21852 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21853   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21854 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21855 _ACEOF
21856 cat >>$CONFIG_STATUS <<_ACEOF
21857   ac_datarootdir_hack='
21858   s&@datadir@&$datadir&g
21859   s&@docdir@&$docdir&g
21860   s&@infodir@&$infodir&g
21861   s&@localedir@&$localedir&g
21862   s&@mandir@&$mandir&g
21863     s&\\\${datarootdir}&$datarootdir&g' ;;
21864 esac
21865 _ACEOF
21866
21867 # Neutralize VPATH when `$srcdir' = `.'.
21868 # Shell code in configure.ac might set extrasub.
21869 # FIXME: do we really want to maintain this feature?
21870 cat >>$CONFIG_STATUS <<_ACEOF
21871   sed "$ac_vpsub
21872 $extrasub
21873 _ACEOF
21874 cat >>$CONFIG_STATUS <<\_ACEOF
21875 :t
21876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21877 s&@configure_input@&$configure_input&;t t
21878 s&@top_builddir@&$ac_top_builddir_sub&;t t
21879 s&@srcdir@&$ac_srcdir&;t t
21880 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21881 s&@top_srcdir@&$ac_top_srcdir&;t t
21882 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21883 s&@builddir@&$ac_builddir&;t t
21884 s&@abs_builddir@&$ac_abs_builddir&;t t
21885 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21886 s&@INSTALL@&$ac_INSTALL&;t t
21887 $ac_datarootdir_hack
21888 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21889
21890 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21891   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21892   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21893   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21894 which seems to be undefined.  Please make sure it is defined." >&5
21895 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21896 which seems to be undefined.  Please make sure it is defined." >&2;}
21897
21898   rm -f "$tmp/stdin"
21899   case $ac_file in
21900   -) cat "$tmp/out"; rm -f "$tmp/out";;
21901   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21902   esac
21903  ;;
21904   :H)
21905   #
21906   # CONFIG_HEADER
21907   #
21908 _ACEOF
21909
21910 # Transform confdefs.h into a sed script `conftest.defines', that
21911 # substitutes the proper values into config.h.in to produce config.h.
21912 rm -f conftest.defines conftest.tail
21913 # First, append a space to every undef/define line, to ease matching.
21914 echo 's/$/ /' >conftest.defines
21915 # Then, protect against being on the right side of a sed subst, or in
21916 # an unquoted here document, in config.status.  If some macros were
21917 # called several times there might be several #defines for the same
21918 # symbol, which is useless.  But do not sort them, since the last
21919 # AC_DEFINE must be honored.
21920 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21921 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21922 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21923 # PARAMS is the parameter list in the macro definition--in most cases, it's
21924 # just an empty string.
21925 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21926 ac_dB='\\)[      (].*,\\1define\\2'
21927 ac_dC=' '
21928 ac_dD=' ,'
21929
21930 uniq confdefs.h |
21931   sed -n '
21932         t rset
21933         :rset
21934         s/^[     ]*#[    ]*define[       ][      ]*//
21935         t ok
21936         d
21937         :ok
21938         s/[\\&,]/\\&/g
21939         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21940         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21941   ' >>conftest.defines
21942
21943 # Remove the space that was appended to ease matching.
21944 # Then replace #undef with comments.  This is necessary, for
21945 # example, in the case of _POSIX_SOURCE, which is predefined and required
21946 # on some systems where configure will not decide to define it.
21947 # (The regexp can be short, since the line contains either #define or #undef.)
21948 echo 's/ $//
21949 s,^[     #]*u.*,/* & */,' >>conftest.defines
21950
21951 # Break up conftest.defines:
21952 ac_max_sed_lines=50
21953
21954 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21955 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21956 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21957 # et cetera.
21958 ac_in='$ac_file_inputs'
21959 ac_out='"$tmp/out1"'
21960 ac_nxt='"$tmp/out2"'
21961
21962 while :
21963 do
21964   # Write a here document:
21965     cat >>$CONFIG_STATUS <<_ACEOF
21966     # First, check the format of the line:
21967     cat >"\$tmp/defines.sed" <<\\CEOF
21968 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21969 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21970 b
21971 :def
21972 _ACEOF
21973   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21974   echo 'CEOF
21975     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21976   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21977   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21978   grep . conftest.tail >/dev/null || break
21979   rm -f conftest.defines
21980   mv conftest.tail conftest.defines
21981 done
21982 rm -f conftest.defines conftest.tail
21983
21984 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21985 cat >>$CONFIG_STATUS <<\_ACEOF
21986   if test x"$ac_file" != x-; then
21987     echo "/* $configure_input  */" >"$tmp/config.h"
21988     cat "$ac_result" >>"$tmp/config.h"
21989     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21990       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21991 echo "$as_me: $ac_file is unchanged" >&6;}
21992     else
21993       rm -f $ac_file
21994       mv "$tmp/config.h" $ac_file
21995     fi
21996   else
21997     echo "/* $configure_input  */"
21998     cat "$ac_result"
21999   fi
22000   rm -f "$tmp/out12"
22001  ;;
22002
22003   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22004 echo "$as_me: executing $ac_file commands" >&6;}
22005  ;;
22006   esac
22007
22008
22009   case $ac_file$ac_mode in
22010     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
22011     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
22012 echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
22013     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
22014 echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
22015     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
22016 echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
22017     "dlls/user32/resources":C) test -d "dlls/user32/resources" || ({ echo "$as_me:$LINENO: creating dlls/user32/resources" >&5
22018 echo "$as_me: creating dlls/user32/resources" >&6;} && mkdir "dlls/user32/resources") ;;
22019     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
22020 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
22021     "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
22022 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
22023
22024   esac
22025 done # for ac_tag
22026
22027
22028 { (exit 0); exit 0; }
22029 _ACEOF
22030 chmod +x $CONFIG_STATUS
22031 ac_clean_files=$ac_clean_files_save
22032
22033
22034 # configure is writing to config.log, and then calls config.status.
22035 # config.status does its own redirection, appending to config.log.
22036 # Unfortunately, on DOS this fails, as config.log is still kept open
22037 # by configure, so config.status won't be able to write to it; its
22038 # output is simply discarded.  So we exec the FD to /dev/null,
22039 # effectively closing config.log, so it can be properly (re)opened and
22040 # appended to by config.status.  When coming back to configure, we
22041 # need to make the FD available again.
22042 if test "$no_create" != yes; then
22043   ac_cs_success=:
22044   ac_config_status_args=
22045   test "$silent" = yes &&
22046     ac_config_status_args="$ac_config_status_args --quiet"
22047   exec 5>/dev/null
22048   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22049   exec 5>>config.log
22050   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22051   # would make configure fail if this is the last instruction.
22052   $ac_cs_success || { (exit 1); exit 1; }
22053 fi
22054
22055
22056
22057 if test "$no_create" = "yes"
22058 then
22059   exit 0
22060 fi
22061
22062 if test "$verbose" = "yes"
22063 then
22064     if test "$ac_cv_header_capi20_h" != "yes" -o "$ac_cv_header_linux_capi_h" != "yes"
22065   then
22066     echo >&2
22067     { echo "$as_me:$LINENO: libcapi20 development files not found." >&5
22068 echo "$as_me: libcapi20 development files not found." >&6;}
22069     { echo "$as_me:$LINENO: Wine will be built without ISDN support. (capi2032.dll)" >&5
22070 echo "$as_me: Wine will be built without ISDN support. (capi2032.dll)" >&6;}
22071   fi
22072
22073     if test "$ac_cv_header_cups_cups_h" != "yes"
22074   then
22075     echo >&2
22076     { echo "$as_me:$LINENO: libcups development files not found." >&5
22077 echo "$as_me: libcups development files not found." >&6;}
22078     { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
22079 echo "$as_me: Wine will be built without CUPS support." >&6;}
22080   fi
22081
22082
22083     if test "$ac_cv_header_gphoto2_camera_h" != "yes"
22084   then
22085     echo >&2
22086     { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
22087 echo "$as_me: libgphoto2 development files not found." >&6;}
22088     if test "$ac_cv_header_sane_sane_h" = "yes"
22089     then
22090       { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
22091 echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
22092     else
22093       { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
22094 echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
22095     fi
22096   fi
22097
22098       if test "$ac_cv_header_hal_libhal_h" != "yes"
22099   then
22100     echo >&2
22101     { echo "$as_me:$LINENO: libhal development files not found." >&5
22102 echo "$as_me: libhal development files not found." >&6;}
22103     { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
22104 echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
22105   fi
22106
22107     if test "$ac_cv_header_unicode_ubidi_h" != "yes"
22108   then
22109     echo >&2
22110     { echo "$as_me:$LINENO: libicu development files not found." >&5
22111 echo "$as_me: libicu development files not found." >&6;}
22112     { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
22113 echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
22114   fi
22115
22116     if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
22117   then
22118     echo >&2
22119     { echo "$as_me:$LINENO: liblcms development files not found." >&5
22120 echo "$as_me: liblcms development files not found." >&6;}
22121     { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
22122 echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
22123   fi
22124
22125     if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
22126   then
22127     echo >&2
22128     { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
22129 echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
22130     { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
22131 echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
22132   fi
22133
22134     if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
22135   then
22136     echo >&2
22137     { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
22138 echo "$as_me: lib(n)curses development files not found." >&6;}
22139     { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
22140 echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
22141   fi
22142
22143     if test "$ac_cv_header_sane_sane_h" != "yes"
22144   then
22145     echo >&2
22146     { echo "$as_me:$LINENO: libsane development files not found." >&5
22147 echo "$as_me: libsane development files not found." >&6;}
22148     { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
22149 echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
22150   fi
22151
22152       if test "$have_x" = "yes"
22153   then
22154         if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
22155     then
22156       echo >&2
22157       { echo "$as_me:$LINENO: libxext development files not found." >&5
22158 echo "$as_me: libxext development files not found." >&6;}
22159       { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
22160 echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
22161     fi
22162
22163         if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
22164     then
22165       echo >&2
22166       { echo "$as_me:$LINENO: libXrandr development files not found." >&5
22167 echo "$as_me: libXrandr development files not found." >&6;}
22168       { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
22169 echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
22170     fi
22171
22172         if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
22173     then
22174       echo >&2
22175       { echo "$as_me:$LINENO: libXrender development files not found." >&5
22176 echo "$as_me: libXrender development files not found." >&6;}
22177       { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
22178 echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
22179     fi
22180
22181         if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
22182     then
22183       echo >&2
22184       { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
22185 echo "$as_me: libXxf86vm development files not found." >&6;}
22186       { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
22187 echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
22188     fi
22189   fi
22190
22191     if test "$ac_cv_header_libxml_parser_h" != "yes"
22192   then
22193     echo >&2
22194     { echo "$as_me:$LINENO: libxml2 development files not found." >&5
22195 echo "$as_me: libxml2 development files not found." >&6;}
22196     { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
22197 echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
22198   fi
22199
22200     if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
22201   then
22202     echo >&2
22203     { echo "$as_me:$LINENO: libxslt development files not found." >&5
22204 echo "$as_me: libxslt development files not found." >&6;}
22205     { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
22206 echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
22207   fi
22208 fi
22209
22210
22211 if test "$have_x" = "no"
22212 then
22213   echo >&2
22214   { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
22215 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
22216   { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
22217 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
22218   { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
22219 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
22220   { echo "$as_me:$LINENO: WARNING:  packages of Xlib/Xfree86 at the very least." >&5
22221 echo "$as_me: WARNING:  packages of Xlib/Xfree86 at the very least." >&2;}
22222 fi
22223
22224 if test -z "$OPENGLFILES"
22225 then
22226   echo >&2
22227   { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
22228 echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
22229   { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
22230 echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
22231   if test "$wine_cv_opengl_headers_found" = "no"
22232   then
22233     { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
22234 echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
22235   fi
22236   if test "$wine_cv_opengl_header_version_OK" = "no"
22237   then
22238     { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
22239 echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
22240   elif test "$ac_cv_lib_GL_glXCreateContext" = "no"
22241   then
22242      if test -f /usr/X11R6/lib/libGL.a
22243      then
22244         { echo "$as_me:$LINENO: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22245 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&5
22246 echo "$as_me: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22247 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&2;}
22248      else
22249         { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
22250 echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
22251      fi
22252   fi
22253 fi
22254
22255 if test "$wine_cv_msg_freetype" = "yes"
22256 then
22257   echo >&2
22258   { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
22259 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
22260   { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
22261 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
22262   { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
22263 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
22264   { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
22265 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
22266 fi
22267
22268 if test -z "$FONTSSUBDIRS"
22269 then
22270   echo >&2
22271   if test "$FONTFORGE" = "false"
22272   then
22273     { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
22274 echo "$as_me: WARNING: FontForge is missing." >&2;}
22275   else
22276     { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
22277 echo "$as_me: WARNING: FreeType is missing." >&2;}
22278   fi
22279   { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
22280 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
22281 fi
22282
22283 if test -z "$ALSALIBS" -a \
22284         -z "$ARTSC_LIBS" -a \
22285         -z "$AUDIOIOLIBS" -a \
22286         -z "$NASLIBS" -a \
22287         -z "$ESD_LIBS" -a \
22288         -z "$ac_cv_lib_soname_jack" -a \
22289         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
22290         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
22291         "$ac_cv_header_soundcard_h" != "yes"
22292 then
22293   echo >&2
22294   { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
22295 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
22296   { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
22297 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
22298   { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
22299 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
22300 fi
22301
22302 echo
22303 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
22304 echo
22305