setupapi: Create an empty list when getting device interface classes.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60a for Wine 0.9.18.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='Wine'
561 PACKAGE_TARNAME='wine'
562 PACKAGE_VERSION='0.9.18'
563 PACKAGE_STRING='Wine 0.9.18'
564 PACKAGE_BUGREPORT='wine-devel@winehq.org'
565
566 ac_unique_file="server/atom.c"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 build
641 build_cpu
642 build_vendor
643 build_os
644 host
645 host_cpu
646 host_vendor
647 host_os
648 WIN16_FILES
649 WIN16_INSTALL
650 SET_MAKE
651 CC
652 CFLAGS
653 LDFLAGS
654 CPPFLAGS
655 ac_ct_CC
656 EXEEXT
657 OBJEXT
658 CXX
659 CXXFLAGS
660 ac_ct_CXX
661 CPPBIN
662 TOOLSDIR
663 XMKMF
664 CPP
665 X_CFLAGS
666 X_PRE_LIBS
667 X_LIBS
668 X_EXTRA_LIBS
669 LEX
670 LEXLIB
671 LEX_OUTPUT_ROOT
672 XLEX
673 BISON
674 AS
675 ac_ct_AS
676 LD
677 AR
678 RANLIB
679 STRIP
680 WINDRES
681 LN_S
682 LN
683 GREP
684 EGREP
685 LDCONFIG
686 INSTALL_PROGRAM
687 INSTALL_SCRIPT
688 INSTALL_DATA
689 LINT
690 LINTFLAGS
691 FONTFORGE
692 PKG_CONFIG
693 PRELINK
694 LIBPTHREAD
695 XLIB
696 XFILES
697 OPENGLFILES
698 GLU32FILES
699 OPENGL_LIBS
700 GLUT_LIBS
701 GLUT32FILES
702 NASLIBS
703 XML2LIBS
704 XML2INCL
705 XSLTLIBS
706 XSLTINCL
707 HALINCL
708 CURSESLIBS
709 sane_devel
710 SANELIBS
711 SANEINCL
712 gphoto2_devel
713 gphoto2port_devel
714 GPHOTO2LIBS
715 GPHOTO2INCL
716 ICULIBS
717 RESOLVLIBS
718 LCMSLIBS
719 LDAPLIBS
720 FREETYPELIBS
721 FREETYPEINCL
722 ft_devel
723 ft_devel2
724 FONTSSUBDIRS
725 ARTSCCONFIG
726 ARTSLIBS
727 ARTSINCL
728 ESDCONFIG
729 ESDLIBS
730 ESDINCL
731 ALSALIBS
732 AUDIOIOLIBS
733 EXTRACFLAGS
734 BUILTINFLAG
735 DLLEXT
736 DLLFLAGS
737 DLLIBS
738 LDSHARED
739 LDDLLFLAGS
740 LIBEXT
741 IMPLIBEXT
742 DLLTOOL
743 DLLWRAP
744 LDEXECFLAGS
745 LDEXERPATH
746 LDDLLRPATH
747 COREFOUNDATIONLIB
748 IOKITLIB
749 COREAUDIO
750 CROSSTEST
751 CROSSCC
752 CROSSWINDRES
753 LDPATH
754 CRTLIBS
755 SOCKETLIBS
756 MAIN_BINARY
757 EXTRA_BINARIES
758 LDD
759 LIBOBJS
760 LTLIBOBJS'
761 ac_subst_files='MAKE_RULES
762 MAKE_DLL_RULES
763 MAKE_IMPLIB_RULES
764 MAKE_TEST_RULES
765 MAKE_LIB_RULES
766 MAKE_PROG_RULES'
767       ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 CPPFLAGS
774 CXX
775 CXXFLAGS
776 CCC
777 XMKMF
778 CPP'
779
780
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
800
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831   # If the previous option needs an argument, assign it.
832   if test -n "$ac_prev"; then
833     eval $ac_prev=\$ac_option
834     ac_prev=
835     continue
836   fi
837
838   case $ac_option in
839   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840   *)    ac_optarg=yes ;;
841   esac
842
843   # Accept the important Cygnus configure options, so we can diagnose typos.
844
845   case $ac_dashdash$ac_option in
846   --)
847     ac_dashdash=yes ;;
848
849   -bindir | --bindir | --bindi | --bind | --bin | --bi)
850     ac_prev=bindir ;;
851   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852     bindir=$ac_optarg ;;
853
854   -build | --build | --buil | --bui | --bu)
855     ac_prev=build_alias ;;
856   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857     build_alias=$ac_optarg ;;
858
859   -cache-file | --cache-file | --cache-fil | --cache-fi \
860   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861     ac_prev=cache_file ;;
862   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864     cache_file=$ac_optarg ;;
865
866   --config-cache | -C)
867     cache_file=config.cache ;;
868
869   -datadir | --datadir | --datadi | --datad)
870     ac_prev=datadir ;;
871   -datadir=* | --datadir=* | --datadi=* | --datad=*)
872     datadir=$ac_optarg ;;
873
874   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875   | --dataroo | --dataro | --datar)
876     ac_prev=datarootdir ;;
877   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879     datarootdir=$ac_optarg ;;
880
881   -disable-* | --disable-*)
882     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883     # Reject names that are not valid shell variable names.
884     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
885       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
886    { (exit 1); exit 1; }; }
887     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
888     eval enable_$ac_feature=no ;;
889
890   -docdir | --docdir | --docdi | --doc | --do)
891     ac_prev=docdir ;;
892   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893     docdir=$ac_optarg ;;
894
895   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896     ac_prev=dvidir ;;
897   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898     dvidir=$ac_optarg ;;
899
900   -enable-* | --enable-*)
901     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902     # Reject names that are not valid shell variable names.
903     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
904       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905    { (exit 1); exit 1; }; }
906     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
907     eval enable_$ac_feature=\$ac_optarg ;;
908
909   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911   | --exec | --exe | --ex)
912     ac_prev=exec_prefix ;;
913   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915   | --exec=* | --exe=* | --ex=*)
916     exec_prefix=$ac_optarg ;;
917
918   -gas | --gas | --ga | --g)
919     # Obsolete; use --with-gas.
920     with_gas=yes ;;
921
922   -help | --help | --hel | --he | -h)
923     ac_init_help=long ;;
924   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925     ac_init_help=recursive ;;
926   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927     ac_init_help=short ;;
928
929   -host | --host | --hos | --ho)
930     ac_prev=host_alias ;;
931   -host=* | --host=* | --hos=* | --ho=*)
932     host_alias=$ac_optarg ;;
933
934   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935     ac_prev=htmldir ;;
936   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937   | --ht=*)
938     htmldir=$ac_optarg ;;
939
940   -includedir | --includedir | --includedi | --included | --include \
941   | --includ | --inclu | --incl | --inc)
942     ac_prev=includedir ;;
943   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944   | --includ=* | --inclu=* | --incl=* | --inc=*)
945     includedir=$ac_optarg ;;
946
947   -infodir | --infodir | --infodi | --infod | --info | --inf)
948     ac_prev=infodir ;;
949   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950     infodir=$ac_optarg ;;
951
952   -libdir | --libdir | --libdi | --libd)
953     ac_prev=libdir ;;
954   -libdir=* | --libdir=* | --libdi=* | --libd=*)
955     libdir=$ac_optarg ;;
956
957   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958   | --libexe | --libex | --libe)
959     ac_prev=libexecdir ;;
960   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961   | --libexe=* | --libex=* | --libe=*)
962     libexecdir=$ac_optarg ;;
963
964   -localedir | --localedir | --localedi | --localed | --locale)
965     ac_prev=localedir ;;
966   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967     localedir=$ac_optarg ;;
968
969   -localstatedir | --localstatedir | --localstatedi | --localstated \
970   | --localstate | --localstat | --localsta | --localst | --locals)
971     ac_prev=localstatedir ;;
972   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974     localstatedir=$ac_optarg ;;
975
976   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977     ac_prev=mandir ;;
978   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979     mandir=$ac_optarg ;;
980
981   -nfp | --nfp | --nf)
982     # Obsolete; use --without-fp.
983     with_fp=no ;;
984
985   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986   | --no-cr | --no-c | -n)
987     no_create=yes ;;
988
989   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991     no_recursion=yes ;;
992
993   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995   | --oldin | --oldi | --old | --ol | --o)
996     ac_prev=oldincludedir ;;
997   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000     oldincludedir=$ac_optarg ;;
1001
1002   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003     ac_prev=prefix ;;
1004   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005     prefix=$ac_optarg ;;
1006
1007   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008   | --program-pre | --program-pr | --program-p)
1009     ac_prev=program_prefix ;;
1010   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012     program_prefix=$ac_optarg ;;
1013
1014   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015   | --program-suf | --program-su | --program-s)
1016     ac_prev=program_suffix ;;
1017   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019     program_suffix=$ac_optarg ;;
1020
1021   -program-transform-name | --program-transform-name \
1022   | --program-transform-nam | --program-transform-na \
1023   | --program-transform-n | --program-transform- \
1024   | --program-transform | --program-transfor \
1025   | --program-transfo | --program-transf \
1026   | --program-trans | --program-tran \
1027   | --progr-tra | --program-tr | --program-t)
1028     ac_prev=program_transform_name ;;
1029   -program-transform-name=* | --program-transform-name=* \
1030   | --program-transform-nam=* | --program-transform-na=* \
1031   | --program-transform-n=* | --program-transform-=* \
1032   | --program-transform=* | --program-transfor=* \
1033   | --program-transfo=* | --program-transf=* \
1034   | --program-trans=* | --program-tran=* \
1035   | --progr-tra=* | --program-tr=* | --program-t=*)
1036     program_transform_name=$ac_optarg ;;
1037
1038   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039     ac_prev=pdfdir ;;
1040   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041     pdfdir=$ac_optarg ;;
1042
1043   -psdir | --psdir | --psdi | --psd | --ps)
1044     ac_prev=psdir ;;
1045   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046     psdir=$ac_optarg ;;
1047
1048   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049   | -silent | --silent | --silen | --sile | --sil)
1050     silent=yes ;;
1051
1052   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053     ac_prev=sbindir ;;
1054   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055   | --sbi=* | --sb=*)
1056     sbindir=$ac_optarg ;;
1057
1058   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060   | --sharedst | --shareds | --shared | --share | --shar \
1061   | --sha | --sh)
1062     ac_prev=sharedstatedir ;;
1063   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066   | --sha=* | --sh=*)
1067     sharedstatedir=$ac_optarg ;;
1068
1069   -site | --site | --sit)
1070     ac_prev=site ;;
1071   -site=* | --site=* | --sit=*)
1072     site=$ac_optarg ;;
1073
1074   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075     ac_prev=srcdir ;;
1076   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077     srcdir=$ac_optarg ;;
1078
1079   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080   | --syscon | --sysco | --sysc | --sys | --sy)
1081     ac_prev=sysconfdir ;;
1082   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084     sysconfdir=$ac_optarg ;;
1085
1086   -target | --target | --targe | --targ | --tar | --ta | --t)
1087     ac_prev=target_alias ;;
1088   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089     target_alias=$ac_optarg ;;
1090
1091   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092     verbose=yes ;;
1093
1094   -version | --version | --versio | --versi | --vers | -V)
1095     ac_init_version=: ;;
1096
1097   -with-* | --with-*)
1098     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1101       { echo "$as_me: error: invalid package name: $ac_package" >&2
1102    { (exit 1); exit 1; }; }
1103     ac_package=`echo $ac_package| sed 's/-/_/g'`
1104     eval with_$ac_package=\$ac_optarg ;;
1105
1106   -without-* | --without-*)
1107     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108     # Reject names that are not valid shell variable names.
1109     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1110       { echo "$as_me: error: invalid package name: $ac_package" >&2
1111    { (exit 1); exit 1; }; }
1112     ac_package=`echo $ac_package | sed 's/-/_/g'`
1113     eval with_$ac_package=no ;;
1114
1115   --x)
1116     # Obsolete; use --with-x.
1117     with_x=yes ;;
1118
1119   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120   | --x-incl | --x-inc | --x-in | --x-i)
1121     ac_prev=x_includes ;;
1122   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124     x_includes=$ac_optarg ;;
1125
1126   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128     ac_prev=x_libraries ;;
1129   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131     x_libraries=$ac_optarg ;;
1132
1133   -*) { echo "$as_me: error: unrecognized option: $ac_option
1134 Try \`$0 --help' for more information." >&2
1135    { (exit 1); exit 1; }; }
1136     ;;
1137
1138   *=*)
1139     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1142       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1143    { (exit 1); exit 1; }; }
1144     eval $ac_envvar=\$ac_optarg
1145     export $ac_envvar ;;
1146
1147   *)
1148     # FIXME: should be removed in autoconf 3.0.
1149     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153     ;;
1154
1155   esac
1156 done
1157
1158 if test -n "$ac_prev"; then
1159   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160   { echo "$as_me: error: missing argument to $ac_option" >&2
1161    { (exit 1); exit 1; }; }
1162 fi
1163
1164 # Be sure to have absolute directory names.
1165 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166                 datadir sysconfdir sharedstatedir localstatedir includedir \
1167                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168                 libdir localedir mandir
1169 do
1170   eval ac_val=\$$ac_var
1171   case $ac_val in
1172     [\\/$]* | ?:[\\/]* )  continue;;
1173     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174   esac
1175   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1176    { (exit 1); exit 1; }; }
1177 done
1178
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1182 build=$build_alias
1183 host=$host_alias
1184 target=$target_alias
1185
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188   if test "x$build_alias" = x; then
1189     cross_compiling=maybe
1190     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1191     If a cross compiler is detected then cross compile mode will be used." >&2
1192   elif test "x$build_alias" != "x$host_alias"; then
1193     cross_compiling=yes
1194   fi
1195 fi
1196
1197 ac_tool_prefix=
1198 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199
1200 test "$silent" = yes && exec 6>/dev/null
1201
1202
1203 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204 ac_ls_di=`ls -di .` &&
1205 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206   { echo "$as_me: error: Working directory cannot be determined" >&2
1207    { (exit 1); exit 1; }; }
1208 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209   { echo "$as_me: error: pwd does not report name of working directory" >&2
1210    { (exit 1); exit 1; }; }
1211
1212
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215   ac_srcdir_defaulted=yes
1216   # Try the directory containing this script, then the parent directory.
1217   ac_confdir=`$as_dirname -- "$0" ||
1218 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219          X"$0" : 'X\(//\)[^/]' \| \
1220          X"$0" : 'X\(//\)$' \| \
1221          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 echo X"$0" |
1223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224             s//\1/
1225             q
1226           }
1227           /^X\(\/\/\)[^/].*/{
1228             s//\1/
1229             q
1230           }
1231           /^X\(\/\/\)$/{
1232             s//\1/
1233             q
1234           }
1235           /^X\(\/\).*/{
1236             s//\1/
1237             q
1238           }
1239           s/.*/./; q'`
1240   srcdir=$ac_confdir
1241   if test ! -r "$srcdir/$ac_unique_file"; then
1242     srcdir=..
1243   fi
1244 else
1245   ac_srcdir_defaulted=no
1246 fi
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1250    { (exit 1); exit 1; }; }
1251 fi
1252 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 ac_abs_confdir=`(
1254         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1255    { (exit 1); exit 1; }; }
1256         pwd)`
1257 # When building in place, set srcdir=.
1258 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259   srcdir=.
1260 fi
1261 # Remove unnecessary trailing slashes from srcdir.
1262 # Double slashes in file names in object file debugging info
1263 # mess up M-x gdb in Emacs.
1264 case $srcdir in
1265 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 esac
1267 for ac_var in $ac_precious_vars; do
1268   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269   eval ac_env_${ac_var}_value=\$${ac_var}
1270   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272 done
1273
1274 #
1275 # Report the --help message.
1276 #
1277 if test "$ac_init_help" = "long"; then
1278   # Omit some internal or obsolete options to make the list less imposing.
1279   # This message is too long to be a string in the A/UX 3.1 sh.
1280   cat <<_ACEOF
1281 \`configure' configures Wine 0.9.18 to adapt to many kinds of systems.
1282
1283 Usage: $0 [OPTION]... [VAR=VALUE]...
1284
1285 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286 VAR=VALUE.  See below for descriptions of some of the useful variables.
1287
1288 Defaults for the options are specified in brackets.
1289
1290 Configuration:
1291   -h, --help              display this help and exit
1292       --help=short        display options specific to this package
1293       --help=recursive    display the short help of all the included packages
1294   -V, --version           display version information and exit
1295   -q, --quiet, --silent   do not print \`checking...' messages
1296       --cache-file=FILE   cache test results in FILE [disabled]
1297   -C, --config-cache      alias for \`--cache-file=config.cache'
1298   -n, --no-create         do not create output files
1299       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1300
1301 Installation directories:
1302   --prefix=PREFIX         install architecture-independent files in PREFIX
1303                           [$ac_default_prefix]
1304   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1305                           [PREFIX]
1306
1307 By default, \`make install' will install all the files in
1308 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1309 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310 for instance \`--prefix=\$HOME'.
1311
1312 For better control, use the options below.
1313
1314 Fine tuning of the installation directories:
1315   --bindir=DIR           user executables [EPREFIX/bin]
1316   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1317   --libexecdir=DIR       program executables [EPREFIX/libexec]
1318   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1319   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1320   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1321   --libdir=DIR           object code libraries [EPREFIX/lib]
1322   --includedir=DIR       C header files [PREFIX/include]
1323   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1324   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1325   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1326   --infodir=DIR          info documentation [DATAROOTDIR/info]
1327   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1328   --mandir=DIR           man documentation [DATAROOTDIR/man]
1329   --docdir=DIR           documentation root [DATAROOTDIR/doc/wine]
1330   --htmldir=DIR          html documentation [DOCDIR]
1331   --dvidir=DIR           dvi documentation [DOCDIR]
1332   --pdfdir=DIR           pdf documentation [DOCDIR]
1333   --psdir=DIR            ps documentation [DOCDIR]
1334 _ACEOF
1335
1336   cat <<\_ACEOF
1337
1338 X features:
1339   --x-includes=DIR    X include files are in DIR
1340   --x-libraries=DIR   X library files are in DIR
1341
1342 System types:
1343   --build=BUILD     configure for building on BUILD [guessed]
1344   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1345 _ACEOF
1346 fi
1347
1348 if test -n "$ac_init_help"; then
1349   case $ac_init_help in
1350      short | recursive ) echo "Configuration of Wine 0.9.18:";;
1351    esac
1352   cat <<\_ACEOF
1353
1354 Optional Features:
1355   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1356   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1357   --disable-win16         do not include Win16 support
1358   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1359                           binaries)
1360
1361 Optional Packages:
1362   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1363   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1364   --without-opengl        do not use OpenGL
1365   --without-curses        do not use curses
1366   --with-wine-tools=<dir> use Wine tools from directory <dir>
1367   --with-x                use the X Window System
1368
1369 Some influential environment variables:
1370   CC          C compiler command
1371   CFLAGS      C compiler flags
1372   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1373               nonstandard directory <lib dir>
1374   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1375               you have headers in a nonstandard directory <include dir>
1376   CXX         C++ compiler command
1377   CXXFLAGS    C++ compiler flags
1378   XMKMF       Path to xmkmf, Makefile generator for X Window System
1379   CPP         C preprocessor
1380
1381 Use these variables to override the choices made by `configure' or to help
1382 it to find libraries and programs with nonstandard names/locations.
1383
1384 Report bugs to <wine-devel@winehq.org>.
1385 _ACEOF
1386 ac_status=$?
1387 fi
1388
1389 if test "$ac_init_help" = "recursive"; then
1390   # If there are subdirs, report their specific --help.
1391   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392     test -d "$ac_dir" || continue
1393     ac_builddir=.
1394
1395 case "$ac_dir" in
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 *)
1398   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1399   # A ".." for each directory in $ac_dir_suffix.
1400   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1401   case $ac_top_builddir_sub in
1402   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404   esac ;;
1405 esac
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1410
1411 case $srcdir in
1412   .)  # We are building in place.
1413     ac_srcdir=.
1414     ac_top_srcdir=$ac_top_builddir_sub
1415     ac_abs_top_srcdir=$ac_pwd ;;
1416   [\\/]* | ?:[\\/]* )  # Absolute name.
1417     ac_srcdir=$srcdir$ac_dir_suffix;
1418     ac_top_srcdir=$srcdir
1419     ac_abs_top_srcdir=$srcdir ;;
1420   *) # Relative name.
1421     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422     ac_top_srcdir=$ac_top_build_prefix$srcdir
1423     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 esac
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426
1427     cd "$ac_dir" || { ac_status=$?; continue; }
1428     # Check for guested configure.
1429     if test -f "$ac_srcdir/configure.gnu"; then
1430       echo &&
1431       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432     elif test -f "$ac_srcdir/configure"; then
1433       echo &&
1434       $SHELL "$ac_srcdir/configure" --help=recursive
1435     else
1436       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437     fi || ac_status=$?
1438     cd "$ac_pwd" || { ac_status=$?; break; }
1439   done
1440 fi
1441
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1444   cat <<\_ACEOF
1445 Wine configure 0.9.18
1446 generated by GNU Autoconf 2.60a
1447
1448 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1449 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1450 This configure script is free software; the Free Software Foundation
1451 gives unlimited permission to copy, distribute and modify it.
1452 _ACEOF
1453   exit
1454 fi
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1458
1459 It was created by Wine $as_me 0.9.18, which was
1460 generated by GNU Autoconf 2.60a.  Invocation command line was
1461
1462   $ $0 $@
1463
1464 _ACEOF
1465 exec 5>>config.log
1466 {
1467 cat <<_ASUNAME
1468 ## --------- ##
1469 ## Platform. ##
1470 ## --------- ##
1471
1472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1480
1481 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1482 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1484 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1485 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1486 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1487 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1488
1489 _ASUNAME
1490
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494   IFS=$as_save_IFS
1495   test -z "$as_dir" && as_dir=.
1496   echo "PATH: $as_dir"
1497 done
1498 IFS=$as_save_IFS
1499
1500 } >&5
1501
1502 cat >&5 <<_ACEOF
1503
1504
1505 ## ----------- ##
1506 ## Core tests. ##
1507 ## ----------- ##
1508
1509 _ACEOF
1510
1511
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_configure_args=
1518 ac_configure_args0=
1519 ac_configure_args1=
1520 ac_must_keep_next=false
1521 for ac_pass in 1 2
1522 do
1523   for ac_arg
1524   do
1525     case $ac_arg in
1526     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528     | -silent | --silent | --silen | --sile | --sil)
1529       continue ;;
1530     *\'*)
1531       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532     esac
1533     case $ac_pass in
1534     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535     2)
1536       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1537       if test $ac_must_keep_next = true; then
1538         ac_must_keep_next=false # Got value, back to normal.
1539       else
1540         case $ac_arg in
1541           *=* | --config-cache | -C | -disable-* | --disable-* \
1542           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544           | -with-* | --with-* | -without-* | --without-* | --x)
1545             case "$ac_configure_args0 " in
1546               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547             esac
1548             ;;
1549           -* ) ac_must_keep_next=true ;;
1550         esac
1551       fi
1552       ac_configure_args="$ac_configure_args '$ac_arg'"
1553       ;;
1554     esac
1555   done
1556 done
1557 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1558 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1559
1560 # When interrupted or exit'd, cleanup temporary files, and complete
1561 # config.log.  We remove comments because anyway the quotes in there
1562 # would cause problems or look ugly.
1563 # WARNING: Use '\'' to represent an apostrophe within the trap.
1564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1565 trap 'exit_status=$?
1566   # Save into config.log some information that might help in debugging.
1567   {
1568     echo
1569
1570     cat <<\_ASBOX
1571 ## ---------------- ##
1572 ## Cache variables. ##
1573 ## ---------------- ##
1574 _ASBOX
1575     echo
1576     # The following way of writing the cache mishandles newlines in values,
1577 (
1578   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1579     eval ac_val=\$$ac_var
1580     case $ac_val in #(
1581     *${as_nl}*)
1582       case $ac_var in #(
1583       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1584 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585       esac
1586       case $ac_var in #(
1587       _ | IFS | as_nl) ;; #(
1588       *) $as_unset $ac_var ;;
1589       esac ;;
1590     esac
1591   done
1592   (set) 2>&1 |
1593     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1594     *${as_nl}ac_space=\ *)
1595       sed -n \
1596         "s/'\''/'\''\\\\'\'''\''/g;
1597           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598       ;; #(
1599     *)
1600       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601       ;;
1602     esac |
1603     sort
1604 )
1605     echo
1606
1607     cat <<\_ASBOX
1608 ## ----------------- ##
1609 ## Output variables. ##
1610 ## ----------------- ##
1611 _ASBOX
1612     echo
1613     for ac_var in $ac_subst_vars
1614     do
1615       eval ac_val=\$$ac_var
1616       case $ac_val in
1617       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618       esac
1619       echo "$ac_var='\''$ac_val'\''"
1620     done | sort
1621     echo
1622
1623     if test -n "$ac_subst_files"; then
1624       cat <<\_ASBOX
1625 ## ------------------- ##
1626 ## File substitutions. ##
1627 ## ------------------- ##
1628 _ASBOX
1629       echo
1630       for ac_var in $ac_subst_files
1631       do
1632         eval ac_val=\$$ac_var
1633         case $ac_val in
1634         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635         esac
1636         echo "$ac_var='\''$ac_val'\''"
1637       done | sort
1638       echo
1639     fi
1640
1641     if test -s confdefs.h; then
1642       cat <<\_ASBOX
1643 ## ----------- ##
1644 ## confdefs.h. ##
1645 ## ----------- ##
1646 _ASBOX
1647       echo
1648       cat confdefs.h
1649       echo
1650     fi
1651     test "$ac_signal" != 0 &&
1652       echo "$as_me: caught signal $ac_signal"
1653     echo "$as_me: exit $exit_status"
1654   } >&5
1655   rm -f core *.core core.conftest.* &&
1656     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1657     exit $exit_status
1658 ' 0
1659 for ac_signal in 1 2 13 15; do
1660   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1661 done
1662 ac_signal=0
1663
1664 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1665 rm -f -r conftest* confdefs.h
1666
1667 # Predefined preprocessor variables.
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_NAME "$PACKAGE_NAME"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1681 _ACEOF
1682
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_STRING "$PACKAGE_STRING"
1686 _ACEOF
1687
1688
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1691 _ACEOF
1692
1693
1694 # Let the site file select an alternate cache file if it wants to.
1695 # Prefer explicitly selected file to automatically selected ones.
1696 if test -n "$CONFIG_SITE"; then
1697   set x "$CONFIG_SITE"
1698 elif test "x$prefix" != xNONE; then
1699   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1700 else
1701   set x "$ac_default_prefix/share/config.site" \
1702         "$ac_default_prefix/etc/config.site"
1703 fi
1704 shift
1705 for ac_site_file
1706 do
1707   if test -r "$ac_site_file"; then
1708     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1709 echo "$as_me: loading site script $ac_site_file" >&6;}
1710     sed 's/^/| /' "$ac_site_file" >&5
1711     . "$ac_site_file"
1712   fi
1713 done
1714
1715 if test -r "$cache_file"; then
1716   # Some versions of bash will fail to source /dev/null (special
1717   # files actually), so we avoid doing that.
1718   if test -f "$cache_file"; then
1719     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1720 echo "$as_me: loading cache $cache_file" >&6;}
1721     case $cache_file in
1722       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1723       *)                      . "./$cache_file";;
1724     esac
1725   fi
1726 else
1727   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1728 echo "$as_me: creating cache $cache_file" >&6;}
1729   >$cache_file
1730 fi
1731
1732 # Check that the precious variables saved in the cache have kept the same
1733 # value.
1734 ac_cache_corrupted=false
1735 for ac_var in $ac_precious_vars; do
1736   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1737   eval ac_new_set=\$ac_env_${ac_var}_set
1738   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1739   eval ac_new_val=\$ac_env_${ac_var}_value
1740   case $ac_old_set,$ac_new_set in
1741     set,)
1742       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1744       ac_cache_corrupted=: ;;
1745     ,set)
1746       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1747 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1748       ac_cache_corrupted=: ;;
1749     ,);;
1750     *)
1751       if test "x$ac_old_val" != "x$ac_new_val"; then
1752         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1753 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1754         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1755 echo "$as_me:   former value:  $ac_old_val" >&2;}
1756         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1757 echo "$as_me:   current value: $ac_new_val" >&2;}
1758         ac_cache_corrupted=:
1759       fi;;
1760   esac
1761   # Pass precious variables to config.status.
1762   if test "$ac_new_set" = set; then
1763     case $ac_new_val in
1764     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1765     *) ac_arg=$ac_var=$ac_new_val ;;
1766     esac
1767     case " $ac_configure_args " in
1768       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1769       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1770     esac
1771   fi
1772 done
1773 if $ac_cache_corrupted; then
1774   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1775 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1776   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1777 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1778    { (exit 1); exit 1; }; }
1779 fi
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805 ac_ext=c
1806 ac_cpp='$CPP $CPPFLAGS'
1807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1810
1811
1812
1813 ac_config_headers="$ac_config_headers include/config.h"
1814
1815 ac_aux_dir=
1816 for ac_dir in tools "$srcdir"/tools; do
1817   if test -f "$ac_dir/install-sh"; then
1818     ac_aux_dir=$ac_dir
1819     ac_install_sh="$ac_aux_dir/install-sh -c"
1820     break
1821   elif test -f "$ac_dir/install.sh"; then
1822     ac_aux_dir=$ac_dir
1823     ac_install_sh="$ac_aux_dir/install.sh -c"
1824     break
1825   elif test -f "$ac_dir/shtool"; then
1826     ac_aux_dir=$ac_dir
1827     ac_install_sh="$ac_aux_dir/shtool install -c"
1828     break
1829   fi
1830 done
1831 if test -z "$ac_aux_dir"; then
1832   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1833 echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
1834    { (exit 1); exit 1; }; }
1835 fi
1836
1837 # These three variables are undocumented and unsupported,
1838 # and are intended to be withdrawn in a future Autoconf release.
1839 # They can cause serious problems if a builder's source tree is in a directory
1840 # whose full name contains unusual characters.
1841 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1842 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1843 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1844
1845
1846
1847
1848 # Check whether --enable-win16 was given.
1849 if test "${enable_win16+set}" = set; then
1850   enableval=$enable_win16;
1851 fi
1852
1853 # Check whether --enable-win64 was given.
1854 if test "${enable_win64+set}" = set; then
1855   enableval=$enable_win64;
1856 fi
1857
1858
1859
1860 # Check whether --with-opengl was given.
1861 if test "${with_opengl+set}" = set; then
1862   withval=$with_opengl;
1863 fi
1864
1865
1866 # Check whether --with-curses was given.
1867 if test "${with_curses+set}" = set; then
1868   withval=$with_curses;
1869 fi
1870
1871
1872 # Check whether --with-wine-tools was given.
1873 if test "${with_wine_tools+set}" = set; then
1874   withval=$with_wine_tools;
1875 fi
1876
1877
1878 # Make sure we can run config.sub.
1879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1880   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1881 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1882    { (exit 1); exit 1; }; }
1883
1884 { echo "$as_me:$LINENO: checking build system type" >&5
1885 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1886 if test "${ac_cv_build+set}" = set; then
1887   echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889   ac_build_alias=$build_alias
1890 test "x$ac_build_alias" = x &&
1891   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1892 test "x$ac_build_alias" = x &&
1893   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1894 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1895    { (exit 1); exit 1; }; }
1896 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1897   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1898 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1899    { (exit 1); exit 1; }; }
1900
1901 fi
1902 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1903 echo "${ECHO_T}$ac_cv_build" >&6; }
1904 case $ac_cv_build in
1905 *-*-*) ;;
1906 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1907 echo "$as_me: error: invalid value of canonical build" >&2;}
1908    { (exit 1); exit 1; }; };;
1909 esac
1910 build=$ac_cv_build
1911 ac_save_IFS=$IFS; IFS='-'
1912 set x $ac_cv_build
1913 shift
1914 build_cpu=$1
1915 build_vendor=$2
1916 shift; shift
1917 # Remember, the first character of IFS is used to create $*,
1918 # except with old shells:
1919 build_os=$*
1920 IFS=$ac_save_IFS
1921 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1922
1923
1924 { echo "$as_me:$LINENO: checking host system type" >&5
1925 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1926 if test "${ac_cv_host+set}" = set; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   if test "x$host_alias" = x; then
1930   ac_cv_host=$ac_cv_build
1931 else
1932   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1933     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1934 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1935    { (exit 1); exit 1; }; }
1936 fi
1937
1938 fi
1939 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1940 echo "${ECHO_T}$ac_cv_host" >&6; }
1941 case $ac_cv_host in
1942 *-*-*) ;;
1943 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1944 echo "$as_me: error: invalid value of canonical host" >&2;}
1945    { (exit 1); exit 1; }; };;
1946 esac
1947 host=$ac_cv_host
1948 ac_save_IFS=$IFS; IFS='-'
1949 set x $ac_cv_host
1950 shift
1951 host_cpu=$1
1952 host_vendor=$2
1953 shift; shift
1954 # Remember, the first character of IFS is used to create $*,
1955 # except with old shells:
1956 host_os=$*
1957 IFS=$ac_save_IFS
1958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1959
1960
1961 case $host in
1962   x86_64*linux*)
1963     if test "x$enable_win64" != "xyes"
1964     then
1965       test -n "$CC" || CC="gcc -m32"
1966       test -n "$LD" || LD="ld -m elf_i386"
1967       test -n "$AS" || AS="as --32"
1968       host_cpu="i386"
1969     fi
1970     ;;
1971 esac
1972
1973 case $host_cpu in
1974   *i[3456789]86*)
1975     if test "x$enable_win16" != "xno"
1976     then
1977       enable_win16="yes"
1978     fi
1979     ;;
1980 esac
1981
1982 WIN16_FILES="\$(WIN16_FILES)"
1983
1984 WIN16_INSTALL="\$(WIN16_INSTALL)"
1985
1986 if test "x$enable_win16" != "xyes"
1987 then
1988   WIN16_FILES=""
1989   WIN16_INSTALL=""
1990 fi
1991
1992
1993 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1994 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1995 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1996 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   cat >conftest.make <<\_ACEOF
2000 SHELL = /bin/sh
2001 all:
2002         @echo '@@@%%%=$(MAKE)=@@@%%%'
2003 _ACEOF
2004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2005 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2006   *@@@%%%=?*=@@@%%%*)
2007     eval ac_cv_prog_make_${ac_make}_set=yes;;
2008   *)
2009     eval ac_cv_prog_make_${ac_make}_set=no;;
2010 esac
2011 rm -f conftest.make
2012 fi
2013 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2014   { echo "$as_me:$LINENO: result: yes" >&5
2015 echo "${ECHO_T}yes" >&6; }
2016   SET_MAKE=
2017 else
2018   { echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6; }
2020   SET_MAKE="MAKE=${MAKE-make}"
2021 fi
2022
2023 ac_ext=c
2024 ac_cpp='$CPP $CPPFLAGS'
2025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028 if test -n "$ac_tool_prefix"; then
2029   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2030 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034   echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036   if test -n "$CC"; then
2037   ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
2042   IFS=$as_save_IFS
2043   test -z "$as_dir" && as_dir=.
2044   for ac_exec_ext in '' $ac_executable_extensions; do
2045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2046     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048     break 2
2049   fi
2050 done
2051 done
2052 IFS=$as_save_IFS
2053
2054 fi
2055 fi
2056 CC=$ac_cv_prog_CC
2057 if test -n "$CC"; then
2058   { echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6; }
2060 else
2061   { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2063 fi
2064
2065
2066 fi
2067 if test -z "$ac_cv_prog_CC"; then
2068   ac_ct_CC=$CC
2069   # Extract the first word of "gcc", so it can be a program name with args.
2070 set dummy gcc; ac_word=$2
2071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074   echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076   if test -n "$ac_ct_CC"; then
2077   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2081 do
2082   IFS=$as_save_IFS
2083   test -z "$as_dir" && as_dir=.
2084   for ac_exec_ext in '' $ac_executable_extensions; do
2085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2086     ac_cv_prog_ac_ct_CC="gcc"
2087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088     break 2
2089   fi
2090 done
2091 done
2092 IFS=$as_save_IFS
2093
2094 fi
2095 fi
2096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097 if test -n "$ac_ct_CC"; then
2098   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099 echo "${ECHO_T}$ac_ct_CC" >&6; }
2100 else
2101   { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2103 fi
2104
2105   if test "x$ac_ct_CC" = x; then
2106     CC=""
2107   else
2108     case $cross_compiling:$ac_tool_warned in
2109 yes:)
2110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111 whose name does not start with the host triplet.  If you think this
2112 configuration is useful to you, please write to autoconf@gnu.org." >&5
2113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet.  If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116 ac_tool_warned=yes ;;
2117 esac
2118     CC=$ac_ct_CC
2119   fi
2120 else
2121   CC="$ac_cv_prog_CC"
2122 fi
2123
2124 if test -z "$CC"; then
2125           if test -n "$ac_tool_prefix"; then
2126     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2127 set dummy ${ac_tool_prefix}cc; ac_word=$2
2128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2130 if test "${ac_cv_prog_CC+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test -n "$CC"; then
2134   ac_cv_prog_CC="$CC" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2143     ac_cv_prog_CC="${ac_tool_prefix}cc"
2144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145     break 2
2146   fi
2147 done
2148 done
2149 IFS=$as_save_IFS
2150
2151 fi
2152 fi
2153 CC=$ac_cv_prog_CC
2154 if test -n "$CC"; then
2155   { echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6; }
2157 else
2158   { echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6; }
2160 fi
2161
2162
2163   fi
2164 fi
2165 if test -z "$CC"; then
2166   # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   if test -n "$CC"; then
2174   ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176   ac_prog_rejected=no
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2184     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185        ac_prog_rejected=yes
2186        continue
2187      fi
2188     ac_cv_prog_CC="cc"
2189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190     break 2
2191   fi
2192 done
2193 done
2194 IFS=$as_save_IFS
2195
2196 if test $ac_prog_rejected = yes; then
2197   # We found a bogon in the path, so make sure we never use it.
2198   set dummy $ac_cv_prog_CC
2199   shift
2200   if test $# != 0; then
2201     # We chose a different compiler from the bogus one.
2202     # However, it has the same basename, so the bogon will be chosen
2203     # first if we set CC to just the basename; use the full file name.
2204     shift
2205     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2206   fi
2207 fi
2208 fi
2209 fi
2210 CC=$ac_cv_prog_CC
2211 if test -n "$CC"; then
2212   { echo "$as_me:$LINENO: result: $CC" >&5
2213 echo "${ECHO_T}$CC" >&6; }
2214 else
2215   { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2217 fi
2218
2219
2220 fi
2221 if test -z "$CC"; then
2222   if test -n "$ac_tool_prefix"; then
2223   for ac_prog in cl.exe
2224   do
2225     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   if test -n "$CC"; then
2233   ac_cv_prog_CC="$CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238   IFS=$as_save_IFS
2239   test -z "$as_dir" && as_dir=.
2240   for ac_exec_ext in '' $ac_executable_extensions; do
2241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2242     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244     break 2
2245   fi
2246 done
2247 done
2248 IFS=$as_save_IFS
2249
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254   { echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6; }
2256 else
2257   { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2259 fi
2260
2261
2262     test -n "$CC" && break
2263   done
2264 fi
2265 if test -z "$CC"; then
2266   ac_ct_CC=$CC
2267   for ac_prog in cl.exe
2268 do
2269   # Extract the first word of "$ac_prog", so it can be a program name with args.
2270 set dummy $ac_prog; ac_word=$2
2271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274   echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276   if test -n "$ac_ct_CC"; then
2277   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284   for ac_exec_ext in '' $ac_executable_extensions; do
2285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2286     ac_cv_prog_ac_ct_CC="$ac_prog"
2287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288     break 2
2289   fi
2290 done
2291 done
2292 IFS=$as_save_IFS
2293
2294 fi
2295 fi
2296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297 if test -n "$ac_ct_CC"; then
2298   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299 echo "${ECHO_T}$ac_ct_CC" >&6; }
2300 else
2301   { echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6; }
2303 fi
2304
2305
2306   test -n "$ac_ct_CC" && break
2307 done
2308
2309   if test "x$ac_ct_CC" = x; then
2310     CC=""
2311   else
2312     case $cross_compiling:$ac_tool_warned in
2313 yes:)
2314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet.  If you think this
2316 configuration is useful to you, please write to autoconf@gnu.org." >&5
2317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet.  If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2320 ac_tool_warned=yes ;;
2321 esac
2322     CC=$ac_ct_CC
2323   fi
2324 fi
2325
2326 fi
2327
2328
2329 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: no acceptable C compiler found in \$PATH
2332 See \`config.log' for more details." >&2;}
2333    { (exit 1); exit 1; }; }
2334
2335 # Provide some information about the compiler.
2336 echo "$as_me:$LINENO: checking for C compiler version" >&5
2337 ac_compiler=`set X $ac_compile; echo $2`
2338 { (ac_try="$ac_compiler --version >&5"
2339 case "(($ac_try" in
2340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341   *) ac_try_echo=$ac_try;;
2342 esac
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344   (eval "$ac_compiler --version >&5") 2>&5
2345   ac_status=$?
2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347   (exit $ac_status); }
2348 { (ac_try="$ac_compiler -v >&5"
2349 case "(($ac_try" in
2350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351   *) ac_try_echo=$ac_try;;
2352 esac
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354   (eval "$ac_compiler -v >&5") 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }
2358 { (ac_try="$ac_compiler -V >&5"
2359 case "(($ac_try" in
2360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361   *) ac_try_echo=$ac_try;;
2362 esac
2363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364   (eval "$ac_compiler -V >&5") 2>&5
2365   ac_status=$?
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); }
2368
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h.  */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h.  */
2375
2376 int
2377 main ()
2378 {
2379
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 ac_clean_files_save=$ac_clean_files
2385 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2386 # Try to create an executable without -o first, disregard a.out.
2387 # It will help us diagnose broken compilers, and finding out an intuition
2388 # of exeext.
2389 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2390 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2391 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2392 #
2393 # List of possible output files, starting from the most likely.
2394 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2395 # only as a last resort.  b.out is created by i960 compilers.
2396 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2397 #
2398 # The IRIX 6 linker writes into existing files which may not be
2399 # executable, retaining their permissions.  Remove them first so a
2400 # subsequent execution test works.
2401 ac_rmfiles=
2402 for ac_file in $ac_files
2403 do
2404   case $ac_file in
2405     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2406     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2407   esac
2408 done
2409 rm -f $ac_rmfiles
2410
2411 if { (ac_try="$ac_link_default"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417   (eval "$ac_link_default") 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; then
2421   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2422 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2423 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2424 # so that the user can short-circuit this test for compilers unknown to
2425 # Autoconf.
2426 for ac_file in $ac_files
2427 do
2428   test -f "$ac_file" || continue
2429   case $ac_file in
2430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2431         ;;
2432     [ab].out )
2433         # We found the default executable, but exeext='' is most
2434         # certainly right.
2435         break;;
2436     *.* )
2437         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2438         then :; else
2439            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440         fi
2441         # We set ac_cv_exeext here because the later test for it is not
2442         # safe: cross compilers may not add the suffix if given an `-o'
2443         # argument, so we may need to know it at that point already.
2444         # Even if this section looks crufty: it has the advantage of
2445         # actually working.
2446         break;;
2447     * )
2448         break;;
2449   esac
2450 done
2451 test "$ac_cv_exeext" = no && ac_cv_exeext=
2452
2453 else
2454   echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456
2457 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: C compiler cannot create executables
2460 See \`config.log' for more details." >&2;}
2461    { (exit 77); exit 77; }; }
2462 fi
2463
2464 ac_exeext=$ac_cv_exeext
2465 { echo "$as_me:$LINENO: result: $ac_file" >&5
2466 echo "${ECHO_T}$ac_file" >&6; }
2467
2468 # Check that the compiler produces executables we can run.  If not, either
2469 # the compiler is broken, or we cross compile.
2470 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2471 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2472 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2473 # If not cross compiling, check that we can run a simple program.
2474 if test "$cross_compiling" != yes; then
2475   if { ac_try='./$ac_file'
2476   { (case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481   (eval "$ac_try") 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; }; then
2485     cross_compiling=no
2486   else
2487     if test "$cross_compiling" = maybe; then
2488         cross_compiling=yes
2489     else
2490         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2491 If you meant to cross compile, use \`--host'.
2492 See \`config.log' for more details." >&5
2493 echo "$as_me: error: cannot run C compiled programs.
2494 If you meant to cross compile, use \`--host'.
2495 See \`config.log' for more details." >&2;}
2496    { (exit 1); exit 1; }; }
2497     fi
2498   fi
2499 fi
2500 { echo "$as_me:$LINENO: result: yes" >&5
2501 echo "${ECHO_T}yes" >&6; }
2502
2503 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2504 ac_clean_files=$ac_clean_files_save
2505 # Check that the compiler produces executables we can run.  If not, either
2506 # the compiler is broken, or we cross compile.
2507 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2508 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2509 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2510 echo "${ECHO_T}$cross_compiling" >&6; }
2511
2512 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2513 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2514 if { (ac_try="$ac_link"
2515 case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520   (eval "$ac_link") 2>&5
2521   ac_status=$?
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); }; then
2524   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2525 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2526 # work properly (i.e., refer to `conftest.exe'), while it won't with
2527 # `rm'.
2528 for ac_file in conftest.exe conftest conftest.*; do
2529   test -f "$ac_file" || continue
2530   case $ac_file in
2531     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2532     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2533           break;;
2534     * ) break;;
2535   esac
2536 done
2537 else
2538   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2541 See \`config.log' for more details." >&2;}
2542    { (exit 1); exit 1; }; }
2543 fi
2544
2545 rm -f conftest$ac_cv_exeext
2546 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2547 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2548
2549 rm -f conftest.$ac_ext
2550 EXEEXT=$ac_cv_exeext
2551 ac_exeext=$EXEEXT
2552 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2553 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2554 if test "${ac_cv_objext+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h.  */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h.  */
2563
2564 int
2565 main ()
2566 {
2567
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.o conftest.obj
2573 if { (ac_try="$ac_compile"
2574 case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579   (eval "$ac_compile") 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; then
2583   for ac_file in conftest.o conftest.obj conftest.*; do
2584   test -f "$ac_file" || continue;
2585   case $ac_file in
2586     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2587     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2588        break;;
2589   esac
2590 done
2591 else
2592   echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594
2595 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2596 See \`config.log' for more details." >&5
2597 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2598 See \`config.log' for more details." >&2;}
2599    { (exit 1); exit 1; }; }
2600 fi
2601
2602 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2603 fi
2604 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2605 echo "${ECHO_T}$ac_cv_objext" >&6; }
2606 OBJEXT=$ac_cv_objext
2607 ac_objext=$OBJEXT
2608 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2609 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2610 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h.  */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h.  */
2619
2620 int
2621 main ()
2622 {
2623 #ifndef __GNUC__
2624        choke me
2625 #endif
2626
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (ac_try="$ac_compile"
2633 case "(($ac_try" in
2634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635   *) ac_try_echo=$ac_try;;
2636 esac
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638   (eval "$ac_compile") 2>conftest.er1
2639   ac_status=$?
2640   grep -v '^ *+' conftest.er1 >conftest.err
2641   rm -f conftest.er1
2642   cat conftest.err >&5
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); } &&
2645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2646   { (case "(($ac_try" in
2647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648   *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651   (eval "$ac_try") 2>&5
2652   ac_status=$?
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); }; } &&
2655          { ac_try='test -s conftest.$ac_objext'
2656   { (case "(($ac_try" in
2657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658   *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661   (eval "$ac_try") 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; }; then
2665   ac_compiler_gnu=yes
2666 else
2667   echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670         ac_compiler_gnu=no
2671 fi
2672
2673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2675
2676 fi
2677 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2678 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2679 GCC=`test $ac_compiler_gnu = yes && echo yes`
2680 ac_test_CFLAGS=${CFLAGS+set}
2681 ac_save_CFLAGS=$CFLAGS
2682 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2683 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_cc_g+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   ac_save_c_werror_flag=$ac_c_werror_flag
2688    ac_c_werror_flag=yes
2689    ac_cv_prog_cc_g=no
2690    CFLAGS="-g"
2691    cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h.  */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h.  */
2697
2698 int
2699 main ()
2700 {
2701
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (ac_try="$ac_compile"
2708 case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_compile") 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2721   { (case "(($ac_try" in
2722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723   *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726   (eval "$ac_try") 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; } &&
2730          { ac_try='test -s conftest.$ac_objext'
2731   { (case "(($ac_try" in
2732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733   *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736   (eval "$ac_try") 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; }; then
2740   ac_cv_prog_cc_g=yes
2741 else
2742   echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745         CFLAGS=""
2746       cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h.  */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h.  */
2752
2753 int
2754 main ()
2755 {
2756
2757   ;
2758   return 0;
2759 }
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (ac_try="$ac_compile"
2763 case "(($ac_try" in
2764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765   *) ac_try_echo=$ac_try;;
2766 esac
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768   (eval "$ac_compile") 2>conftest.er1
2769   ac_status=$?
2770   grep -v '^ *+' conftest.er1 >conftest.err
2771   rm -f conftest.er1
2772   cat conftest.err >&5
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); } &&
2775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2776   { (case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781   (eval "$ac_try") 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; } &&
2785          { ac_try='test -s conftest.$ac_objext'
2786   { (case "(($ac_try" in
2787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788   *) ac_try_echo=$ac_try;;
2789 esac
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791   (eval "$ac_try") 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); }; }; then
2795   :
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800         ac_c_werror_flag=$ac_save_c_werror_flag
2801          CFLAGS="-g"
2802          cat >conftest.$ac_ext <<_ACEOF
2803 /* confdefs.h.  */
2804 _ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h.  */
2808
2809 int
2810 main ()
2811 {
2812
2813   ;
2814   return 0;
2815 }
2816 _ACEOF
2817 rm -f conftest.$ac_objext
2818 if { (ac_try="$ac_compile"
2819 case "(($ac_try" in
2820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821   *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824   (eval "$ac_compile") 2>conftest.er1
2825   ac_status=$?
2826   grep -v '^ *+' conftest.er1 >conftest.err
2827   rm -f conftest.er1
2828   cat conftest.err >&5
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); } &&
2831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2832   { (case "(($ac_try" in
2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834   *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837   (eval "$ac_try") 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }; } &&
2841          { ac_try='test -s conftest.$ac_objext'
2842   { (case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847   (eval "$ac_try") 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; }; then
2851   ac_cv_prog_cc_g=yes
2852 else
2853   echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2855
2856
2857 fi
2858
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2860 fi
2861
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 fi
2864
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866    ac_c_werror_flag=$ac_save_c_werror_flag
2867 fi
2868 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2869 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2870 if test "$ac_test_CFLAGS" = set; then
2871   CFLAGS=$ac_save_CFLAGS
2872 elif test $ac_cv_prog_cc_g = yes; then
2873   if test "$GCC" = yes; then
2874     CFLAGS="-g -O2"
2875   else
2876     CFLAGS="-g"
2877   fi
2878 else
2879   if test "$GCC" = yes; then
2880     CFLAGS="-O2"
2881   else
2882     CFLAGS=
2883   fi
2884 fi
2885 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2886 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2887 if test "${ac_cv_prog_cc_c89+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890   ac_cv_prog_cc_c89=no
2891 ac_save_CC=$CC
2892 cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h.  */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h.  */
2898 #include <stdarg.h>
2899 #include <stdio.h>
2900 #include <sys/types.h>
2901 #include <sys/stat.h>
2902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2903 struct buf { int x; };
2904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2905 static char *e (p, i)
2906      char **p;
2907      int i;
2908 {
2909   return p[i];
2910 }
2911 static char *f (char * (*g) (char **, int), char **p, ...)
2912 {
2913   char *s;
2914   va_list v;
2915   va_start (v,p);
2916   s = g (p, va_arg (v,int));
2917   va_end (v);
2918   return s;
2919 }
2920
2921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2922    function prototypes and stuff, but not '\xHH' hex character constants.
2923    These don't provoke an error unfortunately, instead are silently treated
2924    as 'x'.  The following induces an error, until -std is added to get
2925    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2926    array size at least.  It's necessary to write '\x00'==0 to get something
2927    that's true only with -std.  */
2928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2929
2930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2931    inside strings and character constants.  */
2932 #define FOO(x) 'x'
2933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2934
2935 int test (int i, double x);
2936 struct s1 {int (*f) (int a);};
2937 struct s2 {int (*f) (double a);};
2938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2939 int argc;
2940 char **argv;
2941 int
2942 main ()
2943 {
2944 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2945   ;
2946   return 0;
2947 }
2948 _ACEOF
2949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2950         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2951 do
2952   CC="$ac_save_CC $ac_arg"
2953   rm -f conftest.$ac_objext
2954 if { (ac_try="$ac_compile"
2955 case "(($ac_try" in
2956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957   *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960   (eval "$ac_compile") 2>conftest.er1
2961   ac_status=$?
2962   grep -v '^ *+' conftest.er1 >conftest.err
2963   rm -f conftest.er1
2964   cat conftest.err >&5
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); } &&
2967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2968   { (case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973   (eval "$ac_try") 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; } &&
2977          { ac_try='test -s conftest.$ac_objext'
2978   { (case "(($ac_try" in
2979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980   *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983   (eval "$ac_try") 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; }; then
2987   ac_cv_prog_cc_c89=$ac_arg
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992
2993 fi
2994
2995 rm -f core conftest.err conftest.$ac_objext
2996   test "x$ac_cv_prog_cc_c89" != "xno" && break
2997 done
2998 rm -f conftest.$ac_ext
2999 CC=$ac_save_CC
3000
3001 fi
3002 # AC_CACHE_VAL
3003 case "x$ac_cv_prog_cc_c89" in
3004   x)
3005     { echo "$as_me:$LINENO: result: none needed" >&5
3006 echo "${ECHO_T}none needed" >&6; } ;;
3007   xno)
3008     { echo "$as_me:$LINENO: result: unsupported" >&5
3009 echo "${ECHO_T}unsupported" >&6; } ;;
3010   *)
3011     CC="$CC $ac_cv_prog_cc_c89"
3012     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3013 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3014 esac
3015
3016
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022
3023 ac_ext=cpp
3024 ac_cpp='$CXXCPP $CPPFLAGS'
3025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3028 if test -z "$CXX"; then
3029   if test -n "$CCC"; then
3030     CXX=$CCC
3031   else
3032     if test -n "$ac_tool_prefix"; then
3033   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3034   do
3035     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3039 if test "${ac_cv_prog_CXX+set}" = set; then
3040   echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042   if test -n "$CXX"; then
3043   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048   IFS=$as_save_IFS
3049   test -z "$as_dir" && as_dir=.
3050   for ac_exec_ext in '' $ac_executable_extensions; do
3051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3052     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054     break 2
3055   fi
3056 done
3057 done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 CXX=$ac_cv_prog_CXX
3063 if test -n "$CXX"; then
3064   { echo "$as_me:$LINENO: result: $CXX" >&5
3065 echo "${ECHO_T}$CXX" >&6; }
3066 else
3067   { echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6; }
3069 fi
3070
3071
3072     test -n "$CXX" && break
3073   done
3074 fi
3075 if test -z "$CXX"; then
3076   ac_ct_CXX=$CXX
3077   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3078 do
3079   # Extract the first word of "$ac_prog", so it can be a program name with args.
3080 set dummy $ac_prog; ac_word=$2
3081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3083 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3084   echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086   if test -n "$ac_ct_CXX"; then
3087   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092   IFS=$as_save_IFS
3093   test -z "$as_dir" && as_dir=.
3094   for ac_exec_ext in '' $ac_executable_extensions; do
3095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3096     ac_cv_prog_ac_ct_CXX="$ac_prog"
3097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098     break 2
3099   fi
3100 done
3101 done
3102 IFS=$as_save_IFS
3103
3104 fi
3105 fi
3106 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3107 if test -n "$ac_ct_CXX"; then
3108   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3109 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3110 else
3111   { echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6; }
3113 fi
3114
3115
3116   test -n "$ac_ct_CXX" && break
3117 done
3118
3119   if test "x$ac_ct_CXX" = x; then
3120     CXX="g++"
3121   else
3122     case $cross_compiling:$ac_tool_warned in
3123 yes:)
3124 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3125 whose name does not start with the host triplet.  If you think this
3126 configuration is useful to you, please write to autoconf@gnu.org." >&5
3127 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3128 whose name does not start with the host triplet.  If you think this
3129 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3130 ac_tool_warned=yes ;;
3131 esac
3132     CXX=$ac_ct_CXX
3133   fi
3134 fi
3135
3136   fi
3137 fi
3138 # Provide some information about the compiler.
3139 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3140 ac_compiler=`set X $ac_compile; echo $2`
3141 { (ac_try="$ac_compiler --version >&5"
3142 case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147   (eval "$ac_compiler --version >&5") 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }
3151 { (ac_try="$ac_compiler -v >&5"
3152 case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157   (eval "$ac_compiler -v >&5") 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }
3161 { (ac_try="$ac_compiler -V >&5"
3162 case "(($ac_try" in
3163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164   *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167   (eval "$ac_compiler -V >&5") 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }
3171
3172 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3173 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3174 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177   cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h.  */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h.  */
3183
3184 int
3185 main ()
3186 {
3187 #ifndef __GNUC__
3188        choke me
3189 #endif
3190
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202   (eval "$ac_compile") 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } &&
3209          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3210   { (case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215   (eval "$ac_try") 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; } &&
3219          { ac_try='test -s conftest.$ac_objext'
3220   { (case "(($ac_try" in
3221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222   *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225   (eval "$ac_try") 2>&5
3226   ac_status=$?
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }; }; then
3229   ac_compiler_gnu=yes
3230 else
3231   echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234         ac_compiler_gnu=no
3235 fi
3236
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3239
3240 fi
3241 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3242 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3243 GXX=`test $ac_compiler_gnu = yes && echo yes`
3244 ac_test_CXXFLAGS=${CXXFLAGS+set}
3245 ac_save_CXXFLAGS=$CXXFLAGS
3246 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3247 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_cxx_g+set}" = set; then
3249   echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3252    ac_cxx_werror_flag=yes
3253    ac_cv_prog_cxx_g=no
3254    CXXFLAGS="-g"
3255    cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h.  */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h.  */
3261
3262 int
3263 main ()
3264 {
3265
3266   ;
3267   return 0;
3268 }
3269 _ACEOF
3270 rm -f conftest.$ac_objext
3271 if { (ac_try="$ac_compile"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277   (eval "$ac_compile") 2>conftest.er1
3278   ac_status=$?
3279   grep -v '^ *+' conftest.er1 >conftest.err
3280   rm -f conftest.er1
3281   cat conftest.err >&5
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); } &&
3284          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3285   { (case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_try") 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; } &&
3294          { ac_try='test -s conftest.$ac_objext'
3295   { (case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300   (eval "$ac_try") 2>&5
3301   ac_status=$?
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); }; }; then
3304   ac_cv_prog_cxx_g=yes
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309         CXXFLAGS=""
3310       cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h.  */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h.  */
3316
3317 int
3318 main ()
3319 {
3320
3321   ;
3322   return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3327 case "(($ac_try" in
3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329   *) ac_try_echo=$ac_try;;
3330 esac
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332   (eval "$ac_compile") 2>conftest.er1
3333   ac_status=$?
3334   grep -v '^ *+' conftest.er1 >conftest.err
3335   rm -f conftest.er1
3336   cat conftest.err >&5
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); } &&
3339          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3340   { (case "(($ac_try" in
3341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342   *) ac_try_echo=$ac_try;;
3343 esac
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345   (eval "$ac_try") 2>&5
3346   ac_status=$?
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }; } &&
3349          { ac_try='test -s conftest.$ac_objext'
3350   { (case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355   (eval "$ac_try") 2>&5
3356   ac_status=$?
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); }; }; then
3359   :
3360 else
3361   echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3365          CXXFLAGS="-g"
3366          cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372
3373 int
3374 main ()
3375 {
3376
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (ac_try="$ac_compile"
3383 case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388   (eval "$ac_compile") 2>conftest.er1
3389   ac_status=$?
3390   grep -v '^ *+' conftest.er1 >conftest.err
3391   rm -f conftest.er1
3392   cat conftest.err >&5
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); } &&
3395          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3396   { (case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401   (eval "$ac_try") 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }; } &&
3405          { ac_try='test -s conftest.$ac_objext'
3406   { (case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411   (eval "$ac_try") 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); }; }; then
3415   ac_cv_prog_cxx_g=yes
3416 else
3417   echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420
3421 fi
3422
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 fi
3425
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 fi
3428
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3431 fi
3432 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3433 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3434 if test "$ac_test_CXXFLAGS" = set; then
3435   CXXFLAGS=$ac_save_CXXFLAGS
3436 elif test $ac_cv_prog_cxx_g = yes; then
3437   if test "$GXX" = yes; then
3438     CXXFLAGS="-g -O2"
3439   else
3440     CXXFLAGS="-g"
3441   fi
3442 else
3443   if test "$GXX" = yes; then
3444     CXXFLAGS="-O2"
3445   else
3446     CXXFLAGS=
3447   fi
3448 fi
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
3455 if test -n "$ac_tool_prefix"; then
3456   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3457 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3460 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   if test -n "$CPPBIN"; then
3464   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471   for ac_exec_ext in '' $ac_executable_extensions; do
3472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3473     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478 done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 CPPBIN=$ac_cv_prog_CPPBIN
3484 if test -n "$CPPBIN"; then
3485   { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3486 echo "${ECHO_T}$CPPBIN" >&6; }
3487 else
3488   { echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6; }
3490 fi
3491
3492
3493 fi
3494 if test -z "$ac_cv_prog_CPPBIN"; then
3495   ac_ct_CPPBIN=$CPPBIN
3496   # Extract the first word of "cpp", so it can be a program name with args.
3497 set dummy cpp; ac_word=$2
3498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3500 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   if test -n "$ac_ct_CPPBIN"; then
3504   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511   for ac_exec_ext in '' $ac_executable_extensions; do
3512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3513     ac_cv_prog_ac_ct_CPPBIN="cpp"
3514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518 done
3519 IFS=$as_save_IFS
3520
3521 fi
3522 fi
3523 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3524 if test -n "$ac_ct_CPPBIN"; then
3525   { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3526 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3527 else
3528   { echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6; }
3530 fi
3531
3532   if test "x$ac_ct_CPPBIN" = x; then
3533     CPPBIN="cpp"
3534   else
3535     case $cross_compiling:$ac_tool_warned in
3536 yes:)
3537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3538 whose name does not start with the host triplet.  If you think this
3539 configuration is useful to you, please write to autoconf@gnu.org." >&5
3540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3541 whose name does not start with the host triplet.  If you think this
3542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3543 ac_tool_warned=yes ;;
3544 esac
3545     CPPBIN=$ac_ct_CPPBIN
3546   fi
3547 else
3548   CPPBIN="$ac_cv_prog_CPPBIN"
3549 fi
3550
3551
3552 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3553 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3554 if test "${wine_cv_toolsdir+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   if test -z "$with_wine_tools"; then
3558      if test "$cross_compiling" = "yes"; then
3559        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3560 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3561    { (exit 1); exit 1; }; }
3562      else
3563        wine_cv_toolsdir="\$(TOPOBJDIR)"
3564      fi
3565    elif test -d "$with_wine_tools/tools/winebuild"; then
3566      case $with_wine_tools in
3567        /*) wine_cv_toolsdir="$with_wine_tools" ;;
3568        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3569      esac
3570    else
3571      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3572 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3573    { (exit 1); exit 1; }; }
3574    fi
3575 fi
3576 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3577 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3578 TOOLSDIR=$wine_cv_toolsdir
3579
3580
3581
3582 ac_ext=c
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3588 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3589 # On Suns, sometimes $CPP names a directory.
3590 if test -n "$CPP" && test -d "$CPP"; then
3591   CPP=
3592 fi
3593 if test -z "$CPP"; then
3594   if test "${ac_cv_prog_CPP+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597       # Double quotes because CPP needs to be expanded
3598     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3599     do
3600       ac_preproc_ok=false
3601 for ac_c_preproc_warn_flag in '' yes
3602 do
3603   # Use a header file that comes with gcc, so configuring glibc
3604   # with a fresh cross-compiler works.
3605   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3606   # <limits.h> exists even on freestanding compilers.
3607   # On the NeXT, cc -E runs the code through the compiler's parser,
3608   # not just through cpp. "Syntax error" is here to catch this case.
3609   cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h.  */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h.  */
3615 #ifdef __STDC__
3616 # include <limits.h>
3617 #else
3618 # include <assert.h>
3619 #endif
3620                      Syntax error
3621 _ACEOF
3622 if { (ac_try="$ac_cpp conftest.$ac_ext"
3623 case "(($ac_try" in
3624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625   *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3629   ac_status=$?
3630   grep -v '^ *+' conftest.er1 >conftest.err
3631   rm -f conftest.er1
3632   cat conftest.err >&5
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); } >/dev/null; then
3635   if test -s conftest.err; then
3636     ac_cpp_err=$ac_c_preproc_warn_flag
3637     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3638   else
3639     ac_cpp_err=
3640   fi
3641 else
3642   ac_cpp_err=yes
3643 fi
3644 if test -z "$ac_cpp_err"; then
3645   :
3646 else
3647   echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3649
3650   # Broken: fails on valid input.
3651 continue
3652 fi
3653
3654 rm -f conftest.err conftest.$ac_ext
3655
3656   # OK, works on sane cases.  Now check whether nonexistent headers
3657   # can be detected and how.
3658   cat >conftest.$ac_ext <<_ACEOF
3659 /* confdefs.h.  */
3660 _ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h.  */
3664 #include <ac_nonexistent.h>
3665 _ACEOF
3666 if { (ac_try="$ac_cpp conftest.$ac_ext"
3667 case "(($ac_try" in
3668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669   *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3673   ac_status=$?
3674   grep -v '^ *+' conftest.er1 >conftest.err
3675   rm -f conftest.er1
3676   cat conftest.err >&5
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); } >/dev/null; then
3679   if test -s conftest.err; then
3680     ac_cpp_err=$ac_c_preproc_warn_flag
3681     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3682   else
3683     ac_cpp_err=
3684   fi
3685 else
3686   ac_cpp_err=yes
3687 fi
3688 if test -z "$ac_cpp_err"; then
3689   # Broken: success on invalid input.
3690 continue
3691 else
3692   echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3694
3695   # Passes both tests.
3696 ac_preproc_ok=:
3697 break
3698 fi
3699
3700 rm -f conftest.err conftest.$ac_ext
3701
3702 done
3703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3704 rm -f conftest.err conftest.$ac_ext
3705 if $ac_preproc_ok; then
3706   break
3707 fi
3708
3709     done
3710     ac_cv_prog_CPP=$CPP
3711
3712 fi
3713   CPP=$ac_cv_prog_CPP
3714 else
3715   ac_cv_prog_CPP=$CPP
3716 fi
3717 { echo "$as_me:$LINENO: result: $CPP" >&5
3718 echo "${ECHO_T}$CPP" >&6; }
3719 ac_preproc_ok=false
3720 for ac_c_preproc_warn_flag in '' yes
3721 do
3722   # Use a header file that comes with gcc, so configuring glibc
3723   # with a fresh cross-compiler works.
3724   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3725   # <limits.h> exists even on freestanding compilers.
3726   # On the NeXT, cc -E runs the code through the compiler's parser,
3727   # not just through cpp. "Syntax error" is here to catch this case.
3728   cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h.  */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h.  */
3734 #ifdef __STDC__
3735 # include <limits.h>
3736 #else
3737 # include <assert.h>
3738 #endif
3739                      Syntax error
3740 _ACEOF
3741 if { (ac_try="$ac_cpp conftest.$ac_ext"
3742 case "(($ac_try" in
3743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744   *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3748   ac_status=$?
3749   grep -v '^ *+' conftest.er1 >conftest.err
3750   rm -f conftest.er1
3751   cat conftest.err >&5
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); } >/dev/null; then
3754   if test -s conftest.err; then
3755     ac_cpp_err=$ac_c_preproc_warn_flag
3756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3757   else
3758     ac_cpp_err=
3759   fi
3760 else
3761   ac_cpp_err=yes
3762 fi
3763 if test -z "$ac_cpp_err"; then
3764   :
3765 else
3766   echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769   # Broken: fails on valid input.
3770 continue
3771 fi
3772
3773 rm -f conftest.err conftest.$ac_ext
3774
3775   # OK, works on sane cases.  Now check whether nonexistent headers
3776   # can be detected and how.
3777   cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h.  */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h.  */
3783 #include <ac_nonexistent.h>
3784 _ACEOF
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3792   ac_status=$?
3793   grep -v '^ *+' conftest.er1 >conftest.err
3794   rm -f conftest.er1
3795   cat conftest.err >&5
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); } >/dev/null; then
3798   if test -s conftest.err; then
3799     ac_cpp_err=$ac_c_preproc_warn_flag
3800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3801   else
3802     ac_cpp_err=
3803   fi
3804 else
3805   ac_cpp_err=yes
3806 fi
3807 if test -z "$ac_cpp_err"; then
3808   # Broken: success on invalid input.
3809 continue
3810 else
3811   echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814   # Passes both tests.
3815 ac_preproc_ok=:
3816 break
3817 fi
3818
3819 rm -f conftest.err conftest.$ac_ext
3820
3821 done
3822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823 rm -f conftest.err conftest.$ac_ext
3824 if $ac_preproc_ok; then
3825   :
3826 else
3827   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3828 See \`config.log' for more details." >&5
3829 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3830 See \`config.log' for more details." >&2;}
3831    { (exit 1); exit 1; }; }
3832 fi
3833
3834 ac_ext=c
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839
3840
3841 { echo "$as_me:$LINENO: checking for X" >&5
3842 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3843
3844
3845 # Check whether --with-x was given.
3846 if test "${with_x+set}" = set; then
3847   withval=$with_x;
3848 fi
3849
3850 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3851 if test "x$with_x" = xno; then
3852   # The user explicitly disabled X.
3853   have_x=disabled
3854 else
3855   case $x_includes,$x_libraries in #(
3856     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3857 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3858    { (exit 1); exit 1; }; };; #(
3859     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3860   echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862   # One or both of the vars are not set, and there is no cached value.
3863 ac_x_includes=no ac_x_libraries=no
3864 rm -f -r conftest.dir
3865 if mkdir conftest.dir; then
3866   cd conftest.dir
3867   cat >Imakefile <<'_ACEOF'
3868 incroot:
3869         @echo incroot='${INCROOT}'
3870 usrlibdir:
3871         @echo usrlibdir='${USRLIBDIR}'
3872 libdir:
3873         @echo libdir='${LIBDIR}'
3874 _ACEOF
3875   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3876     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3877     for ac_var in incroot usrlibdir libdir; do
3878       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3879     done
3880     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3881     for ac_extension in a so sl; do
3882       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3883          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3884         ac_im_usrlibdir=$ac_im_libdir; break
3885       fi
3886     done
3887     # Screen out bogus values from the imake configuration.  They are
3888     # bogus both because they are the default anyway, and because
3889     # using them would break gcc on systems where it needs fixed includes.
3890     case $ac_im_incroot in
3891         /usr/include) ac_x_includes= ;;
3892         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3893     esac
3894     case $ac_im_usrlibdir in
3895         /usr/lib | /lib) ;;
3896         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3897     esac
3898   fi
3899   cd ..
3900   rm -f -r conftest.dir
3901 fi
3902
3903 # Standard set of common directories for X headers.
3904 # Check X11 before X11Rn because it is often a symlink to the current release.
3905 ac_x_header_dirs='
3906 /usr/X11/include
3907 /usr/X11R6/include
3908 /usr/X11R5/include
3909 /usr/X11R4/include
3910
3911 /usr/include/X11
3912 /usr/include/X11R6
3913 /usr/include/X11R5
3914 /usr/include/X11R4
3915
3916 /usr/local/X11/include
3917 /usr/local/X11R6/include
3918 /usr/local/X11R5/include
3919 /usr/local/X11R4/include
3920
3921 /usr/local/include/X11
3922 /usr/local/include/X11R6
3923 /usr/local/include/X11R5
3924 /usr/local/include/X11R4
3925
3926 /usr/X386/include
3927 /usr/x386/include
3928 /usr/XFree86/include/X11
3929
3930 /usr/include
3931 /usr/local/include
3932 /usr/unsupported/include
3933 /usr/athena/include
3934 /usr/local/x11r5/include
3935 /usr/lpp/Xamples/include
3936
3937 /usr/openwin/include
3938 /usr/openwin/share/include'
3939
3940 if test "$ac_x_includes" = no; then
3941   # Guess where to find include files, by looking for Xlib.h.
3942   # First, try using that file with no special directory specified.
3943   cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <X11/Xlib.h>
3950 _ACEOF
3951 if { (ac_try="$ac_cpp conftest.$ac_ext"
3952 case "(($ac_try" in
3953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954   *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3958   ac_status=$?
3959   grep -v '^ *+' conftest.er1 >conftest.err
3960   rm -f conftest.er1
3961   cat conftest.err >&5
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } >/dev/null; then
3964   if test -s conftest.err; then
3965     ac_cpp_err=$ac_c_preproc_warn_flag
3966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3967   else
3968     ac_cpp_err=
3969   fi
3970 else
3971   ac_cpp_err=yes
3972 fi
3973 if test -z "$ac_cpp_err"; then
3974   # We can compile using X headers with no special include directory.
3975 ac_x_includes=
3976 else
3977   echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3979
3980   for ac_dir in $ac_x_header_dirs; do
3981   if test -r "$ac_dir/X11/Xlib.h"; then
3982     ac_x_includes=$ac_dir
3983     break
3984   fi
3985 done
3986 fi
3987
3988 rm -f conftest.err conftest.$ac_ext
3989 fi # $ac_x_includes = no
3990
3991 if test "$ac_x_libraries" = no; then
3992   # Check for the libraries.
3993   # See if we find them without any special options.
3994   # Don't add to $LIBS permanently.
3995   ac_save_LIBS=$LIBS
3996   LIBS="-lX11 $LIBS"
3997   cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h.  */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h.  */
4003 #include <X11/Xlib.h>
4004 int
4005 main ()
4006 {
4007 XrmInitialize ()
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 rm -f conftest.$ac_objext conftest$ac_exeext
4013 if { (ac_try="$ac_link"
4014 case "(($ac_try" in
4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016   *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019   (eval "$ac_link") 2>conftest.er1
4020   ac_status=$?
4021   grep -v '^ *+' conftest.er1 >conftest.err
4022   rm -f conftest.er1
4023   cat conftest.err >&5
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } &&
4026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027   { (case "(($ac_try" in
4028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029   *) ac_try_echo=$ac_try;;
4030 esac
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032   (eval "$ac_try") 2>&5
4033   ac_status=$?
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); }; } &&
4036          { ac_try='test -s conftest$ac_exeext'
4037   { (case "(($ac_try" in
4038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039   *) ac_try_echo=$ac_try;;
4040 esac
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042   (eval "$ac_try") 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; }; then
4046   LIBS=$ac_save_LIBS
4047 # We can link X programs with no special library path.
4048 ac_x_libraries=
4049 else
4050   echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053         LIBS=$ac_save_LIBS
4054 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4055 do
4056   # Don't even attempt the hair of trying to link an X program!
4057   for ac_extension in a so sl; do
4058     if test -r "$ac_dir/libX11.$ac_extension"; then
4059       ac_x_libraries=$ac_dir
4060       break 2
4061     fi
4062   done
4063 done
4064 fi
4065
4066 rm -f core conftest.err conftest.$ac_objext \
4067       conftest$ac_exeext conftest.$ac_ext
4068 fi # $ac_x_libraries = no
4069
4070 case $ac_x_includes,$ac_x_libraries in #(
4071   no,* | *,no | *\'*)
4072     # Didn't find X, or a directory has "'" in its name.
4073     ac_cv_have_x="have_x=no";; #(
4074   *)
4075     # Record where we found X for the cache.
4076     ac_cv_have_x="have_x=yes\
4077         ac_x_includes='$ac_x_includes'\
4078         ac_x_libraries='$ac_x_libraries'"
4079 esac
4080 fi
4081 ;; #(
4082     *) have_x=yes;;
4083   esac
4084   eval "$ac_cv_have_x"
4085 fi # $with_x != no
4086
4087 if test "$have_x" != yes; then
4088   { echo "$as_me:$LINENO: result: $have_x" >&5
4089 echo "${ECHO_T}$have_x" >&6; }
4090   no_x=yes
4091 else
4092   # If each of the values was on the command line, it overrides each guess.
4093   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4094   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4095   # Update the cache value to reflect the command line values.
4096   ac_cv_have_x="have_x=yes\
4097         ac_x_includes='$x_includes'\
4098         ac_x_libraries='$x_libraries'"
4099   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4100 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4101 fi
4102
4103 if test "$no_x" = yes; then
4104   # Not all programs may use this symbol, but it does not hurt to define it.
4105
4106 cat >>confdefs.h <<\_ACEOF
4107 #define X_DISPLAY_MISSING 1
4108 _ACEOF
4109
4110   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4111 else
4112   if test -n "$x_includes"; then
4113     X_CFLAGS="$X_CFLAGS -I$x_includes"
4114   fi
4115
4116   # It would also be nice to do this for all -L options, not just this one.
4117   if test -n "$x_libraries"; then
4118     X_LIBS="$X_LIBS -L$x_libraries"
4119     # For Solaris; some versions of Sun CC require a space after -R and
4120     # others require no space.  Words are not sufficient . . . .
4121     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4122 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4123     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4124     ac_xsave_c_werror_flag=$ac_c_werror_flag
4125     ac_c_werror_flag=yes
4126     cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h.  */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h.  */
4132
4133 int
4134 main ()
4135 {
4136
4137   ;
4138   return 0;
4139 }
4140 _ACEOF
4141 rm -f conftest.$ac_objext conftest$ac_exeext
4142 if { (ac_try="$ac_link"
4143 case "(($ac_try" in
4144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145   *) ac_try_echo=$ac_try;;
4146 esac
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148   (eval "$ac_link") 2>conftest.er1
4149   ac_status=$?
4150   grep -v '^ *+' conftest.er1 >conftest.err
4151   rm -f conftest.er1
4152   cat conftest.err >&5
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); } &&
4155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156   { (case "(($ac_try" in
4157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158   *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161   (eval "$ac_try") 2>&5
4162   ac_status=$?
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); }; } &&
4165          { ac_try='test -s conftest$ac_exeext'
4166   { (case "(($ac_try" in
4167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168   *) ac_try_echo=$ac_try;;
4169 esac
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171   (eval "$ac_try") 2>&5
4172   ac_status=$?
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); }; }; then
4175   { echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6; }
4177        X_LIBS="$X_LIBS -R$x_libraries"
4178 else
4179   echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182         LIBS="$ac_xsave_LIBS -R $x_libraries"
4183        cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h.  */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h.  */
4189
4190 int
4191 main ()
4192 {
4193
4194   ;
4195   return 0;
4196 }
4197 _ACEOF
4198 rm -f conftest.$ac_objext conftest$ac_exeext
4199 if { (ac_try="$ac_link"
4200 case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205   (eval "$ac_link") 2>conftest.er1
4206   ac_status=$?
4207   grep -v '^ *+' conftest.er1 >conftest.err
4208   rm -f conftest.er1
4209   cat conftest.err >&5
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } &&
4212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4213   { (case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218   (eval "$ac_try") 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); }; } &&
4222          { ac_try='test -s conftest$ac_exeext'
4223   { (case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228   (eval "$ac_try") 2>&5
4229   ac_status=$?
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); }; }; then
4232   { echo "$as_me:$LINENO: result: yes" >&5
4233 echo "${ECHO_T}yes" >&6; }
4234           X_LIBS="$X_LIBS -R $x_libraries"
4235 else
4236   echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239         { echo "$as_me:$LINENO: result: neither works" >&5
4240 echo "${ECHO_T}neither works" >&6; }
4241 fi
4242
4243 rm -f core conftest.err conftest.$ac_objext \
4244       conftest$ac_exeext conftest.$ac_ext
4245 fi
4246
4247 rm -f core conftest.err conftest.$ac_objext \
4248       conftest$ac_exeext conftest.$ac_ext
4249     ac_c_werror_flag=$ac_xsave_c_werror_flag
4250     LIBS=$ac_xsave_LIBS
4251   fi
4252
4253   # Check for system-dependent libraries X programs must link with.
4254   # Do this before checking for the system-independent R6 libraries
4255   # (-lICE), since we may need -lsocket or whatever for X linking.
4256
4257   if test "$ISC" = yes; then
4258     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4259   else
4260     # Martyn Johnson says this is needed for Ultrix, if the X
4261     # libraries were built with DECnet support.  And Karl Berry says
4262     # the Alpha needs dnet_stub (dnet does not exist).
4263     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4264     cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270
4271 /* Override any GCC internal prototype to avoid an error.
4272    Use char because int might match the return type of a GCC
4273    builtin and then its argument prototype would still apply.  */
4274 #ifdef __cplusplus
4275 extern "C"
4276 #endif
4277 char XOpenDisplay ();
4278 int
4279 main ()
4280 {
4281 return XOpenDisplay ();
4282   ;
4283   return 0;
4284 }
4285 _ACEOF
4286 rm -f conftest.$ac_objext conftest$ac_exeext
4287 if { (ac_try="$ac_link"
4288 case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293   (eval "$ac_link") 2>conftest.er1
4294   ac_status=$?
4295   grep -v '^ *+' conftest.er1 >conftest.err
4296   rm -f conftest.er1
4297   cat conftest.err >&5
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); } &&
4300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4301   { (case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306   (eval "$ac_try") 2>&5
4307   ac_status=$?
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); }; } &&
4310          { ac_try='test -s conftest$ac_exeext'
4311   { (case "(($ac_try" in
4312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313   *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316   (eval "$ac_try") 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); }; }; then
4320   :
4321 else
4322   echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4326 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4327 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   ac_check_lib_save_LIBS=$LIBS
4331 LIBS="-ldnet  $LIBS"
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338
4339 /* Override any GCC internal prototype to avoid an error.
4340    Use char because int might match the return type of a GCC
4341    builtin and then its argument prototype would still apply.  */
4342 #ifdef __cplusplus
4343 extern "C"
4344 #endif
4345 char dnet_ntoa ();
4346 int
4347 main ()
4348 {
4349 return dnet_ntoa ();
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 rm -f conftest.$ac_objext conftest$ac_exeext
4355 if { (ac_try="$ac_link"
4356 case "(($ac_try" in
4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358   *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361   (eval "$ac_link") 2>conftest.er1
4362   ac_status=$?
4363   grep -v '^ *+' conftest.er1 >conftest.err
4364   rm -f conftest.er1
4365   cat conftest.err >&5
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } &&
4368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4369   { (case "(($ac_try" in
4370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371   *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374   (eval "$ac_try") 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; } &&
4378          { ac_try='test -s conftest$ac_exeext'
4379   { (case "(($ac_try" in
4380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381   *) ac_try_echo=$ac_try;;
4382 esac
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384   (eval "$ac_try") 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; }; then
4388   ac_cv_lib_dnet_dnet_ntoa=yes
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393         ac_cv_lib_dnet_dnet_ntoa=no
4394 fi
4395
4396 rm -f core conftest.err conftest.$ac_objext \
4397       conftest$ac_exeext conftest.$ac_ext
4398 LIBS=$ac_check_lib_save_LIBS
4399 fi
4400 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4401 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4402 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4403   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4404 fi
4405
4406     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4407       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4408 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4409 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   ac_check_lib_save_LIBS=$LIBS
4413 LIBS="-ldnet_stub  $LIBS"
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h.  */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h.  */
4420
4421 /* Override any GCC internal prototype to avoid an error.
4422    Use char because int might match the return type of a GCC
4423    builtin and then its argument prototype would still apply.  */
4424 #ifdef __cplusplus
4425 extern "C"
4426 #endif
4427 char dnet_ntoa ();
4428 int
4429 main ()
4430 {
4431 return dnet_ntoa ();
4432   ;
4433   return 0;
4434 }
4435 _ACEOF
4436 rm -f conftest.$ac_objext conftest$ac_exeext
4437 if { (ac_try="$ac_link"
4438 case "(($ac_try" in
4439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440   *) ac_try_echo=$ac_try;;
4441 esac
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443   (eval "$ac_link") 2>conftest.er1
4444   ac_status=$?
4445   grep -v '^ *+' conftest.er1 >conftest.err
4446   rm -f conftest.er1
4447   cat conftest.err >&5
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); } &&
4450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4451   { (case "(($ac_try" in
4452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453   *) ac_try_echo=$ac_try;;
4454 esac
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456   (eval "$ac_try") 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; } &&
4460          { ac_try='test -s conftest$ac_exeext'
4461   { (case "(($ac_try" in
4462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463   *) ac_try_echo=$ac_try;;
4464 esac
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466   (eval "$ac_try") 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }; }; then
4470   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4471 else
4472   echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475         ac_cv_lib_dnet_stub_dnet_ntoa=no
4476 fi
4477
4478 rm -f core conftest.err conftest.$ac_objext \
4479       conftest$ac_exeext conftest.$ac_ext
4480 LIBS=$ac_check_lib_save_LIBS
4481 fi
4482 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4483 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4484 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4485   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4486 fi
4487
4488     fi
4489 fi
4490
4491 rm -f core conftest.err conftest.$ac_objext \
4492       conftest$ac_exeext conftest.$ac_ext
4493     LIBS="$ac_xsave_LIBS"
4494
4495     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4496     # to get the SysV transport functions.
4497     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4498     # needs -lnsl.
4499     # The nsl library prevents programs from opening the X display
4500     # on Irix 5.2, according to T.E. Dickey.
4501     # The functions gethostbyname, getservbyname, and inet_addr are
4502     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4503     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4504 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4505 if test "${ac_cv_func_gethostbyname+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h.  */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h.  */
4514 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4516 #define gethostbyname innocuous_gethostbyname
4517
4518 /* System header to define __stub macros and hopefully few prototypes,
4519     which can conflict with char gethostbyname (); below.
4520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521     <limits.h> exists even on freestanding compilers.  */
4522
4523 #ifdef __STDC__
4524 # include <limits.h>
4525 #else
4526 # include <assert.h>
4527 #endif
4528
4529 #undef gethostbyname
4530
4531 /* Override any GCC internal prototype to avoid an error.
4532    Use char because int might match the return type of a GCC
4533    builtin and then its argument prototype would still apply.  */
4534 #ifdef __cplusplus
4535 extern "C"
4536 #endif
4537 char gethostbyname ();
4538 /* The GNU C library defines this for functions which it implements
4539     to always fail with ENOSYS.  Some functions are actually named
4540     something starting with __ and the normal name is an alias.  */
4541 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4542 choke me
4543 #endif
4544
4545 int
4546 main ()
4547 {
4548 return gethostbyname ();
4549   ;
4550   return 0;
4551 }
4552 _ACEOF
4553 rm -f conftest.$ac_objext conftest$ac_exeext
4554 if { (ac_try="$ac_link"
4555 case "(($ac_try" in
4556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557   *) ac_try_echo=$ac_try;;
4558 esac
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560   (eval "$ac_link") 2>conftest.er1
4561   ac_status=$?
4562   grep -v '^ *+' conftest.er1 >conftest.err
4563   rm -f conftest.er1
4564   cat conftest.err >&5
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); } &&
4567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4568   { (case "(($ac_try" in
4569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570   *) ac_try_echo=$ac_try;;
4571 esac
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573   (eval "$ac_try") 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); }; } &&
4577          { ac_try='test -s conftest$ac_exeext'
4578   { (case "(($ac_try" in
4579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580   *) ac_try_echo=$ac_try;;
4581 esac
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583   (eval "$ac_try") 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }; }; then
4587   ac_cv_func_gethostbyname=yes
4588 else
4589   echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4591
4592         ac_cv_func_gethostbyname=no
4593 fi
4594
4595 rm -f core conftest.err conftest.$ac_objext \
4596       conftest$ac_exeext conftest.$ac_ext
4597 fi
4598 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4599 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4600
4601     if test $ac_cv_func_gethostbyname = no; then
4602       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4603 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4604 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   ac_check_lib_save_LIBS=$LIBS
4608 LIBS="-lnsl  $LIBS"
4609 cat >conftest.$ac_ext <<_ACEOF
4610 /* confdefs.h.  */
4611 _ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h.  */
4615
4616 /* Override any GCC internal prototype to avoid an error.
4617    Use char because int might match the return type of a GCC
4618    builtin and then its argument prototype would still apply.  */
4619 #ifdef __cplusplus
4620 extern "C"
4621 #endif
4622 char gethostbyname ();
4623 int
4624 main ()
4625 {
4626 return gethostbyname ();
4627   ;
4628   return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest.$ac_objext conftest$ac_exeext
4632 if { (ac_try="$ac_link"
4633 case "(($ac_try" in
4634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635   *) ac_try_echo=$ac_try;;
4636 esac
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638   (eval "$ac_link") 2>conftest.er1
4639   ac_status=$?
4640   grep -v '^ *+' conftest.er1 >conftest.err
4641   rm -f conftest.er1
4642   cat conftest.err >&5
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } &&
4645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4646   { (case "(($ac_try" in
4647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648   *) ac_try_echo=$ac_try;;
4649 esac
4650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651   (eval "$ac_try") 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; } &&
4655          { ac_try='test -s conftest$ac_exeext'
4656   { (case "(($ac_try" in
4657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658   *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661   (eval "$ac_try") 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }; }; then
4665   ac_cv_lib_nsl_gethostbyname=yes
4666 else
4667   echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670         ac_cv_lib_nsl_gethostbyname=no
4671 fi
4672
4673 rm -f core conftest.err conftest.$ac_objext \
4674       conftest$ac_exeext conftest.$ac_ext
4675 LIBS=$ac_check_lib_save_LIBS
4676 fi
4677 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4678 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4679 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4680   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4681 fi
4682
4683       if test $ac_cv_lib_nsl_gethostbyname = no; then
4684         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4685 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4686 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   ac_check_lib_save_LIBS=$LIBS
4690 LIBS="-lbsd  $LIBS"
4691 cat >conftest.$ac_ext <<_ACEOF
4692 /* confdefs.h.  */
4693 _ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h.  */
4697
4698 /* Override any GCC internal prototype to avoid an error.
4699    Use char because int might match the return type of a GCC
4700    builtin and then its argument prototype would still apply.  */
4701 #ifdef __cplusplus
4702 extern "C"
4703 #endif
4704 char gethostbyname ();
4705 int
4706 main ()
4707 {
4708 return gethostbyname ();
4709   ;
4710   return 0;
4711 }
4712 _ACEOF
4713 rm -f conftest.$ac_objext conftest$ac_exeext
4714 if { (ac_try="$ac_link"
4715 case "(($ac_try" in
4716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717   *) ac_try_echo=$ac_try;;
4718 esac
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720   (eval "$ac_link") 2>conftest.er1
4721   ac_status=$?
4722   grep -v '^ *+' conftest.er1 >conftest.err
4723   rm -f conftest.er1
4724   cat conftest.err >&5
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); } &&
4727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4728   { (case "(($ac_try" in
4729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730   *) ac_try_echo=$ac_try;;
4731 esac
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733   (eval "$ac_try") 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; } &&
4737          { ac_try='test -s conftest$ac_exeext'
4738   { (case "(($ac_try" in
4739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740   *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743   (eval "$ac_try") 2>&5
4744   ac_status=$?
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); }; }; then
4747   ac_cv_lib_bsd_gethostbyname=yes
4748 else
4749   echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4751
4752         ac_cv_lib_bsd_gethostbyname=no
4753 fi
4754
4755 rm -f core conftest.err conftest.$ac_objext \
4756       conftest$ac_exeext conftest.$ac_ext
4757 LIBS=$ac_check_lib_save_LIBS
4758 fi
4759 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4760 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4761 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4762   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4763 fi
4764
4765       fi
4766     fi
4767
4768     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4769     # socket/setsockopt and other routines are undefined under SCO ODT
4770     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4771     # on later versions), says Simon Leinen: it contains gethostby*
4772     # variants that don't use the name server (or something).  -lsocket
4773     # must be given before -lnsl if both are needed.  We assume that
4774     # if connect needs -lnsl, so does gethostbyname.
4775     { echo "$as_me:$LINENO: checking for connect" >&5
4776 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4777 if test "${ac_cv_func_connect+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h.  */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h.  */
4786 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4788 #define connect innocuous_connect
4789
4790 /* System header to define __stub macros and hopefully few prototypes,
4791     which can conflict with char connect (); below.
4792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4793     <limits.h> exists even on freestanding compilers.  */
4794
4795 #ifdef __STDC__
4796 # include <limits.h>
4797 #else
4798 # include <assert.h>
4799 #endif
4800
4801 #undef connect
4802
4803 /* Override any GCC internal prototype to avoid an error.
4804    Use char because int might match the return type of a GCC
4805    builtin and then its argument prototype would still apply.  */
4806 #ifdef __cplusplus
4807 extern "C"
4808 #endif
4809 char connect ();
4810 /* The GNU C library defines this for functions which it implements
4811     to always fail with ENOSYS.  Some functions are actually named
4812     something starting with __ and the normal name is an alias.  */
4813 #if defined __stub_connect || defined __stub___connect
4814 choke me
4815 #endif
4816
4817 int
4818 main ()
4819 {
4820 return connect ();
4821   ;
4822   return 0;
4823 }
4824 _ACEOF
4825 rm -f conftest.$ac_objext conftest$ac_exeext
4826 if { (ac_try="$ac_link"
4827 case "(($ac_try" in
4828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829   *) ac_try_echo=$ac_try;;
4830 esac
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832   (eval "$ac_link") 2>conftest.er1
4833   ac_status=$?
4834   grep -v '^ *+' conftest.er1 >conftest.err
4835   rm -f conftest.er1
4836   cat conftest.err >&5
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); } &&
4839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4840   { (case "(($ac_try" in
4841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842   *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845   (eval "$ac_try") 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; } &&
4849          { ac_try='test -s conftest$ac_exeext'
4850   { (case "(($ac_try" in
4851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852   *) ac_try_echo=$ac_try;;
4853 esac
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855   (eval "$ac_try") 2>&5
4856   ac_status=$?
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); }; }; then
4859   ac_cv_func_connect=yes
4860 else
4861   echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4863
4864         ac_cv_func_connect=no
4865 fi
4866
4867 rm -f core conftest.err conftest.$ac_objext \
4868       conftest$ac_exeext conftest.$ac_ext
4869 fi
4870 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4871 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4872
4873     if test $ac_cv_func_connect = no; then
4874       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4875 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4876 if test "${ac_cv_lib_socket_connect+set}" = set; then
4877   echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879   ac_check_lib_save_LIBS=$LIBS
4880 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h.  */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h.  */
4887
4888 /* Override any GCC internal prototype to avoid an error.
4889    Use char because int might match the return type of a GCC
4890    builtin and then its argument prototype would still apply.  */
4891 #ifdef __cplusplus
4892 extern "C"
4893 #endif
4894 char connect ();
4895 int
4896 main ()
4897 {
4898 return connect ();
4899   ;
4900   return 0;
4901 }
4902 _ACEOF
4903 rm -f conftest.$ac_objext conftest$ac_exeext
4904 if { (ac_try="$ac_link"
4905 case "(($ac_try" in
4906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907   *) ac_try_echo=$ac_try;;
4908 esac
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910   (eval "$ac_link") 2>conftest.er1
4911   ac_status=$?
4912   grep -v '^ *+' conftest.er1 >conftest.err
4913   rm -f conftest.er1
4914   cat conftest.err >&5
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4918   { (case "(($ac_try" in
4919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920   *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923   (eval "$ac_try") 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; } &&
4927          { ac_try='test -s conftest$ac_exeext'
4928   { (case "(($ac_try" in
4929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930   *) ac_try_echo=$ac_try;;
4931 esac
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933   (eval "$ac_try") 2>&5
4934   ac_status=$?
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); }; }; then
4937   ac_cv_lib_socket_connect=yes
4938 else
4939   echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942         ac_cv_lib_socket_connect=no
4943 fi
4944
4945 rm -f core conftest.err conftest.$ac_objext \
4946       conftest$ac_exeext conftest.$ac_ext
4947 LIBS=$ac_check_lib_save_LIBS
4948 fi
4949 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4950 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4951 if test $ac_cv_lib_socket_connect = yes; then
4952   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4953 fi
4954
4955     fi
4956
4957     # Guillermo Gomez says -lposix is necessary on A/UX.
4958     { echo "$as_me:$LINENO: checking for remove" >&5
4959 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4960 if test "${ac_cv_func_remove+set}" = set; then
4961   echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963   cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h.  */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h.  */
4969 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4971 #define remove innocuous_remove
4972
4973 /* System header to define __stub macros and hopefully few prototypes,
4974     which can conflict with char remove (); below.
4975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976     <limits.h> exists even on freestanding compilers.  */
4977
4978 #ifdef __STDC__
4979 # include <limits.h>
4980 #else
4981 # include <assert.h>
4982 #endif
4983
4984 #undef remove
4985
4986 /* Override any GCC internal prototype to avoid an error.
4987    Use char because int might match the return type of a GCC
4988    builtin and then its argument prototype would still apply.  */
4989 #ifdef __cplusplus
4990 extern "C"
4991 #endif
4992 char remove ();
4993 /* The GNU C library defines this for functions which it implements
4994     to always fail with ENOSYS.  Some functions are actually named
4995     something starting with __ and the normal name is an alias.  */
4996 #if defined __stub_remove || defined __stub___remove
4997 choke me
4998 #endif
4999
5000 int
5001 main ()
5002 {
5003 return remove ();
5004   ;
5005   return 0;
5006 }
5007 _ACEOF
5008 rm -f conftest.$ac_objext conftest$ac_exeext
5009 if { (ac_try="$ac_link"
5010 case "(($ac_try" in
5011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012   *) ac_try_echo=$ac_try;;
5013 esac
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015   (eval "$ac_link") 2>conftest.er1
5016   ac_status=$?
5017   grep -v '^ *+' conftest.er1 >conftest.err
5018   rm -f conftest.er1
5019   cat conftest.err >&5
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); } &&
5022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5023   { (case "(($ac_try" in
5024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025   *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028   (eval "$ac_try") 2>&5
5029   ac_status=$?
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); }; } &&
5032          { ac_try='test -s conftest$ac_exeext'
5033   { (case "(($ac_try" in
5034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035   *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038   (eval "$ac_try") 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }; }; then
5042   ac_cv_func_remove=yes
5043 else
5044   echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5046
5047         ac_cv_func_remove=no
5048 fi
5049
5050 rm -f core conftest.err conftest.$ac_objext \
5051       conftest$ac_exeext conftest.$ac_ext
5052 fi
5053 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5054 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5055
5056     if test $ac_cv_func_remove = no; then
5057       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5058 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5059 if test "${ac_cv_lib_posix_remove+set}" = set; then
5060   echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062   ac_check_lib_save_LIBS=$LIBS
5063 LIBS="-lposix  $LIBS"
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h.  */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h.  */
5070
5071 /* Override any GCC internal prototype to avoid an error.
5072    Use char because int might match the return type of a GCC
5073    builtin and then its argument prototype would still apply.  */
5074 #ifdef __cplusplus
5075 extern "C"
5076 #endif
5077 char remove ();
5078 int
5079 main ()
5080 {
5081 return remove ();
5082   ;
5083   return 0;
5084 }
5085 _ACEOF
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (ac_try="$ac_link"
5088 case "(($ac_try" in
5089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090   *) ac_try_echo=$ac_try;;
5091 esac
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093   (eval "$ac_link") 2>conftest.er1
5094   ac_status=$?
5095   grep -v '^ *+' conftest.er1 >conftest.err
5096   rm -f conftest.er1
5097   cat conftest.err >&5
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); } &&
5100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5101   { (case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106   (eval "$ac_try") 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; } &&
5110          { ac_try='test -s conftest$ac_exeext'
5111   { (case "(($ac_try" in
5112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113   *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116   (eval "$ac_try") 2>&5
5117   ac_status=$?
5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); }; }; then
5120   ac_cv_lib_posix_remove=yes
5121 else
5122   echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125         ac_cv_lib_posix_remove=no
5126 fi
5127
5128 rm -f core conftest.err conftest.$ac_objext \
5129       conftest$ac_exeext conftest.$ac_ext
5130 LIBS=$ac_check_lib_save_LIBS
5131 fi
5132 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5133 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5134 if test $ac_cv_lib_posix_remove = yes; then
5135   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5136 fi
5137
5138     fi
5139
5140     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5141     { echo "$as_me:$LINENO: checking for shmat" >&5
5142 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5143 if test "${ac_cv_func_shmat+set}" = set; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h.  */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h.  */
5152 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5154 #define shmat innocuous_shmat
5155
5156 /* System header to define __stub macros and hopefully few prototypes,
5157     which can conflict with char shmat (); below.
5158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5159     <limits.h> exists even on freestanding compilers.  */
5160
5161 #ifdef __STDC__
5162 # include <limits.h>
5163 #else
5164 # include <assert.h>
5165 #endif
5166
5167 #undef shmat
5168
5169 /* Override any GCC internal prototype to avoid an error.
5170    Use char because int might match the return type of a GCC
5171    builtin and then its argument prototype would still apply.  */
5172 #ifdef __cplusplus
5173 extern "C"
5174 #endif
5175 char shmat ();
5176 /* The GNU C library defines this for functions which it implements
5177     to always fail with ENOSYS.  Some functions are actually named
5178     something starting with __ and the normal name is an alias.  */
5179 #if defined __stub_shmat || defined __stub___shmat
5180 choke me
5181 #endif
5182
5183 int
5184 main ()
5185 {
5186 return shmat ();
5187   ;
5188   return 0;
5189 }
5190 _ACEOF
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (ac_try="$ac_link"
5193 case "(($ac_try" in
5194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195   *) ac_try_echo=$ac_try;;
5196 esac
5197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5198   (eval "$ac_link") 2>conftest.er1
5199   ac_status=$?
5200   grep -v '^ *+' conftest.er1 >conftest.err
5201   rm -f conftest.er1
5202   cat conftest.err >&5
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); } &&
5205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5206   { (case "(($ac_try" in
5207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208   *) ac_try_echo=$ac_try;;
5209 esac
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211   (eval "$ac_try") 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); }; } &&
5215          { ac_try='test -s conftest$ac_exeext'
5216   { (case "(($ac_try" in
5217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218   *) ac_try_echo=$ac_try;;
5219 esac
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221   (eval "$ac_try") 2>&5
5222   ac_status=$?
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); }; }; then
5225   ac_cv_func_shmat=yes
5226 else
5227   echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5229
5230         ac_cv_func_shmat=no
5231 fi
5232
5233 rm -f core conftest.err conftest.$ac_objext \
5234       conftest$ac_exeext conftest.$ac_ext
5235 fi
5236 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5237 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5238
5239     if test $ac_cv_func_shmat = no; then
5240       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5241 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5242 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245   ac_check_lib_save_LIBS=$LIBS
5246 LIBS="-lipc  $LIBS"
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h.  */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h.  */
5253
5254 /* Override any GCC internal prototype to avoid an error.
5255    Use char because int might match the return type of a GCC
5256    builtin and then its argument prototype would still apply.  */
5257 #ifdef __cplusplus
5258 extern "C"
5259 #endif
5260 char shmat ();
5261 int
5262 main ()
5263 {
5264 return shmat ();
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (ac_try="$ac_link"
5271 case "(($ac_try" in
5272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273   *) ac_try_echo=$ac_try;;
5274 esac
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276   (eval "$ac_link") 2>conftest.er1
5277   ac_status=$?
5278   grep -v '^ *+' conftest.er1 >conftest.err
5279   rm -f conftest.er1
5280   cat conftest.err >&5
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); } &&
5283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5284   { (case "(($ac_try" in
5285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286   *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289   (eval "$ac_try") 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); }; } &&
5293          { ac_try='test -s conftest$ac_exeext'
5294   { (case "(($ac_try" in
5295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296   *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299   (eval "$ac_try") 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }; }; then
5303   ac_cv_lib_ipc_shmat=yes
5304 else
5305   echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308         ac_cv_lib_ipc_shmat=no
5309 fi
5310
5311 rm -f core conftest.err conftest.$ac_objext \
5312       conftest$ac_exeext conftest.$ac_ext
5313 LIBS=$ac_check_lib_save_LIBS
5314 fi
5315 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5316 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5317 if test $ac_cv_lib_ipc_shmat = yes; then
5318   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5319 fi
5320
5321     fi
5322   fi
5323
5324   # Check for libraries that X11R6 Xt/Xaw programs need.
5325   ac_save_LDFLAGS=$LDFLAGS
5326   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5327   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5328   # check for ICE first), but we must link in the order -lSM -lICE or
5329   # we get undefined symbols.  So assume we have SM if we have ICE.
5330   # These have to be linked with before -lX11, unlike the other
5331   # libraries we check for below, so use a different variable.
5332   # John Interrante, Karl Berry
5333   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5334 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5335 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338   ac_check_lib_save_LIBS=$LIBS
5339 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h.  */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h.  */
5346
5347 /* Override any GCC internal prototype to avoid an error.
5348    Use char because int might match the return type of a GCC
5349    builtin and then its argument prototype would still apply.  */
5350 #ifdef __cplusplus
5351 extern "C"
5352 #endif
5353 char IceConnectionNumber ();
5354 int
5355 main ()
5356 {
5357 return IceConnectionNumber ();
5358   ;
5359   return 0;
5360 }
5361 _ACEOF
5362 rm -f conftest.$ac_objext conftest$ac_exeext
5363 if { (ac_try="$ac_link"
5364 case "(($ac_try" in
5365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366   *) ac_try_echo=$ac_try;;
5367 esac
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369   (eval "$ac_link") 2>conftest.er1
5370   ac_status=$?
5371   grep -v '^ *+' conftest.er1 >conftest.err
5372   rm -f conftest.er1
5373   cat conftest.err >&5
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); } &&
5376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5377   { (case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382   (eval "$ac_try") 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); }; } &&
5386          { ac_try='test -s conftest$ac_exeext'
5387   { (case "(($ac_try" in
5388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389   *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392   (eval "$ac_try") 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); }; }; then
5396   ac_cv_lib_ICE_IceConnectionNumber=yes
5397 else
5398   echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5400
5401         ac_cv_lib_ICE_IceConnectionNumber=no
5402 fi
5403
5404 rm -f core conftest.err conftest.$ac_objext \
5405       conftest$ac_exeext conftest.$ac_ext
5406 LIBS=$ac_check_lib_save_LIBS
5407 fi
5408 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5409 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5410 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5411   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5412 fi
5413
5414   LDFLAGS=$ac_save_LDFLAGS
5415
5416 fi
5417
5418 for ac_prog in flex lex
5419 do
5420   # Extract the first word of "$ac_prog", so it can be a program name with args.
5421 set dummy $ac_prog; ac_word=$2
5422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5424 if test "${ac_cv_prog_LEX+set}" = set; then
5425   echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427   if test -n "$LEX"; then
5428   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433   IFS=$as_save_IFS
5434   test -z "$as_dir" && as_dir=.
5435   for ac_exec_ext in '' $ac_executable_extensions; do
5436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5437     ac_cv_prog_LEX="$ac_prog"
5438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439     break 2
5440   fi
5441 done
5442 done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 LEX=$ac_cv_prog_LEX
5448 if test -n "$LEX"; then
5449   { echo "$as_me:$LINENO: result: $LEX" >&5
5450 echo "${ECHO_T}$LEX" >&6; }
5451 else
5452   { echo "$as_me:$LINENO: result: no" >&5
5453 echo "${ECHO_T}no" >&6; }
5454 fi
5455
5456
5457   test -n "$LEX" && break
5458 done
5459 test -n "$LEX" || LEX=":"
5460
5461 if test -z "$LEXLIB"
5462 then
5463   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5464 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
5465 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468   ac_check_lib_save_LIBS=$LIBS
5469 LIBS="-lfl  $LIBS"
5470 cat >conftest.$ac_ext <<_ACEOF
5471 /* confdefs.h.  */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h.  */
5476
5477 /* Override any GCC internal prototype to avoid an error.
5478    Use char because int might match the return type of a GCC
5479    builtin and then its argument prototype would still apply.  */
5480 #ifdef __cplusplus
5481 extern "C"
5482 #endif
5483 char yywrap ();
5484 int
5485 main ()
5486 {
5487 return yywrap ();
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext conftest$ac_exeext
5493 if { (ac_try="$ac_link"
5494 case "(($ac_try" in
5495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496   *) ac_try_echo=$ac_try;;
5497 esac
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499   (eval "$ac_link") 2>conftest.er1
5500   ac_status=$?
5501   grep -v '^ *+' conftest.er1 >conftest.err
5502   rm -f conftest.er1
5503   cat conftest.err >&5
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } &&
5506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5507   { (case "(($ac_try" in
5508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509   *) ac_try_echo=$ac_try;;
5510 esac
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512   (eval "$ac_try") 2>&5
5513   ac_status=$?
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); }; } &&
5516          { ac_try='test -s conftest$ac_exeext'
5517   { (case "(($ac_try" in
5518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519   *) ac_try_echo=$ac_try;;
5520 esac
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522   (eval "$ac_try") 2>&5
5523   ac_status=$?
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); }; }; then
5526   ac_cv_lib_fl_yywrap=yes
5527 else
5528   echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5530
5531         ac_cv_lib_fl_yywrap=no
5532 fi
5533
5534 rm -f core conftest.err conftest.$ac_objext \
5535       conftest$ac_exeext conftest.$ac_ext
5536 LIBS=$ac_check_lib_save_LIBS
5537 fi
5538 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5539 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
5540 if test $ac_cv_lib_fl_yywrap = yes; then
5541   LEXLIB="-lfl"
5542 else
5543   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5544 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
5545 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5546   echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548   ac_check_lib_save_LIBS=$LIBS
5549 LIBS="-ll  $LIBS"
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h.  */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h.  */
5556
5557 /* Override any GCC internal prototype to avoid an error.
5558    Use char because int might match the return type of a GCC
5559    builtin and then its argument prototype would still apply.  */
5560 #ifdef __cplusplus
5561 extern "C"
5562 #endif
5563 char yywrap ();
5564 int
5565 main ()
5566 {
5567 return yywrap ();
5568   ;
5569   return 0;
5570 }
5571 _ACEOF
5572 rm -f conftest.$ac_objext conftest$ac_exeext
5573 if { (ac_try="$ac_link"
5574 case "(($ac_try" in
5575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576   *) ac_try_echo=$ac_try;;
5577 esac
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579   (eval "$ac_link") 2>conftest.er1
5580   ac_status=$?
5581   grep -v '^ *+' conftest.er1 >conftest.err
5582   rm -f conftest.er1
5583   cat conftest.err >&5
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); } &&
5586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5587   { (case "(($ac_try" in
5588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589   *) ac_try_echo=$ac_try;;
5590 esac
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592   (eval "$ac_try") 2>&5
5593   ac_status=$?
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); }; } &&
5596          { ac_try='test -s conftest$ac_exeext'
5597   { (case "(($ac_try" in
5598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599   *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602   (eval "$ac_try") 2>&5
5603   ac_status=$?
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); }; }; then
5606   ac_cv_lib_l_yywrap=yes
5607 else
5608   echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611         ac_cv_lib_l_yywrap=no
5612 fi
5613
5614 rm -f core conftest.err conftest.$ac_objext \
5615       conftest$ac_exeext conftest.$ac_ext
5616 LIBS=$ac_check_lib_save_LIBS
5617 fi
5618 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5619 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
5620 if test $ac_cv_lib_l_yywrap = yes; then
5621   LEXLIB="-ll"
5622 fi
5623
5624 fi
5625
5626 fi
5627
5628 if test "x$LEX" != "x:"; then
5629   { echo "$as_me:$LINENO: checking lex output file root" >&5
5630 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5631 if test "${ac_cv_prog_lex_root+set}" = set; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   # The minimal lex program is just a single line: %%.  But some broken lexes
5635 # (Solaris, I think it was) want two %% lines, so accommodate them.
5636 cat >conftest.l <<_ACEOF
5637 %%
5638 %%
5639 _ACEOF
5640 { (ac_try="$LEX conftest.l"
5641 case "(($ac_try" in
5642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643   *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646   (eval "$LEX conftest.l") 2>&5
5647   ac_status=$?
5648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); }
5650 if test -f lex.yy.c; then
5651   ac_cv_prog_lex_root=lex.yy
5652 elif test -f lexyy.c; then
5653   ac_cv_prog_lex_root=lexyy
5654 else
5655   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5656 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5657    { (exit 1); exit 1; }; }
5658 fi
5659 fi
5660 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5661 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5662 rm -f conftest.l
5663 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5664
5665 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5666 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5667 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670   # POSIX says lex can declare yytext either as a pointer or an array; the
5671 # default is implementation-dependent. Figure out which it is, since
5672 # not all implementations provide the %pointer and %array declarations.
5673 ac_cv_prog_lex_yytext_pointer=no
5674 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5675 ac_save_LIBS=$LIBS
5676 LIBS="$LIBS $LEXLIB"
5677 cat >conftest.$ac_ext <<_ACEOF
5678 `cat $LEX_OUTPUT_ROOT.c`
5679 _ACEOF
5680 rm -f conftest.$ac_objext conftest$ac_exeext
5681 if { (ac_try="$ac_link"
5682 case "(($ac_try" in
5683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684   *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687   (eval "$ac_link") 2>conftest.er1
5688   ac_status=$?
5689   grep -v '^ *+' conftest.er1 >conftest.err
5690   rm -f conftest.er1
5691   cat conftest.err >&5
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); } &&
5694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5695   { (case "(($ac_try" in
5696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697   *) ac_try_echo=$ac_try;;
5698 esac
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700   (eval "$ac_try") 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); }; } &&
5704          { ac_try='test -s conftest$ac_exeext'
5705   { (case "(($ac_try" in
5706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707   *) ac_try_echo=$ac_try;;
5708 esac
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710   (eval "$ac_try") 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }; }; then
5714   ac_cv_prog_lex_yytext_pointer=yes
5715 else
5716   echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5718
5719
5720 fi
5721
5722 rm -f core conftest.err conftest.$ac_objext \
5723       conftest$ac_exeext conftest.$ac_ext
5724 LIBS=$ac_save_LIBS
5725 rm -f "${LEX_OUTPUT_ROOT}.c"
5726
5727 fi
5728 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5729 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5730 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5731
5732 cat >>confdefs.h <<\_ACEOF
5733 #define YYTEXT_POINTER 1
5734 _ACEOF
5735
5736 fi
5737
5738 fi
5739
5740 for ac_prog in $LEX flex lex
5741 do
5742   # Extract the first word of "$ac_prog", so it can be a program name with args.
5743 set dummy $ac_prog; ac_word=$2
5744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5746 if test "${ac_cv_prog_XLEX+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   if test -n "$XLEX"; then
5750   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755   IFS=$as_save_IFS
5756   test -z "$as_dir" && as_dir=.
5757   for ac_exec_ext in '' $ac_executable_extensions; do
5758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5759     ac_cv_prog_XLEX="$ac_prog"
5760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761     break 2
5762   fi
5763 done
5764 done
5765 IFS=$as_save_IFS
5766
5767 fi
5768 fi
5769 XLEX=$ac_cv_prog_XLEX
5770 if test -n "$XLEX"; then
5771   { echo "$as_me:$LINENO: result: $XLEX" >&5
5772 echo "${ECHO_T}$XLEX" >&6; }
5773 else
5774   { echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6; }
5776 fi
5777
5778
5779   test -n "$XLEX" && break
5780 done
5781 test -n "$XLEX" || XLEX="none"
5782
5783 if test "$XLEX" = "none"
5784 then
5785   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5786 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5787    { (exit 1); exit 1; }; }
5788 fi
5789
5790 for ac_prog in bison
5791 do
5792   # Extract the first word of "$ac_prog", so it can be a program name with args.
5793 set dummy $ac_prog; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_prog_BISON+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   if test -n "$BISON"; then
5800   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807   for ac_exec_ext in '' $ac_executable_extensions; do
5808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5809     ac_cv_prog_BISON="$ac_prog"
5810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 BISON=$ac_cv_prog_BISON
5820 if test -n "$BISON"; then
5821   { echo "$as_me:$LINENO: result: $BISON" >&5
5822 echo "${ECHO_T}$BISON" >&6; }
5823 else
5824   { echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6; }
5826 fi
5827
5828
5829   test -n "$BISON" && break
5830 done
5831 test -n "$BISON" || BISON="none"
5832
5833 if test "$BISON" = "none"
5834 then
5835   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5836 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5837    { (exit 1); exit 1; }; }
5838 fi
5839
5840 if test -n "$ac_tool_prefix"; then
5841   for ac_prog in gas as
5842   do
5843     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5847 if test "${ac_cv_prog_AS+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   if test -n "$AS"; then
5851   ac_cv_prog_AS="$AS" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858   for ac_exec_ext in '' $ac_executable_extensions; do
5859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5860     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865 done
5866 IFS=$as_save_IFS
5867
5868 fi
5869 fi
5870 AS=$ac_cv_prog_AS
5871 if test -n "$AS"; then
5872   { echo "$as_me:$LINENO: result: $AS" >&5
5873 echo "${ECHO_T}$AS" >&6; }
5874 else
5875   { echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6; }
5877 fi
5878
5879
5880     test -n "$AS" && break
5881   done
5882 fi
5883 if test -z "$AS"; then
5884   ac_ct_AS=$AS
5885   for ac_prog in gas as
5886 do
5887   # Extract the first word of "$ac_prog", so it can be a program name with args.
5888 set dummy $ac_prog; ac_word=$2
5889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5891 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5892   echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894   if test -n "$ac_ct_AS"; then
5895   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   test -z "$as_dir" && as_dir=.
5902   for ac_exec_ext in '' $ac_executable_extensions; do
5903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5904     ac_cv_prog_ac_ct_AS="$ac_prog"
5905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906     break 2
5907   fi
5908 done
5909 done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5915 if test -n "$ac_ct_AS"; then
5916   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5917 echo "${ECHO_T}$ac_ct_AS" >&6; }
5918 else
5919   { echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6; }
5921 fi
5922
5923
5924   test -n "$ac_ct_AS" && break
5925 done
5926
5927   if test "x$ac_ct_AS" = x; then
5928     AS="as"
5929   else
5930     case $cross_compiling:$ac_tool_warned in
5931 yes:)
5932 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5933 whose name does not start with the host triplet.  If you think this
5934 configuration is useful to you, please write to autoconf@gnu.org." >&5
5935 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5936 whose name does not start with the host triplet.  If you think this
5937 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5938 ac_tool_warned=yes ;;
5939 esac
5940     AS=$ac_ct_AS
5941   fi
5942 fi
5943
5944 if test -n "$ac_tool_prefix"; then
5945   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5946 set dummy ${ac_tool_prefix}ld; ac_word=$2
5947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949 if test "${ac_cv_prog_LD+set}" = set; then
5950   echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952   if test -n "$LD"; then
5953   ac_cv_prog_LD="$LD" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958   IFS=$as_save_IFS
5959   test -z "$as_dir" && as_dir=.
5960   for ac_exec_ext in '' $ac_executable_extensions; do
5961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962     ac_cv_prog_LD="${ac_tool_prefix}ld"
5963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964     break 2
5965   fi
5966 done
5967 done
5968 IFS=$as_save_IFS
5969
5970 fi
5971 fi
5972 LD=$ac_cv_prog_LD
5973 if test -n "$LD"; then
5974   { echo "$as_me:$LINENO: result: $LD" >&5
5975 echo "${ECHO_T}$LD" >&6; }
5976 else
5977   { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5979 fi
5980
5981
5982 fi
5983 if test -z "$ac_cv_prog_LD"; then
5984   ac_ct_LD=$LD
5985   # Extract the first word of "ld", so it can be a program name with args.
5986 set dummy ld; ac_word=$2
5987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5989 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   if test -n "$ac_ct_LD"; then
5993   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998   IFS=$as_save_IFS
5999   test -z "$as_dir" && as_dir=.
6000   for ac_exec_ext in '' $ac_executable_extensions; do
6001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6002     ac_cv_prog_ac_ct_LD="ld"
6003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004     break 2
6005   fi
6006 done
6007 done
6008 IFS=$as_save_IFS
6009
6010 fi
6011 fi
6012 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6013 if test -n "$ac_ct_LD"; then
6014   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6015 echo "${ECHO_T}$ac_ct_LD" >&6; }
6016 else
6017   { echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6; }
6019 fi
6020
6021   if test "x$ac_ct_LD" = x; then
6022     LD="ld"
6023   else
6024     case $cross_compiling:$ac_tool_warned in
6025 yes:)
6026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6027 whose name does not start with the host triplet.  If you think this
6028 configuration is useful to you, please write to autoconf@gnu.org." >&5
6029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6030 whose name does not start with the host triplet.  If you think this
6031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6032 ac_tool_warned=yes ;;
6033 esac
6034     LD=$ac_ct_LD
6035   fi
6036 else
6037   LD="$ac_cv_prog_LD"
6038 fi
6039
6040 if test -n "$ac_tool_prefix"; then
6041   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6042 set dummy ${ac_tool_prefix}ar; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_prog_AR+set}" = set; then
6046   echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048   if test -n "$AR"; then
6049   ac_cv_prog_AR="$AR" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054   IFS=$as_save_IFS
6055   test -z "$as_dir" && as_dir=.
6056   for ac_exec_ext in '' $ac_executable_extensions; do
6057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6058     ac_cv_prog_AR="${ac_tool_prefix}ar"
6059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060     break 2
6061   fi
6062 done
6063 done
6064 IFS=$as_save_IFS
6065
6066 fi
6067 fi
6068 AR=$ac_cv_prog_AR
6069 if test -n "$AR"; then
6070   { echo "$as_me:$LINENO: result: $AR" >&5
6071 echo "${ECHO_T}$AR" >&6; }
6072 else
6073   { echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6; }
6075 fi
6076
6077
6078 fi
6079 if test -z "$ac_cv_prog_AR"; then
6080   ac_ct_AR=$AR
6081   # Extract the first word of "ar", so it can be a program name with args.
6082 set dummy ar; ac_word=$2
6083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6085 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   if test -n "$ac_ct_AR"; then
6089   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096   for ac_exec_ext in '' $ac_executable_extensions; do
6097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6098     ac_cv_prog_ac_ct_AR="ar"
6099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103 done
6104 IFS=$as_save_IFS
6105
6106 fi
6107 fi
6108 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6109 if test -n "$ac_ct_AR"; then
6110   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6111 echo "${ECHO_T}$ac_ct_AR" >&6; }
6112 else
6113   { echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6; }
6115 fi
6116
6117   if test "x$ac_ct_AR" = x; then
6118     AR="ar"
6119   else
6120     case $cross_compiling:$ac_tool_warned in
6121 yes:)
6122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6123 whose name does not start with the host triplet.  If you think this
6124 configuration is useful to you, please write to autoconf@gnu.org." >&5
6125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6126 whose name does not start with the host triplet.  If you think this
6127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6128 ac_tool_warned=yes ;;
6129 esac
6130     AR=$ac_ct_AR
6131   fi
6132 else
6133   AR="$ac_cv_prog_AR"
6134 fi
6135
6136 if test -n "$ac_tool_prefix"; then
6137   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_prog_RANLIB+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   if test -n "$RANLIB"; then
6145   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152   for ac_exec_ext in '' $ac_executable_extensions; do
6153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 RANLIB=$ac_cv_prog_RANLIB
6165 if test -n "$RANLIB"; then
6166   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6167 echo "${ECHO_T}$RANLIB" >&6; }
6168 else
6169   { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6171 fi
6172
6173
6174 fi
6175 if test -z "$ac_cv_prog_RANLIB"; then
6176   ac_ct_RANLIB=$RANLIB
6177   # Extract the first word of "ranlib", so it can be a program name with args.
6178 set dummy ranlib; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   if test -n "$ac_ct_RANLIB"; then
6185   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190   IFS=$as_save_IFS
6191   test -z "$as_dir" && as_dir=.
6192   for ac_exec_ext in '' $ac_executable_extensions; do
6193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194     ac_cv_prog_ac_ct_RANLIB="ranlib"
6195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199 done
6200 IFS=$as_save_IFS
6201
6202 fi
6203 fi
6204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6205 if test -n "$ac_ct_RANLIB"; then
6206   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6207 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6208 else
6209   { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6211 fi
6212
6213   if test "x$ac_ct_RANLIB" = x; then
6214     RANLIB=":"
6215   else
6216     case $cross_compiling:$ac_tool_warned in
6217 yes:)
6218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6219 whose name does not start with the host triplet.  If you think this
6220 configuration is useful to you, please write to autoconf@gnu.org." >&5
6221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet.  If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226     RANLIB=$ac_ct_RANLIB
6227   fi
6228 else
6229   RANLIB="$ac_cv_prog_RANLIB"
6230 fi
6231
6232 if test -n "$ac_tool_prefix"; then
6233   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6234 set dummy ${ac_tool_prefix}strip; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_prog_STRIP+set}" = set; then
6238   echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240   if test -n "$STRIP"; then
6241   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246   IFS=$as_save_IFS
6247   test -z "$as_dir" && as_dir=.
6248   for ac_exec_ext in '' $ac_executable_extensions; do
6249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252     break 2
6253   fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 STRIP=$ac_cv_prog_STRIP
6261 if test -n "$STRIP"; then
6262   { echo "$as_me:$LINENO: result: $STRIP" >&5
6263 echo "${ECHO_T}$STRIP" >&6; }
6264 else
6265   { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6267 fi
6268
6269
6270 fi
6271 if test -z "$ac_cv_prog_STRIP"; then
6272   ac_ct_STRIP=$STRIP
6273   # Extract the first word of "strip", so it can be a program name with args.
6274 set dummy strip; ac_word=$2
6275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6277 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280   if test -n "$ac_ct_STRIP"; then
6281   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288   for ac_exec_ext in '' $ac_executable_extensions; do
6289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290     ac_cv_prog_ac_ct_STRIP="strip"
6291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297
6298 fi
6299 fi
6300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6301 if test -n "$ac_ct_STRIP"; then
6302   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6303 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6304 else
6305   { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6307 fi
6308
6309   if test "x$ac_ct_STRIP" = x; then
6310     STRIP="strip"
6311   else
6312     case $cross_compiling:$ac_tool_warned in
6313 yes:)
6314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet.  If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&5
6317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6318 whose name does not start with the host triplet.  If you think this
6319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6320 ac_tool_warned=yes ;;
6321 esac
6322     STRIP=$ac_ct_STRIP
6323   fi
6324 else
6325   STRIP="$ac_cv_prog_STRIP"
6326 fi
6327
6328 if test -n "$ac_tool_prefix"; then
6329   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6330 set dummy ${ac_tool_prefix}windres; ac_word=$2
6331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6333 if test "${ac_cv_prog_WINDRES+set}" = set; then
6334   echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336   if test -n "$WINDRES"; then
6337   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344   for ac_exec_ext in '' $ac_executable_extensions; do
6345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6346     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348     break 2
6349   fi
6350 done
6351 done
6352 IFS=$as_save_IFS
6353
6354 fi
6355 fi
6356 WINDRES=$ac_cv_prog_WINDRES
6357 if test -n "$WINDRES"; then
6358   { echo "$as_me:$LINENO: result: $WINDRES" >&5
6359 echo "${ECHO_T}$WINDRES" >&6; }
6360 else
6361   { echo "$as_me:$LINENO: result: no" >&5
6362 echo "${ECHO_T}no" >&6; }
6363 fi
6364
6365
6366 fi
6367 if test -z "$ac_cv_prog_WINDRES"; then
6368   ac_ct_WINDRES=$WINDRES
6369   # Extract the first word of "windres", so it can be a program name with args.
6370 set dummy windres; ac_word=$2
6371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6373 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6374   echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376   if test -n "$ac_ct_WINDRES"; then
6377   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382   IFS=$as_save_IFS
6383   test -z "$as_dir" && as_dir=.
6384   for ac_exec_ext in '' $ac_executable_extensions; do
6385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6386     ac_cv_prog_ac_ct_WINDRES="windres"
6387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388     break 2
6389   fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393
6394 fi
6395 fi
6396 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6397 if test -n "$ac_ct_WINDRES"; then
6398   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6399 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6400 else
6401   { echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6; }
6403 fi
6404
6405   if test "x$ac_ct_WINDRES" = x; then
6406     WINDRES="false"
6407   else
6408     case $cross_compiling:$ac_tool_warned in
6409 yes:)
6410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6411 whose name does not start with the host triplet.  If you think this
6412 configuration is useful to you, please write to autoconf@gnu.org." >&5
6413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6414 whose name does not start with the host triplet.  If you think this
6415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6416 ac_tool_warned=yes ;;
6417 esac
6418     WINDRES=$ac_ct_WINDRES
6419   fi
6420 else
6421   WINDRES="$ac_cv_prog_WINDRES"
6422 fi
6423
6424 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6425 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6426 LN_S=$as_ln_s
6427 if test "$LN_S" = "ln -s"; then
6428   { echo "$as_me:$LINENO: result: yes" >&5
6429 echo "${ECHO_T}yes" >&6; }
6430 else
6431   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6432 echo "${ECHO_T}no, using $LN_S" >&6; }
6433 fi
6434
6435 { echo "$as_me:$LINENO: checking whether ln works" >&5
6436 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
6437 rm -f conf$$ conf$$.file
6438 echo >conf$$.file
6439 if ln conf$$.file conf$$ 2>/dev/null; then
6440   LN=ln
6441
6442   { echo "$as_me:$LINENO: result: yes" >&5
6443 echo "${ECHO_T}yes" >&6; }
6444 else
6445   LN="cp -p"
6446
6447   { echo "$as_me:$LINENO: result: no, using $LN" >&5
6448 echo "${ECHO_T}no, using $LN" >&6; }
6449 fi
6450 rm -f conf$$ conf$$.file
6451 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6452 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6453 if test "${ac_cv_path_GREP+set}" = set; then
6454   echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456   # Extract the first word of "grep ggrep" to use in msg output
6457 if test -z "$GREP"; then
6458 set dummy grep ggrep; ac_prog_name=$2
6459 if test "${ac_cv_path_GREP+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   ac_path_GREP_found=false
6463 # Loop through the user's path and test for each of PROGNAME-LIST
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469   for ac_prog in grep ggrep; do
6470   for ac_exec_ext in '' $ac_executable_extensions; do
6471     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6472     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6473     # Check for GNU ac_path_GREP and select it if it is found.
6474   # Check for GNU $ac_path_GREP
6475 case `"$ac_path_GREP" --version 2>&1` in
6476 *GNU*)
6477   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6478 *)
6479   ac_count=0
6480   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6481   while :
6482   do
6483     cat "conftest.in" "conftest.in" >"conftest.tmp"
6484     mv "conftest.tmp" "conftest.in"
6485     cp "conftest.in" "conftest.nl"
6486     echo 'GREP' >> "conftest.nl"
6487     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6488     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6489     ac_count=`expr $ac_count + 1`
6490     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6491       # Best one so far, save it but keep looking for a better one
6492       ac_cv_path_GREP="$ac_path_GREP"
6493       ac_path_GREP_max=$ac_count
6494     fi
6495     # 10*(2^10) chars as input seems more than enough
6496     test $ac_count -gt 10 && break
6497   done
6498   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6499 esac
6500
6501
6502     $ac_path_GREP_found && break 3
6503   done
6504 done
6505
6506 done
6507 IFS=$as_save_IFS
6508
6509
6510 fi
6511
6512 GREP="$ac_cv_path_GREP"
6513 if test -z "$GREP"; then
6514   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6515 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6516    { (exit 1); exit 1; }; }
6517 fi
6518
6519 else
6520   ac_cv_path_GREP=$GREP
6521 fi
6522
6523
6524 fi
6525 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6526 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6527  GREP="$ac_cv_path_GREP"
6528
6529
6530 { echo "$as_me:$LINENO: checking for egrep" >&5
6531 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6532 if test "${ac_cv_path_EGREP+set}" = set; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6536    then ac_cv_path_EGREP="$GREP -E"
6537    else
6538      # Extract the first word of "egrep" to use in msg output
6539 if test -z "$EGREP"; then
6540 set dummy egrep; ac_prog_name=$2
6541 if test "${ac_cv_path_EGREP+set}" = set; then
6542   echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544   ac_path_EGREP_found=false
6545 # Loop through the user's path and test for each of PROGNAME-LIST
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6548 do
6549   IFS=$as_save_IFS
6550   test -z "$as_dir" && as_dir=.
6551   for ac_prog in egrep; do
6552   for ac_exec_ext in '' $ac_executable_extensions; do
6553     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6554     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6555     # Check for GNU ac_path_EGREP and select it if it is found.
6556   # Check for GNU $ac_path_EGREP
6557 case `"$ac_path_EGREP" --version 2>&1` in
6558 *GNU*)
6559   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6560 *)
6561   ac_count=0
6562   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6563   while :
6564   do
6565     cat "conftest.in" "conftest.in" >"conftest.tmp"
6566     mv "conftest.tmp" "conftest.in"
6567     cp "conftest.in" "conftest.nl"
6568     echo 'EGREP' >> "conftest.nl"
6569     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6570     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6571     ac_count=`expr $ac_count + 1`
6572     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6573       # Best one so far, save it but keep looking for a better one
6574       ac_cv_path_EGREP="$ac_path_EGREP"
6575       ac_path_EGREP_max=$ac_count
6576     fi
6577     # 10*(2^10) chars as input seems more than enough
6578     test $ac_count -gt 10 && break
6579   done
6580   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6581 esac
6582
6583
6584     $ac_path_EGREP_found && break 3
6585   done
6586 done
6587
6588 done
6589 IFS=$as_save_IFS
6590
6591
6592 fi
6593
6594 EGREP="$ac_cv_path_EGREP"
6595 if test -z "$EGREP"; then
6596   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6597 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6598    { (exit 1); exit 1; }; }
6599 fi
6600
6601 else
6602   ac_cv_path_EGREP=$EGREP
6603 fi
6604
6605
6606    fi
6607 fi
6608 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6609 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6610  EGREP="$ac_cv_path_EGREP"
6611
6612
6613 # Extract the first word of "ldconfig", so it can be a program name with args.
6614 set dummy ldconfig; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   case $LDCONFIG in
6621   [\\/]* | ?:[\\/]*)
6622   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6623   ;;
6624   *)
6625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in /sbin /usr/sbin $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630   for ac_exec_ext in '' $ac_executable_extensions; do
6631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6639
6640   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6641   ;;
6642 esac
6643 fi
6644 LDCONFIG=$ac_cv_path_LDCONFIG
6645 if test -n "$LDCONFIG"; then
6646   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6647 echo "${ECHO_T}$LDCONFIG" >&6; }
6648 else
6649   { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6651 fi
6652
6653
6654 # Find a good install program.  We prefer a C program (faster),
6655 # so one script is as good as another.  But avoid the broken or
6656 # incompatible versions:
6657 # SysV /etc/install, /usr/sbin/install
6658 # SunOS /usr/etc/install
6659 # IRIX /sbin/install
6660 # AIX /bin/install
6661 # AmigaOS /C/install, which installs bootblocks on floppy discs
6662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6665 # OS/2's system install, which has a completely different semantic
6666 # ./install, which can be erroneously created by make from ./install.sh.
6667 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6669 if test -z "$INSTALL"; then
6670 if test "${ac_cv_path_install+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678   # Account for people who put trailing slashes in PATH elements.
6679 case $as_dir/ in
6680   ./ | .// | /cC/* | \
6681   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6682   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6683   /usr/ucb/* ) ;;
6684   *)
6685     # OSF1 and SCO ODT 3.0 have their own names for install.
6686     # Don't use installbsd from OSF since it installs stuff as root
6687     # by default.
6688     for ac_prog in ginstall scoinst install; do
6689       for ac_exec_ext in '' $ac_executable_extensions; do
6690         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6691           if test $ac_prog = install &&
6692             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6693             # AIX install.  It has an incompatible calling convention.
6694             :
6695           elif test $ac_prog = install &&
6696             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6697             # program-specific install script used by HP pwplus--don't use.
6698             :
6699           else
6700             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6701             break 3
6702           fi
6703         fi
6704       done
6705     done
6706     ;;
6707 esac
6708 done
6709 IFS=$as_save_IFS
6710
6711
6712 fi
6713   if test "${ac_cv_path_install+set}" = set; then
6714     INSTALL=$ac_cv_path_install
6715   else
6716     # As a last resort, use the slow shell script.  Don't cache a
6717     # value for INSTALL within a source directory, because that will
6718     # break other packages using the cache if that directory is
6719     # removed, or if the value is a relative name.
6720     INSTALL=$ac_install_sh
6721   fi
6722 fi
6723 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6724 echo "${ECHO_T}$INSTALL" >&6; }
6725
6726 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6727 # It thinks the first close brace ends the variable substitution.
6728 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6729
6730 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6731
6732 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6733
6734 case "$INSTALL" in
6735   [\\/$]* | ?:[\\/]* ) ;;
6736   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6737 esac
6738
6739 for ac_prog in lclint lint
6740 do
6741   # Extract the first word of "$ac_prog", so it can be a program name with args.
6742 set dummy $ac_prog; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_prog_LINT+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   if test -n "$LINT"; then
6749   ac_cv_prog_LINT="$LINT" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754   IFS=$as_save_IFS
6755   test -z "$as_dir" && as_dir=.
6756   for ac_exec_ext in '' $ac_executable_extensions; do
6757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6758     ac_cv_prog_LINT="$ac_prog"
6759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760     break 2
6761   fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766 fi
6767 fi
6768 LINT=$ac_cv_prog_LINT
6769 if test -n "$LINT"; then
6770   { echo "$as_me:$LINENO: result: $LINT" >&5
6771 echo "${ECHO_T}$LINT" >&6; }
6772 else
6773   { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6775 fi
6776
6777
6778   test -n "$LINT" && break
6779 done
6780
6781 if test "$LINT" = "lint"
6782 then
6783   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6784   fi
6785
6786
6787
6788 for ac_prog in fontforge
6789 do
6790   # Extract the first word of "$ac_prog", so it can be a program name with args.
6791 set dummy $ac_prog; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6795   echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797   if test -n "$FONTFORGE"; then
6798   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803   IFS=$as_save_IFS
6804   test -z "$as_dir" && as_dir=.
6805   for ac_exec_ext in '' $ac_executable_extensions; do
6806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6807     ac_cv_prog_FONTFORGE="$ac_prog"
6808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809     break 2
6810   fi
6811 done
6812 done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 FONTFORGE=$ac_cv_prog_FONTFORGE
6818 if test -n "$FONTFORGE"; then
6819   { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6820 echo "${ECHO_T}$FONTFORGE" >&6; }
6821 else
6822   { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6824 fi
6825
6826
6827   test -n "$FONTFORGE" && break
6828 done
6829 test -n "$FONTFORGE" || FONTFORGE="false"
6830
6831 for ac_prog in pkg-config
6832 do
6833   # Extract the first word of "$ac_prog", so it can be a program name with args.
6834 set dummy $ac_prog; ac_word=$2
6835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6838   echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840   if test -n "$PKG_CONFIG"; then
6841   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848   for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_prog_PKG_CONFIG="$ac_prog"
6851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6861 if test -n "$PKG_CONFIG"; then
6862   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6863 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6864 else
6865   { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6867 fi
6868
6869
6870   test -n "$PKG_CONFIG" && break
6871 done
6872 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6873
6874
6875 case $host_cpu in
6876   *i[3456789]86*)
6877     # Extract the first word of "prelink", so it can be a program name with args.
6878 set dummy prelink; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_PRELINK+set}" = set; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884   case $PRELINK in
6885   [\\/]* | ?:[\\/]*)
6886   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6887   ;;
6888   *)
6889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in /sbin /usr/sbin $PATH
6891 do
6892   IFS=$as_save_IFS
6893   test -z "$as_dir" && as_dir=.
6894   for ac_exec_ext in '' $ac_executable_extensions; do
6895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898     break 2
6899   fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6905   ;;
6906 esac
6907 fi
6908 PRELINK=$ac_cv_path_PRELINK
6909 if test -n "$PRELINK"; then
6910   { echo "$as_me:$LINENO: result: $PRELINK" >&5
6911 echo "${ECHO_T}$PRELINK" >&6; }
6912 else
6913   { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6915 fi
6916
6917
6918     ;;
6919 esac
6920
6921
6922
6923 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6924 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6925 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   ac_check_lib_save_LIBS=$LIBS
6929 LIBS="-li386  $LIBS"
6930 cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h.  */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h.  */
6936
6937 /* Override any GCC internal prototype to avoid an error.
6938    Use char because int might match the return type of a GCC
6939    builtin and then its argument prototype would still apply.  */
6940 #ifdef __cplusplus
6941 extern "C"
6942 #endif
6943 char i386_set_ldt ();
6944 int
6945 main ()
6946 {
6947 return i386_set_ldt ();
6948   ;
6949   return 0;
6950 }
6951 _ACEOF
6952 rm -f conftest.$ac_objext conftest$ac_exeext
6953 if { (ac_try="$ac_link"
6954 case "(($ac_try" in
6955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956   *) ac_try_echo=$ac_try;;
6957 esac
6958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959   (eval "$ac_link") 2>conftest.er1
6960   ac_status=$?
6961   grep -v '^ *+' conftest.er1 >conftest.err
6962   rm -f conftest.er1
6963   cat conftest.err >&5
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); } &&
6966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6967   { (case "(($ac_try" in
6968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6969   *) ac_try_echo=$ac_try;;
6970 esac
6971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6972   (eval "$ac_try") 2>&5
6973   ac_status=$?
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); }; } &&
6976          { ac_try='test -s conftest$ac_exeext'
6977   { (case "(($ac_try" in
6978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979   *) ac_try_echo=$ac_try;;
6980 esac
6981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982   (eval "$ac_try") 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); }; }; then
6986   ac_cv_lib_i386_i386_set_ldt=yes
6987 else
6988   echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6990
6991         ac_cv_lib_i386_i386_set_ldt=no
6992 fi
6993
6994 rm -f core conftest.err conftest.$ac_objext \
6995       conftest$ac_exeext conftest.$ac_ext
6996 LIBS=$ac_check_lib_save_LIBS
6997 fi
6998 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6999 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
7000 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
7001   cat >>confdefs.h <<_ACEOF
7002 #define HAVE_LIBI386 1
7003 _ACEOF
7004
7005   LIBS="-li386 $LIBS"
7006
7007 fi
7008
7009
7010 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7011 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
7012 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7013   echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015   ac_check_lib_save_LIBS=$LIBS
7016 LIBS="-lossaudio  $LIBS"
7017 cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h.  */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h.  */
7023
7024 /* Override any GCC internal prototype to avoid an error.
7025    Use char because int might match the return type of a GCC
7026    builtin and then its argument prototype would still apply.  */
7027 #ifdef __cplusplus
7028 extern "C"
7029 #endif
7030 char _oss_ioctl ();
7031 int
7032 main ()
7033 {
7034 return _oss_ioctl ();
7035   ;
7036   return 0;
7037 }
7038 _ACEOF
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (ac_try="$ac_link"
7041 case "(($ac_try" in
7042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043   *) ac_try_echo=$ac_try;;
7044 esac
7045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7046   (eval "$ac_link") 2>conftest.er1
7047   ac_status=$?
7048   grep -v '^ *+' conftest.er1 >conftest.err
7049   rm -f conftest.er1
7050   cat conftest.err >&5
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); } &&
7053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7054   { (case "(($ac_try" in
7055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056   *) ac_try_echo=$ac_try;;
7057 esac
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059   (eval "$ac_try") 2>&5
7060   ac_status=$?
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); }; } &&
7063          { ac_try='test -s conftest$ac_exeext'
7064   { (case "(($ac_try" in
7065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066   *) ac_try_echo=$ac_try;;
7067 esac
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069   (eval "$ac_try") 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; }; then
7073   ac_cv_lib_ossaudio__oss_ioctl=yes
7074 else
7075   echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7077
7078         ac_cv_lib_ossaudio__oss_ioctl=no
7079 fi
7080
7081 rm -f core conftest.err conftest.$ac_objext \
7082       conftest$ac_exeext conftest.$ac_ext
7083 LIBS=$ac_check_lib_save_LIBS
7084 fi
7085 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7086 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7087 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
7088   cat >>confdefs.h <<_ACEOF
7089 #define HAVE_LIBOSSAUDIO 1
7090 _ACEOF
7091
7092   LIBS="-lossaudio $LIBS"
7093
7094 fi
7095
7096
7097 for ac_func in gethostbyname
7098 do
7099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h.  */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h.  */
7111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7113 #define $ac_func innocuous_$ac_func
7114
7115 /* System header to define __stub macros and hopefully few prototypes,
7116     which can conflict with char $ac_func (); below.
7117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7118     <limits.h> exists even on freestanding compilers.  */
7119
7120 #ifdef __STDC__
7121 # include <limits.h>
7122 #else
7123 # include <assert.h>
7124 #endif
7125
7126 #undef $ac_func
7127
7128 /* Override any GCC internal prototype to avoid an error.
7129    Use char because int might match the return type of a GCC
7130    builtin and then its argument prototype would still apply.  */
7131 #ifdef __cplusplus
7132 extern "C"
7133 #endif
7134 char $ac_func ();
7135 /* The GNU C library defines this for functions which it implements
7136     to always fail with ENOSYS.  Some functions are actually named
7137     something starting with __ and the normal name is an alias.  */
7138 #if defined __stub_$ac_func || defined __stub___$ac_func
7139 choke me
7140 #endif
7141
7142 int
7143 main ()
7144 {
7145 return $ac_func ();
7146   ;
7147   return 0;
7148 }
7149 _ACEOF
7150 rm -f conftest.$ac_objext conftest$ac_exeext
7151 if { (ac_try="$ac_link"
7152 case "(($ac_try" in
7153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154   *) ac_try_echo=$ac_try;;
7155 esac
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157   (eval "$ac_link") 2>conftest.er1
7158   ac_status=$?
7159   grep -v '^ *+' conftest.er1 >conftest.err
7160   rm -f conftest.er1
7161   cat conftest.err >&5
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); } &&
7164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7165   { (case "(($ac_try" in
7166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167   *) ac_try_echo=$ac_try;;
7168 esac
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170   (eval "$ac_try") 2>&5
7171   ac_status=$?
7172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173   (exit $ac_status); }; } &&
7174          { ac_try='test -s conftest$ac_exeext'
7175   { (case "(($ac_try" in
7176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177   *) ac_try_echo=$ac_try;;
7178 esac
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180   (eval "$ac_try") 2>&5
7181   ac_status=$?
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); }; }; then
7184   eval "$as_ac_var=yes"
7185 else
7186   echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7188
7189         eval "$as_ac_var=no"
7190 fi
7191
7192 rm -f core conftest.err conftest.$ac_objext \
7193       conftest$ac_exeext conftest.$ac_ext
7194 fi
7195 ac_res=`eval echo '${'$as_ac_var'}'`
7196                { echo "$as_me:$LINENO: result: $ac_res" >&5
7197 echo "${ECHO_T}$ac_res" >&6; }
7198 if test `eval echo '${'$as_ac_var'}'` = yes; then
7199   cat >>confdefs.h <<_ACEOF
7200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7201 _ACEOF
7202
7203 else
7204
7205 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7206 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
7207 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   ac_check_lib_save_LIBS=$LIBS
7211 LIBS="-lnsl  $LIBS"
7212 cat >conftest.$ac_ext <<_ACEOF
7213 /* confdefs.h.  */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h.  */
7218
7219 /* Override any GCC internal prototype to avoid an error.
7220    Use char because int might match the return type of a GCC
7221    builtin and then its argument prototype would still apply.  */
7222 #ifdef __cplusplus
7223 extern "C"
7224 #endif
7225 char gethostbyname ();
7226 int
7227 main ()
7228 {
7229 return gethostbyname ();
7230   ;
7231   return 0;
7232 }
7233 _ACEOF
7234 rm -f conftest.$ac_objext conftest$ac_exeext
7235 if { (ac_try="$ac_link"
7236 case "(($ac_try" in
7237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7238   *) ac_try_echo=$ac_try;;
7239 esac
7240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241   (eval "$ac_link") 2>conftest.er1
7242   ac_status=$?
7243   grep -v '^ *+' conftest.er1 >conftest.err
7244   rm -f conftest.er1
7245   cat conftest.err >&5
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); } &&
7248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7249   { (case "(($ac_try" in
7250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251   *) ac_try_echo=$ac_try;;
7252 esac
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254   (eval "$ac_try") 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); }; } &&
7258          { ac_try='test -s conftest$ac_exeext'
7259   { (case "(($ac_try" in
7260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261   *) ac_try_echo=$ac_try;;
7262 esac
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264   (eval "$ac_try") 2>&5
7265   ac_status=$?
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); }; }; then
7268   ac_cv_lib_nsl_gethostbyname=yes
7269 else
7270   echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7272
7273         ac_cv_lib_nsl_gethostbyname=no
7274 fi
7275
7276 rm -f core conftest.err conftest.$ac_objext \
7277       conftest$ac_exeext conftest.$ac_ext
7278 LIBS=$ac_check_lib_save_LIBS
7279 fi
7280 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7281 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
7282 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7283   cat >>confdefs.h <<_ACEOF
7284 #define HAVE_LIBNSL 1
7285 _ACEOF
7286
7287   LIBS="-lnsl $LIBS"
7288
7289 fi
7290
7291 fi
7292 done
7293
7294
7295 for ac_func in connect
7296 do
7297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303   cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h.  */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h.  */
7309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7311 #define $ac_func innocuous_$ac_func
7312
7313 /* System header to define __stub macros and hopefully few prototypes,
7314     which can conflict with char $ac_func (); below.
7315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7316     <limits.h> exists even on freestanding compilers.  */
7317
7318 #ifdef __STDC__
7319 # include <limits.h>
7320 #else
7321 # include <assert.h>
7322 #endif
7323
7324 #undef $ac_func
7325
7326 /* Override any GCC internal prototype to avoid an error.
7327    Use char because int might match the return type of a GCC
7328    builtin and then its argument prototype would still apply.  */
7329 #ifdef __cplusplus
7330 extern "C"
7331 #endif
7332 char $ac_func ();
7333 /* The GNU C library defines this for functions which it implements
7334     to always fail with ENOSYS.  Some functions are actually named
7335     something starting with __ and the normal name is an alias.  */
7336 #if defined __stub_$ac_func || defined __stub___$ac_func
7337 choke me
7338 #endif
7339
7340 int
7341 main ()
7342 {
7343 return $ac_func ();
7344   ;
7345   return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext conftest$ac_exeext
7349 if { (ac_try="$ac_link"
7350 case "(($ac_try" in
7351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352   *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355   (eval "$ac_link") 2>conftest.er1
7356   ac_status=$?
7357   grep -v '^ *+' conftest.er1 >conftest.err
7358   rm -f conftest.er1
7359   cat conftest.err >&5
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } &&
7362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7363   { (case "(($ac_try" in
7364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365   *) ac_try_echo=$ac_try;;
7366 esac
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368   (eval "$ac_try") 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); }; } &&
7372          { ac_try='test -s conftest$ac_exeext'
7373   { (case "(($ac_try" in
7374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375   *) ac_try_echo=$ac_try;;
7376 esac
7377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378   (eval "$ac_try") 2>&5
7379   ac_status=$?
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); }; }; then
7382   eval "$as_ac_var=yes"
7383 else
7384   echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7386
7387         eval "$as_ac_var=no"
7388 fi
7389
7390 rm -f core conftest.err conftest.$ac_objext \
7391       conftest$ac_exeext conftest.$ac_ext
7392 fi
7393 ac_res=`eval echo '${'$as_ac_var'}'`
7394                { echo "$as_me:$LINENO: result: $ac_res" >&5
7395 echo "${ECHO_T}$ac_res" >&6; }
7396 if test `eval echo '${'$as_ac_var'}'` = yes; then
7397   cat >>confdefs.h <<_ACEOF
7398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7399 _ACEOF
7400
7401 else
7402
7403 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7404 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7405 if test "${ac_cv_lib_socket_connect+set}" = set; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408   ac_check_lib_save_LIBS=$LIBS
7409 LIBS="-lsocket  $LIBS"
7410 cat >conftest.$ac_ext <<_ACEOF
7411 /* confdefs.h.  */
7412 _ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h.  */
7416
7417 /* Override any GCC internal prototype to avoid an error.
7418    Use char because int might match the return type of a GCC
7419    builtin and then its argument prototype would still apply.  */
7420 #ifdef __cplusplus
7421 extern "C"
7422 #endif
7423 char connect ();
7424 int
7425 main ()
7426 {
7427 return connect ();
7428   ;
7429   return 0;
7430 }
7431 _ACEOF
7432 rm -f conftest.$ac_objext conftest$ac_exeext
7433 if { (ac_try="$ac_link"
7434 case "(($ac_try" in
7435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436   *) ac_try_echo=$ac_try;;
7437 esac
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439   (eval "$ac_link") 2>conftest.er1
7440   ac_status=$?
7441   grep -v '^ *+' conftest.er1 >conftest.err
7442   rm -f conftest.er1
7443   cat conftest.err >&5
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); } &&
7446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7447   { (case "(($ac_try" in
7448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449   *) ac_try_echo=$ac_try;;
7450 esac
7451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7452   (eval "$ac_try") 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; } &&
7456          { ac_try='test -s conftest$ac_exeext'
7457   { (case "(($ac_try" in
7458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459   *) ac_try_echo=$ac_try;;
7460 esac
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462   (eval "$ac_try") 2>&5
7463   ac_status=$?
7464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465   (exit $ac_status); }; }; then
7466   ac_cv_lib_socket_connect=yes
7467 else
7468   echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7470
7471         ac_cv_lib_socket_connect=no
7472 fi
7473
7474 rm -f core conftest.err conftest.$ac_objext \
7475       conftest$ac_exeext conftest.$ac_ext
7476 LIBS=$ac_check_lib_save_LIBS
7477 fi
7478 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7479 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7480 if test $ac_cv_lib_socket_connect = yes; then
7481   cat >>confdefs.h <<_ACEOF
7482 #define HAVE_LIBSOCKET 1
7483 _ACEOF
7484
7485   LIBS="-lsocket $LIBS"
7486
7487 fi
7488
7489 fi
7490 done
7491
7492
7493 for ac_func in inet_aton
7494 do
7495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7499   echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501   cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h.  */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h.  */
7507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7509 #define $ac_func innocuous_$ac_func
7510
7511 /* System header to define __stub macros and hopefully few prototypes,
7512     which can conflict with char $ac_func (); below.
7513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7514     <limits.h> exists even on freestanding compilers.  */
7515
7516 #ifdef __STDC__
7517 # include <limits.h>
7518 #else
7519 # include <assert.h>
7520 #endif
7521
7522 #undef $ac_func
7523
7524 /* Override any GCC internal prototype to avoid an error.
7525    Use char because int might match the return type of a GCC
7526    builtin and then its argument prototype would still apply.  */
7527 #ifdef __cplusplus
7528 extern "C"
7529 #endif
7530 char $ac_func ();
7531 /* The GNU C library defines this for functions which it implements
7532     to always fail with ENOSYS.  Some functions are actually named
7533     something starting with __ and the normal name is an alias.  */
7534 #if defined __stub_$ac_func || defined __stub___$ac_func
7535 choke me
7536 #endif
7537
7538 int
7539 main ()
7540 {
7541 return $ac_func ();
7542   ;
7543   return 0;
7544 }
7545 _ACEOF
7546 rm -f conftest.$ac_objext conftest$ac_exeext
7547 if { (ac_try="$ac_link"
7548 case "(($ac_try" in
7549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550   *) ac_try_echo=$ac_try;;
7551 esac
7552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553   (eval "$ac_link") 2>conftest.er1
7554   ac_status=$?
7555   grep -v '^ *+' conftest.er1 >conftest.err
7556   rm -f conftest.er1
7557   cat conftest.err >&5
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); } &&
7560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
7567   ac_status=$?
7568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); }; } &&
7570          { ac_try='test -s conftest$ac_exeext'
7571   { (case "(($ac_try" in
7572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573   *) ac_try_echo=$ac_try;;
7574 esac
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576   (eval "$ac_try") 2>&5
7577   ac_status=$?
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); }; }; then
7580   eval "$as_ac_var=yes"
7581 else
7582   echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7584
7585         eval "$as_ac_var=no"
7586 fi
7587
7588 rm -f core conftest.err conftest.$ac_objext \
7589       conftest$ac_exeext conftest.$ac_ext
7590 fi
7591 ac_res=`eval echo '${'$as_ac_var'}'`
7592                { echo "$as_me:$LINENO: result: $ac_res" >&5
7593 echo "${ECHO_T}$ac_res" >&6; }
7594 if test `eval echo '${'$as_ac_var'}'` = yes; then
7595   cat >>confdefs.h <<_ACEOF
7596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7597 _ACEOF
7598
7599 else
7600
7601 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
7602 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
7603 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
7604   echo $ECHO_N "(cached) $ECHO_C" >&6
7605 else
7606   ac_check_lib_save_LIBS=$LIBS
7607 LIBS="-lresolv  $LIBS"
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
7615 /* Override any GCC internal prototype to avoid an error.
7616    Use char because int might match the return type of a GCC
7617    builtin and then its argument prototype would still apply.  */
7618 #ifdef __cplusplus
7619 extern "C"
7620 #endif
7621 char inet_aton ();
7622 int
7623 main ()
7624 {
7625 return inet_aton ();
7626   ;
7627   return 0;
7628 }
7629 _ACEOF
7630 rm -f conftest.$ac_objext conftest$ac_exeext
7631 if { (ac_try="$ac_link"
7632 case "(($ac_try" in
7633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634   *) ac_try_echo=$ac_try;;
7635 esac
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637   (eval "$ac_link") 2>conftest.er1
7638   ac_status=$?
7639   grep -v '^ *+' conftest.er1 >conftest.err
7640   rm -f conftest.er1
7641   cat conftest.err >&5
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); } &&
7644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7645   { (case "(($ac_try" in
7646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647   *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650   (eval "$ac_try") 2>&5
7651   ac_status=$?
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); }; } &&
7654          { ac_try='test -s conftest$ac_exeext'
7655   { (case "(($ac_try" in
7656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657   *) ac_try_echo=$ac_try;;
7658 esac
7659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7660   (eval "$ac_try") 2>&5
7661   ac_status=$?
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); }; }; then
7664   ac_cv_lib_resolv_inet_aton=yes
7665 else
7666   echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7668
7669         ac_cv_lib_resolv_inet_aton=no
7670 fi
7671
7672 rm -f core conftest.err conftest.$ac_objext \
7673       conftest$ac_exeext conftest.$ac_ext
7674 LIBS=$ac_check_lib_save_LIBS
7675 fi
7676 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
7677 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
7678 if test $ac_cv_lib_resolv_inet_aton = yes; then
7679   cat >>confdefs.h <<_ACEOF
7680 #define HAVE_LIBRESOLV 1
7681 _ACEOF
7682
7683   LIBS="-lresolv $LIBS"
7684
7685 fi
7686
7687 fi
7688 done
7689
7690
7691 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7692 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
7693 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7694   echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696   ac_check_lib_save_LIBS=$LIBS
7697 LIBS="-lxpg4  $LIBS"
7698 cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h.  */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h.  */
7704
7705 /* Override any GCC internal prototype to avoid an error.
7706    Use char because int might match the return type of a GCC
7707    builtin and then its argument prototype would still apply.  */
7708 #ifdef __cplusplus
7709 extern "C"
7710 #endif
7711 char _xpg4_setrunelocale ();
7712 int
7713 main ()
7714 {
7715 return _xpg4_setrunelocale ();
7716   ;
7717   return 0;
7718 }
7719 _ACEOF
7720 rm -f conftest.$ac_objext conftest$ac_exeext
7721 if { (ac_try="$ac_link"
7722 case "(($ac_try" in
7723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724   *) ac_try_echo=$ac_try;;
7725 esac
7726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7727   (eval "$ac_link") 2>conftest.er1
7728   ac_status=$?
7729   grep -v '^ *+' conftest.er1 >conftest.err
7730   rm -f conftest.er1
7731   cat conftest.err >&5
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); } &&
7734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7735   { (case "(($ac_try" in
7736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737   *) ac_try_echo=$ac_try;;
7738 esac
7739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7740   (eval "$ac_try") 2>&5
7741   ac_status=$?
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); }; } &&
7744          { ac_try='test -s conftest$ac_exeext'
7745   { (case "(($ac_try" in
7746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7747   *) ac_try_echo=$ac_try;;
7748 esac
7749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7750   (eval "$ac_try") 2>&5
7751   ac_status=$?
7752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753   (exit $ac_status); }; }; then
7754   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
7755 else
7756   echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7758
7759         ac_cv_lib_xpg4__xpg4_setrunelocale=no
7760 fi
7761
7762 rm -f core conftest.err conftest.$ac_objext \
7763       conftest$ac_exeext conftest.$ac_ext
7764 LIBS=$ac_check_lib_save_LIBS
7765 fi
7766 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7767 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
7768 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
7769   cat >>confdefs.h <<_ACEOF
7770 #define HAVE_LIBXPG4 1
7771 _ACEOF
7772
7773   LIBS="-lxpg4 $LIBS"
7774
7775 fi
7776
7777
7778 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
7779 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
7780 if test "${ac_cv_lib_poll_poll+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   ac_check_lib_save_LIBS=$LIBS
7784 LIBS="-lpoll  $LIBS"
7785 cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h.  */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h.  */
7791
7792 /* Override any GCC internal prototype to avoid an error.
7793    Use char because int might match the return type of a GCC
7794    builtin and then its argument prototype would still apply.  */
7795 #ifdef __cplusplus
7796 extern "C"
7797 #endif
7798 char poll ();
7799 int
7800 main ()
7801 {
7802 return poll ();
7803   ;
7804   return 0;
7805 }
7806 _ACEOF
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (ac_try="$ac_link"
7809 case "(($ac_try" in
7810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811   *) ac_try_echo=$ac_try;;
7812 esac
7813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814   (eval "$ac_link") 2>conftest.er1
7815   ac_status=$?
7816   grep -v '^ *+' conftest.er1 >conftest.err
7817   rm -f conftest.er1
7818   cat conftest.err >&5
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); } &&
7821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7822   { (case "(($ac_try" in
7823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824   *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827   (eval "$ac_try") 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); }; } &&
7831          { ac_try='test -s conftest$ac_exeext'
7832   { (case "(($ac_try" in
7833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834   *) ac_try_echo=$ac_try;;
7835 esac
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837   (eval "$ac_try") 2>&5
7838   ac_status=$?
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); }; }; then
7841   ac_cv_lib_poll_poll=yes
7842 else
7843   echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7845
7846         ac_cv_lib_poll_poll=no
7847 fi
7848
7849 rm -f core conftest.err conftest.$ac_objext \
7850       conftest$ac_exeext conftest.$ac_ext
7851 LIBS=$ac_check_lib_save_LIBS
7852 fi
7853 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
7854 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
7855 if test $ac_cv_lib_poll_poll = yes; then
7856   cat >>confdefs.h <<_ACEOF
7857 #define HAVE_LIBPOLL 1
7858 _ACEOF
7859
7860   LIBS="-lpoll $LIBS"
7861
7862 fi
7863
7864 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7865 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
7866 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
7867   echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869   ac_check_lib_save_LIBS=$LIBS
7870 LIBS="-lpthread  $LIBS"
7871 cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h.  */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h.  */
7877
7878 /* Override any GCC internal prototype to avoid an error.
7879    Use char because int might match the return type of a GCC
7880    builtin and then its argument prototype would still apply.  */
7881 #ifdef __cplusplus
7882 extern "C"
7883 #endif
7884 char pthread_create ();
7885 int
7886 main ()
7887 {
7888 return pthread_create ();
7889   ;
7890   return 0;
7891 }
7892 _ACEOF
7893 rm -f conftest.$ac_objext conftest$ac_exeext
7894 if { (ac_try="$ac_link"
7895 case "(($ac_try" in
7896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897   *) ac_try_echo=$ac_try;;
7898 esac
7899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7900   (eval "$ac_link") 2>conftest.er1
7901   ac_status=$?
7902   grep -v '^ *+' conftest.er1 >conftest.err
7903   rm -f conftest.er1
7904   cat conftest.err >&5
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); } &&
7907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7908   { (case "(($ac_try" in
7909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910   *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913   (eval "$ac_try") 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); }; } &&
7917          { ac_try='test -s conftest$ac_exeext'
7918   { (case "(($ac_try" in
7919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920   *) ac_try_echo=$ac_try;;
7921 esac
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923   (eval "$ac_try") 2>&5
7924   ac_status=$?
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); }; }; then
7927   ac_cv_lib_pthread_pthread_create=yes
7928 else
7929   echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7931
7932         ac_cv_lib_pthread_pthread_create=no
7933 fi
7934
7935 rm -f core conftest.err conftest.$ac_objext \
7936       conftest$ac_exeext conftest.$ac_ext
7937 LIBS=$ac_check_lib_save_LIBS
7938 fi
7939 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
7940 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
7941 if test $ac_cv_lib_pthread_pthread_create = yes; then
7942   LIBPTHREAD="-lpthread"
7943
7944 fi
7945
7946
7947 XLIB=""
7948
7949 XFILES=""
7950
7951 OPENGLFILES=""
7952
7953 GLU32FILES=""
7954
7955 OPENGL_LIBS=""
7956
7957
7958
7959 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7960 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7961 if test "${ac_cv_header_stdc+set}" = set; then
7962   echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964   cat >conftest.$ac_ext <<_ACEOF
7965 /* confdefs.h.  */
7966 _ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h.  */
7970 #include <stdlib.h>
7971 #include <stdarg.h>
7972 #include <string.h>
7973 #include <float.h>
7974
7975 int
7976 main ()
7977 {
7978
7979   ;
7980   return 0;
7981 }
7982 _ACEOF
7983 rm -f conftest.$ac_objext
7984 if { (ac_try="$ac_compile"
7985 case "(($ac_try" in
7986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987   *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990   (eval "$ac_compile") 2>conftest.er1
7991   ac_status=$?
7992   grep -v '^ *+' conftest.er1 >conftest.err
7993   rm -f conftest.er1
7994   cat conftest.err >&5
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); } &&
7997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7998   { (case "(($ac_try" in
7999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000   *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003   (eval "$ac_try") 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); }; } &&
8007          { ac_try='test -s conftest.$ac_objext'
8008   { (case "(($ac_try" in
8009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010   *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013   (eval "$ac_try") 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); }; }; then
8017   ac_cv_header_stdc=yes
8018 else
8019   echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8021
8022         ac_cv_header_stdc=no
8023 fi
8024
8025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026
8027 if test $ac_cv_header_stdc = yes; then
8028   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8029   cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h.  */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h.  */
8035 #include <string.h>
8036
8037 _ACEOF
8038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8039   $EGREP "memchr" >/dev/null 2>&1; then
8040   :
8041 else
8042   ac_cv_header_stdc=no
8043 fi
8044 rm -f conftest*
8045
8046 fi
8047
8048 if test $ac_cv_header_stdc = yes; then
8049   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8050   cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h.  */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h.  */
8056 #include <stdlib.h>
8057
8058 _ACEOF
8059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8060   $EGREP "free" >/dev/null 2>&1; then
8061   :
8062 else
8063   ac_cv_header_stdc=no
8064 fi
8065 rm -f conftest*
8066
8067 fi
8068
8069 if test $ac_cv_header_stdc = yes; then
8070   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8071   if test "$cross_compiling" = yes; then
8072   :
8073 else
8074   cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h.  */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h.  */
8080 #include <ctype.h>
8081 #include <stdlib.h>
8082 #if ((' ' & 0x0FF) == 0x020)
8083 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8084 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8085 #else
8086 # define ISLOWER(c) \
8087                    (('a' <= (c) && (c) <= 'i') \
8088                      || ('j' <= (c) && (c) <= 'r') \
8089                      || ('s' <= (c) && (c) <= 'z'))
8090 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8091 #endif
8092
8093 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8094 int
8095 main ()
8096 {
8097   int i;
8098   for (i = 0; i < 256; i++)
8099     if (XOR (islower (i), ISLOWER (i))
8100         || toupper (i) != TOUPPER (i))
8101       return 2;
8102   return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest$ac_exeext
8106 if { (ac_try="$ac_link"
8107 case "(($ac_try" in
8108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109   *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112   (eval "$ac_link") 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8116   { (case "(($ac_try" in
8117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118   *) ac_try_echo=$ac_try;;
8119 esac
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121   (eval "$ac_try") 2>&5
8122   ac_status=$?
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); }; }; then
8125   :
8126 else
8127   echo "$as_me: program exited with status $ac_status" >&5
8128 echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8130
8131 ( exit $ac_status )
8132 ac_cv_header_stdc=no
8133 fi
8134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8135 fi
8136
8137
8138 fi
8139 fi
8140 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8141 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8142 if test $ac_cv_header_stdc = yes; then
8143
8144 cat >>confdefs.h <<\_ACEOF
8145 #define STDC_HEADERS 1
8146 _ACEOF
8147
8148 fi
8149
8150 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8161                   inttypes.h stdint.h unistd.h
8162 do
8163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8167   echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169   cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h.  */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h.  */
8175 $ac_includes_default
8176
8177 #include <$ac_header>
8178 _ACEOF
8179 rm -f conftest.$ac_objext
8180 if { (ac_try="$ac_compile"
8181 case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_compile") 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } &&
8193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8194   { (case "(($ac_try" in
8195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196   *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199   (eval "$ac_try") 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); }; } &&
8203          { ac_try='test -s conftest.$ac_objext'
8204   { (case "(($ac_try" in
8205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206   *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209   (eval "$ac_try") 2>&5
8210   ac_status=$?
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); }; }; then
8213   eval "$as_ac_Header=yes"
8214 else
8215   echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8217
8218         eval "$as_ac_Header=no"
8219 fi
8220
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 fi
8223 ac_res=`eval echo '${'$as_ac_Header'}'`
8224                { echo "$as_me:$LINENO: result: $ac_res" >&5
8225 echo "${ECHO_T}$ac_res" >&6; }
8226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8227   cat >>confdefs.h <<_ACEOF
8228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8229 _ACEOF
8230
8231 fi
8232
8233 done
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343 for ac_header in \
8344         AudioUnit/AudioUnit.h \
8345         CoreAudio/CoreAudio.h \
8346         IOKit/IOKitLib.h \
8347         alsa/asoundlib.h \
8348         arpa/inet.h \
8349         arpa/nameser.h \
8350         asm/types.h \
8351         capi20.h \
8352         cups/cups.h \
8353         curses.h \
8354         direct.h \
8355         dlfcn.h \
8356         elf.h \
8357         float.h \
8358         fontconfig/fontconfig.h \
8359         getopt.h \
8360         gif_lib.h \
8361         ieeefp.h \
8362         io.h \
8363         jack/jack.h \
8364         jpeglib.h \
8365         lber.h \
8366         lcms.h \
8367         lcms/lcms.h \
8368         ldap.h \
8369         libaudioio.h \
8370         link.h \
8371         linux/cdrom.h \
8372         linux/compiler.h \
8373         linux/hdreg.h \
8374         linux/input.h \
8375         linux/ioctl.h \
8376         linux/joystick.h \
8377         linux/major.h \
8378         linux/param.h \
8379         linux/serial.h \
8380         linux/ucdrom.h \
8381         mach/machine.h \
8382         machine/cpu.h \
8383         machine/limits.h \
8384         machine/soundcard.h \
8385         mntent.h \
8386         ncurses.h \
8387         netdb.h \
8388         netinet/in.h \
8389         netinet/in_systm.h \
8390         netinet/tcp.h \
8391         netinet/tcp_fsm.h \
8392         openssl/err.h \
8393         openssl/ssl.h \
8394         poll.h \
8395         process.h \
8396         pthread.h \
8397         pwd.h \
8398         regex.h \
8399         sched.h \
8400         scsi/scsi.h \
8401         scsi/scsi_ioctl.h \
8402         scsi/sg.h \
8403         soundcard.h \
8404         stdint.h \
8405         strings.h \
8406         sys/asoundlib.h \
8407         sys/cdio.h \
8408         sys/elf32.h \
8409         sys/epoll.h \
8410         sys/errno.h \
8411         sys/event.h \
8412         sys/exec_elf.h \
8413         sys/filio.h \
8414         sys/ioctl.h \
8415         sys/ipc.h \
8416         sys/limits.h \
8417         sys/link.h \
8418         sys/lwp.h \
8419         sys/mman.h \
8420         sys/modem.h \
8421         sys/msg.h \
8422         sys/mtio.h \
8423         sys/param.h \
8424         sys/poll.h \
8425         sys/prctl.h \
8426         sys/ptrace.h \
8427         sys/reg.h \
8428         sys/resource.h \
8429         sys/scsiio.h \
8430         sys/shm.h \
8431         sys/signal.h \
8432         sys/socket.h \
8433         sys/sockio.h \
8434         sys/soundcard.h \
8435         sys/statvfs.h \
8436         sys/strtio.h \
8437         sys/syscall.h \
8438         sys/sysctl.h \
8439         sys/time.h \
8440         sys/times.h \
8441         sys/uio.h \
8442         sys/un.h \
8443         sys/vm86.h \
8444         sys/wait.h \
8445         syscall.h \
8446         termios.h \
8447         unicode/ubidi.h \
8448         unistd.h \
8449         utime.h \
8450         valgrind/memcheck.h
8451
8452 do
8453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8455   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 fi
8460 ac_res=`eval echo '${'$as_ac_Header'}'`
8461                { echo "$as_me:$LINENO: result: $ac_res" >&5
8462 echo "${ECHO_T}$ac_res" >&6; }
8463 else
8464   # Is the header compilable?
8465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h.  */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h.  */
8473 $ac_includes_default
8474 #include <$ac_header>
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8478 case "(($ac_try" in
8479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480   *) ac_try_echo=$ac_try;;
8481 esac
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483   (eval "$ac_compile") 2>conftest.er1
8484   ac_status=$?
8485   grep -v '^ *+' conftest.er1 >conftest.err
8486   rm -f conftest.er1
8487   cat conftest.err >&5
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } &&
8490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8491   { (case "(($ac_try" in
8492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493   *) ac_try_echo=$ac_try;;
8494 esac
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496   (eval "$ac_try") 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; } &&
8500          { ac_try='test -s conftest.$ac_objext'
8501   { (case "(($ac_try" in
8502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503   *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506   (eval "$ac_try") 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   ac_header_compiler=yes
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515         ac_header_compiler=no
8516 fi
8517
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8520 echo "${ECHO_T}$ac_header_compiler" >&6; }
8521
8522 # Is the header present?
8523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531 #include <$ac_header>
8532 _ACEOF
8533 if { (ac_try="$ac_cpp conftest.$ac_ext"
8534 case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8540   ac_status=$?
8541   grep -v '^ *+' conftest.er1 >conftest.err
8542   rm -f conftest.er1
8543   cat conftest.err >&5
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); } >/dev/null; then
8546   if test -s conftest.err; then
8547     ac_cpp_err=$ac_c_preproc_warn_flag
8548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8549   else
8550     ac_cpp_err=
8551   fi
8552 else
8553   ac_cpp_err=yes
8554 fi
8555 if test -z "$ac_cpp_err"; then
8556   ac_header_preproc=yes
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561   ac_header_preproc=no
8562 fi
8563
8564 rm -f conftest.err conftest.$ac_ext
8565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8566 echo "${ECHO_T}$ac_header_preproc" >&6; }
8567
8568 # So?  What about this header?
8569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8570   yes:no: )
8571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8575     ac_header_preproc=yes
8576     ;;
8577   no:yes:* )
8578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8580     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8581 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8584     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8585 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8588     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8590     ( cat <<\_ASBOX
8591 ## ------------------------------------ ##
8592 ## Report this to wine-devel@winehq.org ##
8593 ## ------------------------------------ ##
8594 _ASBOX
8595      ) | sed "s/^/$as_me: WARNING:     /" >&2
8596     ;;
8597 esac
8598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8601   echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603   eval "$as_ac_Header=\$ac_header_preproc"
8604 fi
8605 ac_res=`eval echo '${'$as_ac_Header'}'`
8606                { echo "$as_me:$LINENO: result: $ac_res" >&5
8607 echo "${ECHO_T}$ac_res" >&6; }
8608
8609 fi
8610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8611   cat >>confdefs.h <<_ACEOF
8612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8613 _ACEOF
8614
8615 fi
8616
8617 done
8618
8619 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8620 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
8621 if test "${ac_cv_header_stat_broken+set}" = set; then
8622   echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624   cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630 #include <sys/types.h>
8631 #include <sys/stat.h>
8632
8633 #if defined S_ISBLK && defined S_IFDIR
8634 # if S_ISBLK (S_IFDIR)
8635 You lose.
8636 # endif
8637 #endif
8638
8639 #if defined S_ISBLK && defined S_IFCHR
8640 # if S_ISBLK (S_IFCHR)
8641 You lose.
8642 # endif
8643 #endif
8644
8645 #if defined S_ISLNK && defined S_IFREG
8646 # if S_ISLNK (S_IFREG)
8647 You lose.
8648 # endif
8649 #endif
8650
8651 #if defined S_ISSOCK && defined S_IFREG
8652 # if S_ISSOCK (S_IFREG)
8653 You lose.
8654 # endif
8655 #endif
8656
8657 _ACEOF
8658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8659   $EGREP "You lose" >/dev/null 2>&1; then
8660   ac_cv_header_stat_broken=yes
8661 else
8662   ac_cv_header_stat_broken=no
8663 fi
8664 rm -f conftest*
8665
8666 fi
8667 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8668 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
8669 if test $ac_cv_header_stat_broken = yes; then
8670
8671 cat >>confdefs.h <<\_ACEOF
8672 #define STAT_MACROS_BROKEN 1
8673 _ACEOF
8674
8675 fi
8676
8677
8678
8679
8680
8681
8682
8683 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8684 do
8685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8689   echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
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 #include <sys/types.h>
8698      #if HAVE_SYS_PARAM_H
8699      # include <sys/param.h>
8700      #endif
8701
8702 #include <$ac_header>
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8706 case "(($ac_try" in
8707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708   *) ac_try_echo=$ac_try;;
8709 esac
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711   (eval "$ac_compile") 2>conftest.er1
8712   ac_status=$?
8713   grep -v '^ *+' conftest.er1 >conftest.err
8714   rm -f conftest.er1
8715   cat conftest.err >&5
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } &&
8718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8719   { (case "(($ac_try" in
8720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721   *) ac_try_echo=$ac_try;;
8722 esac
8723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724   (eval "$ac_try") 2>&5
8725   ac_status=$?
8726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727   (exit $ac_status); }; } &&
8728          { ac_try='test -s conftest.$ac_objext'
8729   { (case "(($ac_try" in
8730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731   *) ac_try_echo=$ac_try;;
8732 esac
8733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734   (eval "$ac_try") 2>&5
8735   ac_status=$?
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); }; }; then
8738   eval "$as_ac_Header=yes"
8739 else
8740   echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8742
8743         eval "$as_ac_Header=no"
8744 fi
8745
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 fi
8748 ac_res=`eval echo '${'$as_ac_Header'}'`
8749                { echo "$as_me:$LINENO: result: $ac_res" >&5
8750 echo "${ECHO_T}$ac_res" >&6; }
8751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8752   cat >>confdefs.h <<_ACEOF
8753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8754 _ACEOF
8755
8756 fi
8757
8758 done
8759
8760
8761
8762
8763
8764
8765
8766
8767 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
8768 do
8769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8773   echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775   cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h.  */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h.  */
8781 #include <sys/types.h>
8782      #if HAVE_SYS_SOCKET_H
8783      # include <sys/socket.h>
8784      #endif
8785
8786 #include <$ac_header>
8787 _ACEOF
8788 rm -f conftest.$ac_objext
8789 if { (ac_try="$ac_compile"
8790 case "(($ac_try" in
8791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792   *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795   (eval "$ac_compile") 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } &&
8802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8803   { (case "(($ac_try" in
8804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805   *) ac_try_echo=$ac_try;;
8806 esac
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808   (eval "$ac_try") 2>&5
8809   ac_status=$?
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); }; } &&
8812          { ac_try='test -s conftest.$ac_objext'
8813   { (case "(($ac_try" in
8814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815   *) ac_try_echo=$ac_try;;
8816 esac
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818   (eval "$ac_try") 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }; }; then
8822   eval "$as_ac_Header=yes"
8823 else
8824   echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827         eval "$as_ac_Header=no"
8828 fi
8829
8830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 fi
8832 ac_res=`eval echo '${'$as_ac_Header'}'`
8833                { echo "$as_me:$LINENO: result: $ac_res" >&5
8834 echo "${ECHO_T}$ac_res" >&6; }
8835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8836   cat >>confdefs.h <<_ACEOF
8837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8838 _ACEOF
8839
8840 fi
8841
8842 done
8843
8844
8845
8846 for ac_header in resolv.h
8847 do
8848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8852   echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854   cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h.  */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h.  */
8860 #include <sys/types.h>
8861      #if HAVE_SYS_SOCKET_H
8862      # include <sys/socket.h>
8863      #endif
8864      #if HAVE_NETINET_IN_H
8865      # include <netinet/in.h>
8866      #endif
8867      #if HAVE_ARPA_NAMESER_H
8868      # include <arpa/nameser.h>
8869      #endif
8870
8871 #include <$ac_header>
8872 _ACEOF
8873 rm -f conftest.$ac_objext
8874 if { (ac_try="$ac_compile"
8875 case "(($ac_try" in
8876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877   *) ac_try_echo=$ac_try;;
8878 esac
8879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880   (eval "$ac_compile") 2>conftest.er1
8881   ac_status=$?
8882   grep -v '^ *+' conftest.er1 >conftest.err
8883   rm -f conftest.er1
8884   cat conftest.err >&5
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); } &&
8887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8888   { (case "(($ac_try" in
8889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890   *) ac_try_echo=$ac_try;;
8891 esac
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893   (eval "$ac_try") 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); }; } &&
8897          { ac_try='test -s conftest.$ac_objext'
8898   { (case "(($ac_try" in
8899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900   *) ac_try_echo=$ac_try;;
8901 esac
8902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903   (eval "$ac_try") 2>&5
8904   ac_status=$?
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); }; }; then
8907   eval "$as_ac_Header=yes"
8908 else
8909   echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912         eval "$as_ac_Header=no"
8913 fi
8914
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916 fi
8917 ac_res=`eval echo '${'$as_ac_Header'}'`
8918                { echo "$as_me:$LINENO: result: $ac_res" >&5
8919 echo "${ECHO_T}$ac_res" >&6; }
8920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8921   cat >>confdefs.h <<_ACEOF
8922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8923 _ACEOF
8924
8925 fi
8926
8927 done
8928
8929
8930
8931 for ac_header in ucontext.h
8932 do
8933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8937   echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939   cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h.  */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h.  */
8945 #include <signal.h>
8946
8947 #include <$ac_header>
8948 _ACEOF
8949 rm -f conftest.$ac_objext
8950 if { (ac_try="$ac_compile"
8951 case "(($ac_try" in
8952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953   *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956   (eval "$ac_compile") 2>conftest.er1
8957   ac_status=$?
8958   grep -v '^ *+' conftest.er1 >conftest.err
8959   rm -f conftest.er1
8960   cat conftest.err >&5
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); } &&
8963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8964   { (case "(($ac_try" in
8965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966   *) ac_try_echo=$ac_try;;
8967 esac
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969   (eval "$ac_try") 2>&5
8970   ac_status=$?
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); }; } &&
8973          { ac_try='test -s conftest.$ac_objext'
8974   { (case "(($ac_try" in
8975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976   *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979   (eval "$ac_try") 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; }; then
8983   eval "$as_ac_Header=yes"
8984 else
8985   echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988         eval "$as_ac_Header=no"
8989 fi
8990
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 fi
8993 ac_res=`eval echo '${'$as_ac_Header'}'`
8994                { echo "$as_me:$LINENO: result: $ac_res" >&5
8995 echo "${ECHO_T}$ac_res" >&6; }
8996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8997   cat >>confdefs.h <<_ACEOF
8998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8999 _ACEOF
9000
9001 fi
9002
9003 done
9004
9005
9006
9007
9008 for ac_header in linux/ipx.h linux/videodev.h
9009 do
9010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9014   echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016   cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h.  */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h.  */
9022 #ifdef HAVE_SYS_TIME_H
9023 #include <sys/time.h>
9024 #endif
9025 #include <sys/types.h>
9026 #ifdef HAVE_ASM_TYPES_H
9027 #include <asm/types.h>
9028 #endif
9029
9030 #include <$ac_header>
9031 _ACEOF
9032 rm -f conftest.$ac_objext
9033 if { (ac_try="$ac_compile"
9034 case "(($ac_try" in
9035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036   *) ac_try_echo=$ac_try;;
9037 esac
9038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039   (eval "$ac_compile") 2>conftest.er1
9040   ac_status=$?
9041   grep -v '^ *+' conftest.er1 >conftest.err
9042   rm -f conftest.er1
9043   cat conftest.err >&5
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } &&
9046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9047   { (case "(($ac_try" in
9048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049   *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052   (eval "$ac_try") 2>&5
9053   ac_status=$?
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); }; } &&
9056          { ac_try='test -s conftest.$ac_objext'
9057   { (case "(($ac_try" in
9058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059   *) ac_try_echo=$ac_try;;
9060 esac
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062   (eval "$ac_try") 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; }; then
9066   eval "$as_ac_Header=yes"
9067 else
9068   echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071         eval "$as_ac_Header=no"
9072 fi
9073
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 fi
9076 ac_res=`eval echo '${'$as_ac_Header'}'`
9077                { echo "$as_me:$LINENO: result: $ac_res" >&5
9078 echo "${ECHO_T}$ac_res" >&6; }
9079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9080   cat >>confdefs.h <<_ACEOF
9081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9082 _ACEOF
9083
9084 fi
9085
9086 done
9087
9088
9089
9090 for ac_header in linux/capi.h
9091 do
9092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9096   echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098   cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h.  */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h.  */
9104 #define __user
9105
9106 #include <$ac_header>
9107 _ACEOF
9108 rm -f conftest.$ac_objext
9109 if { (ac_try="$ac_compile"
9110 case "(($ac_try" in
9111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112   *) ac_try_echo=$ac_try;;
9113 esac
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115   (eval "$ac_compile") 2>conftest.er1
9116   ac_status=$?
9117   grep -v '^ *+' conftest.er1 >conftest.err
9118   rm -f conftest.er1
9119   cat conftest.err >&5
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); } &&
9122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9123   { (case "(($ac_try" in
9124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125   *) ac_try_echo=$ac_try;;
9126 esac
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128   (eval "$ac_try") 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); }; } &&
9132          { ac_try='test -s conftest.$ac_objext'
9133   { (case "(($ac_try" in
9134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135   *) ac_try_echo=$ac_try;;
9136 esac
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138   (eval "$ac_try") 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); }; }; then
9142   eval "$as_ac_Header=yes"
9143 else
9144   echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9146
9147         eval "$as_ac_Header=no"
9148 fi
9149
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 fi
9152 ac_res=`eval echo '${'$as_ac_Header'}'`
9153                { echo "$as_me:$LINENO: result: $ac_res" >&5
9154 echo "${ECHO_T}$ac_res" >&6; }
9155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9156   cat >>confdefs.h <<_ACEOF
9157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9158 _ACEOF
9159
9160 fi
9161
9162 done
9163
9164
9165
9166 if test "$have_x" = "yes"
9167 then
9168     XLIB="-lXext -lX11"
9169     ac_save_CPPFLAGS="$CPPFLAGS"
9170     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181 for ac_header in X11/Xlib.h \
9182                       X11/XKBlib.h \
9183                       X11/Xutil.h \
9184                       X11/extensions/shape.h \
9185                       X11/extensions/XInput.h \
9186                       X11/extensions/XShm.h \
9187                       X11/extensions/Xrandr.h \
9188                       X11/extensions/Xrender.h \
9189                       X11/extensions/xf86vmode.h
9190 do
9191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9195   echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197   cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h.  */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h.  */
9203 #ifdef HAVE_X11_XLIB_H
9204 # include <X11/Xlib.h>
9205 #endif
9206 #ifdef HAVE_X11_XUTIL_H
9207 # include <X11/Xutil.h>
9208 #endif
9209
9210 #include <$ac_header>
9211 _ACEOF
9212 rm -f conftest.$ac_objext
9213 if { (ac_try="$ac_compile"
9214 case "(($ac_try" in
9215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216   *) ac_try_echo=$ac_try;;
9217 esac
9218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219   (eval "$ac_compile") 2>conftest.er1
9220   ac_status=$?
9221   grep -v '^ *+' conftest.er1 >conftest.err
9222   rm -f conftest.er1
9223   cat conftest.err >&5
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); } &&
9226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9227   { (case "(($ac_try" in
9228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229   *) ac_try_echo=$ac_try;;
9230 esac
9231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232   (eval "$ac_try") 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); }; } &&
9236          { ac_try='test -s conftest.$ac_objext'
9237   { (case "(($ac_try" in
9238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9239   *) ac_try_echo=$ac_try;;
9240 esac
9241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9242   (eval "$ac_try") 2>&5
9243   ac_status=$?
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); }; }; 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
9264 fi
9265
9266 done
9267
9268
9269                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9270         then
9271               { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9272 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
9273 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284
9285 /* Override any GCC internal prototype to avoid an error.
9286    Use char because int might match the return type of a GCC
9287    builtin and then its argument prototype would still apply.  */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char XkbQueryExtension ();
9292 int
9293 main ()
9294 {
9295 return XkbQueryExtension ();
9296   ;
9297   return 0;
9298 }
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (ac_try="$ac_link"
9302 case "(($ac_try" in
9303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304   *) ac_try_echo=$ac_try;;
9305 esac
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307   (eval "$ac_link") 2>conftest.er1
9308   ac_status=$?
9309   grep -v '^ *+' conftest.er1 >conftest.err
9310   rm -f conftest.er1
9311   cat conftest.err >&5
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); } &&
9314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9315   { (case "(($ac_try" in
9316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317   *) ac_try_echo=$ac_try;;
9318 esac
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320   (eval "$ac_try") 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; } &&
9324          { ac_try='test -s conftest$ac_exeext'
9325   { (case "(($ac_try" in
9326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327   *) ac_try_echo=$ac_try;;
9328 esac
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330   (eval "$ac_try") 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; }; then
9334   ac_cv_lib_X11_XkbQueryExtension=yes
9335 else
9336   echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9338
9339         ac_cv_lib_X11_XkbQueryExtension=no
9340 fi
9341
9342 rm -f core conftest.err conftest.$ac_objext \
9343       conftest$ac_exeext conftest.$ac_ext
9344 LIBS=$ac_check_lib_save_LIBS
9345 fi
9346 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9347 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9348 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
9349
9350 cat >>confdefs.h <<\_ACEOF
9351 #define HAVE_XKB 1
9352 _ACEOF
9353
9354 fi
9355
9356         fi
9357
9358                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9359         then
9360               { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9361 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
9362 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9363   echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365   ac_check_lib_save_LIBS=$LIBS
9366 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h.  */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h.  */
9373
9374 /* Override any GCC internal prototype to avoid an error.
9375    Use char because int might match the return type of a GCC
9376    builtin and then its argument prototype would still apply.  */
9377 #ifdef __cplusplus
9378 extern "C"
9379 #endif
9380 char XShmQueryExtension ();
9381 int
9382 main ()
9383 {
9384 return XShmQueryExtension ();
9385   ;
9386   return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (ac_try="$ac_link"
9391 case "(($ac_try" in
9392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393   *) ac_try_echo=$ac_try;;
9394 esac
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396   (eval "$ac_link") 2>conftest.er1
9397   ac_status=$?
9398   grep -v '^ *+' conftest.er1 >conftest.err
9399   rm -f conftest.er1
9400   cat conftest.err >&5
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); } &&
9403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9404   { (case "(($ac_try" in
9405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406   *) ac_try_echo=$ac_try;;
9407 esac
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409   (eval "$ac_try") 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; } &&
9413          { ac_try='test -s conftest$ac_exeext'
9414   { (case "(($ac_try" in
9415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416   *) ac_try_echo=$ac_try;;
9417 esac
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419   (eval "$ac_try") 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); }; }; then
9423   ac_cv_lib_Xext_XShmQueryExtension=yes
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428         ac_cv_lib_Xext_XShmQueryExtension=no
9429 fi
9430
9431 rm -f core conftest.err conftest.$ac_objext \
9432       conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9434 fi
9435 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9436 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9437 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
9438
9439 cat >>confdefs.h <<\_ACEOF
9440 #define HAVE_LIBXXSHM 1
9441 _ACEOF
9442
9443 fi
9444
9445         fi
9446
9447                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9448         then
9449               { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9450 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9451 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9452   echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454   ac_check_lib_save_LIBS=$LIBS
9455 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9456 cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h.  */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h.  */
9462
9463 /* Override any GCC internal prototype to avoid an error.
9464    Use char because int might match the return type of a GCC
9465    builtin and then its argument prototype would still apply.  */
9466 #ifdef __cplusplus
9467 extern "C"
9468 #endif
9469 char XShapeQueryExtension ();
9470 int
9471 main ()
9472 {
9473 return XShapeQueryExtension ();
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (ac_try="$ac_link"
9480 case "(($ac_try" in
9481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482   *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485   (eval "$ac_link") 2>conftest.er1
9486   ac_status=$?
9487   grep -v '^ *+' conftest.er1 >conftest.err
9488   rm -f conftest.er1
9489   cat conftest.err >&5
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); } &&
9492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9493   { (case "(($ac_try" in
9494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495   *) ac_try_echo=$ac_try;;
9496 esac
9497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498   (eval "$ac_try") 2>&5
9499   ac_status=$?
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); }; } &&
9502          { ac_try='test -s conftest$ac_exeext'
9503   { (case "(($ac_try" in
9504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505   *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508   (eval "$ac_try") 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; }; then
9512   ac_cv_lib_Xext_XShapeQueryExtension=yes
9513 else
9514   echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517         ac_cv_lib_Xext_XShapeQueryExtension=no
9518 fi
9519
9520 rm -f core conftest.err conftest.$ac_objext \
9521       conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9523 fi
9524 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9525 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9526 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9527
9528 cat >>confdefs.h <<\_ACEOF
9529 #define HAVE_LIBXSHAPE 1
9530 _ACEOF
9531
9532 fi
9533
9534         fi
9535
9536                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9537         then
9538                 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9539 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9540 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   ac_check_lib_save_LIBS=$LIBS
9544 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9545 cat >conftest.$ac_ext <<_ACEOF
9546 /* confdefs.h.  */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h.  */
9551
9552 /* Override any GCC internal prototype to avoid an error.
9553    Use char because int might match the return type of a GCC
9554    builtin and then its argument prototype would still apply.  */
9555 #ifdef __cplusplus
9556 extern "C"
9557 #endif
9558 char XF86VidModeQueryExtension ();
9559 int
9560 main ()
9561 {
9562 return XF86VidModeQueryExtension ();
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext conftest$ac_exeext
9568 if { (ac_try="$ac_link"
9569 case "(($ac_try" in
9570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571   *) ac_try_echo=$ac_try;;
9572 esac
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574   (eval "$ac_link") 2>conftest.er1
9575   ac_status=$?
9576   grep -v '^ *+' conftest.er1 >conftest.err
9577   rm -f conftest.er1
9578   cat conftest.err >&5
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); } &&
9581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9582   { (case "(($ac_try" in
9583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9584   *) ac_try_echo=$ac_try;;
9585 esac
9586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587   (eval "$ac_try") 2>&5
9588   ac_status=$?
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); }; } &&
9591          { ac_try='test -s conftest$ac_exeext'
9592   { (case "(($ac_try" in
9593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594   *) ac_try_echo=$ac_try;;
9595 esac
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597   (eval "$ac_try") 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); }; }; then
9601   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9602 else
9603   echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605
9606         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9607 fi
9608
9609 rm -f core conftest.err conftest.$ac_objext \
9610       conftest$ac_exeext conftest.$ac_ext
9611 LIBS=$ac_check_lib_save_LIBS
9612 fi
9613 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9614 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9615 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9616
9617 cat >>confdefs.h <<\_ACEOF
9618 #define HAVE_LIBXXF86VM 1
9619 _ACEOF
9620
9621                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
9622
9623 fi
9624
9625         fi
9626
9627                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9628         then
9629                 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h.  */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h.  */
9635 #include <X11/Xlib.h>
9636 #include <X11/extensions/Xrandr.h>
9637 int
9638 main ()
9639 {
9640 static typeof(XRRSetScreenConfigAndRate) * func;
9641   ;
9642   return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext
9646 if { (ac_try="$ac_compile"
9647 case "(($ac_try" in
9648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649   *) ac_try_echo=$ac_try;;
9650 esac
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652   (eval "$ac_compile") 2>conftest.er1
9653   ac_status=$?
9654   grep -v '^ *+' conftest.er1 >conftest.err
9655   rm -f conftest.er1
9656   cat conftest.err >&5
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); } &&
9659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9660   { (case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665   (eval "$ac_try") 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); }; } &&
9669          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); }; }; then
9679
9680 cat >>confdefs.h <<\_ACEOF
9681 #define HAVE_LIBXRANDR 1
9682 _ACEOF
9683
9684 else
9685   echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688
9689 fi
9690
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692         fi
9693
9694                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9695         then
9696               { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9697 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9698 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9699   echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701   ac_check_lib_save_LIBS=$LIBS
9702 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h.  */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h.  */
9709
9710 /* Override any GCC internal prototype to avoid an error.
9711    Use char because int might match the return type of a GCC
9712    builtin and then its argument prototype would still apply.  */
9713 #ifdef __cplusplus
9714 extern "C"
9715 #endif
9716 char XRenderSetPictureTransform ();
9717 int
9718 main ()
9719 {
9720 return XRenderSetPictureTransform ();
9721   ;
9722   return 0;
9723 }
9724 _ACEOF
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (ac_try="$ac_link"
9727 case "(($ac_try" in
9728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729   *) ac_try_echo=$ac_try;;
9730 esac
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732   (eval "$ac_link") 2>conftest.er1
9733   ac_status=$?
9734   grep -v '^ *+' conftest.er1 >conftest.err
9735   rm -f conftest.er1
9736   cat conftest.err >&5
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); } &&
9739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9740   { (case "(($ac_try" in
9741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742   *) ac_try_echo=$ac_try;;
9743 esac
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745   (eval "$ac_try") 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); }; } &&
9749          { ac_try='test -s conftest$ac_exeext'
9750   { (case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755   (eval "$ac_try") 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; }; then
9759   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9760 else
9761   echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9763
9764         ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9765 fi
9766
9767 rm -f core conftest.err conftest.$ac_objext \
9768       conftest$ac_exeext conftest.$ac_ext
9769 LIBS=$ac_check_lib_save_LIBS
9770 fi
9771 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9772 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9773 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9774
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9777 _ACEOF
9778
9779 fi
9780
9781         fi
9782
9783         if test "x$with_opengl" != "xno"
9784     then
9785
9786
9787
9788
9789 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
9790 do
9791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9795   echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797   cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h.  */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h.  */
9803 #ifdef HAVE_GL_GLX_H
9804 # include <GL/glx.h>
9805 #endif
9806
9807 #include <$ac_header>
9808 _ACEOF
9809 rm -f conftest.$ac_objext
9810 if { (ac_try="$ac_compile"
9811 case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_compile") 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } &&
9823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9824   { (case "(($ac_try" in
9825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826   *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829   (eval "$ac_try") 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); }; } &&
9833          { ac_try='test -s conftest.$ac_objext'
9834   { (case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839   (eval "$ac_try") 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; }; then
9843   eval "$as_ac_Header=yes"
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848         eval "$as_ac_Header=no"
9849 fi
9850
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 fi
9853 ac_res=`eval echo '${'$as_ac_Header'}'`
9854                { echo "$as_me:$LINENO: result: $ac_res" >&5
9855 echo "${ECHO_T}$ac_res" >&6; }
9856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9857   cat >>confdefs.h <<_ACEOF
9858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9859 _ACEOF
9860
9861 fi
9862
9863 done
9864
9865         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9866         then
9867                     { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9868 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
9869 if test "${wine_cv_opengl_version_OK+set}" = set; then
9870   echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872   cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878 #include <GL/gl.h>
9879 int
9880 main ()
9881 {
9882 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext
9888 if { (ac_try="$ac_compile"
9889 case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_compile") 2>conftest.er1
9895   ac_status=$?
9896   grep -v '^ *+' conftest.er1 >conftest.err
9897   rm -f conftest.er1
9898   cat conftest.err >&5
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); } &&
9901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9902   { (case "(($ac_try" in
9903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904   *) ac_try_echo=$ac_try;;
9905 esac
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907   (eval "$ac_try") 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; } &&
9911          { ac_try='test -s conftest.$ac_objext'
9912   { (case "(($ac_try" in
9913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914   *) ac_try_echo=$ac_try;;
9915 esac
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917   (eval "$ac_try") 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; }; then
9921   wine_cv_opengl_version_OK="yes"
9922 else
9923   echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926         wine_cv_opengl_version_OK="no"
9927
9928 fi
9929
9930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931
9932 fi
9933 { echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
9934 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; }
9935
9936             if test "$wine_cv_opengl_version_OK" = "yes"
9937             then
9938                                 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
9939 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
9940 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   ac_check_lib_save_LIBS=$LIBS
9944 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
9945 cat >conftest.$ac_ext <<_ACEOF
9946 /* confdefs.h.  */
9947 _ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h.  */
9951
9952 /* Override any GCC internal prototype to avoid an error.
9953    Use char because int might match the return type of a GCC
9954    builtin and then its argument prototype would still apply.  */
9955 #ifdef __cplusplus
9956 extern "C"
9957 #endif
9958 char glXCreateContext ();
9959 int
9960 main ()
9961 {
9962 return glXCreateContext ();
9963   ;
9964   return 0;
9965 }
9966 _ACEOF
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (ac_try="$ac_link"
9969 case "(($ac_try" in
9970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971   *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974   (eval "$ac_link") 2>conftest.er1
9975   ac_status=$?
9976   grep -v '^ *+' conftest.er1 >conftest.err
9977   rm -f conftest.er1
9978   cat conftest.err >&5
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); } &&
9981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9982   { (case "(($ac_try" in
9983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984   *) ac_try_echo=$ac_try;;
9985 esac
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987   (eval "$ac_try") 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); }; } &&
9991          { ac_try='test -s conftest$ac_exeext'
9992   { (case "(($ac_try" in
9993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994   *) ac_try_echo=$ac_try;;
9995 esac
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997   (eval "$ac_try") 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; }; then
10001   ac_cv_lib_GL_glXCreateContext=yes
10002 else
10003   echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10005
10006         ac_cv_lib_GL_glXCreateContext=no
10007 fi
10008
10009 rm -f core conftest.err conftest.$ac_objext \
10010       conftest$ac_exeext conftest.$ac_ext
10011 LIBS=$ac_check_lib_save_LIBS
10012 fi
10013 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
10014 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
10015 if test $ac_cv_lib_GL_glXCreateContext = yes; then
10016   OPENGL_LIBS="-lGL"
10017
10018 fi
10019
10020
10021                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
10022                 then
10023                         OPENGLFILES='$(OPENGLFILES)'
10024
10025 cat >>confdefs.h <<\_ACEOF
10026 #define HAVE_OPENGL 1
10027 _ACEOF
10028
10029                 else
10030                     if test -f /usr/X11R6/lib/libGL.a
10031                     then
10032                        { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
10033 This prevents linking to OpenGL. Delete the file and restart configure." >&5
10034 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
10035 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
10036    { (exit 1); exit 1; }; }
10037                     fi
10038                 fi
10039
10040                                 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10041 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
10042 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
10043   echo $ECHO_N "(cached) $ECHO_C" >&6
10044 else
10045   ac_check_lib_save_LIBS=$LIBS
10046 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
10047                  $LIBS"
10048 cat >conftest.$ac_ext <<_ACEOF
10049 /* confdefs.h.  */
10050 _ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h.  */
10054
10055 /* Override any GCC internal prototype to avoid an error.
10056    Use char because int might match the return type of a GCC
10057    builtin and then its argument prototype would still apply.  */
10058 #ifdef __cplusplus
10059 extern "C"
10060 #endif
10061 char gluLookAt ();
10062 int
10063 main ()
10064 {
10065 return gluLookAt ();
10066   ;
10067   return 0;
10068 }
10069 _ACEOF
10070 rm -f conftest.$ac_objext conftest$ac_exeext
10071 if { (ac_try="$ac_link"
10072 case "(($ac_try" in
10073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074   *) ac_try_echo=$ac_try;;
10075 esac
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077   (eval "$ac_link") 2>conftest.er1
10078   ac_status=$?
10079   grep -v '^ *+' conftest.er1 >conftest.err
10080   rm -f conftest.er1
10081   cat conftest.err >&5
10082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083   (exit $ac_status); } &&
10084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10085   { (case "(($ac_try" in
10086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087   *) ac_try_echo=$ac_try;;
10088 esac
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090   (eval "$ac_try") 2>&5
10091   ac_status=$?
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); }; } &&
10094          { ac_try='test -s conftest$ac_exeext'
10095   { (case "(($ac_try" in
10096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097   *) ac_try_echo=$ac_try;;
10098 esac
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100   (eval "$ac_try") 2>&5
10101   ac_status=$?
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); }; }; then
10104   ac_cv_lib_GLU_gluLookAt=yes
10105 else
10106   echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109         ac_cv_lib_GLU_gluLookAt=no
10110 fi
10111
10112 rm -f core conftest.err conftest.$ac_objext \
10113       conftest$ac_exeext conftest.$ac_ext
10114 LIBS=$ac_check_lib_save_LIBS
10115 fi
10116 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10117 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
10118 if test $ac_cv_lib_GLU_gluLookAt = yes; then
10119   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
10120                              GLU32FILES='$(GLU32FILES)'
10121
10122 fi
10123
10124              fi
10125
10126                           { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
10127 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
10128 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
10129   echo $ECHO_N "(cached) $ECHO_C" >&6
10130 else
10131   ac_check_lib_save_LIBS=$LIBS
10132 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
10133 cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h.  */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h.  */
10139
10140 /* Override any GCC internal prototype to avoid an error.
10141    Use char because int might match the return type of a GCC
10142    builtin and then its argument prototype would still apply.  */
10143 #ifdef __cplusplus
10144 extern "C"
10145 #endif
10146 char glutMainLoop ();
10147 int
10148 main ()
10149 {
10150 return glutMainLoop ();
10151   ;
10152   return 0;
10153 }
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159   *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162   (eval "$ac_link") 2>conftest.er1
10163   ac_status=$?
10164   grep -v '^ *+' conftest.er1 >conftest.err
10165   rm -f conftest.er1
10166   cat conftest.err >&5
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); } &&
10169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170   { (case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175   (eval "$ac_try") 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; } &&
10179          { ac_try='test -s conftest$ac_exeext'
10180   { (case "(($ac_try" in
10181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182   *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185   (eval "$ac_try") 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; }; then
10189   ac_cv_lib_glut_glutMainLoop=yes
10190 else
10191   echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194         ac_cv_lib_glut_glutMainLoop=no
10195 fi
10196
10197 rm -f core conftest.err conftest.$ac_objext \
10198       conftest$ac_exeext conftest.$ac_ext
10199 LIBS=$ac_check_lib_save_LIBS
10200 fi
10201 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
10202 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
10203 if test $ac_cv_lib_glut_glutMainLoop = yes; then
10204   GLUT_LIBS="-lglut -lXmu -lXi"
10205
10206                         GLUT32FILES='$(GLUT32FILES)'
10207
10208 fi
10209
10210          fi
10211     fi
10212
10213         NASLIBS=""
10214
10215
10216 for ac_header in audio/audiolib.h
10217 do
10218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10223   echo $ECHO_N "(cached) $ECHO_C" >&6
10224 fi
10225 ac_res=`eval echo '${'$as_ac_Header'}'`
10226                { echo "$as_me:$LINENO: result: $ac_res" >&5
10227 echo "${ECHO_T}$ac_res" >&6; }
10228 else
10229   # Is the header compilable?
10230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238 $ac_includes_default
10239 #include <$ac_header>
10240 _ACEOF
10241 rm -f conftest.$ac_objext
10242 if { (ac_try="$ac_compile"
10243 case "(($ac_try" in
10244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245   *) ac_try_echo=$ac_try;;
10246 esac
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248   (eval "$ac_compile") 2>conftest.er1
10249   ac_status=$?
10250   grep -v '^ *+' conftest.er1 >conftest.err
10251   rm -f conftest.er1
10252   cat conftest.err >&5
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } &&
10255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10256   { (case "(($ac_try" in
10257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258   *) ac_try_echo=$ac_try;;
10259 esac
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261   (eval "$ac_try") 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; } &&
10265          { ac_try='test -s conftest.$ac_objext'
10266   { (case "(($ac_try" in
10267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268   *) ac_try_echo=$ac_try;;
10269 esac
10270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10271   (eval "$ac_try") 2>&5
10272   ac_status=$?
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); }; }; then
10275   ac_header_compiler=yes
10276 else
10277   echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10279
10280         ac_header_compiler=no
10281 fi
10282
10283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10285 echo "${ECHO_T}$ac_header_compiler" >&6; }
10286
10287 # Is the header present?
10288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10290 cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h.  */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h.  */
10296 #include <$ac_header>
10297 _ACEOF
10298 if { (ac_try="$ac_cpp conftest.$ac_ext"
10299 case "(($ac_try" in
10300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301   *) ac_try_echo=$ac_try;;
10302 esac
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10305   ac_status=$?
10306   grep -v '^ *+' conftest.er1 >conftest.err
10307   rm -f conftest.er1
10308   cat conftest.err >&5
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } >/dev/null; then
10311   if test -s conftest.err; then
10312     ac_cpp_err=$ac_c_preproc_warn_flag
10313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10314   else
10315     ac_cpp_err=
10316   fi
10317 else
10318   ac_cpp_err=yes
10319 fi
10320 if test -z "$ac_cpp_err"; then
10321   ac_header_preproc=yes
10322 else
10323   echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10325
10326   ac_header_preproc=no
10327 fi
10328
10329 rm -f conftest.err conftest.$ac_ext
10330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10331 echo "${ECHO_T}$ac_header_preproc" >&6; }
10332
10333 # So?  What about this header?
10334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10335   yes:no: )
10336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10340     ac_header_preproc=yes
10341     ;;
10342   no:yes:* )
10343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10355     ( cat <<\_ASBOX
10356 ## ------------------------------------ ##
10357 ## Report this to wine-devel@winehq.org ##
10358 ## ------------------------------------ ##
10359 _ASBOX
10360      ) | sed "s/^/$as_me: WARNING:     /" >&2
10361     ;;
10362 esac
10363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10366   echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368   eval "$as_ac_Header=\$ac_header_preproc"
10369 fi
10370 ac_res=`eval echo '${'$as_ac_Header'}'`
10371                { echo "$as_me:$LINENO: result: $ac_res" >&5
10372 echo "${ECHO_T}$ac_res" >&6; }
10373
10374 fi
10375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10376   cat >>confdefs.h <<_ACEOF
10377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10378 _ACEOF
10379
10380 for ac_header in audio/soundlib.h
10381 do
10382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10386   echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388   cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h.  */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h.  */
10394 #include <audio/audiolib.h>
10395
10396 #include <$ac_header>
10397 _ACEOF
10398 rm -f conftest.$ac_objext
10399 if { (ac_try="$ac_compile"
10400 case "(($ac_try" in
10401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402   *) ac_try_echo=$ac_try;;
10403 esac
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405   (eval "$ac_compile") 2>conftest.er1
10406   ac_status=$?
10407   grep -v '^ *+' conftest.er1 >conftest.err
10408   rm -f conftest.er1
10409   cat conftest.err >&5
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } &&
10412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10413   { (case "(($ac_try" in
10414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415   *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418   (eval "$ac_try") 2>&5
10419   ac_status=$?
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); }; } &&
10422          { ac_try='test -s conftest.$ac_objext'
10423   { (case "(($ac_try" in
10424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425   *) ac_try_echo=$ac_try;;
10426 esac
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428   (eval "$ac_try") 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; }; then
10432   eval "$as_ac_Header=yes"
10433 else
10434   echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437         eval "$as_ac_Header=no"
10438 fi
10439
10440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 fi
10442 ac_res=`eval echo '${'$as_ac_Header'}'`
10443                { echo "$as_me:$LINENO: result: $ac_res" >&5
10444 echo "${ECHO_T}$ac_res" >&6; }
10445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10446   cat >>confdefs.h <<_ACEOF
10447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10448 _ACEOF
10449
10450 fi
10451
10452 done
10453
10454           { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10455 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
10456 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10457   echo $ECHO_N "(cached) $ECHO_C" >&6
10458 else
10459   ac_check_lib_save_LIBS=$LIBS
10460 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10461 cat >conftest.$ac_ext <<_ACEOF
10462 /* confdefs.h.  */
10463 _ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h.  */
10467
10468 /* Override any GCC internal prototype to avoid an error.
10469    Use char because int might match the return type of a GCC
10470    builtin and then its argument prototype would still apply.  */
10471 #ifdef __cplusplus
10472 extern "C"
10473 #endif
10474 char AuCreateFlow ();
10475 int
10476 main ()
10477 {
10478 return AuCreateFlow ();
10479   ;
10480   return 0;
10481 }
10482 _ACEOF
10483 rm -f conftest.$ac_objext conftest$ac_exeext
10484 if { (ac_try="$ac_link"
10485 case "(($ac_try" in
10486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487   *) ac_try_echo=$ac_try;;
10488 esac
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490   (eval "$ac_link") 2>conftest.er1
10491   ac_status=$?
10492   grep -v '^ *+' conftest.er1 >conftest.err
10493   rm -f conftest.er1
10494   cat conftest.err >&5
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); } &&
10497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10498   { (case "(($ac_try" in
10499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500   *) ac_try_echo=$ac_try;;
10501 esac
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503   (eval "$ac_try") 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); }; } &&
10507          { ac_try='test -s conftest$ac_exeext'
10508   { (case "(($ac_try" in
10509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510   *) ac_try_echo=$ac_try;;
10511 esac
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513   (eval "$ac_try") 2>&5
10514   ac_status=$?
10515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516   (exit $ac_status); }; }; then
10517   ac_cv_lib_audio_AuCreateFlow=yes
10518 else
10519   echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10521
10522         ac_cv_lib_audio_AuCreateFlow=no
10523 fi
10524
10525 rm -f core conftest.err conftest.$ac_objext \
10526       conftest$ac_exeext conftest.$ac_ext
10527 LIBS=$ac_check_lib_save_LIBS
10528 fi
10529 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10530 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10531 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10532
10533 cat >>confdefs.h <<\_ACEOF
10534 #define HAVE_NAS 1
10535 _ACEOF
10536
10537                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10538 fi
10539
10540 fi
10541
10542 done
10543
10544
10545     CPPFLAGS="$ac_save_CPPFLAGS"
10546     XFILES='$(XFILES)'
10547 else
10548     XLIB=""
10549     X_CFLAGS=""
10550     X_LIBS=""
10551 fi
10552
10553
10554 XML2LIBS=""
10555
10556 XML2INCL=""
10557
10558 XSLTLIBS=""
10559
10560 XSLTINCL=""
10561
10562 if test "$PKG_CONFIG" != "false"
10563 then
10564     ac_save_CPPFLAGS="$CPPFLAGS"
10565     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10566     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
10567     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10568
10569 for ac_header in libxml/parser.h
10570 do
10571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10573   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10576   echo $ECHO_N "(cached) $ECHO_C" >&6
10577 fi
10578 ac_res=`eval echo '${'$as_ac_Header'}'`
10579                { echo "$as_me:$LINENO: result: $ac_res" >&5
10580 echo "${ECHO_T}$ac_res" >&6; }
10581 else
10582   # Is the header compilable?
10583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h.  */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h.  */
10591 $ac_includes_default
10592 #include <$ac_header>
10593 _ACEOF
10594 rm -f conftest.$ac_objext
10595 if { (ac_try="$ac_compile"
10596 case "(($ac_try" in
10597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598   *) ac_try_echo=$ac_try;;
10599 esac
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601   (eval "$ac_compile") 2>conftest.er1
10602   ac_status=$?
10603   grep -v '^ *+' conftest.er1 >conftest.err
10604   rm -f conftest.er1
10605   cat conftest.err >&5
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } &&
10608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10609   { (case "(($ac_try" in
10610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611   *) ac_try_echo=$ac_try;;
10612 esac
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614   (eval "$ac_try") 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; } &&
10618          { ac_try='test -s conftest.$ac_objext'
10619   { (case "(($ac_try" in
10620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621   *) ac_try_echo=$ac_try;;
10622 esac
10623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10624   (eval "$ac_try") 2>&5
10625   ac_status=$?
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); }; }; then
10628   ac_header_compiler=yes
10629 else
10630   echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633         ac_header_compiler=no
10634 fi
10635
10636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10638 echo "${ECHO_T}$ac_header_compiler" >&6; }
10639
10640 # Is the header present?
10641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h.  */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h.  */
10649 #include <$ac_header>
10650 _ACEOF
10651 if { (ac_try="$ac_cpp conftest.$ac_ext"
10652 case "(($ac_try" in
10653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654   *) ac_try_echo=$ac_try;;
10655 esac
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } >/dev/null; then
10664   if test -s conftest.err; then
10665     ac_cpp_err=$ac_c_preproc_warn_flag
10666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10667   else
10668     ac_cpp_err=
10669   fi
10670 else
10671   ac_cpp_err=yes
10672 fi
10673 if test -z "$ac_cpp_err"; then
10674   ac_header_preproc=yes
10675 else
10676   echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679   ac_header_preproc=no
10680 fi
10681
10682 rm -f conftest.err conftest.$ac_ext
10683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10684 echo "${ECHO_T}$ac_header_preproc" >&6; }
10685
10686 # So?  What about this header?
10687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10688   yes:no: )
10689     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10693     ac_header_preproc=yes
10694     ;;
10695   no:yes:* )
10696     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10698     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10699 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10700     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10702     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10703 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10706     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10708     ( cat <<\_ASBOX
10709 ## ------------------------------------ ##
10710 ## Report this to wine-devel@winehq.org ##
10711 ## ------------------------------------ ##
10712 _ASBOX
10713      ) | sed "s/^/$as_me: WARNING:     /" >&2
10714     ;;
10715 esac
10716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10719   echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721   eval "$as_ac_Header=\$ac_header_preproc"
10722 fi
10723 ac_res=`eval echo '${'$as_ac_Header'}'`
10724                { echo "$as_me:$LINENO: result: $ac_res" >&5
10725 echo "${ECHO_T}$ac_res" >&6; }
10726
10727 fi
10728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10729   cat >>confdefs.h <<_ACEOF
10730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10731 _ACEOF
10732  { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10733 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
10734 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   ac_check_lib_save_LIBS=$LIBS
10738 LIBS="-lxml2 $ac_xml_libs $LIBS"
10739 cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h.  */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h.  */
10745
10746 /* Override any GCC internal prototype to avoid an error.
10747    Use char because int might match the return type of a GCC
10748    builtin and then its argument prototype would still apply.  */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 char xmlParseMemory ();
10753 int
10754 main ()
10755 {
10756 return xmlParseMemory ();
10757   ;
10758   return 0;
10759 }
10760 _ACEOF
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765   *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768   (eval "$ac_link") 2>conftest.er1
10769   ac_status=$?
10770   grep -v '^ *+' conftest.er1 >conftest.err
10771   rm -f conftest.er1
10772   cat conftest.err >&5
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); } &&
10775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10776   { (case "(($ac_try" in
10777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778   *) ac_try_echo=$ac_try;;
10779 esac
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781   (eval "$ac_try") 2>&5
10782   ac_status=$?
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); }; } &&
10785          { ac_try='test -s conftest$ac_exeext'
10786   { (case "(($ac_try" in
10787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788   *) ac_try_echo=$ac_try;;
10789 esac
10790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791   (eval "$ac_try") 2>&5
10792   ac_status=$?
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); }; }; then
10795   ac_cv_lib_xml2_xmlParseMemory=yes
10796 else
10797   echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800         ac_cv_lib_xml2_xmlParseMemory=no
10801 fi
10802
10803 rm -f core conftest.err conftest.$ac_objext \
10804       conftest$ac_exeext conftest.$ac_ext
10805 LIBS=$ac_check_lib_save_LIBS
10806 fi
10807 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10808 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10809 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
10810
10811 cat >>confdefs.h <<\_ACEOF
10812 #define HAVE_LIBXML2 1
10813 _ACEOF
10814
10815              XML2LIBS="$ac_xml_libs"
10816              XML2INCL="$ac_xml_cflags"
10817 fi
10818
10819          { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10820 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
10821 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
10822   echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824   ac_check_lib_save_LIBS=$LIBS
10825 LIBS="-lxml2 $ac_xml_libs $LIBS"
10826 cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832
10833 /* Override any GCC internal prototype to avoid an error.
10834    Use char because int might match the return type of a GCC
10835    builtin and then its argument prototype would still apply.  */
10836 #ifdef __cplusplus
10837 extern "C"
10838 #endif
10839 char xmlReadMemory ();
10840 int
10841 main ()
10842 {
10843 return xmlReadMemory ();
10844   ;
10845   return 0;
10846 }
10847 _ACEOF
10848 rm -f conftest.$ac_objext conftest$ac_exeext
10849 if { (ac_try="$ac_link"
10850 case "(($ac_try" in
10851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852   *) ac_try_echo=$ac_try;;
10853 esac
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855   (eval "$ac_link") 2>conftest.er1
10856   ac_status=$?
10857   grep -v '^ *+' conftest.er1 >conftest.err
10858   rm -f conftest.er1
10859   cat conftest.err >&5
10860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861   (exit $ac_status); } &&
10862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10863   { (case "(($ac_try" in
10864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865   *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868   (eval "$ac_try") 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); }; } &&
10872          { ac_try='test -s conftest$ac_exeext'
10873   { (case "(($ac_try" in
10874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875   *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878   (eval "$ac_try") 2>&5
10879   ac_status=$?
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); }; }; then
10882   ac_cv_lib_xml2_xmlReadMemory=yes
10883 else
10884   echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10886
10887         ac_cv_lib_xml2_xmlReadMemory=no
10888 fi
10889
10890 rm -f core conftest.err conftest.$ac_objext \
10891       conftest$ac_exeext conftest.$ac_ext
10892 LIBS=$ac_check_lib_save_LIBS
10893 fi
10894 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10895 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10896 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
10897
10898 cat >>confdefs.h <<\_ACEOF
10899 #define HAVE_XMLREADMEMORY 1
10900 _ACEOF
10901
10902 fi
10903
10904
10905 fi
10906
10907 done
10908
10909     CPPFLAGS="$ac_save_CPPFLAGS"
10910     ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
10911     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
10912     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
10913
10914
10915 for ac_header in libxslt/pattern.h libxslt/transform.h
10916 do
10917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929 #ifdef HAVE_LIBXSLT_PATTERN_H
10930 # include <libxslt/pattern.h>
10931 #endif
10932
10933 #include <$ac_header>
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (ac_try="$ac_compile"
10937 case "(($ac_try" in
10938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939   *) ac_try_echo=$ac_try;;
10940 esac
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942   (eval "$ac_compile") 2>conftest.er1
10943   ac_status=$?
10944   grep -v '^ *+' conftest.er1 >conftest.err
10945   rm -f conftest.er1
10946   cat conftest.err >&5
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } &&
10949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950   { (case "(($ac_try" in
10951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952   *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955   (eval "$ac_try") 2>&5
10956   ac_status=$?
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); }; } &&
10959          { ac_try='test -s conftest.$ac_objext'
10960   { (case "(($ac_try" in
10961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962   *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965   (eval "$ac_try") 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); }; }; then
10969   eval "$as_ac_Header=yes"
10970 else
10971   echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10973
10974         eval "$as_ac_Header=no"
10975 fi
10976
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 fi
10979 ac_res=`eval echo '${'$as_ac_Header'}'`
10980                { echo "$as_me:$LINENO: result: $ac_res" >&5
10981 echo "${ECHO_T}$ac_res" >&6; }
10982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10983   cat >>confdefs.h <<_ACEOF
10984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10985 _ACEOF
10986  { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
10987 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
10988 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991   ac_check_lib_save_LIBS=$LIBS
10992 LIBS="-lxslt $ac_xslt_libs $LIBS"
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999
11000 /* Override any GCC internal prototype to avoid an error.
11001    Use char because int might match the return type of a GCC
11002    builtin and then its argument prototype would still apply.  */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 char xsltCompilePattern ();
11007 int
11008 main ()
11009 {
11010 return xsltCompilePattern ();
11011   ;
11012   return 0;
11013 }
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019   *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022   (eval "$ac_link") 2>conftest.er1
11023   ac_status=$?
11024   grep -v '^ *+' conftest.er1 >conftest.err
11025   rm -f conftest.er1
11026   cat conftest.err >&5
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); } &&
11029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11030   { (case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_try") 2>&5
11036   ac_status=$?
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); }; } &&
11039          { ac_try='test -s conftest$ac_exeext'
11040   { (case "(($ac_try" in
11041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042   *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045   (eval "$ac_try") 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); }; }; then
11049   ac_cv_lib_xslt_xsltCompilePattern=yes
11050 else
11051   echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11053
11054         ac_cv_lib_xslt_xsltCompilePattern=no
11055 fi
11056
11057 rm -f core conftest.err conftest.$ac_objext \
11058       conftest$ac_exeext conftest.$ac_ext
11059 LIBS=$ac_check_lib_save_LIBS
11060 fi
11061 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11062 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
11063 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11064
11065 cat >>confdefs.h <<\_ACEOF
11066 #define HAVE_LIBXSLT 1
11067 _ACEOF
11068
11069              XSLTLIBS="$ac_xslt_libs"
11070              XSLTINCL="$ac_xslt_cflags"
11071 fi
11072
11073
11074 fi
11075
11076 done
11077
11078     CPPFLAGS="$ac_save_CPPFLAGS"
11079 fi
11080
11081 HALINCL=""
11082
11083 if test "$PKG_CONFIG" != "false"
11084 then
11085     ac_save_CPPFLAGS="$CPPFLAGS"
11086     ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11087     ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
11088     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11089
11090
11091 for ac_header in dbus/dbus.h hal/libhal.h
11092 do
11093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 fi
11100 ac_res=`eval echo '${'$as_ac_Header'}'`
11101                { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11103 else
11104   # Is the header compilable?
11105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113 $ac_includes_default
11114 #include <$ac_header>
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120   *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123   (eval "$ac_compile") 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } &&
11130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131   { (case "(($ac_try" in
11132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133   *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136   (eval "$ac_try") 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); }; } &&
11140          { ac_try='test -s conftest.$ac_objext'
11141   { (case "(($ac_try" in
11142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143   *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146   (eval "$ac_try") 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); }; }; then
11150   ac_header_compiler=yes
11151 else
11152   echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155         ac_header_compiler=no
11156 fi
11157
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160 echo "${ECHO_T}$ac_header_compiler" >&6; }
11161
11162 # Is the header present?
11163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h.  */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h.  */
11171 #include <$ac_header>
11172 _ACEOF
11173 if { (ac_try="$ac_cpp conftest.$ac_ext"
11174 case "(($ac_try" in
11175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176   *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11180   ac_status=$?
11181   grep -v '^ *+' conftest.er1 >conftest.err
11182   rm -f conftest.er1
11183   cat conftest.err >&5
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } >/dev/null; then
11186   if test -s conftest.err; then
11187     ac_cpp_err=$ac_c_preproc_warn_flag
11188     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11189   else
11190     ac_cpp_err=
11191   fi
11192 else
11193   ac_cpp_err=yes
11194 fi
11195 if test -z "$ac_cpp_err"; then
11196   ac_header_preproc=yes
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201   ac_header_preproc=no
11202 fi
11203
11204 rm -f conftest.err conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6; }
11207
11208 # So?  What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11210   yes:no: )
11211     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215     ac_header_preproc=yes
11216     ;;
11217   no:yes:* )
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11230     ( cat <<\_ASBOX
11231 ## ------------------------------------ ##
11232 ## Report this to wine-devel@winehq.org ##
11233 ## ------------------------------------ ##
11234 _ASBOX
11235      ) | sed "s/^/$as_me: WARNING:     /" >&2
11236     ;;
11237 esac
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241   echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243   eval "$as_ac_Header=\$ac_header_preproc"
11244 fi
11245 ac_res=`eval echo '${'$as_ac_Header'}'`
11246                { echo "$as_me:$LINENO: result: $ac_res" >&5
11247 echo "${ECHO_T}$ac_res" >&6; }
11248
11249 fi
11250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11251   cat >>confdefs.h <<_ACEOF
11252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11253 _ACEOF
11254
11255 fi
11256
11257 done
11258
11259     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11260     then
11261         { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
11262 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
11263 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266   ac_check_lib_save_LIBS=$LIBS
11267 LIBS="-lhal  $LIBS"
11268 cat >conftest.$ac_ext <<_ACEOF
11269 /* confdefs.h.  */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h.  */
11274
11275 /* Override any GCC internal prototype to avoid an error.
11276    Use char because int might match the return type of a GCC
11277    builtin and then its argument prototype would still apply.  */
11278 #ifdef __cplusplus
11279 extern "C"
11280 #endif
11281 char libhal_ctx_new ();
11282 int
11283 main ()
11284 {
11285 return libhal_ctx_new ();
11286   ;
11287   return 0;
11288 }
11289 _ACEOF
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (ac_try="$ac_link"
11292 case "(($ac_try" in
11293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294   *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297   (eval "$ac_link") 2>conftest.er1
11298   ac_status=$?
11299   grep -v '^ *+' conftest.er1 >conftest.err
11300   rm -f conftest.er1
11301   cat conftest.err >&5
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } &&
11304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305   { (case "(($ac_try" in
11306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307   *) ac_try_echo=$ac_try;;
11308 esac
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310   (eval "$ac_try") 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); }; } &&
11314          { ac_try='test -s conftest$ac_exeext'
11315   { (case "(($ac_try" in
11316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317   *) ac_try_echo=$ac_try;;
11318 esac
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320   (eval "$ac_try") 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; }; then
11324   ac_cv_lib_hal_libhal_ctx_new=yes
11325 else
11326   echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329         ac_cv_lib_hal_libhal_ctx_new=no
11330 fi
11331
11332 rm -f core conftest.err conftest.$ac_objext \
11333       conftest$ac_exeext conftest.$ac_ext
11334 LIBS=$ac_check_lib_save_LIBS
11335 fi
11336 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
11337 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
11338 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
11339   { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11340 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
11341 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
11342   echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344   ac_check_lib_save_LIBS=$LIBS
11345 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h.  */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h.  */
11352
11353 /* Override any GCC internal prototype to avoid an error.
11354    Use char because int might match the return type of a GCC
11355    builtin and then its argument prototype would still apply.  */
11356 #ifdef __cplusplus
11357 extern "C"
11358 #endif
11359 char dbus_connection_close ();
11360 int
11361 main ()
11362 {
11363 return dbus_connection_close ();
11364   ;
11365   return 0;
11366 }
11367 _ACEOF
11368 rm -f conftest.$ac_objext conftest$ac_exeext
11369 if { (ac_try="$ac_link"
11370 case "(($ac_try" in
11371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372   *) ac_try_echo=$ac_try;;
11373 esac
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375   (eval "$ac_link") 2>conftest.er1
11376   ac_status=$?
11377   grep -v '^ *+' conftest.er1 >conftest.err
11378   rm -f conftest.er1
11379   cat conftest.err >&5
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); } &&
11382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; } &&
11392          { ac_try='test -s conftest$ac_exeext'
11393   { (case "(($ac_try" in
11394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395   *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398   (eval "$ac_try") 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); }; }; then
11402   ac_cv_lib_dbus_1_dbus_connection_close=yes
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407         ac_cv_lib_dbus_1_dbus_connection_close=no
11408 fi
11409
11410 rm -f core conftest.err conftest.$ac_objext \
11411       conftest$ac_exeext conftest.$ac_ext
11412 LIBS=$ac_check_lib_save_LIBS
11413 fi
11414 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11415 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
11416 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
11417
11418 cat >>confdefs.h <<\_ACEOF
11419 #define HAVE_LIBHAL 1
11420 _ACEOF
11421
11422              HALINCL="$ac_hal_cflags"
11423 fi
11424
11425 fi
11426
11427     fi
11428     CPPFLAGS="$ac_save_CPPFLAGS"
11429 fi
11430
11431 CURSESLIBS=""
11432 if test "x$with_curses" != "xno"
11433 then
11434     if test "$ac_cv_header_ncurses_h" = "yes"
11435     then
11436         { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
11437 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
11438 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
11439   echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441   ac_check_lib_save_LIBS=$LIBS
11442 LIBS="-lncurses  $LIBS"
11443 cat >conftest.$ac_ext <<_ACEOF
11444 /* confdefs.h.  */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h.  */
11449
11450 /* Override any GCC internal prototype to avoid an error.
11451    Use char because int might match the return type of a GCC
11452    builtin and then its argument prototype would still apply.  */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 char waddch ();
11457 int
11458 main ()
11459 {
11460 return waddch ();
11461   ;
11462   return 0;
11463 }
11464 _ACEOF
11465 rm -f conftest.$ac_objext conftest$ac_exeext
11466 if { (ac_try="$ac_link"
11467 case "(($ac_try" in
11468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469   *) ac_try_echo=$ac_try;;
11470 esac
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472   (eval "$ac_link") 2>conftest.er1
11473   ac_status=$?
11474   grep -v '^ *+' conftest.er1 >conftest.err
11475   rm -f conftest.er1
11476   cat conftest.err >&5
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); } &&
11479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11480   { (case "(($ac_try" in
11481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482   *) ac_try_echo=$ac_try;;
11483 esac
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485   (eval "$ac_try") 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); }; } &&
11489          { ac_try='test -s conftest$ac_exeext'
11490   { (case "(($ac_try" in
11491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492   *) ac_try_echo=$ac_try;;
11493 esac
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495   (eval "$ac_try") 2>&5
11496   ac_status=$?
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); }; }; then
11499   ac_cv_lib_ncurses_waddch=yes
11500 else
11501   echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504         ac_cv_lib_ncurses_waddch=no
11505 fi
11506
11507 rm -f core conftest.err conftest.$ac_objext \
11508       conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11510 fi
11511 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
11512 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
11513 if test $ac_cv_lib_ncurses_waddch = yes; then
11514
11515 cat >>confdefs.h <<\_ACEOF
11516 #define HAVE_LIBNCURSES 1
11517 _ACEOF
11518
11519              CURSESLIBS="-lncurses"
11520 fi
11521
11522     elif test "$ac_cv_header_curses_h" = "yes"
11523     then
11524         { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11525 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
11526 if test "${ac_cv_lib_curses_waddch+set}" = set; then
11527   echo $ECHO_N "(cached) $ECHO_C" >&6
11528 else
11529   ac_check_lib_save_LIBS=$LIBS
11530 LIBS="-lcurses  $LIBS"
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h.  */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h.  */
11537
11538 /* Override any GCC internal prototype to avoid an error.
11539    Use char because int might match the return type of a GCC
11540    builtin and then its argument prototype would still apply.  */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 char waddch ();
11545 int
11546 main ()
11547 {
11548 return waddch ();
11549   ;
11550   return 0;
11551 }
11552 _ACEOF
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (ac_try="$ac_link"
11555 case "(($ac_try" in
11556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557   *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560   (eval "$ac_link") 2>conftest.er1
11561   ac_status=$?
11562   grep -v '^ *+' conftest.er1 >conftest.err
11563   rm -f conftest.er1
11564   cat conftest.err >&5
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } &&
11567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568   { (case "(($ac_try" in
11569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570   *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573   (eval "$ac_try") 2>&5
11574   ac_status=$?
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); }; } &&
11577          { ac_try='test -s conftest$ac_exeext'
11578   { (case "(($ac_try" in
11579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580   *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583   (eval "$ac_try") 2>&5
11584   ac_status=$?
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); }; }; then
11587   ac_cv_lib_curses_waddch=yes
11588 else
11589   echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11591
11592         ac_cv_lib_curses_waddch=no
11593 fi
11594
11595 rm -f core conftest.err conftest.$ac_objext \
11596       conftest$ac_exeext conftest.$ac_ext
11597 LIBS=$ac_check_lib_save_LIBS
11598 fi
11599 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11600 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
11601 if test $ac_cv_lib_curses_waddch = yes; then
11602
11603 cat >>confdefs.h <<\_ACEOF
11604 #define HAVE_LIBCURSES 1
11605 _ACEOF
11606
11607              CURSESLIBS="-lcurses"
11608 fi
11609
11610     fi
11611     ac_save_LIBS="$LIBS"
11612     LIBS="$LIBS $CURSESLIBS"
11613
11614 for ac_func in mousemask
11615 do
11616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11620   echo $ECHO_N "(cached) $ECHO_C" >&6
11621 else
11622   cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h.  */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h.  */
11628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11630 #define $ac_func innocuous_$ac_func
11631
11632 /* System header to define __stub macros and hopefully few prototypes,
11633     which can conflict with char $ac_func (); below.
11634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11635     <limits.h> exists even on freestanding compilers.  */
11636
11637 #ifdef __STDC__
11638 # include <limits.h>
11639 #else
11640 # include <assert.h>
11641 #endif
11642
11643 #undef $ac_func
11644
11645 /* Override any GCC internal prototype to avoid an error.
11646    Use char because int might match the return type of a GCC
11647    builtin and then its argument prototype would still apply.  */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 char $ac_func ();
11652 /* The GNU C library defines this for functions which it implements
11653     to always fail with ENOSYS.  Some functions are actually named
11654     something starting with __ and the normal name is an alias.  */
11655 #if defined __stub_$ac_func || defined __stub___$ac_func
11656 choke me
11657 #endif
11658
11659 int
11660 main ()
11661 {
11662 return $ac_func ();
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 rm -f conftest.$ac_objext conftest$ac_exeext
11668 if { (ac_try="$ac_link"
11669 case "(($ac_try" in
11670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671   *) ac_try_echo=$ac_try;;
11672 esac
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674   (eval "$ac_link") 2>conftest.er1
11675   ac_status=$?
11676   grep -v '^ *+' conftest.er1 >conftest.err
11677   rm -f conftest.er1
11678   cat conftest.err >&5
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); } &&
11681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11682   { (case "(($ac_try" in
11683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684   *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687   (eval "$ac_try") 2>&5
11688   ac_status=$?
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); }; } &&
11691          { ac_try='test -s conftest$ac_exeext'
11692   { (case "(($ac_try" in
11693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694   *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697   (eval "$ac_try") 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; }; then
11701   eval "$as_ac_var=yes"
11702 else
11703   echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11705
11706         eval "$as_ac_var=no"
11707 fi
11708
11709 rm -f core conftest.err conftest.$ac_objext \
11710       conftest$ac_exeext conftest.$ac_ext
11711 fi
11712 ac_res=`eval echo '${'$as_ac_var'}'`
11713                { echo "$as_me:$LINENO: result: $ac_res" >&5
11714 echo "${ECHO_T}$ac_res" >&6; }
11715 if test `eval echo '${'$as_ac_var'}'` = yes; then
11716   cat >>confdefs.h <<_ACEOF
11717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11718 _ACEOF
11719
11720 fi
11721 done
11722
11723     LIBS="$ac_save_LIBS"
11724 fi
11725
11726
11727 # Extract the first word of "sane-config", so it can be a program name with args.
11728 set dummy sane-config; ac_word=$2
11729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11731 if test "${ac_cv_prog_sane_devel+set}" = set; then
11732   echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734   if test -n "$sane_devel"; then
11735   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11736 else
11737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738 for as_dir in $PATH
11739 do
11740   IFS=$as_save_IFS
11741   test -z "$as_dir" && as_dir=.
11742   for ac_exec_ext in '' $ac_executable_extensions; do
11743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11744     ac_cv_prog_sane_devel="sane-config"
11745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11746     break 2
11747   fi
11748 done
11749 done
11750 IFS=$as_save_IFS
11751
11752   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11753 fi
11754 fi
11755 sane_devel=$ac_cv_prog_sane_devel
11756 if test -n "$sane_devel"; then
11757   { echo "$as_me:$LINENO: result: $sane_devel" >&5
11758 echo "${ECHO_T}$sane_devel" >&6; }
11759 else
11760   { echo "$as_me:$LINENO: result: no" >&5
11761 echo "${ECHO_T}no" >&6; }
11762 fi
11763
11764
11765 SANELIBS=""
11766
11767 SANEINCL=""
11768
11769 if test "$sane_devel" != "no"
11770 then
11771     SANELIBS="`$sane_devel --libs`"
11772     SANEINCL="`$sane_devel --cflags`"
11773     ac_save_CPPFLAGS="$CPPFLAGS"
11774     ac_save_LIBS="$LIBS"
11775     CPPFLAGS="$CPPFLAGS $SANEINCL"
11776     LIBS="$LIBS $SANELIBS"
11777     if test "${ac_cv_header_sane_sane_h+set}" = set; then
11778   { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11779 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11780 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11781   echo $ECHO_N "(cached) $ECHO_C" >&6
11782 fi
11783 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11784 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11785 else
11786   # Is the header compilable?
11787 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11788 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
11789 cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h.  */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h.  */
11795 $ac_includes_default
11796 #include <sane/sane.h>
11797 _ACEOF
11798 rm -f conftest.$ac_objext
11799 if { (ac_try="$ac_compile"
11800 case "(($ac_try" in
11801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802   *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805   (eval "$ac_compile") 2>conftest.er1
11806   ac_status=$?
11807   grep -v '^ *+' conftest.er1 >conftest.err
11808   rm -f conftest.er1
11809   cat conftest.err >&5
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); } &&
11812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11813   { (case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818   (eval "$ac_try") 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; } &&
11822          { ac_try='test -s conftest.$ac_objext'
11823   { (case "(($ac_try" in
11824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825   *) ac_try_echo=$ac_try;;
11826 esac
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828   (eval "$ac_try") 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; }; then
11832   ac_header_compiler=yes
11833 else
11834   echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837         ac_header_compiler=no
11838 fi
11839
11840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11842 echo "${ECHO_T}$ac_header_compiler" >&6; }
11843
11844 # Is the header present?
11845 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
11846 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
11847 cat >conftest.$ac_ext <<_ACEOF
11848 /* confdefs.h.  */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h.  */
11853 #include <sane/sane.h>
11854 _ACEOF
11855 if { (ac_try="$ac_cpp conftest.$ac_ext"
11856 case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11862   ac_status=$?
11863   grep -v '^ *+' conftest.er1 >conftest.err
11864   rm -f conftest.er1
11865   cat conftest.err >&5
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); } >/dev/null; then
11868   if test -s conftest.err; then
11869     ac_cpp_err=$ac_c_preproc_warn_flag
11870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11871   else
11872     ac_cpp_err=
11873   fi
11874 else
11875   ac_cpp_err=yes
11876 fi
11877 if test -z "$ac_cpp_err"; then
11878   ac_header_preproc=yes
11879 else
11880   echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11882
11883   ac_header_preproc=no
11884 fi
11885
11886 rm -f conftest.err conftest.$ac_ext
11887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11888 echo "${ECHO_T}$ac_header_preproc" >&6; }
11889
11890 # So?  What about this header?
11891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11892   yes:no: )
11893     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
11894 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11895     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
11896 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
11897     ac_header_preproc=yes
11898     ;;
11899   no:yes:* )
11900     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
11901 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
11902     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
11903 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
11904     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
11905 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
11906     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
11907 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11908     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
11909 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
11910     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
11911 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
11912     ( cat <<\_ASBOX
11913 ## ------------------------------------ ##
11914 ## Report this to wine-devel@winehq.org ##
11915 ## ------------------------------------ ##
11916 _ASBOX
11917      ) | sed "s/^/$as_me: WARNING:     /" >&2
11918     ;;
11919 esac
11920 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11921 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11922 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11923   echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925   ac_cv_header_sane_sane_h=$ac_header_preproc
11926 fi
11927 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11928 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11929
11930 fi
11931 if test $ac_cv_header_sane_sane_h = yes; then
11932   { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
11933 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
11934 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
11935   echo $ECHO_N "(cached) $ECHO_C" >&6
11936 else
11937   ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lsane  $LIBS"
11939 cat >conftest.$ac_ext <<_ACEOF
11940 /* confdefs.h.  */
11941 _ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h.  */
11945
11946 /* Override any GCC internal prototype to avoid an error.
11947    Use char because int might match the return type of a GCC
11948    builtin and then its argument prototype would still apply.  */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 char sane_open ();
11953 int
11954 main ()
11955 {
11956 return sane_open ();
11957   ;
11958   return 0;
11959 }
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (ac_try="$ac_link"
11963 case "(($ac_try" in
11964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965   *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968   (eval "$ac_link") 2>conftest.er1
11969   ac_status=$?
11970   grep -v '^ *+' conftest.er1 >conftest.err
11971   rm -f conftest.er1
11972   cat conftest.err >&5
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); } &&
11975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11976   { (case "(($ac_try" in
11977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978   *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981   (eval "$ac_try") 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; } &&
11985          { ac_try='test -s conftest$ac_exeext'
11986   { (case "(($ac_try" in
11987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988   *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991   (eval "$ac_try") 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); }; }; then
11995   ac_cv_lib_sane_sane_open=yes
11996 else
11997   echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000         ac_cv_lib_sane_sane_open=no
12001 fi
12002
12003 rm -f core conftest.err conftest.$ac_objext \
12004       conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12006 fi
12007 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
12008 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
12009 if test $ac_cv_lib_sane_sane_open = yes; then
12010
12011 cat >>confdefs.h <<\_ACEOF
12012 #define HAVE_SANE 1
12013 _ACEOF
12014
12015 else
12016   SANELIBS=""
12017                                   SANEINCL=""
12018 fi
12019
12020 else
12021   SANELIBS=""
12022                     SANEINCL=""
12023 fi
12024
12025
12026     LIBS="$ac_save_LIBS"
12027     CPPFLAGS="$ac_save_CPPFLAGS"
12028 fi
12029
12030 # Extract the first word of "gphoto2-config", so it can be a program name with args.
12031 set dummy gphoto2-config; ac_word=$2
12032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12034 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12035   echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037   if test -n "$gphoto2_devel"; then
12038   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12039 else
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12042 do
12043   IFS=$as_save_IFS
12044   test -z "$as_dir" && as_dir=.
12045   for ac_exec_ext in '' $ac_executable_extensions; do
12046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12047     ac_cv_prog_gphoto2_devel="gphoto2-config"
12048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12049     break 2
12050   fi
12051 done
12052 done
12053 IFS=$as_save_IFS
12054
12055   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12056 fi
12057 fi
12058 gphoto2_devel=$ac_cv_prog_gphoto2_devel
12059 if test -n "$gphoto2_devel"; then
12060   { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12061 echo "${ECHO_T}$gphoto2_devel" >&6; }
12062 else
12063   { echo "$as_me:$LINENO: result: no" >&5
12064 echo "${ECHO_T}no" >&6; }
12065 fi
12066
12067
12068 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12069 set dummy gphoto2-port-config; ac_word=$2
12070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12072 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075   if test -n "$gphoto2port_devel"; then
12076   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12077 else
12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079 for as_dir in $PATH
12080 do
12081   IFS=$as_save_IFS
12082   test -z "$as_dir" && as_dir=.
12083   for ac_exec_ext in '' $ac_executable_extensions; do
12084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12085     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12087     break 2
12088   fi
12089 done
12090 done
12091 IFS=$as_save_IFS
12092
12093   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
12094 fi
12095 fi
12096 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12097 if test -n "$gphoto2port_devel"; then
12098   { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12099 echo "${ECHO_T}$gphoto2port_devel" >&6; }
12100 else
12101   { echo "$as_me:$LINENO: result: no" >&5
12102 echo "${ECHO_T}no" >&6; }
12103 fi
12104
12105
12106 GPHOTO2LIBS=""
12107
12108 GPHOTO2INCL=""
12109
12110 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12111 then
12112     GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12113     GPHOTO2LIBS=""
12114     for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12115     do
12116       case "$i" in
12117         -L/usr/lib|-L/usr/lib64) ;;
12118         -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
12119       esac
12120     done
12121     ac_save_CPPFLAGS="$CPPFLAGS"
12122     ac_save_LIBS="$LIBS"
12123     CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
12124     LIBS="$LIBS $GPHOTO2LIBS"
12125     if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12126   { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12127 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12128 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12129   echo $ECHO_N "(cached) $ECHO_C" >&6
12130 fi
12131 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12132 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12133 else
12134   # Is the header compilable?
12135 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12136 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h.  */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h.  */
12143 $ac_includes_default
12144 #include <gphoto2-camera.h>
12145 _ACEOF
12146 rm -f conftest.$ac_objext
12147 if { (ac_try="$ac_compile"
12148 case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153   (eval "$ac_compile") 2>conftest.er1
12154   ac_status=$?
12155   grep -v '^ *+' conftest.er1 >conftest.err
12156   rm -f conftest.er1
12157   cat conftest.err >&5
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } &&
12160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12161   { (case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_try") 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }; } &&
12170          { ac_try='test -s conftest.$ac_objext'
12171   { (case "(($ac_try" in
12172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173   *) ac_try_echo=$ac_try;;
12174 esac
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176   (eval "$ac_try") 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }; }; then
12180   ac_header_compiler=yes
12181 else
12182   echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185         ac_header_compiler=no
12186 fi
12187
12188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12190 echo "${ECHO_T}$ac_header_compiler" >&6; }
12191
12192 # Is the header present?
12193 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12194 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h.  */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h.  */
12201 #include <gphoto2-camera.h>
12202 _ACEOF
12203 if { (ac_try="$ac_cpp conftest.$ac_ext"
12204 case "(($ac_try" in
12205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206   *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } >/dev/null; then
12216   if test -s conftest.err; then
12217     ac_cpp_err=$ac_c_preproc_warn_flag
12218     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12219   else
12220     ac_cpp_err=
12221   fi
12222 else
12223   ac_cpp_err=yes
12224 fi
12225 if test -z "$ac_cpp_err"; then
12226   ac_header_preproc=yes
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231   ac_header_preproc=no
12232 fi
12233
12234 rm -f conftest.err conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12236 echo "${ECHO_T}$ac_header_preproc" >&6; }
12237
12238 # So?  What about this header?
12239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12240   yes:no: )
12241     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12242 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12243     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12244 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12245     ac_header_preproc=yes
12246     ;;
12247   no:yes:* )
12248     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12249 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12250     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&5
12251 echo "$as_me: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&2;}
12252     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12253 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12254     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&5
12255 echo "$as_me: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12256     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12257 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12258     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12259 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
12260     ( cat <<\_ASBOX
12261 ## ------------------------------------ ##
12262 ## Report this to wine-devel@winehq.org ##
12263 ## ------------------------------------ ##
12264 _ASBOX
12265      ) | sed "s/^/$as_me: WARNING:     /" >&2
12266     ;;
12267 esac
12268 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12269 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12270 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12271   echo $ECHO_N "(cached) $ECHO_C" >&6
12272 else
12273   ac_cv_header_gphoto2_camera_h=$ac_header_preproc
12274 fi
12275 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12276 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12277
12278 fi
12279 if test $ac_cv_header_gphoto2_camera_h = yes; then
12280   { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12281 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
12282 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
12283   echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285   ac_check_lib_save_LIBS=$LIBS
12286 LIBS="-lgphoto2  $LIBS"
12287 cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h.  */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h.  */
12293
12294 /* Override any GCC internal prototype to avoid an error.
12295    Use char because int might match the return type of a GCC
12296    builtin and then its argument prototype would still apply.  */
12297 #ifdef __cplusplus
12298 extern "C"
12299 #endif
12300 char gp_camera_new ();
12301 int
12302 main ()
12303 {
12304 return gp_camera_new ();
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 rm -f conftest.$ac_objext conftest$ac_exeext
12310 if { (ac_try="$ac_link"
12311 case "(($ac_try" in
12312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313   *) ac_try_echo=$ac_try;;
12314 esac
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316   (eval "$ac_link") 2>conftest.er1
12317   ac_status=$?
12318   grep -v '^ *+' conftest.er1 >conftest.err
12319   rm -f conftest.er1
12320   cat conftest.err >&5
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); } &&
12323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12324   { (case "(($ac_try" in
12325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326   *) ac_try_echo=$ac_try;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329   (eval "$ac_try") 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; } &&
12333          { ac_try='test -s conftest$ac_exeext'
12334   { (case "(($ac_try" in
12335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336   *) ac_try_echo=$ac_try;;
12337 esac
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339   (eval "$ac_try") 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; }; then
12343   ac_cv_lib_gphoto2_gp_camera_new=yes
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12347
12348         ac_cv_lib_gphoto2_gp_camera_new=no
12349 fi
12350
12351 rm -f core conftest.err conftest.$ac_objext \
12352       conftest$ac_exeext conftest.$ac_ext
12353 LIBS=$ac_check_lib_save_LIBS
12354 fi
12355 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12356 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
12357 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
12358
12359 cat >>confdefs.h <<\_ACEOF
12360 #define HAVE_GPHOTO2 1
12361 _ACEOF
12362
12363 else
12364   GPHOTO2LIBS=""
12365                                   GPHOTO2INCL=""
12366 fi
12367
12368 else
12369   GPHOTO2LIBS=""
12370                     GPHOTO2INCL=""
12371 fi
12372
12373
12374     LIBS="$ac_save_LIBS"
12375     CPPFLAGS="$ac_save_CPPFLAGS"
12376 fi
12377
12378 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
12379 then
12380     saved_libs="$LIBS"
12381     for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
12382     do
12383         TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
12384         TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
12385         { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
12386 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
12387         LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12388         cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h.  */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h.  */
12394 #include <unicode/ubidi.h>
12395 int
12396 main ()
12397 {
12398 ubidi_open()
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (ac_try="$ac_link"
12405 case "(($ac_try" in
12406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407   *) ac_try_echo=$ac_try;;
12408 esac
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410   (eval "$ac_link") 2>conftest.er1
12411   ac_status=$?
12412   grep -v '^ *+' conftest.er1 >conftest.err
12413   rm -f conftest.er1
12414   cat conftest.err >&5
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } &&
12417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418   { (case "(($ac_try" in
12419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420   *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423   (eval "$ac_try") 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } &&
12427          { ac_try='test -s conftest$ac_exeext'
12428   { (case "(($ac_try" in
12429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430   *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433   (eval "$ac_try") 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437
12438 cat >>confdefs.h <<\_ACEOF
12439 #define HAVE_ICU 1
12440 _ACEOF
12441
12442                      ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12443
12444                      { echo "$as_me:$LINENO: result: yes" >&5
12445 echo "${ECHO_T}yes" >&6; }
12446 else
12447   echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12449
12450         { echo "$as_me:$LINENO: result: no" >&5
12451 echo "${ECHO_T}no" >&6; }
12452 fi
12453
12454 rm -f core conftest.err conftest.$ac_objext \
12455       conftest$ac_exeext conftest.$ac_ext
12456     done
12457     LIBS="$saved_libs"
12458 fi
12459
12460 RESOLVLIBS=""
12461
12462 if test "$ac_cv_header_resolv_h" = "yes"
12463 then
12464     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12465 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
12466 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
12467   echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469   ac_check_lib_save_LIBS=$LIBS
12470 LIBS="-lresolv  $LIBS"
12471 cat >conftest.$ac_ext <<_ACEOF
12472 /* confdefs.h.  */
12473 _ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h.  */
12477
12478 /* Override any GCC internal prototype to avoid an error.
12479    Use char because int might match the return type of a GCC
12480    builtin and then its argument prototype would still apply.  */
12481 #ifdef __cplusplus
12482 extern "C"
12483 #endif
12484 char res_query ();
12485 int
12486 main ()
12487 {
12488 return res_query ();
12489   ;
12490   return 0;
12491 }
12492 _ACEOF
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (ac_try="$ac_link"
12495 case "(($ac_try" in
12496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497   *) ac_try_echo=$ac_try;;
12498 esac
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500   (eval "$ac_link") 2>conftest.er1
12501   ac_status=$?
12502   grep -v '^ *+' conftest.er1 >conftest.err
12503   rm -f conftest.er1
12504   cat conftest.err >&5
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); } &&
12507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12508   { (case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_try") 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; } &&
12517          { ac_try='test -s conftest$ac_exeext'
12518   { (case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_try") 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_lib_resolv_res_query=yes
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532         ac_cv_lib_resolv_res_query=no
12533 fi
12534
12535 rm -f core conftest.err conftest.$ac_objext \
12536       conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12538 fi
12539 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12540 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12541 if test $ac_cv_lib_resolv_res_query = yes; then
12542
12543 cat >>confdefs.h <<\_ACEOF
12544 #define HAVE_RESOLV 1
12545 _ACEOF
12546
12547          RESOLVLIBS="-lresolv"
12548 fi
12549
12550 fi
12551
12552 LCMSLIBS=""
12553
12554 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12555 then
12556     { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12557 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12558 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561   ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-llcms  $LIBS"
12563 cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h.  */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h.  */
12569
12570 /* Override any GCC internal prototype to avoid an error.
12571    Use char because int might match the return type of a GCC
12572    builtin and then its argument prototype would still apply.  */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 char cmsOpenProfileFromFile ();
12577 int
12578 main ()
12579 {
12580 return cmsOpenProfileFromFile ();
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592   (eval "$ac_link") 2>conftest.er1
12593   ac_status=$?
12594   grep -v '^ *+' conftest.er1 >conftest.err
12595   rm -f conftest.er1
12596   cat conftest.err >&5
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } &&
12599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600   { (case "(($ac_try" in
12601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602   *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605   (eval "$ac_try") 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; } &&
12609          { ac_try='test -s conftest$ac_exeext'
12610   { (case "(($ac_try" in
12611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612   *) ac_try_echo=$ac_try;;
12613 esac
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615   (eval "$ac_try") 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; }; then
12619   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12620 else
12621   echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624         ac_cv_lib_lcms_cmsOpenProfileFromFile=no
12625 fi
12626
12627 rm -f core conftest.err conftest.$ac_objext \
12628       conftest$ac_exeext conftest.$ac_ext
12629 LIBS=$ac_check_lib_save_LIBS
12630 fi
12631 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12632 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12633 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12634
12635 cat >>confdefs.h <<\_ACEOF
12636 #define HAVE_LCMS 1
12637 _ACEOF
12638
12639          LCMSLIBS="-llcms"
12640 fi
12641
12642 fi
12643
12644 LDAPLIBS=""
12645
12646 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12647 then
12648     { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12649 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12650 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
12651   echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12653   ac_check_lib_save_LIBS=$LIBS
12654 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12655 cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h.  */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h.  */
12661
12662 /* Override any GCC internal prototype to avoid an error.
12663    Use char because int might match the return type of a GCC
12664    builtin and then its argument prototype would still apply.  */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 char ldap_initialize ();
12669 int
12670 main ()
12671 {
12672 return ldap_initialize ();
12673   ;
12674   return 0;
12675 }
12676 _ACEOF
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (ac_try="$ac_link"
12679 case "(($ac_try" in
12680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681   *) ac_try_echo=$ac_try;;
12682 esac
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684   (eval "$ac_link") 2>conftest.er1
12685   ac_status=$?
12686   grep -v '^ *+' conftest.er1 >conftest.err
12687   rm -f conftest.er1
12688   cat conftest.err >&5
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); } &&
12691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12692   { (case "(($ac_try" in
12693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694   *) ac_try_echo=$ac_try;;
12695 esac
12696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697   (eval "$ac_try") 2>&5
12698   ac_status=$?
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); }; } &&
12701          { ac_try='test -s conftest$ac_exeext'
12702   { (case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707   (eval "$ac_try") 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); }; }; then
12711   ac_cv_lib_ldap_r_ldap_initialize=yes
12712 else
12713   echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12715
12716         ac_cv_lib_ldap_r_ldap_initialize=no
12717 fi
12718
12719 rm -f core conftest.err conftest.$ac_objext \
12720       conftest$ac_exeext conftest.$ac_ext
12721 LIBS=$ac_check_lib_save_LIBS
12722 fi
12723 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12724 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12725 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12726   { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12727 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12728 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12729   echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731   ac_check_lib_save_LIBS=$LIBS
12732 LIBS="-llber $LIBPTHREAD $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
12741    Use char because int might match the return type of a GCC
12742    builtin and then its argument prototype would still apply.  */
12743 #ifdef __cplusplus
12744 extern "C"
12745 #endif
12746 char ber_init ();
12747 int
12748 main ()
12749 {
12750 return ber_init ();
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext conftest$ac_exeext
12756 if { (ac_try="$ac_link"
12757 case "(($ac_try" in
12758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759   *) ac_try_echo=$ac_try;;
12760 esac
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762   (eval "$ac_link") 2>conftest.er1
12763   ac_status=$?
12764   grep -v '^ *+' conftest.er1 >conftest.err
12765   rm -f conftest.er1
12766   cat conftest.err >&5
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); } &&
12769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12770   { (case "(($ac_try" in
12771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772   *) ac_try_echo=$ac_try;;
12773 esac
12774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775   (eval "$ac_try") 2>&5
12776   ac_status=$?
12777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); }; } &&
12779          { ac_try='test -s conftest$ac_exeext'
12780   { (case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_try") 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); }; }; then
12789   ac_cv_lib_lber_ber_init=yes
12790 else
12791   echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794         ac_cv_lib_lber_ber_init=no
12795 fi
12796
12797 rm -f core conftest.err conftest.$ac_objext \
12798       conftest$ac_exeext conftest.$ac_ext
12799 LIBS=$ac_check_lib_save_LIBS
12800 fi
12801 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12802 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12803 if test $ac_cv_lib_lber_ber_init = yes; then
12804
12805 cat >>confdefs.h <<\_ACEOF
12806 #define HAVE_LDAP 1
12807 _ACEOF
12808
12809              LDAPLIBS="-lldap_r -llber"
12810 fi
12811
12812 fi
12813
12814     ac_wine_check_funcs_save_LIBS="$LIBS"
12815 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12816
12817
12818
12819
12820 for ac_func in \
12821         ldap_count_references \
12822         ldap_first_reference \
12823         ldap_next_reference \
12824         ldap_parse_reference
12825 do
12826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12830   echo $ECHO_N "(cached) $ECHO_C" >&6
12831 else
12832   cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h.  */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h.  */
12838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12840 #define $ac_func innocuous_$ac_func
12841
12842 /* System header to define __stub macros and hopefully few prototypes,
12843     which can conflict with char $ac_func (); below.
12844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12845     <limits.h> exists even on freestanding compilers.  */
12846
12847 #ifdef __STDC__
12848 # include <limits.h>
12849 #else
12850 # include <assert.h>
12851 #endif
12852
12853 #undef $ac_func
12854
12855 /* Override any GCC internal prototype to avoid an error.
12856    Use char because int might match the return type of a GCC
12857    builtin and then its argument prototype would still apply.  */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 char $ac_func ();
12862 /* The GNU C library defines this for functions which it implements
12863     to always fail with ENOSYS.  Some functions are actually named
12864     something starting with __ and the normal name is an alias.  */
12865 #if defined __stub_$ac_func || defined __stub___$ac_func
12866 choke me
12867 #endif
12868
12869 int
12870 main ()
12871 {
12872 return $ac_func ();
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (ac_try="$ac_link"
12879 case "(($ac_try" in
12880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881   *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884   (eval "$ac_link") 2>conftest.er1
12885   ac_status=$?
12886   grep -v '^ *+' conftest.er1 >conftest.err
12887   rm -f conftest.er1
12888   cat conftest.err >&5
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); } &&
12891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892   { (case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897   (eval "$ac_try") 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; } &&
12901          { ac_try='test -s conftest$ac_exeext'
12902   { (case "(($ac_try" in
12903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904   *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907   (eval "$ac_try") 2>&5
12908   ac_status=$?
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); }; }; then
12911   eval "$as_ac_var=yes"
12912 else
12913   echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12915
12916         eval "$as_ac_var=no"
12917 fi
12918
12919 rm -f core conftest.err conftest.$ac_objext \
12920       conftest$ac_exeext conftest.$ac_ext
12921 fi
12922 ac_res=`eval echo '${'$as_ac_var'}'`
12923                { echo "$as_me:$LINENO: result: $ac_res" >&5
12924 echo "${ECHO_T}$ac_res" >&6; }
12925 if test `eval echo '${'$as_ac_var'}'` = yes; then
12926   cat >>confdefs.h <<_ACEOF
12927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12928 _ACEOF
12929
12930 fi
12931 done
12932
12933 LIBS="$ac_wine_check_funcs_save_LIBS"
12934 fi
12935
12936 FREETYPELIBS=""
12937
12938 FREETYPEINCL=""
12939
12940 # Extract the first word of "freetype-config", so it can be a program name with args.
12941 set dummy freetype-config; ac_word=$2
12942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12944 if test "${ac_cv_prog_ft_devel+set}" = set; then
12945   echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947   if test -n "$ft_devel"; then
12948   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
12949 else
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12952 do
12953   IFS=$as_save_IFS
12954   test -z "$as_dir" && as_dir=.
12955   for ac_exec_ext in '' $ac_executable_extensions; do
12956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12957     ac_cv_prog_ft_devel="freetype-config"
12958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12959     break 2
12960   fi
12961 done
12962 done
12963 IFS=$as_save_IFS
12964
12965   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
12966 fi
12967 fi
12968 ft_devel=$ac_cv_prog_ft_devel
12969 if test -n "$ft_devel"; then
12970   { echo "$as_me:$LINENO: result: $ft_devel" >&5
12971 echo "${ECHO_T}$ft_devel" >&6; }
12972 else
12973   { echo "$as_me:$LINENO: result: no" >&5
12974 echo "${ECHO_T}no" >&6; }
12975 fi
12976
12977
12978 if test "$ft_devel" = "no"
12979 then
12980     # Extract the first word of "freetype2-config", so it can be a program name with args.
12981 set dummy freetype2-config; ac_word=$2
12982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12984 if test "${ac_cv_prog_ft_devel2+set}" = set; then
12985   echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987   if test -n "$ft_devel2"; then
12988   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
12989 else
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12992 do
12993   IFS=$as_save_IFS
12994   test -z "$as_dir" && as_dir=.
12995   for ac_exec_ext in '' $ac_executable_extensions; do
12996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12997     ac_cv_prog_ft_devel2="freetype2-config"
12998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12999     break 2
13000   fi
13001 done
13002 done
13003 IFS=$as_save_IFS
13004
13005   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
13006 fi
13007 fi
13008 ft_devel2=$ac_cv_prog_ft_devel2
13009 if test -n "$ft_devel2"; then
13010   { echo "$as_me:$LINENO: result: $ft_devel2" >&5
13011 echo "${ECHO_T}$ft_devel2" >&6; }
13012 else
13013   { echo "$as_me:$LINENO: result: no" >&5
13014 echo "${ECHO_T}no" >&6; }
13015 fi
13016
13017
13018     if test "$ft_devel2" = "freetype2-config"
13019     then
13020         ft_devel=$ft_devel2
13021     fi
13022 fi
13023
13024 if test "$ft_devel" = "no"
13025 then
13026     wine_cv_msg_freetype=yes
13027 else
13028     FREETYPELIBS=`$ft_devel --libs`
13029     FREETYPEINCL=`$ft_devel --cflags`
13030     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
13031 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
13032 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
13033   echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035   ac_check_lib_save_LIBS=$LIBS
13036 LIBS="-lfreetype $FREETYPELIBS $LIBS"
13037 cat >conftest.$ac_ext <<_ACEOF
13038 /* confdefs.h.  */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h.  */
13043
13044 /* Override any GCC internal prototype to avoid an error.
13045    Use char because int might match the return type of a GCC
13046    builtin and then its argument prototype would still apply.  */
13047 #ifdef __cplusplus
13048 extern "C"
13049 #endif
13050 char FT_Init_FreeType ();
13051 int
13052 main ()
13053 {
13054 return FT_Init_FreeType ();
13055   ;
13056   return 0;
13057 }
13058 _ACEOF
13059 rm -f conftest.$ac_objext conftest$ac_exeext
13060 if { (ac_try="$ac_link"
13061 case "(($ac_try" in
13062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063   *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066   (eval "$ac_link") 2>conftest.er1
13067   ac_status=$?
13068   grep -v '^ *+' conftest.er1 >conftest.err
13069   rm -f conftest.er1
13070   cat conftest.err >&5
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); } &&
13073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13074   { (case "(($ac_try" in
13075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076   *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079   (eval "$ac_try") 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); }; } &&
13083          { ac_try='test -s conftest$ac_exeext'
13084   { (case "(($ac_try" in
13085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086   *) ac_try_echo=$ac_try;;
13087 esac
13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089   (eval "$ac_try") 2>&5
13090   ac_status=$?
13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092   (exit $ac_status); }; }; then
13093   ac_cv_lib_freetype_FT_Init_FreeType=yes
13094 else
13095   echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13097
13098         ac_cv_lib_freetype_FT_Init_FreeType=no
13099 fi
13100
13101 rm -f core conftest.err conftest.$ac_objext \
13102       conftest$ac_exeext conftest.$ac_ext
13103 LIBS=$ac_check_lib_save_LIBS
13104 fi
13105 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
13106 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
13107 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
13108   ft_lib=yes
13109 else
13110   ft_lib=no
13111 fi
13112
13113     if test "$ft_lib" = "no"
13114     then
13115         wine_cv_msg_freetype=yes
13116         FREETYPELIBS=""
13117         FREETYPEINCL=""
13118     else
13119         ac_save_CPPFLAGS="$CPPFLAGS"
13120         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132 for ac_header in ft2build.h \
13133                          freetype/freetype.h \
13134                          freetype/ftglyph.h \
13135                          freetype/tttables.h \
13136                          freetype/ftnames.h \
13137                          freetype/ftsnames.h \
13138                          freetype/ttnameid.h \
13139                          freetype/ftoutln.h \
13140                          freetype/ftwinfnt.h \
13141                          freetype/ftmodapi.h \
13142                          freetype/internal/sfnt.h
13143 do
13144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13148   echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150   cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156 #if HAVE_FT2BUILD_H
13157                           #include <ft2build.h>
13158                           #endif
13159
13160 #include <$ac_header>
13161 _ACEOF
13162 rm -f conftest.$ac_objext
13163 if { (ac_try="$ac_compile"
13164 case "(($ac_try" in
13165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166   *) ac_try_echo=$ac_try;;
13167 esac
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169   (eval "$ac_compile") 2>conftest.er1
13170   ac_status=$?
13171   grep -v '^ *+' conftest.er1 >conftest.err
13172   rm -f conftest.er1
13173   cat conftest.err >&5
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); } &&
13176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13177   { (case "(($ac_try" in
13178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179   *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182   (eval "$ac_try") 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); }; } &&
13186          { ac_try='test -s conftest.$ac_objext'
13187   { (case "(($ac_try" in
13188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189   *) ac_try_echo=$ac_try;;
13190 esac
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192   (eval "$ac_try") 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); }; }; then
13196   eval "$as_ac_Header=yes"
13197 else
13198   echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201         eval "$as_ac_Header=no"
13202 fi
13203
13204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13205 fi
13206 ac_res=`eval echo '${'$as_ac_Header'}'`
13207                { echo "$as_me:$LINENO: result: $ac_res" >&5
13208 echo "${ECHO_T}$ac_res" >&6; }
13209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13210   cat >>confdefs.h <<_ACEOF
13211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13212 _ACEOF
13213
13214 fi
13215
13216 done
13217
13218         cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h.  */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h.  */
13224 #include <ft2build.h>
13225                     #include <freetype/fttrigon.h>
13226 _ACEOF
13227 if { (ac_try="$ac_cpp conftest.$ac_ext"
13228 case "(($ac_try" in
13229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230   *) ac_try_echo=$ac_try;;
13231 esac
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13234   ac_status=$?
13235   grep -v '^ *+' conftest.er1 >conftest.err
13236   rm -f conftest.er1
13237   cat conftest.err >&5
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); } >/dev/null; then
13240   if test -s conftest.err; then
13241     ac_cpp_err=$ac_c_preproc_warn_flag
13242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13243   else
13244     ac_cpp_err=
13245   fi
13246 else
13247   ac_cpp_err=yes
13248 fi
13249 if test -z "$ac_cpp_err"; then
13250
13251 cat >>confdefs.h <<\_ACEOF
13252 #define HAVE_FREETYPE_FTTRIGON_H 1
13253 _ACEOF
13254
13255                     wine_cv_fttrigon=yes
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260   wine_cv_fttrigon=no
13261 fi
13262
13263 rm -f conftest.err conftest.$ac_ext
13264         { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13265 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
13266 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
13267   echo $ECHO_N "(cached) $ECHO_C" >&6
13268 else
13269   cat >conftest.$ac_ext <<_ACEOF
13270 /* confdefs.h.  */
13271 _ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h.  */
13275 #include <freetype/ftmodapi.h>
13276
13277 typedef FT_TrueTypeEngineType ac__type_new_;
13278 int
13279 main ()
13280 {
13281 if ((ac__type_new_ *) 0)
13282   return 0;
13283 if (sizeof (ac__type_new_))
13284   return 0;
13285   ;
13286   return 0;
13287 }
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293   *) ac_try_echo=$ac_try;;
13294 esac
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296   (eval "$ac_compile") 2>conftest.er1
13297   ac_status=$?
13298   grep -v '^ *+' conftest.er1 >conftest.err
13299   rm -f conftest.er1
13300   cat conftest.err >&5
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } &&
13303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13304   { (case "(($ac_try" in
13305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306   *) ac_try_echo=$ac_try;;
13307 esac
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309   (eval "$ac_try") 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; } &&
13313          { ac_try='test -s conftest.$ac_objext'
13314   { (case "(($ac_try" in
13315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316   *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319   (eval "$ac_try") 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }; }; then
13323   ac_cv_type_FT_TrueTypeEngineType=yes
13324 else
13325   echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13327
13328         ac_cv_type_FT_TrueTypeEngineType=no
13329 fi
13330
13331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 fi
13333 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13334 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
13335 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13336
13337 cat >>confdefs.h <<_ACEOF
13338 #define HAVE_FT_TRUETYPEENGINETYPE 1
13339 _ACEOF
13340
13341
13342 fi
13343
13344         ac_save_CFLAGS="$CFLAGS"
13345         CFLAGS="$CFLAGS $FREETYPELIBS"
13346
13347 for ac_func in FT_Load_Sfnt_Table
13348 do
13349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13353   echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355   cat >conftest.$ac_ext <<_ACEOF
13356 /* confdefs.h.  */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h.  */
13361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13363 #define $ac_func innocuous_$ac_func
13364
13365 /* System header to define __stub macros and hopefully few prototypes,
13366     which can conflict with char $ac_func (); below.
13367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13368     <limits.h> exists even on freestanding compilers.  */
13369
13370 #ifdef __STDC__
13371 # include <limits.h>
13372 #else
13373 # include <assert.h>
13374 #endif
13375
13376 #undef $ac_func
13377
13378 /* Override any GCC internal prototype to avoid an error.
13379    Use char because int might match the return type of a GCC
13380    builtin and then its argument prototype would still apply.  */
13381 #ifdef __cplusplus
13382 extern "C"
13383 #endif
13384 char $ac_func ();
13385 /* The GNU C library defines this for functions which it implements
13386     to always fail with ENOSYS.  Some functions are actually named
13387     something starting with __ and the normal name is an alias.  */
13388 #if defined __stub_$ac_func || defined __stub___$ac_func
13389 choke me
13390 #endif
13391
13392 int
13393 main ()
13394 {
13395 return $ac_func ();
13396   ;
13397   return 0;
13398 }
13399 _ACEOF
13400 rm -f conftest.$ac_objext conftest$ac_exeext
13401 if { (ac_try="$ac_link"
13402 case "(($ac_try" in
13403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404   *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407   (eval "$ac_link") 2>conftest.er1
13408   ac_status=$?
13409   grep -v '^ *+' conftest.er1 >conftest.err
13410   rm -f conftest.er1
13411   cat conftest.err >&5
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); } &&
13414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13415   { (case "(($ac_try" in
13416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417   *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420   (eval "$ac_try") 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); }; } &&
13424          { ac_try='test -s conftest$ac_exeext'
13425   { (case "(($ac_try" in
13426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427   *) ac_try_echo=$ac_try;;
13428 esac
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430   (eval "$ac_try") 2>&5
13431   ac_status=$?
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); }; }; then
13434   eval "$as_ac_var=yes"
13435 else
13436   echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439         eval "$as_ac_var=no"
13440 fi
13441
13442 rm -f core conftest.err conftest.$ac_objext \
13443       conftest$ac_exeext conftest.$ac_ext
13444 fi
13445 ac_res=`eval echo '${'$as_ac_var'}'`
13446                { echo "$as_me:$LINENO: result: $ac_res" >&5
13447 echo "${ECHO_T}$ac_res" >&6; }
13448 if test `eval echo '${'$as_ac_var'}'` = yes; then
13449   cat >>confdefs.h <<_ACEOF
13450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13451 _ACEOF
13452
13453 fi
13454 done
13455
13456         CFLAGS="$ac_save_CFLAGS"
13457         CPPFLAGS="$ac_save_CPPFLAGS"
13458                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
13459         then
13460
13461 cat >>confdefs.h <<\_ACEOF
13462 #define HAVE_FREETYPE 1
13463 _ACEOF
13464
13465             wine_cv_msg_freetype=no
13466         else
13467             FREETYPELIBS=""
13468             FREETYPEINCL=""
13469             wine_cv_msg_freetype=yes
13470         fi
13471     fi
13472 fi
13473
13474 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
13475 then
13476   FONTSSUBDIRS="fonts"
13477
13478 fi
13479
13480 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13481 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
13482 if test "${ac_cv_c_ppdev+set}" = set; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485   cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h.  */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h.  */
13491 #include <linux/ppdev.h>
13492 int
13493 main ()
13494 {
13495 ioctl (1,PPCLAIM,0)
13496   ;
13497   return 0;
13498 }
13499 _ACEOF
13500 rm -f conftest.$ac_objext
13501 if { (ac_try="$ac_compile"
13502 case "(($ac_try" in
13503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504   *) ac_try_echo=$ac_try;;
13505 esac
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507   (eval "$ac_compile") 2>conftest.er1
13508   ac_status=$?
13509   grep -v '^ *+' conftest.er1 >conftest.err
13510   rm -f conftest.er1
13511   cat conftest.err >&5
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); } &&
13514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13515   { (case "(($ac_try" in
13516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517   *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520   (eval "$ac_try") 2>&5
13521   ac_status=$?
13522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); }; } &&
13524          { ac_try='test -s conftest.$ac_objext'
13525   { (case "(($ac_try" in
13526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13527   *) ac_try_echo=$ac_try;;
13528 esac
13529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13530   (eval "$ac_try") 2>&5
13531   ac_status=$?
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); }; }; then
13534   ac_cv_c_ppdev="yes"
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539         ac_cv_c_ppdev="no"
13540 fi
13541
13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13543
13544 fi
13545 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13546 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13547 if test "$ac_cv_c_ppdev" = "yes"
13548 then
13549
13550 cat >>confdefs.h <<\_ACEOF
13551 #define HAVE_PPDEV 1
13552 _ACEOF
13553
13554 fi
13555
13556 { echo "$as_me:$LINENO: checking for va_copy" >&5
13557 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13558 if test "${ac_cv_c_va_copy+set}" = set; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561   cat >conftest.$ac_ext <<_ACEOF
13562 /* confdefs.h.  */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h.  */
13567 #include <stdarg.h>
13568 int
13569 main ()
13570 {
13571 va_list ap1, ap2;
13572     va_copy(ap1,ap2);
13573
13574   ;
13575   return 0;
13576 }
13577 _ACEOF
13578 rm -f conftest.$ac_objext conftest$ac_exeext
13579 if { (ac_try="$ac_link"
13580 case "(($ac_try" in
13581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582   *) ac_try_echo=$ac_try;;
13583 esac
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585   (eval "$ac_link") 2>conftest.er1
13586   ac_status=$?
13587   grep -v '^ *+' conftest.er1 >conftest.err
13588   rm -f conftest.er1
13589   cat conftest.err >&5
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); } &&
13592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13593   { (case "(($ac_try" in
13594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595   *) ac_try_echo=$ac_try;;
13596 esac
13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598   (eval "$ac_try") 2>&5
13599   ac_status=$?
13600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601   (exit $ac_status); }; } &&
13602          { ac_try='test -s conftest$ac_exeext'
13603   { (case "(($ac_try" in
13604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13605   *) ac_try_echo=$ac_try;;
13606 esac
13607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13608   (eval "$ac_try") 2>&5
13609   ac_status=$?
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); }; }; then
13612   ac_cv_c_va_copy="yes"
13613 else
13614   echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13616
13617         ac_cv_c_va_copy="no"
13618 fi
13619
13620 rm -f core conftest.err conftest.$ac_objext \
13621       conftest$ac_exeext conftest.$ac_ext
13622
13623 fi
13624 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13625 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13626 if test "$ac_cv_c_va_copy" = "yes"
13627 then
13628
13629 cat >>confdefs.h <<\_ACEOF
13630 #define HAVE_VA_COPY 1
13631 _ACEOF
13632
13633 fi
13634 { echo "$as_me:$LINENO: checking for __va_copy" >&5
13635 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13636 if test "${ac_cv_c___va_copy+set}" = set; then
13637   echo $ECHO_N "(cached) $ECHO_C" >&6
13638 else
13639   cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h.  */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h.  */
13645 #include <stdarg.h>
13646 int
13647 main ()
13648 {
13649 va_list ap1, ap2;
13650     __va_copy(ap1,ap2);
13651
13652   ;
13653   return 0;
13654 }
13655 _ACEOF
13656 rm -f conftest.$ac_objext conftest$ac_exeext
13657 if { (ac_try="$ac_link"
13658 case "(($ac_try" in
13659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660   *) ac_try_echo=$ac_try;;
13661 esac
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663   (eval "$ac_link") 2>conftest.er1
13664   ac_status=$?
13665   grep -v '^ *+' conftest.er1 >conftest.err
13666   rm -f conftest.er1
13667   cat conftest.err >&5
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } &&
13670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13671   { (case "(($ac_try" in
13672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673   *) ac_try_echo=$ac_try;;
13674 esac
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676   (eval "$ac_try") 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; } &&
13680          { ac_try='test -s conftest$ac_exeext'
13681   { (case "(($ac_try" in
13682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683   *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686   (eval "$ac_try") 2>&5
13687   ac_status=$?
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); }; }; then
13690   ac_cv_c___va_copy="yes"
13691 else
13692   echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13694
13695         ac_cv_c___va_copy="no"
13696 fi
13697
13698 rm -f core conftest.err conftest.$ac_objext \
13699       conftest$ac_exeext conftest.$ac_ext
13700
13701 fi
13702 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13703 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13704 if test "$ac_cv_c___va_copy" = "yes"
13705 then
13706
13707 cat >>confdefs.h <<\_ACEOF
13708 #define HAVE___VA_COPY 1
13709 _ACEOF
13710
13711 fi
13712
13713 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13714 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13715 if test "${ac_cv_c_sigsetjmp+set}" = set; then
13716   echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718   cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h.  */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h.  */
13724 #include <setjmp.h>
13725 int
13726 main ()
13727 {
13728 sigjmp_buf buf;
13729     sigsetjmp( buf, 1 );
13730     siglongjmp( buf, 1 );
13731   ;
13732   return 0;
13733 }
13734 _ACEOF
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (ac_try="$ac_link"
13737 case "(($ac_try" in
13738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739   *) ac_try_echo=$ac_try;;
13740 esac
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742   (eval "$ac_link") 2>conftest.er1
13743   ac_status=$?
13744   grep -v '^ *+' conftest.er1 >conftest.err
13745   rm -f conftest.er1
13746   cat conftest.err >&5
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } &&
13749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13750   { (case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755   (eval "$ac_try") 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; } &&
13759          { ac_try='test -s conftest$ac_exeext'
13760   { (case "(($ac_try" in
13761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762   *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765   (eval "$ac_try") 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; }; then
13769   ac_cv_c_sigsetjmp="yes"
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774         ac_cv_c_sigsetjmp="no"
13775 fi
13776
13777 rm -f core conftest.err conftest.$ac_objext \
13778       conftest$ac_exeext conftest.$ac_ext
13779
13780 fi
13781 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13782 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13783 if test "$ac_cv_c_sigsetjmp" = "yes"
13784 then
13785
13786 cat >>confdefs.h <<\_ACEOF
13787 #define HAVE_SIGSETJMP 1
13788 _ACEOF
13789
13790 fi
13791
13792 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13793 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13794 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13795   echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797   cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h.  */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h.  */
13803 #define _GNU_SOURCE
13804 #include <pthread.h>
13805
13806 typedef pthread_rwlock_t ac__type_new_;
13807 int
13808 main ()
13809 {
13810 if ((ac__type_new_ *) 0)
13811   return 0;
13812 if (sizeof (ac__type_new_))
13813   return 0;
13814   ;
13815   return 0;
13816 }
13817 _ACEOF
13818 rm -f conftest.$ac_objext
13819 if { (ac_try="$ac_compile"
13820 case "(($ac_try" in
13821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822   *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825   (eval "$ac_compile") 2>conftest.er1
13826   ac_status=$?
13827   grep -v '^ *+' conftest.er1 >conftest.err
13828   rm -f conftest.er1
13829   cat conftest.err >&5
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); } &&
13832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13833   { (case "(($ac_try" in
13834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835   *) ac_try_echo=$ac_try;;
13836 esac
13837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13838   (eval "$ac_try") 2>&5
13839   ac_status=$?
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); }; } &&
13842          { ac_try='test -s conftest.$ac_objext'
13843   { (case "(($ac_try" in
13844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845   *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848   (eval "$ac_try") 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; }; then
13852   ac_cv_type_pthread_rwlock_t=yes
13853 else
13854   echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13856
13857         ac_cv_type_pthread_rwlock_t=no
13858 fi
13859
13860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 fi
13862 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13863 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
13864 if test $ac_cv_type_pthread_rwlock_t = yes; then
13865
13866 cat >>confdefs.h <<_ACEOF
13867 #define HAVE_PTHREAD_RWLOCK_T 1
13868 _ACEOF
13869
13870
13871 fi
13872 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13873 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
13874 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13875   echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877   cat >conftest.$ac_ext <<_ACEOF
13878 /* confdefs.h.  */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h.  */
13883 #define _GNU_SOURCE
13884 #include <pthread.h>
13885
13886 typedef pthread_rwlockattr_t ac__type_new_;
13887 int
13888 main ()
13889 {
13890 if ((ac__type_new_ *) 0)
13891   return 0;
13892 if (sizeof (ac__type_new_))
13893   return 0;
13894   ;
13895   return 0;
13896 }
13897 _ACEOF
13898 rm -f conftest.$ac_objext
13899 if { (ac_try="$ac_compile"
13900 case "(($ac_try" in
13901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902   *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905   (eval "$ac_compile") 2>conftest.er1
13906   ac_status=$?
13907   grep -v '^ *+' conftest.er1 >conftest.err
13908   rm -f conftest.er1
13909   cat conftest.err >&5
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); } &&
13912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13913   { (case "(($ac_try" in
13914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915   *) ac_try_echo=$ac_try;;
13916 esac
13917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918   (eval "$ac_try") 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); }; } &&
13922          { ac_try='test -s conftest.$ac_objext'
13923   { (case "(($ac_try" in
13924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925   *) ac_try_echo=$ac_try;;
13926 esac
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928   (eval "$ac_try") 2>&5
13929   ac_status=$?
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); }; }; then
13932   ac_cv_type_pthread_rwlockattr_t=yes
13933 else
13934   echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937         ac_cv_type_pthread_rwlockattr_t=no
13938 fi
13939
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 fi
13942 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
13943 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
13944 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
13945
13946 cat >>confdefs.h <<_ACEOF
13947 #define HAVE_PTHREAD_RWLOCKATTR_T 1
13948 _ACEOF
13949
13950
13951 fi
13952
13953
13954 ac_wine_check_funcs_save_LIBS="$LIBS"
13955 LIBS="$LIBS $LIBPTHREAD"
13956
13957
13958
13959 for ac_func in \
13960         pthread_getattr_np \
13961         pthread_get_stackaddr_np \
13962         pthread_get_stacksize_np
13963 do
13964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13968   echo $ECHO_N "(cached) $ECHO_C" >&6
13969 else
13970   cat >conftest.$ac_ext <<_ACEOF
13971 /* confdefs.h.  */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h.  */
13976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13978 #define $ac_func innocuous_$ac_func
13979
13980 /* System header to define __stub macros and hopefully few prototypes,
13981     which can conflict with char $ac_func (); below.
13982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13983     <limits.h> exists even on freestanding compilers.  */
13984
13985 #ifdef __STDC__
13986 # include <limits.h>
13987 #else
13988 # include <assert.h>
13989 #endif
13990
13991 #undef $ac_func
13992
13993 /* Override any GCC internal prototype to avoid an error.
13994    Use char because int might match the return type of a GCC
13995    builtin and then its argument prototype would still apply.  */
13996 #ifdef __cplusplus
13997 extern "C"
13998 #endif
13999 char $ac_func ();
14000 /* The GNU C library defines this for functions which it implements
14001     to always fail with ENOSYS.  Some functions are actually named
14002     something starting with __ and the normal name is an alias.  */
14003 #if defined __stub_$ac_func || defined __stub___$ac_func
14004 choke me
14005 #endif
14006
14007 int
14008 main ()
14009 {
14010 return $ac_func ();
14011   ;
14012   return 0;
14013 }
14014 _ACEOF
14015 rm -f conftest.$ac_objext conftest$ac_exeext
14016 if { (ac_try="$ac_link"
14017 case "(($ac_try" in
14018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019   *) ac_try_echo=$ac_try;;
14020 esac
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022   (eval "$ac_link") 2>conftest.er1
14023   ac_status=$?
14024   grep -v '^ *+' conftest.er1 >conftest.err
14025   rm -f conftest.er1
14026   cat conftest.err >&5
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); } &&
14029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14030   { (case "(($ac_try" in
14031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032   *) ac_try_echo=$ac_try;;
14033 esac
14034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035   (eval "$ac_try") 2>&5
14036   ac_status=$?
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); }; } &&
14039          { ac_try='test -s conftest$ac_exeext'
14040   { (case "(($ac_try" in
14041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042   *) ac_try_echo=$ac_try;;
14043 esac
14044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14045   (eval "$ac_try") 2>&5
14046   ac_status=$?
14047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); }; }; then
14049   eval "$as_ac_var=yes"
14050 else
14051   echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054         eval "$as_ac_var=no"
14055 fi
14056
14057 rm -f core conftest.err conftest.$ac_objext \
14058       conftest$ac_exeext conftest.$ac_ext
14059 fi
14060 ac_res=`eval echo '${'$as_ac_var'}'`
14061                { echo "$as_me:$LINENO: result: $ac_res" >&5
14062 echo "${ECHO_T}$ac_res" >&6; }
14063 if test `eval echo '${'$as_ac_var'}'` = yes; then
14064   cat >>confdefs.h <<_ACEOF
14065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14066 _ACEOF
14067
14068 fi
14069 done
14070
14071 LIBS="$ac_wine_check_funcs_save_LIBS"
14072
14073 # Extract the first word of "artsc-config", so it can be a program name with args.
14074 set dummy artsc-config; ac_word=$2
14075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14077 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
14078   echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080   case $ARTSCCONFIG in
14081   [\\/]* | ?:[\\/]*)
14082   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
14083   ;;
14084   *)
14085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14087 do
14088   IFS=$as_save_IFS
14089   test -z "$as_dir" && as_dir=.
14090   for ac_exec_ext in '' $ac_executable_extensions; do
14091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14092     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
14093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14094     break 2
14095   fi
14096 done
14097 done
14098 IFS=$as_save_IFS
14099
14100   ;;
14101 esac
14102 fi
14103 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
14104 if test -n "$ARTSCCONFIG"; then
14105   { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
14106 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
14107 else
14108   { echo "$as_me:$LINENO: result: no" >&5
14109 echo "${ECHO_T}no" >&6; }
14110 fi
14111
14112
14113 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
14114 then
14115     ARTSC_CFLAGS=""
14116     for i in `$ARTSCCONFIG --cflags`
14117     do
14118       case "$i" in
14119         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
14120       esac
14121     done
14122     ARTSC_LIBS=""
14123     for i in `$ARTSCCONFIG --libs`
14124     do
14125       case "$i" in
14126         -L/usr/lib|-L/usr/lib64) ;;
14127         -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
14128       esac
14129     done
14130     save_CFLAGS="$CFLAGS"
14131     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
14132     { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
14133 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
14134 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
14135   echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137   ac_check_lib_save_LIBS=$LIBS
14138 LIBS="-lartsc $ARTSC_LIBS $LIBS"
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h.  */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h.  */
14145
14146 /* Override any GCC internal prototype to avoid an error.
14147    Use char because int might match the return type of a GCC
14148    builtin and then its argument prototype would still apply.  */
14149 #ifdef __cplusplus
14150 extern "C"
14151 #endif
14152 char arts_init ();
14153 int
14154 main ()
14155 {
14156 return arts_init ();
14157   ;
14158   return 0;
14159 }
14160 _ACEOF
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (ac_try="$ac_link"
14163 case "(($ac_try" in
14164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165   *) ac_try_echo=$ac_try;;
14166 esac
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168   (eval "$ac_link") 2>conftest.er1
14169   ac_status=$?
14170   grep -v '^ *+' conftest.er1 >conftest.err
14171   rm -f conftest.er1
14172   cat conftest.err >&5
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); } &&
14175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176   { (case "(($ac_try" in
14177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178   *) ac_try_echo=$ac_try;;
14179 esac
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181   (eval "$ac_try") 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; } &&
14185          { ac_try='test -s conftest$ac_exeext'
14186   { (case "(($ac_try" in
14187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188   *) ac_try_echo=$ac_try;;
14189 esac
14190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191   (eval "$ac_try") 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); }; }; then
14195   ac_cv_lib_artsc_arts_init=yes
14196 else
14197   echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14199
14200         ac_cv_lib_artsc_arts_init=no
14201 fi
14202
14203 rm -f core conftest.err conftest.$ac_objext \
14204       conftest$ac_exeext conftest.$ac_ext
14205 LIBS=$ac_check_lib_save_LIBS
14206 fi
14207 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
14208 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
14209 if test $ac_cv_lib_artsc_arts_init = yes; then
14210   cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h.  */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h.  */
14216 #include <artsc.h>
14217 int
14218 main ()
14219 {
14220 arts_stream_t stream;
14221   ;
14222   return 0;
14223 }
14224 _ACEOF
14225 rm -f conftest.$ac_objext
14226 if { (ac_try="$ac_compile"
14227 case "(($ac_try" in
14228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229   *) ac_try_echo=$ac_try;;
14230 esac
14231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232   (eval "$ac_compile") 2>conftest.er1
14233   ac_status=$?
14234   grep -v '^ *+' conftest.er1 >conftest.err
14235   rm -f conftest.er1
14236   cat conftest.err >&5
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); } &&
14239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14240   { (case "(($ac_try" in
14241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242   *) ac_try_echo=$ac_try;;
14243 esac
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245   (eval "$ac_try") 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; } &&
14249          { ac_try='test -s conftest.$ac_objext'
14250   { (case "(($ac_try" in
14251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252   *) ac_try_echo=$ac_try;;
14253 esac
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255   (eval "$ac_try") 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; }; then
14259   ARTSLIBS=$ARTSC_LIBS
14260
14261             ARTSINCL=$ARTSC_CFLAGS
14262
14263
14264 cat >>confdefs.h <<\_ACEOF
14265 #define HAVE_ARTS 1
14266 _ACEOF
14267
14268 else
14269   echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14271
14272
14273 fi
14274
14275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14276 fi
14277
14278     CFLAGS="$save_CFLAGS"
14279 fi
14280
14281 # Extract the first word of "esd-config", so it can be a program name with args.
14282 set dummy esd-config; ac_word=$2
14283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14285 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
14286   echo $ECHO_N "(cached) $ECHO_C" >&6
14287 else
14288   case $ESDCONFIG in
14289   [\\/]* | ?:[\\/]*)
14290   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
14291   ;;
14292   *)
14293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14295 do
14296   IFS=$as_save_IFS
14297   test -z "$as_dir" && as_dir=.
14298   for ac_exec_ext in '' $ac_executable_extensions; do
14299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14300     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
14301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14302     break 2
14303   fi
14304 done
14305 done
14306 IFS=$as_save_IFS
14307
14308   ;;
14309 esac
14310 fi
14311 ESDCONFIG=$ac_cv_path_ESDCONFIG
14312 if test -n "$ESDCONFIG"; then
14313   { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
14314 echo "${ECHO_T}$ESDCONFIG" >&6; }
14315 else
14316   { echo "$as_me:$LINENO: result: no" >&5
14317 echo "${ECHO_T}no" >&6; }
14318 fi
14319
14320
14321 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
14322 then
14323     ESD_CFLAGS=""
14324     for i in `$ESDCONFIG --cflags`
14325     do
14326       case "$i" in
14327         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
14328       esac
14329     done
14330     ESD_LIBS=`$ESDCONFIG --libs`
14331     save_CFLAGS="$CFLAGS"
14332     CFLAGS="$CFLAGS $ESD_CFLAGS"
14333     { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
14334 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
14335 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
14336   echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338   ac_check_lib_save_LIBS=$LIBS
14339 LIBS="-lesd  $LIBS"
14340 cat >conftest.$ac_ext <<_ACEOF
14341 /* confdefs.h.  */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h.  */
14346
14347 /* Override any GCC internal prototype to avoid an error.
14348    Use char because int might match the return type of a GCC
14349    builtin and then its argument prototype would still apply.  */
14350 #ifdef __cplusplus
14351 extern "C"
14352 #endif
14353 char esd_open_sound ();
14354 int
14355 main ()
14356 {
14357 return esd_open_sound ();
14358   ;
14359   return 0;
14360 }
14361 _ACEOF
14362 rm -f conftest.$ac_objext conftest$ac_exeext
14363 if { (ac_try="$ac_link"
14364 case "(($ac_try" in
14365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366   *) ac_try_echo=$ac_try;;
14367 esac
14368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369   (eval "$ac_link") 2>conftest.er1
14370   ac_status=$?
14371   grep -v '^ *+' conftest.er1 >conftest.err
14372   rm -f conftest.er1
14373   cat conftest.err >&5
14374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375   (exit $ac_status); } &&
14376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14377   { (case "(($ac_try" in
14378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379   *) ac_try_echo=$ac_try;;
14380 esac
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382   (eval "$ac_try") 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); }; } &&
14386          { ac_try='test -s conftest$ac_exeext'
14387   { (case "(($ac_try" in
14388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389   *) ac_try_echo=$ac_try;;
14390 esac
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392   (eval "$ac_try") 2>&5
14393   ac_status=$?
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); }; }; then
14396   ac_cv_lib_esd_esd_open_sound=yes
14397 else
14398   echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14400
14401         ac_cv_lib_esd_esd_open_sound=no
14402 fi
14403
14404 rm -f core conftest.err conftest.$ac_objext \
14405       conftest$ac_exeext conftest.$ac_ext
14406 LIBS=$ac_check_lib_save_LIBS
14407 fi
14408 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14409 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
14410 if test $ac_cv_lib_esd_esd_open_sound = yes; then
14411   ESDLIBS=$ESD_LIBS
14412
14413          ESDINCL=$ESD_CFLAGS
14414
14415
14416 cat >>confdefs.h <<\_ACEOF
14417 #define HAVE_ESD 1
14418 _ACEOF
14419
14420 fi
14421
14422     CFLAGS="$save_CFLAGS"
14423 fi
14424
14425 ALSALIBS=""
14426
14427 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
14428 then
14429     { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14430 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
14431 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
14432   echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434   ac_check_lib_save_LIBS=$LIBS
14435 LIBS="-lasound  $LIBS"
14436 cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h.  */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h.  */
14442
14443 /* Override any GCC internal prototype to avoid an error.
14444    Use char because int might match the return type of a GCC
14445    builtin and then its argument prototype would still apply.  */
14446 #ifdef __cplusplus
14447 extern "C"
14448 #endif
14449 char snd_pcm_hw_params_get_access ();
14450 int
14451 main ()
14452 {
14453 return snd_pcm_hw_params_get_access ();
14454   ;
14455   return 0;
14456 }
14457 _ACEOF
14458 rm -f conftest.$ac_objext conftest$ac_exeext
14459 if { (ac_try="$ac_link"
14460 case "(($ac_try" in
14461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462   *) ac_try_echo=$ac_try;;
14463 esac
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465   (eval "$ac_link") 2>conftest.er1
14466   ac_status=$?
14467   grep -v '^ *+' conftest.er1 >conftest.err
14468   rm -f conftest.er1
14469   cat conftest.err >&5
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); } &&
14472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14473   { (case "(($ac_try" in
14474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475   *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478   (eval "$ac_try") 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; } &&
14482          { ac_try='test -s conftest$ac_exeext'
14483   { (case "(($ac_try" in
14484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485   *) ac_try_echo=$ac_try;;
14486 esac
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488   (eval "$ac_try") 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; }; then
14492   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
14493 else
14494   echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14496
14497         ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
14498 fi
14499
14500 rm -f core conftest.err conftest.$ac_objext \
14501       conftest$ac_exeext conftest.$ac_ext
14502 LIBS=$ac_check_lib_save_LIBS
14503 fi
14504 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14505 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
14506 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14507   cat >conftest.$ac_ext <<_ACEOF
14508 /* confdefs.h.  */
14509 _ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h.  */
14513 #ifdef HAVE_ALSA_ASOUNDLIB_H
14514 #include <alsa/asoundlib.h>
14515 #elif defined(HAVE_SYS_ASOUNDLIB_H)
14516 #include <sys/asoundlib.h>
14517 #endif
14518 int
14519 main ()
14520 {
14521 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14522   ;
14523   return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext
14527 if { (ac_try="$ac_compile"
14528 case "(($ac_try" in
14529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530   *) ac_try_echo=$ac_try;;
14531 esac
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533   (eval "$ac_compile") 2>conftest.er1
14534   ac_status=$?
14535   grep -v '^ *+' conftest.er1 >conftest.err
14536   rm -f conftest.er1
14537   cat conftest.err >&5
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); } &&
14540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14541   { (case "(($ac_try" in
14542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543   *) ac_try_echo=$ac_try;;
14544 esac
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546   (eval "$ac_try") 2>&5
14547   ac_status=$?
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); }; } &&
14550          { ac_try='test -s conftest.$ac_objext'
14551   { (case "(($ac_try" in
14552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553   *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556   (eval "$ac_try") 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); }; }; then
14560
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_ALSA 1
14563 _ACEOF
14564
14565                          ALSALIBS="-lasound"
14566 else
14567   echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14569
14570
14571 fi
14572
14573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14574 fi
14575
14576 fi
14577
14578
14579 AUDIOIOLIBS=""
14580
14581 if test "$ac_cv_header_libaudioio_h" = "yes"
14582 then
14583     { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14584 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14585 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14586   echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588   ac_check_lib_save_LIBS=$LIBS
14589 LIBS="-laudioio  $LIBS"
14590 cat >conftest.$ac_ext <<_ACEOF
14591 /* confdefs.h.  */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h.  */
14596
14597 /* Override any GCC internal prototype to avoid an error.
14598    Use char because int might match the return type of a GCC
14599    builtin and then its argument prototype would still apply.  */
14600 #ifdef __cplusplus
14601 extern "C"
14602 #endif
14603 char AudioIOGetVersion ();
14604 int
14605 main ()
14606 {
14607 return AudioIOGetVersion ();
14608   ;
14609   return 0;
14610 }
14611 _ACEOF
14612 rm -f conftest.$ac_objext conftest$ac_exeext
14613 if { (ac_try="$ac_link"
14614 case "(($ac_try" in
14615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616   *) ac_try_echo=$ac_try;;
14617 esac
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619   (eval "$ac_link") 2>conftest.er1
14620   ac_status=$?
14621   grep -v '^ *+' conftest.er1 >conftest.err
14622   rm -f conftest.er1
14623   cat conftest.err >&5
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); } &&
14626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14627   { (case "(($ac_try" in
14628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629   *) ac_try_echo=$ac_try;;
14630 esac
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632   (eval "$ac_try") 2>&5
14633   ac_status=$?
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); }; } &&
14636          { ac_try='test -s conftest$ac_exeext'
14637   { (case "(($ac_try" in
14638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639   *) ac_try_echo=$ac_try;;
14640 esac
14641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642   (eval "$ac_try") 2>&5
14643   ac_status=$?
14644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); }; }; then
14646   ac_cv_lib_audioio_AudioIOGetVersion=yes
14647 else
14648   echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14650
14651         ac_cv_lib_audioio_AudioIOGetVersion=no
14652 fi
14653
14654 rm -f core conftest.err conftest.$ac_objext \
14655       conftest$ac_exeext conftest.$ac_ext
14656 LIBS=$ac_check_lib_save_LIBS
14657 fi
14658 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14659 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14660 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14661   AUDIOIOLIBS="-laudioio"
14662
14663 cat >>confdefs.h <<\_ACEOF
14664 #define HAVE_LIBAUDIOIO 1
14665 _ACEOF
14666
14667 fi
14668
14669 fi
14670
14671
14672 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14673 then
14674     { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14675 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
14676 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14677   echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679   ac_check_lib_save_LIBS=$LIBS
14680 LIBS="-lcapi20  $LIBS"
14681 cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h.  */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h.  */
14687
14688 /* Override any GCC internal prototype to avoid an error.
14689    Use char because int might match the return type of a GCC
14690    builtin and then its argument prototype would still apply.  */
14691 #ifdef __cplusplus
14692 extern "C"
14693 #endif
14694 char capi20_register ();
14695 int
14696 main ()
14697 {
14698 return capi20_register ();
14699   ;
14700   return 0;
14701 }
14702 _ACEOF
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (ac_try="$ac_link"
14705 case "(($ac_try" in
14706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707   *) ac_try_echo=$ac_try;;
14708 esac
14709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710   (eval "$ac_link") 2>conftest.er1
14711   ac_status=$?
14712   grep -v '^ *+' conftest.er1 >conftest.err
14713   rm -f conftest.er1
14714   cat conftest.err >&5
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); } &&
14717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14718   { (case "(($ac_try" in
14719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720   *) ac_try_echo=$ac_try;;
14721 esac
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723   (eval "$ac_try") 2>&5
14724   ac_status=$?
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); }; } &&
14727          { ac_try='test -s conftest$ac_exeext'
14728   { (case "(($ac_try" in
14729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730   *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733   (eval "$ac_try") 2>&5
14734   ac_status=$?
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); }; }; then
14737   ac_cv_lib_capi20_capi20_register=yes
14738 else
14739   echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14741
14742         ac_cv_lib_capi20_capi20_register=no
14743 fi
14744
14745 rm -f core conftest.err conftest.$ac_objext \
14746       conftest$ac_exeext conftest.$ac_ext
14747 LIBS=$ac_check_lib_save_LIBS
14748 fi
14749 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14750 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
14751 if test $ac_cv_lib_capi20_capi20_register = yes; then
14752
14753 cat >>confdefs.h <<\_ACEOF
14754 #define HAVE_CAPI4LINUX 1
14755 _ACEOF
14756
14757 fi
14758
14759 fi
14760
14761
14762 if test "$ac_cv_header_gif_lib_h" = "yes"
14763 then
14764     cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h.  */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h.  */
14770 #include <gif_lib.h>
14771 int
14772 main ()
14773 {
14774 static typeof(DGifOpen) * func;
14775   ;
14776   return 0;
14777 }
14778 _ACEOF
14779 rm -f conftest.$ac_objext
14780 if { (ac_try="$ac_compile"
14781 case "(($ac_try" in
14782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783   *) ac_try_echo=$ac_try;;
14784 esac
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786   (eval "$ac_compile") 2>conftest.er1
14787   ac_status=$?
14788   grep -v '^ *+' conftest.er1 >conftest.err
14789   rm -f conftest.er1
14790   cat conftest.err >&5
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); } &&
14793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14794   { (case "(($ac_try" in
14795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796   *) ac_try_echo=$ac_try;;
14797 esac
14798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14799   (eval "$ac_try") 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); }; } &&
14803          { ac_try='test -s conftest.$ac_objext'
14804   { (case "(($ac_try" in
14805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806   *) ac_try_echo=$ac_try;;
14807 esac
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809   (eval "$ac_try") 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); }; }; then
14813
14814 cat >>confdefs.h <<\_ACEOF
14815 #define HAVE_GIF 1
14816 _ACEOF
14817
14818 else
14819   echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14821
14822
14823 fi
14824
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 fi
14827
14828
14829 EXTRACFLAGS=""
14830
14831 if test "x${GCC}" = "xyes"
14832 then
14833   EXTRACFLAGS="-Wall -pipe"
14834
14835     { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14836 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14837 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14838   echo $ECHO_N "(cached) $ECHO_C" >&6
14839 else
14840   if test "$cross_compiling" = yes; then
14841   ac_cv_c_gcc_strength_bug="yes"
14842 else
14843   cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h.  */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h.  */
14849
14850 int     L[4] = {0,1,2,3};
14851 int main(void) {
14852   static int Array[3];
14853   unsigned int B = 3;
14854   int i;
14855   for(i=0; i<B; i++) Array[i] = i - 3;
14856   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14857   L[i] = 4;
14858
14859   exit( Array[1] != -2 || L[2] != 3);
14860 }
14861 _ACEOF
14862 rm -f conftest$ac_exeext
14863 if { (ac_try="$ac_link"
14864 case "(($ac_try" in
14865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866   *) ac_try_echo=$ac_try;;
14867 esac
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869   (eval "$ac_link") 2>&5
14870   ac_status=$?
14871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14873   { (case "(($ac_try" in
14874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875   *) ac_try_echo=$ac_try;;
14876 esac
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878   (eval "$ac_try") 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); }; }; then
14882   ac_cv_c_gcc_strength_bug="no"
14883 else
14884   echo "$as_me: program exited with status $ac_status" >&5
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14887
14888 ( exit $ac_status )
14889 ac_cv_c_gcc_strength_bug="yes"
14890 fi
14891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14892 fi
14893
14894
14895 fi
14896 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14897 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
14898   if test "$ac_cv_c_gcc_strength_bug" = "yes"
14899   then
14900     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
14901   fi
14902
14903     { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
14904 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; }
14905 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908   ac_wine_try_cflags_saved=$CFLAGS
14909 CFLAGS="$CFLAGS -fshort-wchar"
14910 cat >conftest.$ac_ext <<_ACEOF
14911 /* confdefs.h.  */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h.  */
14916
14917 int
14918 main ()
14919 {
14920
14921   ;
14922   return 0;
14923 }
14924 _ACEOF
14925 rm -f conftest.$ac_objext conftest$ac_exeext
14926 if { (ac_try="$ac_link"
14927 case "(($ac_try" in
14928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929   *) ac_try_echo=$ac_try;;
14930 esac
14931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14932   (eval "$ac_link") 2>conftest.er1
14933   ac_status=$?
14934   grep -v '^ *+' conftest.er1 >conftest.err
14935   rm -f conftest.er1
14936   cat conftest.err >&5
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); } &&
14939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14940   { (case "(($ac_try" in
14941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942   *) ac_try_echo=$ac_try;;
14943 esac
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945   (eval "$ac_try") 2>&5
14946   ac_status=$?
14947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948   (exit $ac_status); }; } &&
14949          { ac_try='test -s conftest$ac_exeext'
14950   { (case "(($ac_try" in
14951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952   *) ac_try_echo=$ac_try;;
14953 esac
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955   (eval "$ac_try") 2>&5
14956   ac_status=$?
14957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958   (exit $ac_status); }; }; then
14959   ac_cv_c_gcc_fshort_wchar="yes"
14960 else
14961   echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14963
14964         ac_cv_c_gcc_fshort_wchar="no"
14965 fi
14966
14967 rm -f core conftest.err conftest.$ac_objext \
14968       conftest$ac_exeext conftest.$ac_ext
14969 CFLAGS=$ac_wine_try_cflags_saved
14970 fi
14971 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
14972 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; }
14973   if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
14974   then
14975
14976 cat >>confdefs.h <<\_ACEOF
14977 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
14978 _ACEOF
14979
14980   fi
14981
14982     { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
14983 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; }
14984 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
14985   echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987   ac_wine_try_cflags_saved=$CFLAGS
14988 CFLAGS="$CFLAGS -fno-strict-aliasing"
14989 cat >conftest.$ac_ext <<_ACEOF
14990 /* confdefs.h.  */
14991 _ACEOF
14992 cat confdefs.h >>conftest.$ac_ext
14993 cat >>conftest.$ac_ext <<_ACEOF
14994 /* end confdefs.h.  */
14995
14996 int
14997 main ()
14998 {
14999
15000   ;
15001   return 0;
15002 }
15003 _ACEOF
15004 rm -f conftest.$ac_objext conftest$ac_exeext
15005 if { (ac_try="$ac_link"
15006 case "(($ac_try" in
15007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008   *) ac_try_echo=$ac_try;;
15009 esac
15010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011   (eval "$ac_link") 2>conftest.er1
15012   ac_status=$?
15013   grep -v '^ *+' conftest.er1 >conftest.err
15014   rm -f conftest.er1
15015   cat conftest.err >&5
15016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017   (exit $ac_status); } &&
15018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15019   { (case "(($ac_try" in
15020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021   *) ac_try_echo=$ac_try;;
15022 esac
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024   (eval "$ac_try") 2>&5
15025   ac_status=$?
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); }; } &&
15028          { ac_try='test -s conftest$ac_exeext'
15029   { (case "(($ac_try" in
15030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031   *) ac_try_echo=$ac_try;;
15032 esac
15033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034   (eval "$ac_try") 2>&5
15035   ac_status=$?
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); }; }; then
15038   ac_cv_c_gcc_no_strict_aliasing="yes"
15039 else
15040   echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15042
15043         ac_cv_c_gcc_no_strict_aliasing="no"
15044 fi
15045
15046 rm -f core conftest.err conftest.$ac_objext \
15047       conftest$ac_exeext conftest.$ac_ext
15048 CFLAGS=$ac_wine_try_cflags_saved
15049 fi
15050 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
15051 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; }
15052   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
15053   then
15054     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
15055   fi
15056
15057     { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
15058 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; }
15059 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
15060   echo $ECHO_N "(cached) $ECHO_C" >&6
15061 else
15062   ac_wine_try_cflags_saved=$CFLAGS
15063 CFLAGS="$CFLAGS -gstabs+"
15064 cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h.  */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h.  */
15070
15071 int
15072 main ()
15073 {
15074
15075   ;
15076   return 0;
15077 }
15078 _ACEOF
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (ac_try="$ac_link"
15081 case "(($ac_try" in
15082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083   *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086   (eval "$ac_link") 2>conftest.er1
15087   ac_status=$?
15088   grep -v '^ *+' conftest.er1 >conftest.err
15089   rm -f conftest.er1
15090   cat conftest.err >&5
15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); } &&
15093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15094   { (case "(($ac_try" in
15095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096   *) ac_try_echo=$ac_try;;
15097 esac
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099   (eval "$ac_try") 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); }; } &&
15103          { ac_try='test -s conftest$ac_exeext'
15104   { (case "(($ac_try" in
15105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106   *) ac_try_echo=$ac_try;;
15107 esac
15108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15109   (eval "$ac_try") 2>&5
15110   ac_status=$?
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); }; }; then
15113   ac_cv_c_gcc_gstabs="yes"
15114 else
15115   echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15117
15118         ac_cv_c_gcc_gstabs="no"
15119 fi
15120
15121 rm -f core conftest.err conftest.$ac_objext \
15122       conftest$ac_exeext conftest.$ac_ext
15123 CFLAGS=$ac_wine_try_cflags_saved
15124 fi
15125 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
15126 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; }
15127   if test "$ac_cv_c_gcc_gstabs" = "yes"
15128   then
15129     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
15130   fi
15131
15132     { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
15133 echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15134 if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
15135   echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137   ac_wine_try_cflags_saved=$CFLAGS
15138 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15139 cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h.  */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h.  */
15145
15146 int
15147 main ()
15148 {
15149
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (ac_try="$ac_link"
15156 case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_link") 2>conftest.er1
15162   ac_status=$?
15163   grep -v '^ *+' conftest.er1 >conftest.err
15164   rm -f conftest.er1
15165   cat conftest.err >&5
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } &&
15168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169   { (case "(($ac_try" in
15170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171   *) ac_try_echo=$ac_try;;
15172 esac
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174   (eval "$ac_try") 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; } &&
15178          { ac_try='test -s conftest$ac_exeext'
15179   { (case "(($ac_try" in
15180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181   *) ac_try_echo=$ac_try;;
15182 esac
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184   (eval "$ac_try") 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); }; }; then
15188   ac_cv_c_gcc_decl_after_statement="yes"
15189 else
15190   echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15192
15193         ac_cv_c_gcc_decl_after_statement="no"
15194 fi
15195
15196 rm -f core conftest.err conftest.$ac_objext \
15197       conftest$ac_exeext conftest.$ac_ext
15198 CFLAGS=$ac_wine_try_cflags_saved
15199 fi
15200 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
15201 echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; }
15202   if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
15203   then
15204     EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
15205   fi
15206
15207     saved_CFLAGS="$CFLAGS"
15208   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
15209   { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15210 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
15211 if test "${ac_cv_c_string_h_warnings+set}" = set; then
15212   echo $ECHO_N "(cached) $ECHO_C" >&6
15213 else
15214   cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h.  */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h.  */
15220 #include <string.h>
15221 int
15222 main ()
15223 {
15224
15225   ;
15226   return 0;
15227 }
15228 _ACEOF
15229 rm -f conftest.$ac_objext
15230 if { (ac_try="$ac_compile"
15231 case "(($ac_try" in
15232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233   *) ac_try_echo=$ac_try;;
15234 esac
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236   (eval "$ac_compile") 2>conftest.er1
15237   ac_status=$?
15238   grep -v '^ *+' conftest.er1 >conftest.err
15239   rm -f conftest.er1
15240   cat conftest.err >&5
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); } &&
15243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244   { (case "(($ac_try" in
15245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246   *) ac_try_echo=$ac_try;;
15247 esac
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249   (eval "$ac_try") 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; } &&
15253          { ac_try='test -s conftest.$ac_objext'
15254   { (case "(($ac_try" in
15255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256   *) ac_try_echo=$ac_try;;
15257 esac
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259   (eval "$ac_try") 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263   ac_cv_c_string_h_warnings=no
15264 else
15265   echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15267
15268         ac_cv_c_string_h_warnings=yes
15269 fi
15270
15271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15272 fi
15273 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15274 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
15275   CFLAGS="$saved_CFLAGS"
15276   if test "$ac_cv_c_string_h_warnings" = "no"
15277   then
15278     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
15279   fi
15280
15281   BUILTINFLAG=""
15282
15283   saved_CFLAGS="$CFLAGS"
15284   CFLAGS="$CFLAGS -Werror"
15285   { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15286 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
15287 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15288   echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290   cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296
15297 int
15298 main ()
15299 {
15300 int iswlower(unsigned short);
15301   ;
15302   return 0;
15303 }
15304 _ACEOF
15305 rm -f conftest.$ac_objext
15306 if { (ac_try="$ac_compile"
15307 case "(($ac_try" in
15308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309   *) ac_try_echo=$ac_try;;
15310 esac
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312   (eval "$ac_compile") 2>conftest.er1
15313   ac_status=$?
15314   grep -v '^ *+' conftest.er1 >conftest.err
15315   rm -f conftest.er1
15316   cat conftest.err >&5
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); } &&
15319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320   { (case "(($ac_try" in
15321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322   *) ac_try_echo=$ac_try;;
15323 esac
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325   (eval "$ac_try") 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; } &&
15329          { ac_try='test -s conftest.$ac_objext'
15330   { (case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_try") 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; }; then
15339   ac_cv_c_builtin_wchar_ctype=no
15340 else
15341   echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344         ac_cv_c_builtin_wchar_ctype=yes
15345 fi
15346
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 fi
15349 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15350 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
15351   CFLAGS="$saved_CFLAGS"
15352   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15353   then
15354     BUILTINFLAG="-fno-builtin"
15355   fi
15356 fi
15357
15358
15359 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15360 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
15361 if test "${ac_cv_asm_func_def+set}" = set; then
15362   echo $ECHO_N "(cached) $ECHO_C" >&6
15363 else
15364   cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h.  */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h.  */
15370 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"); }
15371
15372 int
15373 main ()
15374 {
15375
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384   *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387   (eval "$ac_link") 2>conftest.er1
15388   ac_status=$?
15389   grep -v '^ *+' conftest.er1 >conftest.err
15390   rm -f conftest.er1
15391   cat conftest.err >&5
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } &&
15394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15395   { (case "(($ac_try" in
15396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397   *) ac_try_echo=$ac_try;;
15398 esac
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400   (eval "$ac_try") 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; } &&
15404          { ac_try='test -s conftest$ac_exeext'
15405   { (case "(($ac_try" in
15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407   *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410   (eval "$ac_try") 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; }; then
15414   ac_cv_asm_func_def=".def"
15415 else
15416   echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15418
15419         cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h.  */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h.  */
15425 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
15426
15427 int
15428 main ()
15429 {
15430
15431   ;
15432   return 0;
15433 }
15434 _ACEOF
15435 rm -f conftest.$ac_objext conftest$ac_exeext
15436 if { (ac_try="$ac_link"
15437 case "(($ac_try" in
15438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439   *) ac_try_echo=$ac_try;;
15440 esac
15441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15442   (eval "$ac_link") 2>conftest.er1
15443   ac_status=$?
15444   grep -v '^ *+' conftest.er1 >conftest.err
15445   rm -f conftest.er1
15446   cat conftest.err >&5
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); } &&
15449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15450   { (case "(($ac_try" in
15451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452   *) ac_try_echo=$ac_try;;
15453 esac
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455   (eval "$ac_try") 2>&5
15456   ac_status=$?
15457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458   (exit $ac_status); }; } &&
15459          { ac_try='test -s conftest$ac_exeext'
15460   { (case "(($ac_try" in
15461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15462   *) ac_try_echo=$ac_try;;
15463 esac
15464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15465   (eval "$ac_try") 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); }; }; then
15469   ac_cv_asm_func_def=".type @function"
15470 else
15471   echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15473
15474         cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h.  */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h.  */
15480 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
15481
15482 int
15483 main ()
15484 {
15485
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 rm -f conftest.$ac_objext conftest$ac_exeext
15491 if { (ac_try="$ac_link"
15492 case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497   (eval "$ac_link") 2>conftest.er1
15498   ac_status=$?
15499   grep -v '^ *+' conftest.er1 >conftest.err
15500   rm -f conftest.er1
15501   cat conftest.err >&5
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); } &&
15504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15505   { (case "(($ac_try" in
15506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507   *) ac_try_echo=$ac_try;;
15508 esac
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510   (eval "$ac_try") 2>&5
15511   ac_status=$?
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); }; } &&
15514          { ac_try='test -s conftest$ac_exeext'
15515   { (case "(($ac_try" in
15516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517   *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520   (eval "$ac_try") 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); }; }; then
15524   ac_cv_asm_func_def=".type 2"
15525 else
15526   echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529         ac_cv_asm_func_def="unknown"
15530 fi
15531
15532 rm -f core conftest.err conftest.$ac_objext \
15533       conftest$ac_exeext conftest.$ac_ext
15534 fi
15535
15536 rm -f core conftest.err conftest.$ac_objext \
15537       conftest$ac_exeext conftest.$ac_ext
15538 fi
15539
15540 rm -f core conftest.err conftest.$ac_objext \
15541       conftest$ac_exeext conftest.$ac_ext
15542 fi
15543 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15544 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
15545
15546
15547
15548 case "$ac_cv_asm_func_def" in
15549   ".def")
15550      cat >>confdefs.h <<\_ACEOF
15551 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15552 _ACEOF
15553  ;;
15554   ".type @function")
15555      cat >>confdefs.h <<\_ACEOF
15556 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15557 _ACEOF
15558  ;;
15559   ".type 2")
15560      cat >>confdefs.h <<\_ACEOF
15561 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15562 _ACEOF
15563  ;;
15564   *)
15565      cat >>confdefs.h <<\_ACEOF
15566 #define __ASM_FUNC(name) ""
15567 _ACEOF
15568  ;;
15569 esac
15570
15571
15572 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15573 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15574 if test "${ac_cv_c_extern_prefix+set}" = set; then
15575   echo $ECHO_N "(cached) $ECHO_C" >&6
15576 else
15577   cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h.  */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h.  */
15583 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
15584 extern int ac_test;
15585 int
15586 main ()
15587 {
15588 if (ac_test) return 1
15589   ;
15590   return 0;
15591 }
15592 _ACEOF
15593 rm -f conftest.$ac_objext conftest$ac_exeext
15594 if { (ac_try="$ac_link"
15595 case "(($ac_try" in
15596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597   *) ac_try_echo=$ac_try;;
15598 esac
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600   (eval "$ac_link") 2>conftest.er1
15601   ac_status=$?
15602   grep -v '^ *+' conftest.er1 >conftest.err
15603   rm -f conftest.er1
15604   cat conftest.err >&5
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); } &&
15607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15608   { (case "(($ac_try" in
15609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610   *) ac_try_echo=$ac_try;;
15611 esac
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613   (eval "$ac_try") 2>&5
15614   ac_status=$?
15615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616   (exit $ac_status); }; } &&
15617          { ac_try='test -s conftest$ac_exeext'
15618   { (case "(($ac_try" in
15619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620   *) ac_try_echo=$ac_try;;
15621 esac
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623   (eval "$ac_try") 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; }; then
15627   ac_cv_c_extern_prefix="yes"
15628 else
15629   echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15631
15632         ac_cv_c_extern_prefix="no"
15633 fi
15634
15635 rm -f core conftest.err conftest.$ac_objext \
15636       conftest$ac_exeext conftest.$ac_ext
15637 fi
15638 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15639 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
15640
15641
15642
15643 if test "$ac_cv_c_extern_prefix" = "yes"
15644 then
15645   cat >>confdefs.h <<\_ACEOF
15646 #define __ASM_NAME(name) "_" name
15647 _ACEOF
15648
15649 else
15650   cat >>confdefs.h <<\_ACEOF
15651 #define __ASM_NAME(name) name
15652 _ACEOF
15653
15654 fi
15655
15656
15657 DLLEXT=""
15658
15659 DLLFLAGS="-D_REENTRANT"
15660
15661 DLLIBS=""
15662
15663 LDSHARED=""
15664
15665 LDDLLFLAGS=""
15666
15667 LIBEXT="so"
15668
15669 IMPLIBEXT="def"
15670
15671
15672 case $host_os in
15673   cygwin*|mingw32*)
15674     if test -n "$ac_tool_prefix"; then
15675   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15676 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15679 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15680   echo $ECHO_N "(cached) $ECHO_C" >&6
15681 else
15682   if test -n "$DLLTOOL"; then
15683   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15684 else
15685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15686 for as_dir in $PATH
15687 do
15688   IFS=$as_save_IFS
15689   test -z "$as_dir" && as_dir=.
15690   for ac_exec_ext in '' $ac_executable_extensions; do
15691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15692     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15694     break 2
15695   fi
15696 done
15697 done
15698 IFS=$as_save_IFS
15699
15700 fi
15701 fi
15702 DLLTOOL=$ac_cv_prog_DLLTOOL
15703 if test -n "$DLLTOOL"; then
15704   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15705 echo "${ECHO_T}$DLLTOOL" >&6; }
15706 else
15707   { echo "$as_me:$LINENO: result: no" >&5
15708 echo "${ECHO_T}no" >&6; }
15709 fi
15710
15711
15712 fi
15713 if test -z "$ac_cv_prog_DLLTOOL"; then
15714   ac_ct_DLLTOOL=$DLLTOOL
15715   # Extract the first word of "dlltool", so it can be a program name with args.
15716 set dummy dlltool; ac_word=$2
15717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15719 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15720   echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722   if test -n "$ac_ct_DLLTOOL"; then
15723   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15724 else
15725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726 for as_dir in $PATH
15727 do
15728   IFS=$as_save_IFS
15729   test -z "$as_dir" && as_dir=.
15730   for ac_exec_ext in '' $ac_executable_extensions; do
15731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15732     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15734     break 2
15735   fi
15736 done
15737 done
15738 IFS=$as_save_IFS
15739
15740 fi
15741 fi
15742 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15743 if test -n "$ac_ct_DLLTOOL"; then
15744   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15745 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
15746 else
15747   { echo "$as_me:$LINENO: result: no" >&5
15748 echo "${ECHO_T}no" >&6; }
15749 fi
15750
15751   if test "x$ac_ct_DLLTOOL" = x; then
15752     DLLTOOL="false"
15753   else
15754     case $cross_compiling:$ac_tool_warned in
15755 yes:)
15756 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15757 whose name does not start with the host triplet.  If you think this
15758 configuration is useful to you, please write to autoconf@gnu.org." >&5
15759 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15760 whose name does not start with the host triplet.  If you think this
15761 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15762 ac_tool_warned=yes ;;
15763 esac
15764     DLLTOOL=$ac_ct_DLLTOOL
15765   fi
15766 else
15767   DLLTOOL="$ac_cv_prog_DLLTOOL"
15768 fi
15769
15770     if test -n "$ac_tool_prefix"; then
15771   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15772 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
15773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15775 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15776   echo $ECHO_N "(cached) $ECHO_C" >&6
15777 else
15778   if test -n "$DLLWRAP"; then
15779   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15780 else
15781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15782 for as_dir in $PATH
15783 do
15784   IFS=$as_save_IFS
15785   test -z "$as_dir" && as_dir=.
15786   for ac_exec_ext in '' $ac_executable_extensions; do
15787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15788     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
15789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15790     break 2
15791   fi
15792 done
15793 done
15794 IFS=$as_save_IFS
15795
15796 fi
15797 fi
15798 DLLWRAP=$ac_cv_prog_DLLWRAP
15799 if test -n "$DLLWRAP"; then
15800   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15801 echo "${ECHO_T}$DLLWRAP" >&6; }
15802 else
15803   { echo "$as_me:$LINENO: result: no" >&5
15804 echo "${ECHO_T}no" >&6; }
15805 fi
15806
15807
15808 fi
15809 if test -z "$ac_cv_prog_DLLWRAP"; then
15810   ac_ct_DLLWRAP=$DLLWRAP
15811   # Extract the first word of "dllwrap", so it can be a program name with args.
15812 set dummy dllwrap; ac_word=$2
15813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15815 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15816   echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818   if test -n "$ac_ct_DLLWRAP"; then
15819   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15820 else
15821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15822 for as_dir in $PATH
15823 do
15824   IFS=$as_save_IFS
15825   test -z "$as_dir" && as_dir=.
15826   for ac_exec_ext in '' $ac_executable_extensions; do
15827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15828     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15830     break 2
15831   fi
15832 done
15833 done
15834 IFS=$as_save_IFS
15835
15836 fi
15837 fi
15838 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15839 if test -n "$ac_ct_DLLWRAP"; then
15840   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15841 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
15842 else
15843   { echo "$as_me:$LINENO: result: no" >&5
15844 echo "${ECHO_T}no" >&6; }
15845 fi
15846
15847   if test "x$ac_ct_DLLWRAP" = x; then
15848     DLLWRAP="false"
15849   else
15850     case $cross_compiling:$ac_tool_warned in
15851 yes:)
15852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15853 whose name does not start with the host triplet.  If you think this
15854 configuration is useful to you, please write to autoconf@gnu.org." >&5
15855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15856 whose name does not start with the host triplet.  If you think this
15857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15858 ac_tool_warned=yes ;;
15859 esac
15860     DLLWRAP=$ac_ct_DLLWRAP
15861   fi
15862 else
15863   DLLWRAP="$ac_cv_prog_DLLWRAP"
15864 fi
15865
15866     if test "$DLLWRAP" = "false"; then
15867       LIBEXT="a"
15868     else
15869             LIBEXT="dll"
15870     fi
15871     IMPLIBEXT="a"
15872         WIN16_FILES=""
15873     WIN16_INSTALL=""
15874     ;;
15875   *)
15876     if test "$ac_cv_header_dlfcn_h" = "yes"
15877     then
15878
15879 for ac_func in dlopen
15880 do
15881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15882 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15885   echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887   cat >conftest.$ac_ext <<_ACEOF
15888 /* confdefs.h.  */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h.  */
15893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15895 #define $ac_func innocuous_$ac_func
15896
15897 /* System header to define __stub macros and hopefully few prototypes,
15898     which can conflict with char $ac_func (); below.
15899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15900     <limits.h> exists even on freestanding compilers.  */
15901
15902 #ifdef __STDC__
15903 # include <limits.h>
15904 #else
15905 # include <assert.h>
15906 #endif
15907
15908 #undef $ac_func
15909
15910 /* Override any GCC internal prototype to avoid an error.
15911    Use char because int might match the return type of a GCC
15912    builtin and then its argument prototype would still apply.  */
15913 #ifdef __cplusplus
15914 extern "C"
15915 #endif
15916 char $ac_func ();
15917 /* The GNU C library defines this for functions which it implements
15918     to always fail with ENOSYS.  Some functions are actually named
15919     something starting with __ and the normal name is an alias.  */
15920 #if defined __stub_$ac_func || defined __stub___$ac_func
15921 choke me
15922 #endif
15923
15924 int
15925 main ()
15926 {
15927 return $ac_func ();
15928   ;
15929   return 0;
15930 }
15931 _ACEOF
15932 rm -f conftest.$ac_objext conftest$ac_exeext
15933 if { (ac_try="$ac_link"
15934 case "(($ac_try" in
15935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936   *) ac_try_echo=$ac_try;;
15937 esac
15938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939   (eval "$ac_link") 2>conftest.er1
15940   ac_status=$?
15941   grep -v '^ *+' conftest.er1 >conftest.err
15942   rm -f conftest.er1
15943   cat conftest.err >&5
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); } &&
15946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15947   { (case "(($ac_try" in
15948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949   *) ac_try_echo=$ac_try;;
15950 esac
15951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952   (eval "$ac_try") 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; } &&
15956          { ac_try='test -s conftest$ac_exeext'
15957   { (case "(($ac_try" in
15958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959   *) ac_try_echo=$ac_try;;
15960 esac
15961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15962   (eval "$ac_try") 2>&5
15963   ac_status=$?
15964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965   (exit $ac_status); }; }; then
15966   eval "$as_ac_var=yes"
15967 else
15968   echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15970
15971         eval "$as_ac_var=no"
15972 fi
15973
15974 rm -f core conftest.err conftest.$ac_objext \
15975       conftest$ac_exeext conftest.$ac_ext
15976 fi
15977 ac_res=`eval echo '${'$as_ac_var'}'`
15978                { echo "$as_me:$LINENO: result: $ac_res" >&5
15979 echo "${ECHO_T}$ac_res" >&6; }
15980 if test `eval echo '${'$as_ac_var'}'` = yes; then
15981   cat >>confdefs.h <<_ACEOF
15982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15983 _ACEOF
15984
15985 else
15986   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15987 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15989   echo $ECHO_N "(cached) $ECHO_C" >&6
15990 else
15991   ac_check_lib_save_LIBS=$LIBS
15992 LIBS="-ldl  $LIBS"
15993 cat >conftest.$ac_ext <<_ACEOF
15994 /* confdefs.h.  */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h.  */
15999
16000 /* Override any GCC internal prototype to avoid an error.
16001    Use char because int might match the return type of a GCC
16002    builtin and then its argument prototype would still apply.  */
16003 #ifdef __cplusplus
16004 extern "C"
16005 #endif
16006 char dlopen ();
16007 int
16008 main ()
16009 {
16010 return dlopen ();
16011   ;
16012   return 0;
16013 }
16014 _ACEOF
16015 rm -f conftest.$ac_objext conftest$ac_exeext
16016 if { (ac_try="$ac_link"
16017 case "(($ac_try" in
16018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019   *) ac_try_echo=$ac_try;;
16020 esac
16021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022   (eval "$ac_link") 2>conftest.er1
16023   ac_status=$?
16024   grep -v '^ *+' conftest.er1 >conftest.err
16025   rm -f conftest.er1
16026   cat conftest.err >&5
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); } &&
16029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16030   { (case "(($ac_try" in
16031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032   *) ac_try_echo=$ac_try;;
16033 esac
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035   (eval "$ac_try") 2>&5
16036   ac_status=$?
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); }; } &&
16039          { ac_try='test -s conftest$ac_exeext'
16040   { (case "(($ac_try" in
16041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042   *) ac_try_echo=$ac_try;;
16043 esac
16044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16045   (eval "$ac_try") 2>&5
16046   ac_status=$?
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); }; }; then
16049   ac_cv_lib_dl_dlopen=yes
16050 else
16051   echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16053
16054         ac_cv_lib_dl_dlopen=no
16055 fi
16056
16057 rm -f core conftest.err conftest.$ac_objext \
16058       conftest$ac_exeext conftest.$ac_ext
16059 LIBS=$ac_check_lib_save_LIBS
16060 fi
16061 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16062 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16063 if test $ac_cv_lib_dl_dlopen = yes; then
16064
16065 cat >>confdefs.h <<\_ACEOF
16066 #define HAVE_DLOPEN 1
16067 _ACEOF
16068
16069                           DLLIBS="-ldl"
16070 else
16071   LIBEXT="a"
16072 fi
16073
16074 fi
16075 done
16076
16077         ac_wine_check_funcs_save_LIBS="$LIBS"
16078 LIBS="$LIBS $DLLIBS"
16079
16080 for ac_func in dladdr
16081 do
16082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16086   echo $ECHO_N "(cached) $ECHO_C" >&6
16087 else
16088   cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h.  */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h.  */
16094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16096 #define $ac_func innocuous_$ac_func
16097
16098 /* System header to define __stub macros and hopefully few prototypes,
16099     which can conflict with char $ac_func (); below.
16100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16101     <limits.h> exists even on freestanding compilers.  */
16102
16103 #ifdef __STDC__
16104 # include <limits.h>
16105 #else
16106 # include <assert.h>
16107 #endif
16108
16109 #undef $ac_func
16110
16111 /* Override any GCC internal prototype to avoid an error.
16112    Use char because int might match the return type of a GCC
16113    builtin and then its argument prototype would still apply.  */
16114 #ifdef __cplusplus
16115 extern "C"
16116 #endif
16117 char $ac_func ();
16118 /* The GNU C library defines this for functions which it implements
16119     to always fail with ENOSYS.  Some functions are actually named
16120     something starting with __ and the normal name is an alias.  */
16121 #if defined __stub_$ac_func || defined __stub___$ac_func
16122 choke me
16123 #endif
16124
16125 int
16126 main ()
16127 {
16128 return $ac_func ();
16129   ;
16130   return 0;
16131 }
16132 _ACEOF
16133 rm -f conftest.$ac_objext conftest$ac_exeext
16134 if { (ac_try="$ac_link"
16135 case "(($ac_try" in
16136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137   *) ac_try_echo=$ac_try;;
16138 esac
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140   (eval "$ac_link") 2>conftest.er1
16141   ac_status=$?
16142   grep -v '^ *+' conftest.er1 >conftest.err
16143   rm -f conftest.er1
16144   cat conftest.err >&5
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } &&
16147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16148   { (case "(($ac_try" in
16149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150   *) ac_try_echo=$ac_try;;
16151 esac
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153   (eval "$ac_try") 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; } &&
16157          { ac_try='test -s conftest$ac_exeext'
16158   { (case "(($ac_try" in
16159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160   *) ac_try_echo=$ac_try;;
16161 esac
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163   (eval "$ac_try") 2>&5
16164   ac_status=$?
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); }; }; then
16167   eval "$as_ac_var=yes"
16168 else
16169   echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16171
16172         eval "$as_ac_var=no"
16173 fi
16174
16175 rm -f core conftest.err conftest.$ac_objext \
16176       conftest$ac_exeext conftest.$ac_ext
16177 fi
16178 ac_res=`eval echo '${'$as_ac_var'}'`
16179                { echo "$as_me:$LINENO: result: $ac_res" >&5
16180 echo "${ECHO_T}$ac_res" >&6; }
16181 if test `eval echo '${'$as_ac_var'}'` = yes; then
16182   cat >>confdefs.h <<_ACEOF
16183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16184 _ACEOF
16185
16186 fi
16187 done
16188
16189 LIBS="$ac_wine_check_funcs_save_LIBS"
16190     else
16191         LIBEXT="a"
16192     fi
16193
16194     if test "$LIBEXT" = "so"
16195     then
16196       DLLFLAGS="$DLLFLAGS -fPIC"
16197       DLLEXT=".so"
16198       { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
16199 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
16200 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
16201   echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203   ac_wine_try_cflags_saved=$CFLAGS
16204 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
16205 cat >conftest.$ac_ext <<_ACEOF
16206 void myfunc() {}
16207 _ACEOF
16208 rm -f conftest.$ac_objext conftest$ac_exeext
16209 if { (ac_try="$ac_link"
16210 case "(($ac_try" in
16211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212   *) ac_try_echo=$ac_try;;
16213 esac
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215   (eval "$ac_link") 2>conftest.er1
16216   ac_status=$?
16217   grep -v '^ *+' conftest.er1 >conftest.err
16218   rm -f conftest.er1
16219   cat conftest.err >&5
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); } &&
16222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16223   { (case "(($ac_try" in
16224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225   *) ac_try_echo=$ac_try;;
16226 esac
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228   (eval "$ac_try") 2>&5
16229   ac_status=$?
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); }; } &&
16232          { ac_try='test -s conftest$ac_exeext'
16233   { (case "(($ac_try" in
16234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235   *) ac_try_echo=$ac_try;;
16236 esac
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238   (eval "$ac_try") 2>&5
16239   ac_status=$?
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); }; }; then
16242   ac_cv_c_dll_gnuelf="yes"
16243 else
16244   echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16246
16247         ac_cv_c_dll_gnuelf="no"
16248 fi
16249
16250 rm -f core conftest.err conftest.$ac_objext \
16251       conftest$ac_exeext conftest.$ac_ext
16252 CFLAGS=$ac_wine_try_cflags_saved
16253 fi
16254 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
16255 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
16256       if test "$ac_cv_c_dll_gnuelf" = "yes"
16257       then
16258         LDSHARED="\$(CC) -shared"
16259         LDDLLFLAGS="-shared -Wl,-Bsymbolic"
16260         { echo "$as_me:$LINENO: checking whether the linker accepts soname" >&5
16261 echo $ECHO_N "checking whether the linker accepts soname... $ECHO_C" >&6; }
16262 if test "${ac_cv_c_sonames+set}" = set; then
16263   echo $ECHO_N "(cached) $ECHO_C" >&6
16264 else
16265   ac_wine_try_cflags_saved=$CFLAGS
16266 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
16267 cat >conftest.$ac_ext <<_ACEOF
16268 /* confdefs.h.  */
16269 _ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h.  */
16273
16274 int
16275 main ()
16276 {
16277
16278   ;
16279   return 0;
16280 }
16281 _ACEOF
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (ac_try="$ac_link"
16284 case "(($ac_try" in
16285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286   *) ac_try_echo=$ac_try;;
16287 esac
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289   (eval "$ac_link") 2>conftest.er1
16290   ac_status=$?
16291   grep -v '^ *+' conftest.er1 >conftest.err
16292   rm -f conftest.er1
16293   cat conftest.err >&5
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); } &&
16296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16297   { (case "(($ac_try" in
16298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299   *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302   (eval "$ac_try") 2>&5
16303   ac_status=$?
16304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305   (exit $ac_status); }; } &&
16306          { ac_try='test -s conftest$ac_exeext'
16307   { (case "(($ac_try" in
16308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309   *) ac_try_echo=$ac_try;;
16310 esac
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312   (eval "$ac_try") 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }; }; then
16316   ac_cv_c_sonames="yes"
16317 else
16318   echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16320
16321         ac_cv_c_sonames="no"
16322 fi
16323
16324 rm -f core conftest.err conftest.$ac_objext \
16325       conftest$ac_exeext conftest.$ac_ext
16326 CFLAGS=$ac_wine_try_cflags_saved
16327 fi
16328 { echo "$as_me:$LINENO: result: $ac_cv_c_sonames" >&5
16329 echo "${ECHO_T}$ac_cv_c_sonames" >&6; }
16330         if test "$ac_cv_c_sonames" = "yes"
16331         then
16332           LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
16333         else
16334           { echo "$as_me:$LINENO: checking check to see if -h soname is an alternate" >&5
16335 echo $ECHO_N "checking check to see if -h soname is an alternate... $ECHO_C" >&6; }
16336 if test "${ac_cv_c_h_sonames+set}" = set; then
16337   echo $ECHO_N "(cached) $ECHO_C" >&6
16338 else
16339   ac_wine_try_cflags_saved=$CFLAGS
16340 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
16341 cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h.  */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h.  */
16347
16348 int
16349 main ()
16350 {
16351
16352   ;
16353   return 0;
16354 }
16355 _ACEOF
16356 rm -f conftest.$ac_objext conftest$ac_exeext
16357 if { (ac_try="$ac_link"
16358 case "(($ac_try" in
16359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360   *) ac_try_echo=$ac_try;;
16361 esac
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363   (eval "$ac_link") 2>conftest.er1
16364   ac_status=$?
16365   grep -v '^ *+' conftest.er1 >conftest.err
16366   rm -f conftest.er1
16367   cat conftest.err >&5
16368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369   (exit $ac_status); } &&
16370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16371   { (case "(($ac_try" in
16372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373   *) ac_try_echo=$ac_try;;
16374 esac
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376   (eval "$ac_try") 2>&5
16377   ac_status=$?
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); }; } &&
16380          { ac_try='test -s conftest$ac_exeext'
16381   { (case "(($ac_try" in
16382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383   *) ac_try_echo=$ac_try;;
16384 esac
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386   (eval "$ac_try") 2>&5
16387   ac_status=$?
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); }; }; then
16390   ac_cv_c_h_sonames="yes"
16391 else
16392   echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16394
16395         ac_cv_c_h_sonames="no"
16396 fi
16397
16398 rm -f core conftest.err conftest.$ac_objext \
16399       conftest$ac_exeext conftest.$ac_ext
16400 CFLAGS=$ac_wine_try_cflags_saved
16401 fi
16402 { echo "$as_me:$LINENO: result: $ac_cv_c_h_sonames" >&5
16403 echo "${ECHO_T}$ac_cv_c_h_sonames" >&6; }
16404           if test "$ac_cv_c_h_sonames" = "yes"
16405           then
16406             LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
16407           fi
16408         fi
16409
16410         { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
16411 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; }
16412 if test "${ac_cv_c_dll_zdefs+set}" = set; then
16413   echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415   ac_wine_try_cflags_saved=$CFLAGS
16416 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
16417 cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h.  */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h.  */
16423
16424 int
16425 main ()
16426 {
16427
16428   ;
16429   return 0;
16430 }
16431 _ACEOF
16432 rm -f conftest.$ac_objext conftest$ac_exeext
16433 if { (ac_try="$ac_link"
16434 case "(($ac_try" in
16435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436   *) ac_try_echo=$ac_try;;
16437 esac
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439   (eval "$ac_link") 2>conftest.er1
16440   ac_status=$?
16441   grep -v '^ *+' conftest.er1 >conftest.err
16442   rm -f conftest.er1
16443   cat conftest.err >&5
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); } &&
16446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16447   { (case "(($ac_try" in
16448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449   *) ac_try_echo=$ac_try;;
16450 esac
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452   (eval "$ac_try") 2>&5
16453   ac_status=$?
16454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455   (exit $ac_status); }; } &&
16456          { ac_try='test -s conftest$ac_exeext'
16457   { (case "(($ac_try" in
16458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459   *) ac_try_echo=$ac_try;;
16460 esac
16461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16462   (eval "$ac_try") 2>&5
16463   ac_status=$?
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); }; }; then
16466   ac_cv_c_dll_zdefs="yes"
16467 else
16468   echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16470
16471         ac_cv_c_dll_zdefs="no"
16472 fi
16473
16474 rm -f core conftest.err conftest.$ac_objext \
16475       conftest$ac_exeext conftest.$ac_ext
16476 CFLAGS=$ac_wine_try_cflags_saved
16477 fi
16478 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
16479 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; }
16480         if test "$ac_cv_c_dll_zdefs" = "yes"
16481         then
16482           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
16483         fi
16484
16485         { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
16486 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; }
16487 if test "${ac_cv_c_dll_init_fini+set}" = set; then
16488   echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490   ac_wine_try_cflags_saved=$CFLAGS
16491 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
16492 cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h.  */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h.  */
16498
16499 int
16500 main ()
16501 {
16502
16503   ;
16504   return 0;
16505 }
16506 _ACEOF
16507 rm -f conftest.$ac_objext conftest$ac_exeext
16508 if { (ac_try="$ac_link"
16509 case "(($ac_try" in
16510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511   *) ac_try_echo=$ac_try;;
16512 esac
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514   (eval "$ac_link") 2>conftest.er1
16515   ac_status=$?
16516   grep -v '^ *+' conftest.er1 >conftest.err
16517   rm -f conftest.er1
16518   cat conftest.err >&5
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); } &&
16521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16522   { (case "(($ac_try" in
16523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524   *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527   (eval "$ac_try") 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; } &&
16531          { ac_try='test -s conftest$ac_exeext'
16532   { (case "(($ac_try" in
16533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534   *) ac_try_echo=$ac_try;;
16535 esac
16536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537   (eval "$ac_try") 2>&5
16538   ac_status=$?
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); }; }; then
16541   ac_cv_c_dll_init_fini="yes"
16542 else
16543   echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546         ac_cv_c_dll_init_fini="no"
16547 fi
16548
16549 rm -f core conftest.err conftest.$ac_objext \
16550       conftest$ac_exeext conftest.$ac_ext
16551 CFLAGS=$ac_wine_try_cflags_saved
16552 fi
16553 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
16554 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; }
16555         if test "$ac_cv_c_dll_init_fini" = "yes"
16556         then
16557           LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
16558         fi
16559
16560         { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
16561 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; }
16562 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
16563   echo $ECHO_N "(cached) $ECHO_C" >&6
16564 else
16565   echo '{ global: *; };' >conftest.map
16566            ac_wine_try_cflags_saved=$CFLAGS
16567 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
16568 cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574
16575 int
16576 main ()
16577 {
16578
16579   ;
16580   return 0;
16581 }
16582 _ACEOF
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (ac_try="$ac_link"
16585 case "(($ac_try" in
16586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587   *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590   (eval "$ac_link") 2>conftest.er1
16591   ac_status=$?
16592   grep -v '^ *+' conftest.er1 >conftest.err
16593   rm -f conftest.er1
16594   cat conftest.err >&5
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); } &&
16597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598   { (case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603   (eval "$ac_try") 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; } &&
16607          { ac_try='test -s conftest$ac_exeext'
16608   { (case "(($ac_try" in
16609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610   *) ac_try_echo=$ac_try;;
16611 esac
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613   (eval "$ac_try") 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; }; then
16617   ac_cv_c_ld_version_scripts="yes"
16618 else
16619   echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16621
16622         ac_cv_c_ld_version_scripts="no"
16623 fi
16624
16625 rm -f core conftest.err conftest.$ac_objext \
16626       conftest$ac_exeext conftest.$ac_ext
16627 CFLAGS=$ac_wine_try_cflags_saved
16628            rm -f conftest.map
16629 fi
16630 { echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
16631 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; }
16632         if test "$ac_cv_c_ld_version_scripts" = "yes"
16633         then
16634           LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
16635         fi
16636
16637         { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
16638 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; }
16639 if test "${ac_cv_c_export_dynamic+set}" = set; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642   ac_wine_try_cflags_saved=$CFLAGS
16643 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
16644 cat >conftest.$ac_ext <<_ACEOF
16645 /* confdefs.h.  */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h.  */
16650
16651 int
16652 main ()
16653 {
16654
16655   ;
16656   return 0;
16657 }
16658 _ACEOF
16659 rm -f conftest.$ac_objext conftest$ac_exeext
16660 if { (ac_try="$ac_link"
16661 case "(($ac_try" in
16662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663   *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666   (eval "$ac_link") 2>conftest.er1
16667   ac_status=$?
16668   grep -v '^ *+' conftest.er1 >conftest.err
16669   rm -f conftest.er1
16670   cat conftest.err >&5
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); } &&
16673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16674   { (case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_try") 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; } &&
16683          { ac_try='test -s conftest$ac_exeext'
16684   { (case "(($ac_try" in
16685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686   *) ac_try_echo=$ac_try;;
16687 esac
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689   (eval "$ac_try") 2>&5
16690   ac_status=$?
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); }; }; then
16693   ac_cv_c_export_dynamic="yes"
16694 else
16695   echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16697
16698         ac_cv_c_export_dynamic="no"
16699 fi
16700
16701 rm -f core conftest.err conftest.$ac_objext \
16702       conftest$ac_exeext conftest.$ac_ext
16703 CFLAGS=$ac_wine_try_cflags_saved
16704 fi
16705 { echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
16706 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; }
16707         if test "$ac_cv_c_export_dynamic" = "yes"
16708         then
16709           LDEXECFLAGS="-Wl,--export-dynamic"
16710
16711         fi
16712
16713         { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
16714 echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; }
16715 if test "${ac_cv_ld_rpath+set}" = set; then
16716   echo $ECHO_N "(cached) $ECHO_C" >&6
16717 else
16718   ac_wine_try_cflags_saved=$CFLAGS
16719 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
16720 cat >conftest.$ac_ext <<_ACEOF
16721 /* confdefs.h.  */
16722 _ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h.  */
16726
16727 int
16728 main ()
16729 {
16730
16731   ;
16732   return 0;
16733 }
16734 _ACEOF
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (ac_try="$ac_link"
16737 case "(($ac_try" in
16738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739   *) ac_try_echo=$ac_try;;
16740 esac
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742   (eval "$ac_link") 2>conftest.er1
16743   ac_status=$?
16744   grep -v '^ *+' conftest.er1 >conftest.err
16745   rm -f conftest.er1
16746   cat conftest.err >&5
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); } &&
16749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16750   { (case "(($ac_try" in
16751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752   *) ac_try_echo=$ac_try;;
16753 esac
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755   (eval "$ac_try") 2>&5
16756   ac_status=$?
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); }; } &&
16759          { ac_try='test -s conftest$ac_exeext'
16760   { (case "(($ac_try" in
16761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762   *) ac_try_echo=$ac_try;;
16763 esac
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765   (eval "$ac_try") 2>&5
16766   ac_status=$?
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); }; }; then
16769   ac_cv_ld_rpath="yes"
16770 else
16771   echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16773
16774         ac_cv_ld_rpath="no"
16775 fi
16776
16777 rm -f core conftest.err conftest.$ac_objext \
16778       conftest$ac_exeext conftest.$ac_ext
16779 CFLAGS=$ac_wine_try_cflags_saved
16780 fi
16781 { echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
16782 echo "${ECHO_T}$ac_cv_ld_rpath" >&6; }
16783         if test "$ac_cv_ld_rpath" = "yes"
16784         then
16785           LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
16786
16787           LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
16788
16789         fi
16790
16791         case $host_cpu in
16792           *i[3456789]86* | x86_64)
16793             { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
16794 echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; }
16795 if test "${ac_cv_ld_reloc_exec+set}" = set; then
16796   echo $ECHO_N "(cached) $ECHO_C" >&6
16797 else
16798   ac_wine_try_cflags_saved=$CFLAGS
16799 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
16800 cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h.  */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h.  */
16806
16807 int
16808 main ()
16809 {
16810
16811   ;
16812   return 0;
16813 }
16814 _ACEOF
16815 rm -f conftest.$ac_objext conftest$ac_exeext
16816 if { (ac_try="$ac_link"
16817 case "(($ac_try" in
16818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819   *) ac_try_echo=$ac_try;;
16820 esac
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822   (eval "$ac_link") 2>conftest.er1
16823   ac_status=$?
16824   grep -v '^ *+' conftest.er1 >conftest.err
16825   rm -f conftest.er1
16826   cat conftest.err >&5
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); } &&
16829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16830   { (case "(($ac_try" in
16831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832   *) ac_try_echo=$ac_try;;
16833 esac
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835   (eval "$ac_try") 2>&5
16836   ac_status=$?
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); }; } &&
16839          { ac_try='test -s conftest$ac_exeext'
16840   { (case "(($ac_try" in
16841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842   *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845   (eval "$ac_try") 2>&5
16846   ac_status=$?
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); }; }; then
16849   ac_cv_ld_reloc_exec="yes"
16850 else
16851   echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.$ac_ext >&5
16853
16854         ac_cv_ld_reloc_exec="no"
16855 fi
16856
16857 rm -f core conftest.err conftest.$ac_objext \
16858       conftest$ac_exeext conftest.$ac_ext
16859 CFLAGS=$ac_wine_try_cflags_saved
16860 fi
16861 { echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
16862 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; }
16863             if test "$ac_cv_ld_reloc_exec" = "yes"
16864             then
16865               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
16866             fi
16867             ;;
16868         esac
16869
16870       else
16871         { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
16872 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
16873 if test "${ac_cv_c_dll_unixware+set}" = set; then
16874   echo $ECHO_N "(cached) $ECHO_C" >&6
16875 else
16876   ac_wine_try_cflags_saved=$CFLAGS
16877 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
16878 cat >conftest.$ac_ext <<_ACEOF
16879 void myfunc() {}
16880 _ACEOF
16881 rm -f conftest.$ac_objext conftest$ac_exeext
16882 if { (ac_try="$ac_link"
16883 case "(($ac_try" in
16884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885   *) ac_try_echo=$ac_try;;
16886 esac
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888   (eval "$ac_link") 2>conftest.er1
16889   ac_status=$?
16890   grep -v '^ *+' conftest.er1 >conftest.err
16891   rm -f conftest.er1
16892   cat conftest.err >&5
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); } &&
16895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16896   { (case "(($ac_try" in
16897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898   *) ac_try_echo=$ac_try;;
16899 esac
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901   (eval "$ac_try") 2>&5
16902   ac_status=$?
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); }; } &&
16905          { ac_try='test -s conftest$ac_exeext'
16906   { (case "(($ac_try" in
16907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908   *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911   (eval "$ac_try") 2>&5
16912   ac_status=$?
16913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); }; }; then
16915   ac_cv_c_dll_unixware="yes"
16916 else
16917   echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16919
16920         ac_cv_c_dll_unixware="no"
16921 fi
16922
16923 rm -f core conftest.err conftest.$ac_objext \
16924       conftest$ac_exeext conftest.$ac_ext
16925 CFLAGS=$ac_wine_try_cflags_saved
16926 fi
16927 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
16928 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
16929         if test "$ac_cv_c_dll_unixware" = "yes"
16930         then
16931           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
16932           LDDLLFLAGS="-Wl,-G,-B,symbolic"
16933
16934         else
16935           { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
16936 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; }
16937 if test "${ac_cv_c_dll_macho+set}" = set; then
16938   echo $ECHO_N "(cached) $ECHO_C" >&6
16939 else
16940   ac_wine_try_cflags_saved=$CFLAGS
16941 CFLAGS="$CFLAGS -bundle"
16942 cat >conftest.$ac_ext <<_ACEOF
16943 void myfunc() {}
16944 _ACEOF
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (ac_try="$ac_link"
16947 case "(($ac_try" in
16948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949   *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952   (eval "$ac_link") 2>conftest.er1
16953   ac_status=$?
16954   grep -v '^ *+' conftest.er1 >conftest.err
16955   rm -f conftest.er1
16956   cat conftest.err >&5
16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958   (exit $ac_status); } &&
16959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16960   { (case "(($ac_try" in
16961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962   *) ac_try_echo=$ac_try;;
16963 esac
16964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16965   (eval "$ac_try") 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); }; } &&
16969          { ac_try='test -s conftest$ac_exeext'
16970   { (case "(($ac_try" in
16971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972   *) ac_try_echo=$ac_try;;
16973 esac
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975   (eval "$ac_try") 2>&5
16976   ac_status=$?
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); }; }; then
16979   ac_cv_c_dll_macho="yes"
16980 else
16981   echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984         ac_cv_c_dll_macho="no"
16985 fi
16986
16987 rm -f core conftest.err conftest.$ac_objext \
16988       conftest$ac_exeext conftest.$ac_ext
16989 CFLAGS=$ac_wine_try_cflags_saved
16990 fi
16991 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
16992 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; }
16993           if test "$ac_cv_c_dll_macho" = "yes"
16994           then
16995             LIBEXT="dylib"
16996             LDDLLFLAGS="-bundle"
16997             LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)"
16998             STRIP="$STRIP -u -r"
16999                         COREFOUNDATIONLIB="-framework CoreFoundation"
17000
17001             IOKITLIB="-framework IOKit -framework CoreFoundation"
17002
17003             LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
17004
17005             if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
17006             then
17007                                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
17008
17009             fi
17010             case $host_cpu in
17011               *powerpc*)
17012                 CFLAGS="$CFLAGS -ffixed-r13"
17013                 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
17014                 ;;
17015             esac
17016
17017           else
17018             { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
17019 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
17020 if test "${ac_cv_c_dll_hpux+set}" = set; then
17021   echo $ECHO_N "(cached) $ECHO_C" >&6
17022 else
17023   ac_wine_try_cflags_saved=$CFLAGS
17024 CFLAGS="$CFLAGS -shared"
17025 cat >conftest.$ac_ext <<_ACEOF
17026 void myfunc() {}
17027 _ACEOF
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (ac_try="$ac_link"
17030 case "(($ac_try" in
17031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032   *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035   (eval "$ac_link") 2>conftest.er1
17036   ac_status=$?
17037   grep -v '^ *+' conftest.er1 >conftest.err
17038   rm -f conftest.er1
17039   cat conftest.err >&5
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); } &&
17042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043   { (case "(($ac_try" in
17044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045   *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048   (eval "$ac_try") 2>&5
17049   ac_status=$?
17050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051   (exit $ac_status); }; } &&
17052          { ac_try='test -s conftest$ac_exeext'
17053   { (case "(($ac_try" in
17054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055   *) ac_try_echo=$ac_try;;
17056 esac
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058   (eval "$ac_try") 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; }; then
17062   ac_cv_c_dll_hpux="yes"
17063 else
17064   echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067         ac_cv_c_dll_hpux="no"
17068 fi
17069
17070 rm -f core conftest.err conftest.$ac_objext \
17071       conftest$ac_exeext conftest.$ac_ext
17072 CFLAGS=$ac_wine_try_cflags_saved
17073 fi
17074 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
17075 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
17076             if test "$ac_cv_c_dll_hpux" = "yes"
17077             then
17078               LIBEXT="sl"
17079               DLLEXT=".sl"
17080               LDDLLFLAGS="-shared -fPIC"
17081               LDSHARED="\$(CC) -shared"
17082             fi
17083           fi
17084         fi
17085       fi
17086     fi
17087
17088         CROSSTEST=""
17089
17090     if test "$cross_compiling" = "no"
17091     then
17092       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
17093 do
17094   # Extract the first word of "$ac_prog", so it can be a program name with args.
17095 set dummy $ac_prog; ac_word=$2
17096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17098 if test "${ac_cv_prog_CROSSCC+set}" = set; then
17099   echo $ECHO_N "(cached) $ECHO_C" >&6
17100 else
17101   if test -n "$CROSSCC"; then
17102   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
17103 else
17104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17105 for as_dir in $PATH
17106 do
17107   IFS=$as_save_IFS
17108   test -z "$as_dir" && as_dir=.
17109   for ac_exec_ext in '' $ac_executable_extensions; do
17110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17111     ac_cv_prog_CROSSCC="$ac_prog"
17112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17113     break 2
17114   fi
17115 done
17116 done
17117 IFS=$as_save_IFS
17118
17119 fi
17120 fi
17121 CROSSCC=$ac_cv_prog_CROSSCC
17122 if test -n "$CROSSCC"; then
17123   { echo "$as_me:$LINENO: result: $CROSSCC" >&5
17124 echo "${ECHO_T}$CROSSCC" >&6; }
17125 else
17126   { echo "$as_me:$LINENO: result: no" >&5
17127 echo "${ECHO_T}no" >&6; }
17128 fi
17129
17130
17131   test -n "$CROSSCC" && break
17132 done
17133 test -n "$CROSSCC" || CROSSCC="false"
17134
17135       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
17136 do
17137   # Extract the first word of "$ac_prog", so it can be a program name with args.
17138 set dummy $ac_prog; ac_word=$2
17139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17141 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17142   echo $ECHO_N "(cached) $ECHO_C" >&6
17143 else
17144   if test -n "$DLLTOOL"; then
17145   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17146 else
17147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17148 for as_dir in $PATH
17149 do
17150   IFS=$as_save_IFS
17151   test -z "$as_dir" && as_dir=.
17152   for ac_exec_ext in '' $ac_executable_extensions; do
17153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17154     ac_cv_prog_DLLTOOL="$ac_prog"
17155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17156     break 2
17157   fi
17158 done
17159 done
17160 IFS=$as_save_IFS
17161
17162 fi
17163 fi
17164 DLLTOOL=$ac_cv_prog_DLLTOOL
17165 if test -n "$DLLTOOL"; then
17166   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17167 echo "${ECHO_T}$DLLTOOL" >&6; }
17168 else
17169   { echo "$as_me:$LINENO: result: no" >&5
17170 echo "${ECHO_T}no" >&6; }
17171 fi
17172
17173
17174   test -n "$DLLTOOL" && break
17175 done
17176 test -n "$DLLTOOL" || DLLTOOL="false"
17177
17178       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
17179 do
17180   # Extract the first word of "$ac_prog", so it can be a program name with args.
17181 set dummy $ac_prog; ac_word=$2
17182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17184 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
17185   echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187   if test -n "$CROSSWINDRES"; then
17188   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
17189 else
17190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17191 for as_dir in $PATH
17192 do
17193   IFS=$as_save_IFS
17194   test -z "$as_dir" && as_dir=.
17195   for ac_exec_ext in '' $ac_executable_extensions; do
17196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17197     ac_cv_prog_CROSSWINDRES="$ac_prog"
17198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17199     break 2
17200   fi
17201 done
17202 done
17203 IFS=$as_save_IFS
17204
17205 fi
17206 fi
17207 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
17208 if test -n "$CROSSWINDRES"; then
17209   { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
17210 echo "${ECHO_T}$CROSSWINDRES" >&6; }
17211 else
17212   { echo "$as_me:$LINENO: result: no" >&5
17213 echo "${ECHO_T}no" >&6; }
17214 fi
17215
17216
17217   test -n "$CROSSWINDRES" && break
17218 done
17219 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
17220
17221       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
17222     fi
17223     ;;
17224 esac
17225
17226 if test "$LIBEXT" = "a"; then
17227   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
17228 It is currently not possible to build Wine without shared library
17229 (.so) support to allow transparent switch between .so and .dll files.
17230 If you are using Linux, you will need a newer binutils.
17231 " >&5
17232 echo "$as_me: error: could not find a way to build shared libraries.
17233 It is currently not possible to build Wine without shared library
17234 (.so) support to allow transparent switch between .so and .dll files.
17235 If you are using Linux, you will need a newer binutils.
17236 " >&2;}
17237    { (exit 1); exit 1; }; }
17238 fi
17239
17240 case $build_os in
17241   cygwin*|mingw32*)
17242     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
17243  ;;
17244   darwin*|macosx*)
17245     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
17246  ;;
17247   *)
17248     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
17249  ;;
17250 esac
17251
17252 case $host_os in
17253   mingw32*)
17254     CRTLIBS="-lmsvcrt"
17255
17256     SOCKETLIBS="-lws2_32"
17257
17258     ;;
17259 esac
17260
17261 MAIN_BINARY="wine-pthread"
17262   case $host_cpu in
17263   *i[3456789]86*)
17264     case $host_os in
17265       linux* | k*bsd*-gnu)
17266         MAIN_BINARY="wine-glibc"
17267
17268         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
17269  ;;
17270     esac
17271     ;;
17272 esac
17273
17274
17275 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
17276 then
17277   # Extract the first word of "ldd", so it can be a program name with args.
17278 set dummy ldd; ac_word=$2
17279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17281 if test "${ac_cv_path_LDD+set}" = set; then
17282   echo $ECHO_N "(cached) $ECHO_C" >&6
17283 else
17284   case $LDD in
17285   [\\/]* | ?:[\\/]*)
17286   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17287   ;;
17288   *)
17289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17290 as_dummy="/sbin:/usr/sbin:$PATH"
17291 for as_dir in $as_dummy
17292 do
17293   IFS=$as_save_IFS
17294   test -z "$as_dir" && as_dir=.
17295   for ac_exec_ext in '' $ac_executable_extensions; do
17296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17297     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17299     break 2
17300   fi
17301 done
17302 done
17303 IFS=$as_save_IFS
17304
17305   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
17306   ;;
17307 esac
17308 fi
17309 LDD=$ac_cv_path_LDD
17310 if test -n "$LDD"; then
17311   { echo "$as_me:$LINENO: result: $LDD" >&5
17312 echo "${ECHO_T}$LDD" >&6; }
17313 else
17314   { echo "$as_me:$LINENO: result: no" >&5
17315 echo "${ECHO_T}no" >&6; }
17316 fi
17317
17318
17319 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
17320 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
17321 if test "${ac_cv_lib_soname_X11+set}" = set; then
17322   echo $ECHO_N "(cached) $ECHO_C" >&6
17323 else
17324   ac_get_soname_save_LIBS=$LIBS
17325 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
17326   cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h.  */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h.  */
17332
17333 /* Override any GCC internal prototype to avoid an error.
17334    Use char because int might match the return type of a GCC
17335    builtin and then its argument prototype would still apply.  */
17336 #ifdef __cplusplus
17337 extern "C"
17338 #endif
17339 char XCreateWindow ();
17340 int
17341 main ()
17342 {
17343 return XCreateWindow ();
17344   ;
17345   return 0;
17346 }
17347 _ACEOF
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (ac_try="$ac_link"
17350 case "(($ac_try" in
17351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352   *) ac_try_echo=$ac_try;;
17353 esac
17354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17355   (eval "$ac_link") 2>conftest.er1
17356   ac_status=$?
17357   grep -v '^ *+' conftest.er1 >conftest.err
17358   rm -f conftest.er1
17359   cat conftest.err >&5
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); } &&
17362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17363   { (case "(($ac_try" in
17364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365   *) ac_try_echo=$ac_try;;
17366 esac
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368   (eval "$ac_try") 2>&5
17369   ac_status=$?
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); }; } &&
17372          { ac_try='test -s conftest$ac_exeext'
17373   { (case "(($ac_try" in
17374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375   *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378   (eval "$ac_try") 2>&5
17379   ac_status=$?
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); }; }; then
17382   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
17383   if test "x$ac_cv_lib_soname_X11" = "x"
17384   then
17385      ac_cv_lib_soname_X11="libX11.$LIBEXT"
17386   fi
17387 else
17388   echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17390
17391         ac_cv_lib_soname_X11="libX11.$LIBEXT"
17392 fi
17393
17394 rm -f core conftest.err conftest.$ac_objext \
17395       conftest$ac_exeext conftest.$ac_ext
17396   LIBS=$ac_get_soname_save_LIBS
17397 fi
17398 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
17399 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
17400 if test "${ac_cv_lib_soname_X11+set}" = set; then
17401
17402 cat >>confdefs.h <<_ACEOF
17403 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
17404 _ACEOF
17405
17406 fi
17407
17408   { echo "$as_me:$LINENO: checking for -lXext soname" >&5
17409 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
17410 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17411   echo $ECHO_N "(cached) $ECHO_C" >&6
17412 else
17413   ac_get_soname_save_LIBS=$LIBS
17414 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
17415   cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h.  */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h.  */
17421
17422 /* Override any GCC internal prototype to avoid an error.
17423    Use char because int might match the return type of a GCC
17424    builtin and then its argument prototype would still apply.  */
17425 #ifdef __cplusplus
17426 extern "C"
17427 #endif
17428 char XextCreateExtension ();
17429 int
17430 main ()
17431 {
17432 return XextCreateExtension ();
17433   ;
17434   return 0;
17435 }
17436 _ACEOF
17437 rm -f conftest.$ac_objext conftest$ac_exeext
17438 if { (ac_try="$ac_link"
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_link") 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          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17452   { (case "(($ac_try" in
17453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454   *) ac_try_echo=$ac_try;;
17455 esac
17456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17457   (eval "$ac_try") 2>&5
17458   ac_status=$?
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); }; } &&
17461          { ac_try='test -s conftest$ac_exeext'
17462   { (case "(($ac_try" in
17463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464   *) ac_try_echo=$ac_try;;
17465 esac
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467   (eval "$ac_try") 2>&5
17468   ac_status=$?
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); }; }; then
17471   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
17472   if test "x$ac_cv_lib_soname_Xext" = "x"
17473   then
17474      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
17475   fi
17476 else
17477   echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17479
17480         ac_cv_lib_soname_Xext="libXext.$LIBEXT"
17481 fi
17482
17483 rm -f core conftest.err conftest.$ac_objext \
17484       conftest$ac_exeext conftest.$ac_ext
17485   LIBS=$ac_get_soname_save_LIBS
17486 fi
17487 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
17488 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
17489 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17490
17491 cat >>confdefs.h <<_ACEOF
17492 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
17493 _ACEOF
17494
17495 fi
17496
17497   { echo "$as_me:$LINENO: checking for -lXi soname" >&5
17498 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
17499 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502   ac_get_soname_save_LIBS=$LIBS
17503 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17504   cat >conftest.$ac_ext <<_ACEOF
17505 /* confdefs.h.  */
17506 _ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h.  */
17510
17511 /* Override any GCC internal prototype to avoid an error.
17512    Use char because int might match the return type of a GCC
17513    builtin and then its argument prototype would still apply.  */
17514 #ifdef __cplusplus
17515 extern "C"
17516 #endif
17517 char XOpenDevice ();
17518 int
17519 main ()
17520 {
17521 return XOpenDevice ();
17522   ;
17523   return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (ac_try="$ac_link"
17528 case "(($ac_try" in
17529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530   *) ac_try_echo=$ac_try;;
17531 esac
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533   (eval "$ac_link") 2>conftest.er1
17534   ac_status=$?
17535   grep -v '^ *+' conftest.er1 >conftest.err
17536   rm -f conftest.er1
17537   cat conftest.err >&5
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); } &&
17540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17541   { (case "(($ac_try" in
17542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543   *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546   (eval "$ac_try") 2>&5
17547   ac_status=$?
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); }; } &&
17550          { ac_try='test -s conftest$ac_exeext'
17551   { (case "(($ac_try" in
17552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553   *) ac_try_echo=$ac_try;;
17554 esac
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556   (eval "$ac_try") 2>&5
17557   ac_status=$?
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); }; }; then
17560   ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'`
17561   if test "x$ac_cv_lib_soname_Xi" = "x"
17562   then
17563      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
17564   fi
17565 else
17566   echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17568
17569         ac_cv_lib_soname_Xi="libXi.$LIBEXT"
17570 fi
17571
17572 rm -f core conftest.err conftest.$ac_objext \
17573       conftest$ac_exeext conftest.$ac_ext
17574   LIBS=$ac_get_soname_save_LIBS
17575 fi
17576 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
17577 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
17578 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17579
17580 cat >>confdefs.h <<_ACEOF
17581 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
17582 _ACEOF
17583
17584 fi
17585
17586   { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
17587 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
17588 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17589   echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591   ac_get_soname_save_LIBS=$LIBS
17592 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17593   cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h.  */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h.  */
17599
17600 /* Override any GCC internal prototype to avoid an error.
17601    Use char because int might match the return type of a GCC
17602    builtin and then its argument prototype would still apply.  */
17603 #ifdef __cplusplus
17604 extern "C"
17605 #endif
17606 char XRenderQueryExtension ();
17607 int
17608 main ()
17609 {
17610 return XRenderQueryExtension ();
17611   ;
17612   return 0;
17613 }
17614 _ACEOF
17615 rm -f conftest.$ac_objext conftest$ac_exeext
17616 if { (ac_try="$ac_link"
17617 case "(($ac_try" in
17618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619   *) ac_try_echo=$ac_try;;
17620 esac
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622   (eval "$ac_link") 2>conftest.er1
17623   ac_status=$?
17624   grep -v '^ *+' conftest.er1 >conftest.err
17625   rm -f conftest.er1
17626   cat conftest.err >&5
17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628   (exit $ac_status); } &&
17629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17630   { (case "(($ac_try" in
17631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632   *) ac_try_echo=$ac_try;;
17633 esac
17634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635   (eval "$ac_try") 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; } &&
17639          { ac_try='test -s conftest$ac_exeext'
17640   { (case "(($ac_try" in
17641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642   *) ac_try_echo=$ac_try;;
17643 esac
17644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645   (eval "$ac_try") 2>&5
17646   ac_status=$?
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); }; }; then
17649   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
17650   if test "x$ac_cv_lib_soname_Xrender" = "x"
17651   then
17652      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
17653   fi
17654 else
17655   echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17657
17658         ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
17659 fi
17660
17661 rm -f core conftest.err conftest.$ac_objext \
17662       conftest$ac_exeext conftest.$ac_ext
17663   LIBS=$ac_get_soname_save_LIBS
17664 fi
17665 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
17666 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
17667 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17668
17669 cat >>confdefs.h <<_ACEOF
17670 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
17671 _ACEOF
17672
17673 fi
17674
17675   { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
17676 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
17677 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17678   echo $ECHO_N "(cached) $ECHO_C" >&6
17679 else
17680   ac_get_soname_save_LIBS=$LIBS
17681 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17682   cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688
17689 /* Override any GCC internal prototype to avoid an error.
17690    Use char because int might match the return type of a GCC
17691    builtin and then its argument prototype would still apply.  */
17692 #ifdef __cplusplus
17693 extern "C"
17694 #endif
17695 char XRRQueryExtension ();
17696 int
17697 main ()
17698 {
17699 return XRRQueryExtension ();
17700   ;
17701   return 0;
17702 }
17703 _ACEOF
17704 rm -f conftest.$ac_objext conftest$ac_exeext
17705 if { (ac_try="$ac_link"
17706 case "(($ac_try" in
17707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708   *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711   (eval "$ac_link") 2>conftest.er1
17712   ac_status=$?
17713   grep -v '^ *+' conftest.er1 >conftest.err
17714   rm -f conftest.er1
17715   cat conftest.err >&5
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); } &&
17718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17719   { (case "(($ac_try" in
17720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721   *) ac_try_echo=$ac_try;;
17722 esac
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724   (eval "$ac_try") 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); }; } &&
17728          { ac_try='test -s conftest$ac_exeext'
17729   { (case "(($ac_try" in
17730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731   *) ac_try_echo=$ac_try;;
17732 esac
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734   (eval "$ac_try") 2>&5
17735   ac_status=$?
17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737   (exit $ac_status); }; }; then
17738   ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
17739   if test "x$ac_cv_lib_soname_Xrandr" = "x"
17740   then
17741      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
17742   fi
17743 else
17744   echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17746
17747         ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
17748 fi
17749
17750 rm -f core conftest.err conftest.$ac_objext \
17751       conftest$ac_exeext conftest.$ac_ext
17752   LIBS=$ac_get_soname_save_LIBS
17753 fi
17754 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
17755 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
17756 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17757
17758 cat >>confdefs.h <<_ACEOF
17759 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
17760 _ACEOF
17761
17762 fi
17763
17764   { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
17765 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
17766 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17767   echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769   ac_get_soname_save_LIBS=$LIBS
17770 LIBS="-lfreetype $X_LIBS $LIBS"
17771   cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h.  */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h.  */
17777
17778 /* Override any GCC internal prototype to avoid an error.
17779    Use char because int might match the return type of a GCC
17780    builtin and then its argument prototype would still apply.  */
17781 #ifdef __cplusplus
17782 extern "C"
17783 #endif
17784 char FT_Init_FreeType ();
17785 int
17786 main ()
17787 {
17788 return FT_Init_FreeType ();
17789   ;
17790   return 0;
17791 }
17792 _ACEOF
17793 rm -f conftest.$ac_objext conftest$ac_exeext
17794 if { (ac_try="$ac_link"
17795 case "(($ac_try" in
17796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797   *) ac_try_echo=$ac_try;;
17798 esac
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800   (eval "$ac_link") 2>conftest.er1
17801   ac_status=$?
17802   grep -v '^ *+' conftest.er1 >conftest.err
17803   rm -f conftest.er1
17804   cat conftest.err >&5
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); } &&
17807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17808   { (case "(($ac_try" in
17809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810   *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813   (eval "$ac_try") 2>&5
17814   ac_status=$?
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); }; } &&
17817          { ac_try='test -s conftest$ac_exeext'
17818   { (case "(($ac_try" in
17819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820   *) ac_try_echo=$ac_try;;
17821 esac
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823   (eval "$ac_try") 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); }; }; then
17827   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
17828   if test "x$ac_cv_lib_soname_freetype" = "x"
17829   then
17830      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
17831   fi
17832 else
17833   echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17835
17836         ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
17837 fi
17838
17839 rm -f core conftest.err conftest.$ac_objext \
17840       conftest$ac_exeext conftest.$ac_ext
17841   LIBS=$ac_get_soname_save_LIBS
17842 fi
17843 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
17844 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
17845 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17846
17847 cat >>confdefs.h <<_ACEOF
17848 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
17849 _ACEOF
17850
17851 fi
17852
17853   { echo "$as_me:$LINENO: checking for -lGL soname" >&5
17854 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
17855 if test "${ac_cv_lib_soname_GL+set}" = set; then
17856   echo $ECHO_N "(cached) $ECHO_C" >&6
17857 else
17858   ac_get_soname_save_LIBS=$LIBS
17859 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
17860   cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h.  */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h.  */
17866
17867 /* Override any GCC internal prototype to avoid an error.
17868    Use char because int might match the return type of a GCC
17869    builtin and then its argument prototype would still apply.  */
17870 #ifdef __cplusplus
17871 extern "C"
17872 #endif
17873 char glXQueryExtension ();
17874 int
17875 main ()
17876 {
17877 return glXQueryExtension ();
17878   ;
17879   return 0;
17880 }
17881 _ACEOF
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886   *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889   (eval "$ac_link") 2>conftest.er1
17890   ac_status=$?
17891   grep -v '^ *+' conftest.er1 >conftest.err
17892   rm -f conftest.er1
17893   cat conftest.err >&5
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); } &&
17896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17897   { (case "(($ac_try" in
17898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899   *) ac_try_echo=$ac_try;;
17900 esac
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902   (eval "$ac_try") 2>&5
17903   ac_status=$?
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); }; } &&
17906          { ac_try='test -s conftest$ac_exeext'
17907   { (case "(($ac_try" in
17908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909   *) ac_try_echo=$ac_try;;
17910 esac
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912   (eval "$ac_try") 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }; }; then
17916   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'`
17917   if test "x$ac_cv_lib_soname_GL" = "x"
17918   then
17919      ac_cv_lib_soname_GL="libGL.$LIBEXT"
17920   fi
17921 else
17922   echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17924
17925         ac_cv_lib_soname_GL="libGL.$LIBEXT"
17926 fi
17927
17928 rm -f core conftest.err conftest.$ac_objext \
17929       conftest$ac_exeext conftest.$ac_ext
17930   LIBS=$ac_get_soname_save_LIBS
17931 fi
17932 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
17933 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
17934 if test "${ac_cv_lib_soname_GL+set}" = set; then
17935
17936 cat >>confdefs.h <<_ACEOF
17937 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
17938 _ACEOF
17939
17940 fi
17941
17942   { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
17943 echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
17944 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
17945   echo $ECHO_N "(cached) $ECHO_C" >&6
17946 else
17947   ac_get_soname_save_LIBS=$LIBS
17948 LIBS="-ldbus-1  $LIBS"
17949   cat >conftest.$ac_ext <<_ACEOF
17950 /* confdefs.h.  */
17951 _ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h.  */
17955
17956 /* Override any GCC internal prototype to avoid an error.
17957    Use char because int might match the return type of a GCC
17958    builtin and then its argument prototype would still apply.  */
17959 #ifdef __cplusplus
17960 extern "C"
17961 #endif
17962 char dbus_error_init ();
17963 int
17964 main ()
17965 {
17966 return dbus_error_init ();
17967   ;
17968   return 0;
17969 }
17970 _ACEOF
17971 rm -f conftest.$ac_objext conftest$ac_exeext
17972 if { (ac_try="$ac_link"
17973 case "(($ac_try" in
17974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975   *) ac_try_echo=$ac_try;;
17976 esac
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978   (eval "$ac_link") 2>conftest.er1
17979   ac_status=$?
17980   grep -v '^ *+' conftest.er1 >conftest.err
17981   rm -f conftest.er1
17982   cat conftest.err >&5
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); } &&
17985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17986   { (case "(($ac_try" in
17987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988   *) ac_try_echo=$ac_try;;
17989 esac
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991   (eval "$ac_try") 2>&5
17992   ac_status=$?
17993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994   (exit $ac_status); }; } &&
17995          { ac_try='test -s conftest$ac_exeext'
17996   { (case "(($ac_try" in
17997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998   *) ac_try_echo=$ac_try;;
17999 esac
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001   (eval "$ac_try") 2>&5
18002   ac_status=$?
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); }; }; then
18005   ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.$LIBEXT | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
18006   if test "x$ac_cv_lib_soname_dbus_1" = "x"
18007   then
18008      ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18009   fi
18010 else
18011   echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18013
18014         ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18015 fi
18016
18017 rm -f core conftest.err conftest.$ac_objext \
18018       conftest$ac_exeext conftest.$ac_ext
18019   LIBS=$ac_get_soname_save_LIBS
18020 fi
18021 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
18022 echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
18023 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18024
18025 cat >>confdefs.h <<_ACEOF
18026 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
18027 _ACEOF
18028
18029 fi
18030
18031   { echo "$as_me:$LINENO: checking for -lhal soname" >&5
18032 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
18033 if test "${ac_cv_lib_soname_hal+set}" = set; then
18034   echo $ECHO_N "(cached) $ECHO_C" >&6
18035 else
18036   ac_get_soname_save_LIBS=$LIBS
18037 LIBS="-lhal  $LIBS"
18038   cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h.  */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h.  */
18044
18045 /* Override any GCC internal prototype to avoid an error.
18046    Use char because int might match the return type of a GCC
18047    builtin and then its argument prototype would still apply.  */
18048 #ifdef __cplusplus
18049 extern "C"
18050 #endif
18051 char libhal_ctx_new ();
18052 int
18053 main ()
18054 {
18055 return libhal_ctx_new ();
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (ac_try="$ac_link"
18062 case "(($ac_try" in
18063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064   *) ac_try_echo=$ac_try;;
18065 esac
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067   (eval "$ac_link") 2>conftest.er1
18068   ac_status=$?
18069   grep -v '^ *+' conftest.er1 >conftest.err
18070   rm -f conftest.er1
18071   cat conftest.err >&5
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); } &&
18074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075   { (case "(($ac_try" in
18076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077   *) ac_try_echo=$ac_try;;
18078 esac
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080   (eval "$ac_try") 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); }; } &&
18084          { ac_try='test -s conftest$ac_exeext'
18085   { (case "(($ac_try" in
18086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087   *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090   (eval "$ac_try") 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; }; then
18094   ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
18095   if test "x$ac_cv_lib_soname_hal" = "x"
18096   then
18097      ac_cv_lib_soname_hal="libhal.$LIBEXT"
18098   fi
18099 else
18100   echo "$as_me: failed program was:" >&5
18101 sed 's/^/| /' conftest.$ac_ext >&5
18102
18103         ac_cv_lib_soname_hal="libhal.$LIBEXT"
18104 fi
18105
18106 rm -f core conftest.err conftest.$ac_objext \
18107       conftest$ac_exeext conftest.$ac_ext
18108   LIBS=$ac_get_soname_save_LIBS
18109 fi
18110 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
18111 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
18112 if test "${ac_cv_lib_soname_hal+set}" = set; then
18113
18114 cat >>confdefs.h <<_ACEOF
18115 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
18116 _ACEOF
18117
18118 fi
18119
18120   { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
18121 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
18122 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18123   echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125   ac_get_soname_save_LIBS=$LIBS
18126 LIBS="-ltxc_dxtn  $LIBS"
18127   cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h.  */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h.  */
18133
18134 /* Override any GCC internal prototype to avoid an error.
18135    Use char because int might match the return type of a GCC
18136    builtin and then its argument prototype would still apply.  */
18137 #ifdef __cplusplus
18138 extern "C"
18139 #endif
18140 char fetch_2d_texel_rgba_dxt1 ();
18141 int
18142 main ()
18143 {
18144 return fetch_2d_texel_rgba_dxt1 ();
18145   ;
18146   return 0;
18147 }
18148 _ACEOF
18149 rm -f conftest.$ac_objext conftest$ac_exeext
18150 if { (ac_try="$ac_link"
18151 case "(($ac_try" in
18152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153   *) ac_try_echo=$ac_try;;
18154 esac
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156   (eval "$ac_link") 2>conftest.er1
18157   ac_status=$?
18158   grep -v '^ *+' conftest.er1 >conftest.err
18159   rm -f conftest.er1
18160   cat conftest.err >&5
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); } &&
18163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18164   { (case "(($ac_try" in
18165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166   *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169   (eval "$ac_try") 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); }; } &&
18173          { ac_try='test -s conftest$ac_exeext'
18174   { (case "(($ac_try" in
18175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176   *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179   (eval "$ac_try") 2>&5
18180   ac_status=$?
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); }; }; then
18183   ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
18184   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
18185   then
18186      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18187   fi
18188 else
18189   echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18191
18192         ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18193 fi
18194
18195 rm -f core conftest.err conftest.$ac_objext \
18196       conftest$ac_exeext conftest.$ac_ext
18197   LIBS=$ac_get_soname_save_LIBS
18198 fi
18199 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
18200 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
18201 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18202
18203 cat >>confdefs.h <<_ACEOF
18204 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
18205 _ACEOF
18206
18207 fi
18208
18209   { echo "$as_me:$LINENO: checking for -lcups soname" >&5
18210 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
18211 if test "${ac_cv_lib_soname_cups+set}" = set; then
18212   echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214   ac_get_soname_save_LIBS=$LIBS
18215 LIBS="-lcups  $LIBS"
18216   cat >conftest.$ac_ext <<_ACEOF
18217 /* confdefs.h.  */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h.  */
18222
18223 /* Override any GCC internal prototype to avoid an error.
18224    Use char because int might match the return type of a GCC
18225    builtin and then its argument prototype would still apply.  */
18226 #ifdef __cplusplus
18227 extern "C"
18228 #endif
18229 char cupsGetDefault ();
18230 int
18231 main ()
18232 {
18233 return cupsGetDefault ();
18234   ;
18235   return 0;
18236 }
18237 _ACEOF
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242   *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245   (eval "$ac_link") 2>conftest.er1
18246   ac_status=$?
18247   grep -v '^ *+' conftest.er1 >conftest.err
18248   rm -f conftest.er1
18249   cat conftest.err >&5
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } &&
18252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18253   { (case "(($ac_try" in
18254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255   *) ac_try_echo=$ac_try;;
18256 esac
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258   (eval "$ac_try") 2>&5
18259   ac_status=$?
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); }; } &&
18262          { ac_try='test -s conftest$ac_exeext'
18263   { (case "(($ac_try" in
18264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265   *) ac_try_echo=$ac_try;;
18266 esac
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268   (eval "$ac_try") 2>&5
18269   ac_status=$?
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); }; }; then
18272   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
18273   if test "x$ac_cv_lib_soname_cups" = "x"
18274   then
18275      ac_cv_lib_soname_cups="libcups.$LIBEXT"
18276   fi
18277 else
18278   echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18280
18281         ac_cv_lib_soname_cups="libcups.$LIBEXT"
18282 fi
18283
18284 rm -f core conftest.err conftest.$ac_objext \
18285       conftest$ac_exeext conftest.$ac_ext
18286   LIBS=$ac_get_soname_save_LIBS
18287 fi
18288 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
18289 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
18290 if test "${ac_cv_lib_soname_cups+set}" = set; then
18291
18292 cat >>confdefs.h <<_ACEOF
18293 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
18294 _ACEOF
18295
18296 fi
18297
18298   { echo "$as_me:$LINENO: checking for -ljack soname" >&5
18299 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
18300 if test "${ac_cv_lib_soname_jack+set}" = set; then
18301   echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303   ac_get_soname_save_LIBS=$LIBS
18304 LIBS="-ljack  $LIBS"
18305   cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h.  */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h.  */
18311
18312 /* Override any GCC internal prototype to avoid an error.
18313    Use char because int might match the return type of a GCC
18314    builtin and then its argument prototype would still apply.  */
18315 #ifdef __cplusplus
18316 extern "C"
18317 #endif
18318 char jack_client_new ();
18319 int
18320 main ()
18321 {
18322 return jack_client_new ();
18323   ;
18324   return 0;
18325 }
18326 _ACEOF
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (ac_try="$ac_link"
18329 case "(($ac_try" in
18330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331   *) ac_try_echo=$ac_try;;
18332 esac
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334   (eval "$ac_link") 2>conftest.er1
18335   ac_status=$?
18336   grep -v '^ *+' conftest.er1 >conftest.err
18337   rm -f conftest.er1
18338   cat conftest.err >&5
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); } &&
18341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18342   { (case "(($ac_try" in
18343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344   *) ac_try_echo=$ac_try;;
18345 esac
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347   (eval "$ac_try") 2>&5
18348   ac_status=$?
18349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350   (exit $ac_status); }; } &&
18351          { ac_try='test -s conftest$ac_exeext'
18352   { (case "(($ac_try" in
18353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354   *) ac_try_echo=$ac_try;;
18355 esac
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357   (eval "$ac_try") 2>&5
18358   ac_status=$?
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); }; }; then
18361   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
18362   if test "x$ac_cv_lib_soname_jack" = "x"
18363   then
18364      ac_cv_lib_soname_jack="libjack.$LIBEXT"
18365   fi
18366 else
18367   echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18369
18370         ac_cv_lib_soname_jack="libjack.$LIBEXT"
18371 fi
18372
18373 rm -f core conftest.err conftest.$ac_objext \
18374       conftest$ac_exeext conftest.$ac_ext
18375   LIBS=$ac_get_soname_save_LIBS
18376 fi
18377 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
18378 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
18379 if test "${ac_cv_lib_soname_jack+set}" = set; then
18380
18381 cat >>confdefs.h <<_ACEOF
18382 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
18383 _ACEOF
18384
18385 fi
18386
18387   { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
18388 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
18389 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18390   echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392   ac_get_soname_save_LIBS=$LIBS
18393 LIBS="-lfontconfig  $LIBS"
18394   cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h.  */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h.  */
18400
18401 /* Override any GCC internal prototype to avoid an error.
18402    Use char because int might match the return type of a GCC
18403    builtin and then its argument prototype would still apply.  */
18404 #ifdef __cplusplus
18405 extern "C"
18406 #endif
18407 char FcInit ();
18408 int
18409 main ()
18410 {
18411 return FcInit ();
18412   ;
18413   return 0;
18414 }
18415 _ACEOF
18416 rm -f conftest.$ac_objext conftest$ac_exeext
18417 if { (ac_try="$ac_link"
18418 case "(($ac_try" in
18419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420   *) ac_try_echo=$ac_try;;
18421 esac
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423   (eval "$ac_link") 2>conftest.er1
18424   ac_status=$?
18425   grep -v '^ *+' conftest.er1 >conftest.err
18426   rm -f conftest.er1
18427   cat conftest.err >&5
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); } &&
18430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18431   { (case "(($ac_try" in
18432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433   *) ac_try_echo=$ac_try;;
18434 esac
18435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436   (eval "$ac_try") 2>&5
18437   ac_status=$?
18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439   (exit $ac_status); }; } &&
18440          { ac_try='test -s conftest$ac_exeext'
18441   { (case "(($ac_try" in
18442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443   *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446   (eval "$ac_try") 2>&5
18447   ac_status=$?
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); }; }; then
18450   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'`
18451   if test "x$ac_cv_lib_soname_fontconfig" = "x"
18452   then
18453      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18454   fi
18455 else
18456   echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18458
18459         ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18460 fi
18461
18462 rm -f core conftest.err conftest.$ac_objext \
18463       conftest$ac_exeext conftest.$ac_ext
18464   LIBS=$ac_get_soname_save_LIBS
18465 fi
18466 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
18467 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
18468 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18469
18470 cat >>confdefs.h <<_ACEOF
18471 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
18472 _ACEOF
18473
18474 fi
18475
18476   { echo "$as_me:$LINENO: checking for -lssl soname" >&5
18477 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
18478 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18479   echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481   ac_get_soname_save_LIBS=$LIBS
18482 LIBS="-lssl  $LIBS"
18483   cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h.  */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h.  */
18489
18490 /* Override any GCC internal prototype to avoid an error.
18491    Use char because int might match the return type of a GCC
18492    builtin and then its argument prototype would still apply.  */
18493 #ifdef __cplusplus
18494 extern "C"
18495 #endif
18496 char SSL_library_init ();
18497 int
18498 main ()
18499 {
18500 return SSL_library_init ();
18501   ;
18502   return 0;
18503 }
18504 _ACEOF
18505 rm -f conftest.$ac_objext conftest$ac_exeext
18506 if { (ac_try="$ac_link"
18507 case "(($ac_try" in
18508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509   *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512   (eval "$ac_link") 2>conftest.er1
18513   ac_status=$?
18514   grep -v '^ *+' conftest.er1 >conftest.err
18515   rm -f conftest.er1
18516   cat conftest.err >&5
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); } &&
18519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18526   ac_status=$?
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); }; } &&
18529          { ac_try='test -s conftest$ac_exeext'
18530   { (case "(($ac_try" in
18531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532   *) ac_try_echo=$ac_try;;
18533 esac
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535   (eval "$ac_try") 2>&5
18536   ac_status=$?
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); }; }; then
18539   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
18540   if test "x$ac_cv_lib_soname_ssl" = "x"
18541   then
18542      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18543   fi
18544 else
18545   echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18547
18548         ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18549 fi
18550
18551 rm -f core conftest.err conftest.$ac_objext \
18552       conftest$ac_exeext conftest.$ac_ext
18553   LIBS=$ac_get_soname_save_LIBS
18554 fi
18555 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
18556 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
18557 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18558
18559 cat >>confdefs.h <<_ACEOF
18560 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
18561 _ACEOF
18562
18563 fi
18564
18565   { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
18566 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
18567 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18568   echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570   ac_get_soname_save_LIBS=$LIBS
18571 LIBS="-lcrypto  $LIBS"
18572   cat >conftest.$ac_ext <<_ACEOF
18573 /* confdefs.h.  */
18574 _ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h.  */
18578
18579 /* Override any GCC internal prototype to avoid an error.
18580    Use char because int might match the return type of a GCC
18581    builtin and then its argument prototype would still apply.  */
18582 #ifdef __cplusplus
18583 extern "C"
18584 #endif
18585 char BIO_new_socket ();
18586 int
18587 main ()
18588 {
18589 return BIO_new_socket ();
18590   ;
18591   return 0;
18592 }
18593 _ACEOF
18594 rm -f conftest.$ac_objext conftest$ac_exeext
18595 if { (ac_try="$ac_link"
18596 case "(($ac_try" in
18597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598   *) ac_try_echo=$ac_try;;
18599 esac
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601   (eval "$ac_link") 2>conftest.er1
18602   ac_status=$?
18603   grep -v '^ *+' conftest.er1 >conftest.err
18604   rm -f conftest.er1
18605   cat conftest.err >&5
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); } &&
18608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18609   { (case "(($ac_try" in
18610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611   *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614   (eval "$ac_try") 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; } &&
18618          { ac_try='test -s conftest$ac_exeext'
18619   { (case "(($ac_try" in
18620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621   *) ac_try_echo=$ac_try;;
18622 esac
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624   (eval "$ac_try") 2>&5
18625   ac_status=$?
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); }; }; then
18628   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
18629   if test "x$ac_cv_lib_soname_crypto" = "x"
18630   then
18631      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18632   fi
18633 else
18634   echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18636
18637         ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18638 fi
18639
18640 rm -f core conftest.err conftest.$ac_objext \
18641       conftest$ac_exeext conftest.$ac_ext
18642   LIBS=$ac_get_soname_save_LIBS
18643 fi
18644 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
18645 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
18646 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18647
18648 cat >>confdefs.h <<_ACEOF
18649 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
18650 _ACEOF
18651
18652 fi
18653
18654   { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
18655 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
18656 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18657   echo $ECHO_N "(cached) $ECHO_C" >&6
18658 else
18659   ac_get_soname_save_LIBS=$LIBS
18660 LIBS="-lncurses  $LIBS"
18661   cat >conftest.$ac_ext <<_ACEOF
18662 /* confdefs.h.  */
18663 _ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h.  */
18667
18668 /* Override any GCC internal prototype to avoid an error.
18669    Use char because int might match the return type of a GCC
18670    builtin and then its argument prototype would still apply.  */
18671 #ifdef __cplusplus
18672 extern "C"
18673 #endif
18674 char waddch ();
18675 int
18676 main ()
18677 {
18678 return waddch ();
18679   ;
18680   return 0;
18681 }
18682 _ACEOF
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (ac_try="$ac_link"
18685 case "(($ac_try" in
18686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687   *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690   (eval "$ac_link") 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } &&
18697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18698   { (case "(($ac_try" in
18699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700   *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703   (eval "$ac_try") 2>&5
18704   ac_status=$?
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); }; } &&
18707          { ac_try='test -s conftest$ac_exeext'
18708   { (case "(($ac_try" in
18709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710   *) ac_try_echo=$ac_try;;
18711 esac
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713   (eval "$ac_try") 2>&5
18714   ac_status=$?
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); }; }; then
18717   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
18718   if test "x$ac_cv_lib_soname_ncurses" = "x"
18719   then
18720      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18721   fi
18722 else
18723   echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18725
18726         ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18727 fi
18728
18729 rm -f core conftest.err conftest.$ac_objext \
18730       conftest$ac_exeext conftest.$ac_ext
18731   LIBS=$ac_get_soname_save_LIBS
18732 fi
18733 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
18734 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
18735 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18736
18737 cat >>confdefs.h <<_ACEOF
18738 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
18739 _ACEOF
18740
18741 fi
18742
18743   { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
18744 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
18745 if test "${ac_cv_lib_soname_curses+set}" = set; then
18746   echo $ECHO_N "(cached) $ECHO_C" >&6
18747 else
18748   ac_get_soname_save_LIBS=$LIBS
18749 LIBS="-lcurses  $LIBS"
18750   cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756
18757 /* Override any GCC internal prototype to avoid an error.
18758    Use char because int might match the return type of a GCC
18759    builtin and then its argument prototype would still apply.  */
18760 #ifdef __cplusplus
18761 extern "C"
18762 #endif
18763 char waddch ();
18764 int
18765 main ()
18766 {
18767 return waddch ();
18768   ;
18769   return 0;
18770 }
18771 _ACEOF
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (ac_try="$ac_link"
18774 case "(($ac_try" in
18775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776   *) ac_try_echo=$ac_try;;
18777 esac
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779   (eval "$ac_link") 2>conftest.er1
18780   ac_status=$?
18781   grep -v '^ *+' conftest.er1 >conftest.err
18782   rm -f conftest.er1
18783   cat conftest.err >&5
18784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); } &&
18786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18787   { (case "(($ac_try" in
18788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789   *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792   (eval "$ac_try") 2>&5
18793   ac_status=$?
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); }; } &&
18796          { ac_try='test -s conftest$ac_exeext'
18797   { (case "(($ac_try" in
18798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799   *) ac_try_echo=$ac_try;;
18800 esac
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802   (eval "$ac_try") 2>&5
18803   ac_status=$?
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); }; }; then
18806   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
18807   if test "x$ac_cv_lib_soname_curses" = "x"
18808   then
18809      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18810   fi
18811 else
18812   echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18814
18815         ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18816 fi
18817
18818 rm -f core conftest.err conftest.$ac_objext \
18819       conftest$ac_exeext conftest.$ac_ext
18820   LIBS=$ac_get_soname_save_LIBS
18821 fi
18822 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
18823 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
18824 if test "${ac_cv_lib_soname_curses+set}" = set; then
18825
18826 cat >>confdefs.h <<_ACEOF
18827 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
18828 _ACEOF
18829
18830 fi
18831
18832   { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
18833 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
18834 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18835   echo $ECHO_N "(cached) $ECHO_C" >&6
18836 else
18837   ac_get_soname_save_LIBS=$LIBS
18838 LIBS="-ljpeg  $LIBS"
18839   cat >conftest.$ac_ext <<_ACEOF
18840 /* confdefs.h.  */
18841 _ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h.  */
18845
18846 /* Override any GCC internal prototype to avoid an error.
18847    Use char because int might match the return type of a GCC
18848    builtin and then its argument prototype would still apply.  */
18849 #ifdef __cplusplus
18850 extern "C"
18851 #endif
18852 char jpeg_start_decompress ();
18853 int
18854 main ()
18855 {
18856 return jpeg_start_decompress ();
18857   ;
18858   return 0;
18859 }
18860 _ACEOF
18861 rm -f conftest.$ac_objext conftest$ac_exeext
18862 if { (ac_try="$ac_link"
18863 case "(($ac_try" in
18864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865   *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868   (eval "$ac_link") 2>conftest.er1
18869   ac_status=$?
18870   grep -v '^ *+' conftest.er1 >conftest.err
18871   rm -f conftest.er1
18872   cat conftest.err >&5
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); } &&
18875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18876   { (case "(($ac_try" in
18877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18878   *) ac_try_echo=$ac_try;;
18879 esac
18880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881   (eval "$ac_try") 2>&5
18882   ac_status=$?
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); }; } &&
18885          { ac_try='test -s conftest$ac_exeext'
18886   { (case "(($ac_try" in
18887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888   *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891   (eval "$ac_try") 2>&5
18892   ac_status=$?
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); }; }; then
18895   ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
18896   if test "x$ac_cv_lib_soname_jpeg" = "x"
18897   then
18898      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18899   fi
18900 else
18901   echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18903
18904         ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18905 fi
18906
18907 rm -f core conftest.err conftest.$ac_objext \
18908       conftest$ac_exeext conftest.$ac_ext
18909   LIBS=$ac_get_soname_save_LIBS
18910 fi
18911 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
18912 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
18913 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18914
18915 cat >>confdefs.h <<_ACEOF
18916 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
18917 _ACEOF
18918
18919 fi
18920
18921   { echo "$as_me:$LINENO: checking for -lungif soname" >&5
18922 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
18923 if test "${ac_cv_lib_soname_ungif+set}" = set; then
18924   echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
18926   ac_get_soname_save_LIBS=$LIBS
18927 LIBS="-lungif  $LIBS"
18928   cat >conftest.$ac_ext <<_ACEOF
18929 /* confdefs.h.  */
18930 _ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h.  */
18934
18935 /* Override any GCC internal prototype to avoid an error.
18936    Use char because int might match the return type of a GCC
18937    builtin and then its argument prototype would still apply.  */
18938 #ifdef __cplusplus
18939 extern "C"
18940 #endif
18941 char DGifOpen ();
18942 int
18943 main ()
18944 {
18945 return DGifOpen ();
18946   ;
18947   return 0;
18948 }
18949 _ACEOF
18950 rm -f conftest.$ac_objext conftest$ac_exeext
18951 if { (ac_try="$ac_link"
18952 case "(($ac_try" in
18953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954   *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957   (eval "$ac_link") 2>conftest.er1
18958   ac_status=$?
18959   grep -v '^ *+' conftest.er1 >conftest.err
18960   rm -f conftest.er1
18961   cat conftest.err >&5
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); } &&
18964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18965   { (case "(($ac_try" in
18966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967   *) ac_try_echo=$ac_try;;
18968 esac
18969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970   (eval "$ac_try") 2>&5
18971   ac_status=$?
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); }; } &&
18974          { ac_try='test -s conftest$ac_exeext'
18975   { (case "(($ac_try" in
18976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977   *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980   (eval "$ac_try") 2>&5
18981   ac_status=$?
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); }; }; then
18984   ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'`
18985   if test "x$ac_cv_lib_soname_ungif" = "x"
18986   then
18987      ac_cv_lib_soname_ungif="libungif.$LIBEXT"
18988   fi
18989 else
18990   echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18992
18993         ac_cv_lib_soname_ungif="libungif.$LIBEXT"
18994 fi
18995
18996 rm -f core conftest.err conftest.$ac_objext \
18997       conftest$ac_exeext conftest.$ac_ext
18998   LIBS=$ac_get_soname_save_LIBS
18999 fi
19000 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
19001 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
19002 if test "${ac_cv_lib_soname_ungif+set}" = set; then
19003
19004 cat >>confdefs.h <<_ACEOF
19005 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
19006 _ACEOF
19007
19008 fi
19009
19010   { echo "$as_me:$LINENO: checking for -lgif soname" >&5
19011 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
19012 if test "${ac_cv_lib_soname_gif+set}" = set; then
19013   echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015   ac_get_soname_save_LIBS=$LIBS
19016 LIBS="-lgif  $LIBS"
19017   cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023
19024 /* Override any GCC internal prototype to avoid an error.
19025    Use char because int might match the return type of a GCC
19026    builtin and then its argument prototype would still apply.  */
19027 #ifdef __cplusplus
19028 extern "C"
19029 #endif
19030 char DGifOpen ();
19031 int
19032 main ()
19033 {
19034 return DGifOpen ();
19035   ;
19036   return 0;
19037 }
19038 _ACEOF
19039 rm -f conftest.$ac_objext conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043   *) ac_try_echo=$ac_try;;
19044 esac
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046   (eval "$ac_link") 2>conftest.er1
19047   ac_status=$?
19048   grep -v '^ *+' conftest.er1 >conftest.err
19049   rm -f conftest.er1
19050   cat conftest.err >&5
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); } &&
19053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19054   { (case "(($ac_try" in
19055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056   *) ac_try_echo=$ac_try;;
19057 esac
19058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19059   (eval "$ac_try") 2>&5
19060   ac_status=$?
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); }; } &&
19063          { ac_try='test -s conftest$ac_exeext'
19064   { (case "(($ac_try" in
19065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066   *) ac_try_echo=$ac_try;;
19067 esac
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069   (eval "$ac_try") 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); }; }; then
19073   ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
19074   if test "x$ac_cv_lib_soname_gif" = "x"
19075   then
19076      ac_cv_lib_soname_gif="libgif.$LIBEXT"
19077   fi
19078 else
19079   echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19081
19082         ac_cv_lib_soname_gif="libgif.$LIBEXT"
19083 fi
19084
19085 rm -f core conftest.err conftest.$ac_objext \
19086       conftest$ac_exeext conftest.$ac_ext
19087   LIBS=$ac_get_soname_save_LIBS
19088 fi
19089 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
19090 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
19091 if test "${ac_cv_lib_soname_gif+set}" = set; then
19092
19093 cat >>confdefs.h <<_ACEOF
19094 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
19095 _ACEOF
19096
19097 fi
19098
19099   { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
19100 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
19101 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19102   echo $ECHO_N "(cached) $ECHO_C" >&6
19103 else
19104   ac_get_soname_save_LIBS=$LIBS
19105 LIBS="-lcapi20  $LIBS"
19106   cat >conftest.$ac_ext <<_ACEOF
19107 /* confdefs.h.  */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h.  */
19112
19113 /* Override any GCC internal prototype to avoid an error.
19114    Use char because int might match the return type of a GCC
19115    builtin and then its argument prototype would still apply.  */
19116 #ifdef __cplusplus
19117 extern "C"
19118 #endif
19119 char capi20_isinstalled ();
19120 int
19121 main ()
19122 {
19123 return capi20_isinstalled ();
19124   ;
19125   return 0;
19126 }
19127 _ACEOF
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (ac_try="$ac_link"
19130 case "(($ac_try" in
19131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132   *) ac_try_echo=$ac_try;;
19133 esac
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135   (eval "$ac_link") 2>conftest.er1
19136   ac_status=$?
19137   grep -v '^ *+' conftest.er1 >conftest.err
19138   rm -f conftest.er1
19139   cat conftest.err >&5
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); } &&
19142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19143   { (case "(($ac_try" in
19144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145   *) ac_try_echo=$ac_try;;
19146 esac
19147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148   (eval "$ac_try") 2>&5
19149   ac_status=$?
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); }; } &&
19152          { ac_try='test -s conftest$ac_exeext'
19153   { (case "(($ac_try" in
19154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155   *) ac_try_echo=$ac_try;;
19156 esac
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158   (eval "$ac_try") 2>&5
19159   ac_status=$?
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); }; }; then
19162   ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
19163   if test "x$ac_cv_lib_soname_capi20" = "x"
19164   then
19165      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19166   fi
19167 else
19168   echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19170
19171         ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19172 fi
19173
19174 rm -f core conftest.err conftest.$ac_objext \
19175       conftest$ac_exeext conftest.$ac_ext
19176   LIBS=$ac_get_soname_save_LIBS
19177 fi
19178 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
19179 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
19180 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19181
19182 cat >>confdefs.h <<_ACEOF
19183 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
19184 _ACEOF
19185
19186 fi
19187
19188 fi
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258 for ac_func in \
19259         _lwp_create \
19260         _lwp_self \
19261         _pclose \
19262         _popen \
19263         _snprintf \
19264         _spawnvp \
19265         _stricmp \
19266         _strnicmp \
19267         _vsnprintf \
19268         asctime_r \
19269         chsize \
19270         clone \
19271         epoll_create \
19272         ffs \
19273         finite \
19274         fork \
19275         fpclass \
19276         fstatfs \
19277         fstatvfs \
19278         ftruncate \
19279         futimes \
19280         futimesat \
19281         getaddrinfo \
19282         getnameinfo \
19283         getnetbyname \
19284         getopt_long \
19285         getpagesize \
19286         getprotobyname \
19287         getprotobynumber \
19288         getpwuid \
19289         getservbyport \
19290         gettid \
19291         gettimeofday \
19292         getuid \
19293         inet_network \
19294         kqueue \
19295         lstat \
19296         memmove \
19297         mmap \
19298         pclose \
19299         popen \
19300         prctl \
19301         pread \
19302         pwrite \
19303         readlink \
19304         rfork \
19305         sched_yield \
19306         select \
19307         sendmsg \
19308         setrlimit \
19309         settimeofday \
19310         sigaltstack \
19311         sigprocmask \
19312         snprintf \
19313         spawnvp \
19314         statfs \
19315         statvfs \
19316         strcasecmp \
19317         strerror \
19318         strncasecmp \
19319         tcgetattr \
19320         timegm \
19321         usleep \
19322         vsnprintf \
19323         wait4 \
19324         waitpid \
19325
19326 do
19327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19331   echo $ECHO_N "(cached) $ECHO_C" >&6
19332 else
19333   cat >conftest.$ac_ext <<_ACEOF
19334 /* confdefs.h.  */
19335 _ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h.  */
19339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19341 #define $ac_func innocuous_$ac_func
19342
19343 /* System header to define __stub macros and hopefully few prototypes,
19344     which can conflict with char $ac_func (); below.
19345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19346     <limits.h> exists even on freestanding compilers.  */
19347
19348 #ifdef __STDC__
19349 # include <limits.h>
19350 #else
19351 # include <assert.h>
19352 #endif
19353
19354 #undef $ac_func
19355
19356 /* Override any GCC internal prototype to avoid an error.
19357    Use char because int might match the return type of a GCC
19358    builtin and then its argument prototype would still apply.  */
19359 #ifdef __cplusplus
19360 extern "C"
19361 #endif
19362 char $ac_func ();
19363 /* The GNU C library defines this for functions which it implements
19364     to always fail with ENOSYS.  Some functions are actually named
19365     something starting with __ and the normal name is an alias.  */
19366 #if defined __stub_$ac_func || defined __stub___$ac_func
19367 choke me
19368 #endif
19369
19370 int
19371 main ()
19372 {
19373 return $ac_func ();
19374   ;
19375   return 0;
19376 }
19377 _ACEOF
19378 rm -f conftest.$ac_objext conftest$ac_exeext
19379 if { (ac_try="$ac_link"
19380 case "(($ac_try" in
19381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382   *) ac_try_echo=$ac_try;;
19383 esac
19384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19385   (eval "$ac_link") 2>conftest.er1
19386   ac_status=$?
19387   grep -v '^ *+' conftest.er1 >conftest.err
19388   rm -f conftest.er1
19389   cat conftest.err >&5
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); } &&
19392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19393   { (case "(($ac_try" in
19394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395   *) ac_try_echo=$ac_try;;
19396 esac
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398   (eval "$ac_try") 2>&5
19399   ac_status=$?
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); }; } &&
19402          { ac_try='test -s conftest$ac_exeext'
19403   { (case "(($ac_try" in
19404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405   *) ac_try_echo=$ac_try;;
19406 esac
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408   (eval "$ac_try") 2>&5
19409   ac_status=$?
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); }; }; then
19412   eval "$as_ac_var=yes"
19413 else
19414   echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19416
19417         eval "$as_ac_var=no"
19418 fi
19419
19420 rm -f core conftest.err conftest.$ac_objext \
19421       conftest$ac_exeext conftest.$ac_ext
19422 fi
19423 ac_res=`eval echo '${'$as_ac_var'}'`
19424                { echo "$as_me:$LINENO: result: $ac_res" >&5
19425 echo "${ECHO_T}$ac_res" >&6; }
19426 if test `eval echo '${'$as_ac_var'}'` = yes; then
19427   cat >>confdefs.h <<_ACEOF
19428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19429 _ACEOF
19430
19431 fi
19432 done
19433
19434
19435
19436
19437 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19438 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19439 if test "${ac_cv_c_const+set}" = set; then
19440   echo $ECHO_N "(cached) $ECHO_C" >&6
19441 else
19442   cat >conftest.$ac_ext <<_ACEOF
19443 /* confdefs.h.  */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h.  */
19448
19449 int
19450 main ()
19451 {
19452 /* FIXME: Include the comments suggested by Paul. */
19453 #ifndef __cplusplus
19454   /* Ultrix mips cc rejects this.  */
19455   typedef int charset[2];
19456   const charset x;
19457   /* SunOS 4.1.1 cc rejects this.  */
19458   char const *const *ccp;
19459   char **p;
19460   /* NEC SVR4.0.2 mips cc rejects this.  */
19461   struct point {int x, y;};
19462   static struct point const zero = {0,0};
19463   /* AIX XL C 1.02.0.0 rejects this.
19464      It does not let you subtract one const X* pointer from another in
19465      an arm of an if-expression whose if-part is not a constant
19466      expression */
19467   const char *g = "string";
19468   ccp = &g + (g ? g-g : 0);
19469   /* HPUX 7.0 cc rejects these. */
19470   ++ccp;
19471   p = (char**) ccp;
19472   ccp = (char const *const *) p;
19473   { /* SCO 3.2v4 cc rejects this.  */
19474     char *t;
19475     char const *s = 0 ? (char *) 0 : (char const *) 0;
19476
19477     *t++ = 0;
19478     if (s) return 0;
19479   }
19480   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19481     int x[] = {25, 17};
19482     const int *foo = &x[0];
19483     ++foo;
19484   }
19485   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19486     typedef const int *iptr;
19487     iptr p = 0;
19488     ++p;
19489   }
19490   { /* AIX XL C 1.02.0.0 rejects this saying
19491        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19492     struct s { int j; const int *ap[3]; };
19493     struct s *b; b->j = 5;
19494   }
19495   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19496     const int foo = 10;
19497     if (!foo) return 0;
19498   }
19499   return !x[0] && !zero.x;
19500 #endif
19501
19502   ;
19503   return 0;
19504 }
19505 _ACEOF
19506 rm -f conftest.$ac_objext
19507 if { (ac_try="$ac_compile"
19508 case "(($ac_try" in
19509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510   *) ac_try_echo=$ac_try;;
19511 esac
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513   (eval "$ac_compile") 2>conftest.er1
19514   ac_status=$?
19515   grep -v '^ *+' conftest.er1 >conftest.err
19516   rm -f conftest.er1
19517   cat conftest.err >&5
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); } &&
19520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19527   ac_status=$?
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); }; } &&
19530          { ac_try='test -s conftest.$ac_objext'
19531   { (case "(($ac_try" in
19532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533   *) ac_try_echo=$ac_try;;
19534 esac
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536   (eval "$ac_try") 2>&5
19537   ac_status=$?
19538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); }; }; then
19540   ac_cv_c_const=yes
19541 else
19542   echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19544
19545         ac_cv_c_const=no
19546 fi
19547
19548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19549 fi
19550 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19551 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19552 if test $ac_cv_c_const = no; then
19553
19554 cat >>confdefs.h <<\_ACEOF
19555 #define const
19556 _ACEOF
19557
19558 fi
19559
19560 { echo "$as_me:$LINENO: checking for inline" >&5
19561 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19562 if test "${ac_cv_c_inline+set}" = set; then
19563   echo $ECHO_N "(cached) $ECHO_C" >&6
19564 else
19565   ac_cv_c_inline=no
19566 for ac_kw in inline __inline__ __inline; do
19567   cat >conftest.$ac_ext <<_ACEOF
19568 /* confdefs.h.  */
19569 _ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h.  */
19573 #ifndef __cplusplus
19574 typedef int foo_t;
19575 static $ac_kw foo_t static_foo () {return 0; }
19576 $ac_kw foo_t foo () {return 0; }
19577 #endif
19578
19579 _ACEOF
19580 rm -f conftest.$ac_objext
19581 if { (ac_try="$ac_compile"
19582 case "(($ac_try" in
19583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584   *) ac_try_echo=$ac_try;;
19585 esac
19586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19587   (eval "$ac_compile") 2>conftest.er1
19588   ac_status=$?
19589   grep -v '^ *+' conftest.er1 >conftest.err
19590   rm -f conftest.er1
19591   cat conftest.err >&5
19592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593   (exit $ac_status); } &&
19594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19595   { (case "(($ac_try" in
19596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597   *) ac_try_echo=$ac_try;;
19598 esac
19599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600   (eval "$ac_try") 2>&5
19601   ac_status=$?
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); }; } &&
19604          { ac_try='test -s conftest.$ac_objext'
19605   { (case "(($ac_try" in
19606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607   *) ac_try_echo=$ac_try;;
19608 esac
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610   (eval "$ac_try") 2>&5
19611   ac_status=$?
19612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613   (exit $ac_status); }; }; then
19614   ac_cv_c_inline=$ac_kw
19615 else
19616   echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19618
19619
19620 fi
19621
19622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19623   test "$ac_cv_c_inline" != no && break
19624 done
19625
19626 fi
19627 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19628 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19629
19630
19631 case $ac_cv_c_inline in
19632   inline | yes) ;;
19633   *)
19634     case $ac_cv_c_inline in
19635       no) ac_val=;;
19636       *) ac_val=$ac_cv_c_inline;;
19637     esac
19638     cat >>confdefs.h <<_ACEOF
19639 #ifndef __cplusplus
19640 #define inline $ac_val
19641 #endif
19642 _ACEOF
19643     ;;
19644 esac
19645
19646 { echo "$as_me:$LINENO: checking for mode_t" >&5
19647 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
19648 if test "${ac_cv_type_mode_t+set}" = set; then
19649   echo $ECHO_N "(cached) $ECHO_C" >&6
19650 else
19651   cat >conftest.$ac_ext <<_ACEOF
19652 /* confdefs.h.  */
19653 _ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h.  */
19657 $ac_includes_default
19658 typedef mode_t ac__type_new_;
19659 int
19660 main ()
19661 {
19662 if ((ac__type_new_ *) 0)
19663   return 0;
19664 if (sizeof (ac__type_new_))
19665   return 0;
19666   ;
19667   return 0;
19668 }
19669 _ACEOF
19670 rm -f conftest.$ac_objext
19671 if { (ac_try="$ac_compile"
19672 case "(($ac_try" in
19673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674   *) ac_try_echo=$ac_try;;
19675 esac
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677   (eval "$ac_compile") 2>conftest.er1
19678   ac_status=$?
19679   grep -v '^ *+' conftest.er1 >conftest.err
19680   rm -f conftest.er1
19681   cat conftest.err >&5
19682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); } &&
19684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19685   { (case "(($ac_try" in
19686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687   *) ac_try_echo=$ac_try;;
19688 esac
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690   (eval "$ac_try") 2>&5
19691   ac_status=$?
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); }; } &&
19694          { ac_try='test -s conftest.$ac_objext'
19695   { (case "(($ac_try" in
19696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697   *) ac_try_echo=$ac_try;;
19698 esac
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700   (eval "$ac_try") 2>&5
19701   ac_status=$?
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); }; }; then
19704   ac_cv_type_mode_t=yes
19705 else
19706   echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19708
19709         ac_cv_type_mode_t=no
19710 fi
19711
19712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19713 fi
19714 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19715 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
19716 if test $ac_cv_type_mode_t = yes; then
19717
19718 cat >>confdefs.h <<_ACEOF
19719 #define HAVE_MODE_T 1
19720 _ACEOF
19721
19722
19723 fi
19724 { echo "$as_me:$LINENO: checking for off_t" >&5
19725 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
19726 if test "${ac_cv_type_off_t+set}" = set; then
19727   echo $ECHO_N "(cached) $ECHO_C" >&6
19728 else
19729   cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h.  */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h.  */
19735 $ac_includes_default
19736 typedef off_t ac__type_new_;
19737 int
19738 main ()
19739 {
19740 if ((ac__type_new_ *) 0)
19741   return 0;
19742 if (sizeof (ac__type_new_))
19743   return 0;
19744   ;
19745   return 0;
19746 }
19747 _ACEOF
19748 rm -f conftest.$ac_objext
19749 if { (ac_try="$ac_compile"
19750 case "(($ac_try" in
19751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752   *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755   (eval "$ac_compile") 2>conftest.er1
19756   ac_status=$?
19757   grep -v '^ *+' conftest.er1 >conftest.err
19758   rm -f conftest.er1
19759   cat conftest.err >&5
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); } &&
19762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19763   { (case "(($ac_try" in
19764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765   *) ac_try_echo=$ac_try;;
19766 esac
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768   (eval "$ac_try") 2>&5
19769   ac_status=$?
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); }; } &&
19772          { ac_try='test -s conftest.$ac_objext'
19773   { (case "(($ac_try" in
19774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775   *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778   (eval "$ac_try") 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); }; }; then
19782   ac_cv_type_off_t=yes
19783 else
19784   echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19786
19787         ac_cv_type_off_t=no
19788 fi
19789
19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19791 fi
19792 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19793 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
19794 if test $ac_cv_type_off_t = yes; then
19795
19796 cat >>confdefs.h <<_ACEOF
19797 #define HAVE_OFF_T 1
19798 _ACEOF
19799
19800
19801 fi
19802 { echo "$as_me:$LINENO: checking for pid_t" >&5
19803 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
19804 if test "${ac_cv_type_pid_t+set}" = set; then
19805   echo $ECHO_N "(cached) $ECHO_C" >&6
19806 else
19807   cat >conftest.$ac_ext <<_ACEOF
19808 /* confdefs.h.  */
19809 _ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h.  */
19813 $ac_includes_default
19814 typedef pid_t ac__type_new_;
19815 int
19816 main ()
19817 {
19818 if ((ac__type_new_ *) 0)
19819   return 0;
19820 if (sizeof (ac__type_new_))
19821   return 0;
19822   ;
19823   return 0;
19824 }
19825 _ACEOF
19826 rm -f conftest.$ac_objext
19827 if { (ac_try="$ac_compile"
19828 case "(($ac_try" in
19829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830   *) ac_try_echo=$ac_try;;
19831 esac
19832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19833   (eval "$ac_compile") 2>conftest.er1
19834   ac_status=$?
19835   grep -v '^ *+' conftest.er1 >conftest.err
19836   rm -f conftest.er1
19837   cat conftest.err >&5
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); } &&
19840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19841   { (case "(($ac_try" in
19842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843   *) ac_try_echo=$ac_try;;
19844 esac
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846   (eval "$ac_try") 2>&5
19847   ac_status=$?
19848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849   (exit $ac_status); }; } &&
19850          { ac_try='test -s conftest.$ac_objext'
19851   { (case "(($ac_try" in
19852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853   *) ac_try_echo=$ac_try;;
19854 esac
19855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856   (eval "$ac_try") 2>&5
19857   ac_status=$?
19858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859   (exit $ac_status); }; }; then
19860   ac_cv_type_pid_t=yes
19861 else
19862   echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19864
19865         ac_cv_type_pid_t=no
19866 fi
19867
19868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19869 fi
19870 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19871 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
19872 if test $ac_cv_type_pid_t = yes; then
19873
19874 cat >>confdefs.h <<_ACEOF
19875 #define HAVE_PID_T 1
19876 _ACEOF
19877
19878
19879 fi
19880 { echo "$as_me:$LINENO: checking for size_t" >&5
19881 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19882 if test "${ac_cv_type_size_t+set}" = set; then
19883   echo $ECHO_N "(cached) $ECHO_C" >&6
19884 else
19885   cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h.  */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h.  */
19891 $ac_includes_default
19892 typedef size_t ac__type_new_;
19893 int
19894 main ()
19895 {
19896 if ((ac__type_new_ *) 0)
19897   return 0;
19898 if (sizeof (ac__type_new_))
19899   return 0;
19900   ;
19901   return 0;
19902 }
19903 _ACEOF
19904 rm -f conftest.$ac_objext
19905 if { (ac_try="$ac_compile"
19906 case "(($ac_try" in
19907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908   *) ac_try_echo=$ac_try;;
19909 esac
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911   (eval "$ac_compile") 2>conftest.er1
19912   ac_status=$?
19913   grep -v '^ *+' conftest.er1 >conftest.err
19914   rm -f conftest.er1
19915   cat conftest.err >&5
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); } &&
19918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19919   { (case "(($ac_try" in
19920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921   *) ac_try_echo=$ac_try;;
19922 esac
19923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19924   (eval "$ac_try") 2>&5
19925   ac_status=$?
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); }; } &&
19928          { ac_try='test -s conftest.$ac_objext'
19929   { (case "(($ac_try" in
19930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19931   *) ac_try_echo=$ac_try;;
19932 esac
19933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19934   (eval "$ac_try") 2>&5
19935   ac_status=$?
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); }; }; then
19938   ac_cv_type_size_t=yes
19939 else
19940   echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19942
19943         ac_cv_type_size_t=no
19944 fi
19945
19946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19947 fi
19948 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19949 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19950 if test $ac_cv_type_size_t = yes; then
19951
19952 cat >>confdefs.h <<_ACEOF
19953 #define HAVE_SIZE_T 1
19954 _ACEOF
19955
19956
19957 fi
19958 { echo "$as_me:$LINENO: checking for ssize_t" >&5
19959 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
19960 if test "${ac_cv_type_ssize_t+set}" = set; then
19961   echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963   cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h.  */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h.  */
19969 $ac_includes_default
19970 typedef ssize_t ac__type_new_;
19971 int
19972 main ()
19973 {
19974 if ((ac__type_new_ *) 0)
19975   return 0;
19976 if (sizeof (ac__type_new_))
19977   return 0;
19978   ;
19979   return 0;
19980 }
19981 _ACEOF
19982 rm -f conftest.$ac_objext
19983 if { (ac_try="$ac_compile"
19984 case "(($ac_try" in
19985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986   *) ac_try_echo=$ac_try;;
19987 esac
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989   (eval "$ac_compile") 2>conftest.er1
19990   ac_status=$?
19991   grep -v '^ *+' conftest.er1 >conftest.err
19992   rm -f conftest.er1
19993   cat conftest.err >&5
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); } &&
19996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19997   { (case "(($ac_try" in
19998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999   *) ac_try_echo=$ac_try;;
20000 esac
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002   (eval "$ac_try") 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); }; } &&
20006          { ac_try='test -s conftest.$ac_objext'
20007   { (case "(($ac_try" in
20008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009   *) ac_try_echo=$ac_try;;
20010 esac
20011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012   (eval "$ac_try") 2>&5
20013   ac_status=$?
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); }; }; then
20016   ac_cv_type_ssize_t=yes
20017 else
20018   echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021         ac_cv_type_ssize_t=no
20022 fi
20023
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20025 fi
20026 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20027 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
20028 if test $ac_cv_type_ssize_t = yes; then
20029
20030 cat >>confdefs.h <<_ACEOF
20031 #define HAVE_SSIZE_T 1
20032 _ACEOF
20033
20034
20035 fi
20036 { echo "$as_me:$LINENO: checking for long long" >&5
20037 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20038 if test "${ac_cv_type_long_long+set}" = set; then
20039   echo $ECHO_N "(cached) $ECHO_C" >&6
20040 else
20041   cat >conftest.$ac_ext <<_ACEOF
20042 /* confdefs.h.  */
20043 _ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h.  */
20047 $ac_includes_default
20048 typedef long long ac__type_new_;
20049 int
20050 main ()
20051 {
20052 if ((ac__type_new_ *) 0)
20053   return 0;
20054 if (sizeof (ac__type_new_))
20055   return 0;
20056   ;
20057   return 0;
20058 }
20059 _ACEOF
20060 rm -f conftest.$ac_objext
20061 if { (ac_try="$ac_compile"
20062 case "(($ac_try" in
20063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20064   *) ac_try_echo=$ac_try;;
20065 esac
20066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20067   (eval "$ac_compile") 2>conftest.er1
20068   ac_status=$?
20069   grep -v '^ *+' conftest.er1 >conftest.err
20070   rm -f conftest.er1
20071   cat conftest.err >&5
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); } &&
20074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20075   { (case "(($ac_try" in
20076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077   *) ac_try_echo=$ac_try;;
20078 esac
20079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20080   (eval "$ac_try") 2>&5
20081   ac_status=$?
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); }; } &&
20084          { ac_try='test -s conftest.$ac_objext'
20085   { (case "(($ac_try" in
20086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087   *) ac_try_echo=$ac_try;;
20088 esac
20089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090   (eval "$ac_try") 2>&5
20091   ac_status=$?
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); }; }; then
20094   ac_cv_type_long_long=yes
20095 else
20096   echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099         ac_cv_type_long_long=no
20100 fi
20101
20102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20103 fi
20104 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20105 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20106 if test $ac_cv_type_long_long = yes; then
20107
20108 cat >>confdefs.h <<_ACEOF
20109 #define HAVE_LONG_LONG 1
20110 _ACEOF
20111
20112
20113 fi
20114 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
20115 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
20116 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
20117   echo $ECHO_N "(cached) $ECHO_C" >&6
20118 else
20119   cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h.  */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h.  */
20125 $ac_includes_default
20126 typedef fsblkcnt_t ac__type_new_;
20127 int
20128 main ()
20129 {
20130 if ((ac__type_new_ *) 0)
20131   return 0;
20132 if (sizeof (ac__type_new_))
20133   return 0;
20134   ;
20135   return 0;
20136 }
20137 _ACEOF
20138 rm -f conftest.$ac_objext
20139 if { (ac_try="$ac_compile"
20140 case "(($ac_try" in
20141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142   *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145   (eval "$ac_compile") 2>conftest.er1
20146   ac_status=$?
20147   grep -v '^ *+' conftest.er1 >conftest.err
20148   rm -f conftest.er1
20149   cat conftest.err >&5
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); } &&
20152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20153   { (case "(($ac_try" in
20154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155   *) ac_try_echo=$ac_try;;
20156 esac
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158   (eval "$ac_try") 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; } &&
20162          { ac_try='test -s conftest.$ac_objext'
20163   { (case "(($ac_try" in
20164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165   *) ac_try_echo=$ac_try;;
20166 esac
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168   (eval "$ac_try") 2>&5
20169   ac_status=$?
20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); }; }; then
20172   ac_cv_type_fsblkcnt_t=yes
20173 else
20174   echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20176
20177         ac_cv_type_fsblkcnt_t=no
20178 fi
20179
20180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20181 fi
20182 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
20183 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
20184 if test $ac_cv_type_fsblkcnt_t = yes; then
20185
20186 cat >>confdefs.h <<_ACEOF
20187 #define HAVE_FSBLKCNT_T 1
20188 _ACEOF
20189
20190
20191 fi
20192 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
20193 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
20194 if test "${ac_cv_type_fsfilcnt_t+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 $ac_includes_default
20204 typedef fsfilcnt_t ac__type_new_;
20205 int
20206 main ()
20207 {
20208 if ((ac__type_new_ *) 0)
20209   return 0;
20210 if (sizeof (ac__type_new_))
20211   return 0;
20212   ;
20213   return 0;
20214 }
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (ac_try="$ac_compile"
20218 case "(($ac_try" in
20219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220   *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223   (eval "$ac_compile") 2>conftest.er1
20224   ac_status=$?
20225   grep -v '^ *+' conftest.er1 >conftest.err
20226   rm -f conftest.er1
20227   cat conftest.err >&5
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } &&
20230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20231   { (case "(($ac_try" in
20232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233   *) ac_try_echo=$ac_try;;
20234 esac
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236   (eval "$ac_try") 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; } &&
20240          { ac_try='test -s conftest.$ac_objext'
20241   { (case "(($ac_try" in
20242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243   *) ac_try_echo=$ac_try;;
20244 esac
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246   (eval "$ac_try") 2>&5
20247   ac_status=$?
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); }; }; then
20250   ac_cv_type_fsfilcnt_t=yes
20251 else
20252   echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255         ac_cv_type_fsfilcnt_t=no
20256 fi
20257
20258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259 fi
20260 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
20261 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
20262 if test $ac_cv_type_fsfilcnt_t = yes; then
20263
20264 cat >>confdefs.h <<_ACEOF
20265 #define HAVE_FSFILCNT_T 1
20266 _ACEOF
20267
20268
20269 fi
20270
20271 { echo "$as_me:$LINENO: checking for sigset_t" >&5
20272 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
20273 if test "${ac_cv_type_sigset_t+set}" = set; then
20274   echo $ECHO_N "(cached) $ECHO_C" >&6
20275 else
20276   cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h.  */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h.  */
20282 #include <signal.h>
20283
20284 typedef sigset_t ac__type_new_;
20285 int
20286 main ()
20287 {
20288 if ((ac__type_new_ *) 0)
20289   return 0;
20290 if (sizeof (ac__type_new_))
20291   return 0;
20292   ;
20293   return 0;
20294 }
20295 _ACEOF
20296 rm -f conftest.$ac_objext
20297 if { (ac_try="$ac_compile"
20298 case "(($ac_try" in
20299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300   *) ac_try_echo=$ac_try;;
20301 esac
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303   (eval "$ac_compile") 2>conftest.er1
20304   ac_status=$?
20305   grep -v '^ *+' conftest.er1 >conftest.err
20306   rm -f conftest.er1
20307   cat conftest.err >&5
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); } &&
20310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20311   { (case "(($ac_try" in
20312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313   *) ac_try_echo=$ac_try;;
20314 esac
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316   (eval "$ac_try") 2>&5
20317   ac_status=$?
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); }; } &&
20320          { ac_try='test -s conftest.$ac_objext'
20321   { (case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_try") 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; }; then
20330   ac_cv_type_sigset_t=yes
20331 else
20332   echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20334
20335         ac_cv_type_sigset_t=no
20336 fi
20337
20338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20339 fi
20340 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
20341 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
20342 if test $ac_cv_type_sigset_t = yes; then
20343
20344 cat >>confdefs.h <<_ACEOF
20345 #define HAVE_SIGSET_T 1
20346 _ACEOF
20347
20348
20349 fi
20350
20351 { echo "$as_me:$LINENO: checking for request_sense" >&5
20352 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
20353 if test "${ac_cv_type_request_sense+set}" = set; then
20354   echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356   cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h.  */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h.  */
20362 #include <linux/cdrom.h>
20363
20364 typedef request_sense ac__type_new_;
20365 int
20366 main ()
20367 {
20368 if ((ac__type_new_ *) 0)
20369   return 0;
20370 if (sizeof (ac__type_new_))
20371   return 0;
20372   ;
20373   return 0;
20374 }
20375 _ACEOF
20376 rm -f conftest.$ac_objext
20377 if { (ac_try="$ac_compile"
20378 case "(($ac_try" in
20379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380   *) ac_try_echo=$ac_try;;
20381 esac
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383   (eval "$ac_compile") 2>conftest.er1
20384   ac_status=$?
20385   grep -v '^ *+' conftest.er1 >conftest.err
20386   rm -f conftest.er1
20387   cat conftest.err >&5
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); } &&
20390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20391   { (case "(($ac_try" in
20392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393   *) ac_try_echo=$ac_try;;
20394 esac
20395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396   (eval "$ac_try") 2>&5
20397   ac_status=$?
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); }; } &&
20400          { ac_try='test -s conftest.$ac_objext'
20401   { (case "(($ac_try" in
20402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403   *) ac_try_echo=$ac_try;;
20404 esac
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406   (eval "$ac_try") 2>&5
20407   ac_status=$?
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); }; }; then
20410   ac_cv_type_request_sense=yes
20411 else
20412   echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415         ac_cv_type_request_sense=no
20416 fi
20417
20418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20419 fi
20420 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
20421 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
20422 if test $ac_cv_type_request_sense = yes; then
20423
20424 cat >>confdefs.h <<_ACEOF
20425 #define HAVE_REQUEST_SENSE 1
20426 _ACEOF
20427
20428
20429 fi
20430
20431
20432 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
20433 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
20434 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
20435   echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437   cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h.  */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h.  */
20443 #ifdef HAVE_LINUX_INPUT_H
20444 #include <linux/input.h>
20445 #endif
20446
20447 int
20448 main ()
20449 {
20450 static struct ff_effect ac_aggr;
20451 if (ac_aggr.direction)
20452 return 0;
20453   ;
20454   return 0;
20455 }
20456 _ACEOF
20457 rm -f conftest.$ac_objext
20458 if { (ac_try="$ac_compile"
20459 case "(($ac_try" in
20460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461   *) ac_try_echo=$ac_try;;
20462 esac
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464   (eval "$ac_compile") 2>conftest.er1
20465   ac_status=$?
20466   grep -v '^ *+' conftest.er1 >conftest.err
20467   rm -f conftest.er1
20468   cat conftest.err >&5
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } &&
20471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20472   { (case "(($ac_try" in
20473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474   *) ac_try_echo=$ac_try;;
20475 esac
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477   (eval "$ac_try") 2>&5
20478   ac_status=$?
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); }; } &&
20481          { ac_try='test -s conftest.$ac_objext'
20482   { (case "(($ac_try" in
20483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484   *) ac_try_echo=$ac_try;;
20485 esac
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487   (eval "$ac_try") 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); }; }; then
20491   ac_cv_member_struct_ff_effect_direction=yes
20492 else
20493   echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496         cat >conftest.$ac_ext <<_ACEOF
20497 /* confdefs.h.  */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h.  */
20502 #ifdef HAVE_LINUX_INPUT_H
20503 #include <linux/input.h>
20504 #endif
20505
20506 int
20507 main ()
20508 {
20509 static struct ff_effect ac_aggr;
20510 if (sizeof ac_aggr.direction)
20511 return 0;
20512   ;
20513   return 0;
20514 }
20515 _ACEOF
20516 rm -f conftest.$ac_objext
20517 if { (ac_try="$ac_compile"
20518 case "(($ac_try" in
20519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520   *) ac_try_echo=$ac_try;;
20521 esac
20522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20523   (eval "$ac_compile") 2>conftest.er1
20524   ac_status=$?
20525   grep -v '^ *+' conftest.er1 >conftest.err
20526   rm -f conftest.er1
20527   cat conftest.err >&5
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); } &&
20530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20531   { (case "(($ac_try" in
20532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533   *) ac_try_echo=$ac_try;;
20534 esac
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536   (eval "$ac_try") 2>&5
20537   ac_status=$?
20538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539   (exit $ac_status); }; } &&
20540          { ac_try='test -s conftest.$ac_objext'
20541   { (case "(($ac_try" in
20542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543   *) ac_try_echo=$ac_try;;
20544 esac
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546   (eval "$ac_try") 2>&5
20547   ac_status=$?
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); }; }; then
20550   ac_cv_member_struct_ff_effect_direction=yes
20551 else
20552   echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555         ac_cv_member_struct_ff_effect_direction=no
20556 fi
20557
20558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20559 fi
20560
20561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20562 fi
20563 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20564 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
20565 if test $ac_cv_member_struct_ff_effect_direction = yes; then
20566
20567 cat >>confdefs.h <<_ACEOF
20568 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20569 _ACEOF
20570
20571
20572 fi
20573
20574
20575 { echo "$as_me:$LINENO: checking for sigaddset" >&5
20576 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
20577 if test "${wine_cv_have_sigaddset+set}" = set; then
20578   echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580   cat >conftest.$ac_ext <<_ACEOF
20581 /* confdefs.h.  */
20582 _ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h.  */
20586 #include <signal.h>
20587 int
20588 main ()
20589 {
20590 sigset_t set; sigaddset(&set,SIGTERM);
20591   ;
20592   return 0;
20593 }
20594 _ACEOF
20595 rm -f conftest.$ac_objext conftest$ac_exeext
20596 if { (ac_try="$ac_link"
20597 case "(($ac_try" in
20598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599   *) ac_try_echo=$ac_try;;
20600 esac
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602   (eval "$ac_link") 2>conftest.er1
20603   ac_status=$?
20604   grep -v '^ *+' conftest.er1 >conftest.err
20605   rm -f conftest.er1
20606   cat conftest.err >&5
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); } &&
20609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20610   { (case "(($ac_try" in
20611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612   *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615   (eval "$ac_try") 2>&5
20616   ac_status=$?
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); }; } &&
20619          { ac_try='test -s conftest$ac_exeext'
20620   { (case "(($ac_try" in
20621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622   *) ac_try_echo=$ac_try;;
20623 esac
20624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625   (eval "$ac_try") 2>&5
20626   ac_status=$?
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); }; }; then
20629   wine_cv_have_sigaddset=yes
20630 else
20631   echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20633
20634         wine_cv_have_sigaddset=no
20635 fi
20636
20637 rm -f core conftest.err conftest.$ac_objext \
20638       conftest$ac_exeext conftest.$ac_ext
20639 fi
20640 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20641 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
20642 if test "$wine_cv_have_sigaddset" = "yes"
20643 then
20644
20645 cat >>confdefs.h <<\_ACEOF
20646 #define HAVE_SIGADDSET 1
20647 _ACEOF
20648
20649 fi
20650
20651
20652 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20653 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
20654 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20655   echo $ECHO_N "(cached) $ECHO_C" >&6
20656 else
20657   cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h.  */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h.  */
20663
20664 #include <netdb.h>
20665
20666 int
20667 main ()
20668 {
20669
20670     char *name=NULL;
20671     struct hostent he;
20672     struct hostent *result;
20673     char *buf=NULL;
20674     int bufsize=0;
20675     int res,errnr;
20676     char *addr=NULL;
20677     int addrlen=0;
20678     int addrtype=0;
20679     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20680     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
20681
20682   ;
20683   return 0;
20684 }
20685 _ACEOF
20686 rm -f conftest.$ac_objext conftest$ac_exeext
20687 if { (ac_try="$ac_link"
20688 case "(($ac_try" in
20689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690   *) ac_try_echo=$ac_try;;
20691 esac
20692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693   (eval "$ac_link") 2>conftest.er1
20694   ac_status=$?
20695   grep -v '^ *+' conftest.er1 >conftest.err
20696   rm -f conftest.er1
20697   cat conftest.err >&5
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); } &&
20700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20701   { (case "(($ac_try" in
20702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703   *) ac_try_echo=$ac_try;;
20704 esac
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706   (eval "$ac_try") 2>&5
20707   ac_status=$?
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); }; } &&
20710          { ac_try='test -s conftest$ac_exeext'
20711   { (case "(($ac_try" in
20712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713   *) ac_try_echo=$ac_try;;
20714 esac
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716   (eval "$ac_try") 2>&5
20717   ac_status=$?
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); }; }; then
20720   wine_cv_linux_gethostbyname_r_6=yes
20721 else
20722   echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725         wine_cv_linux_gethostbyname_r_6=no
20726
20727 fi
20728
20729 rm -f core conftest.err conftest.$ac_objext \
20730       conftest$ac_exeext conftest.$ac_ext
20731
20732 fi
20733 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20734 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
20735    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20736    then
20737
20738 cat >>confdefs.h <<\_ACEOF
20739 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
20740 _ACEOF
20741
20742    fi
20743
20744 if test "$ac_cv_header_linux_joystick_h" = "yes"
20745 then
20746    { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20747 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
20748 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20749   echo $ECHO_N "(cached) $ECHO_C" >&6
20750 else
20751   cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h.  */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h.  */
20757
20758         #include <sys/ioctl.h>
20759         #include <linux/joystick.h>
20760
20761         struct js_event blub;
20762         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20763         #error "no 2.2 header"
20764         #endif
20765
20766 int
20767 main ()
20768 {
20769 /*empty*/
20770   ;
20771   return 0;
20772 }
20773 _ACEOF
20774 rm -f conftest.$ac_objext
20775 if { (ac_try="$ac_compile"
20776 case "(($ac_try" in
20777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778   *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781   (eval "$ac_compile") 2>conftest.er1
20782   ac_status=$?
20783   grep -v '^ *+' conftest.er1 >conftest.err
20784   rm -f conftest.er1
20785   cat conftest.err >&5
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); } &&
20788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20789   { (case "(($ac_try" in
20790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791   *) ac_try_echo=$ac_try;;
20792 esac
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794   (eval "$ac_try") 2>&5
20795   ac_status=$?
20796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); }; } &&
20798          { ac_try='test -s conftest.$ac_objext'
20799   { (case "(($ac_try" in
20800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801   *) ac_try_echo=$ac_try;;
20802 esac
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804   (eval "$ac_try") 2>&5
20805   ac_status=$?
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); }; }; then
20808   wine_cv_linux_joystick_22_api=yes
20809 else
20810   echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20812
20813         wine_cv_linux_joystick_22_api=no
20814 fi
20815
20816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817
20818 fi
20819 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20820 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
20821    if test "$wine_cv_linux_joystick_22_api" = "yes"
20822    then
20823
20824 cat >>confdefs.h <<\_ACEOF
20825 #define HAVE_LINUX_22_JOYSTICK_API 1
20826 _ACEOF
20827
20828    fi
20829 fi
20830
20831
20832 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20833 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
20834 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
20835   echo $ECHO_N "(cached) $ECHO_C" >&6
20836 else
20837   cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h.  */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h.  */
20843 #include <sys/types.h>
20844 #ifdef HAVE_SYS_PARAM_H
20845 # include <sys/param.h>
20846 #endif
20847 #ifdef HAVE_SYS_MOUNT_H
20848 # include <sys/mount.h>
20849 #endif
20850 #ifdef HAVE_SYS_VFS_H
20851 # include <sys/vfs.h>
20852 #endif
20853 #ifdef HAVE_SYS_STATFS_H
20854 # include <sys/statfs.h>
20855 #endif
20856
20857 int
20858 main ()
20859 {
20860 static struct statfs ac_aggr;
20861 if (ac_aggr.f_bfree)
20862 return 0;
20863   ;
20864   return 0;
20865 }
20866 _ACEOF
20867 rm -f conftest.$ac_objext
20868 if { (ac_try="$ac_compile"
20869 case "(($ac_try" in
20870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871   *) ac_try_echo=$ac_try;;
20872 esac
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874   (eval "$ac_compile") 2>conftest.er1
20875   ac_status=$?
20876   grep -v '^ *+' conftest.er1 >conftest.err
20877   rm -f conftest.er1
20878   cat conftest.err >&5
20879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880   (exit $ac_status); } &&
20881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20882   { (case "(($ac_try" in
20883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884   *) ac_try_echo=$ac_try;;
20885 esac
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887   (eval "$ac_try") 2>&5
20888   ac_status=$?
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); }; } &&
20891          { ac_try='test -s conftest.$ac_objext'
20892   { (case "(($ac_try" in
20893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894   *) ac_try_echo=$ac_try;;
20895 esac
20896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897   (eval "$ac_try") 2>&5
20898   ac_status=$?
20899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900   (exit $ac_status); }; }; then
20901   ac_cv_member_struct_statfs_f_bfree=yes
20902 else
20903   echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20905
20906         cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h.  */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h.  */
20912 #include <sys/types.h>
20913 #ifdef HAVE_SYS_PARAM_H
20914 # include <sys/param.h>
20915 #endif
20916 #ifdef HAVE_SYS_MOUNT_H
20917 # include <sys/mount.h>
20918 #endif
20919 #ifdef HAVE_SYS_VFS_H
20920 # include <sys/vfs.h>
20921 #endif
20922 #ifdef HAVE_SYS_STATFS_H
20923 # include <sys/statfs.h>
20924 #endif
20925
20926 int
20927 main ()
20928 {
20929 static struct statfs ac_aggr;
20930 if (sizeof ac_aggr.f_bfree)
20931 return 0;
20932   ;
20933   return 0;
20934 }
20935 _ACEOF
20936 rm -f conftest.$ac_objext
20937 if { (ac_try="$ac_compile"
20938 case "(($ac_try" in
20939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940   *) ac_try_echo=$ac_try;;
20941 esac
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943   (eval "$ac_compile") 2>conftest.er1
20944   ac_status=$?
20945   grep -v '^ *+' conftest.er1 >conftest.err
20946   rm -f conftest.er1
20947   cat conftest.err >&5
20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949   (exit $ac_status); } &&
20950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20951   { (case "(($ac_try" in
20952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953   *) ac_try_echo=$ac_try;;
20954 esac
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956   (eval "$ac_try") 2>&5
20957   ac_status=$?
20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); }; } &&
20960          { ac_try='test -s conftest.$ac_objext'
20961   { (case "(($ac_try" in
20962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963   *) ac_try_echo=$ac_try;;
20964 esac
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966   (eval "$ac_try") 2>&5
20967   ac_status=$?
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); }; }; then
20970   ac_cv_member_struct_statfs_f_bfree=yes
20971 else
20972   echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20974
20975         ac_cv_member_struct_statfs_f_bfree=no
20976 fi
20977
20978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20979 fi
20980
20981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20982 fi
20983 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
20984 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
20985 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
20986
20987 cat >>confdefs.h <<_ACEOF
20988 #define HAVE_STRUCT_STATFS_F_BFREE 1
20989 _ACEOF
20990
20991
20992 fi
20993 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
20994 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
20995 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
20996   echo $ECHO_N "(cached) $ECHO_C" >&6
20997 else
20998   cat >conftest.$ac_ext <<_ACEOF
20999 /* confdefs.h.  */
21000 _ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h.  */
21004 #include <sys/types.h>
21005 #ifdef HAVE_SYS_PARAM_H
21006 # include <sys/param.h>
21007 #endif
21008 #ifdef HAVE_SYS_MOUNT_H
21009 # include <sys/mount.h>
21010 #endif
21011 #ifdef HAVE_SYS_VFS_H
21012 # include <sys/vfs.h>
21013 #endif
21014 #ifdef HAVE_SYS_STATFS_H
21015 # include <sys/statfs.h>
21016 #endif
21017
21018 int
21019 main ()
21020 {
21021 static struct statfs ac_aggr;
21022 if (ac_aggr.f_bavail)
21023 return 0;
21024   ;
21025   return 0;
21026 }
21027 _ACEOF
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
21030 case "(($ac_try" in
21031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032   *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035   (eval "$ac_compile") 2>conftest.er1
21036   ac_status=$?
21037   grep -v '^ *+' conftest.er1 >conftest.err
21038   rm -f conftest.er1
21039   cat conftest.err >&5
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); } &&
21042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21043   { (case "(($ac_try" in
21044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045   *) ac_try_echo=$ac_try;;
21046 esac
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048   (eval "$ac_try") 2>&5
21049   ac_status=$?
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); }; } &&
21052          { ac_try='test -s conftest.$ac_objext'
21053   { (case "(($ac_try" in
21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055   *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058   (eval "$ac_try") 2>&5
21059   ac_status=$?
21060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); }; }; then
21062   ac_cv_member_struct_statfs_f_bavail=yes
21063 else
21064   echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067         cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h.  */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h.  */
21073 #include <sys/types.h>
21074 #ifdef HAVE_SYS_PARAM_H
21075 # include <sys/param.h>
21076 #endif
21077 #ifdef HAVE_SYS_MOUNT_H
21078 # include <sys/mount.h>
21079 #endif
21080 #ifdef HAVE_SYS_VFS_H
21081 # include <sys/vfs.h>
21082 #endif
21083 #ifdef HAVE_SYS_STATFS_H
21084 # include <sys/statfs.h>
21085 #endif
21086
21087 int
21088 main ()
21089 {
21090 static struct statfs ac_aggr;
21091 if (sizeof ac_aggr.f_bavail)
21092 return 0;
21093   ;
21094   return 0;
21095 }
21096 _ACEOF
21097 rm -f conftest.$ac_objext
21098 if { (ac_try="$ac_compile"
21099 case "(($ac_try" in
21100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21101   *) ac_try_echo=$ac_try;;
21102 esac
21103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21104   (eval "$ac_compile") 2>conftest.er1
21105   ac_status=$?
21106   grep -v '^ *+' conftest.er1 >conftest.err
21107   rm -f conftest.er1
21108   cat conftest.err >&5
21109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110   (exit $ac_status); } &&
21111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21112   { (case "(($ac_try" in
21113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114   *) ac_try_echo=$ac_try;;
21115 esac
21116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117   (eval "$ac_try") 2>&5
21118   ac_status=$?
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); }; } &&
21121          { ac_try='test -s conftest.$ac_objext'
21122   { (case "(($ac_try" in
21123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124   *) ac_try_echo=$ac_try;;
21125 esac
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127   (eval "$ac_try") 2>&5
21128   ac_status=$?
21129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130   (exit $ac_status); }; }; then
21131   ac_cv_member_struct_statfs_f_bavail=yes
21132 else
21133   echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21135
21136         ac_cv_member_struct_statfs_f_bavail=no
21137 fi
21138
21139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21140 fi
21141
21142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21143 fi
21144 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
21145 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
21146 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
21147
21148 cat >>confdefs.h <<_ACEOF
21149 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
21150 _ACEOF
21151
21152
21153 fi
21154 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
21155 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
21156 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
21157   echo $ECHO_N "(cached) $ECHO_C" >&6
21158 else
21159   cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h.  */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h.  */
21165 #include <sys/types.h>
21166 #ifdef HAVE_SYS_PARAM_H
21167 # include <sys/param.h>
21168 #endif
21169 #ifdef HAVE_SYS_MOUNT_H
21170 # include <sys/mount.h>
21171 #endif
21172 #ifdef HAVE_SYS_VFS_H
21173 # include <sys/vfs.h>
21174 #endif
21175 #ifdef HAVE_SYS_STATFS_H
21176 # include <sys/statfs.h>
21177 #endif
21178
21179 int
21180 main ()
21181 {
21182 static struct statfs ac_aggr;
21183 if (ac_aggr.f_frsize)
21184 return 0;
21185   ;
21186   return 0;
21187 }
21188 _ACEOF
21189 rm -f conftest.$ac_objext
21190 if { (ac_try="$ac_compile"
21191 case "(($ac_try" in
21192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193   *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196   (eval "$ac_compile") 2>conftest.er1
21197   ac_status=$?
21198   grep -v '^ *+' conftest.er1 >conftest.err
21199   rm -f conftest.er1
21200   cat conftest.err >&5
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); } &&
21203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21204   { (case "(($ac_try" in
21205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206   *) ac_try_echo=$ac_try;;
21207 esac
21208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21209   (eval "$ac_try") 2>&5
21210   ac_status=$?
21211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212   (exit $ac_status); }; } &&
21213          { ac_try='test -s conftest.$ac_objext'
21214   { (case "(($ac_try" in
21215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216   *) ac_try_echo=$ac_try;;
21217 esac
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219   (eval "$ac_try") 2>&5
21220   ac_status=$?
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); }; }; then
21223   ac_cv_member_struct_statfs_f_frsize=yes
21224 else
21225   echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228         cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h.  */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h.  */
21234 #include <sys/types.h>
21235 #ifdef HAVE_SYS_PARAM_H
21236 # include <sys/param.h>
21237 #endif
21238 #ifdef HAVE_SYS_MOUNT_H
21239 # include <sys/mount.h>
21240 #endif
21241 #ifdef HAVE_SYS_VFS_H
21242 # include <sys/vfs.h>
21243 #endif
21244 #ifdef HAVE_SYS_STATFS_H
21245 # include <sys/statfs.h>
21246 #endif
21247
21248 int
21249 main ()
21250 {
21251 static struct statfs ac_aggr;
21252 if (sizeof ac_aggr.f_frsize)
21253 return 0;
21254   ;
21255   return 0;
21256 }
21257 _ACEOF
21258 rm -f conftest.$ac_objext
21259 if { (ac_try="$ac_compile"
21260 case "(($ac_try" in
21261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262   *) ac_try_echo=$ac_try;;
21263 esac
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265   (eval "$ac_compile") 2>conftest.er1
21266   ac_status=$?
21267   grep -v '^ *+' conftest.er1 >conftest.err
21268   rm -f conftest.er1
21269   cat conftest.err >&5
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); } &&
21272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21273   { (case "(($ac_try" in
21274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275   *) ac_try_echo=$ac_try;;
21276 esac
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278   (eval "$ac_try") 2>&5
21279   ac_status=$?
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); }; } &&
21282          { ac_try='test -s conftest.$ac_objext'
21283   { (case "(($ac_try" in
21284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285   *) ac_try_echo=$ac_try;;
21286 esac
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288   (eval "$ac_try") 2>&5
21289   ac_status=$?
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); }; }; then
21292   ac_cv_member_struct_statfs_f_frsize=yes
21293 else
21294   echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21296
21297         ac_cv_member_struct_statfs_f_frsize=no
21298 fi
21299
21300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21301 fi
21302
21303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21304 fi
21305 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
21306 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
21307 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
21308
21309 cat >>confdefs.h <<_ACEOF
21310 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
21311 _ACEOF
21312
21313
21314 fi
21315 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
21316 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
21317 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
21318   echo $ECHO_N "(cached) $ECHO_C" >&6
21319 else
21320   cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h.  */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h.  */
21326 #include <sys/types.h>
21327 #ifdef HAVE_SYS_PARAM_H
21328 # include <sys/param.h>
21329 #endif
21330 #ifdef HAVE_SYS_MOUNT_H
21331 # include <sys/mount.h>
21332 #endif
21333 #ifdef HAVE_SYS_VFS_H
21334 # include <sys/vfs.h>
21335 #endif
21336 #ifdef HAVE_SYS_STATFS_H
21337 # include <sys/statfs.h>
21338 #endif
21339
21340 int
21341 main ()
21342 {
21343 static struct statfs ac_aggr;
21344 if (ac_aggr.f_ffree)
21345 return 0;
21346   ;
21347   return 0;
21348 }
21349 _ACEOF
21350 rm -f conftest.$ac_objext
21351 if { (ac_try="$ac_compile"
21352 case "(($ac_try" in
21353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354   *) ac_try_echo=$ac_try;;
21355 esac
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357   (eval "$ac_compile") 2>conftest.er1
21358   ac_status=$?
21359   grep -v '^ *+' conftest.er1 >conftest.err
21360   rm -f conftest.er1
21361   cat conftest.err >&5
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); } &&
21364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21365   { (case "(($ac_try" in
21366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367   *) ac_try_echo=$ac_try;;
21368 esac
21369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21370   (eval "$ac_try") 2>&5
21371   ac_status=$?
21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); }; } &&
21374          { ac_try='test -s conftest.$ac_objext'
21375   { (case "(($ac_try" in
21376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377   *) ac_try_echo=$ac_try;;
21378 esac
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380   (eval "$ac_try") 2>&5
21381   ac_status=$?
21382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383   (exit $ac_status); }; }; then
21384   ac_cv_member_struct_statfs_f_ffree=yes
21385 else
21386   echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21388
21389         cat >conftest.$ac_ext <<_ACEOF
21390 /* confdefs.h.  */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h.  */
21395 #include <sys/types.h>
21396 #ifdef HAVE_SYS_PARAM_H
21397 # include <sys/param.h>
21398 #endif
21399 #ifdef HAVE_SYS_MOUNT_H
21400 # include <sys/mount.h>
21401 #endif
21402 #ifdef HAVE_SYS_VFS_H
21403 # include <sys/vfs.h>
21404 #endif
21405 #ifdef HAVE_SYS_STATFS_H
21406 # include <sys/statfs.h>
21407 #endif
21408
21409 int
21410 main ()
21411 {
21412 static struct statfs ac_aggr;
21413 if (sizeof ac_aggr.f_ffree)
21414 return 0;
21415   ;
21416   return 0;
21417 }
21418 _ACEOF
21419 rm -f conftest.$ac_objext
21420 if { (ac_try="$ac_compile"
21421 case "(($ac_try" in
21422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423   *) ac_try_echo=$ac_try;;
21424 esac
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426   (eval "$ac_compile") 2>conftest.er1
21427   ac_status=$?
21428   grep -v '^ *+' conftest.er1 >conftest.err
21429   rm -f conftest.er1
21430   cat conftest.err >&5
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } &&
21433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21434   { (case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_try") 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); }; } &&
21443          { ac_try='test -s conftest.$ac_objext'
21444   { (case "(($ac_try" in
21445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446   *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449   (eval "$ac_try") 2>&5
21450   ac_status=$?
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); }; }; then
21453   ac_cv_member_struct_statfs_f_ffree=yes
21454 else
21455   echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458         ac_cv_member_struct_statfs_f_ffree=no
21459 fi
21460
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462 fi
21463
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465 fi
21466 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21467 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
21468 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21469
21470 cat >>confdefs.h <<_ACEOF
21471 #define HAVE_STRUCT_STATFS_F_FFREE 1
21472 _ACEOF
21473
21474
21475 fi
21476 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21477 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
21478 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21479   echo $ECHO_N "(cached) $ECHO_C" >&6
21480 else
21481   cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487 #include <sys/types.h>
21488 #ifdef HAVE_SYS_PARAM_H
21489 # include <sys/param.h>
21490 #endif
21491 #ifdef HAVE_SYS_MOUNT_H
21492 # include <sys/mount.h>
21493 #endif
21494 #ifdef HAVE_SYS_VFS_H
21495 # include <sys/vfs.h>
21496 #endif
21497 #ifdef HAVE_SYS_STATFS_H
21498 # include <sys/statfs.h>
21499 #endif
21500
21501 int
21502 main ()
21503 {
21504 static struct statfs ac_aggr;
21505 if (ac_aggr.f_favail)
21506 return 0;
21507   ;
21508   return 0;
21509 }
21510 _ACEOF
21511 rm -f conftest.$ac_objext
21512 if { (ac_try="$ac_compile"
21513 case "(($ac_try" in
21514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515   *) ac_try_echo=$ac_try;;
21516 esac
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518   (eval "$ac_compile") 2>conftest.er1
21519   ac_status=$?
21520   grep -v '^ *+' conftest.er1 >conftest.err
21521   rm -f conftest.er1
21522   cat conftest.err >&5
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); } &&
21525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21526   { (case "(($ac_try" in
21527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528   *) ac_try_echo=$ac_try;;
21529 esac
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531   (eval "$ac_try") 2>&5
21532   ac_status=$?
21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534   (exit $ac_status); }; } &&
21535          { ac_try='test -s conftest.$ac_objext'
21536   { (case "(($ac_try" in
21537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21538   *) ac_try_echo=$ac_try;;
21539 esac
21540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21541   (eval "$ac_try") 2>&5
21542   ac_status=$?
21543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544   (exit $ac_status); }; }; then
21545   ac_cv_member_struct_statfs_f_favail=yes
21546 else
21547   echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21549
21550         cat >conftest.$ac_ext <<_ACEOF
21551 /* confdefs.h.  */
21552 _ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h.  */
21556 #include <sys/types.h>
21557 #ifdef HAVE_SYS_PARAM_H
21558 # include <sys/param.h>
21559 #endif
21560 #ifdef HAVE_SYS_MOUNT_H
21561 # include <sys/mount.h>
21562 #endif
21563 #ifdef HAVE_SYS_VFS_H
21564 # include <sys/vfs.h>
21565 #endif
21566 #ifdef HAVE_SYS_STATFS_H
21567 # include <sys/statfs.h>
21568 #endif
21569
21570 int
21571 main ()
21572 {
21573 static struct statfs ac_aggr;
21574 if (sizeof ac_aggr.f_favail)
21575 return 0;
21576   ;
21577   return 0;
21578 }
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (ac_try="$ac_compile"
21582 case "(($ac_try" in
21583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584   *) ac_try_echo=$ac_try;;
21585 esac
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587   (eval "$ac_compile") 2>conftest.er1
21588   ac_status=$?
21589   grep -v '^ *+' conftest.er1 >conftest.err
21590   rm -f conftest.er1
21591   cat conftest.err >&5
21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593   (exit $ac_status); } &&
21594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21595   { (case "(($ac_try" in
21596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597   *) ac_try_echo=$ac_try;;
21598 esac
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600   (eval "$ac_try") 2>&5
21601   ac_status=$?
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); }; } &&
21604          { ac_try='test -s conftest.$ac_objext'
21605   { (case "(($ac_try" in
21606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607   *) ac_try_echo=$ac_try;;
21608 esac
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610   (eval "$ac_try") 2>&5
21611   ac_status=$?
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); }; }; then
21614   ac_cv_member_struct_statfs_f_favail=yes
21615 else
21616   echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21618
21619         ac_cv_member_struct_statfs_f_favail=no
21620 fi
21621
21622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21623 fi
21624
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21626 fi
21627 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21628 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
21629 if test $ac_cv_member_struct_statfs_f_favail = yes; then
21630
21631 cat >>confdefs.h <<_ACEOF
21632 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
21633 _ACEOF
21634
21635
21636 fi
21637 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21638 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
21639 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21640   echo $ECHO_N "(cached) $ECHO_C" >&6
21641 else
21642   cat >conftest.$ac_ext <<_ACEOF
21643 /* confdefs.h.  */
21644 _ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h.  */
21648 #include <sys/types.h>
21649 #ifdef HAVE_SYS_PARAM_H
21650 # include <sys/param.h>
21651 #endif
21652 #ifdef HAVE_SYS_MOUNT_H
21653 # include <sys/mount.h>
21654 #endif
21655 #ifdef HAVE_SYS_VFS_H
21656 # include <sys/vfs.h>
21657 #endif
21658 #ifdef HAVE_SYS_STATFS_H
21659 # include <sys/statfs.h>
21660 #endif
21661
21662 int
21663 main ()
21664 {
21665 static struct statfs ac_aggr;
21666 if (ac_aggr.f_namelen)
21667 return 0;
21668   ;
21669   return 0;
21670 }
21671 _ACEOF
21672 rm -f conftest.$ac_objext
21673 if { (ac_try="$ac_compile"
21674 case "(($ac_try" in
21675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676   *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679   (eval "$ac_compile") 2>conftest.er1
21680   ac_status=$?
21681   grep -v '^ *+' conftest.er1 >conftest.err
21682   rm -f conftest.er1
21683   cat conftest.err >&5
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } &&
21686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21687   { (case "(($ac_try" in
21688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689   *) ac_try_echo=$ac_try;;
21690 esac
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692   (eval "$ac_try") 2>&5
21693   ac_status=$?
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); }; } &&
21696          { ac_try='test -s conftest.$ac_objext'
21697   { (case "(($ac_try" in
21698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699   *) ac_try_echo=$ac_try;;
21700 esac
21701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702   (eval "$ac_try") 2>&5
21703   ac_status=$?
21704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705   (exit $ac_status); }; }; then
21706   ac_cv_member_struct_statfs_f_namelen=yes
21707 else
21708   echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21710
21711         cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h.  */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h.  */
21717 #include <sys/types.h>
21718 #ifdef HAVE_SYS_PARAM_H
21719 # include <sys/param.h>
21720 #endif
21721 #ifdef HAVE_SYS_MOUNT_H
21722 # include <sys/mount.h>
21723 #endif
21724 #ifdef HAVE_SYS_VFS_H
21725 # include <sys/vfs.h>
21726 #endif
21727 #ifdef HAVE_SYS_STATFS_H
21728 # include <sys/statfs.h>
21729 #endif
21730
21731 int
21732 main ()
21733 {
21734 static struct statfs ac_aggr;
21735 if (sizeof ac_aggr.f_namelen)
21736 return 0;
21737   ;
21738   return 0;
21739 }
21740 _ACEOF
21741 rm -f conftest.$ac_objext
21742 if { (ac_try="$ac_compile"
21743 case "(($ac_try" in
21744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745   *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748   (eval "$ac_compile") 2>conftest.er1
21749   ac_status=$?
21750   grep -v '^ *+' conftest.er1 >conftest.err
21751   rm -f conftest.er1
21752   cat conftest.err >&5
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); } &&
21755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21756   { (case "(($ac_try" in
21757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758   *) ac_try_echo=$ac_try;;
21759 esac
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761   (eval "$ac_try") 2>&5
21762   ac_status=$?
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); }; } &&
21765          { ac_try='test -s conftest.$ac_objext'
21766   { (case "(($ac_try" in
21767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21768   *) ac_try_echo=$ac_try;;
21769 esac
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771   (eval "$ac_try") 2>&5
21772   ac_status=$?
21773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); }; }; then
21775   ac_cv_member_struct_statfs_f_namelen=yes
21776 else
21777   echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21779
21780         ac_cv_member_struct_statfs_f_namelen=no
21781 fi
21782
21783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21784 fi
21785
21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787 fi
21788 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21789 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
21790 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21791
21792 cat >>confdefs.h <<_ACEOF
21793 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
21794 _ACEOF
21795
21796
21797 fi
21798
21799
21800 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21801 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
21802 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21803   echo $ECHO_N "(cached) $ECHO_C" >&6
21804 else
21805   cat >conftest.$ac_ext <<_ACEOF
21806 /* confdefs.h.  */
21807 _ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h.  */
21811 #ifdef HAVE_SYS_STATVFS_H
21812 #include <sys/statvfs.h>
21813 #endif
21814
21815 int
21816 main ()
21817 {
21818 static struct statvfs ac_aggr;
21819 if (ac_aggr.f_blocks)
21820 return 0;
21821   ;
21822   return 0;
21823 }
21824 _ACEOF
21825 rm -f conftest.$ac_objext
21826 if { (ac_try="$ac_compile"
21827 case "(($ac_try" in
21828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829   *) ac_try_echo=$ac_try;;
21830 esac
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832   (eval "$ac_compile") 2>conftest.er1
21833   ac_status=$?
21834   grep -v '^ *+' conftest.er1 >conftest.err
21835   rm -f conftest.er1
21836   cat conftest.err >&5
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); } &&
21839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21840   { (case "(($ac_try" in
21841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842   *) ac_try_echo=$ac_try;;
21843 esac
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845   (eval "$ac_try") 2>&5
21846   ac_status=$?
21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848   (exit $ac_status); }; } &&
21849          { ac_try='test -s conftest.$ac_objext'
21850   { (case "(($ac_try" in
21851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852   *) ac_try_echo=$ac_try;;
21853 esac
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855   (eval "$ac_try") 2>&5
21856   ac_status=$?
21857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858   (exit $ac_status); }; }; then
21859   ac_cv_member_struct_statvfs_f_blocks=yes
21860 else
21861   echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21863
21864         cat >conftest.$ac_ext <<_ACEOF
21865 /* confdefs.h.  */
21866 _ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h.  */
21870 #ifdef HAVE_SYS_STATVFS_H
21871 #include <sys/statvfs.h>
21872 #endif
21873
21874 int
21875 main ()
21876 {
21877 static struct statvfs ac_aggr;
21878 if (sizeof ac_aggr.f_blocks)
21879 return 0;
21880   ;
21881   return 0;
21882 }
21883 _ACEOF
21884 rm -f conftest.$ac_objext
21885 if { (ac_try="$ac_compile"
21886 case "(($ac_try" in
21887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888   *) ac_try_echo=$ac_try;;
21889 esac
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891   (eval "$ac_compile") 2>conftest.er1
21892   ac_status=$?
21893   grep -v '^ *+' conftest.er1 >conftest.err
21894   rm -f conftest.er1
21895   cat conftest.err >&5
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); } &&
21898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21899   { (case "(($ac_try" in
21900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901   *) ac_try_echo=$ac_try;;
21902 esac
21903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904   (eval "$ac_try") 2>&5
21905   ac_status=$?
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); }; } &&
21908          { ac_try='test -s conftest.$ac_objext'
21909   { (case "(($ac_try" in
21910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911   *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914   (eval "$ac_try") 2>&5
21915   ac_status=$?
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); }; }; then
21918   ac_cv_member_struct_statvfs_f_blocks=yes
21919 else
21920   echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923         ac_cv_member_struct_statvfs_f_blocks=no
21924 fi
21925
21926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21927 fi
21928
21929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930 fi
21931 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
21932 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
21933 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
21934
21935 cat >>confdefs.h <<_ACEOF
21936 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
21937 _ACEOF
21938
21939
21940 fi
21941
21942
21943 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
21944 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
21945 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
21946   echo $ECHO_N "(cached) $ECHO_C" >&6
21947 else
21948   cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h.  */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h.  */
21954 #include <sys/types.h>
21955 #ifdef HAVE_SYS_SOCKET_H
21956 # include <sys/socket.h>
21957 #endif
21958 #ifdef HAVE_SYS_UN_H
21959 # include <sys/un.h>
21960 #endif
21961
21962 int
21963 main ()
21964 {
21965 static struct msghdr ac_aggr;
21966 if (ac_aggr.msg_accrights)
21967 return 0;
21968   ;
21969   return 0;
21970 }
21971 _ACEOF
21972 rm -f conftest.$ac_objext
21973 if { (ac_try="$ac_compile"
21974 case "(($ac_try" in
21975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976   *) ac_try_echo=$ac_try;;
21977 esac
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979   (eval "$ac_compile") 2>conftest.er1
21980   ac_status=$?
21981   grep -v '^ *+' conftest.er1 >conftest.err
21982   rm -f conftest.er1
21983   cat conftest.err >&5
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); } &&
21986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21987   { (case "(($ac_try" in
21988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989   *) ac_try_echo=$ac_try;;
21990 esac
21991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992   (eval "$ac_try") 2>&5
21993   ac_status=$?
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); }; } &&
21996          { ac_try='test -s conftest.$ac_objext'
21997   { (case "(($ac_try" in
21998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999   *) ac_try_echo=$ac_try;;
22000 esac
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002   (eval "$ac_try") 2>&5
22003   ac_status=$?
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); }; }; then
22006   ac_cv_member_struct_msghdr_msg_accrights=yes
22007 else
22008   echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22010
22011         cat >conftest.$ac_ext <<_ACEOF
22012 /* confdefs.h.  */
22013 _ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h.  */
22017 #include <sys/types.h>
22018 #ifdef HAVE_SYS_SOCKET_H
22019 # include <sys/socket.h>
22020 #endif
22021 #ifdef HAVE_SYS_UN_H
22022 # include <sys/un.h>
22023 #endif
22024
22025 int
22026 main ()
22027 {
22028 static struct msghdr ac_aggr;
22029 if (sizeof ac_aggr.msg_accrights)
22030 return 0;
22031   ;
22032   return 0;
22033 }
22034 _ACEOF
22035 rm -f conftest.$ac_objext
22036 if { (ac_try="$ac_compile"
22037 case "(($ac_try" in
22038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039   *) ac_try_echo=$ac_try;;
22040 esac
22041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22042   (eval "$ac_compile") 2>conftest.er1
22043   ac_status=$?
22044   grep -v '^ *+' conftest.er1 >conftest.err
22045   rm -f conftest.er1
22046   cat conftest.err >&5
22047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048   (exit $ac_status); } &&
22049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22050   { (case "(($ac_try" in
22051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052   *) ac_try_echo=$ac_try;;
22053 esac
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055   (eval "$ac_try") 2>&5
22056   ac_status=$?
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); }; } &&
22059          { ac_try='test -s conftest.$ac_objext'
22060   { (case "(($ac_try" in
22061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062   *) ac_try_echo=$ac_try;;
22063 esac
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065   (eval "$ac_try") 2>&5
22066   ac_status=$?
22067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068   (exit $ac_status); }; }; then
22069   ac_cv_member_struct_msghdr_msg_accrights=yes
22070 else
22071   echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22073
22074         ac_cv_member_struct_msghdr_msg_accrights=no
22075 fi
22076
22077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22078 fi
22079
22080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 fi
22082 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
22083 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
22084 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
22085
22086 cat >>confdefs.h <<_ACEOF
22087 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
22088 _ACEOF
22089
22090
22091 fi
22092 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22093 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
22094 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22095   echo $ECHO_N "(cached) $ECHO_C" >&6
22096 else
22097   cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h.  */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h.  */
22103 #include <sys/types.h>
22104 #ifdef HAVE_SYS_SOCKET_H
22105 # include <sys/socket.h>
22106 #endif
22107 #ifdef HAVE_SYS_UN_H
22108 # include <sys/un.h>
22109 #endif
22110
22111 int
22112 main ()
22113 {
22114 static struct sockaddr ac_aggr;
22115 if (ac_aggr.sa_len)
22116 return 0;
22117   ;
22118   return 0;
22119 }
22120 _ACEOF
22121 rm -f conftest.$ac_objext
22122 if { (ac_try="$ac_compile"
22123 case "(($ac_try" in
22124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125   *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128   (eval "$ac_compile") 2>conftest.er1
22129   ac_status=$?
22130   grep -v '^ *+' conftest.er1 >conftest.err
22131   rm -f conftest.er1
22132   cat conftest.err >&5
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); } &&
22135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22136   { (case "(($ac_try" in
22137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138   *) ac_try_echo=$ac_try;;
22139 esac
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141   (eval "$ac_try") 2>&5
22142   ac_status=$?
22143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144   (exit $ac_status); }; } &&
22145          { ac_try='test -s conftest.$ac_objext'
22146   { (case "(($ac_try" in
22147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148   *) ac_try_echo=$ac_try;;
22149 esac
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151   (eval "$ac_try") 2>&5
22152   ac_status=$?
22153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154   (exit $ac_status); }; }; then
22155   ac_cv_member_struct_sockaddr_sa_len=yes
22156 else
22157   echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22159
22160         cat >conftest.$ac_ext <<_ACEOF
22161 /* confdefs.h.  */
22162 _ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h.  */
22166 #include <sys/types.h>
22167 #ifdef HAVE_SYS_SOCKET_H
22168 # include <sys/socket.h>
22169 #endif
22170 #ifdef HAVE_SYS_UN_H
22171 # include <sys/un.h>
22172 #endif
22173
22174 int
22175 main ()
22176 {
22177 static struct sockaddr ac_aggr;
22178 if (sizeof ac_aggr.sa_len)
22179 return 0;
22180   ;
22181   return 0;
22182 }
22183 _ACEOF
22184 rm -f conftest.$ac_objext
22185 if { (ac_try="$ac_compile"
22186 case "(($ac_try" in
22187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188   *) ac_try_echo=$ac_try;;
22189 esac
22190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191   (eval "$ac_compile") 2>conftest.er1
22192   ac_status=$?
22193   grep -v '^ *+' conftest.er1 >conftest.err
22194   rm -f conftest.er1
22195   cat conftest.err >&5
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); } &&
22198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22199   { (case "(($ac_try" in
22200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201   *) ac_try_echo=$ac_try;;
22202 esac
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204   (eval "$ac_try") 2>&5
22205   ac_status=$?
22206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207   (exit $ac_status); }; } &&
22208          { ac_try='test -s conftest.$ac_objext'
22209   { (case "(($ac_try" in
22210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211   *) ac_try_echo=$ac_try;;
22212 esac
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214   (eval "$ac_try") 2>&5
22215   ac_status=$?
22216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217   (exit $ac_status); }; }; then
22218   ac_cv_member_struct_sockaddr_sa_len=yes
22219 else
22220   echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22222
22223         ac_cv_member_struct_sockaddr_sa_len=no
22224 fi
22225
22226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22227 fi
22228
22229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22230 fi
22231 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22232 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22233 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22234
22235 cat >>confdefs.h <<_ACEOF
22236 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22237 _ACEOF
22238
22239
22240 fi
22241 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
22242 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
22243 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
22244   echo $ECHO_N "(cached) $ECHO_C" >&6
22245 else
22246   cat >conftest.$ac_ext <<_ACEOF
22247 /* confdefs.h.  */
22248 _ACEOF
22249 cat confdefs.h >>conftest.$ac_ext
22250 cat >>conftest.$ac_ext <<_ACEOF
22251 /* end confdefs.h.  */
22252 #include <sys/types.h>
22253 #ifdef HAVE_SYS_SOCKET_H
22254 # include <sys/socket.h>
22255 #endif
22256 #ifdef HAVE_SYS_UN_H
22257 # include <sys/un.h>
22258 #endif
22259
22260 int
22261 main ()
22262 {
22263 static struct sockaddr_un ac_aggr;
22264 if (ac_aggr.sun_len)
22265 return 0;
22266   ;
22267   return 0;
22268 }
22269 _ACEOF
22270 rm -f conftest.$ac_objext
22271 if { (ac_try="$ac_compile"
22272 case "(($ac_try" in
22273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274   *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277   (eval "$ac_compile") 2>conftest.er1
22278   ac_status=$?
22279   grep -v '^ *+' conftest.er1 >conftest.err
22280   rm -f conftest.er1
22281   cat conftest.err >&5
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); } &&
22284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22285   { (case "(($ac_try" in
22286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287   *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290   (eval "$ac_try") 2>&5
22291   ac_status=$?
22292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293   (exit $ac_status); }; } &&
22294          { ac_try='test -s conftest.$ac_objext'
22295   { (case "(($ac_try" in
22296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297   *) ac_try_echo=$ac_try;;
22298 esac
22299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300   (eval "$ac_try") 2>&5
22301   ac_status=$?
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); }; }; then
22304   ac_cv_member_struct_sockaddr_un_sun_len=yes
22305 else
22306   echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22308
22309         cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h.  */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h.  */
22315 #include <sys/types.h>
22316 #ifdef HAVE_SYS_SOCKET_H
22317 # include <sys/socket.h>
22318 #endif
22319 #ifdef HAVE_SYS_UN_H
22320 # include <sys/un.h>
22321 #endif
22322
22323 int
22324 main ()
22325 {
22326 static struct sockaddr_un ac_aggr;
22327 if (sizeof ac_aggr.sun_len)
22328 return 0;
22329   ;
22330   return 0;
22331 }
22332 _ACEOF
22333 rm -f conftest.$ac_objext
22334 if { (ac_try="$ac_compile"
22335 case "(($ac_try" in
22336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337   *) ac_try_echo=$ac_try;;
22338 esac
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340   (eval "$ac_compile") 2>conftest.er1
22341   ac_status=$?
22342   grep -v '^ *+' conftest.er1 >conftest.err
22343   rm -f conftest.er1
22344   cat conftest.err >&5
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); } &&
22347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22348   { (case "(($ac_try" in
22349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350   *) ac_try_echo=$ac_try;;
22351 esac
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353   (eval "$ac_try") 2>&5
22354   ac_status=$?
22355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356   (exit $ac_status); }; } &&
22357          { ac_try='test -s conftest.$ac_objext'
22358   { (case "(($ac_try" in
22359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360   *) ac_try_echo=$ac_try;;
22361 esac
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363   (eval "$ac_try") 2>&5
22364   ac_status=$?
22365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366   (exit $ac_status); }; }; then
22367   ac_cv_member_struct_sockaddr_un_sun_len=yes
22368 else
22369   echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22371
22372         ac_cv_member_struct_sockaddr_un_sun_len=no
22373 fi
22374
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376 fi
22377
22378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 fi
22380 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
22381 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
22382 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
22383
22384 cat >>confdefs.h <<_ACEOF
22385 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22386 _ACEOF
22387
22388
22389 fi
22390
22391
22392 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
22393 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
22394 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
22395   echo $ECHO_N "(cached) $ECHO_C" >&6
22396 else
22397   cat >conftest.$ac_ext <<_ACEOF
22398 /* confdefs.h.  */
22399 _ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h.  */
22403 #include <sys/types.h>
22404 #ifdef HAVE_SCSI_SG_H
22405 #include <scsi/sg.h>
22406 #endif
22407
22408 int
22409 main ()
22410 {
22411 static scsireq_t ac_aggr;
22412 if (ac_aggr.cmd)
22413 return 0;
22414   ;
22415   return 0;
22416 }
22417 _ACEOF
22418 rm -f conftest.$ac_objext
22419 if { (ac_try="$ac_compile"
22420 case "(($ac_try" in
22421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422   *) ac_try_echo=$ac_try;;
22423 esac
22424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22425   (eval "$ac_compile") 2>conftest.er1
22426   ac_status=$?
22427   grep -v '^ *+' conftest.er1 >conftest.err
22428   rm -f conftest.er1
22429   cat conftest.err >&5
22430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); } &&
22432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22433   { (case "(($ac_try" in
22434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22435   *) ac_try_echo=$ac_try;;
22436 esac
22437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22438   (eval "$ac_try") 2>&5
22439   ac_status=$?
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); }; } &&
22442          { ac_try='test -s conftest.$ac_objext'
22443   { (case "(($ac_try" in
22444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445   *) ac_try_echo=$ac_try;;
22446 esac
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448   (eval "$ac_try") 2>&5
22449   ac_status=$?
22450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); }; }; then
22452   ac_cv_member_scsireq_t_cmd=yes
22453 else
22454   echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22456
22457         cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h.  */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h.  */
22463 #include <sys/types.h>
22464 #ifdef HAVE_SCSI_SG_H
22465 #include <scsi/sg.h>
22466 #endif
22467
22468 int
22469 main ()
22470 {
22471 static scsireq_t ac_aggr;
22472 if (sizeof ac_aggr.cmd)
22473 return 0;
22474   ;
22475   return 0;
22476 }
22477 _ACEOF
22478 rm -f conftest.$ac_objext
22479 if { (ac_try="$ac_compile"
22480 case "(($ac_try" in
22481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482   *) ac_try_echo=$ac_try;;
22483 esac
22484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485   (eval "$ac_compile") 2>conftest.er1
22486   ac_status=$?
22487   grep -v '^ *+' conftest.er1 >conftest.err
22488   rm -f conftest.er1
22489   cat conftest.err >&5
22490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491   (exit $ac_status); } &&
22492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22493   { (case "(($ac_try" in
22494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495   *) ac_try_echo=$ac_try;;
22496 esac
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498   (eval "$ac_try") 2>&5
22499   ac_status=$?
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); }; } &&
22502          { ac_try='test -s conftest.$ac_objext'
22503   { (case "(($ac_try" in
22504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505   *) ac_try_echo=$ac_try;;
22506 esac
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508   (eval "$ac_try") 2>&5
22509   ac_status=$?
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); }; }; then
22512   ac_cv_member_scsireq_t_cmd=yes
22513 else
22514   echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22516
22517         ac_cv_member_scsireq_t_cmd=no
22518 fi
22519
22520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22521 fi
22522
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 fi
22525 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22526 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
22527 if test $ac_cv_member_scsireq_t_cmd = yes; then
22528
22529 cat >>confdefs.h <<_ACEOF
22530 #define HAVE_SCSIREQ_T_CMD 1
22531 _ACEOF
22532
22533
22534 fi
22535 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22536 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
22537 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22538   echo $ECHO_N "(cached) $ECHO_C" >&6
22539 else
22540   cat >conftest.$ac_ext <<_ACEOF
22541 /* confdefs.h.  */
22542 _ACEOF
22543 cat confdefs.h >>conftest.$ac_ext
22544 cat >>conftest.$ac_ext <<_ACEOF
22545 /* end confdefs.h.  */
22546 #include <sys/types.h>
22547 #ifdef HAVE_SCSI_SG_H
22548 #include <scsi/sg.h>
22549 #endif
22550
22551 int
22552 main ()
22553 {
22554 static sg_io_hdr_t ac_aggr;
22555 if (ac_aggr.interface_id)
22556 return 0;
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565   *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568   (eval "$ac_compile") 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } &&
22575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22576   { (case "(($ac_try" in
22577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578   *) ac_try_echo=$ac_try;;
22579 esac
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581   (eval "$ac_try") 2>&5
22582   ac_status=$?
22583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584   (exit $ac_status); }; } &&
22585          { ac_try='test -s conftest.$ac_objext'
22586   { (case "(($ac_try" in
22587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22588   *) ac_try_echo=$ac_try;;
22589 esac
22590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22591   (eval "$ac_try") 2>&5
22592   ac_status=$?
22593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594   (exit $ac_status); }; }; then
22595   ac_cv_member_sg_io_hdr_t_interface_id=yes
22596 else
22597   echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22599
22600         cat >conftest.$ac_ext <<_ACEOF
22601 /* confdefs.h.  */
22602 _ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h.  */
22606 #include <sys/types.h>
22607 #ifdef HAVE_SCSI_SG_H
22608 #include <scsi/sg.h>
22609 #endif
22610
22611 int
22612 main ()
22613 {
22614 static sg_io_hdr_t ac_aggr;
22615 if (sizeof ac_aggr.interface_id)
22616 return 0;
22617   ;
22618   return 0;
22619 }
22620 _ACEOF
22621 rm -f conftest.$ac_objext
22622 if { (ac_try="$ac_compile"
22623 case "(($ac_try" in
22624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625   *) ac_try_echo=$ac_try;;
22626 esac
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628   (eval "$ac_compile") 2>conftest.er1
22629   ac_status=$?
22630   grep -v '^ *+' conftest.er1 >conftest.err
22631   rm -f conftest.er1
22632   cat conftest.err >&5
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } &&
22635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22636   { (case "(($ac_try" in
22637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22638   *) ac_try_echo=$ac_try;;
22639 esac
22640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22641   (eval "$ac_try") 2>&5
22642   ac_status=$?
22643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644   (exit $ac_status); }; } &&
22645          { ac_try='test -s conftest.$ac_objext'
22646   { (case "(($ac_try" in
22647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22648   *) ac_try_echo=$ac_try;;
22649 esac
22650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22651   (eval "$ac_try") 2>&5
22652   ac_status=$?
22653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); }; }; then
22655   ac_cv_member_sg_io_hdr_t_interface_id=yes
22656 else
22657   echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.$ac_ext >&5
22659
22660         ac_cv_member_sg_io_hdr_t_interface_id=no
22661 fi
22662
22663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22664 fi
22665
22666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667 fi
22668 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22669 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
22670 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22671
22672 cat >>confdefs.h <<_ACEOF
22673 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22674 _ACEOF
22675
22676
22677 fi
22678
22679
22680 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22681 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
22682 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22683   echo $ECHO_N "(cached) $ECHO_C" >&6
22684 else
22685   cat >conftest.$ac_ext <<_ACEOF
22686 /* confdefs.h.  */
22687 _ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h.  */
22691 #include <signal.h>
22692
22693 int
22694 main ()
22695 {
22696 static siginfo_t ac_aggr;
22697 if (ac_aggr.si_fd)
22698 return 0;
22699   ;
22700   return 0;
22701 }
22702 _ACEOF
22703 rm -f conftest.$ac_objext
22704 if { (ac_try="$ac_compile"
22705 case "(($ac_try" in
22706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707   *) ac_try_echo=$ac_try;;
22708 esac
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710   (eval "$ac_compile") 2>conftest.er1
22711   ac_status=$?
22712   grep -v '^ *+' conftest.er1 >conftest.err
22713   rm -f conftest.er1
22714   cat conftest.err >&5
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); } &&
22717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22718   { (case "(($ac_try" in
22719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720   *) ac_try_echo=$ac_try;;
22721 esac
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723   (eval "$ac_try") 2>&5
22724   ac_status=$?
22725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726   (exit $ac_status); }; } &&
22727          { ac_try='test -s conftest.$ac_objext'
22728   { (case "(($ac_try" in
22729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730   *) ac_try_echo=$ac_try;;
22731 esac
22732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22733   (eval "$ac_try") 2>&5
22734   ac_status=$?
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); }; }; then
22737   ac_cv_member_siginfo_t_si_fd=yes
22738 else
22739   echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22741
22742         cat >conftest.$ac_ext <<_ACEOF
22743 /* confdefs.h.  */
22744 _ACEOF
22745 cat confdefs.h >>conftest.$ac_ext
22746 cat >>conftest.$ac_ext <<_ACEOF
22747 /* end confdefs.h.  */
22748 #include <signal.h>
22749
22750 int
22751 main ()
22752 {
22753 static siginfo_t ac_aggr;
22754 if (sizeof ac_aggr.si_fd)
22755 return 0;
22756   ;
22757   return 0;
22758 }
22759 _ACEOF
22760 rm -f conftest.$ac_objext
22761 if { (ac_try="$ac_compile"
22762 case "(($ac_try" in
22763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22764   *) ac_try_echo=$ac_try;;
22765 esac
22766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22767   (eval "$ac_compile") 2>conftest.er1
22768   ac_status=$?
22769   grep -v '^ *+' conftest.er1 >conftest.err
22770   rm -f conftest.er1
22771   cat conftest.err >&5
22772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773   (exit $ac_status); } &&
22774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22775   { (case "(($ac_try" in
22776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777   *) ac_try_echo=$ac_try;;
22778 esac
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780   (eval "$ac_try") 2>&5
22781   ac_status=$?
22782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783   (exit $ac_status); }; } &&
22784          { ac_try='test -s conftest.$ac_objext'
22785   { (case "(($ac_try" in
22786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787   *) ac_try_echo=$ac_try;;
22788 esac
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790   (eval "$ac_try") 2>&5
22791   ac_status=$?
22792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793   (exit $ac_status); }; }; then
22794   ac_cv_member_siginfo_t_si_fd=yes
22795 else
22796   echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22798
22799         ac_cv_member_siginfo_t_si_fd=no
22800 fi
22801
22802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22803 fi
22804
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806 fi
22807 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22808 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
22809 if test $ac_cv_member_siginfo_t_si_fd = yes; then
22810
22811 cat >>confdefs.h <<_ACEOF
22812 #define HAVE_SIGINFO_T_SI_FD 1
22813 _ACEOF
22814
22815
22816 fi
22817
22818
22819 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22820 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
22821 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22822   echo $ECHO_N "(cached) $ECHO_C" >&6
22823 else
22824   cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h.  */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h.  */
22830 #include <sys/types.h>
22831 #ifdef HAVE_SYS_MTIO_H
22832 #include <sys/mtio.h>
22833 #endif
22834
22835 int
22836 main ()
22837 {
22838 static struct mtget ac_aggr;
22839 if (ac_aggr.mt_blksiz)
22840 return 0;
22841   ;
22842   return 0;
22843 }
22844 _ACEOF
22845 rm -f conftest.$ac_objext
22846 if { (ac_try="$ac_compile"
22847 case "(($ac_try" in
22848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849   *) ac_try_echo=$ac_try;;
22850 esac
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852   (eval "$ac_compile") 2>conftest.er1
22853   ac_status=$?
22854   grep -v '^ *+' conftest.er1 >conftest.err
22855   rm -f conftest.er1
22856   cat conftest.err >&5
22857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858   (exit $ac_status); } &&
22859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22860   { (case "(($ac_try" in
22861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862   *) ac_try_echo=$ac_try;;
22863 esac
22864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22865   (eval "$ac_try") 2>&5
22866   ac_status=$?
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); }; } &&
22869          { ac_try='test -s conftest.$ac_objext'
22870   { (case "(($ac_try" in
22871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872   *) ac_try_echo=$ac_try;;
22873 esac
22874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875   (eval "$ac_try") 2>&5
22876   ac_status=$?
22877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878   (exit $ac_status); }; }; then
22879   ac_cv_member_struct_mtget_mt_blksiz=yes
22880 else
22881   echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22883
22884         cat >conftest.$ac_ext <<_ACEOF
22885 /* confdefs.h.  */
22886 _ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h.  */
22890 #include <sys/types.h>
22891 #ifdef HAVE_SYS_MTIO_H
22892 #include <sys/mtio.h>
22893 #endif
22894
22895 int
22896 main ()
22897 {
22898 static struct mtget ac_aggr;
22899 if (sizeof ac_aggr.mt_blksiz)
22900 return 0;
22901   ;
22902   return 0;
22903 }
22904 _ACEOF
22905 rm -f conftest.$ac_objext
22906 if { (ac_try="$ac_compile"
22907 case "(($ac_try" in
22908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909   *) ac_try_echo=$ac_try;;
22910 esac
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912   (eval "$ac_compile") 2>conftest.er1
22913   ac_status=$?
22914   grep -v '^ *+' conftest.er1 >conftest.err
22915   rm -f conftest.er1
22916   cat conftest.err >&5
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); } &&
22919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22920   { (case "(($ac_try" in
22921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922   *) ac_try_echo=$ac_try;;
22923 esac
22924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22925   (eval "$ac_try") 2>&5
22926   ac_status=$?
22927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928   (exit $ac_status); }; } &&
22929          { ac_try='test -s conftest.$ac_objext'
22930   { (case "(($ac_try" in
22931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932   *) ac_try_echo=$ac_try;;
22933 esac
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935   (eval "$ac_try") 2>&5
22936   ac_status=$?
22937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); }; }; then
22939   ac_cv_member_struct_mtget_mt_blksiz=yes
22940 else
22941   echo "$as_me: failed program was:" >&5
22942 sed 's/^/| /' conftest.$ac_ext >&5
22943
22944         ac_cv_member_struct_mtget_mt_blksiz=no
22945 fi
22946
22947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22948 fi
22949
22950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951 fi
22952 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
22953 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
22954 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
22955
22956 cat >>confdefs.h <<_ACEOF
22957 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
22958 _ACEOF
22959
22960
22961 fi
22962 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
22963 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
22964 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
22965   echo $ECHO_N "(cached) $ECHO_C" >&6
22966 else
22967   cat >conftest.$ac_ext <<_ACEOF
22968 /* confdefs.h.  */
22969 _ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h.  */
22973 #include <sys/types.h>
22974 #ifdef HAVE_SYS_MTIO_H
22975 #include <sys/mtio.h>
22976 #endif
22977
22978 int
22979 main ()
22980 {
22981 static struct mtget ac_aggr;
22982 if (ac_aggr.mt_gstat)
22983 return 0;
22984   ;
22985   return 0;
22986 }
22987 _ACEOF
22988 rm -f conftest.$ac_objext
22989 if { (ac_try="$ac_compile"
22990 case "(($ac_try" in
22991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992   *) ac_try_echo=$ac_try;;
22993 esac
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995   (eval "$ac_compile") 2>conftest.er1
22996   ac_status=$?
22997   grep -v '^ *+' conftest.er1 >conftest.err
22998   rm -f conftest.er1
22999   cat conftest.err >&5
23000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001   (exit $ac_status); } &&
23002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23003   { (case "(($ac_try" in
23004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005   *) ac_try_echo=$ac_try;;
23006 esac
23007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23008   (eval "$ac_try") 2>&5
23009   ac_status=$?
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); }; } &&
23012          { ac_try='test -s conftest.$ac_objext'
23013   { (case "(($ac_try" in
23014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23015   *) ac_try_echo=$ac_try;;
23016 esac
23017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23018   (eval "$ac_try") 2>&5
23019   ac_status=$?
23020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021   (exit $ac_status); }; }; then
23022   ac_cv_member_struct_mtget_mt_gstat=yes
23023 else
23024   echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23026
23027         cat >conftest.$ac_ext <<_ACEOF
23028 /* confdefs.h.  */
23029 _ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h.  */
23033 #include <sys/types.h>
23034 #ifdef HAVE_SYS_MTIO_H
23035 #include <sys/mtio.h>
23036 #endif
23037
23038 int
23039 main ()
23040 {
23041 static struct mtget ac_aggr;
23042 if (sizeof ac_aggr.mt_gstat)
23043 return 0;
23044   ;
23045   return 0;
23046 }
23047 _ACEOF
23048 rm -f conftest.$ac_objext
23049 if { (ac_try="$ac_compile"
23050 case "(($ac_try" in
23051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23052   *) ac_try_echo=$ac_try;;
23053 esac
23054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23055   (eval "$ac_compile") 2>conftest.er1
23056   ac_status=$?
23057   grep -v '^ *+' conftest.er1 >conftest.err
23058   rm -f conftest.er1
23059   cat conftest.err >&5
23060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061   (exit $ac_status); } &&
23062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23063   { (case "(($ac_try" in
23064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065   *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068   (eval "$ac_try") 2>&5
23069   ac_status=$?
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); }; } &&
23072          { ac_try='test -s conftest.$ac_objext'
23073   { (case "(($ac_try" in
23074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075   *) ac_try_echo=$ac_try;;
23076 esac
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078   (eval "$ac_try") 2>&5
23079   ac_status=$?
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); }; }; then
23082   ac_cv_member_struct_mtget_mt_gstat=yes
23083 else
23084   echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23086
23087         ac_cv_member_struct_mtget_mt_gstat=no
23088 fi
23089
23090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23091 fi
23092
23093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23094 fi
23095 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
23096 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
23097 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
23098
23099 cat >>confdefs.h <<_ACEOF
23100 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
23101 _ACEOF
23102
23103
23104 fi
23105 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
23106 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
23107 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
23108   echo $ECHO_N "(cached) $ECHO_C" >&6
23109 else
23110   cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116 #include <sys/types.h>
23117 #ifdef HAVE_SYS_MTIO_H
23118 #include <sys/mtio.h>
23119 #endif
23120
23121 int
23122 main ()
23123 {
23124 static struct mtget ac_aggr;
23125 if (ac_aggr.mt_blkno)
23126 return 0;
23127   ;
23128   return 0;
23129 }
23130 _ACEOF
23131 rm -f conftest.$ac_objext
23132 if { (ac_try="$ac_compile"
23133 case "(($ac_try" in
23134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135   *) ac_try_echo=$ac_try;;
23136 esac
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138   (eval "$ac_compile") 2>conftest.er1
23139   ac_status=$?
23140   grep -v '^ *+' conftest.er1 >conftest.err
23141   rm -f conftest.er1
23142   cat conftest.err >&5
23143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144   (exit $ac_status); } &&
23145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23146   { (case "(($ac_try" in
23147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148   *) ac_try_echo=$ac_try;;
23149 esac
23150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23151   (eval "$ac_try") 2>&5
23152   ac_status=$?
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); }; } &&
23155          { ac_try='test -s conftest.$ac_objext'
23156   { (case "(($ac_try" in
23157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158   *) ac_try_echo=$ac_try;;
23159 esac
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161   (eval "$ac_try") 2>&5
23162   ac_status=$?
23163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164   (exit $ac_status); }; }; then
23165   ac_cv_member_struct_mtget_mt_blkno=yes
23166 else
23167   echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23169
23170         cat >conftest.$ac_ext <<_ACEOF
23171 /* confdefs.h.  */
23172 _ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h.  */
23176 #include <sys/types.h>
23177 #ifdef HAVE_SYS_MTIO_H
23178 #include <sys/mtio.h>
23179 #endif
23180
23181 int
23182 main ()
23183 {
23184 static struct mtget ac_aggr;
23185 if (sizeof ac_aggr.mt_blkno)
23186 return 0;
23187   ;
23188   return 0;
23189 }
23190 _ACEOF
23191 rm -f conftest.$ac_objext
23192 if { (ac_try="$ac_compile"
23193 case "(($ac_try" in
23194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23195   *) ac_try_echo=$ac_try;;
23196 esac
23197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23198   (eval "$ac_compile") 2>conftest.er1
23199   ac_status=$?
23200   grep -v '^ *+' conftest.er1 >conftest.err
23201   rm -f conftest.er1
23202   cat conftest.err >&5
23203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204   (exit $ac_status); } &&
23205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23206   { (case "(($ac_try" in
23207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208   *) ac_try_echo=$ac_try;;
23209 esac
23210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23211   (eval "$ac_try") 2>&5
23212   ac_status=$?
23213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214   (exit $ac_status); }; } &&
23215          { ac_try='test -s conftest.$ac_objext'
23216   { (case "(($ac_try" in
23217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218   *) ac_try_echo=$ac_try;;
23219 esac
23220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23221   (eval "$ac_try") 2>&5
23222   ac_status=$?
23223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); }; }; then
23225   ac_cv_member_struct_mtget_mt_blkno=yes
23226 else
23227   echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23229
23230         ac_cv_member_struct_mtget_mt_blkno=no
23231 fi
23232
23233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23234 fi
23235
23236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237 fi
23238 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
23239 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
23240 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
23241
23242 cat >>confdefs.h <<_ACEOF
23243 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
23244 _ACEOF
23245
23246
23247 fi
23248
23249
23250 { echo "$as_me:$LINENO: checking for struct option.name" >&5
23251 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
23252 if test "${ac_cv_member_struct_option_name+set}" = set; then
23253   echo $ECHO_N "(cached) $ECHO_C" >&6
23254 else
23255   cat >conftest.$ac_ext <<_ACEOF
23256 /* confdefs.h.  */
23257 _ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h.  */
23261 #ifdef HAVE_GETOPT_H
23262 #include <getopt.h>
23263 #endif
23264
23265 int
23266 main ()
23267 {
23268 static struct option ac_aggr;
23269 if (ac_aggr.name)
23270 return 0;
23271   ;
23272   return 0;
23273 }
23274 _ACEOF
23275 rm -f conftest.$ac_objext
23276 if { (ac_try="$ac_compile"
23277 case "(($ac_try" in
23278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279   *) ac_try_echo=$ac_try;;
23280 esac
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282   (eval "$ac_compile") 2>conftest.er1
23283   ac_status=$?
23284   grep -v '^ *+' conftest.er1 >conftest.err
23285   rm -f conftest.er1
23286   cat conftest.err >&5
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); } &&
23289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23290   { (case "(($ac_try" in
23291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23292   *) ac_try_echo=$ac_try;;
23293 esac
23294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23295   (eval "$ac_try") 2>&5
23296   ac_status=$?
23297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); }; } &&
23299          { ac_try='test -s conftest.$ac_objext'
23300   { (case "(($ac_try" in
23301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302   *) ac_try_echo=$ac_try;;
23303 esac
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305   (eval "$ac_try") 2>&5
23306   ac_status=$?
23307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308   (exit $ac_status); }; }; then
23309   ac_cv_member_struct_option_name=yes
23310 else
23311   echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23313
23314         cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h.  */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h.  */
23320 #ifdef HAVE_GETOPT_H
23321 #include <getopt.h>
23322 #endif
23323
23324 int
23325 main ()
23326 {
23327 static struct option ac_aggr;
23328 if (sizeof ac_aggr.name)
23329 return 0;
23330   ;
23331   return 0;
23332 }
23333 _ACEOF
23334 rm -f conftest.$ac_objext
23335 if { (ac_try="$ac_compile"
23336 case "(($ac_try" in
23337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23338   *) ac_try_echo=$ac_try;;
23339 esac
23340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23341   (eval "$ac_compile") 2>conftest.er1
23342   ac_status=$?
23343   grep -v '^ *+' conftest.er1 >conftest.err
23344   rm -f conftest.er1
23345   cat conftest.err >&5
23346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347   (exit $ac_status); } &&
23348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23349   { (case "(($ac_try" in
23350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351   *) ac_try_echo=$ac_try;;
23352 esac
23353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354   (eval "$ac_try") 2>&5
23355   ac_status=$?
23356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357   (exit $ac_status); }; } &&
23358          { ac_try='test -s conftest.$ac_objext'
23359   { (case "(($ac_try" in
23360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23361   *) ac_try_echo=$ac_try;;
23362 esac
23363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23364   (eval "$ac_try") 2>&5
23365   ac_status=$?
23366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367   (exit $ac_status); }; }; then
23368   ac_cv_member_struct_option_name=yes
23369 else
23370   echo "$as_me: failed program was:" >&5
23371 sed 's/^/| /' conftest.$ac_ext >&5
23372
23373         ac_cv_member_struct_option_name=no
23374 fi
23375
23376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23377 fi
23378
23379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23380 fi
23381 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
23382 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
23383 if test $ac_cv_member_struct_option_name = yes; then
23384
23385 cat >>confdefs.h <<_ACEOF
23386 #define HAVE_STRUCT_OPTION_NAME 1
23387 _ACEOF
23388
23389
23390 fi
23391
23392
23393 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23394 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23395 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23396   echo $ECHO_N "(cached) $ECHO_C" >&6
23397 else
23398   cat >conftest.$ac_ext <<_ACEOF
23399 /* confdefs.h.  */
23400 _ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h.  */
23404 $ac_includes_default
23405 int
23406 main ()
23407 {
23408 static struct stat ac_aggr;
23409 if (ac_aggr.st_blocks)
23410 return 0;
23411   ;
23412   return 0;
23413 }
23414 _ACEOF
23415 rm -f conftest.$ac_objext
23416 if { (ac_try="$ac_compile"
23417 case "(($ac_try" in
23418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419   *) ac_try_echo=$ac_try;;
23420 esac
23421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23422   (eval "$ac_compile") 2>conftest.er1
23423   ac_status=$?
23424   grep -v '^ *+' conftest.er1 >conftest.err
23425   rm -f conftest.er1
23426   cat conftest.err >&5
23427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428   (exit $ac_status); } &&
23429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23430   { (case "(($ac_try" in
23431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23432   *) ac_try_echo=$ac_try;;
23433 esac
23434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23435   (eval "$ac_try") 2>&5
23436   ac_status=$?
23437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438   (exit $ac_status); }; } &&
23439          { ac_try='test -s conftest.$ac_objext'
23440   { (case "(($ac_try" in
23441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442   *) ac_try_echo=$ac_try;;
23443 esac
23444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23445   (eval "$ac_try") 2>&5
23446   ac_status=$?
23447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448   (exit $ac_status); }; }; then
23449   ac_cv_member_struct_stat_st_blocks=yes
23450 else
23451   echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23453
23454         cat >conftest.$ac_ext <<_ACEOF
23455 /* confdefs.h.  */
23456 _ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h.  */
23460 $ac_includes_default
23461 int
23462 main ()
23463 {
23464 static struct stat ac_aggr;
23465 if (sizeof ac_aggr.st_blocks)
23466 return 0;
23467   ;
23468   return 0;
23469 }
23470 _ACEOF
23471 rm -f conftest.$ac_objext
23472 if { (ac_try="$ac_compile"
23473 case "(($ac_try" in
23474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475   *) ac_try_echo=$ac_try;;
23476 esac
23477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23478   (eval "$ac_compile") 2>conftest.er1
23479   ac_status=$?
23480   grep -v '^ *+' conftest.er1 >conftest.err
23481   rm -f conftest.er1
23482   cat conftest.err >&5
23483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484   (exit $ac_status); } &&
23485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23486   { (case "(($ac_try" in
23487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488   *) ac_try_echo=$ac_try;;
23489 esac
23490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491   (eval "$ac_try") 2>&5
23492   ac_status=$?
23493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494   (exit $ac_status); }; } &&
23495          { ac_try='test -s conftest.$ac_objext'
23496   { (case "(($ac_try" in
23497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23498   *) ac_try_echo=$ac_try;;
23499 esac
23500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23501   (eval "$ac_try") 2>&5
23502   ac_status=$?
23503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504   (exit $ac_status); }; }; then
23505   ac_cv_member_struct_stat_st_blocks=yes
23506 else
23507   echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23509
23510         ac_cv_member_struct_stat_st_blocks=no
23511 fi
23512
23513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23514 fi
23515
23516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23517 fi
23518 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23519 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23520 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23521
23522 cat >>confdefs.h <<_ACEOF
23523 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23524 _ACEOF
23525
23526
23527 fi
23528
23529
23530 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23531 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
23532 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23533   echo $ECHO_N "(cached) $ECHO_C" >&6
23534 else
23535   cat >conftest.$ac_ext <<_ACEOF
23536 /* confdefs.h.  */
23537 _ACEOF
23538 cat confdefs.h >>conftest.$ac_ext
23539 cat >>conftest.$ac_ext <<_ACEOF
23540 /* end confdefs.h.  */
23541 #ifdef HAVE_SYS_TYPES_H
23542 #include <sys/types.h>
23543 #endif
23544 #ifdef HAVE_NETINET_IN_H
23545 #include <netinet/in.h>
23546 #endif
23547
23548 int
23549 main ()
23550 {
23551 static struct sockaddr_in6 ac_aggr;
23552 if (ac_aggr.sin6_scope_id)
23553 return 0;
23554   ;
23555   return 0;
23556 }
23557 _ACEOF
23558 rm -f conftest.$ac_objext
23559 if { (ac_try="$ac_compile"
23560 case "(($ac_try" in
23561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562   *) ac_try_echo=$ac_try;;
23563 esac
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565   (eval "$ac_compile") 2>conftest.er1
23566   ac_status=$?
23567   grep -v '^ *+' conftest.er1 >conftest.err
23568   rm -f conftest.er1
23569   cat conftest.err >&5
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); } &&
23572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23573   { (case "(($ac_try" in
23574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575   *) ac_try_echo=$ac_try;;
23576 esac
23577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23578   (eval "$ac_try") 2>&5
23579   ac_status=$?
23580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581   (exit $ac_status); }; } &&
23582          { ac_try='test -s conftest.$ac_objext'
23583   { (case "(($ac_try" in
23584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23585   *) ac_try_echo=$ac_try;;
23586 esac
23587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23588   (eval "$ac_try") 2>&5
23589   ac_status=$?
23590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591   (exit $ac_status); }; }; then
23592   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23593 else
23594   echo "$as_me: failed program was:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23596
23597         cat >conftest.$ac_ext <<_ACEOF
23598 /* confdefs.h.  */
23599 _ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h.  */
23603 #ifdef HAVE_SYS_TYPES_H
23604 #include <sys/types.h>
23605 #endif
23606 #ifdef HAVE_NETINET_IN_H
23607 #include <netinet/in.h>
23608 #endif
23609
23610 int
23611 main ()
23612 {
23613 static struct sockaddr_in6 ac_aggr;
23614 if (sizeof ac_aggr.sin6_scope_id)
23615 return 0;
23616   ;
23617   return 0;
23618 }
23619 _ACEOF
23620 rm -f conftest.$ac_objext
23621 if { (ac_try="$ac_compile"
23622 case "(($ac_try" in
23623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624   *) ac_try_echo=$ac_try;;
23625 esac
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627   (eval "$ac_compile") 2>conftest.er1
23628   ac_status=$?
23629   grep -v '^ *+' conftest.er1 >conftest.err
23630   rm -f conftest.er1
23631   cat conftest.err >&5
23632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); } &&
23634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23635   { (case "(($ac_try" in
23636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637   *) ac_try_echo=$ac_try;;
23638 esac
23639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23640   (eval "$ac_try") 2>&5
23641   ac_status=$?
23642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643   (exit $ac_status); }; } &&
23644          { ac_try='test -s conftest.$ac_objext'
23645   { (case "(($ac_try" in
23646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23647   *) ac_try_echo=$ac_try;;
23648 esac
23649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23650   (eval "$ac_try") 2>&5
23651   ac_status=$?
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); }; }; then
23654   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23655 else
23656   echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23660 fi
23661
23662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23663 fi
23664
23665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23666 fi
23667 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23668 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23669 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23670
23671 cat >>confdefs.h <<_ACEOF
23672 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23673 _ACEOF
23674
23675
23676 fi
23677
23678
23679 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23680 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23681 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23682   echo $ECHO_N "(cached) $ECHO_C" >&6
23683 else
23684   cat >conftest.$ac_ext <<_ACEOF
23685 /* confdefs.h.  */
23686 _ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h.  */
23690 #ifdef HAVE_SYS_TYPES_H
23691 #include <sys/types.h>
23692 #endif
23693 #ifdef HAVE_NETINET_IN_H
23694 # include <netinet/in.h>
23695 #endif
23696 #ifdef HAVE_ARPA_NAMESER_H
23697 # include <arpa/nameser.h>
23698 #endif
23699
23700 int
23701 main ()
23702 {
23703 static ns_msg ac_aggr;
23704 if (ac_aggr._msg_ptr)
23705 return 0;
23706   ;
23707   return 0;
23708 }
23709 _ACEOF
23710 rm -f conftest.$ac_objext
23711 if { (ac_try="$ac_compile"
23712 case "(($ac_try" in
23713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714   *) ac_try_echo=$ac_try;;
23715 esac
23716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23717   (eval "$ac_compile") 2>conftest.er1
23718   ac_status=$?
23719   grep -v '^ *+' conftest.er1 >conftest.err
23720   rm -f conftest.er1
23721   cat conftest.err >&5
23722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723   (exit $ac_status); } &&
23724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23725   { (case "(($ac_try" in
23726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23727   *) ac_try_echo=$ac_try;;
23728 esac
23729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23730   (eval "$ac_try") 2>&5
23731   ac_status=$?
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); }; } &&
23734          { ac_try='test -s conftest.$ac_objext'
23735   { (case "(($ac_try" in
23736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23737   *) ac_try_echo=$ac_try;;
23738 esac
23739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23740   (eval "$ac_try") 2>&5
23741   ac_status=$?
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); }; }; then
23744   ac_cv_member_ns_msg__msg_ptr=yes
23745 else
23746   echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23748
23749         cat >conftest.$ac_ext <<_ACEOF
23750 /* confdefs.h.  */
23751 _ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.h.  */
23755 #ifdef HAVE_SYS_TYPES_H
23756 #include <sys/types.h>
23757 #endif
23758 #ifdef HAVE_NETINET_IN_H
23759 # include <netinet/in.h>
23760 #endif
23761 #ifdef HAVE_ARPA_NAMESER_H
23762 # include <arpa/nameser.h>
23763 #endif
23764
23765 int
23766 main ()
23767 {
23768 static ns_msg ac_aggr;
23769 if (sizeof ac_aggr._msg_ptr)
23770 return 0;
23771   ;
23772   return 0;
23773 }
23774 _ACEOF
23775 rm -f conftest.$ac_objext
23776 if { (ac_try="$ac_compile"
23777 case "(($ac_try" in
23778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779   *) ac_try_echo=$ac_try;;
23780 esac
23781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23782   (eval "$ac_compile") 2>conftest.er1
23783   ac_status=$?
23784   grep -v '^ *+' conftest.er1 >conftest.err
23785   rm -f conftest.er1
23786   cat conftest.err >&5
23787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788   (exit $ac_status); } &&
23789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23790   { (case "(($ac_try" in
23791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792   *) ac_try_echo=$ac_try;;
23793 esac
23794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23795   (eval "$ac_try") 2>&5
23796   ac_status=$?
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); }; } &&
23799          { ac_try='test -s conftest.$ac_objext'
23800   { (case "(($ac_try" in
23801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802   *) ac_try_echo=$ac_try;;
23803 esac
23804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23805   (eval "$ac_try") 2>&5
23806   ac_status=$?
23807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808   (exit $ac_status); }; }; then
23809   ac_cv_member_ns_msg__msg_ptr=yes
23810 else
23811   echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23813
23814         ac_cv_member_ns_msg__msg_ptr=no
23815 fi
23816
23817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818 fi
23819
23820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23821 fi
23822 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23823 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23824 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23825
23826 cat >>confdefs.h <<_ACEOF
23827 #define HAVE_NS_MSG__MSG_PTR 1
23828 _ACEOF
23829
23830
23831 fi
23832
23833
23834 { echo "$as_me:$LINENO: checking for timezone variable" >&5
23835 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
23836 if test "${ac_cv_have_timezone+set}" = set; then
23837   echo $ECHO_N "(cached) $ECHO_C" >&6
23838 else
23839   cat >conftest.$ac_ext <<_ACEOF
23840 /* confdefs.h.  */
23841 _ACEOF
23842 cat confdefs.h >>conftest.$ac_ext
23843 cat >>conftest.$ac_ext <<_ACEOF
23844 /* end confdefs.h.  */
23845 #include <time.h>
23846 int
23847 main ()
23848 {
23849 timezone;
23850   ;
23851   return 0;
23852 }
23853 _ACEOF
23854 rm -f conftest.$ac_objext conftest$ac_exeext
23855 if { (ac_try="$ac_link"
23856 case "(($ac_try" in
23857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858   *) ac_try_echo=$ac_try;;
23859 esac
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861   (eval "$ac_link") 2>conftest.er1
23862   ac_status=$?
23863   grep -v '^ *+' conftest.er1 >conftest.err
23864   rm -f conftest.er1
23865   cat conftest.err >&5
23866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867   (exit $ac_status); } &&
23868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23869   { (case "(($ac_try" in
23870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871   *) ac_try_echo=$ac_try;;
23872 esac
23873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23874   (eval "$ac_try") 2>&5
23875   ac_status=$?
23876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877   (exit $ac_status); }; } &&
23878          { ac_try='test -s conftest$ac_exeext'
23879   { (case "(($ac_try" in
23880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23881   *) ac_try_echo=$ac_try;;
23882 esac
23883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23884   (eval "$ac_try") 2>&5
23885   ac_status=$?
23886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887   (exit $ac_status); }; }; then
23888   ac_cv_have_timezone="yes"
23889 else
23890   echo "$as_me: failed program was:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23892
23893         ac_cv_have_timezone="no"
23894 fi
23895
23896 rm -f core conftest.err conftest.$ac_objext \
23897       conftest$ac_exeext conftest.$ac_ext
23898 fi
23899 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
23900 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
23901 if test "$ac_cv_have_timezone" = "yes"
23902 then
23903
23904 cat >>confdefs.h <<\_ACEOF
23905 #define HAVE_TIMEZONE 1
23906 _ACEOF
23907
23908 fi
23909 { echo "$as_me:$LINENO: checking for daylight variable" >&5
23910 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
23911 if test "${ac_cv_have_daylight+set}" = set; then
23912   echo $ECHO_N "(cached) $ECHO_C" >&6
23913 else
23914   cat >conftest.$ac_ext <<_ACEOF
23915 /* confdefs.h.  */
23916 _ACEOF
23917 cat confdefs.h >>conftest.$ac_ext
23918 cat >>conftest.$ac_ext <<_ACEOF
23919 /* end confdefs.h.  */
23920 #include <time.h>
23921 int
23922 main ()
23923 {
23924 daylight;
23925   ;
23926   return 0;
23927 }
23928 _ACEOF
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (ac_try="$ac_link"
23931 case "(($ac_try" in
23932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933   *) ac_try_echo=$ac_try;;
23934 esac
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936   (eval "$ac_link") 2>conftest.er1
23937   ac_status=$?
23938   grep -v '^ *+' conftest.er1 >conftest.err
23939   rm -f conftest.er1
23940   cat conftest.err >&5
23941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942   (exit $ac_status); } &&
23943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23944   { (case "(($ac_try" in
23945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23946   *) ac_try_echo=$ac_try;;
23947 esac
23948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23949   (eval "$ac_try") 2>&5
23950   ac_status=$?
23951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952   (exit $ac_status); }; } &&
23953          { ac_try='test -s conftest$ac_exeext'
23954   { (case "(($ac_try" in
23955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23956   *) ac_try_echo=$ac_try;;
23957 esac
23958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23959   (eval "$ac_try") 2>&5
23960   ac_status=$?
23961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962   (exit $ac_status); }; }; then
23963   ac_cv_have_daylight="yes"
23964 else
23965   echo "$as_me: failed program was:" >&5
23966 sed 's/^/| /' conftest.$ac_ext >&5
23967
23968         ac_cv_have_daylight="no"
23969 fi
23970
23971 rm -f core conftest.err conftest.$ac_objext \
23972       conftest$ac_exeext conftest.$ac_ext
23973 fi
23974 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
23975 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
23976 if test "$ac_cv_have_daylight" = "yes"
23977 then
23978
23979 cat >>confdefs.h <<\_ACEOF
23980 #define HAVE_DAYLIGHT 1
23981 _ACEOF
23982
23983 fi
23984
23985
23986 case $host_cpu in
23987   *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
23988 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
23989 if test "${ac_cv_cpp_def___i386__+set}" = set; then
23990   echo $ECHO_N "(cached) $ECHO_C" >&6
23991 else
23992   cat >conftest.$ac_ext <<_ACEOF
23993 /* confdefs.h.  */
23994 _ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h.  */
23998 #ifndef __i386__
23999 yes
24000 #endif
24001 _ACEOF
24002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24003   $EGREP "yes" >/dev/null 2>&1; then
24004   ac_cv_cpp_def___i386__=yes
24005 else
24006   ac_cv_cpp_def___i386__=no
24007 fi
24008 rm -f conftest*
24009
24010 fi
24011 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
24012 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
24013 if test $ac_cv_cpp_def___i386__ = yes; then
24014   CFLAGS="$CFLAGS -D__i386__"
24015   LINTFLAGS="$LINTFLAGS -D__i386__"
24016 fi
24017  ;;
24018   *x86_64*)         { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
24019 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
24020 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
24021   echo $ECHO_N "(cached) $ECHO_C" >&6
24022 else
24023   cat >conftest.$ac_ext <<_ACEOF
24024 /* confdefs.h.  */
24025 _ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h.  */
24029 #ifndef __x86_64__
24030 yes
24031 #endif
24032 _ACEOF
24033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24034   $EGREP "yes" >/dev/null 2>&1; then
24035   ac_cv_cpp_def___x86_64__=yes
24036 else
24037   ac_cv_cpp_def___x86_64__=no
24038 fi
24039 rm -f conftest*
24040
24041 fi
24042 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
24043 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
24044 if test $ac_cv_cpp_def___x86_64__ = yes; then
24045   CFLAGS="$CFLAGS -D__x86_64__"
24046   LINTFLAGS="$LINTFLAGS -D__x86_64__"
24047 fi
24048
24049                     { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
24050 echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
24051 if test "${ac_cv_cpp_def__WIN64+set}" = set; then
24052   echo $ECHO_N "(cached) $ECHO_C" >&6
24053 else
24054   cat >conftest.$ac_ext <<_ACEOF
24055 /* confdefs.h.  */
24056 _ACEOF
24057 cat confdefs.h >>conftest.$ac_ext
24058 cat >>conftest.$ac_ext <<_ACEOF
24059 /* end confdefs.h.  */
24060 #ifndef _WIN64
24061 yes
24062 #endif
24063 _ACEOF
24064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24065   $EGREP "yes" >/dev/null 2>&1; then
24066   ac_cv_cpp_def__WIN64=yes
24067 else
24068   ac_cv_cpp_def__WIN64=no
24069 fi
24070 rm -f conftest*
24071
24072 fi
24073 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
24074 echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
24075 if test $ac_cv_cpp_def__WIN64 = yes; then
24076   CFLAGS="$CFLAGS -D_WIN64"
24077   LINTFLAGS="$LINTFLAGS -D_WIN64"
24078 fi
24079  ;;
24080   *alpha*)          { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
24081 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
24082 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
24083   echo $ECHO_N "(cached) $ECHO_C" >&6
24084 else
24085   cat >conftest.$ac_ext <<_ACEOF
24086 /* confdefs.h.  */
24087 _ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h.  */
24091 #ifndef __ALPHA__
24092 yes
24093 #endif
24094 _ACEOF
24095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24096   $EGREP "yes" >/dev/null 2>&1; then
24097   ac_cv_cpp_def___ALPHA__=yes
24098 else
24099   ac_cv_cpp_def___ALPHA__=no
24100 fi
24101 rm -f conftest*
24102
24103 fi
24104 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
24105 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
24106 if test $ac_cv_cpp_def___ALPHA__ = yes; then
24107   CFLAGS="$CFLAGS -D__ALPHA__"
24108   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
24109 fi
24110  ;;
24111   *sparc*)          { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
24112 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
24113 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
24114   echo $ECHO_N "(cached) $ECHO_C" >&6
24115 else
24116   cat >conftest.$ac_ext <<_ACEOF
24117 /* confdefs.h.  */
24118 _ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h.  */
24122 #ifndef __sparc__
24123 yes
24124 #endif
24125 _ACEOF
24126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24127   $EGREP "yes" >/dev/null 2>&1; then
24128   ac_cv_cpp_def___sparc__=yes
24129 else
24130   ac_cv_cpp_def___sparc__=no
24131 fi
24132 rm -f conftest*
24133
24134 fi
24135 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
24136 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
24137 if test $ac_cv_cpp_def___sparc__ = yes; then
24138   CFLAGS="$CFLAGS -D__sparc__"
24139   LINTFLAGS="$LINTFLAGS -D__sparc__"
24140 fi
24141  ;;
24142   *powerpc*)        { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
24143 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
24144 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
24145   echo $ECHO_N "(cached) $ECHO_C" >&6
24146 else
24147   cat >conftest.$ac_ext <<_ACEOF
24148 /* confdefs.h.  */
24149 _ACEOF
24150 cat confdefs.h >>conftest.$ac_ext
24151 cat >>conftest.$ac_ext <<_ACEOF
24152 /* end confdefs.h.  */
24153 #ifndef __powerpc__
24154 yes
24155 #endif
24156 _ACEOF
24157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24158   $EGREP "yes" >/dev/null 2>&1; then
24159   ac_cv_cpp_def___powerpc__=yes
24160 else
24161   ac_cv_cpp_def___powerpc__=no
24162 fi
24163 rm -f conftest*
24164
24165 fi
24166 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
24167 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
24168 if test $ac_cv_cpp_def___powerpc__ = yes; then
24169   CFLAGS="$CFLAGS -D__powerpc__"
24170   LINTFLAGS="$LINTFLAGS -D__powerpc__"
24171 fi
24172  ;;
24173 esac
24174
24175 case $host_vendor in
24176   *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
24177 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
24178 if test "${ac_cv_cpp_def___sun__+set}" = set; then
24179   echo $ECHO_N "(cached) $ECHO_C" >&6
24180 else
24181   cat >conftest.$ac_ext <<_ACEOF
24182 /* confdefs.h.  */
24183 _ACEOF
24184 cat confdefs.h >>conftest.$ac_ext
24185 cat >>conftest.$ac_ext <<_ACEOF
24186 /* end confdefs.h.  */
24187 #ifndef __sun__
24188 yes
24189 #endif
24190 _ACEOF
24191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24192   $EGREP "yes" >/dev/null 2>&1; then
24193   ac_cv_cpp_def___sun__=yes
24194 else
24195   ac_cv_cpp_def___sun__=no
24196 fi
24197 rm -f conftest*
24198
24199 fi
24200 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
24201 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
24202 if test $ac_cv_cpp_def___sun__ = yes; then
24203   CFLAGS="$CFLAGS -D__sun__"
24204   LINTFLAGS="$LINTFLAGS -D__sun__"
24205 fi
24206  ;;
24207 esac
24208
24209
24210
24211
24212
24213 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
24214
24215 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
24216
24217 ac_config_commands="$ac_config_commands dlls/kernel/messages"
24218
24219 ac_config_commands="$ac_config_commands dlls/user/resources"
24220
24221 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
24222
24223 ac_config_commands="$ac_config_commands include/wine"
24224
24225
24226 MAKE_RULES=Make.rules
24227
24228
24229 MAKE_DLL_RULES=dlls/Makedll.rules
24230
24231
24232 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
24233
24234
24235 MAKE_TEST_RULES=dlls/Maketest.rules
24236
24237
24238 MAKE_LIB_RULES=libs/Makelib.rules
24239
24240
24241 MAKE_PROG_RULES=programs/Makeprog.rules
24242
24243
24244 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hlink/Makefile dlls/hlink/tests/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
24245
24246
24247 cat >confcache <<\_ACEOF
24248 # This file is a shell script that caches the results of configure
24249 # tests run on this system so they can be shared between configure
24250 # scripts and configure runs, see configure's option --config-cache.
24251 # It is not useful on other systems.  If it contains results you don't
24252 # want to keep, you may remove or edit it.
24253 #
24254 # config.status only pays attention to the cache file if you give it
24255 # the --recheck option to rerun configure.
24256 #
24257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24259 # following values.
24260
24261 _ACEOF
24262
24263 # The following way of writing the cache mishandles newlines in values,
24264 # but we know of no workaround that is simple, portable, and efficient.
24265 # So, we kill variables containing newlines.
24266 # Ultrix sh set writes to stderr and can't be redirected directly,
24267 # and sets the high bit in the cache file unless we assign to the vars.
24268 (
24269   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24270     eval ac_val=\$$ac_var
24271     case $ac_val in #(
24272     *${as_nl}*)
24273       case $ac_var in #(
24274       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24275 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24276       esac
24277       case $ac_var in #(
24278       _ | IFS | as_nl) ;; #(
24279       *) $as_unset $ac_var ;;
24280       esac ;;
24281     esac
24282   done
24283
24284   (set) 2>&1 |
24285     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24286     *${as_nl}ac_space=\ *)
24287       # `set' does not quote correctly, so add quotes (double-quote
24288       # substitution turns \\\\ into \\, and sed turns \\ into \).
24289       sed -n \
24290         "s/'/'\\\\''/g;
24291           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24292       ;; #(
24293     *)
24294       # `set' quotes correctly as required by POSIX, so do not add quotes.
24295       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24296       ;;
24297     esac |
24298     sort
24299 ) |
24300   sed '
24301      /^ac_cv_env_/b end
24302      t clear
24303      :clear
24304      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24305      t end
24306      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24307      :end' >>confcache
24308 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24309   if test -w "$cache_file"; then
24310     test "x$cache_file" != "x/dev/null" &&
24311       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24312 echo "$as_me: updating cache $cache_file" >&6;}
24313     cat confcache >$cache_file
24314   else
24315     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24316 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24317   fi
24318 fi
24319 rm -f confcache
24320
24321 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24322 # Let make expand exec_prefix.
24323 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24324
24325 DEFS=-DHAVE_CONFIG_H
24326
24327 ac_libobjs=
24328 ac_ltlibobjs=
24329 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24330   # 1. Remove the extension, and $U if already installed.
24331   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24332   ac_i=`echo "$ac_i" | sed "$ac_script"`
24333   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24334   #    will be set to the directory where LIBOBJS objects are built.
24335   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24336   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24337 done
24338 LIBOBJS=$ac_libobjs
24339
24340 LTLIBOBJS=$ac_ltlibobjs
24341
24342
24343
24344 : ${CONFIG_STATUS=./config.status}
24345 ac_clean_files_save=$ac_clean_files
24346 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24347 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24348 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24349 cat >$CONFIG_STATUS <<_ACEOF
24350 #! $SHELL
24351 # Generated by $as_me.
24352 # Run this file to recreate the current configuration.
24353 # Compiler output produced by configure, useful for debugging
24354 # configure, is in config.log if it exists.
24355
24356 debug=false
24357 ac_cs_recheck=false
24358 ac_cs_silent=false
24359 SHELL=\${CONFIG_SHELL-$SHELL}
24360 _ACEOF
24361
24362 cat >>$CONFIG_STATUS <<\_ACEOF
24363 ## --------------------- ##
24364 ## M4sh Initialization.  ##
24365 ## --------------------- ##
24366
24367 # Be Bourne compatible
24368 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24369   emulate sh
24370   NULLCMD=:
24371   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24372   # is contrary to our usage.  Disable this feature.
24373   alias -g '${1+"$@"}'='"$@"'
24374   setopt NO_GLOB_SUBST
24375 else
24376   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24377 fi
24378 BIN_SH=xpg4; export BIN_SH # for Tru64
24379 DUALCASE=1; export DUALCASE # for MKS sh
24380
24381
24382 # PATH needs CR
24383 # Avoid depending upon Character Ranges.
24384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24387 as_cr_digits='0123456789'
24388 as_cr_alnum=$as_cr_Letters$as_cr_digits
24389
24390 # The user is always right.
24391 if test "${PATH_SEPARATOR+set}" != set; then
24392   echo "#! /bin/sh" >conf$$.sh
24393   echo  "exit 0"   >>conf$$.sh
24394   chmod +x conf$$.sh
24395   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24396     PATH_SEPARATOR=';'
24397   else
24398     PATH_SEPARATOR=:
24399   fi
24400   rm -f conf$$.sh
24401 fi
24402
24403 # Support unset when possible.
24404 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24405   as_unset=unset
24406 else
24407   as_unset=false
24408 fi
24409
24410
24411 # IFS
24412 # We need space, tab and new line, in precisely that order.  Quoting is
24413 # there to prevent editors from complaining about space-tab.
24414 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24415 # splitting by setting IFS to empty value.)
24416 as_nl='
24417 '
24418 IFS=" ""        $as_nl"
24419
24420 # Find who we are.  Look in the path if we contain no directory separator.
24421 case $0 in
24422   *[\\/]* ) as_myself=$0 ;;
24423   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24424 for as_dir in $PATH
24425 do
24426   IFS=$as_save_IFS
24427   test -z "$as_dir" && as_dir=.
24428   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24429 done
24430 IFS=$as_save_IFS
24431
24432      ;;
24433 esac
24434 # We did not find ourselves, most probably we were run as `sh COMMAND'
24435 # in which case we are not to be found in the path.
24436 if test "x$as_myself" = x; then
24437   as_myself=$0
24438 fi
24439 if test ! -f "$as_myself"; then
24440   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24441   { (exit 1); exit 1; }
24442 fi
24443
24444 # Work around bugs in pre-3.0 UWIN ksh.
24445 for as_var in ENV MAIL MAILPATH
24446 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24447 done
24448 PS1='$ '
24449 PS2='> '
24450 PS4='+ '
24451
24452 # NLS nuisances.
24453 for as_var in \
24454   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24455   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24456   LC_TELEPHONE LC_TIME
24457 do
24458   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24459     eval $as_var=C; export $as_var
24460   else
24461     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24462   fi
24463 done
24464
24465 # Required to use basename.
24466 if expr a : '\(a\)' >/dev/null 2>&1 &&
24467    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24468   as_expr=expr
24469 else
24470   as_expr=false
24471 fi
24472
24473 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24474   as_basename=basename
24475 else
24476   as_basename=false
24477 fi
24478
24479
24480 # Name of the executable.
24481 as_me=`$as_basename -- "$0" ||
24482 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24483          X"$0" : 'X\(//\)$' \| \
24484          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24485 echo X/"$0" |
24486     sed '/^.*\/\([^/][^/]*\)\/*$/{
24487             s//\1/
24488             q
24489           }
24490           /^X\/\(\/\/\)$/{
24491             s//\1/
24492             q
24493           }
24494           /^X\/\(\/\).*/{
24495             s//\1/
24496             q
24497           }
24498           s/.*/./; q'`
24499
24500 # CDPATH.
24501 $as_unset CDPATH
24502
24503
24504
24505   as_lineno_1=$LINENO
24506   as_lineno_2=$LINENO
24507   test "x$as_lineno_1" != "x$as_lineno_2" &&
24508   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24509
24510   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24511   # uniformly replaced by the line number.  The first 'sed' inserts a
24512   # line-number line after each line using $LINENO; the second 'sed'
24513   # does the real work.  The second script uses 'N' to pair each
24514   # line-number line with the line containing $LINENO, and appends
24515   # trailing '-' during substitution so that $LINENO is not a special
24516   # case at line end.
24517   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24518   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24519   # E. McMahon (1931-1989) for sed's syntax.  :-)
24520   sed -n '
24521     p
24522     /[$]LINENO/=
24523   ' <$as_myself |
24524     sed '
24525       s/[$]LINENO.*/&-/
24526       t lineno
24527       b
24528       :lineno
24529       N
24530       :loop
24531       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24532       t loop
24533       s/-\n.*//
24534     ' >$as_me.lineno &&
24535   chmod +x "$as_me.lineno" ||
24536     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24537    { (exit 1); exit 1; }; }
24538
24539   # Don't try to exec as it changes $[0], causing all sort of problems
24540   # (the dirname of $[0] is not the place where we might find the
24541   # original and so on.  Autoconf is especially sensitive to this).
24542   . "./$as_me.lineno"
24543   # Exit status is that of the last command.
24544   exit
24545 }
24546
24547
24548 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24549   as_dirname=dirname
24550 else
24551   as_dirname=false
24552 fi
24553
24554 ECHO_C= ECHO_N= ECHO_T=
24555 case `echo -n x` in
24556 -n*)
24557   case `echo 'x\c'` in
24558   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24559   *)   ECHO_C='\c';;
24560   esac;;
24561 *)
24562   ECHO_N='-n';;
24563 esac
24564
24565 if expr a : '\(a\)' >/dev/null 2>&1 &&
24566    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24567   as_expr=expr
24568 else
24569   as_expr=false
24570 fi
24571
24572 rm -f conf$$ conf$$.exe conf$$.file
24573 if test -d conf$$.dir; then
24574   rm -f conf$$.dir/conf$$.file
24575 else
24576   rm -f conf$$.dir
24577   mkdir conf$$.dir
24578 fi
24579 echo >conf$$.file
24580 if ln -s conf$$.file conf$$ 2>/dev/null; then
24581   as_ln_s='ln -s'
24582   # ... but there are two gotchas:
24583   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24584   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24585   # In both cases, we have to default to `cp -p'.
24586   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24587     as_ln_s='cp -p'
24588 elif ln conf$$.file conf$$ 2>/dev/null; then
24589   as_ln_s=ln
24590 else
24591   as_ln_s='cp -p'
24592 fi
24593 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24594 rmdir conf$$.dir 2>/dev/null
24595
24596 if mkdir -p . 2>/dev/null; then
24597   as_mkdir_p=:
24598 else
24599   test -d ./-p && rmdir ./-p
24600   as_mkdir_p=false
24601 fi
24602
24603 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
24604 # systems may use methods other than mode bits to determine executability.
24605 cat >conf$$.file <<_ASEOF
24606 #! /bin/sh
24607 exit 0
24608 _ASEOF
24609 chmod +x conf$$.file
24610 if test -x conf$$.file >/dev/null 2>&1; then
24611   as_executable_p="test -x"
24612 else
24613   as_executable_p=:
24614 fi
24615 rm -f conf$$.file
24616
24617 # Sed expression to map a string onto a valid CPP name.
24618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24619
24620 # Sed expression to map a string onto a valid variable name.
24621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24622
24623
24624 exec 6>&1
24625
24626 # Save the log message, to keep $[0] and so on meaningful, and to
24627 # report actual input values of CONFIG_FILES etc. instead of their
24628 # values after options handling.
24629 ac_log="
24630 This file was extended by Wine $as_me 0.9.18, which was
24631 generated by GNU Autoconf 2.60a.  Invocation command line was
24632
24633   CONFIG_FILES    = $CONFIG_FILES
24634   CONFIG_HEADERS  = $CONFIG_HEADERS
24635   CONFIG_LINKS    = $CONFIG_LINKS
24636   CONFIG_COMMANDS = $CONFIG_COMMANDS
24637   $ $0 $@
24638
24639 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24640 "
24641
24642 _ACEOF
24643
24644 cat >>$CONFIG_STATUS <<_ACEOF
24645 # Files that config.status was made for.
24646 config_files="$ac_config_files"
24647 config_headers="$ac_config_headers"
24648 config_commands="$ac_config_commands"
24649
24650 _ACEOF
24651
24652 cat >>$CONFIG_STATUS <<\_ACEOF
24653 ac_cs_usage="\
24654 \`$as_me' instantiates files from templates according to the
24655 current configuration.
24656
24657 Usage: $0 [OPTIONS] [FILE]...
24658
24659   -h, --help       print this help, then exit
24660   -V, --version    print version number, then exit
24661   -q, --quiet      do not print progress messages
24662   -d, --debug      don't remove temporary files
24663       --recheck    update $as_me by reconfiguring in the same conditions
24664   --file=FILE[:TEMPLATE]
24665                    instantiate the configuration file FILE
24666   --header=FILE[:TEMPLATE]
24667                    instantiate the configuration header FILE
24668
24669 Configuration files:
24670 $config_files
24671
24672 Configuration headers:
24673 $config_headers
24674
24675 Configuration commands:
24676 $config_commands
24677
24678 Report bugs to <bug-autoconf@gnu.org>."
24679
24680 _ACEOF
24681 cat >>$CONFIG_STATUS <<_ACEOF
24682 ac_cs_version="\\
24683 Wine config.status 0.9.18
24684 configured by $0, generated by GNU Autoconf 2.60a,
24685   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24686
24687 Copyright (C) 2006 Free Software Foundation, Inc.
24688 This config.status script is free software; the Free Software Foundation
24689 gives unlimited permission to copy, distribute and modify it."
24690
24691 ac_pwd='$ac_pwd'
24692 srcdir='$srcdir'
24693 INSTALL='$INSTALL'
24694 _ACEOF
24695
24696 cat >>$CONFIG_STATUS <<\_ACEOF
24697 # If no file are specified by the user, then we need to provide default
24698 # value.  By we need to know if files were specified by the user.
24699 ac_need_defaults=:
24700 while test $# != 0
24701 do
24702   case $1 in
24703   --*=*)
24704     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24705     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24706     ac_shift=:
24707     ;;
24708   *)
24709     ac_option=$1
24710     ac_optarg=$2
24711     ac_shift=shift
24712     ;;
24713   esac
24714
24715   case $ac_option in
24716   # Handling of the options.
24717   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24718     ac_cs_recheck=: ;;
24719   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24720     echo "$ac_cs_version"; exit ;;
24721   --debug | --debu | --deb | --de | --d | -d )
24722     debug=: ;;
24723   --file | --fil | --fi | --f )
24724     $ac_shift
24725     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24726     ac_need_defaults=false;;
24727   --header | --heade | --head | --hea )
24728     $ac_shift
24729     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24730     ac_need_defaults=false;;
24731   --he | --h)
24732     # Conflict between --help and --header
24733     { echo "$as_me: error: ambiguous option: $1
24734 Try \`$0 --help' for more information." >&2
24735    { (exit 1); exit 1; }; };;
24736   --help | --hel | -h )
24737     echo "$ac_cs_usage"; exit ;;
24738   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24739   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24740     ac_cs_silent=: ;;
24741
24742   # This is an error.
24743   -*) { echo "$as_me: error: unrecognized option: $1
24744 Try \`$0 --help' for more information." >&2
24745    { (exit 1); exit 1; }; } ;;
24746
24747   *) ac_config_targets="$ac_config_targets $1"
24748      ac_need_defaults=false ;;
24749
24750   esac
24751   shift
24752 done
24753
24754 ac_configure_extra_args=
24755
24756 if $ac_cs_silent; then
24757   exec 6>/dev/null
24758   ac_configure_extra_args="$ac_configure_extra_args --silent"
24759 fi
24760
24761 _ACEOF
24762 cat >>$CONFIG_STATUS <<_ACEOF
24763 if \$ac_cs_recheck; then
24764   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24765   CONFIG_SHELL=$SHELL
24766   export CONFIG_SHELL
24767   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24768 fi
24769
24770 _ACEOF
24771 cat >>$CONFIG_STATUS <<\_ACEOF
24772 exec 5>>config.log
24773 {
24774   echo
24775   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24776 ## Running $as_me. ##
24777 _ASBOX
24778   echo "$ac_log"
24779 } >&5
24780
24781 _ACEOF
24782 cat >>$CONFIG_STATUS <<_ACEOF
24783 _ACEOF
24784
24785 cat >>$CONFIG_STATUS <<\_ACEOF
24786
24787 # Handling of arguments.
24788 for ac_config_target in $ac_config_targets
24789 do
24790   case $ac_config_target in
24791     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24792     "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24793     "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24794     "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
24795     "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24796     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24797     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24798     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24799     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24800     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24801     "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
24802     "libs/Makelib.rules") CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
24803     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24804     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24805     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24806     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24807     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24808     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24809     "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24810     "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24811     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24812     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24813     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24814     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24815     "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24816     "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24817     "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24818     "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24819     "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24820     "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
24821     "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
24822     "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24823     "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24824     "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
24825     "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
24826     "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
24827     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24828     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24829     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24830     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
24831     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
24832     "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24833     "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24834     "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24835     "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24836     "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24837     "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24838     "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24839     "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24840     "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24841     "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24842     "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24843     "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24844     "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24845     "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24846     "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24847     "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24848     "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24849     "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24850     "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24851     "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24852     "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24853     "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24854     "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24855     "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24856     "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24857     "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24858     "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24859     "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24860     "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24861     "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24862     "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24863     "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24864     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24865     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24866     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24867     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24868     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24869     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24870     "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
24871     "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
24872     "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
24873     "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24874     "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24875     "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
24876     "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
24877     "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
24878     "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
24879     "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
24880     "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
24881     "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
24882     "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
24883     "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
24884     "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
24885     "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
24886     "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
24887     "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
24888     "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
24889     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
24890     "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
24891     "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
24892     "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
24893     "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
24894     "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
24895     "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
24896     "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
24897     "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
24898     "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
24899     "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
24900     "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
24901     "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
24902     "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
24903     "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
24904     "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
24905     "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
24906     "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
24907     "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
24908     "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
24909     "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
24910     "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
24911     "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
24912     "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
24913     "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
24914     "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
24915     "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
24916     "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
24917     "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
24918     "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
24919     "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
24920     "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
24921     "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
24922     "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
24923     "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
24924     "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
24925     "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
24926     "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
24927     "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
24928     "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
24929     "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
24930     "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
24931     "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
24932     "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
24933     "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
24934     "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
24935     "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
24936     "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
24937     "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
24938     "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
24939     "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
24940     "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
24941     "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
24942     "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
24943     "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
24944     "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
24945     "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
24946     "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
24947     "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
24948     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
24949     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
24950     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
24951     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
24952     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
24953     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
24954     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
24955     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
24956     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
24957     "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
24958     "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
24959     "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
24960     "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
24961     "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
24962     "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
24963     "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
24964     "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
24965     "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
24966     "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
24967     "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
24968     "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
24969     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
24970     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
24971     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
24972     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
24973     "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
24974     "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
24975     "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
24976     "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
24977     "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
24978     "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
24979     "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
24980     "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
24981     "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
24982     "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
24983     "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
24984     "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
24985     "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
24986     "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
24987     "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
24988     "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
24989     "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
24990     "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
24991     "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
24992     "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
24993     "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
24994     "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
24995     "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
24996     "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
24997     "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
24998     "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
24999     "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
25000     "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
25001     "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
25002     "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
25003     "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
25004     "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
25005     "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
25006     "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
25007     "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
25008     "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
25009     "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
25010     "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
25011     "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
25012     "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
25013     "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
25014     "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
25015     "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
25016     "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
25017     "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
25018     "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
25019     "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
25020     "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
25021     "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
25022     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
25023     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
25024     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
25025     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
25026     "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
25027     "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
25028     "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
25029     "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
25030     "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
25031     "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
25032     "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
25033     "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
25034     "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
25035     "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
25036     "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
25037     "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
25038     "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
25039     "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
25040     "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
25041     "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
25042     "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
25043     "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
25044     "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
25045     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
25046     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
25047     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
25048     "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
25049     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
25050     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25051     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
25052     "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
25053     "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
25054     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
25055     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
25056     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
25057     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
25058     "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
25059     "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
25060     "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
25061     "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
25062     "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
25063     "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
25064     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
25065     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
25066     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
25067     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
25068     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
25069     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
25070     "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
25071     "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
25072     "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
25073     "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
25074     "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
25075     "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
25076     "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
25077     "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
25078     "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
25079     "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
25080     "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
25081     "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
25082     "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
25083     "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
25084     "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
25085     "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
25086     "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
25087     "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
25088     "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
25089     "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
25090     "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
25091     "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
25092     "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
25093     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
25094     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25095     "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
25096     "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
25097     "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
25098     "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
25099     "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
25100     "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
25101     "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
25102
25103   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25104 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25105    { (exit 1); exit 1; }; };;
25106   esac
25107 done
25108
25109
25110 # If the user did not use the arguments to specify the items to instantiate,
25111 # then the envvar interface is used.  Set only those that are not.
25112 # We use the long form for the default assignment because of an extremely
25113 # bizarre bug on SunOS 4.1.3.
25114 if $ac_need_defaults; then
25115   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25116   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25117   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25118 fi
25119
25120 # Have a temporary directory for convenience.  Make it in the build tree
25121 # simply because there is no reason against having it here, and in addition,
25122 # creating and moving files from /tmp can sometimes cause problems.
25123 # Hook for its removal unless debugging.
25124 # Note that there is a small window in which the directory will not be cleaned:
25125 # after its creation but before its name has been assigned to `$tmp'.
25126 $debug ||
25127 {
25128   tmp=
25129   trap 'exit_status=$?
25130   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25131 ' 0
25132   trap '{ (exit 1); exit 1; }' 1 2 13 15
25133 }
25134 # Create a (secure) tmp directory for tmp files.
25135
25136 {
25137   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25138   test -n "$tmp" && test -d "$tmp"
25139 }  ||
25140 {
25141   tmp=./conf$$-$RANDOM
25142   (umask 077 && mkdir "$tmp")
25143 } ||
25144 {
25145    echo "$me: cannot create a temporary directory in ." >&2
25146    { (exit 1); exit 1; }
25147 }
25148
25149 #
25150 # Set up the sed scripts for CONFIG_FILES section.
25151 #
25152
25153 # No need to generate the scripts if there are no CONFIG_FILES.
25154 # This happens for instance when ./config.status config.h
25155 if test -n "$CONFIG_FILES"; then
25156
25157 _ACEOF
25158
25159 # Create sed commands to just substitute file output variables.
25160
25161 # Remaining file output variables are in a fragment that also has non-file
25162 # output varibles.
25163
25164
25165
25166 ac_delim='%!_!# '
25167 for ac_last_try in false false false false false :; do
25168   cat >conf$$subs.sed <<_ACEOF
25169 SHELL!$SHELL$ac_delim
25170 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25171 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25172 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25173 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25174 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25175 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25176 exec_prefix!$exec_prefix$ac_delim
25177 prefix!$prefix$ac_delim
25178 program_transform_name!$program_transform_name$ac_delim
25179 bindir!$bindir$ac_delim
25180 sbindir!$sbindir$ac_delim
25181 libexecdir!$libexecdir$ac_delim
25182 datarootdir!$datarootdir$ac_delim
25183 datadir!$datadir$ac_delim
25184 sysconfdir!$sysconfdir$ac_delim
25185 sharedstatedir!$sharedstatedir$ac_delim
25186 localstatedir!$localstatedir$ac_delim
25187 includedir!$includedir$ac_delim
25188 oldincludedir!$oldincludedir$ac_delim
25189 docdir!$docdir$ac_delim
25190 infodir!$infodir$ac_delim
25191 htmldir!$htmldir$ac_delim
25192 dvidir!$dvidir$ac_delim
25193 pdfdir!$pdfdir$ac_delim
25194 psdir!$psdir$ac_delim
25195 libdir!$libdir$ac_delim
25196 localedir!$localedir$ac_delim
25197 mandir!$mandir$ac_delim
25198 DEFS!$DEFS$ac_delim
25199 ECHO_C!$ECHO_C$ac_delim
25200 ECHO_N!$ECHO_N$ac_delim
25201 ECHO_T!$ECHO_T$ac_delim
25202 LIBS!$LIBS$ac_delim
25203 build_alias!$build_alias$ac_delim
25204 host_alias!$host_alias$ac_delim
25205 target_alias!$target_alias$ac_delim
25206 build!$build$ac_delim
25207 build_cpu!$build_cpu$ac_delim
25208 build_vendor!$build_vendor$ac_delim
25209 build_os!$build_os$ac_delim
25210 host!$host$ac_delim
25211 host_cpu!$host_cpu$ac_delim
25212 host_vendor!$host_vendor$ac_delim
25213 host_os!$host_os$ac_delim
25214 WIN16_FILES!$WIN16_FILES$ac_delim
25215 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
25216 SET_MAKE!$SET_MAKE$ac_delim
25217 CC!$CC$ac_delim
25218 CFLAGS!$CFLAGS$ac_delim
25219 LDFLAGS!$LDFLAGS$ac_delim
25220 CPPFLAGS!$CPPFLAGS$ac_delim
25221 ac_ct_CC!$ac_ct_CC$ac_delim
25222 EXEEXT!$EXEEXT$ac_delim
25223 OBJEXT!$OBJEXT$ac_delim
25224 CXX!$CXX$ac_delim
25225 CXXFLAGS!$CXXFLAGS$ac_delim
25226 ac_ct_CXX!$ac_ct_CXX$ac_delim
25227 CPPBIN!$CPPBIN$ac_delim
25228 TOOLSDIR!$TOOLSDIR$ac_delim
25229 XMKMF!$XMKMF$ac_delim
25230 CPP!$CPP$ac_delim
25231 X_CFLAGS!$X_CFLAGS$ac_delim
25232 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25233 X_LIBS!$X_LIBS$ac_delim
25234 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25235 LEX!$LEX$ac_delim
25236 LEXLIB!$LEXLIB$ac_delim
25237 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
25238 XLEX!$XLEX$ac_delim
25239 BISON!$BISON$ac_delim
25240 AS!$AS$ac_delim
25241 ac_ct_AS!$ac_ct_AS$ac_delim
25242 LD!$LD$ac_delim
25243 AR!$AR$ac_delim
25244 RANLIB!$RANLIB$ac_delim
25245 STRIP!$STRIP$ac_delim
25246 WINDRES!$WINDRES$ac_delim
25247 LN_S!$LN_S$ac_delim
25248 _ACEOF
25249
25250   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
25251     break
25252   elif $ac_last_try; then
25253     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25254 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25255    { (exit 1); exit 1; }; }
25256   else
25257     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25258   fi
25259 done
25260
25261 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25262 if test -n "$ac_eof"; then
25263   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25264   ac_eof=`expr $ac_eof + 1`
25265 fi
25266
25267 cat >>$CONFIG_STATUS <<_ACEOF
25268 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25270 /^[      ]*@MAKE_RULES@[         ]*$/{
25271 r $MAKE_RULES
25272 d
25273 }
25274 /^[      ]*@MAKE_DLL_RULES@[     ]*$/{
25275 r $MAKE_DLL_RULES
25276 d
25277 }
25278 /^[      ]*@MAKE_IMPLIB_RULES@[  ]*$/{
25279 r $MAKE_IMPLIB_RULES
25280 d
25281 }
25282 /^[      ]*@MAKE_TEST_RULES@[    ]*$/{
25283 r $MAKE_TEST_RULES
25284 d
25285 }
25286 /^[      ]*@MAKE_LIB_RULES@[     ]*$/{
25287 r $MAKE_LIB_RULES
25288 d
25289 }
25290 /^[      ]*@MAKE_PROG_RULES@[    ]*$/{
25291 r $MAKE_PROG_RULES
25292 d
25293 }
25294 _ACEOF
25295 sed '
25296 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25297 s/^/s,@/; s/!/@,|#_!!_#|/
25298 :n
25299 t n
25300 s/'"$ac_delim"'$/,g/; t
25301 s/$/\\/; p
25302 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25303 ' >>$CONFIG_STATUS <conf$$subs.sed
25304 rm -f conf$$subs.sed
25305 cat >>$CONFIG_STATUS <<_ACEOF
25306 CEOF$ac_eof
25307 _ACEOF
25308
25309
25310 ac_delim='%!_!# '
25311 for ac_last_try in false false false false false :; do
25312   cat >conf$$subs.sed <<_ACEOF
25313 LN!$LN$ac_delim
25314 GREP!$GREP$ac_delim
25315 EGREP!$EGREP$ac_delim
25316 LDCONFIG!$LDCONFIG$ac_delim
25317 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25318 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25319 INSTALL_DATA!$INSTALL_DATA$ac_delim
25320 LINT!$LINT$ac_delim
25321 LINTFLAGS!$LINTFLAGS$ac_delim
25322 FONTFORGE!$FONTFORGE$ac_delim
25323 PKG_CONFIG!$PKG_CONFIG$ac_delim
25324 PRELINK!$PRELINK$ac_delim
25325 LIBPTHREAD!$LIBPTHREAD$ac_delim
25326 XLIB!$XLIB$ac_delim
25327 XFILES!$XFILES$ac_delim
25328 OPENGLFILES!$OPENGLFILES$ac_delim
25329 GLU32FILES!$GLU32FILES$ac_delim
25330 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
25331 GLUT_LIBS!$GLUT_LIBS$ac_delim
25332 GLUT32FILES!$GLUT32FILES$ac_delim
25333 NASLIBS!$NASLIBS$ac_delim
25334 XML2LIBS!$XML2LIBS$ac_delim
25335 XML2INCL!$XML2INCL$ac_delim
25336 XSLTLIBS!$XSLTLIBS$ac_delim
25337 XSLTINCL!$XSLTINCL$ac_delim
25338 HALINCL!$HALINCL$ac_delim
25339 CURSESLIBS!$CURSESLIBS$ac_delim
25340 sane_devel!$sane_devel$ac_delim
25341 SANELIBS!$SANELIBS$ac_delim
25342 SANEINCL!$SANEINCL$ac_delim
25343 gphoto2_devel!$gphoto2_devel$ac_delim
25344 gphoto2port_devel!$gphoto2port_devel$ac_delim
25345 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
25346 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
25347 ICULIBS!$ICULIBS$ac_delim
25348 RESOLVLIBS!$RESOLVLIBS$ac_delim
25349 LCMSLIBS!$LCMSLIBS$ac_delim
25350 LDAPLIBS!$LDAPLIBS$ac_delim
25351 FREETYPELIBS!$FREETYPELIBS$ac_delim
25352 FREETYPEINCL!$FREETYPEINCL$ac_delim
25353 ft_devel!$ft_devel$ac_delim
25354 ft_devel2!$ft_devel2$ac_delim
25355 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
25356 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
25357 ARTSLIBS!$ARTSLIBS$ac_delim
25358 ARTSINCL!$ARTSINCL$ac_delim
25359 ESDCONFIG!$ESDCONFIG$ac_delim
25360 ESDLIBS!$ESDLIBS$ac_delim
25361 ESDINCL!$ESDINCL$ac_delim
25362 ALSALIBS!$ALSALIBS$ac_delim
25363 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
25364 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
25365 BUILTINFLAG!$BUILTINFLAG$ac_delim
25366 DLLEXT!$DLLEXT$ac_delim
25367 DLLFLAGS!$DLLFLAGS$ac_delim
25368 DLLIBS!$DLLIBS$ac_delim
25369 LDSHARED!$LDSHARED$ac_delim
25370 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
25371 LIBEXT!$LIBEXT$ac_delim
25372 IMPLIBEXT!$IMPLIBEXT$ac_delim
25373 DLLTOOL!$DLLTOOL$ac_delim
25374 DLLWRAP!$DLLWRAP$ac_delim
25375 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
25376 LDEXERPATH!$LDEXERPATH$ac_delim
25377 LDDLLRPATH!$LDDLLRPATH$ac_delim
25378 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
25379 IOKITLIB!$IOKITLIB$ac_delim
25380 COREAUDIO!$COREAUDIO$ac_delim
25381 CROSSTEST!$CROSSTEST$ac_delim
25382 CROSSCC!$CROSSCC$ac_delim
25383 CROSSWINDRES!$CROSSWINDRES$ac_delim
25384 LDPATH!$LDPATH$ac_delim
25385 CRTLIBS!$CRTLIBS$ac_delim
25386 SOCKETLIBS!$SOCKETLIBS$ac_delim
25387 MAIN_BINARY!$MAIN_BINARY$ac_delim
25388 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
25389 LDD!$LDD$ac_delim
25390 LIBOBJS!$LIBOBJS$ac_delim
25391 LTLIBOBJS!$LTLIBOBJS$ac_delim
25392 _ACEOF
25393
25394   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
25395     break
25396   elif $ac_last_try; then
25397     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25398 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25399    { (exit 1); exit 1; }; }
25400   else
25401     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25402   fi
25403 done
25404
25405 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25406 if test -n "$ac_eof"; then
25407   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25408   ac_eof=`expr $ac_eof + 1`
25409 fi
25410
25411 cat >>$CONFIG_STATUS <<_ACEOF
25412 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25414 _ACEOF
25415 sed '
25416 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25417 s/^/s,@/; s/!/@,|#_!!_#|/
25418 :n
25419 t n
25420 s/'"$ac_delim"'$/,g/; t
25421 s/$/\\/; p
25422 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25423 ' >>$CONFIG_STATUS <conf$$subs.sed
25424 rm -f conf$$subs.sed
25425 cat >>$CONFIG_STATUS <<_ACEOF
25426 :end
25427 s/|#_!!_#|//g
25428 CEOF$ac_eof
25429 _ACEOF
25430
25431
25432 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25433 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25434 # trailing colons and then remove the whole line if VPATH becomes empty
25435 # (actually we leave an empty line to preserve line numbers).
25436 if test "x$srcdir" = x.; then
25437   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25438 s/:*\$(srcdir):*/:/
25439 s/:*\${srcdir}:*/:/
25440 s/:*@srcdir@:*/:/
25441 s/^\([^=]*=[     ]*\):*/\1/
25442 s/:*$//
25443 s/^[^=]*=[       ]*$//
25444 }'
25445 fi
25446
25447 cat >>$CONFIG_STATUS <<\_ACEOF
25448 fi # test -n "$CONFIG_FILES"
25449
25450
25451 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25452 do
25453   case $ac_tag in
25454   :[FHLC]) ac_mode=$ac_tag; continue;;
25455   esac
25456   case $ac_mode$ac_tag in
25457   :[FHL]*:*);;
25458   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25459 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25460    { (exit 1); exit 1; }; };;
25461   :[FH]-) ac_tag=-:-;;
25462   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25463   esac
25464   ac_save_IFS=$IFS
25465   IFS=:
25466   set x $ac_tag
25467   IFS=$ac_save_IFS
25468   shift
25469   ac_file=$1
25470   shift
25471
25472   case $ac_mode in
25473   :L) ac_source=$1;;
25474   :[FH])
25475     ac_file_inputs=
25476     for ac_f
25477     do
25478       case $ac_f in
25479       -) ac_f="$tmp/stdin";;
25480       *) # Look for the file first in the build tree, then in the source tree
25481          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25482          # because $ac_f cannot contain `:'.
25483          test -f "$ac_f" ||
25484            case $ac_f in
25485            [\\/$]*) false;;
25486            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25487            esac ||
25488            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25489 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25490    { (exit 1); exit 1; }; };;
25491       esac
25492       ac_file_inputs="$ac_file_inputs $ac_f"
25493     done
25494
25495     # Let's still pretend it is `configure' which instantiates (i.e., don't
25496     # use $as_me), people would be surprised to read:
25497     #    /* config.h.  Generated by config.status.  */
25498     configure_input="Generated from "`IFS=:
25499           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25500     if test x"$ac_file" != x-; then
25501       configure_input="$ac_file.  $configure_input"
25502       { echo "$as_me:$LINENO: creating $ac_file" >&5
25503 echo "$as_me: creating $ac_file" >&6;}
25504     fi
25505
25506     case $ac_tag in
25507     *:-:* | *:-) cat >"$tmp/stdin";;
25508     esac
25509     ;;
25510   esac
25511
25512   ac_dir=`$as_dirname -- "$ac_file" ||
25513 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25514          X"$ac_file" : 'X\(//\)[^/]' \| \
25515          X"$ac_file" : 'X\(//\)$' \| \
25516          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25517 echo X"$ac_file" |
25518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25519             s//\1/
25520             q
25521           }
25522           /^X\(\/\/\)[^/].*/{
25523             s//\1/
25524             q
25525           }
25526           /^X\(\/\/\)$/{
25527             s//\1/
25528             q
25529           }
25530           /^X\(\/\).*/{
25531             s//\1/
25532             q
25533           }
25534           s/.*/./; q'`
25535   { as_dir="$ac_dir"
25536   case $as_dir in #(
25537   -*) as_dir=./$as_dir;;
25538   esac
25539   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25540     as_dirs=
25541     while :; do
25542       case $as_dir in #(
25543       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25544       *) as_qdir=$as_dir;;
25545       esac
25546       as_dirs="'$as_qdir' $as_dirs"
25547       as_dir=`$as_dirname -- "$as_dir" ||
25548 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25549          X"$as_dir" : 'X\(//\)[^/]' \| \
25550          X"$as_dir" : 'X\(//\)$' \| \
25551          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25552 echo X"$as_dir" |
25553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25554             s//\1/
25555             q
25556           }
25557           /^X\(\/\/\)[^/].*/{
25558             s//\1/
25559             q
25560           }
25561           /^X\(\/\/\)$/{
25562             s//\1/
25563             q
25564           }
25565           /^X\(\/\).*/{
25566             s//\1/
25567             q
25568           }
25569           s/.*/./; q'`
25570       test -d "$as_dir" && break
25571     done
25572     test -z "$as_dirs" || eval "mkdir $as_dirs"
25573   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25574 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25575    { (exit 1); exit 1; }; }; }
25576   ac_builddir=.
25577
25578 case "$ac_dir" in
25579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25580 *)
25581   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25582   # A ".." for each directory in $ac_dir_suffix.
25583   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25584   case $ac_top_builddir_sub in
25585   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25586   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25587   esac ;;
25588 esac
25589 ac_abs_top_builddir=$ac_pwd
25590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25591 # for backward compatibility:
25592 ac_top_builddir=$ac_top_build_prefix
25593
25594 case $srcdir in
25595   .)  # We are building in place.
25596     ac_srcdir=.
25597     ac_top_srcdir=$ac_top_builddir_sub
25598     ac_abs_top_srcdir=$ac_pwd ;;
25599   [\\/]* | ?:[\\/]* )  # Absolute name.
25600     ac_srcdir=$srcdir$ac_dir_suffix;
25601     ac_top_srcdir=$srcdir
25602     ac_abs_top_srcdir=$srcdir ;;
25603   *) # Relative name.
25604     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25605     ac_top_srcdir=$ac_top_build_prefix$srcdir
25606     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25607 esac
25608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25609
25610
25611   case $ac_mode in
25612   :F)
25613   #
25614   # CONFIG_FILE
25615   #
25616
25617   case $INSTALL in
25618   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25619   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25620   esac
25621 _ACEOF
25622
25623 cat >>$CONFIG_STATUS <<\_ACEOF
25624 # If the template does not know about datarootdir, expand it.
25625 # FIXME: This hack should be removed a few years after 2.60.
25626 ac_datarootdir_hack=; ac_datarootdir_seen=
25627
25628 case `sed -n '/datarootdir/ {
25629   p
25630   q
25631 }
25632 /@datadir@/p
25633 /@docdir@/p
25634 /@infodir@/p
25635 /@localedir@/p
25636 /@mandir@/p
25637 ' $ac_file_inputs` in
25638 *datarootdir*) ac_datarootdir_seen=yes;;
25639 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25640   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25641 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25642 _ACEOF
25643 cat >>$CONFIG_STATUS <<_ACEOF
25644   ac_datarootdir_hack='
25645   s&@datadir@&$datadir&g
25646   s&@docdir@&$docdir&g
25647   s&@infodir@&$infodir&g
25648   s&@localedir@&$localedir&g
25649   s&@mandir@&$mandir&g
25650     s&\\\${datarootdir}&$datarootdir&g' ;;
25651 esac
25652 _ACEOF
25653
25654 # Neutralize VPATH when `$srcdir' = `.'.
25655 # Shell code in configure.ac might set extrasub.
25656 # FIXME: do we really want to maintain this feature?
25657 cat >>$CONFIG_STATUS <<_ACEOF
25658   sed "$ac_vpsub
25659 $extrasub
25660 _ACEOF
25661 cat >>$CONFIG_STATUS <<\_ACEOF
25662 :t
25663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25664 s&@configure_input@&$configure_input&;t t
25665 s&@top_builddir@&$ac_top_builddir_sub&;t t
25666 s&@srcdir@&$ac_srcdir&;t t
25667 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25668 s&@top_srcdir@&$ac_top_srcdir&;t t
25669 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25670 s&@builddir@&$ac_builddir&;t t
25671 s&@abs_builddir@&$ac_abs_builddir&;t t
25672 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25673 s&@INSTALL@&$ac_INSTALL&;t t
25674 $ac_datarootdir_hack
25675 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25676
25677 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25678   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25679   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25680   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25681 which seems to be undefined.  Please make sure it is defined." >&5
25682 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25683 which seems to be undefined.  Please make sure it is defined." >&2;}
25684
25685   rm -f "$tmp/stdin"
25686   case $ac_file in
25687   -) cat "$tmp/out"; rm -f "$tmp/out";;
25688   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25689   esac
25690  ;;
25691   :H)
25692   #
25693   # CONFIG_HEADER
25694   #
25695 _ACEOF
25696
25697 # Transform confdefs.h into a sed script `conftest.defines', that
25698 # substitutes the proper values into config.h.in to produce config.h.
25699 rm -f conftest.defines conftest.tail
25700 # First, append a space to every undef/define line, to ease matching.
25701 echo 's/$/ /' >conftest.defines
25702 # Then, protect against being on the right side of a sed subst, or in
25703 # an unquoted here document, in config.status.  If some macros were
25704 # called several times there might be several #defines for the same
25705 # symbol, which is useless.  But do not sort them, since the last
25706 # AC_DEFINE must be honored.
25707 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25708 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25709 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25710 # PARAMS is the parameter list in the macro definition--in most cases, it's
25711 # just an empty string.
25712 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25713 ac_dB='\\)[      (].*,\\1define\\2'
25714 ac_dC=' '
25715 ac_dD=' ,'
25716
25717 uniq confdefs.h |
25718   sed -n '
25719         t rset
25720         :rset
25721         s/^[     ]*#[    ]*define[       ][      ]*//
25722         t ok
25723         d
25724         :ok
25725         s/[\\&,]/\\&/g
25726         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25727         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25728   ' >>conftest.defines
25729
25730 # Remove the space that was appended to ease matching.
25731 # Then replace #undef with comments.  This is necessary, for
25732 # example, in the case of _POSIX_SOURCE, which is predefined and required
25733 # on some systems where configure will not decide to define it.
25734 # (The regexp can be short, since the line contains either #define or #undef.)
25735 echo 's/ $//
25736 s,^[     #]*u.*,/* & */,' >>conftest.defines
25737
25738 # Break up conftest.defines:
25739 ac_max_sed_lines=50
25740
25741 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25742 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25743 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25744 # et cetera.
25745 ac_in='$ac_file_inputs'
25746 ac_out='"$tmp/out1"'
25747 ac_nxt='"$tmp/out2"'
25748
25749 while :
25750 do
25751   # Write a here document:
25752     cat >>$CONFIG_STATUS <<_ACEOF
25753     # First, check the format of the line:
25754     cat >"\$tmp/defines.sed" <<\\CEOF
25755 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25756 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25757 b
25758 :def
25759 _ACEOF
25760   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25761   echo 'CEOF
25762     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25763   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25764   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25765   grep . conftest.tail >/dev/null || break
25766   rm -f conftest.defines
25767   mv conftest.tail conftest.defines
25768 done
25769 rm -f conftest.defines conftest.tail
25770
25771 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25772 cat >>$CONFIG_STATUS <<\_ACEOF
25773   if test x"$ac_file" != x-; then
25774     echo "/* $configure_input  */" >"$tmp/config.h"
25775     cat "$ac_result" >>"$tmp/config.h"
25776     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25777       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25778 echo "$as_me: $ac_file is unchanged" >&6;}
25779     else
25780       rm -f $ac_file
25781       mv "$tmp/config.h" $ac_file
25782     fi
25783   else
25784     echo "/* $configure_input  */"
25785     cat "$ac_result"
25786   fi
25787   rm -f "$tmp/out12"
25788  ;;
25789
25790   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25791 echo "$as_me: executing $ac_file commands" >&6;}
25792  ;;
25793   esac
25794
25795
25796   case $ac_file$ac_mode in
25797     "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25798 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25799     "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25800 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25801     "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
25802 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
25803     "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25804 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25805     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25806 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25807     "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25808 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25809
25810   esac
25811 done # for ac_tag
25812
25813
25814 { (exit 0); exit 0; }
25815 _ACEOF
25816 chmod +x $CONFIG_STATUS
25817 ac_clean_files=$ac_clean_files_save
25818
25819
25820 # configure is writing to config.log, and then calls config.status.
25821 # config.status does its own redirection, appending to config.log.
25822 # Unfortunately, on DOS this fails, as config.log is still kept open
25823 # by configure, so config.status won't be able to write to it; its
25824 # output is simply discarded.  So we exec the FD to /dev/null,
25825 # effectively closing config.log, so it can be properly (re)opened and
25826 # appended to by config.status.  When coming back to configure, we
25827 # need to make the FD available again.
25828 if test "$no_create" != yes; then
25829   ac_cs_success=:
25830   ac_config_status_args=
25831   test "$silent" = yes &&
25832     ac_config_status_args="$ac_config_status_args --quiet"
25833   exec 5>/dev/null
25834   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25835   exec 5>>config.log
25836   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25837   # would make configure fail if this is the last instruction.
25838   $ac_cs_success || { (exit 1); exit 1; }
25839 fi
25840
25841
25842 if test "$have_x" = "no"
25843 then
25844   echo >&2
25845   { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25846 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25847   { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25848 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25849   { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25850 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25851   { echo "$as_me:$LINENO: WARNING:  packages of Xlib/Xfree86 at the very least." >&5
25852 echo "$as_me: WARNING:  packages of Xlib/Xfree86 at the very least." >&2;}
25853 fi
25854
25855 if test "$wine_cv_opengl_version_OK" = "no"
25856 then
25857   echo >&2
25858   { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5
25859 echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;}
25860   { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25861 echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
25862 fi
25863
25864 if test "$wine_cv_msg_freetype" = "yes"
25865 then
25866   echo >&2
25867   { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25868 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25869   { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25870 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25871   { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25872 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25873   { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25874 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
25875 fi
25876
25877 if test -z "$FONTSSUBDIRS"
25878 then
25879   echo >&2
25880   if test "$FONTFORGE" = "false"
25881   then
25882     { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
25883 echo "$as_me: WARNING: FontForge is missing." >&2;}
25884   else
25885     { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
25886 echo "$as_me: WARNING: FreeType is missing." >&2;}
25887   fi
25888   { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
25889 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
25890 fi
25891
25892 if test -z "$ALSALIBS" -a \
25893         -z "$ARTSC_LIBS" -a \
25894         -z "$AUDIOIOLIBS" -a \
25895         -z "$NASLIBS" -a \
25896         -z "$ESD_LIBS" -a \
25897         -z "$ac_cv_lib_soname_jack" -a \
25898         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
25899         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
25900         "$ac_cv_header_soundcard_h" != "yes"
25901 then
25902   echo >&2
25903   { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
25904 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
25905   { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
25906 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
25907   { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
25908 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
25909 fi
25910
25911 echo
25912 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
25913 echo
25914