comctl32: Constify some variables.
[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.34.
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.34'
578 PACKAGE_STRING='Wine 0.9.34'
579 PACKAGE_BUGREPORT='wine-devel@winehq.org'
580
581 ac_unique_file="server/atom.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 WIN16_FILES
664 WIN16_INSTALL
665 SET_MAKE
666 CC
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
673 CXX
674 CXXFLAGS
675 ac_ct_CXX
676 CPPBIN
677 TOOLSDIR
678 XMKMF
679 CPP
680 X_CFLAGS
681 X_PRE_LIBS
682 X_LIBS
683 X_EXTRA_LIBS
684 FLEX
685 BISON
686 AS
687 ac_ct_AS
688 LD
689 AR
690 RANLIB
691 STRIP
692 WINDRES
693 LN_S
694 LN
695 GREP
696 EGREP
697 LDCONFIG
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 LINT
702 LINTFLAGS
703 FONTFORGE
704 PKG_CONFIG
705 PRELINK
706 LIBPTHREAD
707 XLIB
708 XFILES
709 OPENGLFILES
710 GLU32FILES
711 OPENGL_LIBS
712 QUARTZFILES
713 NASLIBS
714 XML2LIBS
715 XML2INCL
716 XSLTLIBS
717 XSLTINCL
718 HALINCL
719 sane_devel
720 SANEINCL
721 gphoto2_devel
722 gphoto2port_devel
723 GPHOTO2LIBS
724 GPHOTO2INCL
725 ICULIBS
726 RESOLVLIBS
727 LCMSLIBS
728 LDAPLIBS
729 FREETYPELIBS
730 FREETYPEINCL
731 ft_devel
732 ft_devel2
733 FONTSSUBDIRS
734 ARTSCCONFIG
735 ARTSLIBS
736 ARTSINCL
737 ESDCONFIG
738 ESDLIBS
739 ESDINCL
740 ALSALIBS
741 AUDIOIOLIBS
742 EXTRACFLAGS
743 BUILTINFLAG
744 DLLEXT
745 DLLFLAGS
746 LDSHARED
747 LDDLLFLAGS
748 LIBEXT
749 IMPLIBEXT
750 LIBWINE_LDFLAGS
751 DLLTOOL
752 DLLWRAP
753 MINGWAR
754 COREFOUNDATIONLIB
755 IOKITLIB
756 LDEXECFLAGS
757 DISKARBITRATIONLIB
758 COREAUDIO
759 CARBONLIB
760 CROSSTEST
761 CROSSCC
762 CROSSWINDRES
763 LDPATH
764 CRTLIBS
765 SOCKETLIBS
766 MAIN_BINARY
767 EXTRA_BINARIES
768 LDD
769 LIBDL
770 LIBPOLL
771 DEPENDENCIES
772 LIBOBJS
773 LTLIBOBJS'
774 ac_subst_files='MAKE_RULES
775 MAKE_DLL_RULES
776 MAKE_IMPLIB_RULES
777 MAKE_TEST_RULES
778 MAKE_PROG_RULES'
779       ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 CXX
788 CXXFLAGS
789 CCC
790 XMKMF
791 CPP'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844   # If the previous option needs an argument, assign it.
845   if test -n "$ac_prev"; then
846     eval $ac_prev=\$ac_option
847     ac_prev=
848     continue
849   fi
850
851   case $ac_option in
852   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853   *)    ac_optarg=yes ;;
854   esac
855
856   # Accept the important Cygnus configure options, so we can diagnose typos.
857
858   case $ac_dashdash$ac_option in
859   --)
860     ac_dashdash=yes ;;
861
862   -bindir | --bindir | --bindi | --bind | --bin | --bi)
863     ac_prev=bindir ;;
864   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865     bindir=$ac_optarg ;;
866
867   -build | --build | --buil | --bui | --bu)
868     ac_prev=build_alias ;;
869   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870     build_alias=$ac_optarg ;;
871
872   -cache-file | --cache-file | --cache-fil | --cache-fi \
873   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874     ac_prev=cache_file ;;
875   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877     cache_file=$ac_optarg ;;
878
879   --config-cache | -C)
880     cache_file=config.cache ;;
881
882   -datadir | --datadir | --datadi | --datad)
883     ac_prev=datadir ;;
884   -datadir=* | --datadir=* | --datadi=* | --datad=*)
885     datadir=$ac_optarg ;;
886
887   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888   | --dataroo | --dataro | --datar)
889     ac_prev=datarootdir ;;
890   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892     datarootdir=$ac_optarg ;;
893
894   -disable-* | --disable-*)
895     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896     # Reject names that are not valid shell variable names.
897     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
898       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
899    { (exit 1); exit 1; }; }
900     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
901     eval enable_$ac_feature=no ;;
902
903   -docdir | --docdir | --docdi | --doc | --do)
904     ac_prev=docdir ;;
905   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906     docdir=$ac_optarg ;;
907
908   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909     ac_prev=dvidir ;;
910   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911     dvidir=$ac_optarg ;;
912
913   -enable-* | --enable-*)
914     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
917       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
918    { (exit 1); exit 1; }; }
919     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
920     eval enable_$ac_feature=\$ac_optarg ;;
921
922   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924   | --exec | --exe | --ex)
925     ac_prev=exec_prefix ;;
926   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928   | --exec=* | --exe=* | --ex=*)
929     exec_prefix=$ac_optarg ;;
930
931   -gas | --gas | --ga | --g)
932     # Obsolete; use --with-gas.
933     with_gas=yes ;;
934
935   -help | --help | --hel | --he | -h)
936     ac_init_help=long ;;
937   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938     ac_init_help=recursive ;;
939   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940     ac_init_help=short ;;
941
942   -host | --host | --hos | --ho)
943     ac_prev=host_alias ;;
944   -host=* | --host=* | --hos=* | --ho=*)
945     host_alias=$ac_optarg ;;
946
947   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948     ac_prev=htmldir ;;
949   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950   | --ht=*)
951     htmldir=$ac_optarg ;;
952
953   -includedir | --includedir | --includedi | --included | --include \
954   | --includ | --inclu | --incl | --inc)
955     ac_prev=includedir ;;
956   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957   | --includ=* | --inclu=* | --incl=* | --inc=*)
958     includedir=$ac_optarg ;;
959
960   -infodir | --infodir | --infodi | --infod | --info | --inf)
961     ac_prev=infodir ;;
962   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963     infodir=$ac_optarg ;;
964
965   -libdir | --libdir | --libdi | --libd)
966     ac_prev=libdir ;;
967   -libdir=* | --libdir=* | --libdi=* | --libd=*)
968     libdir=$ac_optarg ;;
969
970   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971   | --libexe | --libex | --libe)
972     ac_prev=libexecdir ;;
973   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974   | --libexe=* | --libex=* | --libe=*)
975     libexecdir=$ac_optarg ;;
976
977   -localedir | --localedir | --localedi | --localed | --locale)
978     ac_prev=localedir ;;
979   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980     localedir=$ac_optarg ;;
981
982   -localstatedir | --localstatedir | --localstatedi | --localstated \
983   | --localstate | --localstat | --localsta | --localst | --locals)
984     ac_prev=localstatedir ;;
985   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987     localstatedir=$ac_optarg ;;
988
989   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990     ac_prev=mandir ;;
991   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992     mandir=$ac_optarg ;;
993
994   -nfp | --nfp | --nf)
995     # Obsolete; use --without-fp.
996     with_fp=no ;;
997
998   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999   | --no-cr | --no-c | -n)
1000     no_create=yes ;;
1001
1002   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004     no_recursion=yes ;;
1005
1006   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008   | --oldin | --oldi | --old | --ol | --o)
1009     ac_prev=oldincludedir ;;
1010   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013     oldincludedir=$ac_optarg ;;
1014
1015   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016     ac_prev=prefix ;;
1017   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018     prefix=$ac_optarg ;;
1019
1020   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021   | --program-pre | --program-pr | --program-p)
1022     ac_prev=program_prefix ;;
1023   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025     program_prefix=$ac_optarg ;;
1026
1027   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028   | --program-suf | --program-su | --program-s)
1029     ac_prev=program_suffix ;;
1030   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032     program_suffix=$ac_optarg ;;
1033
1034   -program-transform-name | --program-transform-name \
1035   | --program-transform-nam | --program-transform-na \
1036   | --program-transform-n | --program-transform- \
1037   | --program-transform | --program-transfor \
1038   | --program-transfo | --program-transf \
1039   | --program-trans | --program-tran \
1040   | --progr-tra | --program-tr | --program-t)
1041     ac_prev=program_transform_name ;;
1042   -program-transform-name=* | --program-transform-name=* \
1043   | --program-transform-nam=* | --program-transform-na=* \
1044   | --program-transform-n=* | --program-transform-=* \
1045   | --program-transform=* | --program-transfor=* \
1046   | --program-transfo=* | --program-transf=* \
1047   | --program-trans=* | --program-tran=* \
1048   | --progr-tra=* | --program-tr=* | --program-t=*)
1049     program_transform_name=$ac_optarg ;;
1050
1051   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052     ac_prev=pdfdir ;;
1053   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054     pdfdir=$ac_optarg ;;
1055
1056   -psdir | --psdir | --psdi | --psd | --ps)
1057     ac_prev=psdir ;;
1058   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059     psdir=$ac_optarg ;;
1060
1061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062   | -silent | --silent | --silen | --sile | --sil)
1063     silent=yes ;;
1064
1065   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066     ac_prev=sbindir ;;
1067   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068   | --sbi=* | --sb=*)
1069     sbindir=$ac_optarg ;;
1070
1071   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073   | --sharedst | --shareds | --shared | --share | --shar \
1074   | --sha | --sh)
1075     ac_prev=sharedstatedir ;;
1076   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079   | --sha=* | --sh=*)
1080     sharedstatedir=$ac_optarg ;;
1081
1082   -site | --site | --sit)
1083     ac_prev=site ;;
1084   -site=* | --site=* | --sit=*)
1085     site=$ac_optarg ;;
1086
1087   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088     ac_prev=srcdir ;;
1089   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090     srcdir=$ac_optarg ;;
1091
1092   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093   | --syscon | --sysco | --sysc | --sys | --sy)
1094     ac_prev=sysconfdir ;;
1095   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097     sysconfdir=$ac_optarg ;;
1098
1099   -target | --target | --targe | --targ | --tar | --ta | --t)
1100     ac_prev=target_alias ;;
1101   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102     target_alias=$ac_optarg ;;
1103
1104   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105     verbose=yes ;;
1106
1107   -version | --version | --versio | --versi | --vers | -V)
1108     ac_init_version=: ;;
1109
1110   -with-* | --with-*)
1111     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114       { echo "$as_me: error: invalid package name: $ac_package" >&2
1115    { (exit 1); exit 1; }; }
1116     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117     eval with_$ac_package=\$ac_optarg ;;
1118
1119   -without-* | --without-*)
1120     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123       { echo "$as_me: error: invalid package name: $ac_package" >&2
1124    { (exit 1); exit 1; }; }
1125     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1126     eval with_$ac_package=no ;;
1127
1128   --x)
1129     # Obsolete; use --with-x.
1130     with_x=yes ;;
1131
1132   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133   | --x-incl | --x-inc | --x-in | --x-i)
1134     ac_prev=x_includes ;;
1135   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137     x_includes=$ac_optarg ;;
1138
1139   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141     ac_prev=x_libraries ;;
1142   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144     x_libraries=$ac_optarg ;;
1145
1146   -*) { echo "$as_me: error: unrecognized option: $ac_option
1147 Try \`$0 --help' for more information." >&2
1148    { (exit 1); exit 1; }; }
1149     ;;
1150
1151   *=*)
1152     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1155       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1156    { (exit 1); exit 1; }; }
1157     eval $ac_envvar=\$ac_optarg
1158     export $ac_envvar ;;
1159
1160   *)
1161     # FIXME: should be removed in autoconf 3.0.
1162     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166     ;;
1167
1168   esac
1169 done
1170
1171 if test -n "$ac_prev"; then
1172   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173   { echo "$as_me: error: missing argument to $ac_option" >&2
1174    { (exit 1); exit 1; }; }
1175 fi
1176
1177 # Be sure to have absolute directory names.
1178 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179                 datadir sysconfdir sharedstatedir localstatedir includedir \
1180                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181                 libdir localedir mandir
1182 do
1183   eval ac_val=\$$ac_var
1184   case $ac_val in
1185     [\\/$]* | ?:[\\/]* )  continue;;
1186     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187   esac
1188   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1189    { (exit 1); exit 1; }; }
1190 done
1191
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1195 build=$build_alias
1196 host=$host_alias
1197 target=$target_alias
1198
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201   if test "x$build_alias" = x; then
1202     cross_compiling=maybe
1203     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1204     If a cross compiler is detected then cross compile mode will be used." >&2
1205   elif test "x$build_alias" != "x$host_alias"; then
1206     cross_compiling=yes
1207   fi
1208 fi
1209
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213 test "$silent" = yes && exec 6>/dev/null
1214
1215
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219   { echo "$as_me: error: Working directory cannot be determined" >&2
1220    { (exit 1); exit 1; }; }
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222   { echo "$as_me: error: pwd does not report name of working directory" >&2
1223    { (exit 1); exit 1; }; }
1224
1225
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228   ac_srcdir_defaulted=yes
1229   # Try the directory containing this script, then the parent directory.
1230   ac_confdir=`$as_dirname -- "$0" ||
1231 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232          X"$0" : 'X\(//\)[^/]' \| \
1233          X"$0" : 'X\(//\)$' \| \
1234          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1235 echo X"$0" |
1236     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237             s//\1/
1238             q
1239           }
1240           /^X\(\/\/\)[^/].*/{
1241             s//\1/
1242             q
1243           }
1244           /^X\(\/\/\)$/{
1245             s//\1/
1246             q
1247           }
1248           /^X\(\/\).*/{
1249             s//\1/
1250             q
1251           }
1252           s/.*/./; q'`
1253   srcdir=$ac_confdir
1254   if test ! -r "$srcdir/$ac_unique_file"; then
1255     srcdir=..
1256   fi
1257 else
1258   ac_srcdir_defaulted=no
1259 fi
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1263    { (exit 1); exit 1; }; }
1264 fi
1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266 ac_abs_confdir=`(
1267         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1268    { (exit 1); exit 1; }; }
1269         pwd)`
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272   srcdir=.
1273 fi
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1277 case $srcdir in
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 esac
1280 for ac_var in $ac_precious_vars; do
1281   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282   eval ac_env_${ac_var}_value=\$${ac_var}
1283   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 done
1286
1287 #
1288 # Report the --help message.
1289 #
1290 if test "$ac_init_help" = "long"; then
1291   # Omit some internal or obsolete options to make the list less imposing.
1292   # This message is too long to be a string in the A/UX 3.1 sh.
1293   cat <<_ACEOF
1294 \`configure' configures Wine 0.9.34 to adapt to many kinds of systems.
1295
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1297
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE.  See below for descriptions of some of the useful variables.
1300
1301 Defaults for the options are specified in brackets.
1302
1303 Configuration:
1304   -h, --help              display this help and exit
1305       --help=short        display options specific to this package
1306       --help=recursive    display the short help of all the included packages
1307   -V, --version           display version information and exit
1308   -q, --quiet, --silent   do not print \`checking...' messages
1309       --cache-file=FILE   cache test results in FILE [disabled]
1310   -C, --config-cache      alias for \`--cache-file=config.cache'
1311   -n, --no-create         do not create output files
1312       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1313
1314 Installation directories:
1315   --prefix=PREFIX         install architecture-independent files in PREFIX
1316                           [$ac_default_prefix]
1317   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1318                           [PREFIX]
1319
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1324
1325 For better control, use the options below.
1326
1327 Fine tuning of the installation directories:
1328   --bindir=DIR           user executables [EPREFIX/bin]
1329   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1330   --libexecdir=DIR       program executables [EPREFIX/libexec]
1331   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1332   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1333   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1334   --libdir=DIR           object code libraries [EPREFIX/lib]
1335   --includedir=DIR       C header files [PREFIX/include]
1336   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1337   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1338   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1339   --infodir=DIR          info documentation [DATAROOTDIR/info]
1340   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1341   --mandir=DIR           man documentation [DATAROOTDIR/man]
1342   --docdir=DIR           documentation root [DATAROOTDIR/doc/wine]
1343   --htmldir=DIR          html documentation [DOCDIR]
1344   --dvidir=DIR           dvi documentation [DOCDIR]
1345   --pdfdir=DIR           pdf documentation [DOCDIR]
1346   --psdir=DIR            ps documentation [DOCDIR]
1347 _ACEOF
1348
1349   cat <<\_ACEOF
1350
1351 X features:
1352   --x-includes=DIR    X include files are in DIR
1353   --x-libraries=DIR   X library files are in DIR
1354
1355 System types:
1356   --build=BUILD     configure for building on BUILD [guessed]
1357   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1358 _ACEOF
1359 fi
1360
1361 if test -n "$ac_init_help"; then
1362   case $ac_init_help in
1363      short | recursive ) echo "Configuration of Wine 0.9.34:";;
1364    esac
1365   cat <<\_ACEOF
1366
1367 Optional Features:
1368   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1369   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1370   --disable-win16         do not include Win16 support
1371   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1372                           binaries)
1373
1374 Optional Packages:
1375   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1376   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1377   --without-opengl        do not use OpenGL
1378   --with-wine-tools=<dir> use Wine tools from directory <dir>
1379   --with-x                use the X Window System
1380
1381 Some influential environment variables:
1382   CC          C compiler command
1383   CFLAGS      C compiler flags
1384   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1385               nonstandard directory <lib dir>
1386   LIBS        libraries to pass to the linker, e.g. -l<library>
1387   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1388               you have headers in a nonstandard directory <include dir>
1389   CXX         C++ compiler command
1390   CXXFLAGS    C++ compiler flags
1391   XMKMF       Path to xmkmf, Makefile generator for X Window System
1392   CPP         C preprocessor
1393
1394 Use these variables to override the choices made by `configure' or to help
1395 it to find libraries and programs with nonstandard names/locations.
1396
1397 Report bugs to <wine-devel@winehq.org>.
1398 _ACEOF
1399 ac_status=$?
1400 fi
1401
1402 if test "$ac_init_help" = "recursive"; then
1403   # If there are subdirs, report their specific --help.
1404   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405     test -d "$ac_dir" || continue
1406     ac_builddir=.
1407
1408 case "$ac_dir" in
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *)
1411   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1412   # A ".." for each directory in $ac_dir_suffix.
1413   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1414   case $ac_top_builddir_sub in
1415   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417   esac ;;
1418 esac
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1423
1424 case $srcdir in
1425   .)  # We are building in place.
1426     ac_srcdir=.
1427     ac_top_srcdir=$ac_top_builddir_sub
1428     ac_abs_top_srcdir=$ac_pwd ;;
1429   [\\/]* | ?:[\\/]* )  # Absolute name.
1430     ac_srcdir=$srcdir$ac_dir_suffix;
1431     ac_top_srcdir=$srcdir
1432     ac_abs_top_srcdir=$srcdir ;;
1433   *) # Relative name.
1434     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435     ac_top_srcdir=$ac_top_build_prefix$srcdir
1436     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 esac
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1439
1440     cd "$ac_dir" || { ac_status=$?; continue; }
1441     # Check for guested configure.
1442     if test -f "$ac_srcdir/configure.gnu"; then
1443       echo &&
1444       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445     elif test -f "$ac_srcdir/configure"; then
1446       echo &&
1447       $SHELL "$ac_srcdir/configure" --help=recursive
1448     else
1449       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450     fi || ac_status=$?
1451     cd "$ac_pwd" || { ac_status=$?; break; }
1452   done
1453 fi
1454
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1457   cat <<\_ACEOF
1458 Wine configure 0.9.34
1459 generated by GNU Autoconf 2.61
1460
1461 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1462 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1463 This configure script is free software; the Free Software Foundation
1464 gives unlimited permission to copy, distribute and modify it.
1465 _ACEOF
1466   exit
1467 fi
1468 cat >config.log <<_ACEOF
1469 This file contains any messages produced by compilers while
1470 running configure, to aid debugging if configure makes a mistake.
1471
1472 It was created by Wine $as_me 0.9.34, which was
1473 generated by GNU Autoconf 2.61.  Invocation command line was
1474
1475   $ $0 $@
1476
1477 _ACEOF
1478 exec 5>>config.log
1479 {
1480 cat <<_ASUNAME
1481 ## --------- ##
1482 ## Platform. ##
1483 ## --------- ##
1484
1485 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1486 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1487 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1488 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1489 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1490
1491 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1492 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1493
1494 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1495 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1496 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1497 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1498 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1499 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1500 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1501
1502 _ASUNAME
1503
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1506 do
1507   IFS=$as_save_IFS
1508   test -z "$as_dir" && as_dir=.
1509   echo "PATH: $as_dir"
1510 done
1511 IFS=$as_save_IFS
1512
1513 } >&5
1514
1515 cat >&5 <<_ACEOF
1516
1517
1518 ## ----------- ##
1519 ## Core tests. ##
1520 ## ----------- ##
1521
1522 _ACEOF
1523
1524
1525 # Keep a trace of the command line.
1526 # Strip out --no-create and --no-recursion so they do not pile up.
1527 # Strip out --silent because we don't want to record it for future runs.
1528 # Also quote any args containing shell meta-characters.
1529 # Make two passes to allow for proper duplicate-argument suppression.
1530 ac_configure_args=
1531 ac_configure_args0=
1532 ac_configure_args1=
1533 ac_must_keep_next=false
1534 for ac_pass in 1 2
1535 do
1536   for ac_arg
1537   do
1538     case $ac_arg in
1539     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1540     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1541     | -silent | --silent | --silen | --sile | --sil)
1542       continue ;;
1543     *\'*)
1544       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1545     esac
1546     case $ac_pass in
1547     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1548     2)
1549       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1550       if test $ac_must_keep_next = true; then
1551         ac_must_keep_next=false # Got value, back to normal.
1552       else
1553         case $ac_arg in
1554           *=* | --config-cache | -C | -disable-* | --disable-* \
1555           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1556           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1557           | -with-* | --with-* | -without-* | --without-* | --x)
1558             case "$ac_configure_args0 " in
1559               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1560             esac
1561             ;;
1562           -* ) ac_must_keep_next=true ;;
1563         esac
1564       fi
1565       ac_configure_args="$ac_configure_args '$ac_arg'"
1566       ;;
1567     esac
1568   done
1569 done
1570 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1571 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1572
1573 # When interrupted or exit'd, cleanup temporary files, and complete
1574 # config.log.  We remove comments because anyway the quotes in there
1575 # would cause problems or look ugly.
1576 # WARNING: Use '\'' to represent an apostrophe within the trap.
1577 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1578 trap 'exit_status=$?
1579   # Save into config.log some information that might help in debugging.
1580   {
1581     echo
1582
1583     cat <<\_ASBOX
1584 ## ---------------- ##
1585 ## Cache variables. ##
1586 ## ---------------- ##
1587 _ASBOX
1588     echo
1589     # The following way of writing the cache mishandles newlines in values,
1590 (
1591   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1592     eval ac_val=\$$ac_var
1593     case $ac_val in #(
1594     *${as_nl}*)
1595       case $ac_var in #(
1596       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1597 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1598       esac
1599       case $ac_var in #(
1600       _ | IFS | as_nl) ;; #(
1601       *) $as_unset $ac_var ;;
1602       esac ;;
1603     esac
1604   done
1605   (set) 2>&1 |
1606     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1607     *${as_nl}ac_space=\ *)
1608       sed -n \
1609         "s/'\''/'\''\\\\'\'''\''/g;
1610           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1611       ;; #(
1612     *)
1613       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1614       ;;
1615     esac |
1616     sort
1617 )
1618     echo
1619
1620     cat <<\_ASBOX
1621 ## ----------------- ##
1622 ## Output variables. ##
1623 ## ----------------- ##
1624 _ASBOX
1625     echo
1626     for ac_var in $ac_subst_vars
1627     do
1628       eval ac_val=\$$ac_var
1629       case $ac_val in
1630       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631       esac
1632       echo "$ac_var='\''$ac_val'\''"
1633     done | sort
1634     echo
1635
1636     if test -n "$ac_subst_files"; then
1637       cat <<\_ASBOX
1638 ## ------------------- ##
1639 ## File substitutions. ##
1640 ## ------------------- ##
1641 _ASBOX
1642       echo
1643       for ac_var in $ac_subst_files
1644       do
1645         eval ac_val=\$$ac_var
1646         case $ac_val in
1647         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648         esac
1649         echo "$ac_var='\''$ac_val'\''"
1650       done | sort
1651       echo
1652     fi
1653
1654     if test -s confdefs.h; then
1655       cat <<\_ASBOX
1656 ## ----------- ##
1657 ## confdefs.h. ##
1658 ## ----------- ##
1659 _ASBOX
1660       echo
1661       cat confdefs.h
1662       echo
1663     fi
1664     test "$ac_signal" != 0 &&
1665       echo "$as_me: caught signal $ac_signal"
1666     echo "$as_me: exit $exit_status"
1667   } >&5
1668   rm -f core *.core core.conftest.* &&
1669     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1670     exit $exit_status
1671 ' 0
1672 for ac_signal in 1 2 13 15; do
1673   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1674 done
1675 ac_signal=0
1676
1677 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1678 rm -f -r conftest* confdefs.h
1679
1680 # Predefined preprocessor variables.
1681
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_NAME "$PACKAGE_NAME"
1684 _ACEOF
1685
1686
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1689 _ACEOF
1690
1691
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1694 _ACEOF
1695
1696
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_STRING "$PACKAGE_STRING"
1699 _ACEOF
1700
1701
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1704 _ACEOF
1705
1706
1707 # Let the site file select an alternate cache file if it wants to.
1708 # Prefer explicitly selected file to automatically selected ones.
1709 if test -n "$CONFIG_SITE"; then
1710   set x "$CONFIG_SITE"
1711 elif test "x$prefix" != xNONE; then
1712   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1713 else
1714   set x "$ac_default_prefix/share/config.site" \
1715         "$ac_default_prefix/etc/config.site"
1716 fi
1717 shift
1718 for ac_site_file
1719 do
1720   if test -r "$ac_site_file"; then
1721     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1722 echo "$as_me: loading site script $ac_site_file" >&6;}
1723     sed 's/^/| /' "$ac_site_file" >&5
1724     . "$ac_site_file"
1725   fi
1726 done
1727
1728 if test -r "$cache_file"; then
1729   # Some versions of bash will fail to source /dev/null (special
1730   # files actually), so we avoid doing that.
1731   if test -f "$cache_file"; then
1732     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1733 echo "$as_me: loading cache $cache_file" >&6;}
1734     case $cache_file in
1735       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1736       *)                      . "./$cache_file";;
1737     esac
1738   fi
1739 else
1740   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1741 echo "$as_me: creating cache $cache_file" >&6;}
1742   >$cache_file
1743 fi
1744
1745 # Check that the precious variables saved in the cache have kept the same
1746 # value.
1747 ac_cache_corrupted=false
1748 for ac_var in $ac_precious_vars; do
1749   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1750   eval ac_new_set=\$ac_env_${ac_var}_set
1751   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1752   eval ac_new_val=\$ac_env_${ac_var}_value
1753   case $ac_old_set,$ac_new_set in
1754     set,)
1755       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1756 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1757       ac_cache_corrupted=: ;;
1758     ,set)
1759       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1760 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1761       ac_cache_corrupted=: ;;
1762     ,);;
1763     *)
1764       if test "x$ac_old_val" != "x$ac_new_val"; then
1765         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1766 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1767         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1768 echo "$as_me:   former value:  $ac_old_val" >&2;}
1769         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1770 echo "$as_me:   current value: $ac_new_val" >&2;}
1771         ac_cache_corrupted=:
1772       fi;;
1773   esac
1774   # Pass precious variables to config.status.
1775   if test "$ac_new_set" = set; then
1776     case $ac_new_val in
1777     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1778     *) ac_arg=$ac_var=$ac_new_val ;;
1779     esac
1780     case " $ac_configure_args " in
1781       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1782       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1783     esac
1784   fi
1785 done
1786 if $ac_cache_corrupted; then
1787   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1788 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1789   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1790 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1791    { (exit 1); exit 1; }; }
1792 fi
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818 ac_ext=c
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823
1824
1825
1826 ac_config_headers="$ac_config_headers include/config.h"
1827
1828 ac_aux_dir=
1829 for ac_dir in tools "$srcdir"/tools; do
1830   if test -f "$ac_dir/install-sh"; then
1831     ac_aux_dir=$ac_dir
1832     ac_install_sh="$ac_aux_dir/install-sh -c"
1833     break
1834   elif 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/shtool"; then
1839     ac_aux_dir=$ac_dir
1840     ac_install_sh="$ac_aux_dir/shtool install -c"
1841     break
1842   fi
1843 done
1844 if test -z "$ac_aux_dir"; then
1845   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1846 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1847    { (exit 1); exit 1; }; }
1848 fi
1849
1850 # These three variables are undocumented and unsupported,
1851 # and are intended to be withdrawn in a future Autoconf release.
1852 # They can cause serious problems if a builder's source tree is in a directory
1853 # whose full name contains unusual characters.
1854 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1855 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1856 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1857
1858
1859
1860
1861 # Check whether --enable-win16 was given.
1862 if test "${enable_win16+set}" = set; then
1863   enableval=$enable_win16;
1864 fi
1865
1866 # Check whether --enable-win64 was given.
1867 if test "${enable_win64+set}" = set; then
1868   enableval=$enable_win64;
1869 fi
1870
1871
1872
1873 # Check whether --with-opengl was given.
1874 if test "${with_opengl+set}" = set; then
1875   withval=$with_opengl;
1876 fi
1877
1878
1879 # Check whether --with-wine-tools was given.
1880 if test "${with_wine_tools+set}" = set; then
1881   withval=$with_wine_tools;
1882 fi
1883
1884
1885 # Make sure we can run config.sub.
1886 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1887   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1888 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1889    { (exit 1); exit 1; }; }
1890
1891 { echo "$as_me:$LINENO: checking build system type" >&5
1892 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1893 if test "${ac_cv_build+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   ac_build_alias=$build_alias
1897 test "x$ac_build_alias" = x &&
1898   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1899 test "x$ac_build_alias" = x &&
1900   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1901 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1902    { (exit 1); exit 1; }; }
1903 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1904   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1905 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1906    { (exit 1); exit 1; }; }
1907
1908 fi
1909 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1910 echo "${ECHO_T}$ac_cv_build" >&6; }
1911 case $ac_cv_build in
1912 *-*-*) ;;
1913 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1914 echo "$as_me: error: invalid value of canonical build" >&2;}
1915    { (exit 1); exit 1; }; };;
1916 esac
1917 build=$ac_cv_build
1918 ac_save_IFS=$IFS; IFS='-'
1919 set x $ac_cv_build
1920 shift
1921 build_cpu=$1
1922 build_vendor=$2
1923 shift; shift
1924 # Remember, the first character of IFS is used to create $*,
1925 # except with old shells:
1926 build_os=$*
1927 IFS=$ac_save_IFS
1928 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1929
1930
1931 { echo "$as_me:$LINENO: checking host system type" >&5
1932 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1933 if test "${ac_cv_host+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   if test "x$host_alias" = x; then
1937   ac_cv_host=$ac_cv_build
1938 else
1939   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1940     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1941 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1942    { (exit 1); exit 1; }; }
1943 fi
1944
1945 fi
1946 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1947 echo "${ECHO_T}$ac_cv_host" >&6; }
1948 case $ac_cv_host in
1949 *-*-*) ;;
1950 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1951 echo "$as_me: error: invalid value of canonical host" >&2;}
1952    { (exit 1); exit 1; }; };;
1953 esac
1954 host=$ac_cv_host
1955 ac_save_IFS=$IFS; IFS='-'
1956 set x $ac_cv_host
1957 shift
1958 host_cpu=$1
1959 host_vendor=$2
1960 shift; shift
1961 # Remember, the first character of IFS is used to create $*,
1962 # except with old shells:
1963 host_os=$*
1964 IFS=$ac_save_IFS
1965 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1966
1967
1968 case $host in
1969   x86_64*linux*)
1970     if test "x$enable_win64" != "xyes"
1971     then
1972       test -n "$CC" || CC="gcc -m32"
1973       test -n "$LD" || LD="ld -m elf_i386"
1974       test -n "$AS" || AS="as --32"
1975       host_cpu="i386"
1976     fi
1977     ;;
1978 esac
1979
1980 case $host_cpu in
1981   *i[3456789]86*)
1982     if test "x$enable_win16" != "xno"
1983     then
1984       enable_win16="yes"
1985     fi
1986     ;;
1987 esac
1988
1989 WIN16_FILES="\$(WIN16_FILES)"
1990
1991 WIN16_INSTALL="\$(WIN16_INSTALL)"
1992
1993 if test "x$enable_win16" != "xyes"
1994 then
1995   WIN16_FILES=""
1996   WIN16_INSTALL=""
1997 fi
1998
1999 case "$srcdir" in
2000  .) ;;
2001  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2002       { { echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
2003 You need to run 'make distclean' in the source tree first." >&5
2004 echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
2005 You need to run 'make distclean' in the source tree first." >&2;}
2006    { (exit 1); exit 1; }; }
2007     fi ;;
2008 esac
2009
2010
2011 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2012 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2013 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2014 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2015   echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017   cat >conftest.make <<\_ACEOF
2018 SHELL = /bin/sh
2019 all:
2020         @echo '@@@%%%=$(MAKE)=@@@%%%'
2021 _ACEOF
2022 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2023 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2024   *@@@%%%=?*=@@@%%%*)
2025     eval ac_cv_prog_make_${ac_make}_set=yes;;
2026   *)
2027     eval ac_cv_prog_make_${ac_make}_set=no;;
2028 esac
2029 rm -f conftest.make
2030 fi
2031 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2032   { echo "$as_me:$LINENO: result: yes" >&5
2033 echo "${ECHO_T}yes" >&6; }
2034   SET_MAKE=
2035 else
2036   { echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6; }
2038   SET_MAKE="MAKE=${MAKE-make}"
2039 fi
2040
2041 ac_ext=c
2042 ac_cpp='$CPP $CPPFLAGS'
2043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046 if test -n "$ac_tool_prefix"; then
2047   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2048 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test -n "$CC"; then
2055   ac_cv_prog_CC="$CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2064     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070 IFS=$as_save_IFS
2071
2072 fi
2073 fi
2074 CC=$ac_cv_prog_CC
2075 if test -n "$CC"; then
2076   { echo "$as_me:$LINENO: result: $CC" >&5
2077 echo "${ECHO_T}$CC" >&6; }
2078 else
2079   { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2081 fi
2082
2083
2084 fi
2085 if test -z "$ac_cv_prog_CC"; then
2086   ac_ct_CC=$CC
2087   # Extract the first word of "gcc", so it can be a program name with args.
2088 set dummy gcc; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   if test -n "$ac_ct_CC"; then
2095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100   IFS=$as_save_IFS
2101   test -z "$as_dir" && as_dir=.
2102   for ac_exec_ext in '' $ac_executable_extensions; do
2103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104     ac_cv_prog_ac_ct_CC="gcc"
2105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106     break 2
2107   fi
2108 done
2109 done
2110 IFS=$as_save_IFS
2111
2112 fi
2113 fi
2114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6; }
2118 else
2119   { echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6; }
2121 fi
2122
2123   if test "x$ac_ct_CC" = x; then
2124     CC=""
2125   else
2126     case $cross_compiling:$ac_tool_warned in
2127 yes:)
2128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2129 whose name does not start with the host triplet.  If you think this
2130 configuration is useful to you, please write to autoconf@gnu.org." >&5
2131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2132 whose name does not start with the host triplet.  If you think this
2133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2134 ac_tool_warned=yes ;;
2135 esac
2136     CC=$ac_ct_CC
2137   fi
2138 else
2139   CC="$ac_cv_prog_CC"
2140 fi
2141
2142 if test -z "$CC"; then
2143           if test -n "$ac_tool_prefix"; then
2144     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2145 set dummy ${ac_tool_prefix}cc; ac_word=$2
2146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2148 if test "${ac_cv_prog_CC+set}" = set; then
2149   echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151   if test -n "$CC"; then
2152   ac_cv_prog_CC="$CC" # Let the user override the test.
2153 else
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2156 do
2157   IFS=$as_save_IFS
2158   test -z "$as_dir" && as_dir=.
2159   for ac_exec_ext in '' $ac_executable_extensions; do
2160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161     ac_cv_prog_CC="${ac_tool_prefix}cc"
2162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163     break 2
2164   fi
2165 done
2166 done
2167 IFS=$as_save_IFS
2168
2169 fi
2170 fi
2171 CC=$ac_cv_prog_CC
2172 if test -n "$CC"; then
2173   { echo "$as_me:$LINENO: result: $CC" >&5
2174 echo "${ECHO_T}$CC" >&6; }
2175 else
2176   { echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6; }
2178 fi
2179
2180
2181   fi
2182 fi
2183 if test -z "$CC"; then
2184   # Extract the first word of "cc", so it can be a program name with args.
2185 set dummy cc; ac_word=$2
2186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2188 if test "${ac_cv_prog_CC+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   if test -n "$CC"; then
2192   ac_cv_prog_CC="$CC" # Let the user override the test.
2193 else
2194   ac_prog_rejected=no
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198   IFS=$as_save_IFS
2199   test -z "$as_dir" && as_dir=.
2200   for ac_exec_ext in '' $ac_executable_extensions; do
2201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2202     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2203        ac_prog_rejected=yes
2204        continue
2205      fi
2206     ac_cv_prog_CC="cc"
2207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208     break 2
2209   fi
2210 done
2211 done
2212 IFS=$as_save_IFS
2213
2214 if test $ac_prog_rejected = yes; then
2215   # We found a bogon in the path, so make sure we never use it.
2216   set dummy $ac_cv_prog_CC
2217   shift
2218   if test $# != 0; then
2219     # We chose a different compiler from the bogus one.
2220     # However, it has the same basename, so the bogon will be chosen
2221     # first if we set CC to just the basename; use the full file name.
2222     shift
2223     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2224   fi
2225 fi
2226 fi
2227 fi
2228 CC=$ac_cv_prog_CC
2229 if test -n "$CC"; then
2230   { echo "$as_me:$LINENO: result: $CC" >&5
2231 echo "${ECHO_T}$CC" >&6; }
2232 else
2233   { echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6; }
2235 fi
2236
2237
2238 fi
2239 if test -z "$CC"; then
2240   if test -n "$ac_tool_prefix"; then
2241   for ac_prog in cl.exe
2242   do
2243     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248   echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250   if test -n "$CC"; then
2251   ac_cv_prog_CC="$CC" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256   IFS=$as_save_IFS
2257   test -z "$as_dir" && as_dir=.
2258   for ac_exec_ext in '' $ac_executable_extensions; do
2259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262     break 2
2263   fi
2264 done
2265 done
2266 IFS=$as_save_IFS
2267
2268 fi
2269 fi
2270 CC=$ac_cv_prog_CC
2271 if test -n "$CC"; then
2272   { echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6; }
2274 else
2275   { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2277 fi
2278
2279
2280     test -n "$CC" && break
2281   done
2282 fi
2283 if test -z "$CC"; then
2284   ac_ct_CC=$CC
2285   for ac_prog in cl.exe
2286 do
2287   # Extract the first word of "$ac_prog", so it can be a program name with args.
2288 set dummy $ac_prog; ac_word=$2
2289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   if test -n "$ac_ct_CC"; then
2295   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302   for ac_exec_ext in '' $ac_executable_extensions; do
2303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2304     ac_cv_prog_ac_ct_CC="$ac_prog"
2305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306     break 2
2307   fi
2308 done
2309 done
2310 IFS=$as_save_IFS
2311
2312 fi
2313 fi
2314 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2315 if test -n "$ac_ct_CC"; then
2316   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2317 echo "${ECHO_T}$ac_ct_CC" >&6; }
2318 else
2319   { echo "$as_me:$LINENO: result: no" >&5
2320 echo "${ECHO_T}no" >&6; }
2321 fi
2322
2323
2324   test -n "$ac_ct_CC" && break
2325 done
2326
2327   if test "x$ac_ct_CC" = x; then
2328     CC=""
2329   else
2330     case $cross_compiling:$ac_tool_warned in
2331 yes:)
2332 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2333 whose name does not start with the host triplet.  If you think this
2334 configuration is useful to you, please write to autoconf@gnu.org." >&5
2335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2336 whose name does not start with the host triplet.  If you think this
2337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2338 ac_tool_warned=yes ;;
2339 esac
2340     CC=$ac_ct_CC
2341   fi
2342 fi
2343
2344 fi
2345
2346
2347 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: no acceptable C compiler found in \$PATH
2350 See \`config.log' for more details." >&2;}
2351    { (exit 1); exit 1; }; }
2352
2353 # Provide some information about the compiler.
2354 echo "$as_me:$LINENO: checking for C compiler version" >&5
2355 ac_compiler=`set X $ac_compile; echo $2`
2356 { (ac_try="$ac_compiler --version >&5"
2357 case "(($ac_try" in
2358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359   *) ac_try_echo=$ac_try;;
2360 esac
2361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2362   (eval "$ac_compiler --version >&5") 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }
2366 { (ac_try="$ac_compiler -v >&5"
2367 case "(($ac_try" in
2368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369   *) ac_try_echo=$ac_try;;
2370 esac
2371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2372   (eval "$ac_compiler -v >&5") 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }
2376 { (ac_try="$ac_compiler -V >&5"
2377 case "(($ac_try" in
2378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379   *) ac_try_echo=$ac_try;;
2380 esac
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382   (eval "$ac_compiler -V >&5") 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }
2386
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 ac_clean_files_save=$ac_clean_files
2403 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404 # Try to create an executable without -o first, disregard a.out.
2405 # It will help us diagnose broken compilers, and finding out an intuition
2406 # of exeext.
2407 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2409 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410 #
2411 # List of possible output files, starting from the most likely.
2412 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2413 # only as a last resort.  b.out is created by i960 compilers.
2414 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2415 #
2416 # The IRIX 6 linker writes into existing files which may not be
2417 # executable, retaining their permissions.  Remove them first so a
2418 # subsequent execution test works.
2419 ac_rmfiles=
2420 for ac_file in $ac_files
2421 do
2422   case $ac_file in
2423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2424     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2425   esac
2426 done
2427 rm -f $ac_rmfiles
2428
2429 if { (ac_try="$ac_link_default"
2430 case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435   (eval "$ac_link_default") 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; then
2439   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2440 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2441 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2442 # so that the user can short-circuit this test for compilers unknown to
2443 # Autoconf.
2444 for ac_file in $ac_files ''
2445 do
2446   test -f "$ac_file" || continue
2447   case $ac_file in
2448     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2449         ;;
2450     [ab].out )
2451         # We found the default executable, but exeext='' is most
2452         # certainly right.
2453         break;;
2454     *.* )
2455         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2456         then :; else
2457            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2458         fi
2459         # We set ac_cv_exeext here because the later test for it is not
2460         # safe: cross compilers may not add the suffix if given an `-o'
2461         # argument, so we may need to know it at that point already.
2462         # Even if this section looks crufty: it has the advantage of
2463         # actually working.
2464         break;;
2465     * )
2466         break;;
2467   esac
2468 done
2469 test "$ac_cv_exeext" = no && ac_cv_exeext=
2470
2471 else
2472   ac_file=''
2473 fi
2474
2475 { echo "$as_me:$LINENO: result: $ac_file" >&5
2476 echo "${ECHO_T}$ac_file" >&6; }
2477 if test -z "$ac_file"; then
2478   echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2482 See \`config.log' for more details." >&5
2483 echo "$as_me: error: C compiler cannot create executables
2484 See \`config.log' for more details." >&2;}
2485    { (exit 77); exit 77; }; }
2486 fi
2487
2488 ac_exeext=$ac_cv_exeext
2489
2490 # Check that the compiler produces executables we can run.  If not, either
2491 # the compiler is broken, or we cross compile.
2492 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2493 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2494 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2495 # If not cross compiling, check that we can run a simple program.
2496 if test "$cross_compiling" != yes; then
2497   if { ac_try='./$ac_file'
2498   { (case "(($ac_try" in
2499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500   *) ac_try_echo=$ac_try;;
2501 esac
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503   (eval "$ac_try") 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }; }; then
2507     cross_compiling=no
2508   else
2509     if test "$cross_compiling" = maybe; then
2510         cross_compiling=yes
2511     else
2512         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2513 If you meant to cross compile, use \`--host'.
2514 See \`config.log' for more details." >&5
2515 echo "$as_me: error: cannot run C compiled programs.
2516 If you meant to cross compile, use \`--host'.
2517 See \`config.log' for more details." >&2;}
2518    { (exit 1); exit 1; }; }
2519     fi
2520   fi
2521 fi
2522 { echo "$as_me:$LINENO: result: yes" >&5
2523 echo "${ECHO_T}yes" >&6; }
2524
2525 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2526 ac_clean_files=$ac_clean_files_save
2527 # Check that the compiler produces executables we can run.  If not, either
2528 # the compiler is broken, or we cross compile.
2529 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2530 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2531 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2532 echo "${ECHO_T}$cross_compiling" >&6; }
2533
2534 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2535 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2536 if { (ac_try="$ac_link"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_link") 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; then
2546   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2547 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2548 # work properly (i.e., refer to `conftest.exe'), while it won't with
2549 # `rm'.
2550 for ac_file in conftest.exe conftest conftest.*; do
2551   test -f "$ac_file" || continue
2552   case $ac_file in
2553     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2554     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2555           break;;
2556     * ) break;;
2557   esac
2558 done
2559 else
2560   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2563 See \`config.log' for more details." >&2;}
2564    { (exit 1); exit 1; }; }
2565 fi
2566
2567 rm -f conftest$ac_cv_exeext
2568 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2569 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2570
2571 rm -f conftest.$ac_ext
2572 EXEEXT=$ac_cv_exeext
2573 ac_exeext=$EXEEXT
2574 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2575 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2576 if test "${ac_cv_objext+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h.  */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h.  */
2585
2586 int
2587 main ()
2588 {
2589
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.o conftest.obj
2595 if { (ac_try="$ac_compile"
2596 case "(($ac_try" in
2597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598   *) ac_try_echo=$ac_try;;
2599 esac
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601   (eval "$ac_compile") 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; then
2605   for ac_file in conftest.o conftest.obj conftest.*; do
2606   test -f "$ac_file" || continue;
2607   case $ac_file in
2608     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2609     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2610        break;;
2611   esac
2612 done
2613 else
2614   echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2616
2617 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2618 See \`config.log' for more details." >&5
2619 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2620 See \`config.log' for more details." >&2;}
2621    { (exit 1); exit 1; }; }
2622 fi
2623
2624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2625 fi
2626 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2627 echo "${ECHO_T}$ac_cv_objext" >&6; }
2628 OBJEXT=$ac_cv_objext
2629 ac_objext=$OBJEXT
2630 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2631 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2632 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641
2642 int
2643 main ()
2644 {
2645 #ifndef __GNUC__
2646        choke me
2647 #endif
2648
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (ac_try="$ac_compile"
2655 case "(($ac_try" in
2656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657   *) ac_try_echo=$ac_try;;
2658 esac
2659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660   (eval "$ac_compile") 2>conftest.er1
2661   ac_status=$?
2662   grep -v '^ *+' conftest.er1 >conftest.err
2663   rm -f conftest.er1
2664   cat conftest.err >&5
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); } && {
2667          test -z "$ac_c_werror_flag" ||
2668          test ! -s conftest.err
2669        } && test -s conftest.$ac_objext; then
2670   ac_compiler_gnu=yes
2671 else
2672   echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2674
2675         ac_compiler_gnu=no
2676 fi
2677
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2680
2681 fi
2682 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2683 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2684 GCC=`test $ac_compiler_gnu = yes && echo yes`
2685 ac_test_CFLAGS=${CFLAGS+set}
2686 ac_save_CFLAGS=$CFLAGS
2687 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2688 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2689 if test "${ac_cv_prog_cc_g+set}" = set; then
2690   echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692   ac_save_c_werror_flag=$ac_c_werror_flag
2693    ac_c_werror_flag=yes
2694    ac_cv_prog_cc_g=no
2695    CFLAGS="-g"
2696    cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702
2703 int
2704 main ()
2705 {
2706
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (ac_try="$ac_compile"
2713 case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_compile") 2>conftest.er1
2719   ac_status=$?
2720   grep -v '^ *+' conftest.er1 >conftest.err
2721   rm -f conftest.er1
2722   cat conftest.err >&5
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); } && {
2725          test -z "$ac_c_werror_flag" ||
2726          test ! -s conftest.err
2727        } && test -s conftest.$ac_objext; then
2728   ac_cv_prog_cc_g=yes
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733         CFLAGS=""
2734       cat >conftest.$ac_ext <<_ACEOF
2735 /* confdefs.h.  */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h.  */
2740
2741 int
2742 main ()
2743 {
2744
2745   ;
2746   return 0;
2747 }
2748 _ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2751 case "(($ac_try" in
2752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753   *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756   (eval "$ac_compile") 2>conftest.er1
2757   ac_status=$?
2758   grep -v '^ *+' conftest.er1 >conftest.err
2759   rm -f conftest.er1
2760   cat conftest.err >&5
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); } && {
2763          test -z "$ac_c_werror_flag" ||
2764          test ! -s conftest.err
2765        } && test -s conftest.$ac_objext; then
2766   :
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771         ac_c_werror_flag=$ac_save_c_werror_flag
2772          CFLAGS="-g"
2773          cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h.  */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h.  */
2779
2780 int
2781 main ()
2782 {
2783
2784   ;
2785   return 0;
2786 }
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (ac_try="$ac_compile"
2790 case "(($ac_try" in
2791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792   *) ac_try_echo=$ac_try;;
2793 esac
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795   (eval "$ac_compile") 2>conftest.er1
2796   ac_status=$?
2797   grep -v '^ *+' conftest.er1 >conftest.err
2798   rm -f conftest.er1
2799   cat conftest.err >&5
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); } && {
2802          test -z "$ac_c_werror_flag" ||
2803          test ! -s conftest.err
2804        } && test -s conftest.$ac_objext; then
2805   ac_cv_prog_cc_g=yes
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810
2811 fi
2812
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814 fi
2815
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 fi
2818
2819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820    ac_c_werror_flag=$ac_save_c_werror_flag
2821 fi
2822 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2823 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2824 if test "$ac_test_CFLAGS" = set; then
2825   CFLAGS=$ac_save_CFLAGS
2826 elif test $ac_cv_prog_cc_g = yes; then
2827   if test "$GCC" = yes; then
2828     CFLAGS="-g -O2"
2829   else
2830     CFLAGS="-g"
2831   fi
2832 else
2833   if test "$GCC" = yes; then
2834     CFLAGS="-O2"
2835   else
2836     CFLAGS=
2837   fi
2838 fi
2839 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2840 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2841 if test "${ac_cv_prog_cc_c89+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   ac_cv_prog_cc_c89=no
2845 ac_save_CC=$CC
2846 cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h.  */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h.  */
2852 #include <stdarg.h>
2853 #include <stdio.h>
2854 #include <sys/types.h>
2855 #include <sys/stat.h>
2856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2857 struct buf { int x; };
2858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2859 static char *e (p, i)
2860      char **p;
2861      int i;
2862 {
2863   return p[i];
2864 }
2865 static char *f (char * (*g) (char **, int), char **p, ...)
2866 {
2867   char *s;
2868   va_list v;
2869   va_start (v,p);
2870   s = g (p, va_arg (v,int));
2871   va_end (v);
2872   return s;
2873 }
2874
2875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2876    function prototypes and stuff, but not '\xHH' hex character constants.
2877    These don't provoke an error unfortunately, instead are silently treated
2878    as 'x'.  The following induces an error, until -std is added to get
2879    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2880    array size at least.  It's necessary to write '\x00'==0 to get something
2881    that's true only with -std.  */
2882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2883
2884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2885    inside strings and character constants.  */
2886 #define FOO(x) 'x'
2887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2888
2889 int test (int i, double x);
2890 struct s1 {int (*f) (int a);};
2891 struct s2 {int (*f) (double a);};
2892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2893 int argc;
2894 char **argv;
2895 int
2896 main ()
2897 {
2898 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2904         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2905 do
2906   CC="$ac_save_CC $ac_arg"
2907   rm -f conftest.$ac_objext
2908 if { (ac_try="$ac_compile"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914   (eval "$ac_compile") 2>conftest.er1
2915   ac_status=$?
2916   grep -v '^ *+' conftest.er1 >conftest.err
2917   rm -f conftest.er1
2918   cat conftest.err >&5
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); } && {
2921          test -z "$ac_c_werror_flag" ||
2922          test ! -s conftest.err
2923        } && test -s conftest.$ac_objext; then
2924   ac_cv_prog_cc_c89=$ac_arg
2925 else
2926   echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929
2930 fi
2931
2932 rm -f core conftest.err conftest.$ac_objext
2933   test "x$ac_cv_prog_cc_c89" != "xno" && break
2934 done
2935 rm -f conftest.$ac_ext
2936 CC=$ac_save_CC
2937
2938 fi
2939 # AC_CACHE_VAL
2940 case "x$ac_cv_prog_cc_c89" in
2941   x)
2942     { echo "$as_me:$LINENO: result: none needed" >&5
2943 echo "${ECHO_T}none needed" >&6; } ;;
2944   xno)
2945     { echo "$as_me:$LINENO: result: unsupported" >&5
2946 echo "${ECHO_T}unsupported" >&6; } ;;
2947   *)
2948     CC="$CC $ac_cv_prog_cc_c89"
2949     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2950 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2951 esac
2952
2953
2954 ac_ext=c
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959
2960 ac_ext=cpp
2961 ac_cpp='$CXXCPP $CPPFLAGS'
2962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2965 if test -z "$CXX"; then
2966   if test -n "$CCC"; then
2967     CXX=$CCC
2968   else
2969     if test -n "$ac_tool_prefix"; then
2970   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2971   do
2972     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2976 if test "${ac_cv_prog_CXX+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   if test -n "$CXX"; then
2980   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985   IFS=$as_save_IFS
2986   test -z "$as_dir" && as_dir=.
2987   for ac_exec_ext in '' $ac_executable_extensions; do
2988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991     break 2
2992   fi
2993 done
2994 done
2995 IFS=$as_save_IFS
2996
2997 fi
2998 fi
2999 CXX=$ac_cv_prog_CXX
3000 if test -n "$CXX"; then
3001   { echo "$as_me:$LINENO: result: $CXX" >&5
3002 echo "${ECHO_T}$CXX" >&6; }
3003 else
3004   { echo "$as_me:$LINENO: result: no" >&5
3005 echo "${ECHO_T}no" >&6; }
3006 fi
3007
3008
3009     test -n "$CXX" && break
3010   done
3011 fi
3012 if test -z "$CXX"; then
3013   ac_ct_CXX=$CXX
3014   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3015 do
3016   # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3020 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   if test -n "$ac_ct_CXX"; then
3024   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031   for ac_exec_ext in '' $ac_executable_extensions; do
3032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033     ac_cv_prog_ac_ct_CXX="$ac_prog"
3034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035     break 2
3036   fi
3037 done
3038 done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3044 if test -n "$ac_ct_CXX"; then
3045   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3046 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3047 else
3048   { echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6; }
3050 fi
3051
3052
3053   test -n "$ac_ct_CXX" && break
3054 done
3055
3056   if test "x$ac_ct_CXX" = x; then
3057     CXX="g++"
3058   else
3059     case $cross_compiling:$ac_tool_warned in
3060 yes:)
3061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3062 whose name does not start with the host triplet.  If you think this
3063 configuration is useful to you, please write to autoconf@gnu.org." >&5
3064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3065 whose name does not start with the host triplet.  If you think this
3066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3067 ac_tool_warned=yes ;;
3068 esac
3069     CXX=$ac_ct_CXX
3070   fi
3071 fi
3072
3073   fi
3074 fi
3075 # Provide some information about the compiler.
3076 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3077 ac_compiler=`set X $ac_compile; echo $2`
3078 { (ac_try="$ac_compiler --version >&5"
3079 case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084   (eval "$ac_compiler --version >&5") 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }
3088 { (ac_try="$ac_compiler -v >&5"
3089 case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_compiler -v >&5") 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }
3098 { (ac_try="$ac_compiler -V >&5"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_compiler -V >&5") 2>&5
3105   ac_status=$?
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); }
3108
3109 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3110 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3111 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3112   echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114   cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120
3121 int
3122 main ()
3123 {
3124 #ifndef __GNUC__
3125        choke me
3126 #endif
3127
3128   ;
3129   return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_compile") 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } && {
3146          test -z "$ac_cxx_werror_flag" ||
3147          test ! -s conftest.err
3148        } && test -s conftest.$ac_objext; then
3149   ac_compiler_gnu=yes
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154         ac_compiler_gnu=no
3155 fi
3156
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3159
3160 fi
3161 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3162 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3163 GXX=`test $ac_compiler_gnu = yes && echo yes`
3164 ac_test_CXXFLAGS=${CXXFLAGS+set}
3165 ac_save_CXXFLAGS=$CXXFLAGS
3166 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3167 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3168 if test "${ac_cv_prog_cxx_g+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3172    ac_cxx_werror_flag=yes
3173    ac_cv_prog_cxx_g=no
3174    CXXFLAGS="-g"
3175    cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181
3182 int
3183 main ()
3184 {
3185
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_compile") 2>conftest.er1
3198   ac_status=$?
3199   grep -v '^ *+' conftest.er1 >conftest.err
3200   rm -f conftest.er1
3201   cat conftest.err >&5
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); } && {
3204          test -z "$ac_cxx_werror_flag" ||
3205          test ! -s conftest.err
3206        } && test -s conftest.$ac_objext; then
3207   ac_cv_prog_cxx_g=yes
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212         CXXFLAGS=""
3213       cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219
3220 int
3221 main ()
3222 {
3223
3224   ;
3225   return 0;
3226 }
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235   (eval "$ac_compile") 2>conftest.er1
3236   ac_status=$?
3237   grep -v '^ *+' conftest.er1 >conftest.err
3238   rm -f conftest.er1
3239   cat conftest.err >&5
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); } && {
3242          test -z "$ac_cxx_werror_flag" ||
3243          test ! -s conftest.err
3244        } && test -s conftest.$ac_objext; then
3245   :
3246 else
3247   echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3251          CXXFLAGS="-g"
3252          cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h.  */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h.  */
3258
3259 int
3260 main ()
3261 {
3262
3263   ;
3264   return 0;
3265 }
3266 _ACEOF
3267 rm -f conftest.$ac_objext
3268 if { (ac_try="$ac_compile"
3269 case "(($ac_try" in
3270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271   *) ac_try_echo=$ac_try;;
3272 esac
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274   (eval "$ac_compile") 2>conftest.er1
3275   ac_status=$?
3276   grep -v '^ *+' conftest.er1 >conftest.err
3277   rm -f conftest.er1
3278   cat conftest.err >&5
3279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); } && {
3281          test -z "$ac_cxx_werror_flag" ||
3282          test ! -s conftest.err
3283        } && test -s conftest.$ac_objext; then
3284   ac_cv_prog_cxx_g=yes
3285 else
3286   echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3288
3289
3290 fi
3291
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 fi
3294
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 fi
3297
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3300 fi
3301 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3302 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3303 if test "$ac_test_CXXFLAGS" = set; then
3304   CXXFLAGS=$ac_save_CXXFLAGS
3305 elif test $ac_cv_prog_cxx_g = yes; then
3306   if test "$GXX" = yes; then
3307     CXXFLAGS="-g -O2"
3308   else
3309     CXXFLAGS="-g"
3310   fi
3311 else
3312   if test "$GXX" = yes; then
3313     CXXFLAGS="-O2"
3314   else
3315     CXXFLAGS=
3316   fi
3317 fi
3318 ac_ext=c
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323
3324 if test -n "$ac_tool_prefix"; then
3325   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3330   echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332   if test -n "$CPPBIN"; then
3333   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338   IFS=$as_save_IFS
3339   test -z "$as_dir" && as_dir=.
3340   for ac_exec_ext in '' $ac_executable_extensions; do
3341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347 done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 CPPBIN=$ac_cv_prog_CPPBIN
3353 if test -n "$CPPBIN"; then
3354   { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3355 echo "${ECHO_T}$CPPBIN" >&6; }
3356 else
3357   { echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6; }
3359 fi
3360
3361
3362 fi
3363 if test -z "$ac_cv_prog_CPPBIN"; then
3364   ac_ct_CPPBIN=$CPPBIN
3365   # Extract the first word of "cpp", so it can be a program name with args.
3366 set dummy cpp; ac_word=$2
3367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3369 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372   if test -n "$ac_ct_CPPBIN"; then
3373   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380   for ac_exec_ext in '' $ac_executable_extensions; do
3381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382     ac_cv_prog_ac_ct_CPPBIN="cpp"
3383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384     break 2
3385   fi
3386 done
3387 done
3388 IFS=$as_save_IFS
3389
3390 fi
3391 fi
3392 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3393 if test -n "$ac_ct_CPPBIN"; then
3394   { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3395 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3396 else
3397   { echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6; }
3399 fi
3400
3401   if test "x$ac_ct_CPPBIN" = x; then
3402     CPPBIN="cpp"
3403   else
3404     case $cross_compiling:$ac_tool_warned in
3405 yes:)
3406 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3407 whose name does not start with the host triplet.  If you think this
3408 configuration is useful to you, please write to autoconf@gnu.org." >&5
3409 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3410 whose name does not start with the host triplet.  If you think this
3411 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3412 ac_tool_warned=yes ;;
3413 esac
3414     CPPBIN=$ac_ct_CPPBIN
3415   fi
3416 else
3417   CPPBIN="$ac_cv_prog_CPPBIN"
3418 fi
3419
3420
3421 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3422 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3423 if test "${wine_cv_toolsdir+set}" = set; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426   if test -z "$with_wine_tools"; then
3427      if test "$cross_compiling" = "yes"; then
3428        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3429 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3430    { (exit 1); exit 1; }; }
3431      else
3432        wine_cv_toolsdir="\$(TOPOBJDIR)"
3433      fi
3434    elif test -d "$with_wine_tools/tools/winebuild"; then
3435      case $with_wine_tools in
3436        /*) wine_cv_toolsdir="$with_wine_tools" ;;
3437        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3438      esac
3439    else
3440      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3441 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3442    { (exit 1); exit 1; }; }
3443    fi
3444 fi
3445 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3446 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3447 TOOLSDIR=$wine_cv_toolsdir
3448
3449
3450
3451 ac_ext=c
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3457 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3458 # On Suns, sometimes $CPP names a directory.
3459 if test -n "$CPP" && test -d "$CPP"; then
3460   CPP=
3461 fi
3462 if test -z "$CPP"; then
3463   if test "${ac_cv_prog_CPP+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466       # Double quotes because CPP needs to be expanded
3467     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3468     do
3469       ac_preproc_ok=false
3470 for ac_c_preproc_warn_flag in '' yes
3471 do
3472   # Use a header file that comes with gcc, so configuring glibc
3473   # with a fresh cross-compiler works.
3474   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3475   # <limits.h> exists even on freestanding compilers.
3476   # On the NeXT, cc -E runs the code through the compiler's parser,
3477   # not just through cpp. "Syntax error" is here to catch this case.
3478   cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h.  */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h.  */
3484 #ifdef __STDC__
3485 # include <limits.h>
3486 #else
3487 # include <assert.h>
3488 #endif
3489                      Syntax error
3490 _ACEOF
3491 if { (ac_try="$ac_cpp conftest.$ac_ext"
3492 case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3498   ac_status=$?
3499   grep -v '^ *+' conftest.er1 >conftest.err
3500   rm -f conftest.er1
3501   cat conftest.err >&5
3502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); } >/dev/null && {
3504          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3505          test ! -s conftest.err
3506        }; then
3507   :
3508 else
3509   echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512   # Broken: fails on valid input.
3513 continue
3514 fi
3515
3516 rm -f conftest.err conftest.$ac_ext
3517
3518   # OK, works on sane cases.  Now check whether nonexistent headers
3519   # can be detected and how.
3520   cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526 #include <ac_nonexistent.h>
3527 _ACEOF
3528 if { (ac_try="$ac_cpp conftest.$ac_ext"
3529 case "(($ac_try" in
3530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531   *) ac_try_echo=$ac_try;;
3532 esac
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3535   ac_status=$?
3536   grep -v '^ *+' conftest.er1 >conftest.err
3537   rm -f conftest.er1
3538   cat conftest.err >&5
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); } >/dev/null && {
3541          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3542          test ! -s conftest.err
3543        }; then
3544   # Broken: success on invalid input.
3545 continue
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550   # Passes both tests.
3551 ac_preproc_ok=:
3552 break
3553 fi
3554
3555 rm -f conftest.err conftest.$ac_ext
3556
3557 done
3558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559 rm -f conftest.err conftest.$ac_ext
3560 if $ac_preproc_ok; then
3561   break
3562 fi
3563
3564     done
3565     ac_cv_prog_CPP=$CPP
3566
3567 fi
3568   CPP=$ac_cv_prog_CPP
3569 else
3570   ac_cv_prog_CPP=$CPP
3571 fi
3572 { echo "$as_me:$LINENO: result: $CPP" >&5
3573 echo "${ECHO_T}$CPP" >&6; }
3574 ac_preproc_ok=false
3575 for ac_c_preproc_warn_flag in '' yes
3576 do
3577   # Use a header file that comes with gcc, so configuring glibc
3578   # with a fresh cross-compiler works.
3579   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3580   # <limits.h> exists even on freestanding compilers.
3581   # On the NeXT, cc -E runs the code through the compiler's parser,
3582   # not just through cpp. "Syntax error" is here to catch this case.
3583   cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589 #ifdef __STDC__
3590 # include <limits.h>
3591 #else
3592 # include <assert.h>
3593 #endif
3594                      Syntax error
3595 _ACEOF
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603   ac_status=$?
3604   grep -v '^ *+' conftest.er1 >conftest.err
3605   rm -f conftest.er1
3606   cat conftest.err >&5
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } >/dev/null && {
3609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3610          test ! -s conftest.err
3611        }; then
3612   :
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617   # Broken: fails on valid input.
3618 continue
3619 fi
3620
3621 rm -f conftest.err conftest.$ac_ext
3622
3623   # OK, works on sane cases.  Now check whether nonexistent headers
3624   # can be detected and how.
3625   cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h.  */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h.  */
3631 #include <ac_nonexistent.h>
3632 _ACEOF
3633 if { (ac_try="$ac_cpp conftest.$ac_ext"
3634 case "(($ac_try" in
3635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636   *) ac_try_echo=$ac_try;;
3637 esac
3638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3640   ac_status=$?
3641   grep -v '^ *+' conftest.er1 >conftest.err
3642   rm -f conftest.er1
3643   cat conftest.err >&5
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); } >/dev/null && {
3646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3647          test ! -s conftest.err
3648        }; then
3649   # Broken: success on invalid input.
3650 continue
3651 else
3652   echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655   # Passes both tests.
3656 ac_preproc_ok=:
3657 break
3658 fi
3659
3660 rm -f conftest.err conftest.$ac_ext
3661
3662 done
3663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664 rm -f conftest.err conftest.$ac_ext
3665 if $ac_preproc_ok; then
3666   :
3667 else
3668   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3669 See \`config.log' for more details." >&5
3670 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3671 See \`config.log' for more details." >&2;}
3672    { (exit 1); exit 1; }; }
3673 fi
3674
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681
3682 { echo "$as_me:$LINENO: checking for X" >&5
3683 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3684
3685
3686 # Check whether --with-x was given.
3687 if test "${with_x+set}" = set; then
3688   withval=$with_x;
3689 fi
3690
3691 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3692 if test "x$with_x" = xno; then
3693   # The user explicitly disabled X.
3694   have_x=disabled
3695 else
3696   case $x_includes,$x_libraries in #(
3697     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3698 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3699    { (exit 1); exit 1; }; };; #(
3700     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   # One or both of the vars are not set, and there is no cached value.
3704 ac_x_includes=no ac_x_libraries=no
3705 rm -f -r conftest.dir
3706 if mkdir conftest.dir; then
3707   cd conftest.dir
3708   cat >Imakefile <<'_ACEOF'
3709 incroot:
3710         @echo incroot='${INCROOT}'
3711 usrlibdir:
3712         @echo usrlibdir='${USRLIBDIR}'
3713 libdir:
3714         @echo libdir='${LIBDIR}'
3715 _ACEOF
3716   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3717     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3718     for ac_var in incroot usrlibdir libdir; do
3719       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3720     done
3721     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3722     for ac_extension in a so sl; do
3723       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3724          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3725         ac_im_usrlibdir=$ac_im_libdir; break
3726       fi
3727     done
3728     # Screen out bogus values from the imake configuration.  They are
3729     # bogus both because they are the default anyway, and because
3730     # using them would break gcc on systems where it needs fixed includes.
3731     case $ac_im_incroot in
3732         /usr/include) ac_x_includes= ;;
3733         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3734     esac
3735     case $ac_im_usrlibdir in
3736         /usr/lib | /lib) ;;
3737         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3738     esac
3739   fi
3740   cd ..
3741   rm -f -r conftest.dir
3742 fi
3743
3744 # Standard set of common directories for X headers.
3745 # Check X11 before X11Rn because it is often a symlink to the current release.
3746 ac_x_header_dirs='
3747 /usr/X11/include
3748 /usr/X11R6/include
3749 /usr/X11R5/include
3750 /usr/X11R4/include
3751
3752 /usr/include/X11
3753 /usr/include/X11R6
3754 /usr/include/X11R5
3755 /usr/include/X11R4
3756
3757 /usr/local/X11/include
3758 /usr/local/X11R6/include
3759 /usr/local/X11R5/include
3760 /usr/local/X11R4/include
3761
3762 /usr/local/include/X11
3763 /usr/local/include/X11R6
3764 /usr/local/include/X11R5
3765 /usr/local/include/X11R4
3766
3767 /usr/X386/include
3768 /usr/x386/include
3769 /usr/XFree86/include/X11
3770
3771 /usr/include
3772 /usr/local/include
3773 /usr/unsupported/include
3774 /usr/athena/include
3775 /usr/local/x11r5/include
3776 /usr/lpp/Xamples/include
3777
3778 /usr/openwin/include
3779 /usr/openwin/share/include'
3780
3781 if test "$ac_x_includes" = no; then
3782   # Guess where to find include files, by looking for Xlib.h.
3783   # First, try using that file with no special directory specified.
3784   cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h.  */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h.  */
3790 #include <X11/Xlib.h>
3791 _ACEOF
3792 if { (ac_try="$ac_cpp conftest.$ac_ext"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3799   ac_status=$?
3800   grep -v '^ *+' conftest.er1 >conftest.err
3801   rm -f conftest.er1
3802   cat conftest.err >&5
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); } >/dev/null && {
3805          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3806          test ! -s conftest.err
3807        }; then
3808   # We can compile using X headers with no special include directory.
3809 ac_x_includes=
3810 else
3811   echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814   for ac_dir in $ac_x_header_dirs; do
3815   if test -r "$ac_dir/X11/Xlib.h"; then
3816     ac_x_includes=$ac_dir
3817     break
3818   fi
3819 done
3820 fi
3821
3822 rm -f conftest.err conftest.$ac_ext
3823 fi # $ac_x_includes = no
3824
3825 if test "$ac_x_libraries" = no; then
3826   # Check for the libraries.
3827   # See if we find them without any special options.
3828   # Don't add to $LIBS permanently.
3829   ac_save_LIBS=$LIBS
3830   LIBS="-lX11 $LIBS"
3831   cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h.  */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h.  */
3837 #include <X11/Xlib.h>
3838 int
3839 main ()
3840 {
3841 XrmInitialize ()
3842   ;
3843   return 0;
3844 }
3845 _ACEOF
3846 rm -f conftest.$ac_objext conftest$ac_exeext
3847 if { (ac_try="$ac_link"
3848 case "(($ac_try" in
3849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850   *) ac_try_echo=$ac_try;;
3851 esac
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853   (eval "$ac_link") 2>conftest.er1
3854   ac_status=$?
3855   grep -v '^ *+' conftest.er1 >conftest.err
3856   rm -f conftest.er1
3857   cat conftest.err >&5
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); } && {
3860          test -z "$ac_c_werror_flag" ||
3861          test ! -s conftest.err
3862        } && test -s conftest$ac_exeext &&
3863        $as_test_x conftest$ac_exeext; then
3864   LIBS=$ac_save_LIBS
3865 # We can link X programs with no special library path.
3866 ac_x_libraries=
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871         LIBS=$ac_save_LIBS
3872 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3873 do
3874   # Don't even attempt the hair of trying to link an X program!
3875   for ac_extension in a so sl; do
3876     if test -r "$ac_dir/libX11.$ac_extension"; then
3877       ac_x_libraries=$ac_dir
3878       break 2
3879     fi
3880   done
3881 done
3882 fi
3883
3884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3885       conftest$ac_exeext conftest.$ac_ext
3886 fi # $ac_x_libraries = no
3887
3888 case $ac_x_includes,$ac_x_libraries in #(
3889   no,* | *,no | *\'*)
3890     # Didn't find X, or a directory has "'" in its name.
3891     ac_cv_have_x="have_x=no";; #(
3892   *)
3893     # Record where we found X for the cache.
3894     ac_cv_have_x="have_x=yes\
3895         ac_x_includes='$ac_x_includes'\
3896         ac_x_libraries='$ac_x_libraries'"
3897 esac
3898 fi
3899 ;; #(
3900     *) have_x=yes;;
3901   esac
3902   eval "$ac_cv_have_x"
3903 fi # $with_x != no
3904
3905 if test "$have_x" != yes; then
3906   { echo "$as_me:$LINENO: result: $have_x" >&5
3907 echo "${ECHO_T}$have_x" >&6; }
3908   no_x=yes
3909 else
3910   # If each of the values was on the command line, it overrides each guess.
3911   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3912   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3913   # Update the cache value to reflect the command line values.
3914   ac_cv_have_x="have_x=yes\
3915         ac_x_includes='$x_includes'\
3916         ac_x_libraries='$x_libraries'"
3917   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3918 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3919 fi
3920
3921 if test "$no_x" = yes; then
3922   # Not all programs may use this symbol, but it does not hurt to define it.
3923
3924 cat >>confdefs.h <<\_ACEOF
3925 #define X_DISPLAY_MISSING 1
3926 _ACEOF
3927
3928   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3929 else
3930   if test -n "$x_includes"; then
3931     X_CFLAGS="$X_CFLAGS -I$x_includes"
3932   fi
3933
3934   # It would also be nice to do this for all -L options, not just this one.
3935   if test -n "$x_libraries"; then
3936     X_LIBS="$X_LIBS -L$x_libraries"
3937     # For Solaris; some versions of Sun CC require a space after -R and
3938     # others require no space.  Words are not sufficient . . . .
3939     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3940 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3941     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3942     ac_xsave_c_werror_flag=$ac_c_werror_flag
3943     ac_c_werror_flag=yes
3944     cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h.  */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h.  */
3950
3951 int
3952 main ()
3953 {
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 rm -f conftest.$ac_objext conftest$ac_exeext
3960 if { (ac_try="$ac_link"
3961 case "(($ac_try" in
3962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963   *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966   (eval "$ac_link") 2>conftest.er1
3967   ac_status=$?
3968   grep -v '^ *+' conftest.er1 >conftest.err
3969   rm -f conftest.er1
3970   cat conftest.err >&5
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); } && {
3973          test -z "$ac_c_werror_flag" ||
3974          test ! -s conftest.err
3975        } && test -s conftest$ac_exeext &&
3976        $as_test_x conftest$ac_exeext; then
3977   { echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6; }
3979        X_LIBS="$X_LIBS -R$x_libraries"
3980 else
3981   echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3983
3984         LIBS="$ac_xsave_LIBS -R $x_libraries"
3985        cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h.  */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h.  */
3991
3992 int
3993 main ()
3994 {
3995
3996   ;
3997   return 0;
3998 }
3999 _ACEOF
4000 rm -f conftest.$ac_objext conftest$ac_exeext
4001 if { (ac_try="$ac_link"
4002 case "(($ac_try" in
4003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004   *) ac_try_echo=$ac_try;;
4005 esac
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007   (eval "$ac_link") 2>conftest.er1
4008   ac_status=$?
4009   grep -v '^ *+' conftest.er1 >conftest.err
4010   rm -f conftest.er1
4011   cat conftest.err >&5
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); } && {
4014          test -z "$ac_c_werror_flag" ||
4015          test ! -s conftest.err
4016        } && test -s conftest$ac_exeext &&
4017        $as_test_x conftest$ac_exeext; then
4018   { echo "$as_me:$LINENO: result: yes" >&5
4019 echo "${ECHO_T}yes" >&6; }
4020           X_LIBS="$X_LIBS -R $x_libraries"
4021 else
4022   echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025         { echo "$as_me:$LINENO: result: neither works" >&5
4026 echo "${ECHO_T}neither works" >&6; }
4027 fi
4028
4029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4030       conftest$ac_exeext conftest.$ac_ext
4031 fi
4032
4033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4034       conftest$ac_exeext conftest.$ac_ext
4035     ac_c_werror_flag=$ac_xsave_c_werror_flag
4036     LIBS=$ac_xsave_LIBS
4037   fi
4038
4039   # Check for system-dependent libraries X programs must link with.
4040   # Do this before checking for the system-independent R6 libraries
4041   # (-lICE), since we may need -lsocket or whatever for X linking.
4042
4043   if test "$ISC" = yes; then
4044     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4045   else
4046     # Martyn Johnson says this is needed for Ultrix, if the X
4047     # libraries were built with DECnet support.  And Karl Berry says
4048     # the Alpha needs dnet_stub (dnet does not exist).
4049     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4050     cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h.  */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h.  */
4056
4057 /* Override any GCC internal prototype to avoid an error.
4058    Use char because int might match the return type of a GCC
4059    builtin and then its argument prototype would still apply.  */
4060 #ifdef __cplusplus
4061 extern "C"
4062 #endif
4063 char XOpenDisplay ();
4064 int
4065 main ()
4066 {
4067 return XOpenDisplay ();
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072 rm -f conftest.$ac_objext conftest$ac_exeext
4073 if { (ac_try="$ac_link"
4074 case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079   (eval "$ac_link") 2>conftest.er1
4080   ac_status=$?
4081   grep -v '^ *+' conftest.er1 >conftest.err
4082   rm -f conftest.er1
4083   cat conftest.err >&5
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } && {
4086          test -z "$ac_c_werror_flag" ||
4087          test ! -s conftest.err
4088        } && test -s conftest$ac_exeext &&
4089        $as_test_x conftest$ac_exeext; then
4090   :
4091 else
4092   echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4096 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4097 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100   ac_check_lib_save_LIBS=$LIBS
4101 LIBS="-ldnet  $LIBS"
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h.  */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h.  */
4108
4109 /* Override any GCC internal prototype to avoid an error.
4110    Use char because int might match the return type of a GCC
4111    builtin and then its argument prototype would still apply.  */
4112 #ifdef __cplusplus
4113 extern "C"
4114 #endif
4115 char dnet_ntoa ();
4116 int
4117 main ()
4118 {
4119 return dnet_ntoa ();
4120   ;
4121   return 0;
4122 }
4123 _ACEOF
4124 rm -f conftest.$ac_objext conftest$ac_exeext
4125 if { (ac_try="$ac_link"
4126 case "(($ac_try" in
4127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128   *) ac_try_echo=$ac_try;;
4129 esac
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131   (eval "$ac_link") 2>conftest.er1
4132   ac_status=$?
4133   grep -v '^ *+' conftest.er1 >conftest.err
4134   rm -f conftest.er1
4135   cat conftest.err >&5
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); } && {
4138          test -z "$ac_c_werror_flag" ||
4139          test ! -s conftest.err
4140        } && test -s conftest$ac_exeext &&
4141        $as_test_x conftest$ac_exeext; then
4142   ac_cv_lib_dnet_dnet_ntoa=yes
4143 else
4144   echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147         ac_cv_lib_dnet_dnet_ntoa=no
4148 fi
4149
4150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4151       conftest$ac_exeext conftest.$ac_ext
4152 LIBS=$ac_check_lib_save_LIBS
4153 fi
4154 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4155 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4156 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4157   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4158 fi
4159
4160     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4161       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4162 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4163 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   ac_check_lib_save_LIBS=$LIBS
4167 LIBS="-ldnet_stub  $LIBS"
4168 cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h.  */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h.  */
4174
4175 /* Override any GCC internal prototype to avoid an error.
4176    Use char because int might match the return type of a GCC
4177    builtin and then its argument prototype would still apply.  */
4178 #ifdef __cplusplus
4179 extern "C"
4180 #endif
4181 char dnet_ntoa ();
4182 int
4183 main ()
4184 {
4185 return dnet_ntoa ();
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 rm -f conftest.$ac_objext conftest$ac_exeext
4191 if { (ac_try="$ac_link"
4192 case "(($ac_try" in
4193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194   *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197   (eval "$ac_link") 2>conftest.er1
4198   ac_status=$?
4199   grep -v '^ *+' conftest.er1 >conftest.err
4200   rm -f conftest.er1
4201   cat conftest.err >&5
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); } && {
4204          test -z "$ac_c_werror_flag" ||
4205          test ! -s conftest.err
4206        } && test -s conftest$ac_exeext &&
4207        $as_test_x conftest$ac_exeext; then
4208   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213         ac_cv_lib_dnet_stub_dnet_ntoa=no
4214 fi
4215
4216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4217       conftest$ac_exeext conftest.$ac_ext
4218 LIBS=$ac_check_lib_save_LIBS
4219 fi
4220 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4221 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4222 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4223   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4224 fi
4225
4226     fi
4227 fi
4228
4229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4230       conftest$ac_exeext conftest.$ac_ext
4231     LIBS="$ac_xsave_LIBS"
4232
4233     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4234     # to get the SysV transport functions.
4235     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4236     # needs -lnsl.
4237     # The nsl library prevents programs from opening the X display
4238     # on Irix 5.2, according to T.E. Dickey.
4239     # The functions gethostbyname, getservbyname, and inet_addr are
4240     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4241     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4242 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4243 if test "${ac_cv_func_gethostbyname+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4254 #define gethostbyname innocuous_gethostbyname
4255
4256 /* System header to define __stub macros and hopefully few prototypes,
4257     which can conflict with char gethostbyname (); below.
4258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4259     <limits.h> exists even on freestanding compilers.  */
4260
4261 #ifdef __STDC__
4262 # include <limits.h>
4263 #else
4264 # include <assert.h>
4265 #endif
4266
4267 #undef gethostbyname
4268
4269 /* Override any GCC internal prototype to avoid an error.
4270    Use char because int might match the return type of a GCC
4271    builtin and then its argument prototype would still apply.  */
4272 #ifdef __cplusplus
4273 extern "C"
4274 #endif
4275 char gethostbyname ();
4276 /* The GNU C library defines this for functions which it implements
4277     to always fail with ENOSYS.  Some functions are actually named
4278     something starting with __ and the normal name is an alias.  */
4279 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4280 choke me
4281 #endif
4282
4283 int
4284 main ()
4285 {
4286 return gethostbyname ();
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 rm -f conftest.$ac_objext conftest$ac_exeext
4292 if { (ac_try="$ac_link"
4293 case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298   (eval "$ac_link") 2>conftest.er1
4299   ac_status=$?
4300   grep -v '^ *+' conftest.er1 >conftest.err
4301   rm -f conftest.er1
4302   cat conftest.err >&5
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); } && {
4305          test -z "$ac_c_werror_flag" ||
4306          test ! -s conftest.err
4307        } && test -s conftest$ac_exeext &&
4308        $as_test_x conftest$ac_exeext; then
4309   ac_cv_func_gethostbyname=yes
4310 else
4311   echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314         ac_cv_func_gethostbyname=no
4315 fi
4316
4317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4318       conftest$ac_exeext conftest.$ac_ext
4319 fi
4320 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4321 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4322
4323     if test $ac_cv_func_gethostbyname = no; then
4324       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4325 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4326 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   ac_check_lib_save_LIBS=$LIBS
4330 LIBS="-lnsl  $LIBS"
4331 cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h.  */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h.  */
4337
4338 /* Override any GCC internal prototype to avoid an error.
4339    Use char because int might match the return type of a GCC
4340    builtin and then its argument prototype would still apply.  */
4341 #ifdef __cplusplus
4342 extern "C"
4343 #endif
4344 char gethostbyname ();
4345 int
4346 main ()
4347 {
4348 return gethostbyname ();
4349   ;
4350   return 0;
4351 }
4352 _ACEOF
4353 rm -f conftest.$ac_objext conftest$ac_exeext
4354 if { (ac_try="$ac_link"
4355 case "(($ac_try" in
4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357   *) ac_try_echo=$ac_try;;
4358 esac
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360   (eval "$ac_link") 2>conftest.er1
4361   ac_status=$?
4362   grep -v '^ *+' conftest.er1 >conftest.err
4363   rm -f conftest.er1
4364   cat conftest.err >&5
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); } && {
4367          test -z "$ac_c_werror_flag" ||
4368          test ! -s conftest.err
4369        } && test -s conftest$ac_exeext &&
4370        $as_test_x conftest$ac_exeext; then
4371   ac_cv_lib_nsl_gethostbyname=yes
4372 else
4373   echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4375
4376         ac_cv_lib_nsl_gethostbyname=no
4377 fi
4378
4379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4380       conftest$ac_exeext conftest.$ac_ext
4381 LIBS=$ac_check_lib_save_LIBS
4382 fi
4383 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4384 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4385 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4386   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4387 fi
4388
4389       if test $ac_cv_lib_nsl_gethostbyname = no; then
4390         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4391 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4392 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   ac_check_lib_save_LIBS=$LIBS
4396 LIBS="-lbsd  $LIBS"
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h.  */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h.  */
4403
4404 /* Override any GCC internal prototype to avoid an error.
4405    Use char because int might match the return type of a GCC
4406    builtin and then its argument prototype would still apply.  */
4407 #ifdef __cplusplus
4408 extern "C"
4409 #endif
4410 char gethostbyname ();
4411 int
4412 main ()
4413 {
4414 return gethostbyname ();
4415   ;
4416   return 0;
4417 }
4418 _ACEOF
4419 rm -f conftest.$ac_objext conftest$ac_exeext
4420 if { (ac_try="$ac_link"
4421 case "(($ac_try" in
4422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423   *) ac_try_echo=$ac_try;;
4424 esac
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426   (eval "$ac_link") 2>conftest.er1
4427   ac_status=$?
4428   grep -v '^ *+' conftest.er1 >conftest.err
4429   rm -f conftest.er1
4430   cat conftest.err >&5
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); } && {
4433          test -z "$ac_c_werror_flag" ||
4434          test ! -s conftest.err
4435        } && test -s conftest$ac_exeext &&
4436        $as_test_x conftest$ac_exeext; then
4437   ac_cv_lib_bsd_gethostbyname=yes
4438 else
4439   echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442         ac_cv_lib_bsd_gethostbyname=no
4443 fi
4444
4445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4446       conftest$ac_exeext conftest.$ac_ext
4447 LIBS=$ac_check_lib_save_LIBS
4448 fi
4449 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4450 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4451 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4452   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4453 fi
4454
4455       fi
4456     fi
4457
4458     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4459     # socket/setsockopt and other routines are undefined under SCO ODT
4460     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4461     # on later versions), says Simon Leinen: it contains gethostby*
4462     # variants that don't use the name server (or something).  -lsocket
4463     # must be given before -lnsl if both are needed.  We assume that
4464     # if connect needs -lnsl, so does gethostbyname.
4465     { echo "$as_me:$LINENO: checking for connect" >&5
4466 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4467 if test "${ac_cv_func_connect+set}" = set; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h.  */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h.  */
4476 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4478 #define connect innocuous_connect
4479
4480 /* System header to define __stub macros and hopefully few prototypes,
4481     which can conflict with char connect (); below.
4482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4483     <limits.h> exists even on freestanding compilers.  */
4484
4485 #ifdef __STDC__
4486 # include <limits.h>
4487 #else
4488 # include <assert.h>
4489 #endif
4490
4491 #undef connect
4492
4493 /* Override any GCC internal prototype to avoid an error.
4494    Use char because int might match the return type of a GCC
4495    builtin and then its argument prototype would still apply.  */
4496 #ifdef __cplusplus
4497 extern "C"
4498 #endif
4499 char connect ();
4500 /* The GNU C library defines this for functions which it implements
4501     to always fail with ENOSYS.  Some functions are actually named
4502     something starting with __ and the normal name is an alias.  */
4503 #if defined __stub_connect || defined __stub___connect
4504 choke me
4505 #endif
4506
4507 int
4508 main ()
4509 {
4510 return connect ();
4511   ;
4512   return 0;
4513 }
4514 _ACEOF
4515 rm -f conftest.$ac_objext conftest$ac_exeext
4516 if { (ac_try="$ac_link"
4517 case "(($ac_try" in
4518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519   *) ac_try_echo=$ac_try;;
4520 esac
4521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4522   (eval "$ac_link") 2>conftest.er1
4523   ac_status=$?
4524   grep -v '^ *+' conftest.er1 >conftest.err
4525   rm -f conftest.er1
4526   cat conftest.err >&5
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); } && {
4529          test -z "$ac_c_werror_flag" ||
4530          test ! -s conftest.err
4531        } && test -s conftest$ac_exeext &&
4532        $as_test_x conftest$ac_exeext; then
4533   ac_cv_func_connect=yes
4534 else
4535   echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538         ac_cv_func_connect=no
4539 fi
4540
4541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4542       conftest$ac_exeext conftest.$ac_ext
4543 fi
4544 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4545 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4546
4547     if test $ac_cv_func_connect = no; then
4548       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4549 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4550 if test "${ac_cv_lib_socket_connect+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   ac_check_lib_save_LIBS=$LIBS
4554 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h.  */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h.  */
4561
4562 /* Override any GCC internal prototype to avoid an error.
4563    Use char because int might match the return type of a GCC
4564    builtin and then its argument prototype would still apply.  */
4565 #ifdef __cplusplus
4566 extern "C"
4567 #endif
4568 char connect ();
4569 int
4570 main ()
4571 {
4572 return connect ();
4573   ;
4574   return 0;
4575 }
4576 _ACEOF
4577 rm -f conftest.$ac_objext conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4579 case "(($ac_try" in
4580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581   *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584   (eval "$ac_link") 2>conftest.er1
4585   ac_status=$?
4586   grep -v '^ *+' conftest.er1 >conftest.err
4587   rm -f conftest.er1
4588   cat conftest.err >&5
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); } && {
4591          test -z "$ac_c_werror_flag" ||
4592          test ! -s conftest.err
4593        } && test -s conftest$ac_exeext &&
4594        $as_test_x conftest$ac_exeext; then
4595   ac_cv_lib_socket_connect=yes
4596 else
4597   echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4599
4600         ac_cv_lib_socket_connect=no
4601 fi
4602
4603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4604       conftest$ac_exeext conftest.$ac_ext
4605 LIBS=$ac_check_lib_save_LIBS
4606 fi
4607 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4608 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4609 if test $ac_cv_lib_socket_connect = yes; then
4610   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4611 fi
4612
4613     fi
4614
4615     # Guillermo Gomez says -lposix is necessary on A/UX.
4616     { echo "$as_me:$LINENO: checking for remove" >&5
4617 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4618 if test "${ac_cv_func_remove+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h.  */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h.  */
4627 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4629 #define remove innocuous_remove
4630
4631 /* System header to define __stub macros and hopefully few prototypes,
4632     which can conflict with char remove (); below.
4633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4634     <limits.h> exists even on freestanding compilers.  */
4635
4636 #ifdef __STDC__
4637 # include <limits.h>
4638 #else
4639 # include <assert.h>
4640 #endif
4641
4642 #undef remove
4643
4644 /* Override any GCC internal prototype to avoid an error.
4645    Use char because int might match the return type of a GCC
4646    builtin and then its argument prototype would still apply.  */
4647 #ifdef __cplusplus
4648 extern "C"
4649 #endif
4650 char remove ();
4651 /* The GNU C library defines this for functions which it implements
4652     to always fail with ENOSYS.  Some functions are actually named
4653     something starting with __ and the normal name is an alias.  */
4654 #if defined __stub_remove || defined __stub___remove
4655 choke me
4656 #endif
4657
4658 int
4659 main ()
4660 {
4661 return remove ();
4662   ;
4663   return 0;
4664 }
4665 _ACEOF
4666 rm -f conftest.$ac_objext conftest$ac_exeext
4667 if { (ac_try="$ac_link"
4668 case "(($ac_try" in
4669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670   *) ac_try_echo=$ac_try;;
4671 esac
4672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4673   (eval "$ac_link") 2>conftest.er1
4674   ac_status=$?
4675   grep -v '^ *+' conftest.er1 >conftest.err
4676   rm -f conftest.er1
4677   cat conftest.err >&5
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); } && {
4680          test -z "$ac_c_werror_flag" ||
4681          test ! -s conftest.err
4682        } && test -s conftest$ac_exeext &&
4683        $as_test_x conftest$ac_exeext; then
4684   ac_cv_func_remove=yes
4685 else
4686   echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689         ac_cv_func_remove=no
4690 fi
4691
4692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4693       conftest$ac_exeext conftest.$ac_ext
4694 fi
4695 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4696 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4697
4698     if test $ac_cv_func_remove = no; then
4699       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4700 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4701 if test "${ac_cv_lib_posix_remove+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   ac_check_lib_save_LIBS=$LIBS
4705 LIBS="-lposix  $LIBS"
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h.  */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h.  */
4712
4713 /* Override any GCC internal prototype to avoid an error.
4714    Use char because int might match the return type of a GCC
4715    builtin and then its argument prototype would still apply.  */
4716 #ifdef __cplusplus
4717 extern "C"
4718 #endif
4719 char remove ();
4720 int
4721 main ()
4722 {
4723 return remove ();
4724   ;
4725   return 0;
4726 }
4727 _ACEOF
4728 rm -f conftest.$ac_objext conftest$ac_exeext
4729 if { (ac_try="$ac_link"
4730 case "(($ac_try" in
4731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732   *) ac_try_echo=$ac_try;;
4733 esac
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735   (eval "$ac_link") 2>conftest.er1
4736   ac_status=$?
4737   grep -v '^ *+' conftest.er1 >conftest.err
4738   rm -f conftest.er1
4739   cat conftest.err >&5
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } && {
4742          test -z "$ac_c_werror_flag" ||
4743          test ! -s conftest.err
4744        } && test -s conftest$ac_exeext &&
4745        $as_test_x conftest$ac_exeext; then
4746   ac_cv_lib_posix_remove=yes
4747 else
4748   echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751         ac_cv_lib_posix_remove=no
4752 fi
4753
4754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4755       conftest$ac_exeext conftest.$ac_ext
4756 LIBS=$ac_check_lib_save_LIBS
4757 fi
4758 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4759 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4760 if test $ac_cv_lib_posix_remove = yes; then
4761   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4762 fi
4763
4764     fi
4765
4766     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4767     { echo "$as_me:$LINENO: checking for shmat" >&5
4768 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4769 if test "${ac_cv_func_shmat+set}" = set; then
4770   echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772   cat >conftest.$ac_ext <<_ACEOF
4773 /* confdefs.h.  */
4774 _ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h.  */
4778 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4780 #define shmat innocuous_shmat
4781
4782 /* System header to define __stub macros and hopefully few prototypes,
4783     which can conflict with char shmat (); below.
4784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4785     <limits.h> exists even on freestanding compilers.  */
4786
4787 #ifdef __STDC__
4788 # include <limits.h>
4789 #else
4790 # include <assert.h>
4791 #endif
4792
4793 #undef shmat
4794
4795 /* Override any GCC internal prototype to avoid an error.
4796    Use char because int might match the return type of a GCC
4797    builtin and then its argument prototype would still apply.  */
4798 #ifdef __cplusplus
4799 extern "C"
4800 #endif
4801 char shmat ();
4802 /* The GNU C library defines this for functions which it implements
4803     to always fail with ENOSYS.  Some functions are actually named
4804     something starting with __ and the normal name is an alias.  */
4805 #if defined __stub_shmat || defined __stub___shmat
4806 choke me
4807 #endif
4808
4809 int
4810 main ()
4811 {
4812 return shmat ();
4813   ;
4814   return 0;
4815 }
4816 _ACEOF
4817 rm -f conftest.$ac_objext conftest$ac_exeext
4818 if { (ac_try="$ac_link"
4819 case "(($ac_try" in
4820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821   *) ac_try_echo=$ac_try;;
4822 esac
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824   (eval "$ac_link") 2>conftest.er1
4825   ac_status=$?
4826   grep -v '^ *+' conftest.er1 >conftest.err
4827   rm -f conftest.er1
4828   cat conftest.err >&5
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); } && {
4831          test -z "$ac_c_werror_flag" ||
4832          test ! -s conftest.err
4833        } && test -s conftest$ac_exeext &&
4834        $as_test_x conftest$ac_exeext; then
4835   ac_cv_func_shmat=yes
4836 else
4837   echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4839
4840         ac_cv_func_shmat=no
4841 fi
4842
4843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4844       conftest$ac_exeext conftest.$ac_ext
4845 fi
4846 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4847 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4848
4849     if test $ac_cv_func_shmat = no; then
4850       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4851 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4852 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   ac_check_lib_save_LIBS=$LIBS
4856 LIBS="-lipc  $LIBS"
4857 cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863
4864 /* Override any GCC internal prototype to avoid an error.
4865    Use char because int might match the return type of a GCC
4866    builtin and then its argument prototype would still apply.  */
4867 #ifdef __cplusplus
4868 extern "C"
4869 #endif
4870 char shmat ();
4871 int
4872 main ()
4873 {
4874 return shmat ();
4875   ;
4876   return 0;
4877 }
4878 _ACEOF
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (ac_try="$ac_link"
4881 case "(($ac_try" in
4882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883   *) ac_try_echo=$ac_try;;
4884 esac
4885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886   (eval "$ac_link") 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } && {
4893          test -z "$ac_c_werror_flag" ||
4894          test ! -s conftest.err
4895        } && test -s conftest$ac_exeext &&
4896        $as_test_x conftest$ac_exeext; then
4897   ac_cv_lib_ipc_shmat=yes
4898 else
4899   echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4901
4902         ac_cv_lib_ipc_shmat=no
4903 fi
4904
4905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4906       conftest$ac_exeext conftest.$ac_ext
4907 LIBS=$ac_check_lib_save_LIBS
4908 fi
4909 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4910 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4911 if test $ac_cv_lib_ipc_shmat = yes; then
4912   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4913 fi
4914
4915     fi
4916   fi
4917
4918   # Check for libraries that X11R6 Xt/Xaw programs need.
4919   ac_save_LDFLAGS=$LDFLAGS
4920   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4921   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4922   # check for ICE first), but we must link in the order -lSM -lICE or
4923   # we get undefined symbols.  So assume we have SM if we have ICE.
4924   # These have to be linked with before -lX11, unlike the other
4925   # libraries we check for below, so use a different variable.
4926   # John Interrante, Karl Berry
4927   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4928 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4929 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4930   echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932   ac_check_lib_save_LIBS=$LIBS
4933 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h.  */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h.  */
4940
4941 /* Override any GCC internal prototype to avoid an error.
4942    Use char because int might match the return type of a GCC
4943    builtin and then its argument prototype would still apply.  */
4944 #ifdef __cplusplus
4945 extern "C"
4946 #endif
4947 char IceConnectionNumber ();
4948 int
4949 main ()
4950 {
4951 return IceConnectionNumber ();
4952   ;
4953   return 0;
4954 }
4955 _ACEOF
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (ac_try="$ac_link"
4958 case "(($ac_try" in
4959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960   *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963   (eval "$ac_link") 2>conftest.er1
4964   ac_status=$?
4965   grep -v '^ *+' conftest.er1 >conftest.err
4966   rm -f conftest.er1
4967   cat conftest.err >&5
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); } && {
4970          test -z "$ac_c_werror_flag" ||
4971          test ! -s conftest.err
4972        } && test -s conftest$ac_exeext &&
4973        $as_test_x conftest$ac_exeext; then
4974   ac_cv_lib_ICE_IceConnectionNumber=yes
4975 else
4976   echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979         ac_cv_lib_ICE_IceConnectionNumber=no
4980 fi
4981
4982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4983       conftest$ac_exeext conftest.$ac_ext
4984 LIBS=$ac_check_lib_save_LIBS
4985 fi
4986 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4987 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4988 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4989   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4990 fi
4991
4992   LDFLAGS=$ac_save_LDFLAGS
4993
4994 fi
4995
4996
4997 for ac_prog in flex
4998 do
4999   # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy $ac_prog; ac_word=$2
5001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5003 if test "${ac_cv_prog_FLEX+set}" = set; then
5004   echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006   if test -n "$FLEX"; then
5007   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5011 do
5012   IFS=$as_save_IFS
5013   test -z "$as_dir" && as_dir=.
5014   for ac_exec_ext in '' $ac_executable_extensions; do
5015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016     ac_cv_prog_FLEX="$ac_prog"
5017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018     break 2
5019   fi
5020 done
5021 done
5022 IFS=$as_save_IFS
5023
5024 fi
5025 fi
5026 FLEX=$ac_cv_prog_FLEX
5027 if test -n "$FLEX"; then
5028   { echo "$as_me:$LINENO: result: $FLEX" >&5
5029 echo "${ECHO_T}$FLEX" >&6; }
5030 else
5031   { echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6; }
5033 fi
5034
5035
5036   test -n "$FLEX" && break
5037 done
5038 test -n "$FLEX" || FLEX="none"
5039
5040 if test "$FLEX" = "none"
5041 then
5042   { { echo "$as_me:$LINENO: error: no suitable flex found. Please install the 'flex' package." >&5
5043 echo "$as_me: error: no suitable flex found. Please install the 'flex' package." >&2;}
5044    { (exit 1); exit 1; }; }
5045 fi
5046
5047 for ac_prog in bison
5048 do
5049   # Extract the first word of "$ac_prog", so it can be a program name with args.
5050 set dummy $ac_prog; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_BISON+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   if test -n "$BISON"; then
5057   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064   for ac_exec_ext in '' $ac_executable_extensions; do
5065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_prog_BISON="$ac_prog"
5067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074 fi
5075 fi
5076 BISON=$ac_cv_prog_BISON
5077 if test -n "$BISON"; then
5078   { echo "$as_me:$LINENO: result: $BISON" >&5
5079 echo "${ECHO_T}$BISON" >&6; }
5080 else
5081   { echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6; }
5083 fi
5084
5085
5086   test -n "$BISON" && break
5087 done
5088 test -n "$BISON" || BISON="none"
5089
5090 if test "$BISON" = "none"
5091 then
5092   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5093 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5094    { (exit 1); exit 1; }; }
5095 fi
5096
5097 if test -n "$ac_tool_prefix"; then
5098   for ac_prog in gas as
5099   do
5100     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5104 if test "${ac_cv_prog_AS+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   if test -n "$AS"; then
5108   ac_cv_prog_AS="$AS" # Let the user override the test.
5109 else
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113   IFS=$as_save_IFS
5114   test -z "$as_dir" && as_dir=.
5115   for ac_exec_ext in '' $ac_executable_extensions; do
5116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119     break 2
5120   fi
5121 done
5122 done
5123 IFS=$as_save_IFS
5124
5125 fi
5126 fi
5127 AS=$ac_cv_prog_AS
5128 if test -n "$AS"; then
5129   { echo "$as_me:$LINENO: result: $AS" >&5
5130 echo "${ECHO_T}$AS" >&6; }
5131 else
5132   { echo "$as_me:$LINENO: result: no" >&5
5133 echo "${ECHO_T}no" >&6; }
5134 fi
5135
5136
5137     test -n "$AS" && break
5138   done
5139 fi
5140 if test -z "$AS"; then
5141   ac_ct_AS=$AS
5142   for ac_prog in gas as
5143 do
5144   # Extract the first word of "$ac_prog", so it can be a program name with args.
5145 set dummy $ac_prog; ac_word=$2
5146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5148 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   if test -n "$ac_ct_AS"; then
5152   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159   for ac_exec_ext in '' $ac_executable_extensions; do
5160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161     ac_cv_prog_ac_ct_AS="$ac_prog"
5162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166 done
5167 IFS=$as_save_IFS
5168
5169 fi
5170 fi
5171 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5172 if test -n "$ac_ct_AS"; then
5173   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5174 echo "${ECHO_T}$ac_ct_AS" >&6; }
5175 else
5176   { echo "$as_me:$LINENO: result: no" >&5
5177 echo "${ECHO_T}no" >&6; }
5178 fi
5179
5180
5181   test -n "$ac_ct_AS" && break
5182 done
5183
5184   if test "x$ac_ct_AS" = x; then
5185     AS="as"
5186   else
5187     case $cross_compiling:$ac_tool_warned in
5188 yes:)
5189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5190 whose name does not start with the host triplet.  If you think this
5191 configuration is useful to you, please write to autoconf@gnu.org." >&5
5192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5193 whose name does not start with the host triplet.  If you think this
5194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5195 ac_tool_warned=yes ;;
5196 esac
5197     AS=$ac_ct_AS
5198   fi
5199 fi
5200
5201 if test -n "$ac_tool_prefix"; then
5202   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5203 set dummy ${ac_tool_prefix}ld; ac_word=$2
5204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5206 if test "${ac_cv_prog_LD+set}" = set; then
5207   echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209   if test -n "$LD"; then
5210   ac_cv_prog_LD="$LD" # Let the user override the test.
5211 else
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5214 do
5215   IFS=$as_save_IFS
5216   test -z "$as_dir" && as_dir=.
5217   for ac_exec_ext in '' $ac_executable_extensions; do
5218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219     ac_cv_prog_LD="${ac_tool_prefix}ld"
5220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221     break 2
5222   fi
5223 done
5224 done
5225 IFS=$as_save_IFS
5226
5227 fi
5228 fi
5229 LD=$ac_cv_prog_LD
5230 if test -n "$LD"; then
5231   { echo "$as_me:$LINENO: result: $LD" >&5
5232 echo "${ECHO_T}$LD" >&6; }
5233 else
5234   { echo "$as_me:$LINENO: result: no" >&5
5235 echo "${ECHO_T}no" >&6; }
5236 fi
5237
5238
5239 fi
5240 if test -z "$ac_cv_prog_LD"; then
5241   ac_ct_LD=$LD
5242   # Extract the first word of "ld", so it can be a program name with args.
5243 set dummy ld; ac_word=$2
5244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5246 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   if test -n "$ac_ct_LD"; then
5250   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257   for ac_exec_ext in '' $ac_executable_extensions; do
5258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259     ac_cv_prog_ac_ct_LD="ld"
5260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261     break 2
5262   fi
5263 done
5264 done
5265 IFS=$as_save_IFS
5266
5267 fi
5268 fi
5269 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5270 if test -n "$ac_ct_LD"; then
5271   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5272 echo "${ECHO_T}$ac_ct_LD" >&6; }
5273 else
5274   { echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6; }
5276 fi
5277
5278   if test "x$ac_ct_LD" = x; then
5279     LD="ld"
5280   else
5281     case $cross_compiling:$ac_tool_warned in
5282 yes:)
5283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5284 whose name does not start with the host triplet.  If you think this
5285 configuration is useful to you, please write to autoconf@gnu.org." >&5
5286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5287 whose name does not start with the host triplet.  If you think this
5288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5289 ac_tool_warned=yes ;;
5290 esac
5291     LD=$ac_ct_LD
5292   fi
5293 else
5294   LD="$ac_cv_prog_LD"
5295 fi
5296
5297 if test -n "$ac_tool_prefix"; then
5298   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5299 set dummy ${ac_tool_prefix}ar; ac_word=$2
5300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5302 if test "${ac_cv_prog_AR+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305   if test -n "$AR"; then
5306   ac_cv_prog_AR="$AR" # Let the user override the test.
5307 else
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311   IFS=$as_save_IFS
5312   test -z "$as_dir" && as_dir=.
5313   for ac_exec_ext in '' $ac_executable_extensions; do
5314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5315     ac_cv_prog_AR="${ac_tool_prefix}ar"
5316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317     break 2
5318   fi
5319 done
5320 done
5321 IFS=$as_save_IFS
5322
5323 fi
5324 fi
5325 AR=$ac_cv_prog_AR
5326 if test -n "$AR"; then
5327   { echo "$as_me:$LINENO: result: $AR" >&5
5328 echo "${ECHO_T}$AR" >&6; }
5329 else
5330   { echo "$as_me:$LINENO: result: no" >&5
5331 echo "${ECHO_T}no" >&6; }
5332 fi
5333
5334
5335 fi
5336 if test -z "$ac_cv_prog_AR"; then
5337   ac_ct_AR=$AR
5338   # Extract the first word of "ar", so it can be a program name with args.
5339 set dummy ar; ac_word=$2
5340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5342 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   if test -n "$ac_ct_AR"; then
5346   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353   for ac_exec_ext in '' $ac_executable_extensions; do
5354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355     ac_cv_prog_ac_ct_AR="ar"
5356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360 done
5361 IFS=$as_save_IFS
5362
5363 fi
5364 fi
5365 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5366 if test -n "$ac_ct_AR"; then
5367   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5368 echo "${ECHO_T}$ac_ct_AR" >&6; }
5369 else
5370   { echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6; }
5372 fi
5373
5374   if test "x$ac_ct_AR" = x; then
5375     AR="ar"
5376   else
5377     case $cross_compiling:$ac_tool_warned in
5378 yes:)
5379 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5380 whose name does not start with the host triplet.  If you think this
5381 configuration is useful to you, please write to autoconf@gnu.org." >&5
5382 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5383 whose name does not start with the host triplet.  If you think this
5384 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5385 ac_tool_warned=yes ;;
5386 esac
5387     AR=$ac_ct_AR
5388   fi
5389 else
5390   AR="$ac_cv_prog_AR"
5391 fi
5392
5393 if test -n "$ac_tool_prefix"; then
5394   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5395 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5398 if test "${ac_cv_prog_RANLIB+set}" = set; then
5399   echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401   if test -n "$RANLIB"; then
5402   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409   for ac_exec_ext in '' $ac_executable_extensions; do
5410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416 done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 RANLIB=$ac_cv_prog_RANLIB
5422 if test -n "$RANLIB"; then
5423   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5424 echo "${ECHO_T}$RANLIB" >&6; }
5425 else
5426   { echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6; }
5428 fi
5429
5430
5431 fi
5432 if test -z "$ac_cv_prog_RANLIB"; then
5433   ac_ct_RANLIB=$RANLIB
5434   # Extract the first word of "ranlib", so it can be a program name with args.
5435 set dummy ranlib; ac_word=$2
5436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5438 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5439   echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441   if test -n "$ac_ct_RANLIB"; then
5442   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447   IFS=$as_save_IFS
5448   test -z "$as_dir" && as_dir=.
5449   for ac_exec_ext in '' $ac_executable_extensions; do
5450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451     ac_cv_prog_ac_ct_RANLIB="ranlib"
5452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453     break 2
5454   fi
5455 done
5456 done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5462 if test -n "$ac_ct_RANLIB"; then
5463   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5464 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5465 else
5466   { echo "$as_me:$LINENO: result: no" >&5
5467 echo "${ECHO_T}no" >&6; }
5468 fi
5469
5470   if test "x$ac_ct_RANLIB" = x; then
5471     RANLIB=":"
5472   else
5473     case $cross_compiling:$ac_tool_warned in
5474 yes:)
5475 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5476 whose name does not start with the host triplet.  If you think this
5477 configuration is useful to you, please write to autoconf@gnu.org." >&5
5478 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5479 whose name does not start with the host triplet.  If you think this
5480 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5481 ac_tool_warned=yes ;;
5482 esac
5483     RANLIB=$ac_ct_RANLIB
5484   fi
5485 else
5486   RANLIB="$ac_cv_prog_RANLIB"
5487 fi
5488
5489 if test -n "$ac_tool_prefix"; then
5490   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5491 set dummy ${ac_tool_prefix}strip; ac_word=$2
5492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5494 if test "${ac_cv_prog_STRIP+set}" = set; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497   if test -n "$STRIP"; then
5498   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503   IFS=$as_save_IFS
5504   test -z "$as_dir" && as_dir=.
5505   for ac_exec_ext in '' $ac_executable_extensions; do
5506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509     break 2
5510   fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 STRIP=$ac_cv_prog_STRIP
5518 if test -n "$STRIP"; then
5519   { echo "$as_me:$LINENO: result: $STRIP" >&5
5520 echo "${ECHO_T}$STRIP" >&6; }
5521 else
5522   { echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6; }
5524 fi
5525
5526
5527 fi
5528 if test -z "$ac_cv_prog_STRIP"; then
5529   ac_ct_STRIP=$STRIP
5530   # Extract the first word of "strip", so it can be a program name with args.
5531 set dummy strip; ac_word=$2
5532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5534 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5535   echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537   if test -n "$ac_ct_STRIP"; then
5538   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543   IFS=$as_save_IFS
5544   test -z "$as_dir" && as_dir=.
5545   for ac_exec_ext in '' $ac_executable_extensions; do
5546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547     ac_cv_prog_ac_ct_STRIP="strip"
5548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5549     break 2
5550   fi
5551 done
5552 done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5558 if test -n "$ac_ct_STRIP"; then
5559   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5560 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5561 else
5562   { echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6; }
5564 fi
5565
5566   if test "x$ac_ct_STRIP" = x; then
5567     STRIP="strip"
5568   else
5569     case $cross_compiling:$ac_tool_warned in
5570 yes:)
5571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5572 whose name does not start with the host triplet.  If you think this
5573 configuration is useful to you, please write to autoconf@gnu.org." >&5
5574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5575 whose name does not start with the host triplet.  If you think this
5576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5577 ac_tool_warned=yes ;;
5578 esac
5579     STRIP=$ac_ct_STRIP
5580   fi
5581 else
5582   STRIP="$ac_cv_prog_STRIP"
5583 fi
5584
5585 if test -n "$ac_tool_prefix"; then
5586   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5587 set dummy ${ac_tool_prefix}windres; ac_word=$2
5588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5590 if test "${ac_cv_prog_WINDRES+set}" = set; then
5591   echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593   if test -n "$WINDRES"; then
5594   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599   IFS=$as_save_IFS
5600   test -z "$as_dir" && as_dir=.
5601   for ac_exec_ext in '' $ac_executable_extensions; do
5602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5605     break 2
5606   fi
5607 done
5608 done
5609 IFS=$as_save_IFS
5610
5611 fi
5612 fi
5613 WINDRES=$ac_cv_prog_WINDRES
5614 if test -n "$WINDRES"; then
5615   { echo "$as_me:$LINENO: result: $WINDRES" >&5
5616 echo "${ECHO_T}$WINDRES" >&6; }
5617 else
5618   { echo "$as_me:$LINENO: result: no" >&5
5619 echo "${ECHO_T}no" >&6; }
5620 fi
5621
5622
5623 fi
5624 if test -z "$ac_cv_prog_WINDRES"; then
5625   ac_ct_WINDRES=$WINDRES
5626   # Extract the first word of "windres", so it can be a program name with args.
5627 set dummy windres; ac_word=$2
5628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5630 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5631   echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633   if test -n "$ac_ct_WINDRES"; then
5634   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5638 do
5639   IFS=$as_save_IFS
5640   test -z "$as_dir" && as_dir=.
5641   for ac_exec_ext in '' $ac_executable_extensions; do
5642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5643     ac_cv_prog_ac_ct_WINDRES="windres"
5644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5645     break 2
5646   fi
5647 done
5648 done
5649 IFS=$as_save_IFS
5650
5651 fi
5652 fi
5653 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5654 if test -n "$ac_ct_WINDRES"; then
5655   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5656 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
5657 else
5658   { echo "$as_me:$LINENO: result: no" >&5
5659 echo "${ECHO_T}no" >&6; }
5660 fi
5661
5662   if test "x$ac_ct_WINDRES" = x; then
5663     WINDRES="false"
5664   else
5665     case $cross_compiling:$ac_tool_warned in
5666 yes:)
5667 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5668 whose name does not start with the host triplet.  If you think this
5669 configuration is useful to you, please write to autoconf@gnu.org." >&5
5670 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5671 whose name does not start with the host triplet.  If you think this
5672 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5673 ac_tool_warned=yes ;;
5674 esac
5675     WINDRES=$ac_ct_WINDRES
5676   fi
5677 else
5678   WINDRES="$ac_cv_prog_WINDRES"
5679 fi
5680
5681 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5682 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5683 LN_S=$as_ln_s
5684 if test "$LN_S" = "ln -s"; then
5685   { echo "$as_me:$LINENO: result: yes" >&5
5686 echo "${ECHO_T}yes" >&6; }
5687 else
5688   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5689 echo "${ECHO_T}no, using $LN_S" >&6; }
5690 fi
5691
5692 { echo "$as_me:$LINENO: checking whether ln works" >&5
5693 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
5694 rm -f conf$$ conf$$.file
5695 echo >conf$$.file
5696 if ln conf$$.file conf$$ 2>/dev/null; then
5697   LN=ln
5698
5699   { echo "$as_me:$LINENO: result: yes" >&5
5700 echo "${ECHO_T}yes" >&6; }
5701 else
5702   LN="cp -p"
5703
5704   { echo "$as_me:$LINENO: result: no, using $LN" >&5
5705 echo "${ECHO_T}no, using $LN" >&6; }
5706 fi
5707 rm -f conf$$ conf$$.file
5708 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5709 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5710 if test "${ac_cv_path_GREP+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   # Extract the first word of "grep ggrep" to use in msg output
5714 if test -z "$GREP"; then
5715 set dummy grep ggrep; ac_prog_name=$2
5716 if test "${ac_cv_path_GREP+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719   ac_path_GREP_found=false
5720 # Loop through the user's path and test for each of PROGNAME-LIST
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5723 do
5724   IFS=$as_save_IFS
5725   test -z "$as_dir" && as_dir=.
5726   for ac_prog in grep ggrep; do
5727   for ac_exec_ext in '' $ac_executable_extensions; do
5728     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5729     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5730     # Check for GNU ac_path_GREP and select it if it is found.
5731   # Check for GNU $ac_path_GREP
5732 case `"$ac_path_GREP" --version 2>&1` in
5733 *GNU*)
5734   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5735 *)
5736   ac_count=0
5737   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5738   while :
5739   do
5740     cat "conftest.in" "conftest.in" >"conftest.tmp"
5741     mv "conftest.tmp" "conftest.in"
5742     cp "conftest.in" "conftest.nl"
5743     echo 'GREP' >> "conftest.nl"
5744     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5745     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5746     ac_count=`expr $ac_count + 1`
5747     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5748       # Best one so far, save it but keep looking for a better one
5749       ac_cv_path_GREP="$ac_path_GREP"
5750       ac_path_GREP_max=$ac_count
5751     fi
5752     # 10*(2^10) chars as input seems more than enough
5753     test $ac_count -gt 10 && break
5754   done
5755   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5756 esac
5757
5758
5759     $ac_path_GREP_found && break 3
5760   done
5761 done
5762
5763 done
5764 IFS=$as_save_IFS
5765
5766
5767 fi
5768
5769 GREP="$ac_cv_path_GREP"
5770 if test -z "$GREP"; then
5771   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5772 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5773    { (exit 1); exit 1; }; }
5774 fi
5775
5776 else
5777   ac_cv_path_GREP=$GREP
5778 fi
5779
5780
5781 fi
5782 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5783 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5784  GREP="$ac_cv_path_GREP"
5785
5786
5787 { echo "$as_me:$LINENO: checking for egrep" >&5
5788 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5789 if test "${ac_cv_path_EGREP+set}" = set; then
5790   echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5793    then ac_cv_path_EGREP="$GREP -E"
5794    else
5795      # Extract the first word of "egrep" to use in msg output
5796 if test -z "$EGREP"; then
5797 set dummy egrep; ac_prog_name=$2
5798 if test "${ac_cv_path_EGREP+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   ac_path_EGREP_found=false
5802 # Loop through the user's path and test for each of PROGNAME-LIST
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808   for ac_prog in egrep; do
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5811     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5812     # Check for GNU ac_path_EGREP and select it if it is found.
5813   # Check for GNU $ac_path_EGREP
5814 case `"$ac_path_EGREP" --version 2>&1` in
5815 *GNU*)
5816   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5817 *)
5818   ac_count=0
5819   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5820   while :
5821   do
5822     cat "conftest.in" "conftest.in" >"conftest.tmp"
5823     mv "conftest.tmp" "conftest.in"
5824     cp "conftest.in" "conftest.nl"
5825     echo 'EGREP' >> "conftest.nl"
5826     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5827     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5828     ac_count=`expr $ac_count + 1`
5829     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5830       # Best one so far, save it but keep looking for a better one
5831       ac_cv_path_EGREP="$ac_path_EGREP"
5832       ac_path_EGREP_max=$ac_count
5833     fi
5834     # 10*(2^10) chars as input seems more than enough
5835     test $ac_count -gt 10 && break
5836   done
5837   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5838 esac
5839
5840
5841     $ac_path_EGREP_found && break 3
5842   done
5843 done
5844
5845 done
5846 IFS=$as_save_IFS
5847
5848
5849 fi
5850
5851 EGREP="$ac_cv_path_EGREP"
5852 if test -z "$EGREP"; then
5853   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5854 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5855    { (exit 1); exit 1; }; }
5856 fi
5857
5858 else
5859   ac_cv_path_EGREP=$EGREP
5860 fi
5861
5862
5863    fi
5864 fi
5865 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5866 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5867  EGREP="$ac_cv_path_EGREP"
5868
5869
5870 # Extract the first word of "ldconfig", so it can be a program name with args.
5871 set dummy ldconfig; ac_word=$2
5872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5874 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   case $LDCONFIG in
5878   [\\/]* | ?:[\\/]*)
5879   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5880   ;;
5881   *)
5882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in /sbin /usr/sbin $PATH
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887   for ac_exec_ext in '' $ac_executable_extensions; do
5888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5889     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894 done
5895 IFS=$as_save_IFS
5896
5897   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5898   ;;
5899 esac
5900 fi
5901 LDCONFIG=$ac_cv_path_LDCONFIG
5902 if test -n "$LDCONFIG"; then
5903   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5904 echo "${ECHO_T}$LDCONFIG" >&6; }
5905 else
5906   { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5908 fi
5909
5910
5911 # Find a good install program.  We prefer a C program (faster),
5912 # so one script is as good as another.  But avoid the broken or
5913 # incompatible versions:
5914 # SysV /etc/install, /usr/sbin/install
5915 # SunOS /usr/etc/install
5916 # IRIX /sbin/install
5917 # AIX /bin/install
5918 # AmigaOS /C/install, which installs bootblocks on floppy discs
5919 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5920 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5921 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5922 # OS/2's system install, which has a completely different semantic
5923 # ./install, which can be erroneously created by make from ./install.sh.
5924 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5925 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5926 if test -z "$INSTALL"; then
5927 if test "${ac_cv_path_install+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933   IFS=$as_save_IFS
5934   test -z "$as_dir" && as_dir=.
5935   # Account for people who put trailing slashes in PATH elements.
5936 case $as_dir/ in
5937   ./ | .// | /cC/* | \
5938   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5939   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5940   /usr/ucb/* ) ;;
5941   *)
5942     # OSF1 and SCO ODT 3.0 have their own names for install.
5943     # Don't use installbsd from OSF since it installs stuff as root
5944     # by default.
5945     for ac_prog in ginstall scoinst install; do
5946       for ac_exec_ext in '' $ac_executable_extensions; do
5947         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5948           if test $ac_prog = install &&
5949             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5950             # AIX install.  It has an incompatible calling convention.
5951             :
5952           elif test $ac_prog = install &&
5953             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5954             # program-specific install script used by HP pwplus--don't use.
5955             :
5956           else
5957             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5958             break 3
5959           fi
5960         fi
5961       done
5962     done
5963     ;;
5964 esac
5965 done
5966 IFS=$as_save_IFS
5967
5968
5969 fi
5970   if test "${ac_cv_path_install+set}" = set; then
5971     INSTALL=$ac_cv_path_install
5972   else
5973     # As a last resort, use the slow shell script.  Don't cache a
5974     # value for INSTALL within a source directory, because that will
5975     # break other packages using the cache if that directory is
5976     # removed, or if the value is a relative name.
5977     INSTALL=$ac_install_sh
5978   fi
5979 fi
5980 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5981 echo "${ECHO_T}$INSTALL" >&6; }
5982
5983 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5984 # It thinks the first close brace ends the variable substitution.
5985 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5986
5987 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5988
5989 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5990
5991 case "$INSTALL" in
5992   [\\/$]* | ?:[\\/]* ) ;;
5993   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5994 esac
5995
5996 for ac_prog in lclint lint
5997 do
5998   # Extract the first word of "$ac_prog", so it can be a program name with args.
5999 set dummy $ac_prog; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_LINT+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   if test -n "$LINT"; then
6006   ac_cv_prog_LINT="$LINT" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013   for ac_exec_ext in '' $ac_executable_extensions; do
6014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015     ac_cv_prog_LINT="$ac_prog"
6016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 LINT=$ac_cv_prog_LINT
6026 if test -n "$LINT"; then
6027   { echo "$as_me:$LINENO: result: $LINT" >&5
6028 echo "${ECHO_T}$LINT" >&6; }
6029 else
6030   { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6032 fi
6033
6034
6035   test -n "$LINT" && break
6036 done
6037
6038 if test "$LINT" = "lint"
6039 then
6040   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6041   fi
6042
6043
6044
6045 for ac_prog in fontforge
6046 do
6047   # Extract the first word of "$ac_prog", so it can be a program name with args.
6048 set dummy $ac_prog; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   if test -n "$FONTFORGE"; then
6055   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060   IFS=$as_save_IFS
6061   test -z "$as_dir" && as_dir=.
6062   for ac_exec_ext in '' $ac_executable_extensions; do
6063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064     ac_cv_prog_FONTFORGE="$ac_prog"
6065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066     break 2
6067   fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 FONTFORGE=$ac_cv_prog_FONTFORGE
6075 if test -n "$FONTFORGE"; then
6076   { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6077 echo "${ECHO_T}$FONTFORGE" >&6; }
6078 else
6079   { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6081 fi
6082
6083
6084   test -n "$FONTFORGE" && break
6085 done
6086 test -n "$FONTFORGE" || FONTFORGE="false"
6087
6088 for ac_prog in pkg-config
6089 do
6090   # Extract the first word of "$ac_prog", so it can be a program name with args.
6091 set dummy $ac_prog; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6095   echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097   if test -n "$PKG_CONFIG"; then
6098   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105   for ac_exec_ext in '' $ac_executable_extensions; do
6106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107     ac_cv_prog_PKG_CONFIG="$ac_prog"
6108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6118 if test -n "$PKG_CONFIG"; then
6119   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6120 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6121 else
6122   { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6124 fi
6125
6126
6127   test -n "$PKG_CONFIG" && break
6128 done
6129 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6130
6131
6132 case $host_cpu in
6133   *i[3456789]86*)
6134     # Extract the first word of "prelink", so it can be a program name with args.
6135 set dummy prelink; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_path_PRELINK+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   case $PRELINK in
6142   [\\/]* | ?:[\\/]*)
6143   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6144   ;;
6145   *)
6146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in /sbin /usr/sbin $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151   for ac_exec_ext in '' $ac_executable_extensions; do
6152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158 done
6159 IFS=$as_save_IFS
6160
6161   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6162   ;;
6163 esac
6164 fi
6165 PRELINK=$ac_cv_path_PRELINK
6166 if test -n "$PRELINK"; then
6167   { echo "$as_me:$LINENO: result: $PRELINK" >&5
6168 echo "${ECHO_T}$PRELINK" >&6; }
6169 else
6170   { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6172 fi
6173
6174
6175     ;;
6176 esac
6177
6178
6179
6180 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6181 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6182 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   ac_check_lib_save_LIBS=$LIBS
6186 LIBS="-li386  $LIBS"
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h.  */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h.  */
6193
6194 /* Override any GCC internal prototype to avoid an error.
6195    Use char because int might match the return type of a GCC
6196    builtin and then its argument prototype would still apply.  */
6197 #ifdef __cplusplus
6198 extern "C"
6199 #endif
6200 char i386_set_ldt ();
6201 int
6202 main ()
6203 {
6204 return i386_set_ldt ();
6205   ;
6206   return 0;
6207 }
6208 _ACEOF
6209 rm -f conftest.$ac_objext conftest$ac_exeext
6210 if { (ac_try="$ac_link"
6211 case "(($ac_try" in
6212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213   *) ac_try_echo=$ac_try;;
6214 esac
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216   (eval "$ac_link") 2>conftest.er1
6217   ac_status=$?
6218   grep -v '^ *+' conftest.er1 >conftest.err
6219   rm -f conftest.er1
6220   cat conftest.err >&5
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); } && {
6223          test -z "$ac_c_werror_flag" ||
6224          test ! -s conftest.err
6225        } && test -s conftest$ac_exeext &&
6226        $as_test_x conftest$ac_exeext; then
6227   ac_cv_lib_i386_i386_set_ldt=yes
6228 else
6229   echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6231
6232         ac_cv_lib_i386_i386_set_ldt=no
6233 fi
6234
6235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6236       conftest$ac_exeext conftest.$ac_ext
6237 LIBS=$ac_check_lib_save_LIBS
6238 fi
6239 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6240 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
6241 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
6242   cat >>confdefs.h <<_ACEOF
6243 #define HAVE_LIBI386 1
6244 _ACEOF
6245
6246   LIBS="-li386 $LIBS"
6247
6248 fi
6249
6250
6251 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6252 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6253 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   ac_check_lib_save_LIBS=$LIBS
6257 LIBS="-lossaudio  $LIBS"
6258 cat >conftest.$ac_ext <<_ACEOF
6259 /* confdefs.h.  */
6260 _ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h.  */
6264
6265 /* Override any GCC internal prototype to avoid an error.
6266    Use char because int might match the return type of a GCC
6267    builtin and then its argument prototype would still apply.  */
6268 #ifdef __cplusplus
6269 extern "C"
6270 #endif
6271 char _oss_ioctl ();
6272 int
6273 main ()
6274 {
6275 return _oss_ioctl ();
6276   ;
6277   return 0;
6278 }
6279 _ACEOF
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (ac_try="$ac_link"
6282 case "(($ac_try" in
6283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284   *) ac_try_echo=$ac_try;;
6285 esac
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287   (eval "$ac_link") 2>conftest.er1
6288   ac_status=$?
6289   grep -v '^ *+' conftest.er1 >conftest.err
6290   rm -f conftest.er1
6291   cat conftest.err >&5
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); } && {
6294          test -z "$ac_c_werror_flag" ||
6295          test ! -s conftest.err
6296        } && test -s conftest$ac_exeext &&
6297        $as_test_x conftest$ac_exeext; then
6298   ac_cv_lib_ossaudio__oss_ioctl=yes
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303         ac_cv_lib_ossaudio__oss_ioctl=no
6304 fi
6305
6306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6307       conftest$ac_exeext conftest.$ac_ext
6308 LIBS=$ac_check_lib_save_LIBS
6309 fi
6310 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6311 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6312 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6313   cat >>confdefs.h <<_ACEOF
6314 #define HAVE_LIBOSSAUDIO 1
6315 _ACEOF
6316
6317   LIBS="-lossaudio $LIBS"
6318
6319 fi
6320
6321
6322 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6323 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
6324 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6325   echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327   ac_check_lib_save_LIBS=$LIBS
6328 LIBS="-lxpg4  $LIBS"
6329 cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h.  */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h.  */
6335
6336 /* Override any GCC internal prototype to avoid an error.
6337    Use char because int might match the return type of a GCC
6338    builtin and then its argument prototype would still apply.  */
6339 #ifdef __cplusplus
6340 extern "C"
6341 #endif
6342 char _xpg4_setrunelocale ();
6343 int
6344 main ()
6345 {
6346 return _xpg4_setrunelocale ();
6347   ;
6348   return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (ac_try="$ac_link"
6353 case "(($ac_try" in
6354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355   *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358   (eval "$ac_link") 2>conftest.er1
6359   ac_status=$?
6360   grep -v '^ *+' conftest.er1 >conftest.err
6361   rm -f conftest.er1
6362   cat conftest.err >&5
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } && {
6365          test -z "$ac_c_werror_flag" ||
6366          test ! -s conftest.err
6367        } && test -s conftest$ac_exeext &&
6368        $as_test_x conftest$ac_exeext; then
6369   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6370 else
6371   echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6373
6374         ac_cv_lib_xpg4__xpg4_setrunelocale=no
6375 fi
6376
6377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6378       conftest$ac_exeext conftest.$ac_ext
6379 LIBS=$ac_check_lib_save_LIBS
6380 fi
6381 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6382 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
6383 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6384   cat >>confdefs.h <<_ACEOF
6385 #define HAVE_LIBXPG4 1
6386 _ACEOF
6387
6388   LIBS="-lxpg4 $LIBS"
6389
6390 fi
6391
6392 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6393 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
6394 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397   ac_check_lib_save_LIBS=$LIBS
6398 LIBS="-lpthread  $LIBS"
6399 cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h.  */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h.  */
6405
6406 /* Override any GCC internal prototype to avoid an error.
6407    Use char because int might match the return type of a GCC
6408    builtin and then its argument prototype would still apply.  */
6409 #ifdef __cplusplus
6410 extern "C"
6411 #endif
6412 char pthread_create ();
6413 int
6414 main ()
6415 {
6416 return pthread_create ();
6417   ;
6418   return 0;
6419 }
6420 _ACEOF
6421 rm -f conftest.$ac_objext conftest$ac_exeext
6422 if { (ac_try="$ac_link"
6423 case "(($ac_try" in
6424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6425   *) ac_try_echo=$ac_try;;
6426 esac
6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428   (eval "$ac_link") 2>conftest.er1
6429   ac_status=$?
6430   grep -v '^ *+' conftest.er1 >conftest.err
6431   rm -f conftest.er1
6432   cat conftest.err >&5
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); } && {
6435          test -z "$ac_c_werror_flag" ||
6436          test ! -s conftest.err
6437        } && test -s conftest$ac_exeext &&
6438        $as_test_x conftest$ac_exeext; then
6439   ac_cv_lib_pthread_pthread_create=yes
6440 else
6441   echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444         ac_cv_lib_pthread_pthread_create=no
6445 fi
6446
6447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6448       conftest$ac_exeext conftest.$ac_ext
6449 LIBS=$ac_check_lib_save_LIBS
6450 fi
6451 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6452 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
6453 if test $ac_cv_lib_pthread_pthread_create = yes; then
6454   LIBPTHREAD="-lpthread"
6455
6456 fi
6457
6458
6459 XLIB=""
6460
6461 XFILES=""
6462
6463 OPENGLFILES=""
6464
6465 GLU32FILES=""
6466
6467 OPENGL_LIBS=""
6468
6469 QUARTZFILES=""
6470
6471
6472
6473 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6474 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6475 if test "${ac_cv_header_stdc+set}" = set; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h.  */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h.  */
6484 #include <stdlib.h>
6485 #include <stdarg.h>
6486 #include <string.h>
6487 #include <float.h>
6488
6489 int
6490 main ()
6491 {
6492
6493   ;
6494   return 0;
6495 }
6496 _ACEOF
6497 rm -f conftest.$ac_objext
6498 if { (ac_try="$ac_compile"
6499 case "(($ac_try" in
6500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501   *) ac_try_echo=$ac_try;;
6502 esac
6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504   (eval "$ac_compile") 2>conftest.er1
6505   ac_status=$?
6506   grep -v '^ *+' conftest.er1 >conftest.err
6507   rm -f conftest.er1
6508   cat conftest.err >&5
6509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510   (exit $ac_status); } && {
6511          test -z "$ac_c_werror_flag" ||
6512          test ! -s conftest.err
6513        } && test -s conftest.$ac_objext; then
6514   ac_cv_header_stdc=yes
6515 else
6516   echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6518
6519         ac_cv_header_stdc=no
6520 fi
6521
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523
6524 if test $ac_cv_header_stdc = yes; then
6525   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6526   cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h.  */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h.  */
6532 #include <string.h>
6533
6534 _ACEOF
6535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6536   $EGREP "memchr" >/dev/null 2>&1; then
6537   :
6538 else
6539   ac_cv_header_stdc=no
6540 fi
6541 rm -f conftest*
6542
6543 fi
6544
6545 if test $ac_cv_header_stdc = yes; then
6546   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6547   cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h.  */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h.  */
6553 #include <stdlib.h>
6554
6555 _ACEOF
6556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557   $EGREP "free" >/dev/null 2>&1; then
6558   :
6559 else
6560   ac_cv_header_stdc=no
6561 fi
6562 rm -f conftest*
6563
6564 fi
6565
6566 if test $ac_cv_header_stdc = yes; then
6567   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6568   if test "$cross_compiling" = yes; then
6569   :
6570 else
6571   cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h.  */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h.  */
6577 #include <ctype.h>
6578 #include <stdlib.h>
6579 #if ((' ' & 0x0FF) == 0x020)
6580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6582 #else
6583 # define ISLOWER(c) \
6584                    (('a' <= (c) && (c) <= 'i') \
6585                      || ('j' <= (c) && (c) <= 'r') \
6586                      || ('s' <= (c) && (c) <= 'z'))
6587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6588 #endif
6589
6590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6591 int
6592 main ()
6593 {
6594   int i;
6595   for (i = 0; i < 256; i++)
6596     if (XOR (islower (i), ISLOWER (i))
6597         || toupper (i) != TOUPPER (i))
6598       return 2;
6599   return 0;
6600 }
6601 _ACEOF
6602 rm -f conftest$ac_exeext
6603 if { (ac_try="$ac_link"
6604 case "(($ac_try" in
6605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606   *) ac_try_echo=$ac_try;;
6607 esac
6608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609   (eval "$ac_link") 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6613   { (case "(($ac_try" in
6614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615   *) ac_try_echo=$ac_try;;
6616 esac
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618   (eval "$ac_try") 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; }; then
6622   :
6623 else
6624   echo "$as_me: program exited with status $ac_status" >&5
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6627
6628 ( exit $ac_status )
6629 ac_cv_header_stdc=no
6630 fi
6631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6632 fi
6633
6634
6635 fi
6636 fi
6637 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6638 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6639 if test $ac_cv_header_stdc = yes; then
6640
6641 cat >>confdefs.h <<\_ACEOF
6642 #define STDC_HEADERS 1
6643 _ACEOF
6644
6645 fi
6646
6647 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6658                   inttypes.h stdint.h unistd.h
6659 do
6660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6664   echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6666   cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h.  */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h.  */
6672 $ac_includes_default
6673
6674 #include <$ac_header>
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (ac_try="$ac_compile"
6678 case "(($ac_try" in
6679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680   *) ac_try_echo=$ac_try;;
6681 esac
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683   (eval "$ac_compile") 2>conftest.er1
6684   ac_status=$?
6685   grep -v '^ *+' conftest.er1 >conftest.err
6686   rm -f conftest.er1
6687   cat conftest.err >&5
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); } && {
6690          test -z "$ac_c_werror_flag" ||
6691          test ! -s conftest.err
6692        } && test -s conftest.$ac_objext; then
6693   eval "$as_ac_Header=yes"
6694 else
6695   echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6697
6698         eval "$as_ac_Header=no"
6699 fi
6700
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702 fi
6703 ac_res=`eval echo '${'$as_ac_Header'}'`
6704                { echo "$as_me:$LINENO: result: $ac_res" >&5
6705 echo "${ECHO_T}$ac_res" >&6; }
6706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6707   cat >>confdefs.h <<_ACEOF
6708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6709 _ACEOF
6710
6711 fi
6712
6713 done
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825 for ac_header in \
6826         AudioUnit/AudioUnit.h \
6827         Carbon/Carbon.h \
6828         CoreAudio/CoreAudio.h \
6829         DiskArbitration/DiskArbitration.h \
6830         IOKit/IOKitLib.h \
6831         alsa/asoundlib.h \
6832         arpa/inet.h \
6833         arpa/nameser.h \
6834         asm/types.h \
6835         capi20.h \
6836         cups/cups.h \
6837         curses.h \
6838         direct.h \
6839         dlfcn.h \
6840         elf.h \
6841         float.h \
6842         fontconfig/fontconfig.h \
6843         getopt.h \
6844         ieeefp.h \
6845         io.h \
6846         jack/jack.h \
6847         jpeglib.h \
6848         lber.h \
6849         lcms.h \
6850         lcms/lcms.h \
6851         ldap.h \
6852         libaudioio.h \
6853         link.h \
6854         linux/cdrom.h \
6855         linux/compiler.h \
6856         linux/hdreg.h \
6857         linux/input.h \
6858         linux/ioctl.h \
6859         linux/joystick.h \
6860         linux/major.h \
6861         linux/param.h \
6862         linux/serial.h \
6863         linux/ucdrom.h \
6864         mach/mach.h \
6865         mach/machine.h \
6866         machine/cpu.h \
6867         machine/limits.h \
6868         machine/soundcard.h \
6869         mntent.h \
6870         ncurses.h \
6871         netdb.h \
6872         netinet/in.h \
6873         netinet/in_systm.h \
6874         netinet/tcp.h \
6875         netinet/tcp_fsm.h \
6876         openssl/err.h \
6877         openssl/ssl.h \
6878         poll.h \
6879         process.h \
6880         pthread.h \
6881         pwd.h \
6882         regex.h \
6883         sched.h \
6884         scsi/scsi.h \
6885         scsi/scsi_ioctl.h \
6886         scsi/sg.h \
6887         soundcard.h \
6888         stdint.h \
6889         strings.h \
6890         sys/asoundlib.h \
6891         sys/cdio.h \
6892         sys/elf32.h \
6893         sys/epoll.h \
6894         sys/errno.h \
6895         sys/event.h \
6896         sys/exec_elf.h \
6897         sys/filio.h \
6898         sys/ioctl.h \
6899         sys/ipc.h \
6900         sys/limits.h \
6901         sys/link.h \
6902         sys/lwp.h \
6903         sys/mman.h \
6904         sys/modem.h \
6905         sys/msg.h \
6906         sys/mtio.h \
6907         sys/param.h \
6908         sys/poll.h \
6909         sys/prctl.h \
6910         sys/ptrace.h \
6911         sys/reg.h \
6912         sys/resource.h \
6913         sys/scsiio.h \
6914         sys/shm.h \
6915         sys/signal.h \
6916         sys/socket.h \
6917         sys/sockio.h \
6918         sys/soundcard.h \
6919         sys/statvfs.h \
6920         sys/strtio.h \
6921         sys/syscall.h \
6922         sys/sysctl.h \
6923         sys/time.h \
6924         sys/times.h \
6925         sys/uio.h \
6926         sys/un.h \
6927         sys/vm86.h \
6928         sys/wait.h \
6929         syscall.h \
6930         termios.h \
6931         unicode/ubidi.h \
6932         unistd.h \
6933         utime.h \
6934         valgrind/memcheck.h
6935
6936 do
6937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6939   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 fi
6944 ac_res=`eval echo '${'$as_ac_Header'}'`
6945                { echo "$as_me:$LINENO: result: $ac_res" >&5
6946 echo "${ECHO_T}$ac_res" >&6; }
6947 else
6948   # Is the header compilable?
6949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6951 cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h.  */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h.  */
6957 $ac_includes_default
6958 #include <$ac_header>
6959 _ACEOF
6960 rm -f conftest.$ac_objext
6961 if { (ac_try="$ac_compile"
6962 case "(($ac_try" in
6963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964   *) ac_try_echo=$ac_try;;
6965 esac
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967   (eval "$ac_compile") 2>conftest.er1
6968   ac_status=$?
6969   grep -v '^ *+' conftest.er1 >conftest.err
6970   rm -f conftest.er1
6971   cat conftest.err >&5
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); } && {
6974          test -z "$ac_c_werror_flag" ||
6975          test ! -s conftest.err
6976        } && test -s conftest.$ac_objext; then
6977   ac_header_compiler=yes
6978 else
6979   echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982         ac_header_compiler=no
6983 fi
6984
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6987 echo "${ECHO_T}$ac_header_compiler" >&6; }
6988
6989 # Is the header present?
6990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h.  */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h.  */
6998 #include <$ac_header>
6999 _ACEOF
7000 if { (ac_try="$ac_cpp conftest.$ac_ext"
7001 case "(($ac_try" in
7002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003   *) ac_try_echo=$ac_try;;
7004 esac
7005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7007   ac_status=$?
7008   grep -v '^ *+' conftest.er1 >conftest.err
7009   rm -f conftest.er1
7010   cat conftest.err >&5
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } >/dev/null && {
7013          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7014          test ! -s conftest.err
7015        }; then
7016   ac_header_preproc=yes
7017 else
7018   echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7020
7021   ac_header_preproc=no
7022 fi
7023
7024 rm -f conftest.err conftest.$ac_ext
7025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7026 echo "${ECHO_T}$ac_header_preproc" >&6; }
7027
7028 # So?  What about this header?
7029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7030   yes:no: )
7031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7035     ac_header_preproc=yes
7036     ;;
7037   no:yes:* )
7038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7050     ( cat <<\_ASBOX
7051 ## ------------------------------------ ##
7052 ## Report this to wine-devel@winehq.org ##
7053 ## ------------------------------------ ##
7054 _ASBOX
7055      ) | sed "s/^/$as_me: WARNING:     /" >&2
7056     ;;
7057 esac
7058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   eval "$as_ac_Header=\$ac_header_preproc"
7064 fi
7065 ac_res=`eval echo '${'$as_ac_Header'}'`
7066                { echo "$as_me:$LINENO: result: $ac_res" >&5
7067 echo "${ECHO_T}$ac_res" >&6; }
7068
7069 fi
7070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7071   cat >>confdefs.h <<_ACEOF
7072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7073 _ACEOF
7074
7075 fi
7076
7077 done
7078
7079 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7080 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7081 if test "${ac_cv_header_stat_broken+set}" = set; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084   cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h.  */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h.  */
7090 #include <sys/types.h>
7091 #include <sys/stat.h>
7092
7093 #if defined S_ISBLK && defined S_IFDIR
7094 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7095 #endif
7096
7097 #if defined S_ISBLK && defined S_IFCHR
7098 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7099 #endif
7100
7101 #if defined S_ISLNK && defined S_IFREG
7102 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7103 #endif
7104
7105 #if defined S_ISSOCK && defined S_IFREG
7106 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7107 #endif
7108
7109 _ACEOF
7110 rm -f conftest.$ac_objext
7111 if { (ac_try="$ac_compile"
7112 case "(($ac_try" in
7113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7114   *) ac_try_echo=$ac_try;;
7115 esac
7116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7117   (eval "$ac_compile") 2>conftest.er1
7118   ac_status=$?
7119   grep -v '^ *+' conftest.er1 >conftest.err
7120   rm -f conftest.er1
7121   cat conftest.err >&5
7122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123   (exit $ac_status); } && {
7124          test -z "$ac_c_werror_flag" ||
7125          test ! -s conftest.err
7126        } && test -s conftest.$ac_objext; then
7127   ac_cv_header_stat_broken=no
7128 else
7129   echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132         ac_cv_header_stat_broken=yes
7133 fi
7134
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 fi
7137 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7138 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7139 if test $ac_cv_header_stat_broken = yes; then
7140
7141 cat >>confdefs.h <<\_ACEOF
7142 #define STAT_MACROS_BROKEN 1
7143 _ACEOF
7144
7145 fi
7146
7147
7148
7149
7150
7151
7152
7153 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7154 do
7155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7159   echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161   cat >conftest.$ac_ext <<_ACEOF
7162 /* confdefs.h.  */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h.  */
7167 #include <sys/types.h>
7168      #if HAVE_SYS_PARAM_H
7169      # include <sys/param.h>
7170      #endif
7171
7172 #include <$ac_header>
7173 _ACEOF
7174 rm -f conftest.$ac_objext
7175 if { (ac_try="$ac_compile"
7176 case "(($ac_try" in
7177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178   *) ac_try_echo=$ac_try;;
7179 esac
7180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7181   (eval "$ac_compile") 2>conftest.er1
7182   ac_status=$?
7183   grep -v '^ *+' conftest.er1 >conftest.err
7184   rm -f conftest.er1
7185   cat conftest.err >&5
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); } && {
7188          test -z "$ac_c_werror_flag" ||
7189          test ! -s conftest.err
7190        } && test -s conftest.$ac_objext; then
7191   eval "$as_ac_Header=yes"
7192 else
7193   echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7195
7196         eval "$as_ac_Header=no"
7197 fi
7198
7199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 fi
7201 ac_res=`eval echo '${'$as_ac_Header'}'`
7202                { echo "$as_me:$LINENO: result: $ac_res" >&5
7203 echo "${ECHO_T}$ac_res" >&6; }
7204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7205   cat >>confdefs.h <<_ACEOF
7206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7207 _ACEOF
7208
7209 fi
7210
7211 done
7212
7213
7214
7215
7216
7217
7218
7219
7220 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
7221 do
7222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h.  */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h.  */
7234 #include <sys/types.h>
7235      #if HAVE_SYS_SOCKET_H
7236      # include <sys/socket.h>
7237      #endif
7238
7239 #include <$ac_header>
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (ac_try="$ac_compile"
7243 case "(($ac_try" in
7244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245   *) ac_try_echo=$ac_try;;
7246 esac
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248   (eval "$ac_compile") 2>conftest.er1
7249   ac_status=$?
7250   grep -v '^ *+' conftest.er1 >conftest.err
7251   rm -f conftest.er1
7252   cat conftest.err >&5
7253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); } && {
7255          test -z "$ac_c_werror_flag" ||
7256          test ! -s conftest.err
7257        } && test -s conftest.$ac_objext; then
7258   eval "$as_ac_Header=yes"
7259 else
7260   echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263         eval "$as_ac_Header=no"
7264 fi
7265
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 fi
7268 ac_res=`eval echo '${'$as_ac_Header'}'`
7269                { echo "$as_me:$LINENO: result: $ac_res" >&5
7270 echo "${ECHO_T}$ac_res" >&6; }
7271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7272   cat >>confdefs.h <<_ACEOF
7273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7274 _ACEOF
7275
7276 fi
7277
7278 done
7279
7280
7281
7282 for ac_header in linux/ipx.h
7283 do
7284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7288   echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290   cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h.  */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h.  */
7296 #include <sys/types.h>
7297      #ifdef HAVE_ASM_TYPES_H
7298      # include <asm/types.h>
7299      #endif
7300      #if HAVE_SYS_SOCKET_H
7301      # include <sys/socket.h>
7302      #endif
7303
7304 #include <$ac_header>
7305 _ACEOF
7306 rm -f conftest.$ac_objext
7307 if { (ac_try="$ac_compile"
7308 case "(($ac_try" in
7309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310   *) ac_try_echo=$ac_try;;
7311 esac
7312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7313   (eval "$ac_compile") 2>conftest.er1
7314   ac_status=$?
7315   grep -v '^ *+' conftest.er1 >conftest.err
7316   rm -f conftest.er1
7317   cat conftest.err >&5
7318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); } && {
7320          test -z "$ac_c_werror_flag" ||
7321          test ! -s conftest.err
7322        } && test -s conftest.$ac_objext; then
7323   eval "$as_ac_Header=yes"
7324 else
7325   echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7327
7328         eval "$as_ac_Header=no"
7329 fi
7330
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 fi
7333 ac_res=`eval echo '${'$as_ac_Header'}'`
7334                { echo "$as_me:$LINENO: result: $ac_res" >&5
7335 echo "${ECHO_T}$ac_res" >&6; }
7336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7337   cat >>confdefs.h <<_ACEOF
7338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7339 _ACEOF
7340
7341 fi
7342
7343 done
7344
7345
7346
7347 for ac_header in resolv.h
7348 do
7349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   cat >conftest.$ac_ext <<_ACEOF
7356 /* confdefs.h.  */
7357 _ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h.  */
7361 #include <sys/types.h>
7362      #if HAVE_SYS_SOCKET_H
7363      # include <sys/socket.h>
7364      #endif
7365      #if HAVE_NETINET_IN_H
7366      # include <netinet/in.h>
7367      #endif
7368      #if HAVE_ARPA_NAMESER_H
7369      # include <arpa/nameser.h>
7370      #endif
7371
7372 #include <$ac_header>
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (ac_try="$ac_compile"
7376 case "(($ac_try" in
7377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378   *) ac_try_echo=$ac_try;;
7379 esac
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381   (eval "$ac_compile") 2>conftest.er1
7382   ac_status=$?
7383   grep -v '^ *+' conftest.er1 >conftest.err
7384   rm -f conftest.er1
7385   cat conftest.err >&5
7386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387   (exit $ac_status); } && {
7388          test -z "$ac_c_werror_flag" ||
7389          test ! -s conftest.err
7390        } && test -s conftest.$ac_objext; then
7391   eval "$as_ac_Header=yes"
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396         eval "$as_ac_Header=no"
7397 fi
7398
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400 fi
7401 ac_res=`eval echo '${'$as_ac_Header'}'`
7402                { echo "$as_me:$LINENO: result: $ac_res" >&5
7403 echo "${ECHO_T}$ac_res" >&6; }
7404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7405   cat >>confdefs.h <<_ACEOF
7406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7407 _ACEOF
7408
7409 fi
7410
7411 done
7412
7413
7414
7415 for ac_header in ucontext.h
7416 do
7417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h.  */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h.  */
7429 #include <signal.h>
7430
7431 #include <$ac_header>
7432 _ACEOF
7433 rm -f conftest.$ac_objext
7434 if { (ac_try="$ac_compile"
7435 case "(($ac_try" in
7436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437   *) ac_try_echo=$ac_try;;
7438 esac
7439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7440   (eval "$ac_compile") 2>conftest.er1
7441   ac_status=$?
7442   grep -v '^ *+' conftest.er1 >conftest.err
7443   rm -f conftest.er1
7444   cat conftest.err >&5
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } && {
7447          test -z "$ac_c_werror_flag" ||
7448          test ! -s conftest.err
7449        } && test -s conftest.$ac_objext; then
7450   eval "$as_ac_Header=yes"
7451 else
7452   echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7454
7455         eval "$as_ac_Header=no"
7456 fi
7457
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 fi
7460 ac_res=`eval echo '${'$as_ac_Header'}'`
7461                { echo "$as_me:$LINENO: result: $ac_res" >&5
7462 echo "${ECHO_T}$ac_res" >&6; }
7463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7464   cat >>confdefs.h <<_ACEOF
7465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7466 _ACEOF
7467
7468 fi
7469
7470 done
7471
7472
7473
7474 for ac_header in pthread_np.h
7475 do
7476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7480   echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482   cat >conftest.$ac_ext <<_ACEOF
7483 /* confdefs.h.  */
7484 _ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h.  */
7488 #ifdef HAVE_PTHREAD_H
7489 #include <pthread.h>
7490 #endif
7491
7492 #include <$ac_header>
7493 _ACEOF
7494 rm -f conftest.$ac_objext
7495 if { (ac_try="$ac_compile"
7496 case "(($ac_try" in
7497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498   *) ac_try_echo=$ac_try;;
7499 esac
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501   (eval "$ac_compile") 2>conftest.er1
7502   ac_status=$?
7503   grep -v '^ *+' conftest.er1 >conftest.err
7504   rm -f conftest.er1
7505   cat conftest.err >&5
7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); } && {
7508          test -z "$ac_c_werror_flag" ||
7509          test ! -s conftest.err
7510        } && test -s conftest.$ac_objext; then
7511   eval "$as_ac_Header=yes"
7512 else
7513   echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7515
7516         eval "$as_ac_Header=no"
7517 fi
7518
7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 fi
7521 ac_res=`eval echo '${'$as_ac_Header'}'`
7522                { echo "$as_me:$LINENO: result: $ac_res" >&5
7523 echo "${ECHO_T}$ac_res" >&6; }
7524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525   cat >>confdefs.h <<_ACEOF
7526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7527 _ACEOF
7528
7529 fi
7530
7531 done
7532
7533
7534
7535 for ac_header in linux/videodev.h
7536 do
7537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h.  */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h.  */
7549 #ifdef HAVE_SYS_TIME_H
7550 #include <sys/time.h>
7551 #endif
7552 #include <sys/types.h>
7553 #ifdef HAVE_ASM_TYPES_H
7554 #include <asm/types.h>
7555 #endif
7556
7557 #include <$ac_header>
7558 _ACEOF
7559 rm -f conftest.$ac_objext
7560 if { (ac_try="$ac_compile"
7561 case "(($ac_try" in
7562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563   *) ac_try_echo=$ac_try;;
7564 esac
7565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7566   (eval "$ac_compile") 2>conftest.er1
7567   ac_status=$?
7568   grep -v '^ *+' conftest.er1 >conftest.err
7569   rm -f conftest.er1
7570   cat conftest.err >&5
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); } && {
7573          test -z "$ac_c_werror_flag" ||
7574          test ! -s conftest.err
7575        } && test -s conftest.$ac_objext; then
7576   eval "$as_ac_Header=yes"
7577 else
7578   echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7580
7581         eval "$as_ac_Header=no"
7582 fi
7583
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 fi
7586 ac_res=`eval echo '${'$as_ac_Header'}'`
7587                { echo "$as_me:$LINENO: result: $ac_res" >&5
7588 echo "${ECHO_T}$ac_res" >&6; }
7589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7590   cat >>confdefs.h <<_ACEOF
7591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7592 _ACEOF
7593
7594 fi
7595
7596 done
7597
7598
7599
7600 for ac_header in linux/capi.h
7601 do
7602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7606   echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608   cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h.  */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h.  */
7614 #define __user
7615
7616 #include <$ac_header>
7617 _ACEOF
7618 rm -f conftest.$ac_objext
7619 if { (ac_try="$ac_compile"
7620 case "(($ac_try" in
7621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7622   *) ac_try_echo=$ac_try;;
7623 esac
7624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7625   (eval "$ac_compile") 2>conftest.er1
7626   ac_status=$?
7627   grep -v '^ *+' conftest.er1 >conftest.err
7628   rm -f conftest.er1
7629   cat conftest.err >&5
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); } && {
7632          test -z "$ac_c_werror_flag" ||
7633          test ! -s conftest.err
7634        } && test -s conftest.$ac_objext; then
7635   eval "$as_ac_Header=yes"
7636 else
7637   echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640         eval "$as_ac_Header=no"
7641 fi
7642
7643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 fi
7645 ac_res=`eval echo '${'$as_ac_Header'}'`
7646                { echo "$as_me:$LINENO: result: $ac_res" >&5
7647 echo "${ECHO_T}$ac_res" >&6; }
7648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7649   cat >>confdefs.h <<_ACEOF
7650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7651 _ACEOF
7652
7653 fi
7654
7655 done
7656
7657
7658
7659 if test "$have_x" = "yes"
7660 then
7661     XLIB="-lXext -lX11"
7662     ac_save_CPPFLAGS="$CPPFLAGS"
7663     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676 for ac_header in X11/Xlib.h \
7677                       X11/XKBlib.h \
7678                       X11/Xutil.h \
7679                       X11/Xcursor/Xcursor.h \
7680                       X11/extensions/shape.h \
7681                       X11/extensions/XInput.h \
7682                       X11/extensions/XShm.h \
7683                       X11/extensions/Xinerama.h \
7684                       X11/extensions/Xrandr.h \
7685                       X11/extensions/Xrender.h \
7686                       X11/extensions/xf86vmode.h
7687 do
7688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7692   echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694   cat >conftest.$ac_ext <<_ACEOF
7695 /* confdefs.h.  */
7696 _ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h.  */
7700 #ifdef HAVE_X11_XLIB_H
7701 # include <X11/Xlib.h>
7702 #endif
7703 #ifdef HAVE_X11_XUTIL_H
7704 # include <X11/Xutil.h>
7705 #endif
7706
7707 #include <$ac_header>
7708 _ACEOF
7709 rm -f conftest.$ac_objext
7710 if { (ac_try="$ac_compile"
7711 case "(($ac_try" in
7712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713   *) ac_try_echo=$ac_try;;
7714 esac
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716   (eval "$ac_compile") 2>conftest.er1
7717   ac_status=$?
7718   grep -v '^ *+' conftest.er1 >conftest.err
7719   rm -f conftest.er1
7720   cat conftest.err >&5
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); } && {
7723          test -z "$ac_c_werror_flag" ||
7724          test ! -s conftest.err
7725        } && test -s conftest.$ac_objext; then
7726   eval "$as_ac_Header=yes"
7727 else
7728   echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7730
7731         eval "$as_ac_Header=no"
7732 fi
7733
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7735 fi
7736 ac_res=`eval echo '${'$as_ac_Header'}'`
7737                { echo "$as_me:$LINENO: result: $ac_res" >&5
7738 echo "${ECHO_T}$ac_res" >&6; }
7739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7740   cat >>confdefs.h <<_ACEOF
7741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7742 _ACEOF
7743
7744 fi
7745
7746 done
7747
7748
7749                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7750         then
7751               { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7752 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
7753 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7754   echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756   ac_check_lib_save_LIBS=$LIBS
7757 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7758 cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h.  */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h.  */
7764
7765 /* Override any GCC internal prototype to avoid an error.
7766    Use char because int might match the return type of a GCC
7767    builtin and then its argument prototype would still apply.  */
7768 #ifdef __cplusplus
7769 extern "C"
7770 #endif
7771 char XkbQueryExtension ();
7772 int
7773 main ()
7774 {
7775 return XkbQueryExtension ();
7776   ;
7777   return 0;
7778 }
7779 _ACEOF
7780 rm -f conftest.$ac_objext conftest$ac_exeext
7781 if { (ac_try="$ac_link"
7782 case "(($ac_try" in
7783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784   *) ac_try_echo=$ac_try;;
7785 esac
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787   (eval "$ac_link") 2>conftest.er1
7788   ac_status=$?
7789   grep -v '^ *+' conftest.er1 >conftest.err
7790   rm -f conftest.er1
7791   cat conftest.err >&5
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); } && {
7794          test -z "$ac_c_werror_flag" ||
7795          test ! -s conftest.err
7796        } && test -s conftest$ac_exeext &&
7797        $as_test_x conftest$ac_exeext; then
7798   ac_cv_lib_X11_XkbQueryExtension=yes
7799 else
7800   echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7802
7803         ac_cv_lib_X11_XkbQueryExtension=no
7804 fi
7805
7806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7807       conftest$ac_exeext conftest.$ac_ext
7808 LIBS=$ac_check_lib_save_LIBS
7809 fi
7810 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7811 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
7812 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7813
7814 cat >>confdefs.h <<\_ACEOF
7815 #define HAVE_XKB 1
7816 _ACEOF
7817
7818 fi
7819
7820         fi
7821
7822                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7823         then
7824               { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7825 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
7826 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   ac_check_lib_save_LIBS=$LIBS
7830 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h.  */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h.  */
7837
7838 /* Override any GCC internal prototype to avoid an error.
7839    Use char because int might match the return type of a GCC
7840    builtin and then its argument prototype would still apply.  */
7841 #ifdef __cplusplus
7842 extern "C"
7843 #endif
7844 char XShmQueryExtension ();
7845 int
7846 main ()
7847 {
7848 return XShmQueryExtension ();
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (ac_try="$ac_link"
7855 case "(($ac_try" in
7856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857   *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860   (eval "$ac_link") 2>conftest.er1
7861   ac_status=$?
7862   grep -v '^ *+' conftest.er1 >conftest.err
7863   rm -f conftest.er1
7864   cat conftest.err >&5
7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); } && {
7867          test -z "$ac_c_werror_flag" ||
7868          test ! -s conftest.err
7869        } && test -s conftest$ac_exeext &&
7870        $as_test_x conftest$ac_exeext; then
7871   ac_cv_lib_Xext_XShmQueryExtension=yes
7872 else
7873   echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876         ac_cv_lib_Xext_XShmQueryExtension=no
7877 fi
7878
7879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7880       conftest$ac_exeext conftest.$ac_ext
7881 LIBS=$ac_check_lib_save_LIBS
7882 fi
7883 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7884 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
7885 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7886
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_LIBXXSHM 1
7889 _ACEOF
7890
7891 fi
7892
7893         fi
7894
7895                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7896         then
7897               { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7898 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
7899 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902   ac_check_lib_save_LIBS=$LIBS
7903 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h.  */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h.  */
7910
7911 /* Override any GCC internal prototype to avoid an error.
7912    Use char because int might match the return type of a GCC
7913    builtin and then its argument prototype would still apply.  */
7914 #ifdef __cplusplus
7915 extern "C"
7916 #endif
7917 char XShapeQueryExtension ();
7918 int
7919 main ()
7920 {
7921 return XShapeQueryExtension ();
7922   ;
7923   return 0;
7924 }
7925 _ACEOF
7926 rm -f conftest.$ac_objext conftest$ac_exeext
7927 if { (ac_try="$ac_link"
7928 case "(($ac_try" in
7929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930   *) ac_try_echo=$ac_try;;
7931 esac
7932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7933   (eval "$ac_link") 2>conftest.er1
7934   ac_status=$?
7935   grep -v '^ *+' conftest.er1 >conftest.err
7936   rm -f conftest.er1
7937   cat conftest.err >&5
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); } && {
7940          test -z "$ac_c_werror_flag" ||
7941          test ! -s conftest.err
7942        } && test -s conftest$ac_exeext &&
7943        $as_test_x conftest$ac_exeext; then
7944   ac_cv_lib_Xext_XShapeQueryExtension=yes
7945 else
7946   echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7948
7949         ac_cv_lib_Xext_XShapeQueryExtension=no
7950 fi
7951
7952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7953       conftest$ac_exeext conftest.$ac_ext
7954 LIBS=$ac_check_lib_save_LIBS
7955 fi
7956 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7957 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
7958 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7959
7960 cat >>confdefs.h <<\_ACEOF
7961 #define HAVE_LIBXSHAPE 1
7962 _ACEOF
7963
7964 fi
7965
7966         fi
7967
7968                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7969         then
7970                 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7971 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
7972 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7973   echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975   ac_check_lib_save_LIBS=$LIBS
7976 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h.  */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h.  */
7983
7984 /* Override any GCC internal prototype to avoid an error.
7985    Use char because int might match the return type of a GCC
7986    builtin and then its argument prototype would still apply.  */
7987 #ifdef __cplusplus
7988 extern "C"
7989 #endif
7990 char XF86VidModeQueryExtension ();
7991 int
7992 main ()
7993 {
7994 return XF86VidModeQueryExtension ();
7995   ;
7996   return 0;
7997 }
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (ac_try="$ac_link"
8001 case "(($ac_try" in
8002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003   *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006   (eval "$ac_link") 2>conftest.er1
8007   ac_status=$?
8008   grep -v '^ *+' conftest.er1 >conftest.err
8009   rm -f conftest.er1
8010   cat conftest.err >&5
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); } && {
8013          test -z "$ac_c_werror_flag" ||
8014          test ! -s conftest.err
8015        } && test -s conftest$ac_exeext &&
8016        $as_test_x conftest$ac_exeext; then
8017   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8018 else
8019   echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8021
8022         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8023 fi
8024
8025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8026       conftest$ac_exeext conftest.$ac_ext
8027 LIBS=$ac_check_lib_save_LIBS
8028 fi
8029 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8030 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
8031 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8032
8033 cat >>confdefs.h <<\_ACEOF
8034 #define HAVE_LIBXXF86VM 1
8035 _ACEOF
8036
8037                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8038
8039 fi
8040
8041         fi
8042
8043                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8044         then
8045                 cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h.  */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h.  */
8051 #include <X11/Xlib.h>
8052 #include <X11/extensions/Xrandr.h>
8053 int
8054 main ()
8055 {
8056 static typeof(XRRSetScreenConfigAndRate) * func;
8057   ;
8058   return 0;
8059 }
8060 _ACEOF
8061 rm -f conftest.$ac_objext
8062 if { (ac_try="$ac_compile"
8063 case "(($ac_try" in
8064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065   *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068   (eval "$ac_compile") 2>conftest.er1
8069   ac_status=$?
8070   grep -v '^ *+' conftest.er1 >conftest.err
8071   rm -f conftest.er1
8072   cat conftest.err >&5
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); } && {
8075          test -z "$ac_c_werror_flag" ||
8076          test ! -s conftest.err
8077        } && test -s conftest.$ac_objext; then
8078
8079 cat >>confdefs.h <<\_ACEOF
8080 #define HAVE_LIBXRANDR 1
8081 _ACEOF
8082
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091         fi
8092
8093                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8094         then
8095               { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8096 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
8097 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   ac_check_lib_save_LIBS=$LIBS
8101 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8102 cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h.  */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h.  */
8108
8109 /* Override any GCC internal prototype to avoid an error.
8110    Use char because int might match the return type of a GCC
8111    builtin and then its argument prototype would still apply.  */
8112 #ifdef __cplusplus
8113 extern "C"
8114 #endif
8115 char XRenderSetPictureTransform ();
8116 int
8117 main ()
8118 {
8119 return XRenderSetPictureTransform ();
8120   ;
8121   return 0;
8122 }
8123 _ACEOF
8124 rm -f conftest.$ac_objext conftest$ac_exeext
8125 if { (ac_try="$ac_link"
8126 case "(($ac_try" in
8127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128   *) ac_try_echo=$ac_try;;
8129 esac
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131   (eval "$ac_link") 2>conftest.er1
8132   ac_status=$?
8133   grep -v '^ *+' conftest.er1 >conftest.err
8134   rm -f conftest.er1
8135   cat conftest.err >&5
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); } && {
8138          test -z "$ac_c_werror_flag" ||
8139          test ! -s conftest.err
8140        } && test -s conftest$ac_exeext &&
8141        $as_test_x conftest$ac_exeext; then
8142   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8143 else
8144   echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8146
8147         ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8148 fi
8149
8150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8151       conftest$ac_exeext conftest.$ac_ext
8152 LIBS=$ac_check_lib_save_LIBS
8153 fi
8154 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8155 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8156 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8157
8158 cat >>confdefs.h <<\_ACEOF
8159 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8160 _ACEOF
8161
8162 fi
8163
8164         fi
8165
8166                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8167         then
8168                 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h.  */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h.  */
8174 #include <X11/Xlib.h>
8175 #include <X11/extensions/Xinerama.h>
8176 int
8177 main ()
8178 {
8179 static typeof(XineramaQueryScreens) * func;
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8186 case "(($ac_try" in
8187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188   *) ac_try_echo=$ac_try;;
8189 esac
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191   (eval "$ac_compile") 2>conftest.er1
8192   ac_status=$?
8193   grep -v '^ *+' conftest.er1 >conftest.err
8194   rm -f conftest.er1
8195   cat conftest.err >&5
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } && {
8198          test -z "$ac_c_werror_flag" ||
8199          test ! -s conftest.err
8200        } && test -s conftest.$ac_objext; then
8201
8202 cat >>confdefs.h <<\_ACEOF
8203 #define HAVE_LIBXINERAMA 1
8204 _ACEOF
8205
8206 else
8207   echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8209
8210
8211 fi
8212
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214         fi
8215
8216
8217         if test "x$with_opengl" != "xno"
8218     then
8219
8220
8221
8222
8223 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
8224 do
8225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8229   echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231   cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237 #ifdef HAVE_GL_GLX_H
8238 # include <GL/glx.h>
8239 #endif
8240
8241 #include <$ac_header>
8242 _ACEOF
8243 rm -f conftest.$ac_objext
8244 if { (ac_try="$ac_compile"
8245 case "(($ac_try" in
8246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247   *) ac_try_echo=$ac_try;;
8248 esac
8249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250   (eval "$ac_compile") 2>conftest.er1
8251   ac_status=$?
8252   grep -v '^ *+' conftest.er1 >conftest.err
8253   rm -f conftest.er1
8254   cat conftest.err >&5
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); } && {
8257          test -z "$ac_c_werror_flag" ||
8258          test ! -s conftest.err
8259        } && test -s conftest.$ac_objext; then
8260   eval "$as_ac_Header=yes"
8261 else
8262   echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8264
8265         eval "$as_ac_Header=no"
8266 fi
8267
8268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 fi
8270 ac_res=`eval echo '${'$as_ac_Header'}'`
8271                { echo "$as_me:$LINENO: result: $ac_res" >&5
8272 echo "${ECHO_T}$ac_res" >&6; }
8273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8274   cat >>confdefs.h <<_ACEOF
8275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8276 _ACEOF
8277
8278 fi
8279
8280 done
8281
8282         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8283         then
8284                     { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8285 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
8286 if test "${wine_cv_opengl_header_version_OK+set}" = set; then
8287   echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289   cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h.  */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h.  */
8295 #include <GL/gl.h>
8296 int
8297 main ()
8298 {
8299 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8300   ;
8301   return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest.$ac_objext
8305 if { (ac_try="$ac_compile"
8306 case "(($ac_try" in
8307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308   *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311   (eval "$ac_compile") 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } && {
8318          test -z "$ac_c_werror_flag" ||
8319          test ! -s conftest.err
8320        } && test -s conftest.$ac_objext; then
8321   wine_cv_opengl_header_version_OK="yes"
8322 else
8323   echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326         wine_cv_opengl_header_version_OK="no"
8327
8328 fi
8329
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331
8332 fi
8333 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
8334 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
8335
8336             if test "$wine_cv_opengl_header_version_OK" = "yes"
8337             then
8338                                 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8339 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
8340 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8341   echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343   ac_check_lib_save_LIBS=$LIBS
8344 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8345 cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h.  */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h.  */
8351
8352 /* Override any GCC internal prototype to avoid an error.
8353    Use char because int might match the return type of a GCC
8354    builtin and then its argument prototype would still apply.  */
8355 #ifdef __cplusplus
8356 extern "C"
8357 #endif
8358 char glXCreateContext ();
8359 int
8360 main ()
8361 {
8362 return glXCreateContext ();
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (ac_try="$ac_link"
8369 case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374   (eval "$ac_link") 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } && {
8381          test -z "$ac_c_werror_flag" ||
8382          test ! -s conftest.err
8383        } && test -s conftest$ac_exeext &&
8384        $as_test_x conftest$ac_exeext; then
8385   ac_cv_lib_GL_glXCreateContext=yes
8386 else
8387   echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390         ac_cv_lib_GL_glXCreateContext=no
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8394       conftest$ac_exeext conftest.$ac_ext
8395 LIBS=$ac_check_lib_save_LIBS
8396 fi
8397 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8398 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
8399 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8400   OPENGL_LIBS="-lGL"
8401                              OPENGLFILES='$(OPENGLFILES)'
8402
8403 cat >>confdefs.h <<\_ACEOF
8404 #define HAVE_OPENGL 1
8405 _ACEOF
8406
8407
8408 fi
8409
8410
8411                                 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8412 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
8413 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8414   echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416   ac_check_lib_save_LIBS=$LIBS
8417 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8418                  $LIBS"
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425
8426 /* Override any GCC internal prototype to avoid an error.
8427    Use char because int might match the return type of a GCC
8428    builtin and then its argument prototype would still apply.  */
8429 #ifdef __cplusplus
8430 extern "C"
8431 #endif
8432 char gluLookAt ();
8433 int
8434 main ()
8435 {
8436 return gluLookAt ();
8437   ;
8438   return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (ac_try="$ac_link"
8443 case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_link") 2>conftest.er1
8449   ac_status=$?
8450   grep -v '^ *+' conftest.er1 >conftest.err
8451   rm -f conftest.er1
8452   cat conftest.err >&5
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); } && {
8455          test -z "$ac_c_werror_flag" ||
8456          test ! -s conftest.err
8457        } && test -s conftest$ac_exeext &&
8458        $as_test_x conftest$ac_exeext; then
8459   ac_cv_lib_GLU_gluLookAt=yes
8460 else
8461   echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464         ac_cv_lib_GLU_gluLookAt=no
8465 fi
8466
8467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8468       conftest$ac_exeext conftest.$ac_ext
8469 LIBS=$ac_check_lib_save_LIBS
8470 fi
8471 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8472 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
8473 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8474   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8475                              GLU32FILES='$(GLU32FILES)'
8476
8477 fi
8478
8479              fi
8480          else
8481              wine_cv_opengl_headers_found="no"
8482          fi
8483     fi
8484         NASLIBS=""
8485
8486
8487 for ac_header in audio/audiolib.h
8488 do
8489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8491   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 fi
8496 ac_res=`eval echo '${'$as_ac_Header'}'`
8497                { echo "$as_me:$LINENO: result: $ac_res" >&5
8498 echo "${ECHO_T}$ac_res" >&6; }
8499 else
8500   # Is the header compilable?
8501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8503 cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h.  */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h.  */
8509 $ac_includes_default
8510 #include <$ac_header>
8511 _ACEOF
8512 rm -f conftest.$ac_objext
8513 if { (ac_try="$ac_compile"
8514 case "(($ac_try" in
8515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516   *) ac_try_echo=$ac_try;;
8517 esac
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519   (eval "$ac_compile") 2>conftest.er1
8520   ac_status=$?
8521   grep -v '^ *+' conftest.er1 >conftest.err
8522   rm -f conftest.er1
8523   cat conftest.err >&5
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); } && {
8526          test -z "$ac_c_werror_flag" ||
8527          test ! -s conftest.err
8528        } && test -s conftest.$ac_objext; then
8529   ac_header_compiler=yes
8530 else
8531   echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534         ac_header_compiler=no
8535 fi
8536
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8539 echo "${ECHO_T}$ac_header_compiler" >&6; }
8540
8541 # Is the header present?
8542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8544 cat >conftest.$ac_ext <<_ACEOF
8545 /* confdefs.h.  */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h.  */
8550 #include <$ac_header>
8551 _ACEOF
8552 if { (ac_try="$ac_cpp conftest.$ac_ext"
8553 case "(($ac_try" in
8554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555   *) ac_try_echo=$ac_try;;
8556 esac
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8559   ac_status=$?
8560   grep -v '^ *+' conftest.er1 >conftest.err
8561   rm -f conftest.er1
8562   cat conftest.err >&5
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); } >/dev/null && {
8565          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8566          test ! -s conftest.err
8567        }; then
8568   ac_header_preproc=yes
8569 else
8570   echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573   ac_header_preproc=no
8574 fi
8575
8576 rm -f conftest.err conftest.$ac_ext
8577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8578 echo "${ECHO_T}$ac_header_preproc" >&6; }
8579
8580 # So?  What about this header?
8581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8582   yes:no: )
8583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8587     ac_header_preproc=yes
8588     ;;
8589   no:yes:* )
8590     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8592     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8593 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8594     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8596     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8597 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8600     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8602     ( cat <<\_ASBOX
8603 ## ------------------------------------ ##
8604 ## Report this to wine-devel@winehq.org ##
8605 ## ------------------------------------ ##
8606 _ASBOX
8607      ) | sed "s/^/$as_me: WARNING:     /" >&2
8608     ;;
8609 esac
8610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8613   echo $ECHO_N "(cached) $ECHO_C" >&6
8614 else
8615   eval "$as_ac_Header=\$ac_header_preproc"
8616 fi
8617 ac_res=`eval echo '${'$as_ac_Header'}'`
8618                { echo "$as_me:$LINENO: result: $ac_res" >&5
8619 echo "${ECHO_T}$ac_res" >&6; }
8620
8621 fi
8622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8623   cat >>confdefs.h <<_ACEOF
8624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8625 _ACEOF
8626
8627 for ac_header in audio/soundlib.h
8628 do
8629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8633   echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635   cat >conftest.$ac_ext <<_ACEOF
8636 /* confdefs.h.  */
8637 _ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h.  */
8641 #include <audio/audiolib.h>
8642
8643 #include <$ac_header>
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8647 case "(($ac_try" in
8648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649   *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652   (eval "$ac_compile") 2>conftest.er1
8653   ac_status=$?
8654   grep -v '^ *+' conftest.er1 >conftest.err
8655   rm -f conftest.er1
8656   cat conftest.err >&5
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } && {
8659          test -z "$ac_c_werror_flag" ||
8660          test ! -s conftest.err
8661        } && test -s conftest.$ac_objext; then
8662   eval "$as_ac_Header=yes"
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667         eval "$as_ac_Header=no"
8668 fi
8669
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 fi
8672 ac_res=`eval echo '${'$as_ac_Header'}'`
8673                { echo "$as_me:$LINENO: result: $ac_res" >&5
8674 echo "${ECHO_T}$ac_res" >&6; }
8675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8676   cat >>confdefs.h <<_ACEOF
8677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8678 _ACEOF
8679
8680 fi
8681
8682 done
8683
8684           { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8685 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
8686 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689   ac_check_lib_save_LIBS=$LIBS
8690 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8691 cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h.  */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h.  */
8697
8698 /* Override any GCC internal prototype to avoid an error.
8699    Use char because int might match the return type of a GCC
8700    builtin and then its argument prototype would still apply.  */
8701 #ifdef __cplusplus
8702 extern "C"
8703 #endif
8704 char AuCreateFlow ();
8705 int
8706 main ()
8707 {
8708 return AuCreateFlow ();
8709   ;
8710   return 0;
8711 }
8712 _ACEOF
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (ac_try="$ac_link"
8715 case "(($ac_try" in
8716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717   *) ac_try_echo=$ac_try;;
8718 esac
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720   (eval "$ac_link") 2>conftest.er1
8721   ac_status=$?
8722   grep -v '^ *+' conftest.er1 >conftest.err
8723   rm -f conftest.er1
8724   cat conftest.err >&5
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); } && {
8727          test -z "$ac_c_werror_flag" ||
8728          test ! -s conftest.err
8729        } && test -s conftest$ac_exeext &&
8730        $as_test_x conftest$ac_exeext; then
8731   ac_cv_lib_audio_AuCreateFlow=yes
8732 else
8733   echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736         ac_cv_lib_audio_AuCreateFlow=no
8737 fi
8738
8739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8740       conftest$ac_exeext conftest.$ac_ext
8741 LIBS=$ac_check_lib_save_LIBS
8742 fi
8743 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8744 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
8745 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8746
8747 cat >>confdefs.h <<\_ACEOF
8748 #define HAVE_NAS 1
8749 _ACEOF
8750
8751                         { echo "$as_me:$LINENO: checking for XauGetBestAuthByAddr in -lXau" >&5
8752 echo $ECHO_N "checking for XauGetBestAuthByAddr in -lXau... $ECHO_C" >&6; }
8753 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then
8754   echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756   ac_check_lib_save_LIBS=$LIBS
8757 LIBS="-lXau $X_LIBS $LIBS"
8758 cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h.  */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h.  */
8764
8765 /* Override any GCC internal prototype to avoid an error.
8766    Use char because int might match the return type of a GCC
8767    builtin and then its argument prototype would still apply.  */
8768 #ifdef __cplusplus
8769 extern "C"
8770 #endif
8771 char XauGetBestAuthByAddr ();
8772 int
8773 main ()
8774 {
8775 return XauGetBestAuthByAddr ();
8776   ;
8777   return 0;
8778 }
8779 _ACEOF
8780 rm -f conftest.$ac_objext conftest$ac_exeext
8781 if { (ac_try="$ac_link"
8782 case "(($ac_try" in
8783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784   *) ac_try_echo=$ac_try;;
8785 esac
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787   (eval "$ac_link") 2>conftest.er1
8788   ac_status=$?
8789   grep -v '^ *+' conftest.er1 >conftest.err
8790   rm -f conftest.er1
8791   cat conftest.err >&5
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); } && {
8794          test -z "$ac_c_werror_flag" ||
8795          test ! -s conftest.err
8796        } && test -s conftest$ac_exeext &&
8797        $as_test_x conftest$ac_exeext; then
8798   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8799 else
8800   echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8802
8803         ac_cv_lib_Xau_XauGetBestAuthByAddr=no
8804 fi
8805
8806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8807       conftest$ac_exeext conftest.$ac_ext
8808 LIBS=$ac_check_lib_save_LIBS
8809 fi
8810 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
8811 echo "${ECHO_T}$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
8812 if test $ac_cv_lib_Xau_XauGetBestAuthByAddr = yes; then
8813   NASLIBS="-lXau -laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8814 else
8815   NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8816 fi
8817
8818
8819 fi
8820
8821 fi
8822
8823 done
8824
8825
8826     CPPFLAGS="$ac_save_CPPFLAGS"
8827     XFILES='$(XFILES)'
8828 else
8829     XLIB=""
8830     X_CFLAGS=""
8831     X_LIBS=""
8832 fi
8833
8834
8835 XML2LIBS=""
8836
8837 XML2INCL=""
8838
8839 XSLTLIBS=""
8840
8841 XSLTINCL=""
8842
8843 if test "$PKG_CONFIG" != "false"
8844 then
8845     ac_save_CPPFLAGS="$CPPFLAGS"
8846     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8847     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8848     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8849
8850 for ac_header in libxml/parser.h
8851 do
8852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8854   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8857   echo $ECHO_N "(cached) $ECHO_C" >&6
8858 fi
8859 ac_res=`eval echo '${'$as_ac_Header'}'`
8860                { echo "$as_me:$LINENO: result: $ac_res" >&5
8861 echo "${ECHO_T}$ac_res" >&6; }
8862 else
8863   # Is the header compilable?
8864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8866 cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h.  */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h.  */
8872 $ac_includes_default
8873 #include <$ac_header>
8874 _ACEOF
8875 rm -f conftest.$ac_objext
8876 if { (ac_try="$ac_compile"
8877 case "(($ac_try" in
8878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879   *) ac_try_echo=$ac_try;;
8880 esac
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882   (eval "$ac_compile") 2>conftest.er1
8883   ac_status=$?
8884   grep -v '^ *+' conftest.er1 >conftest.err
8885   rm -f conftest.er1
8886   cat conftest.err >&5
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); } && {
8889          test -z "$ac_c_werror_flag" ||
8890          test ! -s conftest.err
8891        } && test -s conftest.$ac_objext; then
8892   ac_header_compiler=yes
8893 else
8894   echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897         ac_header_compiler=no
8898 fi
8899
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8902 echo "${ECHO_T}$ac_header_compiler" >&6; }
8903
8904 # Is the header present?
8905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h.  */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h.  */
8913 #include <$ac_header>
8914 _ACEOF
8915 if { (ac_try="$ac_cpp conftest.$ac_ext"
8916 case "(($ac_try" in
8917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918   *) ac_try_echo=$ac_try;;
8919 esac
8920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8922   ac_status=$?
8923   grep -v '^ *+' conftest.er1 >conftest.err
8924   rm -f conftest.er1
8925   cat conftest.err >&5
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); } >/dev/null && {
8928          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8929          test ! -s conftest.err
8930        }; then
8931   ac_header_preproc=yes
8932 else
8933   echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8935
8936   ac_header_preproc=no
8937 fi
8938
8939 rm -f conftest.err conftest.$ac_ext
8940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8941 echo "${ECHO_T}$ac_header_preproc" >&6; }
8942
8943 # So?  What about this header?
8944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8945   yes:no: )
8946     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8950     ac_header_preproc=yes
8951     ;;
8952   no:yes:* )
8953     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8955     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8956 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8957     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8959     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8960 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8963     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8965     ( cat <<\_ASBOX
8966 ## ------------------------------------ ##
8967 ## Report this to wine-devel@winehq.org ##
8968 ## ------------------------------------ ##
8969 _ASBOX
8970      ) | sed "s/^/$as_me: WARNING:     /" >&2
8971     ;;
8972 esac
8973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8976   echo $ECHO_N "(cached) $ECHO_C" >&6
8977 else
8978   eval "$as_ac_Header=\$ac_header_preproc"
8979 fi
8980 ac_res=`eval echo '${'$as_ac_Header'}'`
8981                { echo "$as_me:$LINENO: result: $ac_res" >&5
8982 echo "${ECHO_T}$ac_res" >&6; }
8983
8984 fi
8985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8986   cat >>confdefs.h <<_ACEOF
8987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8988 _ACEOF
8989  { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
8990 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
8991 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
8992   echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994   ac_check_lib_save_LIBS=$LIBS
8995 LIBS="-lxml2 $ac_xml_libs $LIBS"
8996 cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h.  */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h.  */
9002
9003 /* Override any GCC internal prototype to avoid an error.
9004    Use char because int might match the return type of a GCC
9005    builtin and then its argument prototype would still apply.  */
9006 #ifdef __cplusplus
9007 extern "C"
9008 #endif
9009 char xmlParseMemory ();
9010 int
9011 main ()
9012 {
9013 return xmlParseMemory ();
9014   ;
9015   return 0;
9016 }
9017 _ACEOF
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (ac_try="$ac_link"
9020 case "(($ac_try" in
9021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022   *) ac_try_echo=$ac_try;;
9023 esac
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025   (eval "$ac_link") 2>conftest.er1
9026   ac_status=$?
9027   grep -v '^ *+' conftest.er1 >conftest.err
9028   rm -f conftest.er1
9029   cat conftest.err >&5
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); } && {
9032          test -z "$ac_c_werror_flag" ||
9033          test ! -s conftest.err
9034        } && test -s conftest$ac_exeext &&
9035        $as_test_x conftest$ac_exeext; then
9036   ac_cv_lib_xml2_xmlParseMemory=yes
9037 else
9038   echo "$as_me: failed program was:" >&5
9039 sed 's/^/| /' conftest.$ac_ext >&5
9040
9041         ac_cv_lib_xml2_xmlParseMemory=no
9042 fi
9043
9044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9045       conftest$ac_exeext conftest.$ac_ext
9046 LIBS=$ac_check_lib_save_LIBS
9047 fi
9048 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9049 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9050 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
9051
9052 cat >>confdefs.h <<\_ACEOF
9053 #define HAVE_LIBXML2 1
9054 _ACEOF
9055
9056              XML2LIBS="$ac_xml_libs"
9057              XML2INCL="$ac_xml_cflags"
9058 fi
9059
9060          { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
9061 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
9062 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
9063   echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065   ac_check_lib_save_LIBS=$LIBS
9066 LIBS="-lxml2 $ac_xml_libs $LIBS"
9067 cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h.  */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h.  */
9073
9074 /* Override any GCC internal prototype to avoid an error.
9075    Use char because int might match the return type of a GCC
9076    builtin and then its argument prototype would still apply.  */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 char xmlReadMemory ();
9081 int
9082 main ()
9083 {
9084 return xmlReadMemory ();
9085   ;
9086   return 0;
9087 }
9088 _ACEOF
9089 rm -f conftest.$ac_objext conftest$ac_exeext
9090 if { (ac_try="$ac_link"
9091 case "(($ac_try" in
9092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093   *) ac_try_echo=$ac_try;;
9094 esac
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096   (eval "$ac_link") 2>conftest.er1
9097   ac_status=$?
9098   grep -v '^ *+' conftest.er1 >conftest.err
9099   rm -f conftest.er1
9100   cat conftest.err >&5
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); } && {
9103          test -z "$ac_c_werror_flag" ||
9104          test ! -s conftest.err
9105        } && test -s conftest$ac_exeext &&
9106        $as_test_x conftest$ac_exeext; then
9107   ac_cv_lib_xml2_xmlReadMemory=yes
9108 else
9109   echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9111
9112         ac_cv_lib_xml2_xmlReadMemory=no
9113 fi
9114
9115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9116       conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9118 fi
9119 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9120 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9121 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
9122
9123 cat >>confdefs.h <<\_ACEOF
9124 #define HAVE_XMLREADMEMORY 1
9125 _ACEOF
9126
9127 fi
9128
9129          { echo "$as_me:$LINENO: checking for xmlNewDocPI in -lxml2" >&5
9130 echo $ECHO_N "checking for xmlNewDocPI in -lxml2... $ECHO_C" >&6; }
9131 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then
9132   echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134   ac_check_lib_save_LIBS=$LIBS
9135 LIBS="-lxml2 $ac_xml_libs $LIBS"
9136 cat >conftest.$ac_ext <<_ACEOF
9137 /* confdefs.h.  */
9138 _ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h.  */
9142
9143 /* Override any GCC internal prototype to avoid an error.
9144    Use char because int might match the return type of a GCC
9145    builtin and then its argument prototype would still apply.  */
9146 #ifdef __cplusplus
9147 extern "C"
9148 #endif
9149 char xmlNewDocPI ();
9150 int
9151 main ()
9152 {
9153 return xmlNewDocPI ();
9154   ;
9155   return 0;
9156 }
9157 _ACEOF
9158 rm -f conftest.$ac_objext conftest$ac_exeext
9159 if { (ac_try="$ac_link"
9160 case "(($ac_try" in
9161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162   *) ac_try_echo=$ac_try;;
9163 esac
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165   (eval "$ac_link") 2>conftest.er1
9166   ac_status=$?
9167   grep -v '^ *+' conftest.er1 >conftest.err
9168   rm -f conftest.er1
9169   cat conftest.err >&5
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); } && {
9172          test -z "$ac_c_werror_flag" ||
9173          test ! -s conftest.err
9174        } && test -s conftest$ac_exeext &&
9175        $as_test_x conftest$ac_exeext; then
9176   ac_cv_lib_xml2_xmlNewDocPI=yes
9177 else
9178   echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181         ac_cv_lib_xml2_xmlNewDocPI=no
9182 fi
9183
9184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9185       conftest$ac_exeext conftest.$ac_ext
9186 LIBS=$ac_check_lib_save_LIBS
9187 fi
9188 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9189 echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9190 if test $ac_cv_lib_xml2_xmlNewDocPI = yes; then
9191
9192 cat >>confdefs.h <<\_ACEOF
9193 #define HAVE_XMLNEWDOCPI 1
9194 _ACEOF
9195
9196 fi
9197
9198
9199 fi
9200
9201 done
9202
9203     CPPFLAGS="$ac_save_CPPFLAGS"
9204     ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9205     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9206     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9207
9208
9209 for ac_header in libxslt/pattern.h libxslt/transform.h
9210 do
9211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h.  */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h.  */
9223 #ifdef HAVE_LIBXSLT_PATTERN_H
9224 # include <libxslt/pattern.h>
9225 #endif
9226
9227 #include <$ac_header>
9228 _ACEOF
9229 rm -f conftest.$ac_objext
9230 if { (ac_try="$ac_compile"
9231 case "(($ac_try" in
9232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233   *) ac_try_echo=$ac_try;;
9234 esac
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236   (eval "$ac_compile") 2>conftest.er1
9237   ac_status=$?
9238   grep -v '^ *+' conftest.er1 >conftest.err
9239   rm -f conftest.er1
9240   cat conftest.err >&5
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } && {
9243          test -z "$ac_c_werror_flag" ||
9244          test ! -s conftest.err
9245        } && test -s conftest.$ac_objext; then
9246   eval "$as_ac_Header=yes"
9247 else
9248   echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251         eval "$as_ac_Header=no"
9252 fi
9253
9254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255 fi
9256 ac_res=`eval echo '${'$as_ac_Header'}'`
9257                { echo "$as_me:$LINENO: result: $ac_res" >&5
9258 echo "${ECHO_T}$ac_res" >&6; }
9259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9260   cat >>confdefs.h <<_ACEOF
9261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9262 _ACEOF
9263  { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
9264 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
9265 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
9266   echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268   ac_check_lib_save_LIBS=$LIBS
9269 LIBS="-lxslt $ac_xslt_libs $LIBS"
9270 cat >conftest.$ac_ext <<_ACEOF
9271 /* confdefs.h.  */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h.  */
9276
9277 /* Override any GCC internal prototype to avoid an error.
9278    Use char because int might match the return type of a GCC
9279    builtin and then its argument prototype would still apply.  */
9280 #ifdef __cplusplus
9281 extern "C"
9282 #endif
9283 char xsltCompilePattern ();
9284 int
9285 main ()
9286 {
9287 return xsltCompilePattern ();
9288   ;
9289   return 0;
9290 }
9291 _ACEOF
9292 rm -f conftest.$ac_objext conftest$ac_exeext
9293 if { (ac_try="$ac_link"
9294 case "(($ac_try" in
9295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296   *) ac_try_echo=$ac_try;;
9297 esac
9298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299   (eval "$ac_link") 2>conftest.er1
9300   ac_status=$?
9301   grep -v '^ *+' conftest.er1 >conftest.err
9302   rm -f conftest.er1
9303   cat conftest.err >&5
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); } && {
9306          test -z "$ac_c_werror_flag" ||
9307          test ! -s conftest.err
9308        } && test -s conftest$ac_exeext &&
9309        $as_test_x conftest$ac_exeext; then
9310   ac_cv_lib_xslt_xsltCompilePattern=yes
9311 else
9312   echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9314
9315         ac_cv_lib_xslt_xsltCompilePattern=no
9316 fi
9317
9318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9319       conftest$ac_exeext conftest.$ac_ext
9320 LIBS=$ac_check_lib_save_LIBS
9321 fi
9322 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
9323 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
9324 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
9325
9326 cat >>confdefs.h <<\_ACEOF
9327 #define HAVE_LIBXSLT 1
9328 _ACEOF
9329
9330              XSLTLIBS="$ac_xslt_libs"
9331              XSLTINCL="$ac_xslt_cflags"
9332 fi
9333
9334
9335 fi
9336
9337 done
9338
9339     CPPFLAGS="$ac_save_CPPFLAGS"
9340 fi
9341
9342 HALINCL=""
9343
9344 if test "$PKG_CONFIG" != "false"
9345 then
9346     ac_save_CPPFLAGS="$CPPFLAGS"
9347     ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9348     ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9349     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9350
9351
9352 for ac_header in dbus/dbus.h hal/libhal.h
9353 do
9354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9356   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9359   echo $ECHO_N "(cached) $ECHO_C" >&6
9360 fi
9361 ac_res=`eval echo '${'$as_ac_Header'}'`
9362                { echo "$as_me:$LINENO: result: $ac_res" >&5
9363 echo "${ECHO_T}$ac_res" >&6; }
9364 else
9365   # Is the header compilable?
9366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9368 cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h.  */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h.  */
9374 $ac_includes_default
9375 #include <$ac_header>
9376 _ACEOF
9377 rm -f conftest.$ac_objext
9378 if { (ac_try="$ac_compile"
9379 case "(($ac_try" in
9380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381   *) ac_try_echo=$ac_try;;
9382 esac
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384   (eval "$ac_compile") 2>conftest.er1
9385   ac_status=$?
9386   grep -v '^ *+' conftest.er1 >conftest.err
9387   rm -f conftest.er1
9388   cat conftest.err >&5
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); } && {
9391          test -z "$ac_c_werror_flag" ||
9392          test ! -s conftest.err
9393        } && test -s conftest.$ac_objext; then
9394   ac_header_compiler=yes
9395 else
9396   echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399         ac_header_compiler=no
9400 fi
9401
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9404 echo "${ECHO_T}$ac_header_compiler" >&6; }
9405
9406 # Is the header present?
9407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
9416 _ACEOF
9417 if { (ac_try="$ac_cpp conftest.$ac_ext"
9418 case "(($ac_try" in
9419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420   *) ac_try_echo=$ac_try;;
9421 esac
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9424   ac_status=$?
9425   grep -v '^ *+' conftest.er1 >conftest.err
9426   rm -f conftest.er1
9427   cat conftest.err >&5
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); } >/dev/null && {
9430          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9431          test ! -s conftest.err
9432        }; then
9433   ac_header_preproc=yes
9434 else
9435   echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9437
9438   ac_header_preproc=no
9439 fi
9440
9441 rm -f conftest.err conftest.$ac_ext
9442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9443 echo "${ECHO_T}$ac_header_preproc" >&6; }
9444
9445 # So?  What about this header?
9446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9447   yes:no: )
9448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9452     ac_header_preproc=yes
9453     ;;
9454   no:yes:* )
9455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9467     ( cat <<\_ASBOX
9468 ## ------------------------------------ ##
9469 ## Report this to wine-devel@winehq.org ##
9470 ## ------------------------------------ ##
9471 _ASBOX
9472      ) | sed "s/^/$as_me: WARNING:     /" >&2
9473     ;;
9474 esac
9475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9478   echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480   eval "$as_ac_Header=\$ac_header_preproc"
9481 fi
9482 ac_res=`eval echo '${'$as_ac_Header'}'`
9483                { echo "$as_me:$LINENO: result: $ac_res" >&5
9484 echo "${ECHO_T}$ac_res" >&6; }
9485
9486 fi
9487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9488   cat >>confdefs.h <<_ACEOF
9489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9490 _ACEOF
9491
9492 fi
9493
9494 done
9495
9496     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9497     then
9498         { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
9499 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
9500 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
9501   echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503   ac_check_lib_save_LIBS=$LIBS
9504 LIBS="-lhal  $LIBS"
9505 cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h.  */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h.  */
9511
9512 /* Override any GCC internal prototype to avoid an error.
9513    Use char because int might match the return type of a GCC
9514    builtin and then its argument prototype would still apply.  */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 char libhal_ctx_new ();
9519 int
9520 main ()
9521 {
9522 return libhal_ctx_new ();
9523   ;
9524   return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (ac_try="$ac_link"
9529 case "(($ac_try" in
9530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531   *) ac_try_echo=$ac_try;;
9532 esac
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534   (eval "$ac_link") 2>conftest.er1
9535   ac_status=$?
9536   grep -v '^ *+' conftest.er1 >conftest.err
9537   rm -f conftest.er1
9538   cat conftest.err >&5
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); } && {
9541          test -z "$ac_c_werror_flag" ||
9542          test ! -s conftest.err
9543        } && test -s conftest$ac_exeext &&
9544        $as_test_x conftest$ac_exeext; then
9545   ac_cv_lib_hal_libhal_ctx_new=yes
9546 else
9547   echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550         ac_cv_lib_hal_libhal_ctx_new=no
9551 fi
9552
9553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9554       conftest$ac_exeext conftest.$ac_ext
9555 LIBS=$ac_check_lib_save_LIBS
9556 fi
9557 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
9558 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
9559 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
9560   { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
9561 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
9562 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
9563   echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565   ac_check_lib_save_LIBS=$LIBS
9566 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h.  */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h.  */
9573
9574 /* Override any GCC internal prototype to avoid an error.
9575    Use char because int might match the return type of a GCC
9576    builtin and then its argument prototype would still apply.  */
9577 #ifdef __cplusplus
9578 extern "C"
9579 #endif
9580 char dbus_connection_close ();
9581 int
9582 main ()
9583 {
9584 return dbus_connection_close ();
9585   ;
9586   return 0;
9587 }
9588 _ACEOF
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (ac_try="$ac_link"
9591 case "(($ac_try" in
9592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593   *) ac_try_echo=$ac_try;;
9594 esac
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596   (eval "$ac_link") 2>conftest.er1
9597   ac_status=$?
9598   grep -v '^ *+' conftest.er1 >conftest.err
9599   rm -f conftest.er1
9600   cat conftest.err >&5
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); } && {
9603          test -z "$ac_c_werror_flag" ||
9604          test ! -s conftest.err
9605        } && test -s conftest$ac_exeext &&
9606        $as_test_x conftest$ac_exeext; then
9607   ac_cv_lib_dbus_1_dbus_connection_close=yes
9608 else
9609   echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9611
9612         ac_cv_lib_dbus_1_dbus_connection_close=no
9613 fi
9614
9615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9616       conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9618 fi
9619 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9620 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9621 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
9622
9623 cat >>confdefs.h <<\_ACEOF
9624 #define HAVE_LIBHAL 1
9625 _ACEOF
9626
9627              HALINCL="$ac_hal_cflags"
9628 fi
9629
9630 fi
9631
9632     fi
9633     CPPFLAGS="$ac_save_CPPFLAGS"
9634 fi
9635
9636 CURSESLIBS=""
9637 if test "$ac_cv_header_ncurses_h" = "yes"
9638 then
9639     { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9640 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
9641 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9642   echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644   ac_check_lib_save_LIBS=$LIBS
9645 LIBS="-lncurses  $LIBS"
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h.  */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h.  */
9652
9653 /* Override any GCC internal prototype to avoid an error.
9654    Use char because int might match the return type of a GCC
9655    builtin and then its argument prototype would still apply.  */
9656 #ifdef __cplusplus
9657 extern "C"
9658 #endif
9659 char waddch ();
9660 int
9661 main ()
9662 {
9663 return waddch ();
9664   ;
9665   return 0;
9666 }
9667 _ACEOF
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (ac_try="$ac_link"
9670 case "(($ac_try" in
9671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672   *) ac_try_echo=$ac_try;;
9673 esac
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675   (eval "$ac_link") 2>conftest.er1
9676   ac_status=$?
9677   grep -v '^ *+' conftest.er1 >conftest.err
9678   rm -f conftest.er1
9679   cat conftest.err >&5
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); } && {
9682          test -z "$ac_c_werror_flag" ||
9683          test ! -s conftest.err
9684        } && test -s conftest$ac_exeext &&
9685        $as_test_x conftest$ac_exeext; then
9686   ac_cv_lib_ncurses_waddch=yes
9687 else
9688   echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9690
9691         ac_cv_lib_ncurses_waddch=no
9692 fi
9693
9694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9695       conftest$ac_exeext conftest.$ac_ext
9696 LIBS=$ac_check_lib_save_LIBS
9697 fi
9698 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9699 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
9700 if test $ac_cv_lib_ncurses_waddch = yes; then
9701   CURSESLIBS="-lncurses"
9702 fi
9703
9704 elif test "$ac_cv_header_curses_h" = "yes"
9705 then
9706     { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9707 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
9708 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9709   echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711   ac_check_lib_save_LIBS=$LIBS
9712 LIBS="-lcurses  $LIBS"
9713 cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h.  */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h.  */
9719
9720 /* Override any GCC internal prototype to avoid an error.
9721    Use char because int might match the return type of a GCC
9722    builtin and then its argument prototype would still apply.  */
9723 #ifdef __cplusplus
9724 extern "C"
9725 #endif
9726 char waddch ();
9727 int
9728 main ()
9729 {
9730 return waddch ();
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9737 case "(($ac_try" in
9738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739   *) ac_try_echo=$ac_try;;
9740 esac
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742   (eval "$ac_link") 2>conftest.er1
9743   ac_status=$?
9744   grep -v '^ *+' conftest.er1 >conftest.err
9745   rm -f conftest.er1
9746   cat conftest.err >&5
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } && {
9749          test -z "$ac_c_werror_flag" ||
9750          test ! -s conftest.err
9751        } && test -s conftest$ac_exeext &&
9752        $as_test_x conftest$ac_exeext; then
9753   ac_cv_lib_curses_waddch=yes
9754 else
9755   echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758         ac_cv_lib_curses_waddch=no
9759 fi
9760
9761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9762       conftest$ac_exeext conftest.$ac_ext
9763 LIBS=$ac_check_lib_save_LIBS
9764 fi
9765 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9766 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
9767 if test $ac_cv_lib_curses_waddch = yes; then
9768   CURSESLIBS="-lcurses"
9769 fi
9770
9771 fi
9772 ac_save_LIBS="$LIBS"
9773 LIBS="$LIBS $CURSESLIBS"
9774
9775 for ac_func in mousemask
9776 do
9777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783   cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h.  */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h.  */
9789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9791 #define $ac_func innocuous_$ac_func
9792
9793 /* System header to define __stub macros and hopefully few prototypes,
9794     which can conflict with char $ac_func (); below.
9795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9796     <limits.h> exists even on freestanding compilers.  */
9797
9798 #ifdef __STDC__
9799 # include <limits.h>
9800 #else
9801 # include <assert.h>
9802 #endif
9803
9804 #undef $ac_func
9805
9806 /* Override any GCC internal prototype to avoid an error.
9807    Use char because int might match the return type of a GCC
9808    builtin and then its argument prototype would still apply.  */
9809 #ifdef __cplusplus
9810 extern "C"
9811 #endif
9812 char $ac_func ();
9813 /* The GNU C library defines this for functions which it implements
9814     to always fail with ENOSYS.  Some functions are actually named
9815     something starting with __ and the normal name is an alias.  */
9816 #if defined __stub_$ac_func || defined __stub___$ac_func
9817 choke me
9818 #endif
9819
9820 int
9821 main ()
9822 {
9823 return $ac_func ();
9824   ;
9825   return 0;
9826 }
9827 _ACEOF
9828 rm -f conftest.$ac_objext conftest$ac_exeext
9829 if { (ac_try="$ac_link"
9830 case "(($ac_try" in
9831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832   *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835   (eval "$ac_link") 2>conftest.er1
9836   ac_status=$?
9837   grep -v '^ *+' conftest.er1 >conftest.err
9838   rm -f conftest.er1
9839   cat conftest.err >&5
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); } && {
9842          test -z "$ac_c_werror_flag" ||
9843          test ! -s conftest.err
9844        } && test -s conftest$ac_exeext &&
9845        $as_test_x conftest$ac_exeext; then
9846   eval "$as_ac_var=yes"
9847 else
9848   echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851         eval "$as_ac_var=no"
9852 fi
9853
9854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9855       conftest$ac_exeext conftest.$ac_ext
9856 fi
9857 ac_res=`eval echo '${'$as_ac_var'}'`
9858                { echo "$as_me:$LINENO: result: $ac_res" >&5
9859 echo "${ECHO_T}$ac_res" >&6; }
9860 if test `eval echo '${'$as_ac_var'}'` = yes; then
9861   cat >>confdefs.h <<_ACEOF
9862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9863 _ACEOF
9864
9865 fi
9866 done
9867
9868 LIBS="$ac_save_LIBS"
9869
9870 # Extract the first word of "sane-config", so it can be a program name with args.
9871 set dummy sane-config; ac_word=$2
9872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9874 if test "${ac_cv_prog_sane_devel+set}" = set; then
9875   echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877   if test -n "$sane_devel"; then
9878   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9879 else
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 for as_dir in $PATH
9882 do
9883   IFS=$as_save_IFS
9884   test -z "$as_dir" && as_dir=.
9885   for ac_exec_ext in '' $ac_executable_extensions; do
9886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9887     ac_cv_prog_sane_devel="sane-config"
9888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9889     break 2
9890   fi
9891 done
9892 done
9893 IFS=$as_save_IFS
9894
9895   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9896 fi
9897 fi
9898 sane_devel=$ac_cv_prog_sane_devel
9899 if test -n "$sane_devel"; then
9900   { echo "$as_me:$LINENO: result: $sane_devel" >&5
9901 echo "${ECHO_T}$sane_devel" >&6; }
9902 else
9903   { echo "$as_me:$LINENO: result: no" >&5
9904 echo "${ECHO_T}no" >&6; }
9905 fi
9906
9907
9908 SANEINCL=""
9909
9910 if test "$sane_devel" != "no"
9911 then
9912     SANEINCL="`$sane_devel --cflags`"
9913     ac_save_CPPFLAGS="$CPPFLAGS"
9914     CPPFLAGS="$CPPFLAGS $SANEINCL"
9915     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9916   { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9917 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
9918 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9919   echo $ECHO_N "(cached) $ECHO_C" >&6
9920 fi
9921 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9922 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
9923 else
9924   # Is the header compilable?
9925 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9926 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933 $ac_includes_default
9934 #include <sane/sane.h>
9935 _ACEOF
9936 rm -f conftest.$ac_objext
9937 if { (ac_try="$ac_compile"
9938 case "(($ac_try" in
9939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940   *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943   (eval "$ac_compile") 2>conftest.er1
9944   ac_status=$?
9945   grep -v '^ *+' conftest.er1 >conftest.err
9946   rm -f conftest.er1
9947   cat conftest.err >&5
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } && {
9950          test -z "$ac_c_werror_flag" ||
9951          test ! -s conftest.err
9952        } && test -s conftest.$ac_objext; then
9953   ac_header_compiler=yes
9954 else
9955   echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.$ac_ext >&5
9957
9958         ac_header_compiler=no
9959 fi
9960
9961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9963 echo "${ECHO_T}$ac_header_compiler" >&6; }
9964
9965 # Is the header present?
9966 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9967 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
9968 cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h.  */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h.  */
9974 #include <sane/sane.h>
9975 _ACEOF
9976 if { (ac_try="$ac_cpp conftest.$ac_ext"
9977 case "(($ac_try" in
9978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979   *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9983   ac_status=$?
9984   grep -v '^ *+' conftest.er1 >conftest.err
9985   rm -f conftest.er1
9986   cat conftest.err >&5
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); } >/dev/null && {
9989          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9990          test ! -s conftest.err
9991        }; then
9992   ac_header_preproc=yes
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997   ac_header_preproc=no
9998 fi
9999
10000 rm -f conftest.err conftest.$ac_ext
10001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10002 echo "${ECHO_T}$ac_header_preproc" >&6; }
10003
10004 # So?  What about this header?
10005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10006   yes:no: )
10007     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10008 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10009     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10010 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10011     ac_header_preproc=yes
10012     ;;
10013   no:yes:* )
10014     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10015 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10016     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
10017 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
10018     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10019 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10020     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
10021 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10022     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10023 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10024     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10025 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10026     ( cat <<\_ASBOX
10027 ## ------------------------------------ ##
10028 ## Report this to wine-devel@winehq.org ##
10029 ## ------------------------------------ ##
10030 _ASBOX
10031      ) | sed "s/^/$as_me: WARNING:     /" >&2
10032     ;;
10033 esac
10034 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10035 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
10036 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   ac_cv_header_sane_sane_h=$ac_header_preproc
10040 fi
10041 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10042 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
10043
10044 fi
10045 if test $ac_cv_header_sane_sane_h = yes; then
10046
10047 cat >>confdefs.h <<\_ACEOF
10048 #define HAVE_SANE 1
10049 _ACEOF
10050
10051 else
10052   SANEINCL=""
10053 fi
10054
10055
10056     CPPFLAGS="$ac_save_CPPFLAGS"
10057 fi
10058
10059 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10060 set dummy gphoto2-config; ac_word=$2
10061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10063 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
10064   echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066   if test -n "$gphoto2_devel"; then
10067   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10068 else
10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070 for as_dir in $PATH
10071 do
10072   IFS=$as_save_IFS
10073   test -z "$as_dir" && as_dir=.
10074   for ac_exec_ext in '' $ac_executable_extensions; do
10075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10076     ac_cv_prog_gphoto2_devel="gphoto2-config"
10077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10078     break 2
10079   fi
10080 done
10081 done
10082 IFS=$as_save_IFS
10083
10084   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10085 fi
10086 fi
10087 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10088 if test -n "$gphoto2_devel"; then
10089   { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
10090 echo "${ECHO_T}$gphoto2_devel" >&6; }
10091 else
10092   { echo "$as_me:$LINENO: result: no" >&5
10093 echo "${ECHO_T}no" >&6; }
10094 fi
10095
10096
10097 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10098 set dummy gphoto2-port-config; ac_word=$2
10099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10101 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
10102   echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104   if test -n "$gphoto2port_devel"; then
10105   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10106 else
10107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108 for as_dir in $PATH
10109 do
10110   IFS=$as_save_IFS
10111   test -z "$as_dir" && as_dir=.
10112   for ac_exec_ext in '' $ac_executable_extensions; do
10113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10114     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10116     break 2
10117   fi
10118 done
10119 done
10120 IFS=$as_save_IFS
10121
10122   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10123 fi
10124 fi
10125 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10126 if test -n "$gphoto2port_devel"; then
10127   { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
10128 echo "${ECHO_T}$gphoto2port_devel" >&6; }
10129 else
10130   { echo "$as_me:$LINENO: result: no" >&5
10131 echo "${ECHO_T}no" >&6; }
10132 fi
10133
10134
10135 GPHOTO2LIBS=""
10136
10137 GPHOTO2INCL=""
10138
10139 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10140 then
10141     GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10142     GPHOTO2LIBS=""
10143     for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10144     do
10145       case "$i" in
10146         -L/usr/lib|-L/usr/lib64) ;;
10147         -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
10148       esac
10149     done
10150     ac_save_CPPFLAGS="$CPPFLAGS"
10151     ac_save_LIBS="$LIBS"
10152     CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
10153     LIBS="$LIBS $GPHOTO2LIBS"
10154     if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10155   { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10156 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10157 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10158   echo $ECHO_N "(cached) $ECHO_C" >&6
10159 fi
10160 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10161 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10162 else
10163   # Is the header compilable?
10164 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
10165 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
10166 cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h.  */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h.  */
10172 $ac_includes_default
10173 #include <gphoto2-camera.h>
10174 _ACEOF
10175 rm -f conftest.$ac_objext
10176 if { (ac_try="$ac_compile"
10177 case "(($ac_try" in
10178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179   *) ac_try_echo=$ac_try;;
10180 esac
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182   (eval "$ac_compile") 2>conftest.er1
10183   ac_status=$?
10184   grep -v '^ *+' conftest.er1 >conftest.err
10185   rm -f conftest.er1
10186   cat conftest.err >&5
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); } && {
10189          test -z "$ac_c_werror_flag" ||
10190          test ! -s conftest.err
10191        } && test -s conftest.$ac_objext; then
10192   ac_header_compiler=yes
10193 else
10194   echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197         ac_header_compiler=no
10198 fi
10199
10200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10202 echo "${ECHO_T}$ac_header_compiler" >&6; }
10203
10204 # Is the header present?
10205 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
10206 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
10207 cat >conftest.$ac_ext <<_ACEOF
10208 /* confdefs.h.  */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h.  */
10213 #include <gphoto2-camera.h>
10214 _ACEOF
10215 if { (ac_try="$ac_cpp conftest.$ac_ext"
10216 case "(($ac_try" in
10217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218   *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10222   ac_status=$?
10223   grep -v '^ *+' conftest.er1 >conftest.err
10224   rm -f conftest.er1
10225   cat conftest.err >&5
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); } >/dev/null && {
10228          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10229          test ! -s conftest.err
10230        }; then
10231   ac_header_preproc=yes
10232 else
10233   echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10235
10236   ac_header_preproc=no
10237 fi
10238
10239 rm -f conftest.err conftest.$ac_ext
10240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10241 echo "${ECHO_T}$ac_header_preproc" >&6; }
10242
10243 # So?  What about this header?
10244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10245   yes:no: )
10246     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
10247 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10248     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
10249 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
10250     ac_header_preproc=yes
10251     ;;
10252   no:yes:* )
10253     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
10254 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
10255     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&5
10256 echo "$as_me: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&2;}
10257     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
10258 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
10259     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&5
10260 echo "$as_me: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10261     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
10262 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
10263     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
10264 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
10265     ( cat <<\_ASBOX
10266 ## ------------------------------------ ##
10267 ## Report this to wine-devel@winehq.org ##
10268 ## ------------------------------------ ##
10269 _ASBOX
10270      ) | sed "s/^/$as_me: WARNING:     /" >&2
10271     ;;
10272 esac
10273 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
10274 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
10275 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
10276   echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278   ac_cv_header_gphoto2_camera_h=$ac_header_preproc
10279 fi
10280 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
10281 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
10282
10283 fi
10284 if test $ac_cv_header_gphoto2_camera_h = yes; then
10285   { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
10286 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
10287 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
10288   echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290   ac_check_lib_save_LIBS=$LIBS
10291 LIBS="-lgphoto2  $LIBS"
10292 cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h.  */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h.  */
10298
10299 /* Override any GCC internal prototype to avoid an error.
10300    Use char because int might match the return type of a GCC
10301    builtin and then its argument prototype would still apply.  */
10302 #ifdef __cplusplus
10303 extern "C"
10304 #endif
10305 char gp_camera_new ();
10306 int
10307 main ()
10308 {
10309 return gp_camera_new ();
10310   ;
10311   return 0;
10312 }
10313 _ACEOF
10314 rm -f conftest.$ac_objext conftest$ac_exeext
10315 if { (ac_try="$ac_link"
10316 case "(($ac_try" in
10317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318   *) ac_try_echo=$ac_try;;
10319 esac
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321   (eval "$ac_link") 2>conftest.er1
10322   ac_status=$?
10323   grep -v '^ *+' conftest.er1 >conftest.err
10324   rm -f conftest.er1
10325   cat conftest.err >&5
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); } && {
10328          test -z "$ac_c_werror_flag" ||
10329          test ! -s conftest.err
10330        } && test -s conftest$ac_exeext &&
10331        $as_test_x conftest$ac_exeext; then
10332   ac_cv_lib_gphoto2_gp_camera_new=yes
10333 else
10334   echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10336
10337         ac_cv_lib_gphoto2_gp_camera_new=no
10338 fi
10339
10340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10341       conftest$ac_exeext conftest.$ac_ext
10342 LIBS=$ac_check_lib_save_LIBS
10343 fi
10344 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10345 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10346 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
10347
10348 cat >>confdefs.h <<\_ACEOF
10349 #define HAVE_GPHOTO2 1
10350 _ACEOF
10351
10352 else
10353   GPHOTO2LIBS=""
10354                                   GPHOTO2INCL=""
10355 fi
10356
10357 else
10358   GPHOTO2LIBS=""
10359                     GPHOTO2INCL=""
10360 fi
10361
10362
10363     LIBS="$ac_save_LIBS"
10364     CPPFLAGS="$ac_save_CPPFLAGS"
10365 fi
10366
10367 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10368 then
10369     saved_libs="$LIBS"
10370     for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
10371     do
10372         TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
10373         TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
10374         { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
10375 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
10376         LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
10377         cat >conftest.$ac_ext <<_ACEOF
10378 /* confdefs.h.  */
10379 _ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h.  */
10383 #include <unicode/ubidi.h>
10384 int
10385 main ()
10386 {
10387 ubidi_open()
10388   ;
10389   return 0;
10390 }
10391 _ACEOF
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (ac_try="$ac_link"
10394 case "(($ac_try" in
10395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396   *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399   (eval "$ac_link") 2>conftest.er1
10400   ac_status=$?
10401   grep -v '^ *+' conftest.er1 >conftest.err
10402   rm -f conftest.er1
10403   cat conftest.err >&5
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); } && {
10406          test -z "$ac_c_werror_flag" ||
10407          test ! -s conftest.err
10408        } && test -s conftest$ac_exeext &&
10409        $as_test_x conftest$ac_exeext; then
10410
10411 cat >>confdefs.h <<\_ACEOF
10412 #define HAVE_ICU 1
10413 _ACEOF
10414
10415                      ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
10416
10417                      { echo "$as_me:$LINENO: result: yes" >&5
10418 echo "${ECHO_T}yes" >&6; }
10419 else
10420   echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10422
10423         { echo "$as_me:$LINENO: result: no" >&5
10424 echo "${ECHO_T}no" >&6; }
10425 fi
10426
10427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10428       conftest$ac_exeext conftest.$ac_ext
10429     done
10430     LIBS="$saved_libs"
10431 fi
10432
10433 RESOLVLIBS=""
10434
10435 if test "$ac_cv_header_resolv_h" = "yes"
10436 then
10437     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
10438 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
10439 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
10440   echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442   ac_check_lib_save_LIBS=$LIBS
10443 LIBS="-lresolv  $LIBS"
10444 cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450
10451 /* Override any GCC internal prototype to avoid an error.
10452    Use char because int might match the return type of a GCC
10453    builtin and then its argument prototype would still apply.  */
10454 #ifdef __cplusplus
10455 extern "C"
10456 #endif
10457 char res_query ();
10458 int
10459 main ()
10460 {
10461 return res_query ();
10462   ;
10463   return 0;
10464 }
10465 _ACEOF
10466 rm -f conftest.$ac_objext conftest$ac_exeext
10467 if { (ac_try="$ac_link"
10468 case "(($ac_try" in
10469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470   *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473   (eval "$ac_link") 2>conftest.er1
10474   ac_status=$?
10475   grep -v '^ *+' conftest.er1 >conftest.err
10476   rm -f conftest.er1
10477   cat conftest.err >&5
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); } && {
10480          test -z "$ac_c_werror_flag" ||
10481          test ! -s conftest.err
10482        } && test -s conftest$ac_exeext &&
10483        $as_test_x conftest$ac_exeext; then
10484   ac_cv_lib_resolv_res_query=yes
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489         ac_cv_lib_resolv_res_query=no
10490 fi
10491
10492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493       conftest$ac_exeext conftest.$ac_ext
10494 LIBS=$ac_check_lib_save_LIBS
10495 fi
10496 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
10497 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
10498 if test $ac_cv_lib_resolv_res_query = yes; then
10499
10500 cat >>confdefs.h <<\_ACEOF
10501 #define HAVE_RESOLV 1
10502 _ACEOF
10503
10504          RESOLVLIBS="-lresolv"
10505 fi
10506
10507 fi
10508
10509 LCMSLIBS=""
10510
10511 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10512 then
10513     { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
10514 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
10515 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
10516   echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518   ac_check_lib_save_LIBS=$LIBS
10519 LIBS="-llcms  $LIBS"
10520 cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h.  */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h.  */
10526
10527 /* Override any GCC internal prototype to avoid an error.
10528    Use char because int might match the return type of a GCC
10529    builtin and then its argument prototype would still apply.  */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 char cmsOpenProfileFromFile ();
10534 int
10535 main ()
10536 {
10537 return cmsOpenProfileFromFile ();
10538   ;
10539   return 0;
10540 }
10541 _ACEOF
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (ac_try="$ac_link"
10544 case "(($ac_try" in
10545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546   *) ac_try_echo=$ac_try;;
10547 esac
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549   (eval "$ac_link") 2>conftest.er1
10550   ac_status=$?
10551   grep -v '^ *+' conftest.er1 >conftest.err
10552   rm -f conftest.er1
10553   cat conftest.err >&5
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } && {
10556          test -z "$ac_c_werror_flag" ||
10557          test ! -s conftest.err
10558        } && test -s conftest$ac_exeext &&
10559        $as_test_x conftest$ac_exeext; then
10560   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10561 else
10562   echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565         ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10566 fi
10567
10568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10569       conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10571 fi
10572 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10573 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10574 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
10575
10576 cat >>confdefs.h <<\_ACEOF
10577 #define HAVE_LCMS 1
10578 _ACEOF
10579
10580          LCMSLIBS="-llcms"
10581 fi
10582
10583 fi
10584
10585 LDAPLIBS=""
10586
10587 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
10588 then
10589     { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
10590 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
10591 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
10592   echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594   ac_check_lib_save_LIBS=$LIBS
10595 LIBS="-lldap_r $LIBPTHREAD $LIBS"
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602
10603 /* Override any GCC internal prototype to avoid an error.
10604    Use char because int might match the return type of a GCC
10605    builtin and then its argument prototype would still apply.  */
10606 #ifdef __cplusplus
10607 extern "C"
10608 #endif
10609 char ldap_initialize ();
10610 int
10611 main ()
10612 {
10613 return ldap_initialize ();
10614   ;
10615   return 0;
10616 }
10617 _ACEOF
10618 rm -f conftest.$ac_objext conftest$ac_exeext
10619 if { (ac_try="$ac_link"
10620 case "(($ac_try" in
10621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622   *) ac_try_echo=$ac_try;;
10623 esac
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625   (eval "$ac_link") 2>conftest.er1
10626   ac_status=$?
10627   grep -v '^ *+' conftest.er1 >conftest.err
10628   rm -f conftest.er1
10629   cat conftest.err >&5
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); } && {
10632          test -z "$ac_c_werror_flag" ||
10633          test ! -s conftest.err
10634        } && test -s conftest$ac_exeext &&
10635        $as_test_x conftest$ac_exeext; then
10636   ac_cv_lib_ldap_r_ldap_initialize=yes
10637 else
10638   echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10640
10641         ac_cv_lib_ldap_r_ldap_initialize=no
10642 fi
10643
10644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10645       conftest$ac_exeext conftest.$ac_ext
10646 LIBS=$ac_check_lib_save_LIBS
10647 fi
10648 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
10649 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
10650 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
10651   { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
10652 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
10653 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   ac_check_lib_save_LIBS=$LIBS
10657 LIBS="-llber $LIBPTHREAD $LIBS"
10658 cat >conftest.$ac_ext <<_ACEOF
10659 /* confdefs.h.  */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h.  */
10664
10665 /* Override any GCC internal prototype to avoid an error.
10666    Use char because int might match the return type of a GCC
10667    builtin and then its argument prototype would still apply.  */
10668 #ifdef __cplusplus
10669 extern "C"
10670 #endif
10671 char ber_init ();
10672 int
10673 main ()
10674 {
10675 return ber_init ();
10676   ;
10677   return 0;
10678 }
10679 _ACEOF
10680 rm -f conftest.$ac_objext conftest$ac_exeext
10681 if { (ac_try="$ac_link"
10682 case "(($ac_try" in
10683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684   *) ac_try_echo=$ac_try;;
10685 esac
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687   (eval "$ac_link") 2>conftest.er1
10688   ac_status=$?
10689   grep -v '^ *+' conftest.er1 >conftest.err
10690   rm -f conftest.er1
10691   cat conftest.err >&5
10692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693   (exit $ac_status); } && {
10694          test -z "$ac_c_werror_flag" ||
10695          test ! -s conftest.err
10696        } && test -s conftest$ac_exeext &&
10697        $as_test_x conftest$ac_exeext; then
10698   ac_cv_lib_lber_ber_init=yes
10699 else
10700   echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10702
10703         ac_cv_lib_lber_ber_init=no
10704 fi
10705
10706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10707       conftest$ac_exeext conftest.$ac_ext
10708 LIBS=$ac_check_lib_save_LIBS
10709 fi
10710 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
10711 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
10712 if test $ac_cv_lib_lber_ber_init = yes; then
10713
10714 cat >>confdefs.h <<\_ACEOF
10715 #define HAVE_LDAP 1
10716 _ACEOF
10717
10718              LDAPLIBS="-lldap_r -llber"
10719 fi
10720
10721 fi
10722
10723     ac_wine_check_funcs_save_LIBS="$LIBS"
10724 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
10725
10726
10727
10728
10729 for ac_func in \
10730         ldap_count_references \
10731         ldap_first_reference \
10732         ldap_next_reference \
10733         ldap_parse_reference
10734 do
10735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10739   echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741   cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h.  */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h.  */
10747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10749 #define $ac_func innocuous_$ac_func
10750
10751 /* System header to define __stub macros and hopefully few prototypes,
10752     which can conflict with char $ac_func (); below.
10753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10754     <limits.h> exists even on freestanding compilers.  */
10755
10756 #ifdef __STDC__
10757 # include <limits.h>
10758 #else
10759 # include <assert.h>
10760 #endif
10761
10762 #undef $ac_func
10763
10764 /* Override any GCC internal prototype to avoid an error.
10765    Use char because int might match the return type of a GCC
10766    builtin and then its argument prototype would still apply.  */
10767 #ifdef __cplusplus
10768 extern "C"
10769 #endif
10770 char $ac_func ();
10771 /* The GNU C library defines this for functions which it implements
10772     to always fail with ENOSYS.  Some functions are actually named
10773     something starting with __ and the normal name is an alias.  */
10774 #if defined __stub_$ac_func || defined __stub___$ac_func
10775 choke me
10776 #endif
10777
10778 int
10779 main ()
10780 {
10781 return $ac_func ();
10782   ;
10783   return 0;
10784 }
10785 _ACEOF
10786 rm -f conftest.$ac_objext conftest$ac_exeext
10787 if { (ac_try="$ac_link"
10788 case "(($ac_try" in
10789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790   *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793   (eval "$ac_link") 2>conftest.er1
10794   ac_status=$?
10795   grep -v '^ *+' conftest.er1 >conftest.err
10796   rm -f conftest.er1
10797   cat conftest.err >&5
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); } && {
10800          test -z "$ac_c_werror_flag" ||
10801          test ! -s conftest.err
10802        } && test -s conftest$ac_exeext &&
10803        $as_test_x conftest$ac_exeext; then
10804   eval "$as_ac_var=yes"
10805 else
10806   echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10808
10809         eval "$as_ac_var=no"
10810 fi
10811
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813       conftest$ac_exeext conftest.$ac_ext
10814 fi
10815 ac_res=`eval echo '${'$as_ac_var'}'`
10816                { echo "$as_me:$LINENO: result: $ac_res" >&5
10817 echo "${ECHO_T}$ac_res" >&6; }
10818 if test `eval echo '${'$as_ac_var'}'` = yes; then
10819   cat >>confdefs.h <<_ACEOF
10820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10821 _ACEOF
10822
10823 fi
10824 done
10825
10826 LIBS="$ac_wine_check_funcs_save_LIBS"
10827 fi
10828
10829 FREETYPELIBS=""
10830
10831 FREETYPEINCL=""
10832
10833 # Extract the first word of "freetype-config", so it can be a program name with args.
10834 set dummy freetype-config; ac_word=$2
10835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10837 if test "${ac_cv_prog_ft_devel+set}" = set; then
10838   echo $ECHO_N "(cached) $ECHO_C" >&6
10839 else
10840   if test -n "$ft_devel"; then
10841   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10842 else
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10845 do
10846   IFS=$as_save_IFS
10847   test -z "$as_dir" && as_dir=.
10848   for ac_exec_ext in '' $ac_executable_extensions; do
10849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10850     ac_cv_prog_ft_devel="freetype-config"
10851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10852     break 2
10853   fi
10854 done
10855 done
10856 IFS=$as_save_IFS
10857
10858   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10859 fi
10860 fi
10861 ft_devel=$ac_cv_prog_ft_devel
10862 if test -n "$ft_devel"; then
10863   { echo "$as_me:$LINENO: result: $ft_devel" >&5
10864 echo "${ECHO_T}$ft_devel" >&6; }
10865 else
10866   { echo "$as_me:$LINENO: result: no" >&5
10867 echo "${ECHO_T}no" >&6; }
10868 fi
10869
10870
10871 if test "$ft_devel" = "no"
10872 then
10873     # Extract the first word of "freetype2-config", so it can be a program name with args.
10874 set dummy freetype2-config; ac_word=$2
10875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10877 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10878   echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880   if test -n "$ft_devel2"; then
10881   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10882 else
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in $PATH
10885 do
10886   IFS=$as_save_IFS
10887   test -z "$as_dir" && as_dir=.
10888   for ac_exec_ext in '' $ac_executable_extensions; do
10889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10890     ac_cv_prog_ft_devel2="freetype2-config"
10891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10892     break 2
10893   fi
10894 done
10895 done
10896 IFS=$as_save_IFS
10897
10898   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10899 fi
10900 fi
10901 ft_devel2=$ac_cv_prog_ft_devel2
10902 if test -n "$ft_devel2"; then
10903   { echo "$as_me:$LINENO: result: $ft_devel2" >&5
10904 echo "${ECHO_T}$ft_devel2" >&6; }
10905 else
10906   { echo "$as_me:$LINENO: result: no" >&5
10907 echo "${ECHO_T}no" >&6; }
10908 fi
10909
10910
10911     if test "$ft_devel2" = "freetype2-config"
10912     then
10913         ft_devel=$ft_devel2
10914     fi
10915 fi
10916
10917 if test "$ft_devel" = "no"
10918 then
10919     wine_cv_msg_freetype=yes
10920 else
10921     FREETYPELIBS=`$ft_devel --libs`
10922     FREETYPEINCL=`$ft_devel --cflags`
10923     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10924 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
10925 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10926   echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928   ac_check_lib_save_LIBS=$LIBS
10929 LIBS="-lfreetype $FREETYPELIBS $LIBS"
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h.  */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h.  */
10936
10937 /* Override any GCC internal prototype to avoid an error.
10938    Use char because int might match the return type of a GCC
10939    builtin and then its argument prototype would still apply.  */
10940 #ifdef __cplusplus
10941 extern "C"
10942 #endif
10943 char FT_Init_FreeType ();
10944 int
10945 main ()
10946 {
10947 return FT_Init_FreeType ();
10948   ;
10949   return 0;
10950 }
10951 _ACEOF
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (ac_try="$ac_link"
10954 case "(($ac_try" in
10955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956   *) ac_try_echo=$ac_try;;
10957 esac
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959   (eval "$ac_link") 2>conftest.er1
10960   ac_status=$?
10961   grep -v '^ *+' conftest.er1 >conftest.err
10962   rm -f conftest.er1
10963   cat conftest.err >&5
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); } && {
10966          test -z "$ac_c_werror_flag" ||
10967          test ! -s conftest.err
10968        } && test -s conftest$ac_exeext &&
10969        $as_test_x conftest$ac_exeext; then
10970   ac_cv_lib_freetype_FT_Init_FreeType=yes
10971 else
10972   echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975         ac_cv_lib_freetype_FT_Init_FreeType=no
10976 fi
10977
10978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10979       conftest$ac_exeext conftest.$ac_ext
10980 LIBS=$ac_check_lib_save_LIBS
10981 fi
10982 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10983 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
10984 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10985   ft_lib=yes
10986 else
10987   ft_lib=no
10988 fi
10989
10990     if test "$ft_lib" = "no"
10991     then
10992         wine_cv_msg_freetype=yes
10993         FREETYPELIBS=""
10994         FREETYPEINCL=""
10995     else
10996         ac_save_CPPFLAGS="$CPPFLAGS"
10997         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009 for ac_header in ft2build.h \
11010                          freetype/freetype.h \
11011                          freetype/ftglyph.h \
11012                          freetype/tttables.h \
11013                          freetype/ftnames.h \
11014                          freetype/ftsnames.h \
11015                          freetype/ttnameid.h \
11016                          freetype/ftoutln.h \
11017                          freetype/ftwinfnt.h \
11018                          freetype/ftmodapi.h \
11019                          freetype/internal/sfnt.h
11020 do
11021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025   echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027   cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h.  */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h.  */
11033 #if HAVE_FT2BUILD_H
11034                           #include <ft2build.h>
11035                           #endif
11036
11037 #include <$ac_header>
11038 _ACEOF
11039 rm -f conftest.$ac_objext
11040 if { (ac_try="$ac_compile"
11041 case "(($ac_try" in
11042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043   *) ac_try_echo=$ac_try;;
11044 esac
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046   (eval "$ac_compile") 2>conftest.er1
11047   ac_status=$?
11048   grep -v '^ *+' conftest.er1 >conftest.err
11049   rm -f conftest.er1
11050   cat conftest.err >&5
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); } && {
11053          test -z "$ac_c_werror_flag" ||
11054          test ! -s conftest.err
11055        } && test -s conftest.$ac_objext; then
11056   eval "$as_ac_Header=yes"
11057 else
11058   echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11060
11061         eval "$as_ac_Header=no"
11062 fi
11063
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 fi
11066 ac_res=`eval echo '${'$as_ac_Header'}'`
11067                { echo "$as_me:$LINENO: result: $ac_res" >&5
11068 echo "${ECHO_T}$ac_res" >&6; }
11069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11070   cat >>confdefs.h <<_ACEOF
11071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11072 _ACEOF
11073
11074 fi
11075
11076 done
11077
11078         cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h.  */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h.  */
11084 #include <ft2build.h>
11085                     #include <freetype/fttrigon.h>
11086 _ACEOF
11087 if { (ac_try="$ac_cpp conftest.$ac_ext"
11088 case "(($ac_try" in
11089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090   *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11094   ac_status=$?
11095   grep -v '^ *+' conftest.er1 >conftest.err
11096   rm -f conftest.er1
11097   cat conftest.err >&5
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); } >/dev/null && {
11100          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11101          test ! -s conftest.err
11102        }; then
11103
11104 cat >>confdefs.h <<\_ACEOF
11105 #define HAVE_FREETYPE_FTTRIGON_H 1
11106 _ACEOF
11107
11108                     wine_cv_fttrigon=yes
11109 else
11110   echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113   wine_cv_fttrigon=no
11114 fi
11115
11116 rm -f conftest.err conftest.$ac_ext
11117         { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
11118 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
11119 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
11120   echo $ECHO_N "(cached) $ECHO_C" >&6
11121 else
11122   cat >conftest.$ac_ext <<_ACEOF
11123 /* confdefs.h.  */
11124 _ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h.  */
11128 #include <freetype/ftmodapi.h>
11129
11130 typedef FT_TrueTypeEngineType ac__type_new_;
11131 int
11132 main ()
11133 {
11134 if ((ac__type_new_ *) 0)
11135   return 0;
11136 if (sizeof (ac__type_new_))
11137   return 0;
11138   ;
11139   return 0;
11140 }
11141 _ACEOF
11142 rm -f conftest.$ac_objext
11143 if { (ac_try="$ac_compile"
11144 case "(($ac_try" in
11145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146   *) ac_try_echo=$ac_try;;
11147 esac
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149   (eval "$ac_compile") 2>conftest.er1
11150   ac_status=$?
11151   grep -v '^ *+' conftest.er1 >conftest.err
11152   rm -f conftest.er1
11153   cat conftest.err >&5
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); } && {
11156          test -z "$ac_c_werror_flag" ||
11157          test ! -s conftest.err
11158        } && test -s conftest.$ac_objext; then
11159   ac_cv_type_FT_TrueTypeEngineType=yes
11160 else
11161   echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11163
11164         ac_cv_type_FT_TrueTypeEngineType=no
11165 fi
11166
11167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11168 fi
11169 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
11170 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
11171 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
11172
11173 cat >>confdefs.h <<_ACEOF
11174 #define HAVE_FT_TRUETYPEENGINETYPE 1
11175 _ACEOF
11176
11177
11178 fi
11179
11180         ac_save_CFLAGS="$CFLAGS"
11181         CFLAGS="$CFLAGS $FREETYPELIBS"
11182
11183 for ac_func in FT_Load_Sfnt_Table
11184 do
11185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191   cat >conftest.$ac_ext <<_ACEOF
11192 /* confdefs.h.  */
11193 _ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h.  */
11197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11199 #define $ac_func innocuous_$ac_func
11200
11201 /* System header to define __stub macros and hopefully few prototypes,
11202     which can conflict with char $ac_func (); below.
11203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11204     <limits.h> exists even on freestanding compilers.  */
11205
11206 #ifdef __STDC__
11207 # include <limits.h>
11208 #else
11209 # include <assert.h>
11210 #endif
11211
11212 #undef $ac_func
11213
11214 /* Override any GCC internal prototype to avoid an error.
11215    Use char because int might match the return type of a GCC
11216    builtin and then its argument prototype would still apply.  */
11217 #ifdef __cplusplus
11218 extern "C"
11219 #endif
11220 char $ac_func ();
11221 /* The GNU C library defines this for functions which it implements
11222     to always fail with ENOSYS.  Some functions are actually named
11223     something starting with __ and the normal name is an alias.  */
11224 #if defined __stub_$ac_func || defined __stub___$ac_func
11225 choke me
11226 #endif
11227
11228 int
11229 main ()
11230 {
11231 return $ac_func ();
11232   ;
11233   return 0;
11234 }
11235 _ACEOF
11236 rm -f conftest.$ac_objext conftest$ac_exeext
11237 if { (ac_try="$ac_link"
11238 case "(($ac_try" in
11239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240   *) ac_try_echo=$ac_try;;
11241 esac
11242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243   (eval "$ac_link") 2>conftest.er1
11244   ac_status=$?
11245   grep -v '^ *+' conftest.er1 >conftest.err
11246   rm -f conftest.er1
11247   cat conftest.err >&5
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); } && {
11250          test -z "$ac_c_werror_flag" ||
11251          test ! -s conftest.err
11252        } && test -s conftest$ac_exeext &&
11253        $as_test_x conftest$ac_exeext; then
11254   eval "$as_ac_var=yes"
11255 else
11256   echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259         eval "$as_ac_var=no"
11260 fi
11261
11262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11263       conftest$ac_exeext conftest.$ac_ext
11264 fi
11265 ac_res=`eval echo '${'$as_ac_var'}'`
11266                { echo "$as_me:$LINENO: result: $ac_res" >&5
11267 echo "${ECHO_T}$ac_res" >&6; }
11268 if test `eval echo '${'$as_ac_var'}'` = yes; then
11269   cat >>confdefs.h <<_ACEOF
11270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11271 _ACEOF
11272
11273 fi
11274 done
11275
11276         CFLAGS="$ac_save_CFLAGS"
11277         CPPFLAGS="$ac_save_CPPFLAGS"
11278                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11279         then
11280
11281 cat >>confdefs.h <<\_ACEOF
11282 #define HAVE_FREETYPE 1
11283 _ACEOF
11284
11285             wine_cv_msg_freetype=no
11286         else
11287             FREETYPELIBS=""
11288             FREETYPEINCL=""
11289             wine_cv_msg_freetype=yes
11290         fi
11291     fi
11292 fi
11293
11294 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
11295 then
11296   FONTSSUBDIRS="fonts"
11297
11298 fi
11299
11300 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
11301 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
11302 if test "${ac_cv_c_ppdev+set}" = set; then
11303   echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305   cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h.  */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h.  */
11311 #include <linux/ppdev.h>
11312 int
11313 main ()
11314 {
11315 ioctl (1,PPCLAIM,0)
11316   ;
11317   return 0;
11318 }
11319 _ACEOF
11320 rm -f conftest.$ac_objext
11321 if { (ac_try="$ac_compile"
11322 case "(($ac_try" in
11323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324   *) ac_try_echo=$ac_try;;
11325 esac
11326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11327   (eval "$ac_compile") 2>conftest.er1
11328   ac_status=$?
11329   grep -v '^ *+' conftest.er1 >conftest.err
11330   rm -f conftest.er1
11331   cat conftest.err >&5
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); } && {
11334          test -z "$ac_c_werror_flag" ||
11335          test ! -s conftest.err
11336        } && test -s conftest.$ac_objext; then
11337   ac_cv_c_ppdev="yes"
11338 else
11339   echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11341
11342         ac_cv_c_ppdev="no"
11343 fi
11344
11345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11346
11347 fi
11348 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
11349 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
11350 if test "$ac_cv_c_ppdev" = "yes"
11351 then
11352
11353 cat >>confdefs.h <<\_ACEOF
11354 #define HAVE_PPDEV 1
11355 _ACEOF
11356
11357 fi
11358
11359 { echo "$as_me:$LINENO: checking for va_copy" >&5
11360 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
11361 if test "${ac_cv_c_va_copy+set}" = set; then
11362   echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364   cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h.  */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h.  */
11370 #include <stdarg.h>
11371 int
11372 main ()
11373 {
11374 va_list ap1, ap2;
11375     va_copy(ap1,ap2);
11376
11377   ;
11378   return 0;
11379 }
11380 _ACEOF
11381 rm -f conftest.$ac_objext conftest$ac_exeext
11382 if { (ac_try="$ac_link"
11383 case "(($ac_try" in
11384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385   *) ac_try_echo=$ac_try;;
11386 esac
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388   (eval "$ac_link") 2>conftest.er1
11389   ac_status=$?
11390   grep -v '^ *+' conftest.er1 >conftest.err
11391   rm -f conftest.er1
11392   cat conftest.err >&5
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); } && {
11395          test -z "$ac_c_werror_flag" ||
11396          test ! -s conftest.err
11397        } && test -s conftest$ac_exeext &&
11398        $as_test_x conftest$ac_exeext; then
11399   ac_cv_c_va_copy="yes"
11400 else
11401   echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11403
11404         ac_cv_c_va_copy="no"
11405 fi
11406
11407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11408       conftest$ac_exeext conftest.$ac_ext
11409
11410 fi
11411 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
11412 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
11413 if test "$ac_cv_c_va_copy" = "yes"
11414 then
11415
11416 cat >>confdefs.h <<\_ACEOF
11417 #define HAVE_VA_COPY 1
11418 _ACEOF
11419
11420 fi
11421 { echo "$as_me:$LINENO: checking for __va_copy" >&5
11422 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
11423 if test "${ac_cv_c___va_copy+set}" = set; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426   cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h.  */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h.  */
11432 #include <stdarg.h>
11433 int
11434 main ()
11435 {
11436 va_list ap1, ap2;
11437     __va_copy(ap1,ap2);
11438
11439   ;
11440   return 0;
11441 }
11442 _ACEOF
11443 rm -f conftest.$ac_objext conftest$ac_exeext
11444 if { (ac_try="$ac_link"
11445 case "(($ac_try" in
11446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447   *) ac_try_echo=$ac_try;;
11448 esac
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450   (eval "$ac_link") 2>conftest.er1
11451   ac_status=$?
11452   grep -v '^ *+' conftest.er1 >conftest.err
11453   rm -f conftest.er1
11454   cat conftest.err >&5
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); } && {
11457          test -z "$ac_c_werror_flag" ||
11458          test ! -s conftest.err
11459        } && test -s conftest$ac_exeext &&
11460        $as_test_x conftest$ac_exeext; then
11461   ac_cv_c___va_copy="yes"
11462 else
11463   echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11465
11466         ac_cv_c___va_copy="no"
11467 fi
11468
11469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11470       conftest$ac_exeext conftest.$ac_ext
11471
11472 fi
11473 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
11474 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
11475 if test "$ac_cv_c___va_copy" = "yes"
11476 then
11477
11478 cat >>confdefs.h <<\_ACEOF
11479 #define HAVE___VA_COPY 1
11480 _ACEOF
11481
11482 fi
11483
11484 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11485 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
11486 if test "${ac_cv_c_sigsetjmp+set}" = set; then
11487   echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489   cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h.  */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h.  */
11495 #include <setjmp.h>
11496 int
11497 main ()
11498 {
11499 sigjmp_buf buf;
11500     sigsetjmp( buf, 1 );
11501     siglongjmp( buf, 1 );
11502   ;
11503   return 0;
11504 }
11505 _ACEOF
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (ac_try="$ac_link"
11508 case "(($ac_try" in
11509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510   *) ac_try_echo=$ac_try;;
11511 esac
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513   (eval "$ac_link") 2>conftest.er1
11514   ac_status=$?
11515   grep -v '^ *+' conftest.er1 >conftest.err
11516   rm -f conftest.er1
11517   cat conftest.err >&5
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); } && {
11520          test -z "$ac_c_werror_flag" ||
11521          test ! -s conftest.err
11522        } && test -s conftest$ac_exeext &&
11523        $as_test_x conftest$ac_exeext; then
11524   ac_cv_c_sigsetjmp="yes"
11525 else
11526   echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11528
11529         ac_cv_c_sigsetjmp="no"
11530 fi
11531
11532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11533       conftest$ac_exeext conftest.$ac_ext
11534
11535 fi
11536 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11537 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
11538 if test "$ac_cv_c_sigsetjmp" = "yes"
11539 then
11540
11541 cat >>confdefs.h <<\_ACEOF
11542 #define HAVE_SIGSETJMP 1
11543 _ACEOF
11544
11545 fi
11546
11547 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11548 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
11549 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11550   echo $ECHO_N "(cached) $ECHO_C" >&6
11551 else
11552   cat >conftest.$ac_ext <<_ACEOF
11553 /* confdefs.h.  */
11554 _ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h.  */
11558 #define _GNU_SOURCE
11559 #include <pthread.h>
11560
11561 typedef pthread_rwlock_t ac__type_new_;
11562 int
11563 main ()
11564 {
11565 if ((ac__type_new_ *) 0)
11566   return 0;
11567 if (sizeof (ac__type_new_))
11568   return 0;
11569   ;
11570   return 0;
11571 }
11572 _ACEOF
11573 rm -f conftest.$ac_objext
11574 if { (ac_try="$ac_compile"
11575 case "(($ac_try" in
11576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577   *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580   (eval "$ac_compile") 2>conftest.er1
11581   ac_status=$?
11582   grep -v '^ *+' conftest.er1 >conftest.err
11583   rm -f conftest.er1
11584   cat conftest.err >&5
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); } && {
11587          test -z "$ac_c_werror_flag" ||
11588          test ! -s conftest.err
11589        } && test -s conftest.$ac_objext; then
11590   ac_cv_type_pthread_rwlock_t=yes
11591 else
11592   echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11594
11595         ac_cv_type_pthread_rwlock_t=no
11596 fi
11597
11598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599 fi
11600 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11601 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
11602 if test $ac_cv_type_pthread_rwlock_t = yes; then
11603
11604 cat >>confdefs.h <<_ACEOF
11605 #define HAVE_PTHREAD_RWLOCK_T 1
11606 _ACEOF
11607
11608
11609 fi
11610 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11611 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
11612 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615   cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621 #define _GNU_SOURCE
11622 #include <pthread.h>
11623
11624 typedef pthread_rwlockattr_t ac__type_new_;
11625 int
11626 main ()
11627 {
11628 if ((ac__type_new_ *) 0)
11629   return 0;
11630 if (sizeof (ac__type_new_))
11631   return 0;
11632   ;
11633   return 0;
11634 }
11635 _ACEOF
11636 rm -f conftest.$ac_objext
11637 if { (ac_try="$ac_compile"
11638 case "(($ac_try" in
11639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640   *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643   (eval "$ac_compile") 2>conftest.er1
11644   ac_status=$?
11645   grep -v '^ *+' conftest.er1 >conftest.err
11646   rm -f conftest.er1
11647   cat conftest.err >&5
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); } && {
11650          test -z "$ac_c_werror_flag" ||
11651          test ! -s conftest.err
11652        } && test -s conftest.$ac_objext; then
11653   ac_cv_type_pthread_rwlockattr_t=yes
11654 else
11655   echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.$ac_ext >&5
11657
11658         ac_cv_type_pthread_rwlockattr_t=no
11659 fi
11660
11661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662 fi
11663 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11664 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
11665 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11666
11667 cat >>confdefs.h <<_ACEOF
11668 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11669 _ACEOF
11670
11671
11672 fi
11673
11674
11675 ac_wine_check_funcs_save_LIBS="$LIBS"
11676 LIBS="$LIBS $LIBPTHREAD"
11677
11678
11679
11680
11681 for ac_func in \
11682         pthread_attr_get_np \
11683         pthread_getattr_np \
11684         pthread_get_stackaddr_np \
11685         pthread_get_stacksize_np
11686 do
11687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11691   echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693   cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h.  */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h.  */
11699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11701 #define $ac_func innocuous_$ac_func
11702
11703 /* System header to define __stub macros and hopefully few prototypes,
11704     which can conflict with char $ac_func (); below.
11705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11706     <limits.h> exists even on freestanding compilers.  */
11707
11708 #ifdef __STDC__
11709 # include <limits.h>
11710 #else
11711 # include <assert.h>
11712 #endif
11713
11714 #undef $ac_func
11715
11716 /* Override any GCC internal prototype to avoid an error.
11717    Use char because int might match the return type of a GCC
11718    builtin and then its argument prototype would still apply.  */
11719 #ifdef __cplusplus
11720 extern "C"
11721 #endif
11722 char $ac_func ();
11723 /* The GNU C library defines this for functions which it implements
11724     to always fail with ENOSYS.  Some functions are actually named
11725     something starting with __ and the normal name is an alias.  */
11726 #if defined __stub_$ac_func || defined __stub___$ac_func
11727 choke me
11728 #endif
11729
11730 int
11731 main ()
11732 {
11733 return $ac_func ();
11734   ;
11735   return 0;
11736 }
11737 _ACEOF
11738 rm -f conftest.$ac_objext conftest$ac_exeext
11739 if { (ac_try="$ac_link"
11740 case "(($ac_try" in
11741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742   *) ac_try_echo=$ac_try;;
11743 esac
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745   (eval "$ac_link") 2>conftest.er1
11746   ac_status=$?
11747   grep -v '^ *+' conftest.er1 >conftest.err
11748   rm -f conftest.er1
11749   cat conftest.err >&5
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); } && {
11752          test -z "$ac_c_werror_flag" ||
11753          test ! -s conftest.err
11754        } && test -s conftest$ac_exeext &&
11755        $as_test_x conftest$ac_exeext; then
11756   eval "$as_ac_var=yes"
11757 else
11758   echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761         eval "$as_ac_var=no"
11762 fi
11763
11764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11765       conftest$ac_exeext conftest.$ac_ext
11766 fi
11767 ac_res=`eval echo '${'$as_ac_var'}'`
11768                { echo "$as_me:$LINENO: result: $ac_res" >&5
11769 echo "${ECHO_T}$ac_res" >&6; }
11770 if test `eval echo '${'$as_ac_var'}'` = yes; then
11771   cat >>confdefs.h <<_ACEOF
11772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11773 _ACEOF
11774
11775 fi
11776 done
11777
11778 LIBS="$ac_wine_check_funcs_save_LIBS"
11779
11780 # Extract the first word of "artsc-config", so it can be a program name with args.
11781 set dummy artsc-config; ac_word=$2
11782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11784 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11785   echo $ECHO_N "(cached) $ECHO_C" >&6
11786 else
11787   case $ARTSCCONFIG in
11788   [\\/]* | ?:[\\/]*)
11789   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11790   ;;
11791   *)
11792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $PATH
11794 do
11795   IFS=$as_save_IFS
11796   test -z "$as_dir" && as_dir=.
11797   for ac_exec_ext in '' $ac_executable_extensions; do
11798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11799     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11801     break 2
11802   fi
11803 done
11804 done
11805 IFS=$as_save_IFS
11806
11807   ;;
11808 esac
11809 fi
11810 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11811 if test -n "$ARTSCCONFIG"; then
11812   { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11813 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
11814 else
11815   { echo "$as_me:$LINENO: result: no" >&5
11816 echo "${ECHO_T}no" >&6; }
11817 fi
11818
11819
11820 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11821 then
11822     ARTSC_CFLAGS=""
11823     for i in `$ARTSCCONFIG --cflags`
11824     do
11825       case "$i" in
11826         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11827       esac
11828     done
11829     ARTSC_LIBS=""
11830     for i in `$ARTSCCONFIG --libs`
11831     do
11832       case "$i" in
11833         -L/usr/lib|-L/usr/lib64) ;;
11834         -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
11835       esac
11836     done
11837     save_CFLAGS="$CFLAGS"
11838     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11839     { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
11840 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
11841 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
11842   echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844   ac_check_lib_save_LIBS=$LIBS
11845 LIBS="-lartsc $ARTSC_LIBS $LIBS"
11846 cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h.  */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h.  */
11852
11853 /* Override any GCC internal prototype to avoid an error.
11854    Use char because int might match the return type of a GCC
11855    builtin and then its argument prototype would still apply.  */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char arts_init ();
11860 int
11861 main ()
11862 {
11863 return arts_init ();
11864   ;
11865   return 0;
11866 }
11867 _ACEOF
11868 rm -f conftest.$ac_objext conftest$ac_exeext
11869 if { (ac_try="$ac_link"
11870 case "(($ac_try" in
11871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872   *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875   (eval "$ac_link") 2>conftest.er1
11876   ac_status=$?
11877   grep -v '^ *+' conftest.er1 >conftest.err
11878   rm -f conftest.er1
11879   cat conftest.err >&5
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); } && {
11882          test -z "$ac_c_werror_flag" ||
11883          test ! -s conftest.err
11884        } && test -s conftest$ac_exeext &&
11885        $as_test_x conftest$ac_exeext; then
11886   ac_cv_lib_artsc_arts_init=yes
11887 else
11888   echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891         ac_cv_lib_artsc_arts_init=no
11892 fi
11893
11894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11895       conftest$ac_exeext conftest.$ac_ext
11896 LIBS=$ac_check_lib_save_LIBS
11897 fi
11898 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
11899 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
11900 if test $ac_cv_lib_artsc_arts_init = yes; then
11901   cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h.  */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h.  */
11907 #include <artsc.h>
11908 int
11909 main ()
11910 {
11911 arts_stream_t stream;
11912   ;
11913   return 0;
11914 }
11915 _ACEOF
11916 rm -f conftest.$ac_objext
11917 if { (ac_try="$ac_compile"
11918 case "(($ac_try" in
11919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920   *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923   (eval "$ac_compile") 2>conftest.er1
11924   ac_status=$?
11925   grep -v '^ *+' conftest.er1 >conftest.err
11926   rm -f conftest.er1
11927   cat conftest.err >&5
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); } && {
11930          test -z "$ac_c_werror_flag" ||
11931          test ! -s conftest.err
11932        } && test -s conftest.$ac_objext; then
11933   ARTSLIBS=$ARTSC_LIBS
11934
11935             ARTSINCL=$ARTSC_CFLAGS
11936
11937
11938 cat >>confdefs.h <<\_ACEOF
11939 #define HAVE_ARTS 1
11940 _ACEOF
11941
11942 else
11943   echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11945
11946
11947 fi
11948
11949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950 fi
11951
11952     CFLAGS="$save_CFLAGS"
11953 fi
11954
11955 # Extract the first word of "esd-config", so it can be a program name with args.
11956 set dummy esd-config; ac_word=$2
11957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11959 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   case $ESDCONFIG in
11963   [\\/]* | ?:[\\/]*)
11964   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
11965   ;;
11966   *)
11967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11969 do
11970   IFS=$as_save_IFS
11971   test -z "$as_dir" && as_dir=.
11972   for ac_exec_ext in '' $ac_executable_extensions; do
11973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11974     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11976     break 2
11977   fi
11978 done
11979 done
11980 IFS=$as_save_IFS
11981
11982   ;;
11983 esac
11984 fi
11985 ESDCONFIG=$ac_cv_path_ESDCONFIG
11986 if test -n "$ESDCONFIG"; then
11987   { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
11988 echo "${ECHO_T}$ESDCONFIG" >&6; }
11989 else
11990   { echo "$as_me:$LINENO: result: no" >&5
11991 echo "${ECHO_T}no" >&6; }
11992 fi
11993
11994
11995 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
11996 then
11997     ESD_CFLAGS=""
11998     for i in `$ESDCONFIG --cflags`
11999     do
12000       case "$i" in
12001         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
12002       esac
12003     done
12004     ESD_LIBS=`$ESDCONFIG --libs`
12005     save_CFLAGS="$CFLAGS"
12006     CFLAGS="$CFLAGS $ESD_CFLAGS"
12007     { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
12008 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
12009 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
12010   echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else
12012   ac_check_lib_save_LIBS=$LIBS
12013 LIBS="-lesd  $LIBS"
12014 cat >conftest.$ac_ext <<_ACEOF
12015 /* confdefs.h.  */
12016 _ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h.  */
12020
12021 /* Override any GCC internal prototype to avoid an error.
12022    Use char because int might match the return type of a GCC
12023    builtin and then its argument prototype would still apply.  */
12024 #ifdef __cplusplus
12025 extern "C"
12026 #endif
12027 char esd_open_sound ();
12028 int
12029 main ()
12030 {
12031 return esd_open_sound ();
12032   ;
12033   return 0;
12034 }
12035 _ACEOF
12036 rm -f conftest.$ac_objext conftest$ac_exeext
12037 if { (ac_try="$ac_link"
12038 case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043   (eval "$ac_link") 2>conftest.er1
12044   ac_status=$?
12045   grep -v '^ *+' conftest.er1 >conftest.err
12046   rm -f conftest.er1
12047   cat conftest.err >&5
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); } && {
12050          test -z "$ac_c_werror_flag" ||
12051          test ! -s conftest.err
12052        } && test -s conftest$ac_exeext &&
12053        $as_test_x conftest$ac_exeext; then
12054   ac_cv_lib_esd_esd_open_sound=yes
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059         ac_cv_lib_esd_esd_open_sound=no
12060 fi
12061
12062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12063       conftest$ac_exeext conftest.$ac_ext
12064 LIBS=$ac_check_lib_save_LIBS
12065 fi
12066 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
12067 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
12068 if test $ac_cv_lib_esd_esd_open_sound = yes; then
12069   ESDLIBS=$ESD_LIBS
12070
12071          ESDINCL=$ESD_CFLAGS
12072
12073
12074 cat >>confdefs.h <<\_ACEOF
12075 #define HAVE_ESD 1
12076 _ACEOF
12077
12078 fi
12079
12080     CFLAGS="$save_CFLAGS"
12081 fi
12082
12083 ALSALIBS=""
12084
12085 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12086 then
12087     { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
12088 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
12089 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
12090   echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092   ac_check_lib_save_LIBS=$LIBS
12093 LIBS="-lasound  $LIBS"
12094 cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h.  */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h.  */
12100
12101 /* Override any GCC internal prototype to avoid an error.
12102    Use char because int might match the return type of a GCC
12103    builtin and then its argument prototype would still apply.  */
12104 #ifdef __cplusplus
12105 extern "C"
12106 #endif
12107 char snd_pcm_hw_params_get_access ();
12108 int
12109 main ()
12110 {
12111 return snd_pcm_hw_params_get_access ();
12112   ;
12113   return 0;
12114 }
12115 _ACEOF
12116 rm -f conftest.$ac_objext conftest$ac_exeext
12117 if { (ac_try="$ac_link"
12118 case "(($ac_try" in
12119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120   *) ac_try_echo=$ac_try;;
12121 esac
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123   (eval "$ac_link") 2>conftest.er1
12124   ac_status=$?
12125   grep -v '^ *+' conftest.er1 >conftest.err
12126   rm -f conftest.er1
12127   cat conftest.err >&5
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); } && {
12130          test -z "$ac_c_werror_flag" ||
12131          test ! -s conftest.err
12132        } && test -s conftest$ac_exeext &&
12133        $as_test_x conftest$ac_exeext; then
12134   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
12135 else
12136   echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139         ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
12140 fi
12141
12142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12143       conftest$ac_exeext conftest.$ac_ext
12144 LIBS=$ac_check_lib_save_LIBS
12145 fi
12146 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
12147 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
12148 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
12149   cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h.  */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h.  */
12155 #ifdef HAVE_ALSA_ASOUNDLIB_H
12156 #include <alsa/asoundlib.h>
12157 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12158 #include <sys/asoundlib.h>
12159 #endif
12160 int
12161 main ()
12162 {
12163 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
12164   ;
12165   return 0;
12166 }
12167 _ACEOF
12168 rm -f conftest.$ac_objext
12169 if { (ac_try="$ac_compile"
12170 case "(($ac_try" in
12171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172   *) ac_try_echo=$ac_try;;
12173 esac
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175   (eval "$ac_compile") 2>conftest.er1
12176   ac_status=$?
12177   grep -v '^ *+' conftest.er1 >conftest.err
12178   rm -f conftest.er1
12179   cat conftest.err >&5
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); } && {
12182          test -z "$ac_c_werror_flag" ||
12183          test ! -s conftest.err
12184        } && test -s conftest.$ac_objext; then
12185
12186 cat >>confdefs.h <<\_ACEOF
12187 #define HAVE_ALSA 1
12188 _ACEOF
12189
12190                          ALSALIBS="-lasound"
12191 else
12192   echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12194
12195
12196 fi
12197
12198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12199 fi
12200
12201 fi
12202
12203
12204 AUDIOIOLIBS=""
12205
12206 if test "$ac_cv_header_libaudioio_h" = "yes"
12207 then
12208     { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12209 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
12210 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12211   echo $ECHO_N "(cached) $ECHO_C" >&6
12212 else
12213   ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-laudioio  $LIBS"
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h.  */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h.  */
12221
12222 /* Override any GCC internal prototype to avoid an error.
12223    Use char because int might match the return type of a GCC
12224    builtin and then its argument prototype would still apply.  */
12225 #ifdef __cplusplus
12226 extern "C"
12227 #endif
12228 char AudioIOGetVersion ();
12229 int
12230 main ()
12231 {
12232 return AudioIOGetVersion ();
12233   ;
12234   return 0;
12235 }
12236 _ACEOF
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238 if { (ac_try="$ac_link"
12239 case "(($ac_try" in
12240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241   *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244   (eval "$ac_link") 2>conftest.er1
12245   ac_status=$?
12246   grep -v '^ *+' conftest.er1 >conftest.err
12247   rm -f conftest.er1
12248   cat conftest.err >&5
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } && {
12251          test -z "$ac_c_werror_flag" ||
12252          test ! -s conftest.err
12253        } && test -s conftest$ac_exeext &&
12254        $as_test_x conftest$ac_exeext; then
12255   ac_cv_lib_audioio_AudioIOGetVersion=yes
12256 else
12257   echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12259
12260         ac_cv_lib_audioio_AudioIOGetVersion=no
12261 fi
12262
12263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12264       conftest$ac_exeext conftest.$ac_ext
12265 LIBS=$ac_check_lib_save_LIBS
12266 fi
12267 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12268 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
12269 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12270   AUDIOIOLIBS="-laudioio"
12271
12272 cat >>confdefs.h <<\_ACEOF
12273 #define HAVE_LIBAUDIOIO 1
12274 _ACEOF
12275
12276 fi
12277
12278 fi
12279
12280
12281 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12282 then
12283     { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12284 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
12285 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12286   echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288   ac_check_lib_save_LIBS=$LIBS
12289 LIBS="-lcapi20  $LIBS"
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h.  */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h.  */
12296
12297 /* Override any GCC internal prototype to avoid an error.
12298    Use char because int might match the return type of a GCC
12299    builtin and then its argument prototype would still apply.  */
12300 #ifdef __cplusplus
12301 extern "C"
12302 #endif
12303 char capi20_register ();
12304 int
12305 main ()
12306 {
12307 return capi20_register ();
12308   ;
12309   return 0;
12310 }
12311 _ACEOF
12312 rm -f conftest.$ac_objext conftest$ac_exeext
12313 if { (ac_try="$ac_link"
12314 case "(($ac_try" in
12315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316   *) ac_try_echo=$ac_try;;
12317 esac
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319   (eval "$ac_link") 2>conftest.er1
12320   ac_status=$?
12321   grep -v '^ *+' conftest.er1 >conftest.err
12322   rm -f conftest.er1
12323   cat conftest.err >&5
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); } && {
12326          test -z "$ac_c_werror_flag" ||
12327          test ! -s conftest.err
12328        } && test -s conftest$ac_exeext &&
12329        $as_test_x conftest$ac_exeext; then
12330   ac_cv_lib_capi20_capi20_register=yes
12331 else
12332   echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12334
12335         ac_cv_lib_capi20_capi20_register=no
12336 fi
12337
12338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12339       conftest$ac_exeext conftest.$ac_ext
12340 LIBS=$ac_check_lib_save_LIBS
12341 fi
12342 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12343 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
12344 if test $ac_cv_lib_capi20_capi20_register = yes; then
12345
12346 cat >>confdefs.h <<\_ACEOF
12347 #define HAVE_CAPI4LINUX 1
12348 _ACEOF
12349
12350 fi
12351
12352 fi
12353
12354
12355 EXTRACFLAGS=""
12356
12357 if test "x${GCC}" = "xyes"
12358 then
12359   EXTRACFLAGS="-Wall -pipe"
12360
12361     { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12362 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
12363 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12364   echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366   if test "$cross_compiling" = yes; then
12367   ac_cv_c_gcc_strength_bug="yes"
12368 else
12369   cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375
12376 int     L[4] = {0,1,2,3};
12377 int main(void) {
12378   static int Array[3];
12379   unsigned int B = 3;
12380   int i;
12381   for(i=0; i<B; i++) Array[i] = i - 3;
12382   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12383   L[i] = 4;
12384
12385   exit( Array[1] != -2 || L[2] != 3);
12386 }
12387 _ACEOF
12388 rm -f conftest$ac_exeext
12389 if { (ac_try="$ac_link"
12390 case "(($ac_try" in
12391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392   *) ac_try_echo=$ac_try;;
12393 esac
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395   (eval "$ac_link") 2>&5
12396   ac_status=$?
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12399   { (case "(($ac_try" in
12400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401   *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404   (eval "$ac_try") 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; }; then
12408   ac_cv_c_gcc_strength_bug="no"
12409 else
12410   echo "$as_me: program exited with status $ac_status" >&5
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414 ( exit $ac_status )
12415 ac_cv_c_gcc_strength_bug="yes"
12416 fi
12417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12418 fi
12419
12420
12421 fi
12422 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12423 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
12424   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12425   then
12426     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12427   fi
12428
12429
12430   { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
12431 echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
12432 if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
12433   echo $ECHO_N "(cached) $ECHO_C" >&6
12434 else
12435   ac_wine_try_cflags_saved=$CFLAGS
12436 CFLAGS="$CFLAGS -fshort-wchar"
12437 cat >conftest.$ac_ext <<_ACEOF
12438 /* confdefs.h.  */
12439 _ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h.  */
12443
12444 int
12445 main ()
12446 {
12447
12448   ;
12449   return 0;
12450 }
12451 _ACEOF
12452 rm -f conftest.$ac_objext conftest$ac_exeext
12453 if { (ac_try="$ac_link"
12454 case "(($ac_try" in
12455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456   *) ac_try_echo=$ac_try;;
12457 esac
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459   (eval "$ac_link") 2>conftest.er1
12460   ac_status=$?
12461   grep -v '^ *+' conftest.er1 >conftest.err
12462   rm -f conftest.er1
12463   cat conftest.err >&5
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); } && {
12466          test -z "$ac_c_werror_flag" ||
12467          test ! -s conftest.err
12468        } && test -s conftest$ac_exeext &&
12469        $as_test_x conftest$ac_exeext; then
12470   ac_cv_cflags__fshort_wchar=yes
12471 else
12472   echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12474
12475         ac_cv_cflags__fshort_wchar=no
12476 fi
12477
12478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12479       conftest$ac_exeext conftest.$ac_ext
12480 CFLAGS=$ac_wine_try_cflags_saved
12481 fi
12482 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
12483 echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
12484 if test $ac_cv_cflags__fshort_wchar = yes; then
12485
12486 cat >>confdefs.h <<\_ACEOF
12487 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12488 _ACEOF
12489
12490 fi
12491
12492   { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
12493 echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
12494 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
12495   echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497   ac_wine_try_cflags_saved=$CFLAGS
12498 CFLAGS="$CFLAGS -fno-strict-aliasing"
12499 cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505
12506 int
12507 main ()
12508 {
12509
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (ac_try="$ac_link"
12516 case "(($ac_try" in
12517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518   *) ac_try_echo=$ac_try;;
12519 esac
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521   (eval "$ac_link") 2>conftest.er1
12522   ac_status=$?
12523   grep -v '^ *+' conftest.er1 >conftest.err
12524   rm -f conftest.er1
12525   cat conftest.err >&5
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); } && {
12528          test -z "$ac_c_werror_flag" ||
12529          test ! -s conftest.err
12530        } && test -s conftest$ac_exeext &&
12531        $as_test_x conftest$ac_exeext; then
12532   ac_cv_cflags__fno_strict_aliasing=yes
12533 else
12534   echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12536
12537         ac_cv_cflags__fno_strict_aliasing=no
12538 fi
12539
12540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12541       conftest$ac_exeext conftest.$ac_ext
12542 CFLAGS=$ac_wine_try_cflags_saved
12543 fi
12544 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12545 echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
12546 if test $ac_cv_cflags__fno_strict_aliasing = yes; then
12547   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12548 fi
12549
12550   { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12551 echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
12552 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
12553   echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555   ac_wine_try_cflags_saved=$CFLAGS
12556 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12557 cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h.  */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h.  */
12563
12564 int
12565 main ()
12566 {
12567
12568   ;
12569   return 0;
12570 }
12571 _ACEOF
12572 rm -f conftest.$ac_objext conftest$ac_exeext
12573 if { (ac_try="$ac_link"
12574 case "(($ac_try" in
12575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576   *) ac_try_echo=$ac_try;;
12577 esac
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579   (eval "$ac_link") 2>conftest.er1
12580   ac_status=$?
12581   grep -v '^ *+' conftest.er1 >conftest.err
12582   rm -f conftest.er1
12583   cat conftest.err >&5
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); } && {
12586          test -z "$ac_c_werror_flag" ||
12587          test ! -s conftest.err
12588        } && test -s conftest$ac_exeext &&
12589        $as_test_x conftest$ac_exeext; then
12590   ac_cv_cflags__Wdeclaration_after_statement=yes
12591 else
12592   echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12594
12595         ac_cv_cflags__Wdeclaration_after_statement=no
12596 fi
12597
12598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12599       conftest$ac_exeext conftest.$ac_ext
12600 CFLAGS=$ac_wine_try_cflags_saved
12601 fi
12602 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12603 echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12604 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
12605   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12606 fi
12607
12608   { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
12609 echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
12610 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
12611   echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613   ac_wine_try_cflags_saved=$CFLAGS
12614 CFLAGS="$CFLAGS -Wwrite-strings"
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h.  */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h.  */
12621
12622 int
12623 main ()
12624 {
12625
12626   ;
12627   return 0;
12628 }
12629 _ACEOF
12630 rm -f conftest.$ac_objext conftest$ac_exeext
12631 if { (ac_try="$ac_link"
12632 case "(($ac_try" in
12633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634   *) ac_try_echo=$ac_try;;
12635 esac
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637   (eval "$ac_link") 2>conftest.er1
12638   ac_status=$?
12639   grep -v '^ *+' conftest.er1 >conftest.err
12640   rm -f conftest.er1
12641   cat conftest.err >&5
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); } && {
12644          test -z "$ac_c_werror_flag" ||
12645          test ! -s conftest.err
12646        } && test -s conftest$ac_exeext &&
12647        $as_test_x conftest$ac_exeext; then
12648   ac_cv_cflags__Wwrite_strings=yes
12649 else
12650   echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12652
12653         ac_cv_cflags__Wwrite_strings=no
12654 fi
12655
12656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12657       conftest$ac_exeext conftest.$ac_ext
12658 CFLAGS=$ac_wine_try_cflags_saved
12659 fi
12660 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
12661 echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
12662 if test $ac_cv_cflags__Wwrite_strings = yes; then
12663   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12664 fi
12665
12666
12667     saved_CFLAGS="$CFLAGS"
12668   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12669   { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12670 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
12671 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12672   echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674   cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h.  */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h.  */
12680 #include <string.h>
12681 int
12682 main ()
12683 {
12684
12685   ;
12686   return 0;
12687 }
12688 _ACEOF
12689 rm -f conftest.$ac_objext
12690 if { (ac_try="$ac_compile"
12691 case "(($ac_try" in
12692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693   *) ac_try_echo=$ac_try;;
12694 esac
12695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696   (eval "$ac_compile") 2>conftest.er1
12697   ac_status=$?
12698   grep -v '^ *+' conftest.er1 >conftest.err
12699   rm -f conftest.er1
12700   cat conftest.err >&5
12701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702   (exit $ac_status); } && {
12703          test -z "$ac_c_werror_flag" ||
12704          test ! -s conftest.err
12705        } && test -s conftest.$ac_objext; then
12706   ac_cv_c_string_h_warnings=no
12707 else
12708   echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12710
12711         ac_cv_c_string_h_warnings=yes
12712 fi
12713
12714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12715 fi
12716 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12717 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
12718   CFLAGS="$saved_CFLAGS"
12719   if test "$ac_cv_c_string_h_warnings" = "no"
12720   then
12721     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12722   fi
12723
12724   BUILTINFLAG=""
12725
12726   saved_CFLAGS="$CFLAGS"
12727   CFLAGS="$CFLAGS -Werror"
12728   { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
12729 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
12730 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
12731   echo $ECHO_N "(cached) $ECHO_C" >&6
12732 else
12733   cat >conftest.$ac_ext <<_ACEOF
12734 /* confdefs.h.  */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h.  */
12739
12740 int
12741 main ()
12742 {
12743 int iswlower(unsigned short);
12744   ;
12745   return 0;
12746 }
12747 _ACEOF
12748 rm -f conftest.$ac_objext
12749 if { (ac_try="$ac_compile"
12750 case "(($ac_try" in
12751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752   *) ac_try_echo=$ac_try;;
12753 esac
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755   (eval "$ac_compile") 2>conftest.er1
12756   ac_status=$?
12757   grep -v '^ *+' conftest.er1 >conftest.err
12758   rm -f conftest.er1
12759   cat conftest.err >&5
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); } && {
12762          test -z "$ac_c_werror_flag" ||
12763          test ! -s conftest.err
12764        } && test -s conftest.$ac_objext; then
12765   ac_cv_c_builtin_wchar_ctype=no
12766 else
12767   echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770         ac_cv_c_builtin_wchar_ctype=yes
12771 fi
12772
12773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774 fi
12775 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
12776 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
12777   CFLAGS="$saved_CFLAGS"
12778   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
12779   then
12780     BUILTINFLAG="-fno-builtin"
12781   fi
12782 fi
12783
12784
12785 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12786 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
12787 if test "${ac_cv_asm_func_def+set}" = set; then
12788   echo $ECHO_N "(cached) $ECHO_C" >&6
12789 else
12790   cat >conftest.$ac_ext <<_ACEOF
12791 /* confdefs.h.  */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h.  */
12796 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"); }
12797
12798 int
12799 main ()
12800 {
12801
12802   ;
12803   return 0;
12804 }
12805 _ACEOF
12806 rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (ac_try="$ac_link"
12808 case "(($ac_try" in
12809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810   *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813   (eval "$ac_link") 2>conftest.er1
12814   ac_status=$?
12815   grep -v '^ *+' conftest.er1 >conftest.err
12816   rm -f conftest.er1
12817   cat conftest.err >&5
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } && {
12820          test -z "$ac_c_werror_flag" ||
12821          test ! -s conftest.err
12822        } && test -s conftest$ac_exeext &&
12823        $as_test_x conftest$ac_exeext; then
12824   ac_cv_asm_func_def=".def"
12825 else
12826   echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829         cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h.  */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h.  */
12835 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12836
12837 int
12838 main ()
12839 {
12840
12841   ;
12842   return 0;
12843 }
12844 _ACEOF
12845 rm -f conftest.$ac_objext conftest$ac_exeext
12846 if { (ac_try="$ac_link"
12847 case "(($ac_try" in
12848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849   *) ac_try_echo=$ac_try;;
12850 esac
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852   (eval "$ac_link") 2>conftest.er1
12853   ac_status=$?
12854   grep -v '^ *+' conftest.er1 >conftest.err
12855   rm -f conftest.er1
12856   cat conftest.err >&5
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); } && {
12859          test -z "$ac_c_werror_flag" ||
12860          test ! -s conftest.err
12861        } && test -s conftest$ac_exeext &&
12862        $as_test_x conftest$ac_exeext; then
12863   ac_cv_asm_func_def=".type @function"
12864 else
12865   echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12867
12868         cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h.  */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h.  */
12874 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12875
12876 int
12877 main ()
12878 {
12879
12880   ;
12881   return 0;
12882 }
12883 _ACEOF
12884 rm -f conftest.$ac_objext conftest$ac_exeext
12885 if { (ac_try="$ac_link"
12886 case "(($ac_try" in
12887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888   *) ac_try_echo=$ac_try;;
12889 esac
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891   (eval "$ac_link") 2>conftest.er1
12892   ac_status=$?
12893   grep -v '^ *+' conftest.er1 >conftest.err
12894   rm -f conftest.er1
12895   cat conftest.err >&5
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); } && {
12898          test -z "$ac_c_werror_flag" ||
12899          test ! -s conftest.err
12900        } && test -s conftest$ac_exeext &&
12901        $as_test_x conftest$ac_exeext; then
12902   ac_cv_asm_func_def=".type 2"
12903 else
12904   echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12906
12907         ac_cv_asm_func_def="unknown"
12908 fi
12909
12910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12911       conftest$ac_exeext conftest.$ac_ext
12912 fi
12913
12914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12915       conftest$ac_exeext conftest.$ac_ext
12916 fi
12917
12918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12919       conftest$ac_exeext conftest.$ac_ext
12920 fi
12921 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12922 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
12923
12924
12925
12926 case "$ac_cv_asm_func_def" in
12927   ".def")
12928      cat >>confdefs.h <<\_ACEOF
12929 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12930 _ACEOF
12931  ;;
12932   ".type @function")
12933      cat >>confdefs.h <<\_ACEOF
12934 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12935 _ACEOF
12936  ;;
12937   ".type 2")
12938      cat >>confdefs.h <<\_ACEOF
12939 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12940 _ACEOF
12941  ;;
12942   *)
12943      cat >>confdefs.h <<\_ACEOF
12944 #define __ASM_FUNC(name) ""
12945 _ACEOF
12946  ;;
12947 esac
12948
12949
12950 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12951 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
12952 if test "${ac_cv_c_extern_prefix+set}" = set; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955   cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h.  */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h.  */
12961 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12962 extern int ac_test;
12963 int
12964 main ()
12965 {
12966 if (ac_test) return 1
12967   ;
12968   return 0;
12969 }
12970 _ACEOF
12971 rm -f conftest.$ac_objext conftest$ac_exeext
12972 if { (ac_try="$ac_link"
12973 case "(($ac_try" in
12974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975   *) ac_try_echo=$ac_try;;
12976 esac
12977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12978   (eval "$ac_link") 2>conftest.er1
12979   ac_status=$?
12980   grep -v '^ *+' conftest.er1 >conftest.err
12981   rm -f conftest.er1
12982   cat conftest.err >&5
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); } && {
12985          test -z "$ac_c_werror_flag" ||
12986          test ! -s conftest.err
12987        } && test -s conftest$ac_exeext &&
12988        $as_test_x conftest$ac_exeext; then
12989   ac_cv_c_extern_prefix="yes"
12990 else
12991   echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12993
12994         ac_cv_c_extern_prefix="no"
12995 fi
12996
12997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12998       conftest$ac_exeext conftest.$ac_ext
12999 fi
13000 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13001 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
13002
13003
13004
13005 if test "$ac_cv_c_extern_prefix" = "yes"
13006 then
13007   cat >>confdefs.h <<\_ACEOF
13008 #define __ASM_NAME(name) "_" name
13009 _ACEOF
13010
13011 else
13012   cat >>confdefs.h <<\_ACEOF
13013 #define __ASM_NAME(name) name
13014 _ACEOF
13015
13016 fi
13017
13018
13019 DLLEXT=""
13020
13021 DLLFLAGS="-D_REENTRANT"
13022
13023 LDSHARED=""
13024
13025 LDDLLFLAGS=""
13026
13027 LIBEXT="so"
13028
13029 IMPLIBEXT="def"
13030
13031 LIBWINE_LDFLAGS=""
13032
13033
13034 case $host_os in
13035   cygwin*|mingw32*)
13036     if test -n "$ac_tool_prefix"; then
13037   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13038 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13041 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13042   echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044   if test -n "$DLLTOOL"; then
13045   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13046 else
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13049 do
13050   IFS=$as_save_IFS
13051   test -z "$as_dir" && as_dir=.
13052   for ac_exec_ext in '' $ac_executable_extensions; do
13053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13056     break 2
13057   fi
13058 done
13059 done
13060 IFS=$as_save_IFS
13061
13062 fi
13063 fi
13064 DLLTOOL=$ac_cv_prog_DLLTOOL
13065 if test -n "$DLLTOOL"; then
13066   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13067 echo "${ECHO_T}$DLLTOOL" >&6; }
13068 else
13069   { echo "$as_me:$LINENO: result: no" >&5
13070 echo "${ECHO_T}no" >&6; }
13071 fi
13072
13073
13074 fi
13075 if test -z "$ac_cv_prog_DLLTOOL"; then
13076   ac_ct_DLLTOOL=$DLLTOOL
13077   # Extract the first word of "dlltool", so it can be a program name with args.
13078 set dummy dlltool; ac_word=$2
13079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13081 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13082   echo $ECHO_N "(cached) $ECHO_C" >&6
13083 else
13084   if test -n "$ac_ct_DLLTOOL"; then
13085   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13086 else
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13089 do
13090   IFS=$as_save_IFS
13091   test -z "$as_dir" && as_dir=.
13092   for ac_exec_ext in '' $ac_executable_extensions; do
13093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13096     break 2
13097   fi
13098 done
13099 done
13100 IFS=$as_save_IFS
13101
13102 fi
13103 fi
13104 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13105 if test -n "$ac_ct_DLLTOOL"; then
13106   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13107 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
13108 else
13109   { echo "$as_me:$LINENO: result: no" >&5
13110 echo "${ECHO_T}no" >&6; }
13111 fi
13112
13113   if test "x$ac_ct_DLLTOOL" = x; then
13114     DLLTOOL="false"
13115   else
13116     case $cross_compiling:$ac_tool_warned in
13117 yes:)
13118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13119 whose name does not start with the host triplet.  If you think this
13120 configuration is useful to you, please write to autoconf@gnu.org." >&5
13121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13122 whose name does not start with the host triplet.  If you think this
13123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13124 ac_tool_warned=yes ;;
13125 esac
13126     DLLTOOL=$ac_ct_DLLTOOL
13127   fi
13128 else
13129   DLLTOOL="$ac_cv_prog_DLLTOOL"
13130 fi
13131
13132     if test -n "$ac_tool_prefix"; then
13133   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13134 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13137 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13138   echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140   if test -n "$DLLWRAP"; then
13141   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13142 else
13143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144 for as_dir in $PATH
13145 do
13146   IFS=$as_save_IFS
13147   test -z "$as_dir" && as_dir=.
13148   for ac_exec_ext in '' $ac_executable_extensions; do
13149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13150     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13152     break 2
13153   fi
13154 done
13155 done
13156 IFS=$as_save_IFS
13157
13158 fi
13159 fi
13160 DLLWRAP=$ac_cv_prog_DLLWRAP
13161 if test -n "$DLLWRAP"; then
13162   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13163 echo "${ECHO_T}$DLLWRAP" >&6; }
13164 else
13165   { echo "$as_me:$LINENO: result: no" >&5
13166 echo "${ECHO_T}no" >&6; }
13167 fi
13168
13169
13170 fi
13171 if test -z "$ac_cv_prog_DLLWRAP"; then
13172   ac_ct_DLLWRAP=$DLLWRAP
13173   # Extract the first word of "dllwrap", so it can be a program name with args.
13174 set dummy dllwrap; ac_word=$2
13175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13177 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13178   echo $ECHO_N "(cached) $ECHO_C" >&6
13179 else
13180   if test -n "$ac_ct_DLLWRAP"; then
13181   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13182 else
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $PATH
13185 do
13186   IFS=$as_save_IFS
13187   test -z "$as_dir" && as_dir=.
13188   for ac_exec_ext in '' $ac_executable_extensions; do
13189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13190     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13192     break 2
13193   fi
13194 done
13195 done
13196 IFS=$as_save_IFS
13197
13198 fi
13199 fi
13200 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13201 if test -n "$ac_ct_DLLWRAP"; then
13202   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13203 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
13204 else
13205   { echo "$as_me:$LINENO: result: no" >&5
13206 echo "${ECHO_T}no" >&6; }
13207 fi
13208
13209   if test "x$ac_ct_DLLWRAP" = x; then
13210     DLLWRAP="false"
13211   else
13212     case $cross_compiling:$ac_tool_warned in
13213 yes:)
13214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13215 whose name does not start with the host triplet.  If you think this
13216 configuration is useful to you, please write to autoconf@gnu.org." >&5
13217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13218 whose name does not start with the host triplet.  If you think this
13219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13220 ac_tool_warned=yes ;;
13221 esac
13222     DLLWRAP=$ac_ct_DLLWRAP
13223   fi
13224 else
13225   DLLWRAP="$ac_cv_prog_DLLWRAP"
13226 fi
13227
13228     if test -n "$ac_tool_prefix"; then
13229   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13230 set dummy ${ac_tool_prefix}ar; ac_word=$2
13231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13233 if test "${ac_cv_prog_MINGWAR+set}" = set; then
13234   echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236   if test -n "$MINGWAR"; then
13237   ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
13238 else
13239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240 for as_dir in $PATH
13241 do
13242   IFS=$as_save_IFS
13243   test -z "$as_dir" && as_dir=.
13244   for ac_exec_ext in '' $ac_executable_extensions; do
13245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13246     ac_cv_prog_MINGWAR="${ac_tool_prefix}ar"
13247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13248     break 2
13249   fi
13250 done
13251 done
13252 IFS=$as_save_IFS
13253
13254 fi
13255 fi
13256 MINGWAR=$ac_cv_prog_MINGWAR
13257 if test -n "$MINGWAR"; then
13258   { echo "$as_me:$LINENO: result: $MINGWAR" >&5
13259 echo "${ECHO_T}$MINGWAR" >&6; }
13260 else
13261   { echo "$as_me:$LINENO: result: no" >&5
13262 echo "${ECHO_T}no" >&6; }
13263 fi
13264
13265
13266 fi
13267 if test -z "$ac_cv_prog_MINGWAR"; then
13268   ac_ct_MINGWAR=$MINGWAR
13269   # Extract the first word of "ar", so it can be a program name with args.
13270 set dummy ar; ac_word=$2
13271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13273 if test "${ac_cv_prog_ac_ct_MINGWAR+set}" = set; then
13274   echo $ECHO_N "(cached) $ECHO_C" >&6
13275 else
13276   if test -n "$ac_ct_MINGWAR"; then
13277   ac_cv_prog_ac_ct_MINGWAR="$ac_ct_MINGWAR" # Let the user override the test.
13278 else
13279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280 for as_dir in $PATH
13281 do
13282   IFS=$as_save_IFS
13283   test -z "$as_dir" && as_dir=.
13284   for ac_exec_ext in '' $ac_executable_extensions; do
13285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13286     ac_cv_prog_ac_ct_MINGWAR="ar"
13287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13288     break 2
13289   fi
13290 done
13291 done
13292 IFS=$as_save_IFS
13293
13294 fi
13295 fi
13296 ac_ct_MINGWAR=$ac_cv_prog_ac_ct_MINGWAR
13297 if test -n "$ac_ct_MINGWAR"; then
13298   { echo "$as_me:$LINENO: result: $ac_ct_MINGWAR" >&5
13299 echo "${ECHO_T}$ac_ct_MINGWAR" >&6; }
13300 else
13301   { echo "$as_me:$LINENO: result: no" >&5
13302 echo "${ECHO_T}no" >&6; }
13303 fi
13304
13305   if test "x$ac_ct_MINGWAR" = x; then
13306     MINGWAR="false"
13307   else
13308     case $cross_compiling:$ac_tool_warned in
13309 yes:)
13310 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13311 whose name does not start with the host triplet.  If you think this
13312 configuration is useful to you, please write to autoconf@gnu.org." >&5
13313 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13314 whose name does not start with the host triplet.  If you think this
13315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13316 ac_tool_warned=yes ;;
13317 esac
13318     MINGWAR=$ac_ct_MINGWAR
13319   fi
13320 else
13321   MINGWAR="$ac_cv_prog_MINGWAR"
13322 fi
13323
13324     if test "$DLLWRAP" = "false"; then
13325       LIBEXT="a"
13326     else
13327             LIBEXT="dll"
13328     fi
13329     IMPLIBEXT="a"
13330         WIN16_FILES=""
13331     WIN16_INSTALL=""
13332     ;;
13333   darwin*|macosx*)
13334     DLLEXT=".so"
13335     LIBEXT="dylib"
13336     DLLFLAGS="$DLLFLAGS -fPIC"
13337     LDDLLFLAGS="-bundle -multiply_defined suppress"
13338     LIBWINE_LDFLAGS="-multiply_defined suppress"
13339     LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
13340     STRIP="$STRIP -u -r"
13341         COREFOUNDATIONLIB="-framework CoreFoundation"
13342
13343     IOKITLIB="-framework IOKit -framework CoreFoundation"
13344
13345     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
13346
13347     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
13348     then
13349                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
13350
13351     fi
13352     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
13353     then
13354                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
13355
13356     fi
13357     case $host_cpu in
13358       *powerpc*)
13359         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
13360     esac
13361         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
13362     then
13363         CARBONLIB="-framework Carbon"
13364
13365         QUARTZFILES='$(QUARTZFILES)'
13366     fi
13367     ;;
13368   *)
13369     DLLFLAGS="$DLLFLAGS -fPIC"
13370     DLLEXT=".so"
13371     { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13372 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
13373 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13374   echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376   ac_wine_try_cflags_saved=$CFLAGS
13377 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
13378 cat >conftest.$ac_ext <<_ACEOF
13379 void myfunc() {}
13380 _ACEOF
13381 rm -f conftest.$ac_objext conftest$ac_exeext
13382 if { (ac_try="$ac_link"
13383 case "(($ac_try" in
13384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385   *) ac_try_echo=$ac_try;;
13386 esac
13387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388   (eval "$ac_link") 2>conftest.er1
13389   ac_status=$?
13390   grep -v '^ *+' conftest.er1 >conftest.err
13391   rm -f conftest.er1
13392   cat conftest.err >&5
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); } && {
13395          test -z "$ac_c_werror_flag" ||
13396          test ! -s conftest.err
13397        } && test -s conftest$ac_exeext &&
13398        $as_test_x conftest$ac_exeext; then
13399   ac_cv_c_dll_gnuelf="yes"
13400 else
13401   echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13403
13404         ac_cv_c_dll_gnuelf="no"
13405 fi
13406
13407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13408       conftest$ac_exeext conftest.$ac_ext
13409 CFLAGS=$ac_wine_try_cflags_saved
13410 fi
13411 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13412 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
13413     if test "$ac_cv_c_dll_gnuelf" = "yes"
13414     then
13415       LDSHARED="\$(CC) -shared"
13416       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13417       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
13418 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
13419 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
13420   echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422   ac_wine_try_cflags_saved=$CFLAGS
13423 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h.  */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h.  */
13430
13431 int
13432 main ()
13433 {
13434
13435   ;
13436   return 0;
13437 }
13438 _ACEOF
13439 rm -f conftest.$ac_objext conftest$ac_exeext
13440 if { (ac_try="$ac_link"
13441 case "(($ac_try" in
13442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443   *) ac_try_echo=$ac_try;;
13444 esac
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446   (eval "$ac_link") 2>conftest.er1
13447   ac_status=$?
13448   grep -v '^ *+' conftest.er1 >conftest.err
13449   rm -f conftest.er1
13450   cat conftest.err >&5
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); } && {
13453          test -z "$ac_c_werror_flag" ||
13454          test ! -s conftest.err
13455        } && test -s conftest$ac_exeext &&
13456        $as_test_x conftest$ac_exeext; then
13457   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
13458 else
13459   echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462         ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
13463 fi
13464
13465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13466       conftest$ac_exeext conftest.$ac_ext
13467 CFLAGS=$ac_wine_try_cflags_saved
13468 fi
13469 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
13470 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
13471 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
13472   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13473 else
13474   { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
13475 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
13476 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
13477   echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479   ac_wine_try_cflags_saved=$CFLAGS
13480 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
13481 cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h.  */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h.  */
13487
13488 int
13489 main ()
13490 {
13491
13492   ;
13493   return 0;
13494 }
13495 _ACEOF
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (ac_try="$ac_link"
13498 case "(($ac_try" in
13499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500   *) ac_try_echo=$ac_try;;
13501 esac
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503   (eval "$ac_link") 2>conftest.er1
13504   ac_status=$?
13505   grep -v '^ *+' conftest.er1 >conftest.err
13506   rm -f conftest.er1
13507   cat conftest.err >&5
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); } && {
13510          test -z "$ac_c_werror_flag" ||
13511          test ! -s conftest.err
13512        } && test -s conftest$ac_exeext &&
13513        $as_test_x conftest$ac_exeext; then
13514   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
13515 else
13516   echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13518
13519         ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
13520 fi
13521
13522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13523       conftest$ac_exeext conftest.$ac_ext
13524 CFLAGS=$ac_wine_try_cflags_saved
13525 fi
13526 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
13527 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
13528 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
13529   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
13530 fi
13531
13532 fi
13533
13534
13535       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
13536 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
13537 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540   ac_wine_try_cflags_saved=$CFLAGS
13541 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13542 cat >conftest.$ac_ext <<_ACEOF
13543 /* confdefs.h.  */
13544 _ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h.  */
13548
13549 int
13550 main ()
13551 {
13552
13553   ;
13554   return 0;
13555 }
13556 _ACEOF
13557 rm -f conftest.$ac_objext conftest$ac_exeext
13558 if { (ac_try="$ac_link"
13559 case "(($ac_try" in
13560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561   *) ac_try_echo=$ac_try;;
13562 esac
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564   (eval "$ac_link") 2>conftest.er1
13565   ac_status=$?
13566   grep -v '^ *+' conftest.er1 >conftest.err
13567   rm -f conftest.er1
13568   cat conftest.err >&5
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); } && {
13571          test -z "$ac_c_werror_flag" ||
13572          test ! -s conftest.err
13573        } && test -s conftest$ac_exeext &&
13574        $as_test_x conftest$ac_exeext; then
13575   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
13576 else
13577   echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13579
13580         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
13581 fi
13582
13583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13584       conftest$ac_exeext conftest.$ac_ext
13585 CFLAGS=$ac_wine_try_cflags_saved
13586 fi
13587 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
13588 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
13589 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
13590   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13591 fi
13592
13593
13594       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
13595 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
13596 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
13597   echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599   ac_wine_try_cflags_saved=$CFLAGS
13600 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607
13608 int
13609 main ()
13610 {
13611
13612   ;
13613   return 0;
13614 }
13615 _ACEOF
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (ac_try="$ac_link"
13618 case "(($ac_try" in
13619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620   *) ac_try_echo=$ac_try;;
13621 esac
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623   (eval "$ac_link") 2>conftest.er1
13624   ac_status=$?
13625   grep -v '^ *+' conftest.er1 >conftest.err
13626   rm -f conftest.er1
13627   cat conftest.err >&5
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); } && {
13630          test -z "$ac_c_werror_flag" ||
13631          test ! -s conftest.err
13632        } && test -s conftest$ac_exeext &&
13633        $as_test_x conftest$ac_exeext; then
13634   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
13635 else
13636   echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13638
13639         ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
13640 fi
13641
13642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13643       conftest$ac_exeext conftest.$ac_ext
13644 CFLAGS=$ac_wine_try_cflags_saved
13645 fi
13646 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
13647 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
13648 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
13649   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13650 fi
13651
13652
13653       echo '{ global: *; };' >conftest.map
13654       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
13655 echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
13656 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
13657   echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659   ac_wine_try_cflags_saved=$CFLAGS
13660 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h.  */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h.  */
13667
13668 int
13669 main ()
13670 {
13671
13672   ;
13673   return 0;
13674 }
13675 _ACEOF
13676 rm -f conftest.$ac_objext conftest$ac_exeext
13677 if { (ac_try="$ac_link"
13678 case "(($ac_try" in
13679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680   *) ac_try_echo=$ac_try;;
13681 esac
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683   (eval "$ac_link") 2>conftest.er1
13684   ac_status=$?
13685   grep -v '^ *+' conftest.er1 >conftest.err
13686   rm -f conftest.er1
13687   cat conftest.err >&5
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } && {
13690          test -z "$ac_c_werror_flag" ||
13691          test ! -s conftest.err
13692        } && test -s conftest$ac_exeext &&
13693        $as_test_x conftest$ac_exeext; then
13694   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
13695 else
13696   echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13698
13699         ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
13700 fi
13701
13702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13703       conftest$ac_exeext conftest.$ac_ext
13704 CFLAGS=$ac_wine_try_cflags_saved
13705 fi
13706 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
13707 echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
13708 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
13709   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13710 fi
13711
13712       rm -f conftest.map
13713
13714       { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
13715 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
13716 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
13717   echo $ECHO_N "(cached) $ECHO_C" >&6
13718 else
13719   ac_wine_try_cflags_saved=$CFLAGS
13720 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13721 cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h.  */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h.  */
13727
13728 int
13729 main ()
13730 {
13731
13732   ;
13733   return 0;
13734 }
13735 _ACEOF
13736 rm -f conftest.$ac_objext conftest$ac_exeext
13737 if { (ac_try="$ac_link"
13738 case "(($ac_try" in
13739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740   *) ac_try_echo=$ac_try;;
13741 esac
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743   (eval "$ac_link") 2>conftest.er1
13744   ac_status=$?
13745   grep -v '^ *+' conftest.er1 >conftest.err
13746   rm -f conftest.er1
13747   cat conftest.err >&5
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); } && {
13750          test -z "$ac_c_werror_flag" ||
13751          test ! -s conftest.err
13752        } && test -s conftest$ac_exeext &&
13753        $as_test_x conftest$ac_exeext; then
13754   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
13755 else
13756   echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13758
13759         ac_cv_cflags__fPIC__Wl___export_dynamic=no
13760 fi
13761
13762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13763       conftest$ac_exeext conftest.$ac_ext
13764 CFLAGS=$ac_wine_try_cflags_saved
13765 fi
13766 { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
13767 echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
13768 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
13769   LDEXECFLAGS="-Wl,--export-dynamic"
13770
13771 fi
13772
13773
13774       as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
13775 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
13776 echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
13777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13778   echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780   ac_wine_try_cflags_saved=$CFLAGS
13781 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h.  */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h.  */
13788
13789 int
13790 main ()
13791 {
13792
13793   ;
13794   return 0;
13795 }
13796 _ACEOF
13797 rm -f conftest.$ac_objext conftest$ac_exeext
13798 if { (ac_try="$ac_link"
13799 case "(($ac_try" in
13800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801   *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804   (eval "$ac_link") 2>conftest.er1
13805   ac_status=$?
13806   grep -v '^ *+' conftest.er1 >conftest.err
13807   rm -f conftest.er1
13808   cat conftest.err >&5
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); } && {
13811          test -z "$ac_c_werror_flag" ||
13812          test ! -s conftest.err
13813        } && test -s conftest$ac_exeext &&
13814        $as_test_x conftest$ac_exeext; then
13815   eval "$as_ac_var=yes"
13816 else
13817   echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13819
13820         eval "$as_ac_var=no"
13821 fi
13822
13823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13824       conftest$ac_exeext conftest.$ac_ext
13825 CFLAGS=$ac_wine_try_cflags_saved
13826 fi
13827 ac_res=`eval echo '${'$as_ac_var'}'`
13828                { echo "$as_me:$LINENO: result: $ac_res" >&5
13829 echo "${ECHO_T}$ac_res" >&6; }
13830 if test `eval echo '${'$as_ac_var'}'` = yes; then
13831   LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
13832 fi
13833
13834
13835       case $host_cpu in
13836         *i[3456789]86* | x86_64)
13837           { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
13838 echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
13839 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
13840   echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842   ac_wine_try_cflags_saved=$CFLAGS
13843 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
13844 cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h.  */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h.  */
13850
13851 int
13852 main ()
13853 {
13854
13855   ;
13856   return 0;
13857 }
13858 _ACEOF
13859 rm -f conftest.$ac_objext conftest$ac_exeext
13860 if { (ac_try="$ac_link"
13861 case "(($ac_try" in
13862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863   *) ac_try_echo=$ac_try;;
13864 esac
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866   (eval "$ac_link") 2>conftest.er1
13867   ac_status=$?
13868   grep -v '^ *+' conftest.er1 >conftest.err
13869   rm -f conftest.er1
13870   cat conftest.err >&5
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); } && {
13873          test -z "$ac_c_werror_flag" ||
13874          test ! -s conftest.err
13875        } && test -s conftest$ac_exeext &&
13876        $as_test_x conftest$ac_exeext; then
13877   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
13878 else
13879   echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13881
13882         ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
13883 fi
13884
13885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13886       conftest$ac_exeext conftest.$ac_ext
13887 CFLAGS=$ac_wine_try_cflags_saved
13888 fi
13889 { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
13890 echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
13891 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
13892   LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
13893 fi
13894
13895           ;;
13896       esac
13897
13898     else
13899       { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13900 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
13901 if test "${ac_cv_c_dll_unixware+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   ac_wine_try_cflags_saved=$CFLAGS
13905 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13906 cat >conftest.$ac_ext <<_ACEOF
13907 void myfunc() {}
13908 _ACEOF
13909 rm -f conftest.$ac_objext conftest$ac_exeext
13910 if { (ac_try="$ac_link"
13911 case "(($ac_try" in
13912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913   *) ac_try_echo=$ac_try;;
13914 esac
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916   (eval "$ac_link") 2>conftest.er1
13917   ac_status=$?
13918   grep -v '^ *+' conftest.er1 >conftest.err
13919   rm -f conftest.er1
13920   cat conftest.err >&5
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); } && {
13923          test -z "$ac_c_werror_flag" ||
13924          test ! -s conftest.err
13925        } && test -s conftest$ac_exeext &&
13926        $as_test_x conftest$ac_exeext; then
13927   ac_cv_c_dll_unixware="yes"
13928 else
13929   echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13931
13932         ac_cv_c_dll_unixware="no"
13933 fi
13934
13935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13936       conftest$ac_exeext conftest.$ac_ext
13937 CFLAGS=$ac_wine_try_cflags_saved
13938 fi
13939 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13940 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
13941       if test "$ac_cv_c_dll_unixware" = "yes"
13942       then
13943         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13944         LDDLLFLAGS="-Wl,-G,-B,symbolic"
13945
13946       else
13947         { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
13948 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
13949 if test "${ac_cv_c_dll_hpux+set}" = set; then
13950   echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952   ac_wine_try_cflags_saved=$CFLAGS
13953 CFLAGS="$CFLAGS -shared"
13954 cat >conftest.$ac_ext <<_ACEOF
13955 void myfunc() {}
13956 _ACEOF
13957 rm -f conftest.$ac_objext conftest$ac_exeext
13958 if { (ac_try="$ac_link"
13959 case "(($ac_try" in
13960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961   *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964   (eval "$ac_link") 2>conftest.er1
13965   ac_status=$?
13966   grep -v '^ *+' conftest.er1 >conftest.err
13967   rm -f conftest.er1
13968   cat conftest.err >&5
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); } && {
13971          test -z "$ac_c_werror_flag" ||
13972          test ! -s conftest.err
13973        } && test -s conftest$ac_exeext &&
13974        $as_test_x conftest$ac_exeext; then
13975   ac_cv_c_dll_hpux="yes"
13976 else
13977   echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980         ac_cv_c_dll_hpux="no"
13981 fi
13982
13983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13984       conftest$ac_exeext conftest.$ac_ext
13985 CFLAGS=$ac_wine_try_cflags_saved
13986 fi
13987 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
13988 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
13989         if test "$ac_cv_c_dll_hpux" = "yes"
13990         then
13991           LIBEXT="sl"
13992           DLLEXT=".sl"
13993           LDDLLFLAGS="-shared -fPIC"
13994           LDSHARED="\$(CC) -shared"
13995         fi
13996       fi
13997     fi
13998
13999         CROSSTEST=""
14000
14001     if test "$cross_compiling" = "no"
14002     then
14003       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
14004 do
14005   # Extract the first word of "$ac_prog", so it can be a program name with args.
14006 set dummy $ac_prog; ac_word=$2
14007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14009 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14010   echo $ECHO_N "(cached) $ECHO_C" >&6
14011 else
14012   if test -n "$CROSSCC"; then
14013   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14014 else
14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14017 do
14018   IFS=$as_save_IFS
14019   test -z "$as_dir" && as_dir=.
14020   for ac_exec_ext in '' $ac_executable_extensions; do
14021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14022     ac_cv_prog_CROSSCC="$ac_prog"
14023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14024     break 2
14025   fi
14026 done
14027 done
14028 IFS=$as_save_IFS
14029
14030 fi
14031 fi
14032 CROSSCC=$ac_cv_prog_CROSSCC
14033 if test -n "$CROSSCC"; then
14034   { echo "$as_me:$LINENO: result: $CROSSCC" >&5
14035 echo "${ECHO_T}$CROSSCC" >&6; }
14036 else
14037   { echo "$as_me:$LINENO: result: no" >&5
14038 echo "${ECHO_T}no" >&6; }
14039 fi
14040
14041
14042   test -n "$CROSSCC" && break
14043 done
14044 test -n "$CROSSCC" || CROSSCC="false"
14045
14046       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
14047 do
14048   # Extract the first word of "$ac_prog", so it can be a program name with args.
14049 set dummy $ac_prog; ac_word=$2
14050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14052 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14053   echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055   if test -n "$DLLTOOL"; then
14056   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14057 else
14058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14059 for as_dir in $PATH
14060 do
14061   IFS=$as_save_IFS
14062   test -z "$as_dir" && as_dir=.
14063   for ac_exec_ext in '' $ac_executable_extensions; do
14064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14065     ac_cv_prog_DLLTOOL="$ac_prog"
14066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14067     break 2
14068   fi
14069 done
14070 done
14071 IFS=$as_save_IFS
14072
14073 fi
14074 fi
14075 DLLTOOL=$ac_cv_prog_DLLTOOL
14076 if test -n "$DLLTOOL"; then
14077   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14078 echo "${ECHO_T}$DLLTOOL" >&6; }
14079 else
14080   { echo "$as_me:$LINENO: result: no" >&5
14081 echo "${ECHO_T}no" >&6; }
14082 fi
14083
14084
14085   test -n "$DLLTOOL" && break
14086 done
14087 test -n "$DLLTOOL" || DLLTOOL="false"
14088
14089       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres
14090 do
14091   # Extract the first word of "$ac_prog", so it can be a program name with args.
14092 set dummy $ac_prog; ac_word=$2
14093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14095 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14096   echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098   if test -n "$CROSSWINDRES"; then
14099   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14100 else
14101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102 for as_dir in $PATH
14103 do
14104   IFS=$as_save_IFS
14105   test -z "$as_dir" && as_dir=.
14106   for ac_exec_ext in '' $ac_executable_extensions; do
14107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14108     ac_cv_prog_CROSSWINDRES="$ac_prog"
14109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14110     break 2
14111   fi
14112 done
14113 done
14114 IFS=$as_save_IFS
14115
14116 fi
14117 fi
14118 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14119 if test -n "$CROSSWINDRES"; then
14120   { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14121 echo "${ECHO_T}$CROSSWINDRES" >&6; }
14122 else
14123   { echo "$as_me:$LINENO: result: no" >&5
14124 echo "${ECHO_T}no" >&6; }
14125 fi
14126
14127
14128   test -n "$CROSSWINDRES" && break
14129 done
14130 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14131
14132       for ac_prog in i586-mingw32msvc-ar i386-mingw32msvc-ar i386-mingw32-ar mingw32-ar mingw-ar
14133 do
14134   # Extract the first word of "$ac_prog", so it can be a program name with args.
14135 set dummy $ac_prog; ac_word=$2
14136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14138 if test "${ac_cv_prog_MINGWAR+set}" = set; then
14139   echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14141   if test -n "$MINGWAR"; then
14142   ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
14143 else
14144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14145 for as_dir in $PATH
14146 do
14147   IFS=$as_save_IFS
14148   test -z "$as_dir" && as_dir=.
14149   for ac_exec_ext in '' $ac_executable_extensions; do
14150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14151     ac_cv_prog_MINGWAR="$ac_prog"
14152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14153     break 2
14154   fi
14155 done
14156 done
14157 IFS=$as_save_IFS
14158
14159 fi
14160 fi
14161 MINGWAR=$ac_cv_prog_MINGWAR
14162 if test -n "$MINGWAR"; then
14163   { echo "$as_me:$LINENO: result: $MINGWAR" >&5
14164 echo "${ECHO_T}$MINGWAR" >&6; }
14165 else
14166   { echo "$as_me:$LINENO: result: no" >&5
14167 echo "${ECHO_T}no" >&6; }
14168 fi
14169
14170
14171   test -n "$MINGWAR" && break
14172 done
14173 test -n "$MINGWAR" || MINGWAR="false"
14174
14175       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14176     fi
14177     ;;
14178 esac
14179
14180 if test "$LIBEXT" = "a"; then
14181   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14182 It is currently not possible to build Wine without shared library
14183 (.so) support to allow transparent switch between .so and .dll files.
14184 If you are using Linux, you will need a newer binutils.
14185 " >&5
14186 echo "$as_me: error: could not find a way to build shared libraries.
14187 It is currently not possible to build Wine without shared library
14188 (.so) support to allow transparent switch between .so and .dll files.
14189 If you are using Linux, you will need a newer binutils.
14190 " >&2;}
14191    { (exit 1); exit 1; }; }
14192 fi
14193
14194 case $build_os in
14195   cygwin*|mingw32*)
14196     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
14197  ;;
14198   darwin*|macosx*)
14199     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
14200  ;;
14201   *)
14202     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
14203  ;;
14204 esac
14205
14206 case $host_os in
14207   mingw32*)
14208     CRTLIBS="-lmsvcrt"
14209
14210     SOCKETLIBS="-lws2_32"
14211
14212     ;;
14213 esac
14214
14215 MAIN_BINARY="wine-pthread"
14216   case $host_cpu in
14217   *i[3456789]86*)
14218     case $host_os in
14219       linux* | k*bsd*-gnu)
14220         MAIN_BINARY="wine-glibc"
14221
14222         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
14223  ;;
14224     esac
14225     ;;
14226 esac
14227
14228
14229 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14230 then
14231   # Extract the first word of "ldd", so it can be a program name with args.
14232 set dummy ldd; ac_word=$2
14233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14235 if test "${ac_cv_path_LDD+set}" = set; then
14236   echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238   case $LDD in
14239   [\\/]* | ?:[\\/]*)
14240   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14241   ;;
14242   *)
14243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14244 as_dummy="/sbin:/usr/sbin:$PATH"
14245 for as_dir in $as_dummy
14246 do
14247   IFS=$as_save_IFS
14248   test -z "$as_dir" && as_dir=.
14249   for ac_exec_ext in '' $ac_executable_extensions; do
14250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14251     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14253     break 2
14254   fi
14255 done
14256 done
14257 IFS=$as_save_IFS
14258
14259   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14260   ;;
14261 esac
14262 fi
14263 LDD=$ac_cv_path_LDD
14264 if test -n "$LDD"; then
14265   { echo "$as_me:$LINENO: result: $LDD" >&5
14266 echo "${ECHO_T}$LDD" >&6; }
14267 else
14268   { echo "$as_me:$LINENO: result: no" >&5
14269 echo "${ECHO_T}no" >&6; }
14270 fi
14271
14272
14273 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14274 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
14275 if test "${ac_cv_lib_soname_X11+set}" = set; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278   ac_get_soname_save_LIBS=$LIBS
14279 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14280   cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h.  */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h.  */
14286
14287 /* Override any GCC internal prototype to avoid an error.
14288    Use char because int might match the return type of a GCC
14289    builtin and then its argument prototype would still apply.  */
14290 #ifdef __cplusplus
14291 extern "C"
14292 #endif
14293 char XCreateWindow ();
14294 int
14295 main ()
14296 {
14297 return XCreateWindow ();
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest.$ac_objext conftest$ac_exeext
14303 if { (ac_try="$ac_link"
14304 case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309   (eval "$ac_link") 2>conftest.er1
14310   ac_status=$?
14311   grep -v '^ *+' conftest.er1 >conftest.err
14312   rm -f conftest.er1
14313   cat conftest.err >&5
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } && {
14316          test -z "$ac_c_werror_flag" ||
14317          test ! -s conftest.err
14318        } && test -s conftest$ac_exeext &&
14319        $as_test_x conftest$ac_exeext; then
14320   case "$LIBEXT" in
14321     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'` ;;
14322     so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^        ]*\).*$/\1/"';2,$d'` ;;
14323   esac
14324   if test "x$ac_cv_lib_soname_X11" = "x"
14325   then
14326      ac_cv_lib_soname_X11="libX11.$LIBEXT"
14327   fi
14328 else
14329   echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332         ac_cv_lib_soname_X11="libX11.$LIBEXT"
14333 fi
14334
14335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14336       conftest$ac_exeext conftest.$ac_ext
14337   LIBS=$ac_get_soname_save_LIBS
14338 fi
14339 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14340 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
14341 if test "${ac_cv_lib_soname_X11+set}" = set; then
14342
14343 cat >>confdefs.h <<_ACEOF
14344 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14345 _ACEOF
14346
14347 fi
14348
14349   { echo "$as_me:$LINENO: checking for -lXext soname" >&5
14350 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
14351 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14352   echo $ECHO_N "(cached) $ECHO_C" >&6
14353 else
14354   ac_get_soname_save_LIBS=$LIBS
14355 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14356   cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h.  */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h.  */
14362
14363 /* Override any GCC internal prototype to avoid an error.
14364    Use char because int might match the return type of a GCC
14365    builtin and then its argument prototype would still apply.  */
14366 #ifdef __cplusplus
14367 extern "C"
14368 #endif
14369 char XextCreateExtension ();
14370 int
14371 main ()
14372 {
14373 return XextCreateExtension ();
14374   ;
14375   return 0;
14376 }
14377 _ACEOF
14378 rm -f conftest.$ac_objext conftest$ac_exeext
14379 if { (ac_try="$ac_link"
14380 case "(($ac_try" in
14381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382   *) ac_try_echo=$ac_try;;
14383 esac
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385   (eval "$ac_link") 2>conftest.er1
14386   ac_status=$?
14387   grep -v '^ *+' conftest.er1 >conftest.err
14388   rm -f conftest.er1
14389   cat conftest.err >&5
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); } && {
14392          test -z "$ac_c_werror_flag" ||
14393          test ! -s conftest.err
14394        } && test -s conftest$ac_exeext &&
14395        $as_test_x conftest$ac_exeext; then
14396   case "$LIBEXT" in
14397     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'` ;;
14398     so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^     ]*\).*$/\1/"';2,$d'` ;;
14399   esac
14400   if test "x$ac_cv_lib_soname_Xext" = "x"
14401   then
14402      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14403   fi
14404 else
14405   echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14407
14408         ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14409 fi
14410
14411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14412       conftest$ac_exeext conftest.$ac_ext
14413   LIBS=$ac_get_soname_save_LIBS
14414 fi
14415 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14416 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
14417 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14418
14419 cat >>confdefs.h <<_ACEOF
14420 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14421 _ACEOF
14422
14423 fi
14424
14425   { echo "$as_me:$LINENO: checking for -lXi soname" >&5
14426 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
14427 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14428   echo $ECHO_N "(cached) $ECHO_C" >&6
14429 else
14430   ac_get_soname_save_LIBS=$LIBS
14431 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14432   cat >conftest.$ac_ext <<_ACEOF
14433 /* confdefs.h.  */
14434 _ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h.  */
14438
14439 /* Override any GCC internal prototype to avoid an error.
14440    Use char because int might match the return type of a GCC
14441    builtin and then its argument prototype would still apply.  */
14442 #ifdef __cplusplus
14443 extern "C"
14444 #endif
14445 char XOpenDevice ();
14446 int
14447 main ()
14448 {
14449 return XOpenDevice ();
14450   ;
14451   return 0;
14452 }
14453 _ACEOF
14454 rm -f conftest.$ac_objext conftest$ac_exeext
14455 if { (ac_try="$ac_link"
14456 case "(($ac_try" in
14457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458   *) ac_try_echo=$ac_try;;
14459 esac
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461   (eval "$ac_link") 2>conftest.er1
14462   ac_status=$?
14463   grep -v '^ *+' conftest.er1 >conftest.err
14464   rm -f conftest.er1
14465   cat conftest.err >&5
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); } && {
14468          test -z "$ac_c_werror_flag" ||
14469          test ! -s conftest.err
14470        } && test -s conftest$ac_exeext &&
14471        $as_test_x conftest$ac_exeext; then
14472   case "$LIBEXT" in
14473     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'` ;;
14474     so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^   ]*\).*$/\1/"';2,$d'` ;;
14475   esac
14476   if test "x$ac_cv_lib_soname_Xi" = "x"
14477   then
14478      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14479   fi
14480 else
14481   echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14483
14484         ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14485 fi
14486
14487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14488       conftest$ac_exeext conftest.$ac_ext
14489   LIBS=$ac_get_soname_save_LIBS
14490 fi
14491 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14492 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
14493 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14494
14495 cat >>confdefs.h <<_ACEOF
14496 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14497 _ACEOF
14498
14499 fi
14500
14501   { echo "$as_me:$LINENO: checking for -lXinerama soname" >&5
14502 echo $ECHO_N "checking for -lXinerama soname... $ECHO_C" >&6; }
14503 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14504   echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506   ac_get_soname_save_LIBS=$LIBS
14507 LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14508   cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h.  */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h.  */
14514
14515 /* Override any GCC internal prototype to avoid an error.
14516    Use char because int might match the return type of a GCC
14517    builtin and then its argument prototype would still apply.  */
14518 #ifdef __cplusplus
14519 extern "C"
14520 #endif
14521 char XineramaQueryScreens ();
14522 int
14523 main ()
14524 {
14525 return XineramaQueryScreens ();
14526   ;
14527   return 0;
14528 }
14529 _ACEOF
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (ac_try="$ac_link"
14532 case "(($ac_try" in
14533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534   *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537   (eval "$ac_link") 2>conftest.er1
14538   ac_status=$?
14539   grep -v '^ *+' conftest.er1 >conftest.err
14540   rm -f conftest.er1
14541   cat conftest.err >&5
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); } && {
14544          test -z "$ac_c_werror_flag" ||
14545          test ! -s conftest.err
14546        } && test -s conftest$ac_exeext &&
14547        $as_test_x conftest$ac_exeext; then
14548   case "$LIBEXT" in
14549     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'` ;;
14550     so) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep libXinerama\\.so | sed -e "s/^.*\(libXinerama\.so[^         ]*\).*$/\1/"';2,$d'` ;;
14551   esac
14552   if test "x$ac_cv_lib_soname_Xinerama" = "x"
14553   then
14554      ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14555   fi
14556 else
14557   echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560         ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
14561 fi
14562
14563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14564       conftest$ac_exeext conftest.$ac_ext
14565   LIBS=$ac_get_soname_save_LIBS
14566 fi
14567 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
14568 echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
14569 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
14570
14571 cat >>confdefs.h <<_ACEOF
14572 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
14573 _ACEOF
14574
14575 fi
14576
14577   { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14578 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
14579 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14580   echo $ECHO_N "(cached) $ECHO_C" >&6
14581 else
14582   ac_get_soname_save_LIBS=$LIBS
14583 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14584   cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h.  */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h.  */
14590
14591 /* Override any GCC internal prototype to avoid an error.
14592    Use char because int might match the return type of a GCC
14593    builtin and then its argument prototype would still apply.  */
14594 #ifdef __cplusplus
14595 extern "C"
14596 #endif
14597 char XRenderQueryExtension ();
14598 int
14599 main ()
14600 {
14601 return XRenderQueryExtension ();
14602   ;
14603   return 0;
14604 }
14605 _ACEOF
14606 rm -f conftest.$ac_objext conftest$ac_exeext
14607 if { (ac_try="$ac_link"
14608 case "(($ac_try" in
14609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610   *) ac_try_echo=$ac_try;;
14611 esac
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613   (eval "$ac_link") 2>conftest.er1
14614   ac_status=$?
14615   grep -v '^ *+' conftest.er1 >conftest.err
14616   rm -f conftest.er1
14617   cat conftest.err >&5
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); } && {
14620          test -z "$ac_c_werror_flag" ||
14621          test ! -s conftest.err
14622        } && test -s conftest$ac_exeext &&
14623        $as_test_x conftest$ac_exeext; then
14624   case "$LIBEXT" in
14625     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'` ;;
14626     so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^    ]*\).*$/\1/"';2,$d'` ;;
14627   esac
14628   if test "x$ac_cv_lib_soname_Xrender" = "x"
14629   then
14630      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14631   fi
14632 else
14633   echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636         ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14637 fi
14638
14639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14640       conftest$ac_exeext conftest.$ac_ext
14641   LIBS=$ac_get_soname_save_LIBS
14642 fi
14643 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14644 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
14645 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14646
14647 cat >>confdefs.h <<_ACEOF
14648 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14649 _ACEOF
14650
14651 fi
14652
14653   { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14654 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
14655 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14656   echo $ECHO_N "(cached) $ECHO_C" >&6
14657 else
14658   ac_get_soname_save_LIBS=$LIBS
14659 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14660   cat >conftest.$ac_ext <<_ACEOF
14661 /* confdefs.h.  */
14662 _ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h.  */
14666
14667 /* Override any GCC internal prototype to avoid an error.
14668    Use char because int might match the return type of a GCC
14669    builtin and then its argument prototype would still apply.  */
14670 #ifdef __cplusplus
14671 extern "C"
14672 #endif
14673 char XRRQueryExtension ();
14674 int
14675 main ()
14676 {
14677 return XRRQueryExtension ();
14678   ;
14679   return 0;
14680 }
14681 _ACEOF
14682 rm -f conftest.$ac_objext conftest$ac_exeext
14683 if { (ac_try="$ac_link"
14684 case "(($ac_try" in
14685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686   *) ac_try_echo=$ac_try;;
14687 esac
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689   (eval "$ac_link") 2>conftest.er1
14690   ac_status=$?
14691   grep -v '^ *+' conftest.er1 >conftest.err
14692   rm -f conftest.er1
14693   cat conftest.err >&5
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); } && {
14696          test -z "$ac_c_werror_flag" ||
14697          test ! -s conftest.err
14698        } && test -s conftest$ac_exeext &&
14699        $as_test_x conftest$ac_exeext; then
14700   case "$LIBEXT" in
14701     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'` ;;
14702     so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^       ]*\).*$/\1/"';2,$d'` ;;
14703   esac
14704   if test "x$ac_cv_lib_soname_Xrandr" = "x"
14705   then
14706      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14707   fi
14708 else
14709   echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14711
14712         ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14713 fi
14714
14715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14716       conftest$ac_exeext conftest.$ac_ext
14717   LIBS=$ac_get_soname_save_LIBS
14718 fi
14719 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14720 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
14721 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14722
14723 cat >>confdefs.h <<_ACEOF
14724 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14725 _ACEOF
14726
14727 fi
14728
14729   { echo "$as_me:$LINENO: checking for -lXcursor soname" >&5
14730 echo $ECHO_N "checking for -lXcursor soname... $ECHO_C" >&6; }
14731 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then
14732   echo $ECHO_N "(cached) $ECHO_C" >&6
14733 else
14734   ac_get_soname_save_LIBS=$LIBS
14735 LIBS="-lXcursor $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14736   cat >conftest.$ac_ext <<_ACEOF
14737 /* confdefs.h.  */
14738 _ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h.  */
14742
14743 /* Override any GCC internal prototype to avoid an error.
14744    Use char because int might match the return type of a GCC
14745    builtin and then its argument prototype would still apply.  */
14746 #ifdef __cplusplus
14747 extern "C"
14748 #endif
14749 char XcursorImageLoadCursor ();
14750 int
14751 main ()
14752 {
14753 return XcursorImageLoadCursor ();
14754   ;
14755   return 0;
14756 }
14757 _ACEOF
14758 rm -f conftest.$ac_objext conftest$ac_exeext
14759 if { (ac_try="$ac_link"
14760 case "(($ac_try" in
14761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762   *) ac_try_echo=$ac_try;;
14763 esac
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765   (eval "$ac_link") 2>conftest.er1
14766   ac_status=$?
14767   grep -v '^ *+' conftest.er1 >conftest.err
14768   rm -f conftest.er1
14769   cat conftest.err >&5
14770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771   (exit $ac_status); } && {
14772          test -z "$ac_c_werror_flag" ||
14773          test ! -s conftest.err
14774        } && test -s conftest$ac_exeext &&
14775        $as_test_x conftest$ac_exeext; then
14776   case "$LIBEXT" in
14777     dylib) ac_cv_lib_soname_Xcursor=`otool -L conftest$ac_exeext | grep libXcursor\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXcursor\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14778     so) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep libXcursor\\.so | sed -e "s/^.*\(libXcursor\.so[^    ]*\).*$/\1/"';2,$d'` ;;
14779   esac
14780   if test "x$ac_cv_lib_soname_Xcursor" = "x"
14781   then
14782      ac_cv_lib_soname_Xcursor="libXcursor.$LIBEXT"
14783   fi
14784 else
14785   echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14787
14788         ac_cv_lib_soname_Xcursor="libXcursor.$LIBEXT"
14789 fi
14790
14791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14792       conftest$ac_exeext conftest.$ac_ext
14793   LIBS=$ac_get_soname_save_LIBS
14794 fi
14795 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xcursor" >&5
14796 echo "${ECHO_T}$ac_cv_lib_soname_Xcursor" >&6; }
14797 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then
14798
14799 cat >>confdefs.h <<_ACEOF
14800 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
14801 _ACEOF
14802
14803 fi
14804
14805   { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14806 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
14807 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14808   echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810   ac_get_soname_save_LIBS=$LIBS
14811 LIBS="-lfreetype $X_LIBS $LIBS"
14812   cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h.  */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h.  */
14818
14819 /* Override any GCC internal prototype to avoid an error.
14820    Use char because int might match the return type of a GCC
14821    builtin and then its argument prototype would still apply.  */
14822 #ifdef __cplusplus
14823 extern "C"
14824 #endif
14825 char FT_Init_FreeType ();
14826 int
14827 main ()
14828 {
14829 return FT_Init_FreeType ();
14830   ;
14831   return 0;
14832 }
14833 _ACEOF
14834 rm -f conftest.$ac_objext conftest$ac_exeext
14835 if { (ac_try="$ac_link"
14836 case "(($ac_try" in
14837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838   *) ac_try_echo=$ac_try;;
14839 esac
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841   (eval "$ac_link") 2>conftest.er1
14842   ac_status=$?
14843   grep -v '^ *+' conftest.er1 >conftest.err
14844   rm -f conftest.er1
14845   cat conftest.err >&5
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); } && {
14848          test -z "$ac_c_werror_flag" ||
14849          test ! -s conftest.err
14850        } && test -s conftest$ac_exeext &&
14851        $as_test_x conftest$ac_exeext; then
14852   case "$LIBEXT" in
14853     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'` ;;
14854     so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^         ]*\).*$/\1/"';2,$d'` ;;
14855   esac
14856   if test "x$ac_cv_lib_soname_freetype" = "x"
14857   then
14858      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14859   fi
14860 else
14861   echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14863
14864         ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14865 fi
14866
14867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14868       conftest$ac_exeext conftest.$ac_ext
14869   LIBS=$ac_get_soname_save_LIBS
14870 fi
14871 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14872 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
14873 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14874
14875 cat >>confdefs.h <<_ACEOF
14876 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14877 _ACEOF
14878
14879 fi
14880
14881   { echo "$as_me:$LINENO: checking for -lGL soname" >&5
14882 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
14883 if test "${ac_cv_lib_soname_GL+set}" = set; then
14884   echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886   ac_get_soname_save_LIBS=$LIBS
14887 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14888   cat >conftest.$ac_ext <<_ACEOF
14889 /* confdefs.h.  */
14890 _ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h.  */
14894
14895 /* Override any GCC internal prototype to avoid an error.
14896    Use char because int might match the return type of a GCC
14897    builtin and then its argument prototype would still apply.  */
14898 #ifdef __cplusplus
14899 extern "C"
14900 #endif
14901 char glXQueryExtension ();
14902 int
14903 main ()
14904 {
14905 return glXQueryExtension ();
14906   ;
14907   return 0;
14908 }
14909 _ACEOF
14910 rm -f conftest.$ac_objext conftest$ac_exeext
14911 if { (ac_try="$ac_link"
14912 case "(($ac_try" in
14913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914   *) ac_try_echo=$ac_try;;
14915 esac
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917   (eval "$ac_link") 2>conftest.er1
14918   ac_status=$?
14919   grep -v '^ *+' conftest.er1 >conftest.err
14920   rm -f conftest.er1
14921   cat conftest.err >&5
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); } && {
14924          test -z "$ac_c_werror_flag" ||
14925          test ! -s conftest.err
14926        } && test -s conftest$ac_exeext &&
14927        $as_test_x conftest$ac_exeext; then
14928   case "$LIBEXT" in
14929     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'` ;;
14930     so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^   ]*\).*$/\1/"';2,$d'` ;;
14931   esac
14932   if test "x$ac_cv_lib_soname_GL" = "x"
14933   then
14934      ac_cv_lib_soname_GL="libGL.$LIBEXT"
14935   fi
14936 else
14937   echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940         ac_cv_lib_soname_GL="libGL.$LIBEXT"
14941 fi
14942
14943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14944       conftest$ac_exeext conftest.$ac_ext
14945   LIBS=$ac_get_soname_save_LIBS
14946 fi
14947 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14948 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
14949 if test "${ac_cv_lib_soname_GL+set}" = set; then
14950
14951 cat >>confdefs.h <<_ACEOF
14952 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14953 _ACEOF
14954
14955 fi
14956
14957   { echo "$as_me:$LINENO: checking for -lhal soname" >&5
14958 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
14959 if test "${ac_cv_lib_soname_hal+set}" = set; then
14960   echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962   ac_get_soname_save_LIBS=$LIBS
14963 LIBS="-lhal  $LIBS"
14964   cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h.  */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h.  */
14970
14971 /* Override any GCC internal prototype to avoid an error.
14972    Use char because int might match the return type of a GCC
14973    builtin and then its argument prototype would still apply.  */
14974 #ifdef __cplusplus
14975 extern "C"
14976 #endif
14977 char libhal_ctx_new ();
14978 int
14979 main ()
14980 {
14981 return libhal_ctx_new ();
14982   ;
14983   return 0;
14984 }
14985 _ACEOF
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (ac_try="$ac_link"
14988 case "(($ac_try" in
14989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990   *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993   (eval "$ac_link") 2>conftest.er1
14994   ac_status=$?
14995   grep -v '^ *+' conftest.er1 >conftest.err
14996   rm -f conftest.er1
14997   cat conftest.err >&5
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); } && {
15000          test -z "$ac_c_werror_flag" ||
15001          test ! -s conftest.err
15002        } && test -s conftest$ac_exeext &&
15003        $as_test_x conftest$ac_exeext; then
15004   case "$LIBEXT" in
15005     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'` ;;
15006     so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^        ]*\).*$/\1/"';2,$d'` ;;
15007   esac
15008   if test "x$ac_cv_lib_soname_hal" = "x"
15009   then
15010      ac_cv_lib_soname_hal="libhal.$LIBEXT"
15011   fi
15012 else
15013   echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15015
15016         ac_cv_lib_soname_hal="libhal.$LIBEXT"
15017 fi
15018
15019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15020       conftest$ac_exeext conftest.$ac_ext
15021   LIBS=$ac_get_soname_save_LIBS
15022 fi
15023 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
15024 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
15025 if test "${ac_cv_lib_soname_hal+set}" = set; then
15026
15027 cat >>confdefs.h <<_ACEOF
15028 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
15029 _ACEOF
15030
15031 fi
15032
15033   { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
15034 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
15035 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15036   echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038   ac_get_soname_save_LIBS=$LIBS
15039 LIBS="-ltxc_dxtn  $LIBS"
15040   cat >conftest.$ac_ext <<_ACEOF
15041 /* confdefs.h.  */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h.  */
15046
15047 /* Override any GCC internal prototype to avoid an error.
15048    Use char because int might match the return type of a GCC
15049    builtin and then its argument prototype would still apply.  */
15050 #ifdef __cplusplus
15051 extern "C"
15052 #endif
15053 char fetch_2d_texel_rgba_dxt1 ();
15054 int
15055 main ()
15056 {
15057 return fetch_2d_texel_rgba_dxt1 ();
15058   ;
15059   return 0;
15060 }
15061 _ACEOF
15062 rm -f conftest.$ac_objext conftest$ac_exeext
15063 if { (ac_try="$ac_link"
15064 case "(($ac_try" in
15065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066   *) ac_try_echo=$ac_try;;
15067 esac
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069   (eval "$ac_link") 2>conftest.er1
15070   ac_status=$?
15071   grep -v '^ *+' conftest.er1 >conftest.err
15072   rm -f conftest.er1
15073   cat conftest.err >&5
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); } && {
15076          test -z "$ac_c_werror_flag" ||
15077          test ! -s conftest.err
15078        } && test -s conftest$ac_exeext &&
15079        $as_test_x conftest$ac_exeext; then
15080   case "$LIBEXT" in
15081     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'` ;;
15082     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'` ;;
15083   esac
15084   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
15085   then
15086      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15087   fi
15088 else
15089   echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15091
15092         ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15093 fi
15094
15095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15096       conftest$ac_exeext conftest.$ac_ext
15097   LIBS=$ac_get_soname_save_LIBS
15098 fi
15099 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15100 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
15101 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15102
15103 cat >>confdefs.h <<_ACEOF
15104 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15105 _ACEOF
15106
15107 fi
15108
15109   { echo "$as_me:$LINENO: checking for -lcups soname" >&5
15110 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
15111 if test "${ac_cv_lib_soname_cups+set}" = set; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114   ac_get_soname_save_LIBS=$LIBS
15115 LIBS="-lcups  $LIBS"
15116   cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h.  */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h.  */
15122
15123 /* Override any GCC internal prototype to avoid an error.
15124    Use char because int might match the return type of a GCC
15125    builtin and then its argument prototype would still apply.  */
15126 #ifdef __cplusplus
15127 extern "C"
15128 #endif
15129 char cupsGetDefault ();
15130 int
15131 main ()
15132 {
15133 return cupsGetDefault ();
15134   ;
15135   return 0;
15136 }
15137 _ACEOF
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (ac_try="$ac_link"
15140 case "(($ac_try" in
15141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142   *) ac_try_echo=$ac_try;;
15143 esac
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145   (eval "$ac_link") 2>conftest.er1
15146   ac_status=$?
15147   grep -v '^ *+' conftest.er1 >conftest.err
15148   rm -f conftest.er1
15149   cat conftest.err >&5
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); } && {
15152          test -z "$ac_c_werror_flag" ||
15153          test ! -s conftest.err
15154        } && test -s conftest$ac_exeext &&
15155        $as_test_x conftest$ac_exeext; then
15156   case "$LIBEXT" in
15157     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'` ;;
15158     so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^     ]*\).*$/\1/"';2,$d'` ;;
15159   esac
15160   if test "x$ac_cv_lib_soname_cups" = "x"
15161   then
15162      ac_cv_lib_soname_cups="libcups.$LIBEXT"
15163   fi
15164 else
15165   echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15167
15168         ac_cv_lib_soname_cups="libcups.$LIBEXT"
15169 fi
15170
15171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15172       conftest$ac_exeext conftest.$ac_ext
15173   LIBS=$ac_get_soname_save_LIBS
15174 fi
15175 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15176 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
15177 if test "${ac_cv_lib_soname_cups+set}" = set; then
15178
15179 cat >>confdefs.h <<_ACEOF
15180 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15181 _ACEOF
15182
15183 fi
15184
15185   { echo "$as_me:$LINENO: checking for -ljack soname" >&5
15186 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
15187 if test "${ac_cv_lib_soname_jack+set}" = set; then
15188   echo $ECHO_N "(cached) $ECHO_C" >&6
15189 else
15190   ac_get_soname_save_LIBS=$LIBS
15191 LIBS="-ljack  $LIBS"
15192   cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h.  */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h.  */
15198
15199 /* Override any GCC internal prototype to avoid an error.
15200    Use char because int might match the return type of a GCC
15201    builtin and then its argument prototype would still apply.  */
15202 #ifdef __cplusplus
15203 extern "C"
15204 #endif
15205 char jack_client_new ();
15206 int
15207 main ()
15208 {
15209 return jack_client_new ();
15210   ;
15211   return 0;
15212 }
15213 _ACEOF
15214 rm -f conftest.$ac_objext conftest$ac_exeext
15215 if { (ac_try="$ac_link"
15216 case "(($ac_try" in
15217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218   *) ac_try_echo=$ac_try;;
15219 esac
15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221   (eval "$ac_link") 2>conftest.er1
15222   ac_status=$?
15223   grep -v '^ *+' conftest.er1 >conftest.err
15224   rm -f conftest.er1
15225   cat conftest.err >&5
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); } && {
15228          test -z "$ac_c_werror_flag" ||
15229          test ! -s conftest.err
15230        } && test -s conftest$ac_exeext &&
15231        $as_test_x conftest$ac_exeext; then
15232   case "$LIBEXT" in
15233     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'` ;;
15234     so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^     ]*\).*$/\1/"';2,$d'` ;;
15235   esac
15236   if test "x$ac_cv_lib_soname_jack" = "x"
15237   then
15238      ac_cv_lib_soname_jack="libjack.$LIBEXT"
15239   fi
15240 else
15241   echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15243
15244         ac_cv_lib_soname_jack="libjack.$LIBEXT"
15245 fi
15246
15247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15248       conftest$ac_exeext conftest.$ac_ext
15249   LIBS=$ac_get_soname_save_LIBS
15250 fi
15251 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15252 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
15253 if test "${ac_cv_lib_soname_jack+set}" = set; then
15254
15255 cat >>confdefs.h <<_ACEOF
15256 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15257 _ACEOF
15258
15259 fi
15260
15261   { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15262 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
15263 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15264   echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266   ac_get_soname_save_LIBS=$LIBS
15267 LIBS="-lfontconfig  $LIBS"
15268   cat >conftest.$ac_ext <<_ACEOF
15269 /* confdefs.h.  */
15270 _ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h.  */
15274
15275 /* Override any GCC internal prototype to avoid an error.
15276    Use char because int might match the return type of a GCC
15277    builtin and then its argument prototype would still apply.  */
15278 #ifdef __cplusplus
15279 extern "C"
15280 #endif
15281 char FcInit ();
15282 int
15283 main ()
15284 {
15285 return FcInit ();
15286   ;
15287   return 0;
15288 }
15289 _ACEOF
15290 rm -f conftest.$ac_objext conftest$ac_exeext
15291 if { (ac_try="$ac_link"
15292 case "(($ac_try" in
15293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294   *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297   (eval "$ac_link") 2>conftest.er1
15298   ac_status=$?
15299   grep -v '^ *+' conftest.er1 >conftest.err
15300   rm -f conftest.er1
15301   cat conftest.err >&5
15302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303   (exit $ac_status); } && {
15304          test -z "$ac_c_werror_flag" ||
15305          test ! -s conftest.err
15306        } && test -s conftest$ac_exeext &&
15307        $as_test_x conftest$ac_exeext; then
15308   case "$LIBEXT" in
15309     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'` ;;
15310     so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^   ]*\).*$/\1/"';2,$d'` ;;
15311   esac
15312   if test "x$ac_cv_lib_soname_fontconfig" = "x"
15313   then
15314      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15315   fi
15316 else
15317   echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15319
15320         ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15321 fi
15322
15323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15324       conftest$ac_exeext conftest.$ac_ext
15325   LIBS=$ac_get_soname_save_LIBS
15326 fi
15327 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15328 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
15329 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15330
15331 cat >>confdefs.h <<_ACEOF
15332 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15333 _ACEOF
15334
15335 fi
15336
15337   { echo "$as_me:$LINENO: checking for -lssl soname" >&5
15338 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
15339 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15340   echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342   ac_get_soname_save_LIBS=$LIBS
15343 LIBS="-lssl  $LIBS"
15344   cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h.  */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h.  */
15350
15351 /* Override any GCC internal prototype to avoid an error.
15352    Use char because int might match the return type of a GCC
15353    builtin and then its argument prototype would still apply.  */
15354 #ifdef __cplusplus
15355 extern "C"
15356 #endif
15357 char SSL_library_init ();
15358 int
15359 main ()
15360 {
15361 return SSL_library_init ();
15362   ;
15363   return 0;
15364 }
15365 _ACEOF
15366 rm -f conftest.$ac_objext conftest$ac_exeext
15367 if { (ac_try="$ac_link"
15368 case "(($ac_try" in
15369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370   *) ac_try_echo=$ac_try;;
15371 esac
15372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373   (eval "$ac_link") 2>conftest.er1
15374   ac_status=$?
15375   grep -v '^ *+' conftest.er1 >conftest.err
15376   rm -f conftest.er1
15377   cat conftest.err >&5
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); } && {
15380          test -z "$ac_c_werror_flag" ||
15381          test ! -s conftest.err
15382        } && test -s conftest$ac_exeext &&
15383        $as_test_x conftest$ac_exeext; then
15384   case "$LIBEXT" in
15385     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'` ;;
15386     so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^        ]*\).*$/\1/"';2,$d'` ;;
15387   esac
15388   if test "x$ac_cv_lib_soname_ssl" = "x"
15389   then
15390      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15391   fi
15392 else
15393   echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15395
15396         ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15397 fi
15398
15399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15400       conftest$ac_exeext conftest.$ac_ext
15401   LIBS=$ac_get_soname_save_LIBS
15402 fi
15403 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15404 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
15405 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15406
15407 cat >>confdefs.h <<_ACEOF
15408 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15409 _ACEOF
15410
15411 fi
15412
15413   { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15414 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
15415 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15416   echo $ECHO_N "(cached) $ECHO_C" >&6
15417 else
15418   ac_get_soname_save_LIBS=$LIBS
15419 LIBS="-lcrypto  $LIBS"
15420   cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426
15427 /* Override any GCC internal prototype to avoid an error.
15428    Use char because int might match the return type of a GCC
15429    builtin and then its argument prototype would still apply.  */
15430 #ifdef __cplusplus
15431 extern "C"
15432 #endif
15433 char BIO_new_socket ();
15434 int
15435 main ()
15436 {
15437 return BIO_new_socket ();
15438   ;
15439   return 0;
15440 }
15441 _ACEOF
15442 rm -f conftest.$ac_objext conftest$ac_exeext
15443 if { (ac_try="$ac_link"
15444 case "(($ac_try" in
15445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446   *) ac_try_echo=$ac_try;;
15447 esac
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449   (eval "$ac_link") 2>conftest.er1
15450   ac_status=$?
15451   grep -v '^ *+' conftest.er1 >conftest.err
15452   rm -f conftest.er1
15453   cat conftest.err >&5
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); } && {
15456          test -z "$ac_c_werror_flag" ||
15457          test ! -s conftest.err
15458        } && test -s conftest$ac_exeext &&
15459        $as_test_x conftest$ac_exeext; then
15460   case "$LIBEXT" in
15461     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'` ;;
15462     so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^       ]*\).*$/\1/"';2,$d'` ;;
15463   esac
15464   if test "x$ac_cv_lib_soname_crypto" = "x"
15465   then
15466      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15467   fi
15468 else
15469   echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15471
15472         ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15473 fi
15474
15475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15476       conftest$ac_exeext conftest.$ac_ext
15477   LIBS=$ac_get_soname_save_LIBS
15478 fi
15479 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15480 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
15481 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15482
15483 cat >>confdefs.h <<_ACEOF
15484 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15485 _ACEOF
15486
15487 fi
15488
15489   { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15490 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
15491 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15492   echo $ECHO_N "(cached) $ECHO_C" >&6
15493 else
15494   ac_get_soname_save_LIBS=$LIBS
15495 LIBS="-lncurses  $LIBS"
15496   cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h.  */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h.  */
15502
15503 /* Override any GCC internal prototype to avoid an error.
15504    Use char because int might match the return type of a GCC
15505    builtin and then its argument prototype would still apply.  */
15506 #ifdef __cplusplus
15507 extern "C"
15508 #endif
15509 char waddch ();
15510 int
15511 main ()
15512 {
15513 return waddch ();
15514   ;
15515   return 0;
15516 }
15517 _ACEOF
15518 rm -f conftest.$ac_objext conftest$ac_exeext
15519 if { (ac_try="$ac_link"
15520 case "(($ac_try" in
15521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522   *) ac_try_echo=$ac_try;;
15523 esac
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525   (eval "$ac_link") 2>conftest.er1
15526   ac_status=$?
15527   grep -v '^ *+' conftest.er1 >conftest.err
15528   rm -f conftest.er1
15529   cat conftest.err >&5
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); } && {
15532          test -z "$ac_c_werror_flag" ||
15533          test ! -s conftest.err
15534        } && test -s conftest$ac_exeext &&
15535        $as_test_x conftest$ac_exeext; then
15536   case "$LIBEXT" in
15537     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'` ;;
15538     so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^    ]*\).*$/\1/"';2,$d'` ;;
15539   esac
15540   if test "x$ac_cv_lib_soname_ncurses" = "x"
15541   then
15542      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15543   fi
15544 else
15545   echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15547
15548         ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15549 fi
15550
15551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15552       conftest$ac_exeext conftest.$ac_ext
15553   LIBS=$ac_get_soname_save_LIBS
15554 fi
15555 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15556 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
15557 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15558
15559 cat >>confdefs.h <<_ACEOF
15560 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15561 _ACEOF
15562
15563 fi
15564
15565   { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15566 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
15567 if test "${ac_cv_lib_soname_curses+set}" = set; then
15568   echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570   ac_get_soname_save_LIBS=$LIBS
15571 LIBS="-lcurses  $LIBS"
15572   cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h.  */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h.  */
15578
15579 /* Override any GCC internal prototype to avoid an error.
15580    Use char because int might match the return type of a GCC
15581    builtin and then its argument prototype would still apply.  */
15582 #ifdef __cplusplus
15583 extern "C"
15584 #endif
15585 char waddch ();
15586 int
15587 main ()
15588 {
15589 return waddch ();
15590   ;
15591   return 0;
15592 }
15593 _ACEOF
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (ac_try="$ac_link"
15596 case "(($ac_try" in
15597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598   *) ac_try_echo=$ac_try;;
15599 esac
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601   (eval "$ac_link") 2>conftest.er1
15602   ac_status=$?
15603   grep -v '^ *+' conftest.er1 >conftest.err
15604   rm -f conftest.er1
15605   cat conftest.err >&5
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); } && {
15608          test -z "$ac_c_werror_flag" ||
15609          test ! -s conftest.err
15610        } && test -s conftest$ac_exeext &&
15611        $as_test_x conftest$ac_exeext; then
15612   case "$LIBEXT" in
15613     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'` ;;
15614     so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^       ]*\).*$/\1/"';2,$d'` ;;
15615   esac
15616   if test "x$ac_cv_lib_soname_curses" = "x"
15617   then
15618      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15619   fi
15620 else
15621   echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15623
15624         ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15625 fi
15626
15627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15628       conftest$ac_exeext conftest.$ac_ext
15629   LIBS=$ac_get_soname_save_LIBS
15630 fi
15631 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15632 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
15633 if test "${ac_cv_lib_soname_curses+set}" = set; then
15634
15635 cat >>confdefs.h <<_ACEOF
15636 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15637 _ACEOF
15638
15639 fi
15640
15641   { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15642 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
15643 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15644   echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646   ac_get_soname_save_LIBS=$LIBS
15647 LIBS="-ljpeg  $LIBS"
15648   cat >conftest.$ac_ext <<_ACEOF
15649 /* confdefs.h.  */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h.  */
15654
15655 /* Override any GCC internal prototype to avoid an error.
15656    Use char because int might match the return type of a GCC
15657    builtin and then its argument prototype would still apply.  */
15658 #ifdef __cplusplus
15659 extern "C"
15660 #endif
15661 char jpeg_start_decompress ();
15662 int
15663 main ()
15664 {
15665 return jpeg_start_decompress ();
15666   ;
15667   return 0;
15668 }
15669 _ACEOF
15670 rm -f conftest.$ac_objext conftest$ac_exeext
15671 if { (ac_try="$ac_link"
15672 case "(($ac_try" in
15673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674   *) ac_try_echo=$ac_try;;
15675 esac
15676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15677   (eval "$ac_link") 2>conftest.er1
15678   ac_status=$?
15679   grep -v '^ *+' conftest.er1 >conftest.err
15680   rm -f conftest.er1
15681   cat conftest.err >&5
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); } && {
15684          test -z "$ac_c_werror_flag" ||
15685          test ! -s conftest.err
15686        } && test -s conftest$ac_exeext &&
15687        $as_test_x conftest$ac_exeext; then
15688   case "$LIBEXT" in
15689     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'` ;;
15690     so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^     ]*\).*$/\1/"';2,$d'` ;;
15691   esac
15692   if test "x$ac_cv_lib_soname_jpeg" = "x"
15693   then
15694      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15695   fi
15696 else
15697   echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15699
15700         ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15701 fi
15702
15703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15704       conftest$ac_exeext conftest.$ac_ext
15705   LIBS=$ac_get_soname_save_LIBS
15706 fi
15707 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15708 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
15709 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15710
15711 cat >>confdefs.h <<_ACEOF
15712 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15713 _ACEOF
15714
15715 fi
15716
15717   { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15718 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
15719 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15720   echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722   ac_get_soname_save_LIBS=$LIBS
15723 LIBS="-lcapi20  $LIBS"
15724   cat >conftest.$ac_ext <<_ACEOF
15725 /* confdefs.h.  */
15726 _ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h.  */
15730
15731 /* Override any GCC internal prototype to avoid an error.
15732    Use char because int might match the return type of a GCC
15733    builtin and then its argument prototype would still apply.  */
15734 #ifdef __cplusplus
15735 extern "C"
15736 #endif
15737 char capi20_isinstalled ();
15738 int
15739 main ()
15740 {
15741 return capi20_isinstalled ();
15742   ;
15743   return 0;
15744 }
15745 _ACEOF
15746 rm -f conftest.$ac_objext conftest$ac_exeext
15747 if { (ac_try="$ac_link"
15748 case "(($ac_try" in
15749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750   *) ac_try_echo=$ac_try;;
15751 esac
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753   (eval "$ac_link") 2>conftest.er1
15754   ac_status=$?
15755   grep -v '^ *+' conftest.er1 >conftest.err
15756   rm -f conftest.er1
15757   cat conftest.err >&5
15758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759   (exit $ac_status); } && {
15760          test -z "$ac_c_werror_flag" ||
15761          test ! -s conftest.err
15762        } && test -s conftest$ac_exeext &&
15763        $as_test_x conftest$ac_exeext; then
15764   case "$LIBEXT" in
15765     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'` ;;
15766     so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^       ]*\).*$/\1/"';2,$d'` ;;
15767   esac
15768   if test "x$ac_cv_lib_soname_capi20" = "x"
15769   then
15770      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15771   fi
15772 else
15773   echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15775
15776         ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15777 fi
15778
15779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15780       conftest$ac_exeext conftest.$ac_ext
15781   LIBS=$ac_get_soname_save_LIBS
15782 fi
15783 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15784 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
15785 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15786
15787 cat >>confdefs.h <<_ACEOF
15788 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15789 _ACEOF
15790
15791 fi
15792
15793   { echo "$as_me:$LINENO: checking for -lsane soname" >&5
15794 echo $ECHO_N "checking for -lsane soname... $ECHO_C" >&6; }
15795 if test "${ac_cv_lib_soname_sane+set}" = set; then
15796   echo $ECHO_N "(cached) $ECHO_C" >&6
15797 else
15798   ac_get_soname_save_LIBS=$LIBS
15799 LIBS="-lsane  $LIBS"
15800   cat >conftest.$ac_ext <<_ACEOF
15801 /* confdefs.h.  */
15802 _ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h.  */
15806
15807 /* Override any GCC internal prototype to avoid an error.
15808    Use char because int might match the return type of a GCC
15809    builtin and then its argument prototype would still apply.  */
15810 #ifdef __cplusplus
15811 extern "C"
15812 #endif
15813 char sane_init ();
15814 int
15815 main ()
15816 {
15817 return sane_init ();
15818   ;
15819   return 0;
15820 }
15821 _ACEOF
15822 rm -f conftest.$ac_objext conftest$ac_exeext
15823 if { (ac_try="$ac_link"
15824 case "(($ac_try" in
15825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826   *) ac_try_echo=$ac_try;;
15827 esac
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829   (eval "$ac_link") 2>conftest.er1
15830   ac_status=$?
15831   grep -v '^ *+' conftest.er1 >conftest.err
15832   rm -f conftest.er1
15833   cat conftest.err >&5
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); } && {
15836          test -z "$ac_c_werror_flag" ||
15837          test ! -s conftest.err
15838        } && test -s conftest$ac_exeext &&
15839        $as_test_x conftest$ac_exeext; then
15840   case "$LIBEXT" in
15841     dylib) ac_cv_lib_soname_sane=`otool -L conftest$ac_exeext | grep libsane\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libsane\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
15842     so) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep libsane\\.so | sed -e "s/^.*\(libsane\.so[^     ]*\).*$/\1/"';2,$d'` ;;
15843   esac
15844   if test "x$ac_cv_lib_soname_sane" = "x"
15845   then
15846      ac_cv_lib_soname_sane="libsane.$LIBEXT"
15847   fi
15848 else
15849   echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852         ac_cv_lib_soname_sane="libsane.$LIBEXT"
15853 fi
15854
15855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15856       conftest$ac_exeext conftest.$ac_ext
15857   LIBS=$ac_get_soname_save_LIBS
15858 fi
15859 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_sane" >&5
15860 echo "${ECHO_T}$ac_cv_lib_soname_sane" >&6; }
15861 if test "${ac_cv_lib_soname_sane+set}" = set; then
15862
15863 cat >>confdefs.h <<_ACEOF
15864 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
15865 _ACEOF
15866
15867 fi
15868
15869 fi
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944 for ac_func in \
15945         _pclose \
15946         _popen \
15947         _snprintf \
15948         _spawnvp \
15949         _stricmp \
15950         _strnicmp \
15951         _vsnprintf \
15952         asctime_r \
15953         chsize \
15954         clone \
15955         connect \
15956         dlopen \
15957         epoll_create \
15958         ffs \
15959         finite \
15960         fork \
15961         fpclass \
15962         fstatfs \
15963         fstatvfs \
15964         ftruncate \
15965         futimes \
15966         futimesat \
15967         getaddrinfo \
15968         getdirentries \
15969         gethostbyname \
15970         getnameinfo \
15971         getnetbyname \
15972         getopt_long \
15973         getpagesize \
15974         getprotobyname \
15975         getprotobynumber \
15976         getpwuid \
15977         getservbyport \
15978         gettid \
15979         gettimeofday \
15980         getuid \
15981         inet_aton \
15982         inet_network \
15983         kqueue \
15984         lstat \
15985         memmove \
15986         mmap \
15987         pclose \
15988         poll \
15989         popen \
15990         prctl \
15991         pread \
15992         pwrite \
15993         readlink \
15994         rfork \
15995         sched_yield \
15996         select \
15997         sendmsg \
15998         setrlimit \
15999         settimeofday \
16000         sigaltstack \
16001         sigprocmask \
16002         snprintf \
16003         spawnvp \
16004         statfs \
16005         statvfs \
16006         strcasecmp \
16007         strerror \
16008         strncasecmp \
16009         strtold \
16010         tcgetattr \
16011         timegm \
16012         usleep \
16013         vsnprintf \
16014         wait4 \
16015         waitpid \
16016
16017 do
16018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16022   echo $ECHO_N "(cached) $ECHO_C" >&6
16023 else
16024   cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h.  */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h.  */
16030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16032 #define $ac_func innocuous_$ac_func
16033
16034 /* System header to define __stub macros and hopefully few prototypes,
16035     which can conflict with char $ac_func (); below.
16036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16037     <limits.h> exists even on freestanding compilers.  */
16038
16039 #ifdef __STDC__
16040 # include <limits.h>
16041 #else
16042 # include <assert.h>
16043 #endif
16044
16045 #undef $ac_func
16046
16047 /* Override any GCC internal prototype to avoid an error.
16048    Use char because int might match the return type of a GCC
16049    builtin and then its argument prototype would still apply.  */
16050 #ifdef __cplusplus
16051 extern "C"
16052 #endif
16053 char $ac_func ();
16054 /* The GNU C library defines this for functions which it implements
16055     to always fail with ENOSYS.  Some functions are actually named
16056     something starting with __ and the normal name is an alias.  */
16057 #if defined __stub_$ac_func || defined __stub___$ac_func
16058 choke me
16059 #endif
16060
16061 int
16062 main ()
16063 {
16064 return $ac_func ();
16065   ;
16066   return 0;
16067 }
16068 _ACEOF
16069 rm -f conftest.$ac_objext conftest$ac_exeext
16070 if { (ac_try="$ac_link"
16071 case "(($ac_try" in
16072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073   *) ac_try_echo=$ac_try;;
16074 esac
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076   (eval "$ac_link") 2>conftest.er1
16077   ac_status=$?
16078   grep -v '^ *+' conftest.er1 >conftest.err
16079   rm -f conftest.er1
16080   cat conftest.err >&5
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); } && {
16083          test -z "$ac_c_werror_flag" ||
16084          test ! -s conftest.err
16085        } && test -s conftest$ac_exeext &&
16086        $as_test_x conftest$ac_exeext; then
16087   eval "$as_ac_var=yes"
16088 else
16089   echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16091
16092         eval "$as_ac_var=no"
16093 fi
16094
16095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16096       conftest$ac_exeext conftest.$ac_ext
16097 fi
16098 ac_res=`eval echo '${'$as_ac_var'}'`
16099                { echo "$as_me:$LINENO: result: $ac_res" >&5
16100 echo "${ECHO_T}$ac_res" >&6; }
16101 if test `eval echo '${'$as_ac_var'}'` = yes; then
16102   cat >>confdefs.h <<_ACEOF
16103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16104 _ACEOF
16105
16106 fi
16107 done
16108
16109
16110 if test "$ac_cv_func_dlopen" = no
16111 then
16112     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16113 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16114 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16115   echo $ECHO_N "(cached) $ECHO_C" >&6
16116 else
16117   ac_check_lib_save_LIBS=$LIBS
16118 LIBS="-ldl  $LIBS"
16119 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h.  */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h.  */
16125
16126 /* Override any GCC internal prototype to avoid an error.
16127    Use char because int might match the return type of a GCC
16128    builtin and then its argument prototype would still apply.  */
16129 #ifdef __cplusplus
16130 extern "C"
16131 #endif
16132 char dlopen ();
16133 int
16134 main ()
16135 {
16136 return dlopen ();
16137   ;
16138   return 0;
16139 }
16140 _ACEOF
16141 rm -f conftest.$ac_objext conftest$ac_exeext
16142 if { (ac_try="$ac_link"
16143 case "(($ac_try" in
16144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145   *) ac_try_echo=$ac_try;;
16146 esac
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148   (eval "$ac_link") 2>conftest.er1
16149   ac_status=$?
16150   grep -v '^ *+' conftest.er1 >conftest.err
16151   rm -f conftest.er1
16152   cat conftest.err >&5
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); } && {
16155          test -z "$ac_c_werror_flag" ||
16156          test ! -s conftest.err
16157        } && test -s conftest$ac_exeext &&
16158        $as_test_x conftest$ac_exeext; then
16159   ac_cv_lib_dl_dlopen=yes
16160 else
16161   echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.$ac_ext >&5
16163
16164         ac_cv_lib_dl_dlopen=no
16165 fi
16166
16167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16168       conftest$ac_exeext conftest.$ac_ext
16169 LIBS=$ac_check_lib_save_LIBS
16170 fi
16171 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16172 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16173 if test $ac_cv_lib_dl_dlopen = yes; then
16174   cat >>confdefs.h <<\_ACEOF
16175 #define HAVE_DLOPEN 1
16176 _ACEOF
16177  LIBDL="-ldl"
16178
16179 fi
16180
16181 fi
16182 ac_wine_check_funcs_save_LIBS="$LIBS"
16183 LIBS="$LIBS $LIBDL"
16184
16185 for ac_func in dladdr
16186 do
16187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193   cat >conftest.$ac_ext <<_ACEOF
16194 /* confdefs.h.  */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h.  */
16199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16201 #define $ac_func innocuous_$ac_func
16202
16203 /* System header to define __stub macros and hopefully few prototypes,
16204     which can conflict with char $ac_func (); below.
16205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16206     <limits.h> exists even on freestanding compilers.  */
16207
16208 #ifdef __STDC__
16209 # include <limits.h>
16210 #else
16211 # include <assert.h>
16212 #endif
16213
16214 #undef $ac_func
16215
16216 /* Override any GCC internal prototype to avoid an error.
16217    Use char because int might match the return type of a GCC
16218    builtin and then its argument prototype would still apply.  */
16219 #ifdef __cplusplus
16220 extern "C"
16221 #endif
16222 char $ac_func ();
16223 /* The GNU C library defines this for functions which it implements
16224     to always fail with ENOSYS.  Some functions are actually named
16225     something starting with __ and the normal name is an alias.  */
16226 #if defined __stub_$ac_func || defined __stub___$ac_func
16227 choke me
16228 #endif
16229
16230 int
16231 main ()
16232 {
16233 return $ac_func ();
16234   ;
16235   return 0;
16236 }
16237 _ACEOF
16238 rm -f conftest.$ac_objext conftest$ac_exeext
16239 if { (ac_try="$ac_link"
16240 case "(($ac_try" in
16241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242   *) ac_try_echo=$ac_try;;
16243 esac
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245   (eval "$ac_link") 2>conftest.er1
16246   ac_status=$?
16247   grep -v '^ *+' conftest.er1 >conftest.err
16248   rm -f conftest.er1
16249   cat conftest.err >&5
16250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251   (exit $ac_status); } && {
16252          test -z "$ac_c_werror_flag" ||
16253          test ! -s conftest.err
16254        } && test -s conftest$ac_exeext &&
16255        $as_test_x conftest$ac_exeext; then
16256   eval "$as_ac_var=yes"
16257 else
16258   echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16260
16261         eval "$as_ac_var=no"
16262 fi
16263
16264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16265       conftest$ac_exeext conftest.$ac_ext
16266 fi
16267 ac_res=`eval echo '${'$as_ac_var'}'`
16268                { echo "$as_me:$LINENO: result: $ac_res" >&5
16269 echo "${ECHO_T}$ac_res" >&6; }
16270 if test `eval echo '${'$as_ac_var'}'` = yes; then
16271   cat >>confdefs.h <<_ACEOF
16272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16273 _ACEOF
16274
16275 fi
16276 done
16277
16278 LIBS="$ac_wine_check_funcs_save_LIBS"
16279
16280 if test "$ac_cv_func_poll" = no
16281 then
16282     { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
16283 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
16284 if test "${ac_cv_lib_poll_poll+set}" = set; then
16285   echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287   ac_check_lib_save_LIBS=$LIBS
16288 LIBS="-lpoll  $LIBS"
16289 cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h.  */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h.  */
16295
16296 /* Override any GCC internal prototype to avoid an error.
16297    Use char because int might match the return type of a GCC
16298    builtin and then its argument prototype would still apply.  */
16299 #ifdef __cplusplus
16300 extern "C"
16301 #endif
16302 char poll ();
16303 int
16304 main ()
16305 {
16306 return poll ();
16307   ;
16308   return 0;
16309 }
16310 _ACEOF
16311 rm -f conftest.$ac_objext conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315   *) ac_try_echo=$ac_try;;
16316 esac
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318   (eval "$ac_link") 2>conftest.er1
16319   ac_status=$?
16320   grep -v '^ *+' conftest.er1 >conftest.err
16321   rm -f conftest.er1
16322   cat conftest.err >&5
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); } && {
16325          test -z "$ac_c_werror_flag" ||
16326          test ! -s conftest.err
16327        } && test -s conftest$ac_exeext &&
16328        $as_test_x conftest$ac_exeext; then
16329   ac_cv_lib_poll_poll=yes
16330 else
16331   echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334         ac_cv_lib_poll_poll=no
16335 fi
16336
16337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16338       conftest$ac_exeext conftest.$ac_ext
16339 LIBS=$ac_check_lib_save_LIBS
16340 fi
16341 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
16342 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
16343 if test $ac_cv_lib_poll_poll = yes; then
16344   cat >>confdefs.h <<\_ACEOF
16345 #define HAVE_POLL 1
16346 _ACEOF
16347  LIBPOLL="-lpoll"
16348
16349 fi
16350
16351 fi
16352
16353 if test "$ac_cv_func_gethostbyname" = no
16354 then
16355
16356 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
16357 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
16358 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
16359   echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361   ac_check_lib_save_LIBS=$LIBS
16362 LIBS="-lnsl  $LIBS"
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h.  */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h.  */
16369
16370 /* Override any GCC internal prototype to avoid an error.
16371    Use char because int might match the return type of a GCC
16372    builtin and then its argument prototype would still apply.  */
16373 #ifdef __cplusplus
16374 extern "C"
16375 #endif
16376 char gethostbyname ();
16377 int
16378 main ()
16379 {
16380 return gethostbyname ();
16381   ;
16382   return 0;
16383 }
16384 _ACEOF
16385 rm -f conftest.$ac_objext conftest$ac_exeext
16386 if { (ac_try="$ac_link"
16387 case "(($ac_try" in
16388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389   *) ac_try_echo=$ac_try;;
16390 esac
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392   (eval "$ac_link") 2>conftest.er1
16393   ac_status=$?
16394   grep -v '^ *+' conftest.er1 >conftest.err
16395   rm -f conftest.er1
16396   cat conftest.err >&5
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); } && {
16399          test -z "$ac_c_werror_flag" ||
16400          test ! -s conftest.err
16401        } && test -s conftest$ac_exeext &&
16402        $as_test_x conftest$ac_exeext; then
16403   ac_cv_lib_nsl_gethostbyname=yes
16404 else
16405   echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16407
16408         ac_cv_lib_nsl_gethostbyname=no
16409 fi
16410
16411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16412       conftest$ac_exeext conftest.$ac_ext
16413 LIBS=$ac_check_lib_save_LIBS
16414 fi
16415 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
16416 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
16417 if test $ac_cv_lib_nsl_gethostbyname = yes; then
16418   cat >>confdefs.h <<_ACEOF
16419 #define HAVE_LIBNSL 1
16420 _ACEOF
16421
16422   LIBS="-lnsl $LIBS"
16423
16424 fi
16425
16426 fi
16427
16428 if test "$ac_cv_func_connect" = no
16429 then
16430
16431 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
16432 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
16433 if test "${ac_cv_lib_socket_connect+set}" = set; then
16434   echo $ECHO_N "(cached) $ECHO_C" >&6
16435 else
16436   ac_check_lib_save_LIBS=$LIBS
16437 LIBS="-lsocket  $LIBS"
16438 cat >conftest.$ac_ext <<_ACEOF
16439 /* confdefs.h.  */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h.  */
16444
16445 /* Override any GCC internal prototype to avoid an error.
16446    Use char because int might match the return type of a GCC
16447    builtin and then its argument prototype would still apply.  */
16448 #ifdef __cplusplus
16449 extern "C"
16450 #endif
16451 char connect ();
16452 int
16453 main ()
16454 {
16455 return connect ();
16456   ;
16457   return 0;
16458 }
16459 _ACEOF
16460 rm -f conftest.$ac_objext conftest$ac_exeext
16461 if { (ac_try="$ac_link"
16462 case "(($ac_try" in
16463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464   *) ac_try_echo=$ac_try;;
16465 esac
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467   (eval "$ac_link") 2>conftest.er1
16468   ac_status=$?
16469   grep -v '^ *+' conftest.er1 >conftest.err
16470   rm -f conftest.er1
16471   cat conftest.err >&5
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); } && {
16474          test -z "$ac_c_werror_flag" ||
16475          test ! -s conftest.err
16476        } && test -s conftest$ac_exeext &&
16477        $as_test_x conftest$ac_exeext; then
16478   ac_cv_lib_socket_connect=yes
16479 else
16480   echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483         ac_cv_lib_socket_connect=no
16484 fi
16485
16486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16487       conftest$ac_exeext conftest.$ac_ext
16488 LIBS=$ac_check_lib_save_LIBS
16489 fi
16490 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
16491 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
16492 if test $ac_cv_lib_socket_connect = yes; then
16493   cat >>confdefs.h <<_ACEOF
16494 #define HAVE_LIBSOCKET 1
16495 _ACEOF
16496
16497   LIBS="-lsocket $LIBS"
16498
16499 fi
16500
16501 fi
16502
16503 if test "$ac_cv_func_inet_aton" = no
16504 then
16505
16506 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16507 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16508 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16509   echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511   ac_check_lib_save_LIBS=$LIBS
16512 LIBS="-lresolv  $LIBS"
16513 cat >conftest.$ac_ext <<_ACEOF
16514 /* confdefs.h.  */
16515 _ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h.  */
16519
16520 /* Override any GCC internal prototype to avoid an error.
16521    Use char because int might match the return type of a GCC
16522    builtin and then its argument prototype would still apply.  */
16523 #ifdef __cplusplus
16524 extern "C"
16525 #endif
16526 char inet_aton ();
16527 int
16528 main ()
16529 {
16530 return inet_aton ();
16531   ;
16532   return 0;
16533 }
16534 _ACEOF
16535 rm -f conftest.$ac_objext conftest$ac_exeext
16536 if { (ac_try="$ac_link"
16537 case "(($ac_try" in
16538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539   *) ac_try_echo=$ac_try;;
16540 esac
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542   (eval "$ac_link") 2>conftest.er1
16543   ac_status=$?
16544   grep -v '^ *+' conftest.er1 >conftest.err
16545   rm -f conftest.er1
16546   cat conftest.err >&5
16547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548   (exit $ac_status); } && {
16549          test -z "$ac_c_werror_flag" ||
16550          test ! -s conftest.err
16551        } && test -s conftest$ac_exeext &&
16552        $as_test_x conftest$ac_exeext; then
16553   ac_cv_lib_resolv_inet_aton=yes
16554 else
16555   echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16557
16558         ac_cv_lib_resolv_inet_aton=no
16559 fi
16560
16561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16562       conftest$ac_exeext conftest.$ac_ext
16563 LIBS=$ac_check_lib_save_LIBS
16564 fi
16565 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16566 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16567 if test $ac_cv_lib_resolv_inet_aton = yes; then
16568   cat >>confdefs.h <<_ACEOF
16569 #define HAVE_LIBRESOLV 1
16570 _ACEOF
16571
16572   LIBS="-lresolv $LIBS"
16573
16574 fi
16575
16576 fi
16577
16578
16579 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16580 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
16581 if test "${ac_cv_c_const+set}" = set; then
16582   echo $ECHO_N "(cached) $ECHO_C" >&6
16583 else
16584   cat >conftest.$ac_ext <<_ACEOF
16585 /* confdefs.h.  */
16586 _ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h.  */
16590
16591 int
16592 main ()
16593 {
16594 /* FIXME: Include the comments suggested by Paul. */
16595 #ifndef __cplusplus
16596   /* Ultrix mips cc rejects this.  */
16597   typedef int charset[2];
16598   const charset cs;
16599   /* SunOS 4.1.1 cc rejects this.  */
16600   char const *const *pcpcc;
16601   char **ppc;
16602   /* NEC SVR4.0.2 mips cc rejects this.  */
16603   struct point {int x, y;};
16604   static struct point const zero = {0,0};
16605   /* AIX XL C 1.02.0.0 rejects this.
16606      It does not let you subtract one const X* pointer from another in
16607      an arm of an if-expression whose if-part is not a constant
16608      expression */
16609   const char *g = "string";
16610   pcpcc = &g + (g ? g-g : 0);
16611   /* HPUX 7.0 cc rejects these. */
16612   ++pcpcc;
16613   ppc = (char**) pcpcc;
16614   pcpcc = (char const *const *) ppc;
16615   { /* SCO 3.2v4 cc rejects this.  */
16616     char *t;
16617     char const *s = 0 ? (char *) 0 : (char const *) 0;
16618
16619     *t++ = 0;
16620     if (s) return 0;
16621   }
16622   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16623     int x[] = {25, 17};
16624     const int *foo = &x[0];
16625     ++foo;
16626   }
16627   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16628     typedef const int *iptr;
16629     iptr p = 0;
16630     ++p;
16631   }
16632   { /* AIX XL C 1.02.0.0 rejects this saying
16633        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16634     struct s { int j; const int *ap[3]; };
16635     struct s *b; b->j = 5;
16636   }
16637   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16638     const int foo = 10;
16639     if (!foo) return 0;
16640   }
16641   return !cs[0] && !zero.x;
16642 #endif
16643
16644   ;
16645   return 0;
16646 }
16647 _ACEOF
16648 rm -f conftest.$ac_objext
16649 if { (ac_try="$ac_compile"
16650 case "(($ac_try" in
16651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652   *) ac_try_echo=$ac_try;;
16653 esac
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655   (eval "$ac_compile") 2>conftest.er1
16656   ac_status=$?
16657   grep -v '^ *+' conftest.er1 >conftest.err
16658   rm -f conftest.er1
16659   cat conftest.err >&5
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); } && {
16662          test -z "$ac_c_werror_flag" ||
16663          test ! -s conftest.err
16664        } && test -s conftest.$ac_objext; then
16665   ac_cv_c_const=yes
16666 else
16667   echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16669
16670         ac_cv_c_const=no
16671 fi
16672
16673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674 fi
16675 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16676 echo "${ECHO_T}$ac_cv_c_const" >&6; }
16677 if test $ac_cv_c_const = no; then
16678
16679 cat >>confdefs.h <<\_ACEOF
16680 #define const
16681 _ACEOF
16682
16683 fi
16684
16685 { echo "$as_me:$LINENO: checking for inline" >&5
16686 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
16687 if test "${ac_cv_c_inline+set}" = set; then
16688   echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690   ac_cv_c_inline=no
16691 for ac_kw in inline __inline__ __inline; do
16692   cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h.  */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h.  */
16698 #ifndef __cplusplus
16699 typedef int foo_t;
16700 static $ac_kw foo_t static_foo () {return 0; }
16701 $ac_kw foo_t foo () {return 0; }
16702 #endif
16703
16704 _ACEOF
16705 rm -f conftest.$ac_objext
16706 if { (ac_try="$ac_compile"
16707 case "(($ac_try" in
16708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709   *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712   (eval "$ac_compile") 2>conftest.er1
16713   ac_status=$?
16714   grep -v '^ *+' conftest.er1 >conftest.err
16715   rm -f conftest.er1
16716   cat conftest.err >&5
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); } && {
16719          test -z "$ac_c_werror_flag" ||
16720          test ! -s conftest.err
16721        } && test -s conftest.$ac_objext; then
16722   ac_cv_c_inline=$ac_kw
16723 else
16724   echo "$as_me: failed program was:" >&5
16725 sed 's/^/| /' conftest.$ac_ext >&5
16726
16727
16728 fi
16729
16730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16731   test "$ac_cv_c_inline" != no && break
16732 done
16733
16734 fi
16735 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16736 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
16737
16738
16739 case $ac_cv_c_inline in
16740   inline | yes) ;;
16741   *)
16742     case $ac_cv_c_inline in
16743       no) ac_val=;;
16744       *) ac_val=$ac_cv_c_inline;;
16745     esac
16746     cat >>confdefs.h <<_ACEOF
16747 #ifndef __cplusplus
16748 #define inline $ac_val
16749 #endif
16750 _ACEOF
16751     ;;
16752 esac
16753
16754 { echo "$as_me:$LINENO: checking for mode_t" >&5
16755 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
16756 if test "${ac_cv_type_mode_t+set}" = set; then
16757   echo $ECHO_N "(cached) $ECHO_C" >&6
16758 else
16759   cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h.  */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h.  */
16765 $ac_includes_default
16766 typedef mode_t ac__type_new_;
16767 int
16768 main ()
16769 {
16770 if ((ac__type_new_ *) 0)
16771   return 0;
16772 if (sizeof (ac__type_new_))
16773   return 0;
16774   ;
16775   return 0;
16776 }
16777 _ACEOF
16778 rm -f conftest.$ac_objext
16779 if { (ac_try="$ac_compile"
16780 case "(($ac_try" in
16781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782   *) ac_try_echo=$ac_try;;
16783 esac
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785   (eval "$ac_compile") 2>conftest.er1
16786   ac_status=$?
16787   grep -v '^ *+' conftest.er1 >conftest.err
16788   rm -f conftest.er1
16789   cat conftest.err >&5
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); } && {
16792          test -z "$ac_c_werror_flag" ||
16793          test ! -s conftest.err
16794        } && test -s conftest.$ac_objext; then
16795   ac_cv_type_mode_t=yes
16796 else
16797   echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16799
16800         ac_cv_type_mode_t=no
16801 fi
16802
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804 fi
16805 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16806 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
16807 if test $ac_cv_type_mode_t = yes; then
16808
16809 cat >>confdefs.h <<_ACEOF
16810 #define HAVE_MODE_T 1
16811 _ACEOF
16812
16813
16814 fi
16815 { echo "$as_me:$LINENO: checking for off_t" >&5
16816 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
16817 if test "${ac_cv_type_off_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 off_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_off_t=yes
16857 else
16858   echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16860
16861         ac_cv_type_off_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_off_t" >&5
16867 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
16868 if test $ac_cv_type_off_t = yes; then
16869
16870 cat >>confdefs.h <<_ACEOF
16871 #define HAVE_OFF_T 1
16872 _ACEOF
16873
16874
16875 fi
16876 { echo "$as_me:$LINENO: checking for pid_t" >&5
16877 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16878 if test "${ac_cv_type_pid_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 pid_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_pid_t=yes
16918 else
16919   echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16921
16922         ac_cv_type_pid_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_pid_t" >&5
16928 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16929 if test $ac_cv_type_pid_t = yes; then
16930
16931 cat >>confdefs.h <<_ACEOF
16932 #define HAVE_PID_T 1
16933 _ACEOF
16934
16935
16936 fi
16937 { echo "$as_me:$LINENO: checking for size_t" >&5
16938 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16939 if test "${ac_cv_type_size_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 size_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_size_t=yes
16979 else
16980   echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16982
16983         ac_cv_type_size_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_size_t" >&5
16989 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16990 if test $ac_cv_type_size_t = yes; then
16991
16992 cat >>confdefs.h <<_ACEOF
16993 #define HAVE_SIZE_T 1
16994 _ACEOF
16995
16996
16997 fi
16998 { echo "$as_me:$LINENO: checking for ssize_t" >&5
16999 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
17000 if test "${ac_cv_type_ssize_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 ssize_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_ssize_t=yes
17040 else
17041   echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17043
17044         ac_cv_type_ssize_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_ssize_t" >&5
17050 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
17051 if test $ac_cv_type_ssize_t = yes; then
17052
17053 cat >>confdefs.h <<_ACEOF
17054 #define HAVE_SSIZE_T 1
17055 _ACEOF
17056
17057
17058 fi
17059 { echo "$as_me:$LINENO: checking for long long" >&5
17060 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
17061 if test "${ac_cv_type_long_long+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 long long 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_long_long=yes
17101 else
17102   echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105         ac_cv_type_long_long=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_long_long" >&5
17111 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
17112 if test $ac_cv_type_long_long = yes; then
17113
17114 cat >>confdefs.h <<_ACEOF
17115 #define HAVE_LONG_LONG 1
17116 _ACEOF
17117
17118
17119 fi
17120 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17121 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
17122 if test "${ac_cv_type_fsblkcnt_t+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 fsblkcnt_t 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_fsblkcnt_t=yes
17162 else
17163   echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17165
17166         ac_cv_type_fsblkcnt_t=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_fsblkcnt_t" >&5
17172 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
17173 if test $ac_cv_type_fsblkcnt_t = yes; then
17174
17175 cat >>confdefs.h <<_ACEOF
17176 #define HAVE_FSBLKCNT_T 1
17177 _ACEOF
17178
17179
17180 fi
17181 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17182 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
17183 if test "${ac_cv_type_fsfilcnt_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 fsfilcnt_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_fsfilcnt_t=yes
17223 else
17224   echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227         ac_cv_type_fsfilcnt_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_fsfilcnt_t" >&5
17233 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
17234 if test $ac_cv_type_fsfilcnt_t = yes; then
17235
17236 cat >>confdefs.h <<_ACEOF
17237 #define HAVE_FSFILCNT_T 1
17238 _ACEOF
17239
17240
17241 fi
17242
17243 { echo "$as_me:$LINENO: checking for sigset_t" >&5
17244 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
17245 if test "${ac_cv_type_sigset_t+set}" = set; then
17246   echo $ECHO_N "(cached) $ECHO_C" >&6
17247 else
17248   cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h.  */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h.  */
17254 #include <signal.h>
17255
17256 typedef sigset_t ac__type_new_;
17257 int
17258 main ()
17259 {
17260 if ((ac__type_new_ *) 0)
17261   return 0;
17262 if (sizeof (ac__type_new_))
17263   return 0;
17264   ;
17265   return 0;
17266 }
17267 _ACEOF
17268 rm -f conftest.$ac_objext
17269 if { (ac_try="$ac_compile"
17270 case "(($ac_try" in
17271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272   *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275   (eval "$ac_compile") 2>conftest.er1
17276   ac_status=$?
17277   grep -v '^ *+' conftest.er1 >conftest.err
17278   rm -f conftest.er1
17279   cat conftest.err >&5
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); } && {
17282          test -z "$ac_c_werror_flag" ||
17283          test ! -s conftest.err
17284        } && test -s conftest.$ac_objext; then
17285   ac_cv_type_sigset_t=yes
17286 else
17287   echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17289
17290         ac_cv_type_sigset_t=no
17291 fi
17292
17293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17294 fi
17295 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17296 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
17297 if test $ac_cv_type_sigset_t = yes; then
17298
17299 cat >>confdefs.h <<_ACEOF
17300 #define HAVE_SIGSET_T 1
17301 _ACEOF
17302
17303
17304 fi
17305
17306 { echo "$as_me:$LINENO: checking for request_sense" >&5
17307 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
17308 if test "${ac_cv_type_request_sense+set}" = set; then
17309   echo $ECHO_N "(cached) $ECHO_C" >&6
17310 else
17311   cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h.  */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h.  */
17317 #include <linux/cdrom.h>
17318
17319 typedef request_sense ac__type_new_;
17320 int
17321 main ()
17322 {
17323 if ((ac__type_new_ *) 0)
17324   return 0;
17325 if (sizeof (ac__type_new_))
17326   return 0;
17327   ;
17328   return 0;
17329 }
17330 _ACEOF
17331 rm -f conftest.$ac_objext
17332 if { (ac_try="$ac_compile"
17333 case "(($ac_try" in
17334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335   *) ac_try_echo=$ac_try;;
17336 esac
17337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17338   (eval "$ac_compile") 2>conftest.er1
17339   ac_status=$?
17340   grep -v '^ *+' conftest.er1 >conftest.err
17341   rm -f conftest.er1
17342   cat conftest.err >&5
17343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); } && {
17345          test -z "$ac_c_werror_flag" ||
17346          test ! -s conftest.err
17347        } && test -s conftest.$ac_objext; then
17348   ac_cv_type_request_sense=yes
17349 else
17350   echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17352
17353         ac_cv_type_request_sense=no
17354 fi
17355
17356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17357 fi
17358 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
17359 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
17360 if test $ac_cv_type_request_sense = yes; then
17361
17362 cat >>confdefs.h <<_ACEOF
17363 #define HAVE_REQUEST_SENSE 1
17364 _ACEOF
17365
17366
17367 fi
17368
17369
17370 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
17371 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
17372 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
17373   echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375   cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h.  */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h.  */
17381 #ifdef HAVE_LINUX_INPUT_H
17382 #include <linux/input.h>
17383 #endif
17384
17385 int
17386 main ()
17387 {
17388 static struct ff_effect ac_aggr;
17389 if (ac_aggr.direction)
17390 return 0;
17391   ;
17392   return 0;
17393 }
17394 _ACEOF
17395 rm -f conftest.$ac_objext
17396 if { (ac_try="$ac_compile"
17397 case "(($ac_try" in
17398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399   *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402   (eval "$ac_compile") 2>conftest.er1
17403   ac_status=$?
17404   grep -v '^ *+' conftest.er1 >conftest.err
17405   rm -f conftest.er1
17406   cat conftest.err >&5
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } && {
17409          test -z "$ac_c_werror_flag" ||
17410          test ! -s conftest.err
17411        } && test -s conftest.$ac_objext; then
17412   ac_cv_member_struct_ff_effect_direction=yes
17413 else
17414   echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417         cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h.  */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h.  */
17423 #ifdef HAVE_LINUX_INPUT_H
17424 #include <linux/input.h>
17425 #endif
17426
17427 int
17428 main ()
17429 {
17430 static struct ff_effect ac_aggr;
17431 if (sizeof ac_aggr.direction)
17432 return 0;
17433   ;
17434   return 0;
17435 }
17436 _ACEOF
17437 rm -f conftest.$ac_objext
17438 if { (ac_try="$ac_compile"
17439 case "(($ac_try" in
17440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441   *) ac_try_echo=$ac_try;;
17442 esac
17443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444   (eval "$ac_compile") 2>conftest.er1
17445   ac_status=$?
17446   grep -v '^ *+' conftest.er1 >conftest.err
17447   rm -f conftest.er1
17448   cat conftest.err >&5
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); } && {
17451          test -z "$ac_c_werror_flag" ||
17452          test ! -s conftest.err
17453        } && test -s conftest.$ac_objext; then
17454   ac_cv_member_struct_ff_effect_direction=yes
17455 else
17456   echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17458
17459         ac_cv_member_struct_ff_effect_direction=no
17460 fi
17461
17462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17463 fi
17464
17465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17466 fi
17467 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
17468 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
17469 if test $ac_cv_member_struct_ff_effect_direction = yes; then
17470
17471 cat >>confdefs.h <<_ACEOF
17472 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
17473 _ACEOF
17474
17475
17476 fi
17477
17478
17479 { echo "$as_me:$LINENO: checking for sigaddset" >&5
17480 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
17481 if test "${wine_cv_have_sigaddset+set}" = set; then
17482   echo $ECHO_N "(cached) $ECHO_C" >&6
17483 else
17484   cat >conftest.$ac_ext <<_ACEOF
17485 /* confdefs.h.  */
17486 _ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h.  */
17490 #include <signal.h>
17491 int
17492 main ()
17493 {
17494 sigset_t set; sigaddset(&set,SIGTERM);
17495   ;
17496   return 0;
17497 }
17498 _ACEOF
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (ac_try="$ac_link"
17501 case "(($ac_try" in
17502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503   *) ac_try_echo=$ac_try;;
17504 esac
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506   (eval "$ac_link") 2>conftest.er1
17507   ac_status=$?
17508   grep -v '^ *+' conftest.er1 >conftest.err
17509   rm -f conftest.er1
17510   cat conftest.err >&5
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); } && {
17513          test -z "$ac_c_werror_flag" ||
17514          test ! -s conftest.err
17515        } && test -s conftest$ac_exeext &&
17516        $as_test_x conftest$ac_exeext; then
17517   wine_cv_have_sigaddset=yes
17518 else
17519   echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17521
17522         wine_cv_have_sigaddset=no
17523 fi
17524
17525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17526       conftest$ac_exeext conftest.$ac_ext
17527 fi
17528 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17529 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
17530 if test "$wine_cv_have_sigaddset" = "yes"
17531 then
17532
17533 cat >>confdefs.h <<\_ACEOF
17534 #define HAVE_SIGADDSET 1
17535 _ACEOF
17536
17537 fi
17538
17539
17540 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17541 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
17542 if test "${wine_cv_linux_gethostbyname_r_6+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
17552 #include <netdb.h>
17553
17554 int
17555 main ()
17556 {
17557
17558     char *name=NULL;
17559     struct hostent he;
17560     struct hostent *result;
17561     char *buf=NULL;
17562     int bufsize=0;
17563     int res,errnr;
17564     char *addr=NULL;
17565     int addrlen=0;
17566     int addrtype=0;
17567     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17568     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17569
17570   ;
17571   return 0;
17572 }
17573 _ACEOF
17574 rm -f conftest.$ac_objext conftest$ac_exeext
17575 if { (ac_try="$ac_link"
17576 case "(($ac_try" in
17577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578   *) ac_try_echo=$ac_try;;
17579 esac
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581   (eval "$ac_link") 2>conftest.er1
17582   ac_status=$?
17583   grep -v '^ *+' conftest.er1 >conftest.err
17584   rm -f conftest.er1
17585   cat conftest.err >&5
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); } && {
17588          test -z "$ac_c_werror_flag" ||
17589          test ! -s conftest.err
17590        } && test -s conftest$ac_exeext &&
17591        $as_test_x conftest$ac_exeext; then
17592   wine_cv_linux_gethostbyname_r_6=yes
17593 else
17594   echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17596
17597         wine_cv_linux_gethostbyname_r_6=no
17598
17599 fi
17600
17601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17602       conftest$ac_exeext conftest.$ac_ext
17603
17604 fi
17605 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17606 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
17607    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17608    then
17609
17610 cat >>confdefs.h <<\_ACEOF
17611 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17612 _ACEOF
17613
17614    fi
17615
17616 if test "$ac_cv_header_linux_joystick_h" = "yes"
17617 then
17618    { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17619 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
17620 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17621   echo $ECHO_N "(cached) $ECHO_C" >&6
17622 else
17623   cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h.  */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h.  */
17629
17630         #include <sys/ioctl.h>
17631         #include <linux/joystick.h>
17632
17633         struct js_event blub;
17634         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17635         #error "no 2.2 header"
17636         #endif
17637
17638 int
17639 main ()
17640 {
17641 /*empty*/
17642   ;
17643   return 0;
17644 }
17645 _ACEOF
17646 rm -f conftest.$ac_objext
17647 if { (ac_try="$ac_compile"
17648 case "(($ac_try" in
17649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650   *) ac_try_echo=$ac_try;;
17651 esac
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653   (eval "$ac_compile") 2>conftest.er1
17654   ac_status=$?
17655   grep -v '^ *+' conftest.er1 >conftest.err
17656   rm -f conftest.er1
17657   cat conftest.err >&5
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); } && {
17660          test -z "$ac_c_werror_flag" ||
17661          test ! -s conftest.err
17662        } && test -s conftest.$ac_objext; then
17663   wine_cv_linux_joystick_22_api=yes
17664 else
17665   echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668         wine_cv_linux_joystick_22_api=no
17669 fi
17670
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672
17673 fi
17674 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17675 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
17676    if test "$wine_cv_linux_joystick_22_api" = "yes"
17677    then
17678
17679 cat >>confdefs.h <<\_ACEOF
17680 #define HAVE_LINUX_22_JOYSTICK_API 1
17681 _ACEOF
17682
17683    fi
17684 fi
17685
17686
17687 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17688 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
17689 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17690   echo $ECHO_N "(cached) $ECHO_C" >&6
17691 else
17692   cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h.  */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h.  */
17698 #include <sys/types.h>
17699 #ifdef HAVE_SYS_PARAM_H
17700 # include <sys/param.h>
17701 #endif
17702 #ifdef HAVE_SYS_MOUNT_H
17703 # include <sys/mount.h>
17704 #endif
17705 #ifdef HAVE_SYS_VFS_H
17706 # include <sys/vfs.h>
17707 #endif
17708 #ifdef HAVE_SYS_STATFS_H
17709 # include <sys/statfs.h>
17710 #endif
17711
17712 int
17713 main ()
17714 {
17715 static struct statfs ac_aggr;
17716 if (ac_aggr.f_bfree)
17717 return 0;
17718   ;
17719   return 0;
17720 }
17721 _ACEOF
17722 rm -f conftest.$ac_objext
17723 if { (ac_try="$ac_compile"
17724 case "(($ac_try" in
17725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726   *) ac_try_echo=$ac_try;;
17727 esac
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729   (eval "$ac_compile") 2>conftest.er1
17730   ac_status=$?
17731   grep -v '^ *+' conftest.er1 >conftest.err
17732   rm -f conftest.er1
17733   cat conftest.err >&5
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); } && {
17736          test -z "$ac_c_werror_flag" ||
17737          test ! -s conftest.err
17738        } && test -s conftest.$ac_objext; then
17739   ac_cv_member_struct_statfs_f_bfree=yes
17740 else
17741   echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17743
17744         cat >conftest.$ac_ext <<_ACEOF
17745 /* confdefs.h.  */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h.  */
17750 #include <sys/types.h>
17751 #ifdef HAVE_SYS_PARAM_H
17752 # include <sys/param.h>
17753 #endif
17754 #ifdef HAVE_SYS_MOUNT_H
17755 # include <sys/mount.h>
17756 #endif
17757 #ifdef HAVE_SYS_VFS_H
17758 # include <sys/vfs.h>
17759 #endif
17760 #ifdef HAVE_SYS_STATFS_H
17761 # include <sys/statfs.h>
17762 #endif
17763
17764 int
17765 main ()
17766 {
17767 static struct statfs ac_aggr;
17768 if (sizeof ac_aggr.f_bfree)
17769 return 0;
17770   ;
17771   return 0;
17772 }
17773 _ACEOF
17774 rm -f conftest.$ac_objext
17775 if { (ac_try="$ac_compile"
17776 case "(($ac_try" in
17777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778   *) ac_try_echo=$ac_try;;
17779 esac
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781   (eval "$ac_compile") 2>conftest.er1
17782   ac_status=$?
17783   grep -v '^ *+' conftest.er1 >conftest.err
17784   rm -f conftest.er1
17785   cat conftest.err >&5
17786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787   (exit $ac_status); } && {
17788          test -z "$ac_c_werror_flag" ||
17789          test ! -s conftest.err
17790        } && test -s conftest.$ac_objext; then
17791   ac_cv_member_struct_statfs_f_bfree=yes
17792 else
17793   echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17795
17796         ac_cv_member_struct_statfs_f_bfree=no
17797 fi
17798
17799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800 fi
17801
17802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17803 fi
17804 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17805 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
17806 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17807
17808 cat >>confdefs.h <<_ACEOF
17809 #define HAVE_STRUCT_STATFS_F_BFREE 1
17810 _ACEOF
17811
17812
17813 fi
17814 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17815 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
17816 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
17817   echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819   cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h.  */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h.  */
17825 #include <sys/types.h>
17826 #ifdef HAVE_SYS_PARAM_H
17827 # include <sys/param.h>
17828 #endif
17829 #ifdef HAVE_SYS_MOUNT_H
17830 # include <sys/mount.h>
17831 #endif
17832 #ifdef HAVE_SYS_VFS_H
17833 # include <sys/vfs.h>
17834 #endif
17835 #ifdef HAVE_SYS_STATFS_H
17836 # include <sys/statfs.h>
17837 #endif
17838
17839 int
17840 main ()
17841 {
17842 static struct statfs ac_aggr;
17843 if (ac_aggr.f_bavail)
17844 return 0;
17845   ;
17846   return 0;
17847 }
17848 _ACEOF
17849 rm -f conftest.$ac_objext
17850 if { (ac_try="$ac_compile"
17851 case "(($ac_try" in
17852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853   *) ac_try_echo=$ac_try;;
17854 esac
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856   (eval "$ac_compile") 2>conftest.er1
17857   ac_status=$?
17858   grep -v '^ *+' conftest.er1 >conftest.err
17859   rm -f conftest.er1
17860   cat conftest.err >&5
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); } && {
17863          test -z "$ac_c_werror_flag" ||
17864          test ! -s conftest.err
17865        } && test -s conftest.$ac_objext; then
17866   ac_cv_member_struct_statfs_f_bavail=yes
17867 else
17868   echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17870
17871         cat >conftest.$ac_ext <<_ACEOF
17872 /* confdefs.h.  */
17873 _ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h.  */
17877 #include <sys/types.h>
17878 #ifdef HAVE_SYS_PARAM_H
17879 # include <sys/param.h>
17880 #endif
17881 #ifdef HAVE_SYS_MOUNT_H
17882 # include <sys/mount.h>
17883 #endif
17884 #ifdef HAVE_SYS_VFS_H
17885 # include <sys/vfs.h>
17886 #endif
17887 #ifdef HAVE_SYS_STATFS_H
17888 # include <sys/statfs.h>
17889 #endif
17890
17891 int
17892 main ()
17893 {
17894 static struct statfs ac_aggr;
17895 if (sizeof ac_aggr.f_bavail)
17896 return 0;
17897   ;
17898   return 0;
17899 }
17900 _ACEOF
17901 rm -f conftest.$ac_objext
17902 if { (ac_try="$ac_compile"
17903 case "(($ac_try" in
17904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905   *) ac_try_echo=$ac_try;;
17906 esac
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908   (eval "$ac_compile") 2>conftest.er1
17909   ac_status=$?
17910   grep -v '^ *+' conftest.er1 >conftest.err
17911   rm -f conftest.er1
17912   cat conftest.err >&5
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); } && {
17915          test -z "$ac_c_werror_flag" ||
17916          test ! -s conftest.err
17917        } && test -s conftest.$ac_objext; then
17918   ac_cv_member_struct_statfs_f_bavail=yes
17919 else
17920   echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17922
17923         ac_cv_member_struct_statfs_f_bavail=no
17924 fi
17925
17926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17927 fi
17928
17929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17930 fi
17931 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17932 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
17933 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
17934
17935 cat >>confdefs.h <<_ACEOF
17936 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
17937 _ACEOF
17938
17939
17940 fi
17941 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
17942 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
17943 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
17944   echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946   cat >conftest.$ac_ext <<_ACEOF
17947 /* confdefs.h.  */
17948 _ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h.  */
17952 #include <sys/types.h>
17953 #ifdef HAVE_SYS_PARAM_H
17954 # include <sys/param.h>
17955 #endif
17956 #ifdef HAVE_SYS_MOUNT_H
17957 # include <sys/mount.h>
17958 #endif
17959 #ifdef HAVE_SYS_VFS_H
17960 # include <sys/vfs.h>
17961 #endif
17962 #ifdef HAVE_SYS_STATFS_H
17963 # include <sys/statfs.h>
17964 #endif
17965
17966 int
17967 main ()
17968 {
17969 static struct statfs ac_aggr;
17970 if (ac_aggr.f_frsize)
17971 return 0;
17972   ;
17973   return 0;
17974 }
17975 _ACEOF
17976 rm -f conftest.$ac_objext
17977 if { (ac_try="$ac_compile"
17978 case "(($ac_try" in
17979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980   *) ac_try_echo=$ac_try;;
17981 esac
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983   (eval "$ac_compile") 2>conftest.er1
17984   ac_status=$?
17985   grep -v '^ *+' conftest.er1 >conftest.err
17986   rm -f conftest.er1
17987   cat conftest.err >&5
17988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989   (exit $ac_status); } && {
17990          test -z "$ac_c_werror_flag" ||
17991          test ! -s conftest.err
17992        } && test -s conftest.$ac_objext; then
17993   ac_cv_member_struct_statfs_f_frsize=yes
17994 else
17995   echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17997
17998         cat >conftest.$ac_ext <<_ACEOF
17999 /* confdefs.h.  */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h.  */
18004 #include <sys/types.h>
18005 #ifdef HAVE_SYS_PARAM_H
18006 # include <sys/param.h>
18007 #endif
18008 #ifdef HAVE_SYS_MOUNT_H
18009 # include <sys/mount.h>
18010 #endif
18011 #ifdef HAVE_SYS_VFS_H
18012 # include <sys/vfs.h>
18013 #endif
18014 #ifdef HAVE_SYS_STATFS_H
18015 # include <sys/statfs.h>
18016 #endif
18017
18018 int
18019 main ()
18020 {
18021 static struct statfs ac_aggr;
18022 if (sizeof ac_aggr.f_frsize)
18023 return 0;
18024   ;
18025   return 0;
18026 }
18027 _ACEOF
18028 rm -f conftest.$ac_objext
18029 if { (ac_try="$ac_compile"
18030 case "(($ac_try" in
18031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18032   *) ac_try_echo=$ac_try;;
18033 esac
18034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18035   (eval "$ac_compile") 2>conftest.er1
18036   ac_status=$?
18037   grep -v '^ *+' conftest.er1 >conftest.err
18038   rm -f conftest.er1
18039   cat conftest.err >&5
18040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041   (exit $ac_status); } && {
18042          test -z "$ac_c_werror_flag" ||
18043          test ! -s conftest.err
18044        } && test -s conftest.$ac_objext; then
18045   ac_cv_member_struct_statfs_f_frsize=yes
18046 else
18047   echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18049
18050         ac_cv_member_struct_statfs_f_frsize=no
18051 fi
18052
18053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18054 fi
18055
18056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18057 fi
18058 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18059 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
18060 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18061
18062 cat >>confdefs.h <<_ACEOF
18063 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18064 _ACEOF
18065
18066
18067 fi
18068 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18069 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
18070 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18071   echo $ECHO_N "(cached) $ECHO_C" >&6
18072 else
18073   cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h.  */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h.  */
18079 #include <sys/types.h>
18080 #ifdef HAVE_SYS_PARAM_H
18081 # include <sys/param.h>
18082 #endif
18083 #ifdef HAVE_SYS_MOUNT_H
18084 # include <sys/mount.h>
18085 #endif
18086 #ifdef HAVE_SYS_VFS_H
18087 # include <sys/vfs.h>
18088 #endif
18089 #ifdef HAVE_SYS_STATFS_H
18090 # include <sys/statfs.h>
18091 #endif
18092
18093 int
18094 main ()
18095 {
18096 static struct statfs ac_aggr;
18097 if (ac_aggr.f_ffree)
18098 return 0;
18099   ;
18100   return 0;
18101 }
18102 _ACEOF
18103 rm -f conftest.$ac_objext
18104 if { (ac_try="$ac_compile"
18105 case "(($ac_try" in
18106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107   *) ac_try_echo=$ac_try;;
18108 esac
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110   (eval "$ac_compile") 2>conftest.er1
18111   ac_status=$?
18112   grep -v '^ *+' conftest.er1 >conftest.err
18113   rm -f conftest.er1
18114   cat conftest.err >&5
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } && {
18117          test -z "$ac_c_werror_flag" ||
18118          test ! -s conftest.err
18119        } && test -s conftest.$ac_objext; then
18120   ac_cv_member_struct_statfs_f_ffree=yes
18121 else
18122   echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18124
18125         cat >conftest.$ac_ext <<_ACEOF
18126 /* confdefs.h.  */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h.  */
18131 #include <sys/types.h>
18132 #ifdef HAVE_SYS_PARAM_H
18133 # include <sys/param.h>
18134 #endif
18135 #ifdef HAVE_SYS_MOUNT_H
18136 # include <sys/mount.h>
18137 #endif
18138 #ifdef HAVE_SYS_VFS_H
18139 # include <sys/vfs.h>
18140 #endif
18141 #ifdef HAVE_SYS_STATFS_H
18142 # include <sys/statfs.h>
18143 #endif
18144
18145 int
18146 main ()
18147 {
18148 static struct statfs ac_aggr;
18149 if (sizeof ac_aggr.f_ffree)
18150 return 0;
18151   ;
18152   return 0;
18153 }
18154 _ACEOF
18155 rm -f conftest.$ac_objext
18156 if { (ac_try="$ac_compile"
18157 case "(($ac_try" in
18158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159   *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162   (eval "$ac_compile") 2>conftest.er1
18163   ac_status=$?
18164   grep -v '^ *+' conftest.er1 >conftest.err
18165   rm -f conftest.er1
18166   cat conftest.err >&5
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); } && {
18169          test -z "$ac_c_werror_flag" ||
18170          test ! -s conftest.err
18171        } && test -s conftest.$ac_objext; then
18172   ac_cv_member_struct_statfs_f_ffree=yes
18173 else
18174   echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18176
18177         ac_cv_member_struct_statfs_f_ffree=no
18178 fi
18179
18180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18181 fi
18182
18183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18184 fi
18185 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18186 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
18187 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18188
18189 cat >>confdefs.h <<_ACEOF
18190 #define HAVE_STRUCT_STATFS_F_FFREE 1
18191 _ACEOF
18192
18193
18194 fi
18195 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18196 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
18197 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18198   echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200   cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206 #include <sys/types.h>
18207 #ifdef HAVE_SYS_PARAM_H
18208 # include <sys/param.h>
18209 #endif
18210 #ifdef HAVE_SYS_MOUNT_H
18211 # include <sys/mount.h>
18212 #endif
18213 #ifdef HAVE_SYS_VFS_H
18214 # include <sys/vfs.h>
18215 #endif
18216 #ifdef HAVE_SYS_STATFS_H
18217 # include <sys/statfs.h>
18218 #endif
18219
18220 int
18221 main ()
18222 {
18223 static struct statfs ac_aggr;
18224 if (ac_aggr.f_favail)
18225 return 0;
18226   ;
18227   return 0;
18228 }
18229 _ACEOF
18230 rm -f conftest.$ac_objext
18231 if { (ac_try="$ac_compile"
18232 case "(($ac_try" in
18233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234   *) ac_try_echo=$ac_try;;
18235 esac
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237   (eval "$ac_compile") 2>conftest.er1
18238   ac_status=$?
18239   grep -v '^ *+' conftest.er1 >conftest.err
18240   rm -f conftest.er1
18241   cat conftest.err >&5
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); } && {
18244          test -z "$ac_c_werror_flag" ||
18245          test ! -s conftest.err
18246        } && test -s conftest.$ac_objext; then
18247   ac_cv_member_struct_statfs_f_favail=yes
18248 else
18249   echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252         cat >conftest.$ac_ext <<_ACEOF
18253 /* confdefs.h.  */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h.  */
18258 #include <sys/types.h>
18259 #ifdef HAVE_SYS_PARAM_H
18260 # include <sys/param.h>
18261 #endif
18262 #ifdef HAVE_SYS_MOUNT_H
18263 # include <sys/mount.h>
18264 #endif
18265 #ifdef HAVE_SYS_VFS_H
18266 # include <sys/vfs.h>
18267 #endif
18268 #ifdef HAVE_SYS_STATFS_H
18269 # include <sys/statfs.h>
18270 #endif
18271
18272 int
18273 main ()
18274 {
18275 static struct statfs ac_aggr;
18276 if (sizeof ac_aggr.f_favail)
18277 return 0;
18278   ;
18279   return 0;
18280 }
18281 _ACEOF
18282 rm -f conftest.$ac_objext
18283 if { (ac_try="$ac_compile"
18284 case "(($ac_try" in
18285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286   *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289   (eval "$ac_compile") 2>conftest.er1
18290   ac_status=$?
18291   grep -v '^ *+' conftest.er1 >conftest.err
18292   rm -f conftest.er1
18293   cat conftest.err >&5
18294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295   (exit $ac_status); } && {
18296          test -z "$ac_c_werror_flag" ||
18297          test ! -s conftest.err
18298        } && test -s conftest.$ac_objext; then
18299   ac_cv_member_struct_statfs_f_favail=yes
18300 else
18301   echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18303
18304         ac_cv_member_struct_statfs_f_favail=no
18305 fi
18306
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 fi
18309
18310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18311 fi
18312 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18313 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
18314 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18315
18316 cat >>confdefs.h <<_ACEOF
18317 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18318 _ACEOF
18319
18320
18321 fi
18322 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18323 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
18324 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18325   echo $ECHO_N "(cached) $ECHO_C" >&6
18326 else
18327   cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h.  */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h.  */
18333 #include <sys/types.h>
18334 #ifdef HAVE_SYS_PARAM_H
18335 # include <sys/param.h>
18336 #endif
18337 #ifdef HAVE_SYS_MOUNT_H
18338 # include <sys/mount.h>
18339 #endif
18340 #ifdef HAVE_SYS_VFS_H
18341 # include <sys/vfs.h>
18342 #endif
18343 #ifdef HAVE_SYS_STATFS_H
18344 # include <sys/statfs.h>
18345 #endif
18346
18347 int
18348 main ()
18349 {
18350 static struct statfs ac_aggr;
18351 if (ac_aggr.f_namelen)
18352 return 0;
18353   ;
18354   return 0;
18355 }
18356 _ACEOF
18357 rm -f conftest.$ac_objext
18358 if { (ac_try="$ac_compile"
18359 case "(($ac_try" in
18360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361   *) ac_try_echo=$ac_try;;
18362 esac
18363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18364   (eval "$ac_compile") 2>conftest.er1
18365   ac_status=$?
18366   grep -v '^ *+' conftest.er1 >conftest.err
18367   rm -f conftest.er1
18368   cat conftest.err >&5
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); } && {
18371          test -z "$ac_c_werror_flag" ||
18372          test ! -s conftest.err
18373        } && test -s conftest.$ac_objext; then
18374   ac_cv_member_struct_statfs_f_namelen=yes
18375 else
18376   echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18378
18379         cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h.  */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h.  */
18385 #include <sys/types.h>
18386 #ifdef HAVE_SYS_PARAM_H
18387 # include <sys/param.h>
18388 #endif
18389 #ifdef HAVE_SYS_MOUNT_H
18390 # include <sys/mount.h>
18391 #endif
18392 #ifdef HAVE_SYS_VFS_H
18393 # include <sys/vfs.h>
18394 #endif
18395 #ifdef HAVE_SYS_STATFS_H
18396 # include <sys/statfs.h>
18397 #endif
18398
18399 int
18400 main ()
18401 {
18402 static struct statfs ac_aggr;
18403 if (sizeof ac_aggr.f_namelen)
18404 return 0;
18405   ;
18406   return 0;
18407 }
18408 _ACEOF
18409 rm -f conftest.$ac_objext
18410 if { (ac_try="$ac_compile"
18411 case "(($ac_try" in
18412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413   *) ac_try_echo=$ac_try;;
18414 esac
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416   (eval "$ac_compile") 2>conftest.er1
18417   ac_status=$?
18418   grep -v '^ *+' conftest.er1 >conftest.err
18419   rm -f conftest.er1
18420   cat conftest.err >&5
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); } && {
18423          test -z "$ac_c_werror_flag" ||
18424          test ! -s conftest.err
18425        } && test -s conftest.$ac_objext; then
18426   ac_cv_member_struct_statfs_f_namelen=yes
18427 else
18428   echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18430
18431         ac_cv_member_struct_statfs_f_namelen=no
18432 fi
18433
18434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18435 fi
18436
18437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18438 fi
18439 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18440 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
18441 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18442
18443 cat >>confdefs.h <<_ACEOF
18444 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18445 _ACEOF
18446
18447
18448 fi
18449
18450
18451 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18452 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
18453 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18454   echo $ECHO_N "(cached) $ECHO_C" >&6
18455 else
18456   cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h.  */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h.  */
18462 #ifdef HAVE_SYS_STATVFS_H
18463 #include <sys/statvfs.h>
18464 #endif
18465
18466 int
18467 main ()
18468 {
18469 static struct statvfs ac_aggr;
18470 if (ac_aggr.f_blocks)
18471 return 0;
18472   ;
18473   return 0;
18474 }
18475 _ACEOF
18476 rm -f conftest.$ac_objext
18477 if { (ac_try="$ac_compile"
18478 case "(($ac_try" in
18479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480   *) ac_try_echo=$ac_try;;
18481 esac
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483   (eval "$ac_compile") 2>conftest.er1
18484   ac_status=$?
18485   grep -v '^ *+' conftest.er1 >conftest.err
18486   rm -f conftest.er1
18487   cat conftest.err >&5
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); } && {
18490          test -z "$ac_c_werror_flag" ||
18491          test ! -s conftest.err
18492        } && test -s conftest.$ac_objext; then
18493   ac_cv_member_struct_statvfs_f_blocks=yes
18494 else
18495   echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18497
18498         cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h.  */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h.  */
18504 #ifdef HAVE_SYS_STATVFS_H
18505 #include <sys/statvfs.h>
18506 #endif
18507
18508 int
18509 main ()
18510 {
18511 static struct statvfs ac_aggr;
18512 if (sizeof ac_aggr.f_blocks)
18513 return 0;
18514   ;
18515   return 0;
18516 }
18517 _ACEOF
18518 rm -f conftest.$ac_objext
18519 if { (ac_try="$ac_compile"
18520 case "(($ac_try" in
18521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522   *) ac_try_echo=$ac_try;;
18523 esac
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525   (eval "$ac_compile") 2>conftest.er1
18526   ac_status=$?
18527   grep -v '^ *+' conftest.er1 >conftest.err
18528   rm -f conftest.er1
18529   cat conftest.err >&5
18530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531   (exit $ac_status); } && {
18532          test -z "$ac_c_werror_flag" ||
18533          test ! -s conftest.err
18534        } && test -s conftest.$ac_objext; then
18535   ac_cv_member_struct_statvfs_f_blocks=yes
18536 else
18537   echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18539
18540         ac_cv_member_struct_statvfs_f_blocks=no
18541 fi
18542
18543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18544 fi
18545
18546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18547 fi
18548 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18549 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
18550 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18551
18552 cat >>confdefs.h <<_ACEOF
18553 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18554 _ACEOF
18555
18556
18557 fi
18558
18559
18560 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18561 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
18562 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18563   echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565   cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h.  */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h.  */
18571 #include <sys/types.h>
18572 #ifdef HAVE_SYS_SOCKET_H
18573 # include <sys/socket.h>
18574 #endif
18575 #ifdef HAVE_SYS_UN_H
18576 # include <sys/un.h>
18577 #endif
18578
18579 int
18580 main ()
18581 {
18582 static struct msghdr ac_aggr;
18583 if (ac_aggr.msg_accrights)
18584 return 0;
18585   ;
18586   return 0;
18587 }
18588 _ACEOF
18589 rm -f conftest.$ac_objext
18590 if { (ac_try="$ac_compile"
18591 case "(($ac_try" in
18592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593   *) ac_try_echo=$ac_try;;
18594 esac
18595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596   (eval "$ac_compile") 2>conftest.er1
18597   ac_status=$?
18598   grep -v '^ *+' conftest.er1 >conftest.err
18599   rm -f conftest.er1
18600   cat conftest.err >&5
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); } && {
18603          test -z "$ac_c_werror_flag" ||
18604          test ! -s conftest.err
18605        } && test -s conftest.$ac_objext; then
18606   ac_cv_member_struct_msghdr_msg_accrights=yes
18607 else
18608   echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18610
18611         cat >conftest.$ac_ext <<_ACEOF
18612 /* confdefs.h.  */
18613 _ACEOF
18614 cat confdefs.h >>conftest.$ac_ext
18615 cat >>conftest.$ac_ext <<_ACEOF
18616 /* end confdefs.h.  */
18617 #include <sys/types.h>
18618 #ifdef HAVE_SYS_SOCKET_H
18619 # include <sys/socket.h>
18620 #endif
18621 #ifdef HAVE_SYS_UN_H
18622 # include <sys/un.h>
18623 #endif
18624
18625 int
18626 main ()
18627 {
18628 static struct msghdr ac_aggr;
18629 if (sizeof ac_aggr.msg_accrights)
18630 return 0;
18631   ;
18632   return 0;
18633 }
18634 _ACEOF
18635 rm -f conftest.$ac_objext
18636 if { (ac_try="$ac_compile"
18637 case "(($ac_try" in
18638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639   *) ac_try_echo=$ac_try;;
18640 esac
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642   (eval "$ac_compile") 2>conftest.er1
18643   ac_status=$?
18644   grep -v '^ *+' conftest.er1 >conftest.err
18645   rm -f conftest.er1
18646   cat conftest.err >&5
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); } && {
18649          test -z "$ac_c_werror_flag" ||
18650          test ! -s conftest.err
18651        } && test -s conftest.$ac_objext; then
18652   ac_cv_member_struct_msghdr_msg_accrights=yes
18653 else
18654   echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18656
18657         ac_cv_member_struct_msghdr_msg_accrights=no
18658 fi
18659
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18661 fi
18662
18663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18664 fi
18665 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18666 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
18667 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18668
18669 cat >>confdefs.h <<_ACEOF
18670 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18671 _ACEOF
18672
18673
18674 fi
18675 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18676 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
18677 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18678   echo $ECHO_N "(cached) $ECHO_C" >&6
18679 else
18680   cat >conftest.$ac_ext <<_ACEOF
18681 /* confdefs.h.  */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h.  */
18686 #include <sys/types.h>
18687 #ifdef HAVE_SYS_SOCKET_H
18688 # include <sys/socket.h>
18689 #endif
18690 #ifdef HAVE_SYS_UN_H
18691 # include <sys/un.h>
18692 #endif
18693
18694 int
18695 main ()
18696 {
18697 static struct sockaddr ac_aggr;
18698 if (ac_aggr.sa_len)
18699 return 0;
18700   ;
18701   return 0;
18702 }
18703 _ACEOF
18704 rm -f conftest.$ac_objext
18705 if { (ac_try="$ac_compile"
18706 case "(($ac_try" in
18707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708   *) ac_try_echo=$ac_try;;
18709 esac
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711   (eval "$ac_compile") 2>conftest.er1
18712   ac_status=$?
18713   grep -v '^ *+' conftest.er1 >conftest.err
18714   rm -f conftest.er1
18715   cat conftest.err >&5
18716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717   (exit $ac_status); } && {
18718          test -z "$ac_c_werror_flag" ||
18719          test ! -s conftest.err
18720        } && test -s conftest.$ac_objext; then
18721   ac_cv_member_struct_sockaddr_sa_len=yes
18722 else
18723   echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18725
18726         cat >conftest.$ac_ext <<_ACEOF
18727 /* confdefs.h.  */
18728 _ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h.  */
18732 #include <sys/types.h>
18733 #ifdef HAVE_SYS_SOCKET_H
18734 # include <sys/socket.h>
18735 #endif
18736 #ifdef HAVE_SYS_UN_H
18737 # include <sys/un.h>
18738 #endif
18739
18740 int
18741 main ()
18742 {
18743 static struct sockaddr ac_aggr;
18744 if (sizeof ac_aggr.sa_len)
18745 return 0;
18746   ;
18747   return 0;
18748 }
18749 _ACEOF
18750 rm -f conftest.$ac_objext
18751 if { (ac_try="$ac_compile"
18752 case "(($ac_try" in
18753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754   *) ac_try_echo=$ac_try;;
18755 esac
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757   (eval "$ac_compile") 2>conftest.er1
18758   ac_status=$?
18759   grep -v '^ *+' conftest.er1 >conftest.err
18760   rm -f conftest.er1
18761   cat conftest.err >&5
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); } && {
18764          test -z "$ac_c_werror_flag" ||
18765          test ! -s conftest.err
18766        } && test -s conftest.$ac_objext; then
18767   ac_cv_member_struct_sockaddr_sa_len=yes
18768 else
18769   echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18771
18772         ac_cv_member_struct_sockaddr_sa_len=no
18773 fi
18774
18775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18776 fi
18777
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779 fi
18780 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18781 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
18782 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18783
18784 cat >>confdefs.h <<_ACEOF
18785 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18786 _ACEOF
18787
18788
18789 fi
18790 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18791 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
18792 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18793   echo $ECHO_N "(cached) $ECHO_C" >&6
18794 else
18795   cat >conftest.$ac_ext <<_ACEOF
18796 /* confdefs.h.  */
18797 _ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h.  */
18801 #include <sys/types.h>
18802 #ifdef HAVE_SYS_SOCKET_H
18803 # include <sys/socket.h>
18804 #endif
18805 #ifdef HAVE_SYS_UN_H
18806 # include <sys/un.h>
18807 #endif
18808
18809 int
18810 main ()
18811 {
18812 static struct sockaddr_un ac_aggr;
18813 if (ac_aggr.sun_len)
18814 return 0;
18815   ;
18816   return 0;
18817 }
18818 _ACEOF
18819 rm -f conftest.$ac_objext
18820 if { (ac_try="$ac_compile"
18821 case "(($ac_try" in
18822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823   *) ac_try_echo=$ac_try;;
18824 esac
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826   (eval "$ac_compile") 2>conftest.er1
18827   ac_status=$?
18828   grep -v '^ *+' conftest.er1 >conftest.err
18829   rm -f conftest.er1
18830   cat conftest.err >&5
18831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832   (exit $ac_status); } && {
18833          test -z "$ac_c_werror_flag" ||
18834          test ! -s conftest.err
18835        } && test -s conftest.$ac_objext; then
18836   ac_cv_member_struct_sockaddr_un_sun_len=yes
18837 else
18838   echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18840
18841         cat >conftest.$ac_ext <<_ACEOF
18842 /* confdefs.h.  */
18843 _ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h.  */
18847 #include <sys/types.h>
18848 #ifdef HAVE_SYS_SOCKET_H
18849 # include <sys/socket.h>
18850 #endif
18851 #ifdef HAVE_SYS_UN_H
18852 # include <sys/un.h>
18853 #endif
18854
18855 int
18856 main ()
18857 {
18858 static struct sockaddr_un ac_aggr;
18859 if (sizeof ac_aggr.sun_len)
18860 return 0;
18861   ;
18862   return 0;
18863 }
18864 _ACEOF
18865 rm -f conftest.$ac_objext
18866 if { (ac_try="$ac_compile"
18867 case "(($ac_try" in
18868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869   *) ac_try_echo=$ac_try;;
18870 esac
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872   (eval "$ac_compile") 2>conftest.er1
18873   ac_status=$?
18874   grep -v '^ *+' conftest.er1 >conftest.err
18875   rm -f conftest.er1
18876   cat conftest.err >&5
18877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878   (exit $ac_status); } && {
18879          test -z "$ac_c_werror_flag" ||
18880          test ! -s conftest.err
18881        } && test -s conftest.$ac_objext; then
18882   ac_cv_member_struct_sockaddr_un_sun_len=yes
18883 else
18884   echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18886
18887         ac_cv_member_struct_sockaddr_un_sun_len=no
18888 fi
18889
18890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18891 fi
18892
18893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18894 fi
18895 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18896 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
18897 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18898
18899 cat >>confdefs.h <<_ACEOF
18900 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18901 _ACEOF
18902
18903
18904 fi
18905
18906
18907 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18908 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
18909 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18910   echo $ECHO_N "(cached) $ECHO_C" >&6
18911 else
18912   cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h.  */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h.  */
18918 #include <sys/types.h>
18919 #ifdef HAVE_SCSI_SG_H
18920 #include <scsi/sg.h>
18921 #endif
18922
18923 int
18924 main ()
18925 {
18926 static scsireq_t ac_aggr;
18927 if (ac_aggr.cmd)
18928 return 0;
18929   ;
18930   return 0;
18931 }
18932 _ACEOF
18933 rm -f conftest.$ac_objext
18934 if { (ac_try="$ac_compile"
18935 case "(($ac_try" in
18936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937   *) ac_try_echo=$ac_try;;
18938 esac
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940   (eval "$ac_compile") 2>conftest.er1
18941   ac_status=$?
18942   grep -v '^ *+' conftest.er1 >conftest.err
18943   rm -f conftest.er1
18944   cat conftest.err >&5
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } && {
18947          test -z "$ac_c_werror_flag" ||
18948          test ! -s conftest.err
18949        } && test -s conftest.$ac_objext; then
18950   ac_cv_member_scsireq_t_cmd=yes
18951 else
18952   echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18954
18955         cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h.  */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h.  */
18961 #include <sys/types.h>
18962 #ifdef HAVE_SCSI_SG_H
18963 #include <scsi/sg.h>
18964 #endif
18965
18966 int
18967 main ()
18968 {
18969 static scsireq_t ac_aggr;
18970 if (sizeof ac_aggr.cmd)
18971 return 0;
18972   ;
18973   return 0;
18974 }
18975 _ACEOF
18976 rm -f conftest.$ac_objext
18977 if { (ac_try="$ac_compile"
18978 case "(($ac_try" in
18979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980   *) ac_try_echo=$ac_try;;
18981 esac
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983   (eval "$ac_compile") 2>conftest.er1
18984   ac_status=$?
18985   grep -v '^ *+' conftest.er1 >conftest.err
18986   rm -f conftest.er1
18987   cat conftest.err >&5
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); } && {
18990          test -z "$ac_c_werror_flag" ||
18991          test ! -s conftest.err
18992        } && test -s conftest.$ac_objext; then
18993   ac_cv_member_scsireq_t_cmd=yes
18994 else
18995   echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18997
18998         ac_cv_member_scsireq_t_cmd=no
18999 fi
19000
19001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19002 fi
19003
19004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19005 fi
19006 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
19007 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
19008 if test $ac_cv_member_scsireq_t_cmd = yes; then
19009
19010 cat >>confdefs.h <<_ACEOF
19011 #define HAVE_SCSIREQ_T_CMD 1
19012 _ACEOF
19013
19014
19015 fi
19016 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
19017 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
19018 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
19019   echo $ECHO_N "(cached) $ECHO_C" >&6
19020 else
19021   cat >conftest.$ac_ext <<_ACEOF
19022 /* confdefs.h.  */
19023 _ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h.  */
19027 #include <sys/types.h>
19028 #ifdef HAVE_SCSI_SG_H
19029 #include <scsi/sg.h>
19030 #endif
19031
19032 int
19033 main ()
19034 {
19035 static sg_io_hdr_t ac_aggr;
19036 if (ac_aggr.interface_id)
19037 return 0;
19038   ;
19039   return 0;
19040 }
19041 _ACEOF
19042 rm -f conftest.$ac_objext
19043 if { (ac_try="$ac_compile"
19044 case "(($ac_try" in
19045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046   *) ac_try_echo=$ac_try;;
19047 esac
19048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049   (eval "$ac_compile") 2>conftest.er1
19050   ac_status=$?
19051   grep -v '^ *+' conftest.er1 >conftest.err
19052   rm -f conftest.er1
19053   cat conftest.err >&5
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); } && {
19056          test -z "$ac_c_werror_flag" ||
19057          test ! -s conftest.err
19058        } && test -s conftest.$ac_objext; then
19059   ac_cv_member_sg_io_hdr_t_interface_id=yes
19060 else
19061   echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19063
19064         cat >conftest.$ac_ext <<_ACEOF
19065 /* confdefs.h.  */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h.  */
19070 #include <sys/types.h>
19071 #ifdef HAVE_SCSI_SG_H
19072 #include <scsi/sg.h>
19073 #endif
19074
19075 int
19076 main ()
19077 {
19078 static sg_io_hdr_t ac_aggr;
19079 if (sizeof ac_aggr.interface_id)
19080 return 0;
19081   ;
19082   return 0;
19083 }
19084 _ACEOF
19085 rm -f conftest.$ac_objext
19086 if { (ac_try="$ac_compile"
19087 case "(($ac_try" in
19088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089   *) ac_try_echo=$ac_try;;
19090 esac
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092   (eval "$ac_compile") 2>conftest.er1
19093   ac_status=$?
19094   grep -v '^ *+' conftest.er1 >conftest.err
19095   rm -f conftest.er1
19096   cat conftest.err >&5
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); } && {
19099          test -z "$ac_c_werror_flag" ||
19100          test ! -s conftest.err
19101        } && test -s conftest.$ac_objext; then
19102   ac_cv_member_sg_io_hdr_t_interface_id=yes
19103 else
19104   echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107         ac_cv_member_sg_io_hdr_t_interface_id=no
19108 fi
19109
19110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19111 fi
19112
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114 fi
19115 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19116 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
19117 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19118
19119 cat >>confdefs.h <<_ACEOF
19120 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19121 _ACEOF
19122
19123
19124 fi
19125
19126
19127 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19128 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
19129 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19130   echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132   cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h.  */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h.  */
19138 #include <signal.h>
19139
19140 int
19141 main ()
19142 {
19143 static siginfo_t ac_aggr;
19144 if (ac_aggr.si_fd)
19145 return 0;
19146   ;
19147   return 0;
19148 }
19149 _ACEOF
19150 rm -f conftest.$ac_objext
19151 if { (ac_try="$ac_compile"
19152 case "(($ac_try" in
19153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154   *) ac_try_echo=$ac_try;;
19155 esac
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157   (eval "$ac_compile") 2>conftest.er1
19158   ac_status=$?
19159   grep -v '^ *+' conftest.er1 >conftest.err
19160   rm -f conftest.er1
19161   cat conftest.err >&5
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); } && {
19164          test -z "$ac_c_werror_flag" ||
19165          test ! -s conftest.err
19166        } && test -s conftest.$ac_objext; then
19167   ac_cv_member_siginfo_t_si_fd=yes
19168 else
19169   echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172         cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h.  */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h.  */
19178 #include <signal.h>
19179
19180 int
19181 main ()
19182 {
19183 static siginfo_t ac_aggr;
19184 if (sizeof ac_aggr.si_fd)
19185 return 0;
19186   ;
19187   return 0;
19188 }
19189 _ACEOF
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194   *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197   (eval "$ac_compile") 2>conftest.er1
19198   ac_status=$?
19199   grep -v '^ *+' conftest.er1 >conftest.err
19200   rm -f conftest.er1
19201   cat conftest.err >&5
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); } && {
19204          test -z "$ac_c_werror_flag" ||
19205          test ! -s conftest.err
19206        } && test -s conftest.$ac_objext; then
19207   ac_cv_member_siginfo_t_si_fd=yes
19208 else
19209   echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19211
19212         ac_cv_member_siginfo_t_si_fd=no
19213 fi
19214
19215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216 fi
19217
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219 fi
19220 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19221 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
19222 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19223
19224 cat >>confdefs.h <<_ACEOF
19225 #define HAVE_SIGINFO_T_SI_FD 1
19226 _ACEOF
19227
19228
19229 fi
19230
19231
19232 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
19233 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
19234 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
19235   echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237   cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h.  */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h.  */
19243 #include <sys/types.h>
19244 #ifdef HAVE_SYS_MTIO_H
19245 #include <sys/mtio.h>
19246 #endif
19247
19248 int
19249 main ()
19250 {
19251 static struct mtget ac_aggr;
19252 if (ac_aggr.mt_blksiz)
19253 return 0;
19254   ;
19255   return 0;
19256 }
19257 _ACEOF
19258 rm -f conftest.$ac_objext
19259 if { (ac_try="$ac_compile"
19260 case "(($ac_try" in
19261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262   *) ac_try_echo=$ac_try;;
19263 esac
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265   (eval "$ac_compile") 2>conftest.er1
19266   ac_status=$?
19267   grep -v '^ *+' conftest.er1 >conftest.err
19268   rm -f conftest.er1
19269   cat conftest.err >&5
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); } && {
19272          test -z "$ac_c_werror_flag" ||
19273          test ! -s conftest.err
19274        } && test -s conftest.$ac_objext; then
19275   ac_cv_member_struct_mtget_mt_blksiz=yes
19276 else
19277   echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19279
19280         cat >conftest.$ac_ext <<_ACEOF
19281 /* confdefs.h.  */
19282 _ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h.  */
19286 #include <sys/types.h>
19287 #ifdef HAVE_SYS_MTIO_H
19288 #include <sys/mtio.h>
19289 #endif
19290
19291 int
19292 main ()
19293 {
19294 static struct mtget ac_aggr;
19295 if (sizeof ac_aggr.mt_blksiz)
19296 return 0;
19297   ;
19298   return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext
19302 if { (ac_try="$ac_compile"
19303 case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_compile") 2>conftest.er1
19309   ac_status=$?
19310   grep -v '^ *+' conftest.er1 >conftest.err
19311   rm -f conftest.er1
19312   cat conftest.err >&5
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); } && {
19315          test -z "$ac_c_werror_flag" ||
19316          test ! -s conftest.err
19317        } && test -s conftest.$ac_objext; then
19318   ac_cv_member_struct_mtget_mt_blksiz=yes
19319 else
19320   echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323         ac_cv_member_struct_mtget_mt_blksiz=no
19324 fi
19325
19326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19327 fi
19328
19329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19330 fi
19331 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
19332 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
19333 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
19334
19335 cat >>confdefs.h <<_ACEOF
19336 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
19337 _ACEOF
19338
19339
19340 fi
19341 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
19342 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
19343 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
19344   echo $ECHO_N "(cached) $ECHO_C" >&6
19345 else
19346   cat >conftest.$ac_ext <<_ACEOF
19347 /* confdefs.h.  */
19348 _ACEOF
19349 cat confdefs.h >>conftest.$ac_ext
19350 cat >>conftest.$ac_ext <<_ACEOF
19351 /* end confdefs.h.  */
19352 #include <sys/types.h>
19353 #ifdef HAVE_SYS_MTIO_H
19354 #include <sys/mtio.h>
19355 #endif
19356
19357 int
19358 main ()
19359 {
19360 static struct mtget ac_aggr;
19361 if (ac_aggr.mt_gstat)
19362 return 0;
19363   ;
19364   return 0;
19365 }
19366 _ACEOF
19367 rm -f conftest.$ac_objext
19368 if { (ac_try="$ac_compile"
19369 case "(($ac_try" in
19370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371   *) ac_try_echo=$ac_try;;
19372 esac
19373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374   (eval "$ac_compile") 2>conftest.er1
19375   ac_status=$?
19376   grep -v '^ *+' conftest.er1 >conftest.err
19377   rm -f conftest.er1
19378   cat conftest.err >&5
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); } && {
19381          test -z "$ac_c_werror_flag" ||
19382          test ! -s conftest.err
19383        } && test -s conftest.$ac_objext; then
19384   ac_cv_member_struct_mtget_mt_gstat=yes
19385 else
19386   echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19388
19389         cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h.  */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h.  */
19395 #include <sys/types.h>
19396 #ifdef HAVE_SYS_MTIO_H
19397 #include <sys/mtio.h>
19398 #endif
19399
19400 int
19401 main ()
19402 {
19403 static struct mtget ac_aggr;
19404 if (sizeof ac_aggr.mt_gstat)
19405 return 0;
19406   ;
19407   return 0;
19408 }
19409 _ACEOF
19410 rm -f conftest.$ac_objext
19411 if { (ac_try="$ac_compile"
19412 case "(($ac_try" in
19413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414   *) ac_try_echo=$ac_try;;
19415 esac
19416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417   (eval "$ac_compile") 2>conftest.er1
19418   ac_status=$?
19419   grep -v '^ *+' conftest.er1 >conftest.err
19420   rm -f conftest.er1
19421   cat conftest.err >&5
19422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423   (exit $ac_status); } && {
19424          test -z "$ac_c_werror_flag" ||
19425          test ! -s conftest.err
19426        } && test -s conftest.$ac_objext; then
19427   ac_cv_member_struct_mtget_mt_gstat=yes
19428 else
19429   echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19431
19432         ac_cv_member_struct_mtget_mt_gstat=no
19433 fi
19434
19435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19436 fi
19437
19438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 fi
19440 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
19441 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
19442 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
19443
19444 cat >>confdefs.h <<_ACEOF
19445 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
19446 _ACEOF
19447
19448
19449 fi
19450 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
19451 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
19452 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
19453   echo $ECHO_N "(cached) $ECHO_C" >&6
19454 else
19455   cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h.  */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h.  */
19461 #include <sys/types.h>
19462 #ifdef HAVE_SYS_MTIO_H
19463 #include <sys/mtio.h>
19464 #endif
19465
19466 int
19467 main ()
19468 {
19469 static struct mtget ac_aggr;
19470 if (ac_aggr.mt_blkno)
19471 return 0;
19472   ;
19473   return 0;
19474 }
19475 _ACEOF
19476 rm -f conftest.$ac_objext
19477 if { (ac_try="$ac_compile"
19478 case "(($ac_try" in
19479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480   *) ac_try_echo=$ac_try;;
19481 esac
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483   (eval "$ac_compile") 2>conftest.er1
19484   ac_status=$?
19485   grep -v '^ *+' conftest.er1 >conftest.err
19486   rm -f conftest.er1
19487   cat conftest.err >&5
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); } && {
19490          test -z "$ac_c_werror_flag" ||
19491          test ! -s conftest.err
19492        } && test -s conftest.$ac_objext; then
19493   ac_cv_member_struct_mtget_mt_blkno=yes
19494 else
19495   echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19497
19498         cat >conftest.$ac_ext <<_ACEOF
19499 /* confdefs.h.  */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h.  */
19504 #include <sys/types.h>
19505 #ifdef HAVE_SYS_MTIO_H
19506 #include <sys/mtio.h>
19507 #endif
19508
19509 int
19510 main ()
19511 {
19512 static struct mtget ac_aggr;
19513 if (sizeof ac_aggr.mt_blkno)
19514 return 0;
19515   ;
19516   return 0;
19517 }
19518 _ACEOF
19519 rm -f conftest.$ac_objext
19520 if { (ac_try="$ac_compile"
19521 case "(($ac_try" in
19522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523   *) ac_try_echo=$ac_try;;
19524 esac
19525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526   (eval "$ac_compile") 2>conftest.er1
19527   ac_status=$?
19528   grep -v '^ *+' conftest.er1 >conftest.err
19529   rm -f conftest.er1
19530   cat conftest.err >&5
19531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532   (exit $ac_status); } && {
19533          test -z "$ac_c_werror_flag" ||
19534          test ! -s conftest.err
19535        } && test -s conftest.$ac_objext; then
19536   ac_cv_member_struct_mtget_mt_blkno=yes
19537 else
19538   echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19540
19541         ac_cv_member_struct_mtget_mt_blkno=no
19542 fi
19543
19544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19545 fi
19546
19547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19548 fi
19549 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19550 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
19551 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19552
19553 cat >>confdefs.h <<_ACEOF
19554 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
19555 _ACEOF
19556
19557
19558 fi
19559
19560
19561 { echo "$as_me:$LINENO: checking for struct option.name" >&5
19562 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
19563 if test "${ac_cv_member_struct_option_name+set}" = set; then
19564   echo $ECHO_N "(cached) $ECHO_C" >&6
19565 else
19566   cat >conftest.$ac_ext <<_ACEOF
19567 /* confdefs.h.  */
19568 _ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h.  */
19572 #ifdef HAVE_GETOPT_H
19573 #include <getopt.h>
19574 #endif
19575
19576 int
19577 main ()
19578 {
19579 static struct option ac_aggr;
19580 if (ac_aggr.name)
19581 return 0;
19582   ;
19583   return 0;
19584 }
19585 _ACEOF
19586 rm -f conftest.$ac_objext
19587 if { (ac_try="$ac_compile"
19588 case "(($ac_try" in
19589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590   *) ac_try_echo=$ac_try;;
19591 esac
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593   (eval "$ac_compile") 2>conftest.er1
19594   ac_status=$?
19595   grep -v '^ *+' conftest.er1 >conftest.err
19596   rm -f conftest.er1
19597   cat conftest.err >&5
19598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599   (exit $ac_status); } && {
19600          test -z "$ac_c_werror_flag" ||
19601          test ! -s conftest.err
19602        } && test -s conftest.$ac_objext; then
19603   ac_cv_member_struct_option_name=yes
19604 else
19605   echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19607
19608         cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h.  */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h.  */
19614 #ifdef HAVE_GETOPT_H
19615 #include <getopt.h>
19616 #endif
19617
19618 int
19619 main ()
19620 {
19621 static struct option ac_aggr;
19622 if (sizeof ac_aggr.name)
19623 return 0;
19624   ;
19625   return 0;
19626 }
19627 _ACEOF
19628 rm -f conftest.$ac_objext
19629 if { (ac_try="$ac_compile"
19630 case "(($ac_try" in
19631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632   *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635   (eval "$ac_compile") 2>conftest.er1
19636   ac_status=$?
19637   grep -v '^ *+' conftest.er1 >conftest.err
19638   rm -f conftest.er1
19639   cat conftest.err >&5
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); } && {
19642          test -z "$ac_c_werror_flag" ||
19643          test ! -s conftest.err
19644        } && test -s conftest.$ac_objext; then
19645   ac_cv_member_struct_option_name=yes
19646 else
19647   echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19649
19650         ac_cv_member_struct_option_name=no
19651 fi
19652
19653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19654 fi
19655
19656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19657 fi
19658 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19659 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
19660 if test $ac_cv_member_struct_option_name = yes; then
19661
19662 cat >>confdefs.h <<_ACEOF
19663 #define HAVE_STRUCT_OPTION_NAME 1
19664 _ACEOF
19665
19666
19667 fi
19668
19669
19670 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19671 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19672 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19673   echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675   cat >conftest.$ac_ext <<_ACEOF
19676 /* confdefs.h.  */
19677 _ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h.  */
19681 $ac_includes_default
19682 int
19683 main ()
19684 {
19685 static struct stat ac_aggr;
19686 if (ac_aggr.st_blocks)
19687 return 0;
19688   ;
19689   return 0;
19690 }
19691 _ACEOF
19692 rm -f conftest.$ac_objext
19693 if { (ac_try="$ac_compile"
19694 case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_compile") 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } && {
19706          test -z "$ac_c_werror_flag" ||
19707          test ! -s conftest.err
19708        } && test -s conftest.$ac_objext; then
19709   ac_cv_member_struct_stat_st_blocks=yes
19710 else
19711   echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19713
19714         cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h.  */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h.  */
19720 $ac_includes_default
19721 int
19722 main ()
19723 {
19724 static struct stat ac_aggr;
19725 if (sizeof ac_aggr.st_blocks)
19726 return 0;
19727   ;
19728   return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext
19732 if { (ac_try="$ac_compile"
19733 case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_compile") 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } && {
19745          test -z "$ac_c_werror_flag" ||
19746          test ! -s conftest.err
19747        } && test -s conftest.$ac_objext; then
19748   ac_cv_member_struct_stat_st_blocks=yes
19749 else
19750   echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753         ac_cv_member_struct_stat_st_blocks=no
19754 fi
19755
19756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19757 fi
19758
19759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19760 fi
19761 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19762 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19763 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19764
19765 cat >>confdefs.h <<_ACEOF
19766 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19767 _ACEOF
19768
19769
19770 fi
19771
19772
19773 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19774 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
19775 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19776   echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778   cat >conftest.$ac_ext <<_ACEOF
19779 /* confdefs.h.  */
19780 _ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h.  */
19784 #ifdef HAVE_SYS_TYPES_H
19785 #include <sys/types.h>
19786 #endif
19787 #ifdef HAVE_NETINET_IN_H
19788 #include <netinet/in.h>
19789 #endif
19790
19791 int
19792 main ()
19793 {
19794 static struct sockaddr_in6 ac_aggr;
19795 if (ac_aggr.sin6_scope_id)
19796 return 0;
19797   ;
19798   return 0;
19799 }
19800 _ACEOF
19801 rm -f conftest.$ac_objext
19802 if { (ac_try="$ac_compile"
19803 case "(($ac_try" in
19804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805   *) ac_try_echo=$ac_try;;
19806 esac
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808   (eval "$ac_compile") 2>conftest.er1
19809   ac_status=$?
19810   grep -v '^ *+' conftest.er1 >conftest.err
19811   rm -f conftest.er1
19812   cat conftest.err >&5
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); } && {
19815          test -z "$ac_c_werror_flag" ||
19816          test ! -s conftest.err
19817        } && test -s conftest.$ac_objext; then
19818   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19819 else
19820   echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19822
19823         cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h.  */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h.  */
19829 #ifdef HAVE_SYS_TYPES_H
19830 #include <sys/types.h>
19831 #endif
19832 #ifdef HAVE_NETINET_IN_H
19833 #include <netinet/in.h>
19834 #endif
19835
19836 int
19837 main ()
19838 {
19839 static struct sockaddr_in6 ac_aggr;
19840 if (sizeof ac_aggr.sin6_scope_id)
19841 return 0;
19842   ;
19843   return 0;
19844 }
19845 _ACEOF
19846 rm -f conftest.$ac_objext
19847 if { (ac_try="$ac_compile"
19848 case "(($ac_try" in
19849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850   *) ac_try_echo=$ac_try;;
19851 esac
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853   (eval "$ac_compile") 2>conftest.er1
19854   ac_status=$?
19855   grep -v '^ *+' conftest.er1 >conftest.err
19856   rm -f conftest.er1
19857   cat conftest.err >&5
19858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859   (exit $ac_status); } && {
19860          test -z "$ac_c_werror_flag" ||
19861          test ! -s conftest.err
19862        } && test -s conftest.$ac_objext; then
19863   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19864 else
19865   echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
19869 fi
19870
19871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19872 fi
19873
19874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19875 fi
19876 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19877 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
19878 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19879
19880 cat >>confdefs.h <<_ACEOF
19881 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19882 _ACEOF
19883
19884
19885 fi
19886
19887
19888 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
19889 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
19890 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
19891   echo $ECHO_N "(cached) $ECHO_C" >&6
19892 else
19893   cat >conftest.$ac_ext <<_ACEOF
19894 /* confdefs.h.  */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h.  */
19899 #ifdef HAVE_SYS_TYPES_H
19900 #include <sys/types.h>
19901 #endif
19902 #ifdef HAVE_NETINET_IN_H
19903 # include <netinet/in.h>
19904 #endif
19905 #ifdef HAVE_ARPA_NAMESER_H
19906 # include <arpa/nameser.h>
19907 #endif
19908
19909 int
19910 main ()
19911 {
19912 static ns_msg ac_aggr;
19913 if (ac_aggr._msg_ptr)
19914 return 0;
19915   ;
19916   return 0;
19917 }
19918 _ACEOF
19919 rm -f conftest.$ac_objext
19920 if { (ac_try="$ac_compile"
19921 case "(($ac_try" in
19922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923   *) ac_try_echo=$ac_try;;
19924 esac
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926   (eval "$ac_compile") 2>conftest.er1
19927   ac_status=$?
19928   grep -v '^ *+' conftest.er1 >conftest.err
19929   rm -f conftest.er1
19930   cat conftest.err >&5
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } && {
19933          test -z "$ac_c_werror_flag" ||
19934          test ! -s conftest.err
19935        } && test -s conftest.$ac_objext; then
19936   ac_cv_member_ns_msg__msg_ptr=yes
19937 else
19938   echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19940
19941         cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h.  */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h.  */
19947 #ifdef HAVE_SYS_TYPES_H
19948 #include <sys/types.h>
19949 #endif
19950 #ifdef HAVE_NETINET_IN_H
19951 # include <netinet/in.h>
19952 #endif
19953 #ifdef HAVE_ARPA_NAMESER_H
19954 # include <arpa/nameser.h>
19955 #endif
19956
19957 int
19958 main ()
19959 {
19960 static ns_msg ac_aggr;
19961 if (sizeof ac_aggr._msg_ptr)
19962 return 0;
19963   ;
19964   return 0;
19965 }
19966 _ACEOF
19967 rm -f conftest.$ac_objext
19968 if { (ac_try="$ac_compile"
19969 case "(($ac_try" in
19970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971   *) ac_try_echo=$ac_try;;
19972 esac
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974   (eval "$ac_compile") 2>conftest.er1
19975   ac_status=$?
19976   grep -v '^ *+' conftest.er1 >conftest.err
19977   rm -f conftest.er1
19978   cat conftest.err >&5
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } && {
19981          test -z "$ac_c_werror_flag" ||
19982          test ! -s conftest.err
19983        } && test -s conftest.$ac_objext; then
19984   ac_cv_member_ns_msg__msg_ptr=yes
19985 else
19986   echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989         ac_cv_member_ns_msg__msg_ptr=no
19990 fi
19991
19992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19993 fi
19994
19995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19996 fi
19997 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
19998 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
19999 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
20000
20001 cat >>confdefs.h <<_ACEOF
20002 #define HAVE_NS_MSG__MSG_PTR 1
20003 _ACEOF
20004
20005
20006 fi
20007
20008
20009 { echo "$as_me:$LINENO: checking for timezone variable" >&5
20010 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
20011 if test "${ac_cv_have_timezone+set}" = set; then
20012   echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014   cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h.  */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h.  */
20020 #include <time.h>
20021 int
20022 main ()
20023 {
20024 timezone = 1
20025   ;
20026   return 0;
20027 }
20028 _ACEOF
20029 rm -f conftest.$ac_objext conftest$ac_exeext
20030 if { (ac_try="$ac_link"
20031 case "(($ac_try" in
20032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033   *) ac_try_echo=$ac_try;;
20034 esac
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036   (eval "$ac_link") 2>conftest.er1
20037   ac_status=$?
20038   grep -v '^ *+' conftest.er1 >conftest.err
20039   rm -f conftest.er1
20040   cat conftest.err >&5
20041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042   (exit $ac_status); } && {
20043          test -z "$ac_c_werror_flag" ||
20044          test ! -s conftest.err
20045        } && test -s conftest$ac_exeext &&
20046        $as_test_x conftest$ac_exeext; then
20047   ac_cv_have_timezone="yes"
20048 else
20049   echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20051
20052         ac_cv_have_timezone="no"
20053 fi
20054
20055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20056       conftest$ac_exeext conftest.$ac_ext
20057 fi
20058 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
20059 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
20060 if test "$ac_cv_have_timezone" = "yes"
20061 then
20062
20063 cat >>confdefs.h <<\_ACEOF
20064 #define HAVE_TIMEZONE 1
20065 _ACEOF
20066
20067 fi
20068 { echo "$as_me:$LINENO: checking for daylight variable" >&5
20069 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
20070 if test "${ac_cv_have_daylight+set}" = set; then
20071   echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073   cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h.  */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h.  */
20079 #include <time.h>
20080 int
20081 main ()
20082 {
20083 daylight = 1
20084   ;
20085   return 0;
20086 }
20087 _ACEOF
20088 rm -f conftest.$ac_objext conftest$ac_exeext
20089 if { (ac_try="$ac_link"
20090 case "(($ac_try" in
20091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092   *) ac_try_echo=$ac_try;;
20093 esac
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095   (eval "$ac_link") 2>conftest.er1
20096   ac_status=$?
20097   grep -v '^ *+' conftest.er1 >conftest.err
20098   rm -f conftest.er1
20099   cat conftest.err >&5
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); } && {
20102          test -z "$ac_c_werror_flag" ||
20103          test ! -s conftest.err
20104        } && test -s conftest$ac_exeext &&
20105        $as_test_x conftest$ac_exeext; then
20106   ac_cv_have_daylight="yes"
20107 else
20108   echo "$as_me: failed program was:" >&5
20109 sed 's/^/| /' conftest.$ac_ext >&5
20110
20111         ac_cv_have_daylight="no"
20112 fi
20113
20114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20115       conftest$ac_exeext conftest.$ac_ext
20116 fi
20117 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20118 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
20119 if test "$ac_cv_have_daylight" = "yes"
20120 then
20121
20122 cat >>confdefs.h <<\_ACEOF
20123 #define HAVE_DAYLIGHT 1
20124 _ACEOF
20125
20126 fi
20127
20128
20129 case $host_cpu in
20130   *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20131 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
20132 if test "${ac_cv_cpp_def___i386__+set}" = set; then
20133   echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135   cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h.  */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h.  */
20141 #ifndef __i386__
20142 yes
20143 #endif
20144 _ACEOF
20145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20146   $EGREP "yes" >/dev/null 2>&1; then
20147   ac_cv_cpp_def___i386__=yes
20148 else
20149   ac_cv_cpp_def___i386__=no
20150 fi
20151 rm -f conftest*
20152
20153 fi
20154 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20155 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
20156 if test $ac_cv_cpp_def___i386__ = yes; then
20157   CFLAGS="$CFLAGS -D__i386__"
20158   LINTFLAGS="$LINTFLAGS -D__i386__"
20159 fi
20160  ;;
20161   *x86_64*)         { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
20162 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
20163 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
20164   echo $ECHO_N "(cached) $ECHO_C" >&6
20165 else
20166   cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h.  */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h.  */
20172 #ifndef __x86_64__
20173 yes
20174 #endif
20175 _ACEOF
20176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20177   $EGREP "yes" >/dev/null 2>&1; then
20178   ac_cv_cpp_def___x86_64__=yes
20179 else
20180   ac_cv_cpp_def___x86_64__=no
20181 fi
20182 rm -f conftest*
20183
20184 fi
20185 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
20186 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
20187 if test $ac_cv_cpp_def___x86_64__ = yes; then
20188   CFLAGS="$CFLAGS -D__x86_64__"
20189   LINTFLAGS="$LINTFLAGS -D__x86_64__"
20190 fi
20191  ;;
20192   *alpha*)          { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20193 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
20194 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20195   echo $ECHO_N "(cached) $ECHO_C" >&6
20196 else
20197   cat >conftest.$ac_ext <<_ACEOF
20198 /* confdefs.h.  */
20199 _ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h.  */
20203 #ifndef __ALPHA__
20204 yes
20205 #endif
20206 _ACEOF
20207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20208   $EGREP "yes" >/dev/null 2>&1; then
20209   ac_cv_cpp_def___ALPHA__=yes
20210 else
20211   ac_cv_cpp_def___ALPHA__=no
20212 fi
20213 rm -f conftest*
20214
20215 fi
20216 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20217 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
20218 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20219   CFLAGS="$CFLAGS -D__ALPHA__"
20220   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20221 fi
20222  ;;
20223   *sparc*)          { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20224 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
20225 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20226   echo $ECHO_N "(cached) $ECHO_C" >&6
20227 else
20228   cat >conftest.$ac_ext <<_ACEOF
20229 /* confdefs.h.  */
20230 _ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h.  */
20234 #ifndef __sparc__
20235 yes
20236 #endif
20237 _ACEOF
20238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20239   $EGREP "yes" >/dev/null 2>&1; then
20240   ac_cv_cpp_def___sparc__=yes
20241 else
20242   ac_cv_cpp_def___sparc__=no
20243 fi
20244 rm -f conftest*
20245
20246 fi
20247 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20248 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
20249 if test $ac_cv_cpp_def___sparc__ = yes; then
20250   CFLAGS="$CFLAGS -D__sparc__"
20251   LINTFLAGS="$LINTFLAGS -D__sparc__"
20252 fi
20253  ;;
20254   *powerpc*)        { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20255 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
20256 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20257   echo $ECHO_N "(cached) $ECHO_C" >&6
20258 else
20259   cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h.  */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h.  */
20265 #ifndef __powerpc__
20266 yes
20267 #endif
20268 _ACEOF
20269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20270   $EGREP "yes" >/dev/null 2>&1; then
20271   ac_cv_cpp_def___powerpc__=yes
20272 else
20273   ac_cv_cpp_def___powerpc__=no
20274 fi
20275 rm -f conftest*
20276
20277 fi
20278 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20279 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
20280 if test $ac_cv_cpp_def___powerpc__ = yes; then
20281   CFLAGS="$CFLAGS -D__powerpc__"
20282   LINTFLAGS="$LINTFLAGS -D__powerpc__"
20283 fi
20284  ;;
20285 esac
20286
20287 case $host_vendor in
20288   *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20289 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
20290 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20291   echo $ECHO_N "(cached) $ECHO_C" >&6
20292 else
20293   cat >conftest.$ac_ext <<_ACEOF
20294 /* confdefs.h.  */
20295 _ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h.  */
20299 #ifndef __sun__
20300 yes
20301 #endif
20302 _ACEOF
20303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20304   $EGREP "yes" >/dev/null 2>&1; then
20305   ac_cv_cpp_def___sun__=yes
20306 else
20307   ac_cv_cpp_def___sun__=no
20308 fi
20309 rm -f conftest*
20310
20311 fi
20312 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20313 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
20314 if test $ac_cv_cpp_def___sun__ = yes; then
20315   CFLAGS="$CFLAGS -D__sun__"
20316   LINTFLAGS="$LINTFLAGS -D__sun__"
20317 fi
20318  ;;
20319 esac
20320
20321
20322 DEPENDENCIES="### Dependencies:
20323
20324 .INIT: Makefile
20325 .BEGIN: Makefile
20326 Makefile: dummy
20327         -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
20328
20329 \$(OBJS): \$(IDL_GEN_HEADERS)
20330 \$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
20331 \$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
20332 \$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
20333
20334
20335
20336
20337
20338 ac_config_commands="$ac_config_commands include/stamp-h"
20339
20340
20341 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
20342
20343 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
20344
20345 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
20346
20347 ac_config_commands="$ac_config_commands dlls/user32/resources"
20348
20349 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
20350
20351 ac_config_commands="$ac_config_commands include/wine"
20352
20353
20354 MAKE_RULES=Make.rules
20355
20356
20357 MAKE_DLL_RULES=dlls/Makedll.rules
20358
20359
20360 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
20361
20362
20363 MAKE_TEST_RULES=dlls/Maketest.rules
20364
20365
20366 MAKE_PROG_RULES=programs/Makeprog.rules
20367
20368
20369 ac_config_files="$ac_config_files Make.rules"
20370
20371 ac_config_files="$ac_config_files dlls/Makedll.rules"
20372
20373 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
20374
20375 ac_config_files="$ac_config_files dlls/Maketest.rules"
20376
20377 ac_config_files="$ac_config_files programs/Makeprog.rules"
20378
20379 ac_config_files="$ac_config_files Makefile"
20380
20381 ac_config_files="$ac_config_files dlls/Makefile"
20382
20383 ac_config_files="$ac_config_files dlls/activeds/Makefile"
20384
20385 ac_config_files="$ac_config_files dlls/advapi32/Makefile"
20386
20387 ac_config_files="$ac_config_files dlls/advapi32/tests/Makefile"
20388
20389 ac_config_files="$ac_config_files dlls/advpack/Makefile"
20390
20391 ac_config_files="$ac_config_files dlls/advpack/tests/Makefile"
20392
20393 ac_config_files="$ac_config_files dlls/amstream/Makefile"
20394
20395 ac_config_files="$ac_config_files dlls/atl/Makefile"
20396
20397 ac_config_files="$ac_config_files dlls/avicap32/Makefile"
20398
20399 ac_config_files="$ac_config_files dlls/avifil32/Makefile"
20400
20401 ac_config_files="$ac_config_files dlls/browseui/Makefile"
20402
20403 ac_config_files="$ac_config_files dlls/browseui/tests/Makefile"
20404
20405 ac_config_files="$ac_config_files dlls/cabinet/Makefile"
20406
20407 ac_config_files="$ac_config_files dlls/cabinet/tests/Makefile"
20408
20409 ac_config_files="$ac_config_files dlls/capi2032/Makefile"
20410
20411 ac_config_files="$ac_config_files dlls/cards/Makefile"
20412
20413 ac_config_files="$ac_config_files dlls/cfgmgr32/Makefile"
20414
20415 ac_config_files="$ac_config_files dlls/clusapi/Makefile"
20416
20417 ac_config_files="$ac_config_files dlls/comcat/Makefile"
20418
20419 ac_config_files="$ac_config_files dlls/comcat/tests/Makefile"
20420
20421 ac_config_files="$ac_config_files dlls/comctl32/Makefile"
20422
20423 ac_config_files="$ac_config_files dlls/comctl32/tests/Makefile"
20424
20425 ac_config_files="$ac_config_files dlls/comdlg32/Makefile"
20426
20427 ac_config_files="$ac_config_files dlls/comdlg32/tests/Makefile"
20428
20429 ac_config_files="$ac_config_files dlls/compstui/Makefile"
20430
20431 ac_config_files="$ac_config_files dlls/credui/Makefile"
20432
20433 ac_config_files="$ac_config_files dlls/crtdll/Makefile"
20434
20435 ac_config_files="$ac_config_files dlls/crypt32/Makefile"
20436
20437 ac_config_files="$ac_config_files dlls/crypt32/tests/Makefile"
20438
20439 ac_config_files="$ac_config_files dlls/cryptdll/Makefile"
20440
20441 ac_config_files="$ac_config_files dlls/cryptnet/Makefile"
20442
20443 ac_config_files="$ac_config_files dlls/ctl3d32/Makefile"
20444
20445 ac_config_files="$ac_config_files dlls/d3d8/Makefile"
20446
20447 ac_config_files="$ac_config_files dlls/d3d8/tests/Makefile"
20448
20449 ac_config_files="$ac_config_files dlls/d3d9/Makefile"
20450
20451 ac_config_files="$ac_config_files dlls/d3d9/tests/Makefile"
20452
20453 ac_config_files="$ac_config_files dlls/d3dim/Makefile"
20454
20455 ac_config_files="$ac_config_files dlls/d3drm/Makefile"
20456
20457 ac_config_files="$ac_config_files dlls/d3dx8/Makefile"
20458
20459 ac_config_files="$ac_config_files dlls/d3dxof/Makefile"
20460
20461 ac_config_files="$ac_config_files dlls/dbghelp/Makefile"
20462
20463 ac_config_files="$ac_config_files dlls/dciman32/Makefile"
20464
20465 ac_config_files="$ac_config_files dlls/ddraw/Makefile"
20466
20467 ac_config_files="$ac_config_files dlls/ddraw/tests/Makefile"
20468
20469 ac_config_files="$ac_config_files dlls/ddrawex/Makefile"
20470
20471 ac_config_files="$ac_config_files dlls/devenum/Makefile"
20472
20473 ac_config_files="$ac_config_files dlls/dinput/Makefile"
20474
20475 ac_config_files="$ac_config_files dlls/dinput/tests/Makefile"
20476
20477 ac_config_files="$ac_config_files dlls/dinput8/Makefile"
20478
20479 ac_config_files="$ac_config_files dlls/dmband/Makefile"
20480
20481 ac_config_files="$ac_config_files dlls/dmcompos/Makefile"
20482
20483 ac_config_files="$ac_config_files dlls/dmime/Makefile"
20484
20485 ac_config_files="$ac_config_files dlls/dmloader/Makefile"
20486
20487 ac_config_files="$ac_config_files dlls/dmscript/Makefile"
20488
20489 ac_config_files="$ac_config_files dlls/dmstyle/Makefile"
20490
20491 ac_config_files="$ac_config_files dlls/dmsynth/Makefile"
20492
20493 ac_config_files="$ac_config_files dlls/dmusic/Makefile"
20494
20495 ac_config_files="$ac_config_files dlls/dmusic32/Makefile"
20496
20497 ac_config_files="$ac_config_files dlls/dnsapi/Makefile"
20498
20499 ac_config_files="$ac_config_files dlls/dnsapi/tests/Makefile"
20500
20501 ac_config_files="$ac_config_files dlls/dplay/Makefile"
20502
20503 ac_config_files="$ac_config_files dlls/dplayx/Makefile"
20504
20505 ac_config_files="$ac_config_files dlls/dplayx/tests/Makefile"
20506
20507 ac_config_files="$ac_config_files dlls/dpnaddr/Makefile"
20508
20509 ac_config_files="$ac_config_files dlls/dpnet/Makefile"
20510
20511 ac_config_files="$ac_config_files dlls/dpnhpast/Makefile"
20512
20513 ac_config_files="$ac_config_files dlls/dsound/Makefile"
20514
20515 ac_config_files="$ac_config_files dlls/dsound/tests/Makefile"
20516
20517 ac_config_files="$ac_config_files dlls/dswave/Makefile"
20518
20519 ac_config_files="$ac_config_files dlls/dxdiagn/Makefile"
20520
20521 ac_config_files="$ac_config_files dlls/dxerr8/Makefile"
20522
20523 ac_config_files="$ac_config_files dlls/dxerr9/Makefile"
20524
20525 ac_config_files="$ac_config_files dlls/dxguid/Makefile"
20526
20527 ac_config_files="$ac_config_files dlls/gdi32/Makefile"
20528
20529 ac_config_files="$ac_config_files dlls/gdi32/tests/Makefile"
20530
20531 ac_config_files="$ac_config_files dlls/glu32/Makefile"
20532
20533 ac_config_files="$ac_config_files dlls/gphoto2.ds/Makefile"
20534
20535 ac_config_files="$ac_config_files dlls/hhctrl.ocx/Makefile"
20536
20537 ac_config_files="$ac_config_files dlls/hid/Makefile"
20538
20539 ac_config_files="$ac_config_files dlls/hlink/Makefile"
20540
20541 ac_config_files="$ac_config_files dlls/hlink/tests/Makefile"
20542
20543 ac_config_files="$ac_config_files dlls/iccvid/Makefile"
20544
20545 ac_config_files="$ac_config_files dlls/icmp/Makefile"
20546
20547 ac_config_files="$ac_config_files dlls/ifsmgr.vxd/Makefile"
20548
20549 ac_config_files="$ac_config_files dlls/imaadp32.acm/Makefile"
20550
20551 ac_config_files="$ac_config_files dlls/imagehlp/Makefile"
20552
20553 ac_config_files="$ac_config_files dlls/imm32/Makefile"
20554
20555 ac_config_files="$ac_config_files dlls/infosoft/Makefile"
20556
20557 ac_config_files="$ac_config_files dlls/infosoft/tests/Makefile"
20558
20559 ac_config_files="$ac_config_files dlls/inseng/Makefile"
20560
20561 ac_config_files="$ac_config_files dlls/iphlpapi/Makefile"
20562
20563 ac_config_files="$ac_config_files dlls/iphlpapi/tests/Makefile"
20564
20565 ac_config_files="$ac_config_files dlls/itss/Makefile"
20566
20567 ac_config_files="$ac_config_files dlls/itss/tests/Makefile"
20568
20569 ac_config_files="$ac_config_files dlls/kernel32/Makefile"
20570
20571 ac_config_files="$ac_config_files dlls/kernel32/tests/Makefile"
20572
20573 ac_config_files="$ac_config_files dlls/localspl/Makefile"
20574
20575 ac_config_files="$ac_config_files dlls/localspl/tests/Makefile"
20576
20577 ac_config_files="$ac_config_files dlls/lz32/Makefile"
20578
20579 ac_config_files="$ac_config_files dlls/lz32/tests/Makefile"
20580
20581 ac_config_files="$ac_config_files dlls/mapi32/Makefile"
20582
20583 ac_config_files="$ac_config_files dlls/mapi32/tests/Makefile"
20584
20585 ac_config_files="$ac_config_files dlls/mciavi32/Makefile"
20586
20587 ac_config_files="$ac_config_files dlls/mcicda/Makefile"
20588
20589 ac_config_files="$ac_config_files dlls/mciseq/Makefile"
20590
20591 ac_config_files="$ac_config_files dlls/mciwave/Makefile"
20592
20593 ac_config_files="$ac_config_files dlls/midimap/Makefile"
20594
20595 ac_config_files="$ac_config_files dlls/mlang/Makefile"
20596
20597 ac_config_files="$ac_config_files dlls/mlang/tests/Makefile"
20598
20599 ac_config_files="$ac_config_files dlls/mmdevldr.vxd/Makefile"
20600
20601 ac_config_files="$ac_config_files dlls/monodebg.vxd/Makefile"
20602
20603 ac_config_files="$ac_config_files dlls/mpr/Makefile"
20604
20605 ac_config_files="$ac_config_files dlls/mprapi/Makefile"
20606
20607 ac_config_files="$ac_config_files dlls/msacm32.drv/Makefile"
20608
20609 ac_config_files="$ac_config_files dlls/msacm32/Makefile"
20610
20611 ac_config_files="$ac_config_files dlls/msacm32/tests/Makefile"
20612
20613 ac_config_files="$ac_config_files dlls/msadp32.acm/Makefile"
20614
20615 ac_config_files="$ac_config_files dlls/mscms/Makefile"
20616
20617 ac_config_files="$ac_config_files dlls/mscms/tests/Makefile"
20618
20619 ac_config_files="$ac_config_files dlls/mscoree/Makefile"
20620
20621 ac_config_files="$ac_config_files dlls/msdmo/Makefile"
20622
20623 ac_config_files="$ac_config_files dlls/msftedit/Makefile"
20624
20625 ac_config_files="$ac_config_files dlls/msg711.acm/Makefile"
20626
20627 ac_config_files="$ac_config_files dlls/mshtml/Makefile"
20628
20629 ac_config_files="$ac_config_files dlls/mshtml/tests/Makefile"
20630
20631 ac_config_files="$ac_config_files dlls/msi/Makefile"
20632
20633 ac_config_files="$ac_config_files dlls/msi/tests/Makefile"
20634
20635 ac_config_files="$ac_config_files dlls/msimg32/Makefile"
20636
20637 ac_config_files="$ac_config_files dlls/msisys.ocx/Makefile"
20638
20639 ac_config_files="$ac_config_files dlls/msnet32/Makefile"
20640
20641 ac_config_files="$ac_config_files dlls/msrle32/Makefile"
20642
20643 ac_config_files="$ac_config_files dlls/msvcrt/Makefile"
20644
20645 ac_config_files="$ac_config_files dlls/msvcrt/tests/Makefile"
20646
20647 ac_config_files="$ac_config_files dlls/msvcrt20/Makefile"
20648
20649 ac_config_files="$ac_config_files dlls/msvcrt40/Makefile"
20650
20651 ac_config_files="$ac_config_files dlls/msvcrtd/Makefile"
20652
20653 ac_config_files="$ac_config_files dlls/msvcrtd/tests/Makefile"
20654
20655 ac_config_files="$ac_config_files dlls/msvfw32/Makefile"
20656
20657 ac_config_files="$ac_config_files dlls/msvidc32/Makefile"
20658
20659 ac_config_files="$ac_config_files dlls/mswsock/Makefile"
20660
20661 ac_config_files="$ac_config_files dlls/msxml3/Makefile"
20662
20663 ac_config_files="$ac_config_files dlls/msxml3/tests/Makefile"
20664
20665 ac_config_files="$ac_config_files dlls/nddeapi/Makefile"
20666
20667 ac_config_files="$ac_config_files dlls/netapi32/Makefile"
20668
20669 ac_config_files="$ac_config_files dlls/netapi32/tests/Makefile"
20670
20671 ac_config_files="$ac_config_files dlls/newdev/Makefile"
20672
20673 ac_config_files="$ac_config_files dlls/ntdll/Makefile"
20674
20675 ac_config_files="$ac_config_files dlls/ntdll/tests/Makefile"
20676
20677 ac_config_files="$ac_config_files dlls/ntdsapi/Makefile"
20678
20679 ac_config_files="$ac_config_files dlls/objsel/Makefile"
20680
20681 ac_config_files="$ac_config_files dlls/odbc32/Makefile"
20682
20683 ac_config_files="$ac_config_files dlls/odbccp32/Makefile"
20684
20685 ac_config_files="$ac_config_files dlls/odbccp32/tests/Makefile"
20686
20687 ac_config_files="$ac_config_files dlls/ole32/Makefile"
20688
20689 ac_config_files="$ac_config_files dlls/ole32/tests/Makefile"
20690
20691 ac_config_files="$ac_config_files dlls/oleacc/Makefile"
20692
20693 ac_config_files="$ac_config_files dlls/oleaut32/Makefile"
20694
20695 ac_config_files="$ac_config_files dlls/oleaut32/tests/Makefile"
20696
20697 ac_config_files="$ac_config_files dlls/olecli32/Makefile"
20698
20699 ac_config_files="$ac_config_files dlls/oledlg/Makefile"
20700
20701 ac_config_files="$ac_config_files dlls/olepro32/Makefile"
20702
20703 ac_config_files="$ac_config_files dlls/olesvr32/Makefile"
20704
20705 ac_config_files="$ac_config_files dlls/opengl32/Makefile"
20706
20707 ac_config_files="$ac_config_files dlls/powrprof/Makefile"
20708
20709 ac_config_files="$ac_config_files dlls/psapi/Makefile"
20710
20711 ac_config_files="$ac_config_files dlls/psapi/tests/Makefile"
20712
20713 ac_config_files="$ac_config_files dlls/pstorec/Makefile"
20714
20715 ac_config_files="$ac_config_files dlls/qcap/Makefile"
20716
20717 ac_config_files="$ac_config_files dlls/quartz/Makefile"
20718
20719 ac_config_files="$ac_config_files dlls/quartz/tests/Makefile"
20720
20721 ac_config_files="$ac_config_files dlls/query/Makefile"
20722
20723 ac_config_files="$ac_config_files dlls/rasapi32/Makefile"
20724
20725 ac_config_files="$ac_config_files dlls/resutils/Makefile"
20726
20727 ac_config_files="$ac_config_files dlls/riched20/Makefile"
20728
20729 ac_config_files="$ac_config_files dlls/riched20/tests/Makefile"
20730
20731 ac_config_files="$ac_config_files dlls/riched32/Makefile"
20732
20733 ac_config_files="$ac_config_files dlls/rpcrt4/Makefile"
20734
20735 ac_config_files="$ac_config_files dlls/rpcrt4/tests/Makefile"
20736
20737 ac_config_files="$ac_config_files dlls/rsabase/Makefile"
20738
20739 ac_config_files="$ac_config_files dlls/rsabase/tests/Makefile"
20740
20741 ac_config_files="$ac_config_files dlls/rsaenh/Makefile"
20742
20743 ac_config_files="$ac_config_files dlls/rsaenh/tests/Makefile"
20744
20745 ac_config_files="$ac_config_files dlls/sane.ds/Makefile"
20746
20747 ac_config_files="$ac_config_files dlls/schannel/Makefile"
20748
20749 ac_config_files="$ac_config_files dlls/secur32/Makefile"
20750
20751 ac_config_files="$ac_config_files dlls/secur32/tests/Makefile"
20752
20753 ac_config_files="$ac_config_files dlls/security/Makefile"
20754
20755 ac_config_files="$ac_config_files dlls/sensapi/Makefile"
20756
20757 ac_config_files="$ac_config_files dlls/serialui/Makefile"
20758
20759 ac_config_files="$ac_config_files dlls/serialui/tests/Makefile"
20760
20761 ac_config_files="$ac_config_files dlls/setupapi/Makefile"
20762
20763 ac_config_files="$ac_config_files dlls/setupapi/tests/Makefile"
20764
20765 ac_config_files="$ac_config_files dlls/sfc/Makefile"
20766
20767 ac_config_files="$ac_config_files dlls/sfc_os/Makefile"
20768
20769 ac_config_files="$ac_config_files dlls/shdoclc/Makefile"
20770
20771 ac_config_files="$ac_config_files dlls/shdocvw/Makefile"
20772
20773 ac_config_files="$ac_config_files dlls/shdocvw/tests/Makefile"
20774
20775 ac_config_files="$ac_config_files dlls/shell32/Makefile"
20776
20777 ac_config_files="$ac_config_files dlls/shell32/tests/Makefile"
20778
20779 ac_config_files="$ac_config_files dlls/shfolder/Makefile"
20780
20781 ac_config_files="$ac_config_files dlls/shlwapi/Makefile"
20782
20783 ac_config_files="$ac_config_files dlls/shlwapi/tests/Makefile"
20784
20785 ac_config_files="$ac_config_files dlls/snmpapi/Makefile"
20786
20787 ac_config_files="$ac_config_files dlls/snmpapi/tests/Makefile"
20788
20789 ac_config_files="$ac_config_files dlls/spoolss/Makefile"
20790
20791 ac_config_files="$ac_config_files dlls/stdole2.tlb/Makefile"
20792
20793 ac_config_files="$ac_config_files dlls/stdole32.tlb/Makefile"
20794
20795 ac_config_files="$ac_config_files dlls/sti/Makefile"
20796
20797 ac_config_files="$ac_config_files dlls/strmiids/Makefile"
20798
20799 ac_config_files="$ac_config_files dlls/svrapi/Makefile"
20800
20801 ac_config_files="$ac_config_files dlls/tapi32/Makefile"
20802
20803 ac_config_files="$ac_config_files dlls/twain_32/Makefile"
20804
20805 ac_config_files="$ac_config_files dlls/unicows/Makefile"
20806
20807 ac_config_files="$ac_config_files dlls/url/Makefile"
20808
20809 ac_config_files="$ac_config_files dlls/urlmon/Makefile"
20810
20811 ac_config_files="$ac_config_files dlls/urlmon/tests/Makefile"
20812
20813 ac_config_files="$ac_config_files dlls/user32/Makefile"
20814
20815 ac_config_files="$ac_config_files dlls/user32/tests/Makefile"
20816
20817 ac_config_files="$ac_config_files dlls/userenv/Makefile"
20818
20819 ac_config_files="$ac_config_files dlls/usp10/Makefile"
20820
20821 ac_config_files="$ac_config_files dlls/usp10/tests/Makefile"
20822
20823 ac_config_files="$ac_config_files dlls/uuid/Makefile"
20824
20825 ac_config_files="$ac_config_files dlls/uxtheme/Makefile"
20826
20827 ac_config_files="$ac_config_files dlls/uxtheme/tests/Makefile"
20828
20829 ac_config_files="$ac_config_files dlls/vdhcp.vxd/Makefile"
20830
20831 ac_config_files="$ac_config_files dlls/vdmdbg/Makefile"
20832
20833 ac_config_files="$ac_config_files dlls/version/Makefile"
20834
20835 ac_config_files="$ac_config_files dlls/version/tests/Makefile"
20836
20837 ac_config_files="$ac_config_files dlls/vmm.vxd/Makefile"
20838
20839 ac_config_files="$ac_config_files dlls/vnbt.vxd/Makefile"
20840
20841 ac_config_files="$ac_config_files dlls/vnetbios.vxd/Makefile"
20842
20843 ac_config_files="$ac_config_files dlls/vtdapi.vxd/Makefile"
20844
20845 ac_config_files="$ac_config_files dlls/vwin32.vxd/Makefile"
20846
20847 ac_config_files="$ac_config_files dlls/w32skrnl/Makefile"
20848
20849 ac_config_files="$ac_config_files dlls/winealsa.drv/Makefile"
20850
20851 ac_config_files="$ac_config_files dlls/winearts.drv/Makefile"
20852
20853 ac_config_files="$ac_config_files dlls/wineaudioio.drv/Makefile"
20854
20855 ac_config_files="$ac_config_files dlls/winecoreaudio.drv/Makefile"
20856
20857 ac_config_files="$ac_config_files dlls/winecrt0/Makefile"
20858
20859 ac_config_files="$ac_config_files dlls/wined3d/Makefile"
20860
20861 ac_config_files="$ac_config_files dlls/winedos/Makefile"
20862
20863 ac_config_files="$ac_config_files dlls/wineesd.drv/Makefile"
20864
20865 ac_config_files="$ac_config_files dlls/winejack.drv/Makefile"
20866
20867 ac_config_files="$ac_config_files dlls/winejoystick.drv/Makefile"
20868
20869 ac_config_files="$ac_config_files dlls/winemp3.acm/Makefile"
20870
20871 ac_config_files="$ac_config_files dlls/winenas.drv/Makefile"
20872
20873 ac_config_files="$ac_config_files dlls/wineoss.drv/Makefile"
20874
20875 ac_config_files="$ac_config_files dlls/wineps.drv/Makefile"
20876
20877 ac_config_files="$ac_config_files dlls/winequartz.drv/Makefile"
20878
20879 ac_config_files="$ac_config_files dlls/winex11.drv/Makefile"
20880
20881 ac_config_files="$ac_config_files dlls/wing32/Makefile"
20882
20883 ac_config_files="$ac_config_files dlls/wininet/Makefile"
20884
20885 ac_config_files="$ac_config_files dlls/wininet/tests/Makefile"
20886
20887 ac_config_files="$ac_config_files dlls/winmm/Makefile"
20888
20889 ac_config_files="$ac_config_files dlls/winmm/tests/Makefile"
20890
20891 ac_config_files="$ac_config_files dlls/winnls32/Makefile"
20892
20893 ac_config_files="$ac_config_files dlls/winspool.drv/Makefile"
20894
20895 ac_config_files="$ac_config_files dlls/winspool.drv/tests/Makefile"
20896
20897 ac_config_files="$ac_config_files dlls/wintab32/Makefile"
20898
20899 ac_config_files="$ac_config_files dlls/wintrust/Makefile"
20900
20901 ac_config_files="$ac_config_files dlls/wintrust/tests/Makefile"
20902
20903 ac_config_files="$ac_config_files dlls/wldap32/Makefile"
20904
20905 ac_config_files="$ac_config_files dlls/wnaspi32/Makefile"
20906
20907 ac_config_files="$ac_config_files dlls/wow32/Makefile"
20908
20909 ac_config_files="$ac_config_files dlls/ws2_32/Makefile"
20910
20911 ac_config_files="$ac_config_files dlls/ws2_32/tests/Makefile"
20912
20913 ac_config_files="$ac_config_files dlls/wsock32/Makefile"
20914
20915 ac_config_files="$ac_config_files dlls/wtsapi32/Makefile"
20916
20917 ac_config_files="$ac_config_files documentation/Makefile"
20918
20919 ac_config_files="$ac_config_files fonts/Makefile"
20920
20921 ac_config_files="$ac_config_files include/Makefile"
20922
20923 ac_config_files="$ac_config_files libs/Makefile"
20924
20925 ac_config_files="$ac_config_files libs/port/Makefile"
20926
20927 ac_config_files="$ac_config_files libs/wine/Makefile"
20928
20929 ac_config_files="$ac_config_files libs/wpp/Makefile"
20930
20931 ac_config_files="$ac_config_files loader/Makefile"
20932
20933 ac_config_files="$ac_config_files programs/Makefile"
20934
20935 ac_config_files="$ac_config_files programs/clock/Makefile"
20936
20937 ac_config_files="$ac_config_files programs/cmd/Makefile"
20938
20939 ac_config_files="$ac_config_files programs/cmdlgtst/Makefile"
20940
20941 ac_config_files="$ac_config_files programs/control/Makefile"
20942
20943 ac_config_files="$ac_config_files programs/eject/Makefile"
20944
20945 ac_config_files="$ac_config_files programs/expand/Makefile"
20946
20947 ac_config_files="$ac_config_files programs/explorer/Makefile"
20948
20949 ac_config_files="$ac_config_files programs/hh/Makefile"
20950
20951 ac_config_files="$ac_config_files programs/icinfo/Makefile"
20952
20953 ac_config_files="$ac_config_files programs/iexplore/Makefile"
20954
20955 ac_config_files="$ac_config_files programs/msiexec/Makefile"
20956
20957 ac_config_files="$ac_config_files programs/notepad/Makefile"
20958
20959 ac_config_files="$ac_config_files programs/oleview/Makefile"
20960
20961 ac_config_files="$ac_config_files programs/progman/Makefile"
20962
20963 ac_config_files="$ac_config_files programs/regedit/Makefile"
20964
20965 ac_config_files="$ac_config_files programs/regsvr32/Makefile"
20966
20967 ac_config_files="$ac_config_files programs/rpcss/Makefile"
20968
20969 ac_config_files="$ac_config_files programs/rundll32/Makefile"
20970
20971 ac_config_files="$ac_config_files programs/spoolsv/Makefile"
20972
20973 ac_config_files="$ac_config_files programs/start/Makefile"
20974
20975 ac_config_files="$ac_config_files programs/taskmgr/Makefile"
20976
20977 ac_config_files="$ac_config_files programs/uninstaller/Makefile"
20978
20979 ac_config_files="$ac_config_files programs/view/Makefile"
20980
20981 ac_config_files="$ac_config_files programs/wineboot/Makefile"
20982
20983 ac_config_files="$ac_config_files programs/winebrowser/Makefile"
20984
20985 ac_config_files="$ac_config_files programs/winecfg/Makefile"
20986
20987 ac_config_files="$ac_config_files programs/wineconsole/Makefile"
20988
20989 ac_config_files="$ac_config_files programs/winedbg/Makefile"
20990
20991 ac_config_files="$ac_config_files programs/winefile/Makefile"
20992
20993 ac_config_files="$ac_config_files programs/winemenubuilder/Makefile"
20994
20995 ac_config_files="$ac_config_files programs/winemine/Makefile"
20996
20997 ac_config_files="$ac_config_files programs/winepath/Makefile"
20998
20999 ac_config_files="$ac_config_files programs/winetest/Makefile"
21000
21001 ac_config_files="$ac_config_files programs/winevdm/Makefile"
21002
21003 ac_config_files="$ac_config_files programs/winhelp/Makefile"
21004
21005 ac_config_files="$ac_config_files programs/winver/Makefile"
21006
21007 ac_config_files="$ac_config_files programs/wordpad/Makefile"
21008
21009 ac_config_files="$ac_config_files programs/xcopy/Makefile"
21010
21011 ac_config_files="$ac_config_files server/Makefile"
21012
21013 ac_config_files="$ac_config_files tools/Makefile"
21014
21015 ac_config_files="$ac_config_files tools/widl/Makefile"
21016
21017 ac_config_files="$ac_config_files tools/winebuild/Makefile"
21018
21019 ac_config_files="$ac_config_files tools/winedump/Makefile"
21020
21021 ac_config_files="$ac_config_files tools/winegcc/Makefile"
21022
21023 ac_config_files="$ac_config_files tools/wmc/Makefile"
21024
21025 ac_config_files="$ac_config_files tools/wrc/Makefile"
21026
21027
21028 cat >confcache <<\_ACEOF
21029 # This file is a shell script that caches the results of configure
21030 # tests run on this system so they can be shared between configure
21031 # scripts and configure runs, see configure's option --config-cache.
21032 # It is not useful on other systems.  If it contains results you don't
21033 # want to keep, you may remove or edit it.
21034 #
21035 # config.status only pays attention to the cache file if you give it
21036 # the --recheck option to rerun configure.
21037 #
21038 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21039 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21040 # following values.
21041
21042 _ACEOF
21043
21044 # The following way of writing the cache mishandles newlines in values,
21045 # but we know of no workaround that is simple, portable, and efficient.
21046 # So, we kill variables containing newlines.
21047 # Ultrix sh set writes to stderr and can't be redirected directly,
21048 # and sets the high bit in the cache file unless we assign to the vars.
21049 (
21050   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21051     eval ac_val=\$$ac_var
21052     case $ac_val in #(
21053     *${as_nl}*)
21054       case $ac_var in #(
21055       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21056 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21057       esac
21058       case $ac_var in #(
21059       _ | IFS | as_nl) ;; #(
21060       *) $as_unset $ac_var ;;
21061       esac ;;
21062     esac
21063   done
21064
21065   (set) 2>&1 |
21066     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21067     *${as_nl}ac_space=\ *)
21068       # `set' does not quote correctly, so add quotes (double-quote
21069       # substitution turns \\\\ into \\, and sed turns \\ into \).
21070       sed -n \
21071         "s/'/'\\\\''/g;
21072           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21073       ;; #(
21074     *)
21075       # `set' quotes correctly as required by POSIX, so do not add quotes.
21076       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21077       ;;
21078     esac |
21079     sort
21080 ) |
21081   sed '
21082      /^ac_cv_env_/b end
21083      t clear
21084      :clear
21085      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21086      t end
21087      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21088      :end' >>confcache
21089 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21090   if test -w "$cache_file"; then
21091     test "x$cache_file" != "x/dev/null" &&
21092       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21093 echo "$as_me: updating cache $cache_file" >&6;}
21094     cat confcache >$cache_file
21095   else
21096     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21097 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21098   fi
21099 fi
21100 rm -f confcache
21101
21102 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21103 # Let make expand exec_prefix.
21104 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21105
21106 DEFS=-DHAVE_CONFIG_H
21107
21108 ac_libobjs=
21109 ac_ltlibobjs=
21110 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21111   # 1. Remove the extension, and $U if already installed.
21112   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21113   ac_i=`echo "$ac_i" | sed "$ac_script"`
21114   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21115   #    will be set to the directory where LIBOBJS objects are built.
21116   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21117   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21118 done
21119 LIBOBJS=$ac_libobjs
21120
21121 LTLIBOBJS=$ac_ltlibobjs
21122
21123
21124
21125 : ${CONFIG_STATUS=./config.status}
21126 ac_clean_files_save=$ac_clean_files
21127 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21128 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21129 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21130 cat >$CONFIG_STATUS <<_ACEOF
21131 #! $SHELL
21132 # Generated by $as_me.
21133 # Run this file to recreate the current configuration.
21134 # Compiler output produced by configure, useful for debugging
21135 # configure, is in config.log if it exists.
21136
21137 debug=false
21138 ac_cs_recheck=false
21139 ac_cs_silent=false
21140 SHELL=\${CONFIG_SHELL-$SHELL}
21141 _ACEOF
21142
21143 cat >>$CONFIG_STATUS <<\_ACEOF
21144 ## --------------------- ##
21145 ## M4sh Initialization.  ##
21146 ## --------------------- ##
21147
21148 # Be more Bourne compatible
21149 DUALCASE=1; export DUALCASE # for MKS sh
21150 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21151   emulate sh
21152   NULLCMD=:
21153   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21154   # is contrary to our usage.  Disable this feature.
21155   alias -g '${1+"$@"}'='"$@"'
21156   setopt NO_GLOB_SUBST
21157 else
21158   case `(set -o) 2>/dev/null` in
21159   *posix*) set -o posix ;;
21160 esac
21161
21162 fi
21163
21164
21165
21166
21167 # PATH needs CR
21168 # Avoid depending upon Character Ranges.
21169 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21172 as_cr_digits='0123456789'
21173 as_cr_alnum=$as_cr_Letters$as_cr_digits
21174
21175 # The user is always right.
21176 if test "${PATH_SEPARATOR+set}" != set; then
21177   echo "#! /bin/sh" >conf$$.sh
21178   echo  "exit 0"   >>conf$$.sh
21179   chmod +x conf$$.sh
21180   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21181     PATH_SEPARATOR=';'
21182   else
21183     PATH_SEPARATOR=:
21184   fi
21185   rm -f conf$$.sh
21186 fi
21187
21188 # Support unset when possible.
21189 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21190   as_unset=unset
21191 else
21192   as_unset=false
21193 fi
21194
21195
21196 # IFS
21197 # We need space, tab and new line, in precisely that order.  Quoting is
21198 # there to prevent editors from complaining about space-tab.
21199 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21200 # splitting by setting IFS to empty value.)
21201 as_nl='
21202 '
21203 IFS=" ""        $as_nl"
21204
21205 # Find who we are.  Look in the path if we contain no directory separator.
21206 case $0 in
21207   *[\\/]* ) as_myself=$0 ;;
21208   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21209 for as_dir in $PATH
21210 do
21211   IFS=$as_save_IFS
21212   test -z "$as_dir" && as_dir=.
21213   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21214 done
21215 IFS=$as_save_IFS
21216
21217      ;;
21218 esac
21219 # We did not find ourselves, most probably we were run as `sh COMMAND'
21220 # in which case we are not to be found in the path.
21221 if test "x$as_myself" = x; then
21222   as_myself=$0
21223 fi
21224 if test ! -f "$as_myself"; then
21225   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21226   { (exit 1); exit 1; }
21227 fi
21228
21229 # Work around bugs in pre-3.0 UWIN ksh.
21230 for as_var in ENV MAIL MAILPATH
21231 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21232 done
21233 PS1='$ '
21234 PS2='> '
21235 PS4='+ '
21236
21237 # NLS nuisances.
21238 for as_var in \
21239   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21240   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21241   LC_TELEPHONE LC_TIME
21242 do
21243   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21244     eval $as_var=C; export $as_var
21245   else
21246     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21247   fi
21248 done
21249
21250 # Required to use basename.
21251 if expr a : '\(a\)' >/dev/null 2>&1 &&
21252    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21253   as_expr=expr
21254 else
21255   as_expr=false
21256 fi
21257
21258 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21259   as_basename=basename
21260 else
21261   as_basename=false
21262 fi
21263
21264
21265 # Name of the executable.
21266 as_me=`$as_basename -- "$0" ||
21267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21268          X"$0" : 'X\(//\)$' \| \
21269          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21270 echo X/"$0" |
21271     sed '/^.*\/\([^/][^/]*\)\/*$/{
21272             s//\1/
21273             q
21274           }
21275           /^X\/\(\/\/\)$/{
21276             s//\1/
21277             q
21278           }
21279           /^X\/\(\/\).*/{
21280             s//\1/
21281             q
21282           }
21283           s/.*/./; q'`
21284
21285 # CDPATH.
21286 $as_unset CDPATH
21287
21288
21289
21290   as_lineno_1=$LINENO
21291   as_lineno_2=$LINENO
21292   test "x$as_lineno_1" != "x$as_lineno_2" &&
21293   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21294
21295   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21296   # uniformly replaced by the line number.  The first 'sed' inserts a
21297   # line-number line after each line using $LINENO; the second 'sed'
21298   # does the real work.  The second script uses 'N' to pair each
21299   # line-number line with the line containing $LINENO, and appends
21300   # trailing '-' during substitution so that $LINENO is not a special
21301   # case at line end.
21302   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21303   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21304   # E. McMahon (1931-1989) for sed's syntax.  :-)
21305   sed -n '
21306     p
21307     /[$]LINENO/=
21308   ' <$as_myself |
21309     sed '
21310       s/[$]LINENO.*/&-/
21311       t lineno
21312       b
21313       :lineno
21314       N
21315       :loop
21316       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21317       t loop
21318       s/-\n.*//
21319     ' >$as_me.lineno &&
21320   chmod +x "$as_me.lineno" ||
21321     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21322    { (exit 1); exit 1; }; }
21323
21324   # Don't try to exec as it changes $[0], causing all sort of problems
21325   # (the dirname of $[0] is not the place where we might find the
21326   # original and so on.  Autoconf is especially sensitive to this).
21327   . "./$as_me.lineno"
21328   # Exit status is that of the last command.
21329   exit
21330 }
21331
21332
21333 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21334   as_dirname=dirname
21335 else
21336   as_dirname=false
21337 fi
21338
21339 ECHO_C= ECHO_N= ECHO_T=
21340 case `echo -n x` in
21341 -n*)
21342   case `echo 'x\c'` in
21343   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21344   *)   ECHO_C='\c';;
21345   esac;;
21346 *)
21347   ECHO_N='-n';;
21348 esac
21349
21350 if expr a : '\(a\)' >/dev/null 2>&1 &&
21351    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21352   as_expr=expr
21353 else
21354   as_expr=false
21355 fi
21356
21357 rm -f conf$$ conf$$.exe conf$$.file
21358 if test -d conf$$.dir; then
21359   rm -f conf$$.dir/conf$$.file
21360 else
21361   rm -f conf$$.dir
21362   mkdir conf$$.dir
21363 fi
21364 echo >conf$$.file
21365 if ln -s conf$$.file conf$$ 2>/dev/null; then
21366   as_ln_s='ln -s'
21367   # ... but there are two gotchas:
21368   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21369   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21370   # In both cases, we have to default to `cp -p'.
21371   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21372     as_ln_s='cp -p'
21373 elif ln conf$$.file conf$$ 2>/dev/null; then
21374   as_ln_s=ln
21375 else
21376   as_ln_s='cp -p'
21377 fi
21378 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21379 rmdir conf$$.dir 2>/dev/null
21380
21381 if mkdir -p . 2>/dev/null; then
21382   as_mkdir_p=:
21383 else
21384   test -d ./-p && rmdir ./-p
21385   as_mkdir_p=false
21386 fi
21387
21388 if test -x / >/dev/null 2>&1; then
21389   as_test_x='test -x'
21390 else
21391   if ls -dL / >/dev/null 2>&1; then
21392     as_ls_L_option=L
21393   else
21394     as_ls_L_option=
21395   fi
21396   as_test_x='
21397     eval sh -c '\''
21398       if test -d "$1"; then
21399         test -d "$1/.";
21400       else
21401         case $1 in
21402         -*)set "./$1";;
21403         esac;
21404         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21405         ???[sx]*):;;*)false;;esac;fi
21406     '\'' sh
21407   '
21408 fi
21409 as_executable_p=$as_test_x
21410
21411 # Sed expression to map a string onto a valid CPP name.
21412 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21413
21414 # Sed expression to map a string onto a valid variable name.
21415 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21416
21417
21418 exec 6>&1
21419
21420 # Save the log message, to keep $[0] and so on meaningful, and to
21421 # report actual input values of CONFIG_FILES etc. instead of their
21422 # values after options handling.
21423 ac_log="
21424 This file was extended by Wine $as_me 0.9.34, which was
21425 generated by GNU Autoconf 2.61.  Invocation command line was
21426
21427   CONFIG_FILES    = $CONFIG_FILES
21428   CONFIG_HEADERS  = $CONFIG_HEADERS
21429   CONFIG_LINKS    = $CONFIG_LINKS
21430   CONFIG_COMMANDS = $CONFIG_COMMANDS
21431   $ $0 $@
21432
21433 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21434 "
21435
21436 _ACEOF
21437
21438 cat >>$CONFIG_STATUS <<_ACEOF
21439 # Files that config.status was made for.
21440 config_files="$ac_config_files"
21441 config_headers="$ac_config_headers"
21442 config_commands="$ac_config_commands"
21443
21444 _ACEOF
21445
21446 cat >>$CONFIG_STATUS <<\_ACEOF
21447 ac_cs_usage="\
21448 \`$as_me' instantiates files from templates according to the
21449 current configuration.
21450
21451 Usage: $0 [OPTIONS] [FILE]...
21452
21453   -h, --help       print this help, then exit
21454   -V, --version    print version number and configuration settings, then exit
21455   -q, --quiet      do not print progress messages
21456   -d, --debug      don't remove temporary files
21457       --recheck    update $as_me by reconfiguring in the same conditions
21458   --file=FILE[:TEMPLATE]
21459                    instantiate the configuration file FILE
21460   --header=FILE[:TEMPLATE]
21461                    instantiate the configuration header FILE
21462
21463 Configuration files:
21464 $config_files
21465
21466 Configuration headers:
21467 $config_headers
21468
21469 Configuration commands:
21470 $config_commands
21471
21472 Report bugs to <bug-autoconf@gnu.org>."
21473
21474 _ACEOF
21475 cat >>$CONFIG_STATUS <<_ACEOF
21476 ac_cs_version="\\
21477 Wine config.status 0.9.34
21478 configured by $0, generated by GNU Autoconf 2.61,
21479   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21480
21481 Copyright (C) 2006 Free Software Foundation, Inc.
21482 This config.status script is free software; the Free Software Foundation
21483 gives unlimited permission to copy, distribute and modify it."
21484
21485 ac_pwd='$ac_pwd'
21486 srcdir='$srcdir'
21487 INSTALL='$INSTALL'
21488 _ACEOF
21489
21490 cat >>$CONFIG_STATUS <<\_ACEOF
21491 # If no file are specified by the user, then we need to provide default
21492 # value.  By we need to know if files were specified by the user.
21493 ac_need_defaults=:
21494 while test $# != 0
21495 do
21496   case $1 in
21497   --*=*)
21498     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21499     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21500     ac_shift=:
21501     ;;
21502   *)
21503     ac_option=$1
21504     ac_optarg=$2
21505     ac_shift=shift
21506     ;;
21507   esac
21508
21509   case $ac_option in
21510   # Handling of the options.
21511   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21512     ac_cs_recheck=: ;;
21513   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21514     echo "$ac_cs_version"; exit ;;
21515   --debug | --debu | --deb | --de | --d | -d )
21516     debug=: ;;
21517   --file | --fil | --fi | --f )
21518     $ac_shift
21519     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21520     ac_need_defaults=false;;
21521   --header | --heade | --head | --hea )
21522     $ac_shift
21523     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21524     ac_need_defaults=false;;
21525   --he | --h)
21526     # Conflict between --help and --header
21527     { echo "$as_me: error: ambiguous option: $1
21528 Try \`$0 --help' for more information." >&2
21529    { (exit 1); exit 1; }; };;
21530   --help | --hel | -h )
21531     echo "$ac_cs_usage"; exit ;;
21532   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21533   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21534     ac_cs_silent=: ;;
21535
21536   # This is an error.
21537   -*) { echo "$as_me: error: unrecognized option: $1
21538 Try \`$0 --help' for more information." >&2
21539    { (exit 1); exit 1; }; } ;;
21540
21541   *) ac_config_targets="$ac_config_targets $1"
21542      ac_need_defaults=false ;;
21543
21544   esac
21545   shift
21546 done
21547
21548 ac_configure_extra_args=
21549
21550 if $ac_cs_silent; then
21551   exec 6>/dev/null
21552   ac_configure_extra_args="$ac_configure_extra_args --silent"
21553 fi
21554
21555 _ACEOF
21556 cat >>$CONFIG_STATUS <<_ACEOF
21557 if \$ac_cs_recheck; then
21558   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21559   CONFIG_SHELL=$SHELL
21560   export CONFIG_SHELL
21561   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21562 fi
21563
21564 _ACEOF
21565 cat >>$CONFIG_STATUS <<\_ACEOF
21566 exec 5>>config.log
21567 {
21568   echo
21569   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21570 ## Running $as_me. ##
21571 _ASBOX
21572   echo "$ac_log"
21573 } >&5
21574
21575 _ACEOF
21576 cat >>$CONFIG_STATUS <<_ACEOF
21577 _ACEOF
21578
21579 cat >>$CONFIG_STATUS <<\_ACEOF
21580
21581 # Handling of arguments.
21582 for ac_config_target in $ac_config_targets
21583 do
21584   case $ac_config_target in
21585     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21586     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
21587     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
21588     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
21589     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
21590     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
21591     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
21592     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21593     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
21594     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
21595     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
21596     "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
21597     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
21598     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21599     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
21600     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
21601     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
21602     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
21603     "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
21604     "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
21605     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
21606     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
21607     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
21608     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
21609     "dlls/browseui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/Makefile" ;;
21610     "dlls/browseui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/tests/Makefile" ;;
21611     "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
21612     "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
21613     "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
21614     "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
21615     "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
21616     "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
21617     "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
21618     "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
21619     "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
21620     "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
21621     "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
21622     "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
21623     "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
21624     "dlls/credui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/credui/Makefile" ;;
21625     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
21626     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
21627     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
21628     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
21629     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
21630     "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
21631     "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
21632     "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
21633     "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
21634     "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
21635     "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
21636     "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
21637     "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
21638     "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
21639     "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
21640     "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
21641     "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
21642     "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
21643     "dlls/ddrawex/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddrawex/Makefile" ;;
21644     "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
21645     "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
21646     "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
21647     "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
21648     "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
21649     "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
21650     "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
21651     "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
21652     "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
21653     "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
21654     "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
21655     "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
21656     "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
21657     "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
21658     "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
21659     "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
21660     "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
21661     "dlls/dplayx/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/tests/Makefile" ;;
21662     "dlls/dpnaddr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnaddr/Makefile" ;;
21663     "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
21664     "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
21665     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
21666     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
21667     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
21668     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
21669     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
21670     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
21671     "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
21672     "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
21673     "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
21674     "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
21675     "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
21676     "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
21677     "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
21678     "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
21679     "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
21680     "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
21681     "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
21682     "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
21683     "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
21684     "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
21685     "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
21686     "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
21687     "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
21688     "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
21689     "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
21690     "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
21691     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
21692     "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
21693     "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
21694     "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
21695     "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
21696     "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
21697     "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
21698     "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
21699     "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
21700     "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
21701     "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
21702     "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
21703     "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
21704     "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
21705     "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
21706     "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
21707     "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
21708     "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
21709     "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
21710     "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
21711     "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
21712     "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
21713     "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
21714     "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
21715     "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
21716     "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
21717     "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
21718     "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
21719     "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
21720     "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
21721     "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
21722     "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
21723     "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
21724     "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
21725     "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
21726     "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
21727     "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
21728     "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
21729     "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
21730     "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
21731     "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
21732     "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
21733     "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
21734     "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
21735     "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
21736     "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
21737     "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
21738     "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
21739     "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
21740     "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
21741     "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
21742     "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
21743     "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
21744     "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
21745     "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
21746     "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
21747     "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
21748     "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
21749     "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
21750     "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
21751     "dlls/odbccp32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/tests/Makefile" ;;
21752     "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
21753     "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21754     "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21755     "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21756     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21757     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21758     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21759     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21760     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
21761     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
21762     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
21763     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21764     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
21765     "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
21766     "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
21767     "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21768     "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
21769     "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
21770     "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
21771     "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
21772     "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21773     "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21774     "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21775     "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21776     "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21777     "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21778     "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21779     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21780     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21781     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
21782     "dlls/schannel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/Makefile" ;;
21783     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21784     "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21785     "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21786     "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21787     "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
21788     "dlls/serialui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/tests/Makefile" ;;
21789     "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21790     "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21791     "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
21792     "dlls/sfc_os/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc_os/Makefile" ;;
21793     "dlls/shdoclc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdoclc/Makefile" ;;
21794     "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21795     "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21796     "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21797     "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21798     "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21799     "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21800     "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21801     "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
21802     "dlls/snmpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/tests/Makefile" ;;
21803     "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
21804     "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21805     "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21806     "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21807     "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
21808     "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
21809     "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21810     "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21811     "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21812     "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21813     "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21814     "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
21815     "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;;
21816     "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;;
21817     "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
21818     "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21819     "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21820     "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21821     "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
21822     "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
21823     "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21824     "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21825     "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21826     "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21827     "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21828     "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21829     "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21830     "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21831     "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21832     "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
21833     "dlls/winealsa.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winealsa.drv/Makefile" ;;
21834     "dlls/winearts.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winearts.drv/Makefile" ;;
21835     "dlls/wineaudioio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineaudioio.drv/Makefile" ;;
21836     "dlls/winecoreaudio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecoreaudio.drv/Makefile" ;;
21837     "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21838     "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21839     "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
21840     "dlls/wineesd.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineesd.drv/Makefile" ;;
21841     "dlls/winejack.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejack.drv/Makefile" ;;
21842     "dlls/winejoystick.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejoystick.drv/Makefile" ;;
21843     "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
21844     "dlls/winenas.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winenas.drv/Makefile" ;;
21845     "dlls/wineoss.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineoss.drv/Makefile" ;;
21846     "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
21847     "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
21848     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
21849     "dlls/wing32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wing32/Makefile" ;;
21850     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21851     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
21852     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
21853     "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
21854     "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
21855     "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
21856     "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
21857     "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
21858     "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
21859     "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
21860     "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
21861     "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
21862     "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
21863     "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
21864     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
21865     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
21866     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
21867     "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
21868     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
21869     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21870     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
21871     "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
21872     "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
21873     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
21874     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
21875     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21876     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
21877     "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
21878     "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21879     "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
21880     "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
21881     "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
21882     "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
21883     "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
21884     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
21885     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
21886     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
21887     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
21888     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
21889     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
21890     "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
21891     "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
21892     "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
21893     "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
21894     "programs/spoolsv/Makefile") CONFIG_FILES="$CONFIG_FILES programs/spoolsv/Makefile" ;;
21895     "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
21896     "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
21897     "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21898     "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
21899     "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21900     "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21901     "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21902     "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21903     "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
21904     "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21905     "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21906     "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21907     "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21908     "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21909     "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21910     "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21911     "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21912     "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
21913     "programs/xcopy/Makefile") CONFIG_FILES="$CONFIG_FILES programs/xcopy/Makefile" ;;
21914     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21915     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21916     "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21917     "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21918     "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21919     "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21920     "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21921     "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21922
21923   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21924 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21925    { (exit 1); exit 1; }; };;
21926   esac
21927 done
21928
21929
21930 # If the user did not use the arguments to specify the items to instantiate,
21931 # then the envvar interface is used.  Set only those that are not.
21932 # We use the long form for the default assignment because of an extremely
21933 # bizarre bug on SunOS 4.1.3.
21934 if $ac_need_defaults; then
21935   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21936   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21937   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21938 fi
21939
21940 # Have a temporary directory for convenience.  Make it in the build tree
21941 # simply because there is no reason against having it here, and in addition,
21942 # creating and moving files from /tmp can sometimes cause problems.
21943 # Hook for its removal unless debugging.
21944 # Note that there is a small window in which the directory will not be cleaned:
21945 # after its creation but before its name has been assigned to `$tmp'.
21946 $debug ||
21947 {
21948   tmp=
21949   trap 'exit_status=$?
21950   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21951 ' 0
21952   trap '{ (exit 1); exit 1; }' 1 2 13 15
21953 }
21954 # Create a (secure) tmp directory for tmp files.
21955
21956 {
21957   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21958   test -n "$tmp" && test -d "$tmp"
21959 }  ||
21960 {
21961   tmp=./conf$$-$RANDOM
21962   (umask 077 && mkdir "$tmp")
21963 } ||
21964 {
21965    echo "$me: cannot create a temporary directory in ." >&2
21966    { (exit 1); exit 1; }
21967 }
21968
21969 #
21970 # Set up the sed scripts for CONFIG_FILES section.
21971 #
21972
21973 # No need to generate the scripts if there are no CONFIG_FILES.
21974 # This happens for instance when ./config.status config.h
21975 if test -n "$CONFIG_FILES"; then
21976
21977 _ACEOF
21978
21979 # Create sed commands to just substitute file output variables.
21980
21981 # Remaining file output variables are in a fragment that also has non-file
21982 # output varibles.
21983
21984
21985
21986 ac_delim='%!_!# '
21987 for ac_last_try in false false false false false :; do
21988   cat >conf$$subs.sed <<_ACEOF
21989 SHELL!$SHELL$ac_delim
21990 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21991 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21992 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21993 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21994 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21995 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21996 exec_prefix!$exec_prefix$ac_delim
21997 prefix!$prefix$ac_delim
21998 program_transform_name!$program_transform_name$ac_delim
21999 bindir!$bindir$ac_delim
22000 sbindir!$sbindir$ac_delim
22001 libexecdir!$libexecdir$ac_delim
22002 datarootdir!$datarootdir$ac_delim
22003 datadir!$datadir$ac_delim
22004 sysconfdir!$sysconfdir$ac_delim
22005 sharedstatedir!$sharedstatedir$ac_delim
22006 localstatedir!$localstatedir$ac_delim
22007 includedir!$includedir$ac_delim
22008 oldincludedir!$oldincludedir$ac_delim
22009 docdir!$docdir$ac_delim
22010 infodir!$infodir$ac_delim
22011 htmldir!$htmldir$ac_delim
22012 dvidir!$dvidir$ac_delim
22013 pdfdir!$pdfdir$ac_delim
22014 psdir!$psdir$ac_delim
22015 libdir!$libdir$ac_delim
22016 localedir!$localedir$ac_delim
22017 mandir!$mandir$ac_delim
22018 DEFS!$DEFS$ac_delim
22019 ECHO_C!$ECHO_C$ac_delim
22020 ECHO_N!$ECHO_N$ac_delim
22021 ECHO_T!$ECHO_T$ac_delim
22022 LIBS!$LIBS$ac_delim
22023 build_alias!$build_alias$ac_delim
22024 host_alias!$host_alias$ac_delim
22025 target_alias!$target_alias$ac_delim
22026 build!$build$ac_delim
22027 build_cpu!$build_cpu$ac_delim
22028 build_vendor!$build_vendor$ac_delim
22029 build_os!$build_os$ac_delim
22030 host!$host$ac_delim
22031 host_cpu!$host_cpu$ac_delim
22032 host_vendor!$host_vendor$ac_delim
22033 host_os!$host_os$ac_delim
22034 WIN16_FILES!$WIN16_FILES$ac_delim
22035 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
22036 SET_MAKE!$SET_MAKE$ac_delim
22037 CC!$CC$ac_delim
22038 CFLAGS!$CFLAGS$ac_delim
22039 LDFLAGS!$LDFLAGS$ac_delim
22040 CPPFLAGS!$CPPFLAGS$ac_delim
22041 ac_ct_CC!$ac_ct_CC$ac_delim
22042 EXEEXT!$EXEEXT$ac_delim
22043 OBJEXT!$OBJEXT$ac_delim
22044 CXX!$CXX$ac_delim
22045 CXXFLAGS!$CXXFLAGS$ac_delim
22046 ac_ct_CXX!$ac_ct_CXX$ac_delim
22047 CPPBIN!$CPPBIN$ac_delim
22048 TOOLSDIR!$TOOLSDIR$ac_delim
22049 XMKMF!$XMKMF$ac_delim
22050 CPP!$CPP$ac_delim
22051 X_CFLAGS!$X_CFLAGS$ac_delim
22052 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
22053 X_LIBS!$X_LIBS$ac_delim
22054 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
22055 FLEX!$FLEX$ac_delim
22056 BISON!$BISON$ac_delim
22057 AS!$AS$ac_delim
22058 ac_ct_AS!$ac_ct_AS$ac_delim
22059 LD!$LD$ac_delim
22060 AR!$AR$ac_delim
22061 RANLIB!$RANLIB$ac_delim
22062 STRIP!$STRIP$ac_delim
22063 WINDRES!$WINDRES$ac_delim
22064 LN_S!$LN_S$ac_delim
22065 LN!$LN$ac_delim
22066 GREP!$GREP$ac_delim
22067 EGREP!$EGREP$ac_delim
22068 LDCONFIG!$LDCONFIG$ac_delim
22069 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22070 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22071 _ACEOF
22072
22073   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
22074     break
22075   elif $ac_last_try; then
22076     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22078    { (exit 1); exit 1; }; }
22079   else
22080     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22081   fi
22082 done
22083
22084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22085 if test -n "$ac_eof"; then
22086   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22087   ac_eof=`expr $ac_eof + 1`
22088 fi
22089
22090 cat >>$CONFIG_STATUS <<_ACEOF
22091 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22093 /^[      ]*@MAKE_RULES@[         ]*$/{
22094 r $MAKE_RULES
22095 d
22096 }
22097 /^[      ]*@MAKE_DLL_RULES@[     ]*$/{
22098 r $MAKE_DLL_RULES
22099 d
22100 }
22101 /^[      ]*@MAKE_IMPLIB_RULES@[  ]*$/{
22102 r $MAKE_IMPLIB_RULES
22103 d
22104 }
22105 /^[      ]*@MAKE_TEST_RULES@[    ]*$/{
22106 r $MAKE_TEST_RULES
22107 d
22108 }
22109 /^[      ]*@MAKE_PROG_RULES@[    ]*$/{
22110 r $MAKE_PROG_RULES
22111 d
22112 }
22113 _ACEOF
22114 sed '
22115 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22116 s/^/s,@/; s/!/@,|#_!!_#|/
22117 :n
22118 t n
22119 s/'"$ac_delim"'$/,g/; t
22120 s/$/\\/; p
22121 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22122 ' >>$CONFIG_STATUS <conf$$subs.sed
22123 rm -f conf$$subs.sed
22124 cat >>$CONFIG_STATUS <<_ACEOF
22125 CEOF$ac_eof
22126 _ACEOF
22127
22128
22129 ac_delim='%!_!# '
22130 for ac_last_try in false false false false false :; do
22131   cat >conf$$subs.sed <<_ACEOF
22132 INSTALL_DATA!$INSTALL_DATA$ac_delim
22133 LINT!$LINT$ac_delim
22134 LINTFLAGS!$LINTFLAGS$ac_delim
22135 FONTFORGE!$FONTFORGE$ac_delim
22136 PKG_CONFIG!$PKG_CONFIG$ac_delim
22137 PRELINK!$PRELINK$ac_delim
22138 LIBPTHREAD!$LIBPTHREAD$ac_delim
22139 XLIB!$XLIB$ac_delim
22140 XFILES!$XFILES$ac_delim
22141 OPENGLFILES!$OPENGLFILES$ac_delim
22142 GLU32FILES!$GLU32FILES$ac_delim
22143 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
22144 QUARTZFILES!$QUARTZFILES$ac_delim
22145 NASLIBS!$NASLIBS$ac_delim
22146 XML2LIBS!$XML2LIBS$ac_delim
22147 XML2INCL!$XML2INCL$ac_delim
22148 XSLTLIBS!$XSLTLIBS$ac_delim
22149 XSLTINCL!$XSLTINCL$ac_delim
22150 HALINCL!$HALINCL$ac_delim
22151 sane_devel!$sane_devel$ac_delim
22152 SANEINCL!$SANEINCL$ac_delim
22153 gphoto2_devel!$gphoto2_devel$ac_delim
22154 gphoto2port_devel!$gphoto2port_devel$ac_delim
22155 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
22156 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
22157 ICULIBS!$ICULIBS$ac_delim
22158 RESOLVLIBS!$RESOLVLIBS$ac_delim
22159 LCMSLIBS!$LCMSLIBS$ac_delim
22160 LDAPLIBS!$LDAPLIBS$ac_delim
22161 FREETYPELIBS!$FREETYPELIBS$ac_delim
22162 FREETYPEINCL!$FREETYPEINCL$ac_delim
22163 ft_devel!$ft_devel$ac_delim
22164 ft_devel2!$ft_devel2$ac_delim
22165 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
22166 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
22167 ARTSLIBS!$ARTSLIBS$ac_delim
22168 ARTSINCL!$ARTSINCL$ac_delim
22169 ESDCONFIG!$ESDCONFIG$ac_delim
22170 ESDLIBS!$ESDLIBS$ac_delim
22171 ESDINCL!$ESDINCL$ac_delim
22172 ALSALIBS!$ALSALIBS$ac_delim
22173 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
22174 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
22175 BUILTINFLAG!$BUILTINFLAG$ac_delim
22176 DLLEXT!$DLLEXT$ac_delim
22177 DLLFLAGS!$DLLFLAGS$ac_delim
22178 LDSHARED!$LDSHARED$ac_delim
22179 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
22180 LIBEXT!$LIBEXT$ac_delim
22181 IMPLIBEXT!$IMPLIBEXT$ac_delim
22182 LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim
22183 DLLTOOL!$DLLTOOL$ac_delim
22184 DLLWRAP!$DLLWRAP$ac_delim
22185 MINGWAR!$MINGWAR$ac_delim
22186 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
22187 IOKITLIB!$IOKITLIB$ac_delim
22188 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
22189 DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
22190 COREAUDIO!$COREAUDIO$ac_delim
22191 CARBONLIB!$CARBONLIB$ac_delim
22192 CROSSTEST!$CROSSTEST$ac_delim
22193 CROSSCC!$CROSSCC$ac_delim
22194 CROSSWINDRES!$CROSSWINDRES$ac_delim
22195 LDPATH!$LDPATH$ac_delim
22196 CRTLIBS!$CRTLIBS$ac_delim
22197 SOCKETLIBS!$SOCKETLIBS$ac_delim
22198 MAIN_BINARY!$MAIN_BINARY$ac_delim
22199 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
22200 LDD!$LDD$ac_delim
22201 LIBDL!$LIBDL$ac_delim
22202 LIBPOLL!$LIBPOLL$ac_delim
22203 DEPENDENCIES!$DEPENDENCIES$ac_delim
22204 LIBOBJS!$LIBOBJS$ac_delim
22205 LTLIBOBJS!$LTLIBOBJS$ac_delim
22206 _ACEOF
22207
22208   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
22209     break
22210   elif $ac_last_try; then
22211     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22212 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22213    { (exit 1); exit 1; }; }
22214   else
22215     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22216   fi
22217 done
22218
22219 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22220 if test -n "$ac_eof"; then
22221   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22222   ac_eof=`expr $ac_eof + 1`
22223 fi
22224
22225 cat >>$CONFIG_STATUS <<_ACEOF
22226 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22228 _ACEOF
22229 sed '
22230 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22231 s/^/s,@/; s/!/@,|#_!!_#|/
22232 :n
22233 t n
22234 s/'"$ac_delim"'$/,g/; t
22235 s/$/\\/; p
22236 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22237 ' >>$CONFIG_STATUS <conf$$subs.sed
22238 rm -f conf$$subs.sed
22239 cat >>$CONFIG_STATUS <<_ACEOF
22240 :end
22241 s/|#_!!_#|//g
22242 CEOF$ac_eof
22243 _ACEOF
22244
22245
22246 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22247 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22248 # trailing colons and then remove the whole line if VPATH becomes empty
22249 # (actually we leave an empty line to preserve line numbers).
22250 if test "x$srcdir" = x.; then
22251   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22252 s/:*\$(srcdir):*/:/
22253 s/:*\${srcdir}:*/:/
22254 s/:*@srcdir@:*/:/
22255 s/^\([^=]*=[     ]*\):*/\1/
22256 s/:*$//
22257 s/^[^=]*=[       ]*$//
22258 }'
22259 fi
22260
22261 cat >>$CONFIG_STATUS <<\_ACEOF
22262 fi # test -n "$CONFIG_FILES"
22263
22264
22265 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22266 do
22267   case $ac_tag in
22268   :[FHLC]) ac_mode=$ac_tag; continue;;
22269   esac
22270   case $ac_mode$ac_tag in
22271   :[FHL]*:*);;
22272   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22273 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22274    { (exit 1); exit 1; }; };;
22275   :[FH]-) ac_tag=-:-;;
22276   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22277   esac
22278   ac_save_IFS=$IFS
22279   IFS=:
22280   set x $ac_tag
22281   IFS=$ac_save_IFS
22282   shift
22283   ac_file=$1
22284   shift
22285
22286   case $ac_mode in
22287   :L) ac_source=$1;;
22288   :[FH])
22289     ac_file_inputs=
22290     for ac_f
22291     do
22292       case $ac_f in
22293       -) ac_f="$tmp/stdin";;
22294       *) # Look for the file first in the build tree, then in the source tree
22295          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22296          # because $ac_f cannot contain `:'.
22297          test -f "$ac_f" ||
22298            case $ac_f in
22299            [\\/$]*) false;;
22300            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22301            esac ||
22302            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22303 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22304    { (exit 1); exit 1; }; };;
22305       esac
22306       ac_file_inputs="$ac_file_inputs $ac_f"
22307     done
22308
22309     # Let's still pretend it is `configure' which instantiates (i.e., don't
22310     # use $as_me), people would be surprised to read:
22311     #    /* config.h.  Generated by config.status.  */
22312     configure_input="Generated from "`IFS=:
22313           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22314     if test x"$ac_file" != x-; then
22315       configure_input="$ac_file.  $configure_input"
22316       { echo "$as_me:$LINENO: creating $ac_file" >&5
22317 echo "$as_me: creating $ac_file" >&6;}
22318     fi
22319
22320     case $ac_tag in
22321     *:-:* | *:-) cat >"$tmp/stdin";;
22322     esac
22323     ;;
22324   esac
22325
22326   ac_dir=`$as_dirname -- "$ac_file" ||
22327 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22328          X"$ac_file" : 'X\(//\)[^/]' \| \
22329          X"$ac_file" : 'X\(//\)$' \| \
22330          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22331 echo X"$ac_file" |
22332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22333             s//\1/
22334             q
22335           }
22336           /^X\(\/\/\)[^/].*/{
22337             s//\1/
22338             q
22339           }
22340           /^X\(\/\/\)$/{
22341             s//\1/
22342             q
22343           }
22344           /^X\(\/\).*/{
22345             s//\1/
22346             q
22347           }
22348           s/.*/./; q'`
22349   { as_dir="$ac_dir"
22350   case $as_dir in #(
22351   -*) as_dir=./$as_dir;;
22352   esac
22353   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22354     as_dirs=
22355     while :; do
22356       case $as_dir in #(
22357       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22358       *) as_qdir=$as_dir;;
22359       esac
22360       as_dirs="'$as_qdir' $as_dirs"
22361       as_dir=`$as_dirname -- "$as_dir" ||
22362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22363          X"$as_dir" : 'X\(//\)[^/]' \| \
22364          X"$as_dir" : 'X\(//\)$' \| \
22365          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22366 echo X"$as_dir" |
22367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22368             s//\1/
22369             q
22370           }
22371           /^X\(\/\/\)[^/].*/{
22372             s//\1/
22373             q
22374           }
22375           /^X\(\/\/\)$/{
22376             s//\1/
22377             q
22378           }
22379           /^X\(\/\).*/{
22380             s//\1/
22381             q
22382           }
22383           s/.*/./; q'`
22384       test -d "$as_dir" && break
22385     done
22386     test -z "$as_dirs" || eval "mkdir $as_dirs"
22387   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22388 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22389    { (exit 1); exit 1; }; }; }
22390   ac_builddir=.
22391
22392 case "$ac_dir" in
22393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22394 *)
22395   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22396   # A ".." for each directory in $ac_dir_suffix.
22397   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22398   case $ac_top_builddir_sub in
22399   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22400   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22401   esac ;;
22402 esac
22403 ac_abs_top_builddir=$ac_pwd
22404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22405 # for backward compatibility:
22406 ac_top_builddir=$ac_top_build_prefix
22407
22408 case $srcdir in
22409   .)  # We are building in place.
22410     ac_srcdir=.
22411     ac_top_srcdir=$ac_top_builddir_sub
22412     ac_abs_top_srcdir=$ac_pwd ;;
22413   [\\/]* | ?:[\\/]* )  # Absolute name.
22414     ac_srcdir=$srcdir$ac_dir_suffix;
22415     ac_top_srcdir=$srcdir
22416     ac_abs_top_srcdir=$srcdir ;;
22417   *) # Relative name.
22418     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22419     ac_top_srcdir=$ac_top_build_prefix$srcdir
22420     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22421 esac
22422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22423
22424
22425   case $ac_mode in
22426   :F)
22427   #
22428   # CONFIG_FILE
22429   #
22430
22431   case $INSTALL in
22432   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22433   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22434   esac
22435 _ACEOF
22436
22437 cat >>$CONFIG_STATUS <<\_ACEOF
22438 # If the template does not know about datarootdir, expand it.
22439 # FIXME: This hack should be removed a few years after 2.60.
22440 ac_datarootdir_hack=; ac_datarootdir_seen=
22441
22442 case `sed -n '/datarootdir/ {
22443   p
22444   q
22445 }
22446 /@datadir@/p
22447 /@docdir@/p
22448 /@infodir@/p
22449 /@localedir@/p
22450 /@mandir@/p
22451 ' $ac_file_inputs` in
22452 *datarootdir*) ac_datarootdir_seen=yes;;
22453 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22454   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22455 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22456 _ACEOF
22457 cat >>$CONFIG_STATUS <<_ACEOF
22458   ac_datarootdir_hack='
22459   s&@datadir@&$datadir&g
22460   s&@docdir@&$docdir&g
22461   s&@infodir@&$infodir&g
22462   s&@localedir@&$localedir&g
22463   s&@mandir@&$mandir&g
22464     s&\\\${datarootdir}&$datarootdir&g' ;;
22465 esac
22466 _ACEOF
22467
22468 # Neutralize VPATH when `$srcdir' = `.'.
22469 # Shell code in configure.ac might set extrasub.
22470 # FIXME: do we really want to maintain this feature?
22471 cat >>$CONFIG_STATUS <<_ACEOF
22472   sed "$ac_vpsub
22473 $extrasub
22474 _ACEOF
22475 cat >>$CONFIG_STATUS <<\_ACEOF
22476 :t
22477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22478 s&@configure_input@&$configure_input&;t t
22479 s&@top_builddir@&$ac_top_builddir_sub&;t t
22480 s&@srcdir@&$ac_srcdir&;t t
22481 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22482 s&@top_srcdir@&$ac_top_srcdir&;t t
22483 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22484 s&@builddir@&$ac_builddir&;t t
22485 s&@abs_builddir@&$ac_abs_builddir&;t t
22486 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22487 s&@INSTALL@&$ac_INSTALL&;t t
22488 $ac_datarootdir_hack
22489 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22490
22491 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22492   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22493   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22494   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22495 which seems to be undefined.  Please make sure it is defined." >&5
22496 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22497 which seems to be undefined.  Please make sure it is defined." >&2;}
22498
22499   rm -f "$tmp/stdin"
22500   case $ac_file in
22501   -) cat "$tmp/out"; rm -f "$tmp/out";;
22502   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22503   esac
22504  ;;
22505   :H)
22506   #
22507   # CONFIG_HEADER
22508   #
22509 _ACEOF
22510
22511 # Transform confdefs.h into a sed script `conftest.defines', that
22512 # substitutes the proper values into config.h.in to produce config.h.
22513 rm -f conftest.defines conftest.tail
22514 # First, append a space to every undef/define line, to ease matching.
22515 echo 's/$/ /' >conftest.defines
22516 # Then, protect against being on the right side of a sed subst, or in
22517 # an unquoted here document, in config.status.  If some macros were
22518 # called several times there might be several #defines for the same
22519 # symbol, which is useless.  But do not sort them, since the last
22520 # AC_DEFINE must be honored.
22521 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22522 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22523 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22524 # PARAMS is the parameter list in the macro definition--in most cases, it's
22525 # just an empty string.
22526 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22527 ac_dB='\\)[      (].*,\\1define\\2'
22528 ac_dC=' '
22529 ac_dD=' ,'
22530
22531 uniq confdefs.h |
22532   sed -n '
22533         t rset
22534         :rset
22535         s/^[     ]*#[    ]*define[       ][      ]*//
22536         t ok
22537         d
22538         :ok
22539         s/[\\&,]/\\&/g
22540         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22541         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22542   ' >>conftest.defines
22543
22544 # Remove the space that was appended to ease matching.
22545 # Then replace #undef with comments.  This is necessary, for
22546 # example, in the case of _POSIX_SOURCE, which is predefined and required
22547 # on some systems where configure will not decide to define it.
22548 # (The regexp can be short, since the line contains either #define or #undef.)
22549 echo 's/ $//
22550 s,^[     #]*u.*,/* & */,' >>conftest.defines
22551
22552 # Break up conftest.defines:
22553 ac_max_sed_lines=50
22554
22555 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22556 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22557 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22558 # et cetera.
22559 ac_in='$ac_file_inputs'
22560 ac_out='"$tmp/out1"'
22561 ac_nxt='"$tmp/out2"'
22562
22563 while :
22564 do
22565   # Write a here document:
22566     cat >>$CONFIG_STATUS <<_ACEOF
22567     # First, check the format of the line:
22568     cat >"\$tmp/defines.sed" <<\\CEOF
22569 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22570 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22571 b
22572 :def
22573 _ACEOF
22574   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22575   echo 'CEOF
22576     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22577   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22578   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22579   grep . conftest.tail >/dev/null || break
22580   rm -f conftest.defines
22581   mv conftest.tail conftest.defines
22582 done
22583 rm -f conftest.defines conftest.tail
22584
22585 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22586 cat >>$CONFIG_STATUS <<\_ACEOF
22587   if test x"$ac_file" != x-; then
22588     echo "/* $configure_input  */" >"$tmp/config.h"
22589     cat "$ac_result" >>"$tmp/config.h"
22590     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22591       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22592 echo "$as_me: $ac_file is unchanged" >&6;}
22593     else
22594       rm -f $ac_file
22595       mv "$tmp/config.h" $ac_file
22596     fi
22597   else
22598     echo "/* $configure_input  */"
22599     cat "$ac_result"
22600   fi
22601   rm -f "$tmp/out12"
22602  ;;
22603
22604   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22605 echo "$as_me: executing $ac_file commands" >&6;}
22606  ;;
22607   esac
22608
22609
22610   case $ac_file$ac_mode in
22611     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
22612     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
22613 echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
22614     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
22615 echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
22616     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
22617 echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
22618     "dlls/user32/resources":C) test -d "dlls/user32/resources" || ({ echo "$as_me:$LINENO: creating dlls/user32/resources" >&5
22619 echo "$as_me: creating dlls/user32/resources" >&6;} && mkdir "dlls/user32/resources") ;;
22620     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
22621 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
22622     "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
22623 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
22624
22625   esac
22626 done # for ac_tag
22627
22628
22629 { (exit 0); exit 0; }
22630 _ACEOF
22631 chmod +x $CONFIG_STATUS
22632 ac_clean_files=$ac_clean_files_save
22633
22634
22635 # configure is writing to config.log, and then calls config.status.
22636 # config.status does its own redirection, appending to config.log.
22637 # Unfortunately, on DOS this fails, as config.log is still kept open
22638 # by configure, so config.status won't be able to write to it; its
22639 # output is simply discarded.  So we exec the FD to /dev/null,
22640 # effectively closing config.log, so it can be properly (re)opened and
22641 # appended to by config.status.  When coming back to configure, we
22642 # need to make the FD available again.
22643 if test "$no_create" != yes; then
22644   ac_cs_success=:
22645   ac_config_status_args=
22646   test "$silent" = yes &&
22647     ac_config_status_args="$ac_config_status_args --quiet"
22648   exec 5>/dev/null
22649   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22650   exec 5>>config.log
22651   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22652   # would make configure fail if this is the last instruction.
22653   $ac_cs_success || { (exit 1); exit 1; }
22654 fi
22655
22656
22657
22658 if test "$no_create" = "yes"
22659 then
22660   exit 0
22661 fi
22662
22663 if test "$verbose" = "yes"
22664 then
22665     if test "$ac_cv_header_capi20_h" != "yes" -o "$ac_cv_header_linux_capi_h" != "yes"
22666   then
22667     echo >&2
22668     { echo "$as_me:$LINENO: libcapi20 development files not found." >&5
22669 echo "$as_me: libcapi20 development files not found." >&6;}
22670     { echo "$as_me:$LINENO: Wine will be built without ISDN support. (capi2032.dll)" >&5
22671 echo "$as_me: Wine will be built without ISDN support. (capi2032.dll)" >&6;}
22672   fi
22673
22674     if test "$ac_cv_header_cups_cups_h" != "yes"
22675   then
22676     echo >&2
22677     { echo "$as_me:$LINENO: libcups development files not found." >&5
22678 echo "$as_me: libcups development files not found." >&6;}
22679     { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
22680 echo "$as_me: Wine will be built without CUPS support." >&6;}
22681   fi
22682
22683
22684     if test "$ac_cv_header_gphoto2_camera_h" != "yes"
22685   then
22686     echo >&2
22687     { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
22688 echo "$as_me: libgphoto2 development files not found." >&6;}
22689     if test "$ac_cv_header_sane_sane_h" = "yes"
22690     then
22691       { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
22692 echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
22693     else
22694       { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
22695 echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
22696     fi
22697   fi
22698
22699       if test "$ac_cv_header_hal_libhal_h" != "yes"
22700   then
22701     echo >&2
22702     { echo "$as_me:$LINENO: libhal development files not found." >&5
22703 echo "$as_me: libhal development files not found." >&6;}
22704     { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
22705 echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
22706   fi
22707
22708     if test "$ac_cv_header_unicode_ubidi_h" != "yes"
22709   then
22710     echo >&2
22711     { echo "$as_me:$LINENO: libicu development files not found." >&5
22712 echo "$as_me: libicu development files not found." >&6;}
22713     { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
22714 echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
22715   fi
22716
22717     if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
22718   then
22719     echo >&2
22720     { echo "$as_me:$LINENO: liblcms development files not found." >&5
22721 echo "$as_me: liblcms development files not found." >&6;}
22722     { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
22723 echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
22724   fi
22725
22726     if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
22727   then
22728     echo >&2
22729     { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
22730 echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
22731     { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
22732 echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
22733   fi
22734
22735     if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
22736   then
22737     echo >&2
22738     { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
22739 echo "$as_me: lib(n)curses development files not found." >&6;}
22740     { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
22741 echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
22742   fi
22743
22744     if test "$ac_cv_header_sane_sane_h" != "yes"
22745   then
22746     echo >&2
22747     { echo "$as_me:$LINENO: libsane development files not found." >&5
22748 echo "$as_me: libsane development files not found." >&6;}
22749     { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
22750 echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
22751   fi
22752
22753       if test "$have_x" = "yes"
22754   then
22755         if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
22756     then
22757       echo >&2
22758       { echo "$as_me:$LINENO: libxext development files not found." >&5
22759 echo "$as_me: libxext development files not found." >&6;}
22760       { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
22761 echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
22762     fi
22763
22764         if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
22765     then
22766       echo >&2
22767       { echo "$as_me:$LINENO: libXrandr development files not found." >&5
22768 echo "$as_me: libXrandr development files not found." >&6;}
22769       { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
22770 echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
22771     fi
22772
22773         if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
22774     then
22775       echo >&2
22776       { echo "$as_me:$LINENO: libXrender development files not found." >&5
22777 echo "$as_me: libXrender development files not found." >&6;}
22778       { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
22779 echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
22780     fi
22781
22782         if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
22783     then
22784       echo >&2
22785       { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
22786 echo "$as_me: libXxf86vm development files not found." >&6;}
22787       { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
22788 echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
22789     fi
22790   fi
22791
22792     if test "$ac_cv_header_libxml_parser_h" != "yes"
22793   then
22794     echo >&2
22795     { echo "$as_me:$LINENO: libxml2 development files not found." >&5
22796 echo "$as_me: libxml2 development files not found." >&6;}
22797     { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
22798 echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
22799   fi
22800
22801     if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
22802   then
22803     echo >&2
22804     { echo "$as_me:$LINENO: libxslt development files not found." >&5
22805 echo "$as_me: libxslt development files not found." >&6;}
22806     { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
22807 echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
22808   fi
22809 fi
22810
22811
22812 if test "$have_x" = "no"
22813 then
22814   echo >&2
22815   { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
22816 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
22817   { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
22818 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
22819   { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
22820 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
22821   { echo "$as_me:$LINENO: WARNING:  packages of Xlib/Xfree86 at the very least." >&5
22822 echo "$as_me: WARNING:  packages of Xlib/Xfree86 at the very least." >&2;}
22823 fi
22824
22825 if test -z "$OPENGLFILES"
22826 then
22827   echo >&2
22828   { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
22829 echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
22830   { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
22831 echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
22832   if test "$wine_cv_opengl_headers_found" = "no"
22833   then
22834     { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
22835 echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
22836   fi
22837   if test "$wine_cv_opengl_header_version_OK" = "no"
22838   then
22839     { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
22840 echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
22841   elif test "$ac_cv_lib_GL_glXCreateContext" = "no"
22842   then
22843      if test -f /usr/X11R6/lib/libGL.a
22844      then
22845         { echo "$as_me:$LINENO: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22846 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&5
22847 echo "$as_me: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
22848 This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&2;}
22849      else
22850         { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
22851 echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
22852      fi
22853   fi
22854 fi
22855
22856 if test "$wine_cv_msg_freetype" = "yes"
22857 then
22858   echo >&2
22859   { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
22860 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
22861   { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
22862 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
22863   { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
22864 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
22865   { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
22866 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
22867 fi
22868
22869 if test -z "$FONTSSUBDIRS"
22870 then
22871   echo >&2
22872   if test "$FONTFORGE" = "false"
22873   then
22874     { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
22875 echo "$as_me: WARNING: FontForge is missing." >&2;}
22876   else
22877     { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
22878 echo "$as_me: WARNING: FreeType is missing." >&2;}
22879   fi
22880   { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
22881 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
22882 fi
22883
22884 if test -z "$ALSALIBS" -a \
22885         -z "$ARTSC_LIBS" -a \
22886         -z "$AUDIOIOLIBS" -a \
22887         -z "$NASLIBS" -a \
22888         -z "$ESD_LIBS" -a \
22889         -z "$ac_cv_lib_soname_jack" -a \
22890         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
22891         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
22892         "$ac_cv_header_soundcard_h" != "yes"
22893 then
22894   echo >&2
22895   { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
22896 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
22897   { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
22898 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
22899   { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
22900 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
22901 fi
22902
22903 echo
22904 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
22905 echo
22906