Release 0.9.18.
[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     case `(uname -sr) 2>/dev/null` in
4122     "SunOS 5"*)
4123       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4124 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4125       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
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   ac_R_nospace=yes
4176 else
4177   echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4179
4180         ac_R_nospace=no
4181 fi
4182
4183 rm -f core conftest.err conftest.$ac_objext \
4184       conftest$ac_exeext conftest.$ac_ext
4185       if test $ac_R_nospace = yes; then
4186         { echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6; }
4188         X_LIBS="$X_LIBS -R$x_libraries"
4189       else
4190         LIBS="$ac_xsave_LIBS -R $x_libraries"
4191         cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h.  */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h.  */
4197
4198 int
4199 main ()
4200 {
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 rm -f conftest.$ac_objext conftest$ac_exeext
4207 if { (ac_try="$ac_link"
4208 case "(($ac_try" in
4209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210   *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213   (eval "$ac_link") 2>conftest.er1
4214   ac_status=$?
4215   grep -v '^ *+' conftest.er1 >conftest.err
4216   rm -f conftest.er1
4217   cat conftest.err >&5
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } &&
4220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221   { (case "(($ac_try" in
4222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223   *) ac_try_echo=$ac_try;;
4224 esac
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226   (eval "$ac_try") 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); }; } &&
4230          { ac_try='test -s conftest$ac_exeext'
4231   { (case "(($ac_try" in
4232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233   *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236   (eval "$ac_try") 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; }; then
4240   ac_R_space=yes
4241 else
4242   echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245         ac_R_space=no
4246 fi
4247
4248 rm -f core conftest.err conftest.$ac_objext \
4249       conftest$ac_exeext conftest.$ac_ext
4250         if test $ac_R_space = yes; then
4251           { echo "$as_me:$LINENO: result: yes" >&5
4252 echo "${ECHO_T}yes" >&6; }
4253           X_LIBS="$X_LIBS -R $x_libraries"
4254         else
4255           { echo "$as_me:$LINENO: result: neither works" >&5
4256 echo "${ECHO_T}neither works" >&6; }
4257         fi
4258       fi
4259       LIBS=$ac_xsave_LIBS
4260     esac
4261   fi
4262
4263   # Check for system-dependent libraries X programs must link with.
4264   # Do this before checking for the system-independent R6 libraries
4265   # (-lICE), since we may need -lsocket or whatever for X linking.
4266
4267   if test "$ISC" = yes; then
4268     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4269   else
4270     # Martyn Johnson says this is needed for Ultrix, if the X
4271     # libraries were built with DECnet support.  And Karl Berry says
4272     # the Alpha needs dnet_stub (dnet does not exist).
4273     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4274     cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h.  */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h.  */
4280
4281 /* Override any GCC internal prototype to avoid an error.
4282    Use char because int might match the return type of a GCC
4283    builtin and then its argument prototype would still apply.  */
4284 #ifdef __cplusplus
4285 extern "C"
4286 #endif
4287 char XOpenDisplay ();
4288 int
4289 main ()
4290 {
4291 return XOpenDisplay ();
4292   ;
4293   return 0;
4294 }
4295 _ACEOF
4296 rm -f conftest.$ac_objext conftest$ac_exeext
4297 if { (ac_try="$ac_link"
4298 case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303   (eval "$ac_link") 2>conftest.er1
4304   ac_status=$?
4305   grep -v '^ *+' conftest.er1 >conftest.err
4306   rm -f conftest.er1
4307   cat conftest.err >&5
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); } &&
4310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4320          { ac_try='test -s conftest$ac_exeext'
4321   { (case "(($ac_try" in
4322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323   *) ac_try_echo=$ac_try;;
4324 esac
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326   (eval "$ac_try") 2>&5
4327   ac_status=$?
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); }; }; then
4330   :
4331 else
4332   echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4334
4335         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4336 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4337 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340   ac_check_lib_save_LIBS=$LIBS
4341 LIBS="-ldnet  $LIBS"
4342 cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h.  */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h.  */
4348
4349 /* Override any GCC internal prototype to avoid an error.
4350    Use char because int might match the return type of a GCC
4351    builtin and then its argument prototype would still apply.  */
4352 #ifdef __cplusplus
4353 extern "C"
4354 #endif
4355 char dnet_ntoa ();
4356 int
4357 main ()
4358 {
4359 return dnet_ntoa ();
4360   ;
4361   return 0;
4362 }
4363 _ACEOF
4364 rm -f conftest.$ac_objext conftest$ac_exeext
4365 if { (ac_try="$ac_link"
4366 case "(($ac_try" in
4367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368   *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371   (eval "$ac_link") 2>conftest.er1
4372   ac_status=$?
4373   grep -v '^ *+' conftest.er1 >conftest.err
4374   rm -f conftest.er1
4375   cat conftest.err >&5
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); } &&
4378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4388          { ac_try='test -s conftest$ac_exeext'
4389   { (case "(($ac_try" in
4390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391   *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394   (eval "$ac_try") 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); }; }; then
4398   ac_cv_lib_dnet_dnet_ntoa=yes
4399 else
4400   echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403         ac_cv_lib_dnet_dnet_ntoa=no
4404 fi
4405
4406 rm -f core conftest.err conftest.$ac_objext \
4407       conftest$ac_exeext conftest.$ac_ext
4408 LIBS=$ac_check_lib_save_LIBS
4409 fi
4410 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4411 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4412 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4413   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4414 fi
4415
4416     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4417       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4418 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4419 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4420   echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422   ac_check_lib_save_LIBS=$LIBS
4423 LIBS="-ldnet_stub  $LIBS"
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h.  */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h.  */
4430
4431 /* Override any GCC internal prototype to avoid an error.
4432    Use char because int might match the return type of a GCC
4433    builtin and then its argument prototype would still apply.  */
4434 #ifdef __cplusplus
4435 extern "C"
4436 #endif
4437 char dnet_ntoa ();
4438 int
4439 main ()
4440 {
4441 return dnet_ntoa ();
4442   ;
4443   return 0;
4444 }
4445 _ACEOF
4446 rm -f conftest.$ac_objext conftest$ac_exeext
4447 if { (ac_try="$ac_link"
4448 case "(($ac_try" in
4449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450   *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453   (eval "$ac_link") 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } &&
4460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4470          { ac_try='test -s conftest$ac_exeext'
4471   { (case "(($ac_try" in
4472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473   *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476   (eval "$ac_try") 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); }; }; then
4480   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4481 else
4482   echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485         ac_cv_lib_dnet_stub_dnet_ntoa=no
4486 fi
4487
4488 rm -f core conftest.err conftest.$ac_objext \
4489       conftest$ac_exeext conftest.$ac_ext
4490 LIBS=$ac_check_lib_save_LIBS
4491 fi
4492 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4493 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4494 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4495   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4496 fi
4497
4498     fi
4499 fi
4500
4501 rm -f core conftest.err conftest.$ac_objext \
4502       conftest$ac_exeext conftest.$ac_ext
4503     LIBS="$ac_xsave_LIBS"
4504
4505     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4506     # to get the SysV transport functions.
4507     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4508     # needs -lnsl.
4509     # The nsl library prevents programs from opening the X display
4510     # on Irix 5.2, according to T.E. Dickey.
4511     # The functions gethostbyname, getservbyname, and inet_addr are
4512     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4513     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4514 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4515 if test "${ac_cv_func_gethostbyname+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518   cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4526 #define gethostbyname innocuous_gethostbyname
4527
4528 /* System header to define __stub macros and hopefully few prototypes,
4529     which can conflict with char gethostbyname (); below.
4530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531     <limits.h> exists even on freestanding compilers.  */
4532
4533 #ifdef __STDC__
4534 # include <limits.h>
4535 #else
4536 # include <assert.h>
4537 #endif
4538
4539 #undef gethostbyname
4540
4541 /* Override any GCC internal prototype to avoid an error.
4542    Use char because int might match the return type of a GCC
4543    builtin and then its argument prototype would still apply.  */
4544 #ifdef __cplusplus
4545 extern "C"
4546 #endif
4547 char gethostbyname ();
4548 /* The GNU C library defines this for functions which it implements
4549     to always fail with ENOSYS.  Some functions are actually named
4550     something starting with __ and the normal name is an alias.  */
4551 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4552 choke me
4553 #endif
4554
4555 int
4556 main ()
4557 {
4558 return gethostbyname ();
4559   ;
4560   return 0;
4561 }
4562 _ACEOF
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (ac_try="$ac_link"
4565 case "(($ac_try" in
4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567   *) ac_try_echo=$ac_try;;
4568 esac
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570   (eval "$ac_link") 2>conftest.er1
4571   ac_status=$?
4572   grep -v '^ *+' conftest.er1 >conftest.err
4573   rm -f conftest.er1
4574   cat conftest.err >&5
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); } &&
4577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4587          { ac_try='test -s conftest$ac_exeext'
4588   { (case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593   (eval "$ac_try") 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; }; then
4597   ac_cv_func_gethostbyname=yes
4598 else
4599   echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602         ac_cv_func_gethostbyname=no
4603 fi
4604
4605 rm -f core conftest.err conftest.$ac_objext \
4606       conftest$ac_exeext conftest.$ac_ext
4607 fi
4608 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4609 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4610
4611     if test $ac_cv_func_gethostbyname = no; then
4612       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4613 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4614 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   ac_check_lib_save_LIBS=$LIBS
4618 LIBS="-lnsl  $LIBS"
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h.  */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h.  */
4625
4626 /* Override any GCC internal prototype to avoid an error.
4627    Use char because int might match the return type of a GCC
4628    builtin and then its argument prototype would still apply.  */
4629 #ifdef __cplusplus
4630 extern "C"
4631 #endif
4632 char gethostbyname ();
4633 int
4634 main ()
4635 {
4636 return gethostbyname ();
4637   ;
4638   return 0;
4639 }
4640 _ACEOF
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (ac_try="$ac_link"
4643 case "(($ac_try" in
4644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645   *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648   (eval "$ac_link") 2>conftest.er1
4649   ac_status=$?
4650   grep -v '^ *+' conftest.er1 >conftest.err
4651   rm -f conftest.er1
4652   cat conftest.err >&5
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); } &&
4655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4665          { ac_try='test -s conftest$ac_exeext'
4666   { (case "(($ac_try" in
4667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668   *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671   (eval "$ac_try") 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }; }; then
4675   ac_cv_lib_nsl_gethostbyname=yes
4676 else
4677   echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4679
4680         ac_cv_lib_nsl_gethostbyname=no
4681 fi
4682
4683 rm -f core conftest.err conftest.$ac_objext \
4684       conftest$ac_exeext conftest.$ac_ext
4685 LIBS=$ac_check_lib_save_LIBS
4686 fi
4687 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4688 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4689 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4690   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4691 fi
4692
4693       if test $ac_cv_lib_nsl_gethostbyname = no; then
4694         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4695 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4696 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4697   echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699   ac_check_lib_save_LIBS=$LIBS
4700 LIBS="-lbsd  $LIBS"
4701 cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707
4708 /* Override any GCC internal prototype to avoid an error.
4709    Use char because int might match the return type of a GCC
4710    builtin and then its argument prototype would still apply.  */
4711 #ifdef __cplusplus
4712 extern "C"
4713 #endif
4714 char gethostbyname ();
4715 int
4716 main ()
4717 {
4718 return gethostbyname ();
4719   ;
4720   return 0;
4721 }
4722 _ACEOF
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (ac_try="$ac_link"
4725 case "(($ac_try" in
4726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727   *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730   (eval "$ac_link") 2>conftest.er1
4731   ac_status=$?
4732   grep -v '^ *+' conftest.er1 >conftest.err
4733   rm -f conftest.er1
4734   cat conftest.err >&5
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } &&
4737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4747          { ac_try='test -s conftest$ac_exeext'
4748   { (case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753   (eval "$ac_try") 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }; }; then
4757   ac_cv_lib_bsd_gethostbyname=yes
4758 else
4759   echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4761
4762         ac_cv_lib_bsd_gethostbyname=no
4763 fi
4764
4765 rm -f core conftest.err conftest.$ac_objext \
4766       conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_check_lib_save_LIBS
4768 fi
4769 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4770 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4771 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4772   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4773 fi
4774
4775       fi
4776     fi
4777
4778     # lieder@skyler.mavd.honeywell.com says without -lsocket,
4779     # socket/setsockopt and other routines are undefined under SCO ODT
4780     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4781     # on later versions), says Simon Leinen: it contains gethostby*
4782     # variants that don't use the name server (or something).  -lsocket
4783     # must be given before -lnsl if both are needed.  We assume that
4784     # if connect needs -lnsl, so does gethostbyname.
4785     { echo "$as_me:$LINENO: checking for connect" >&5
4786 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4787 if test "${ac_cv_func_connect+set}" = set; then
4788   echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790   cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h.  */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h.  */
4796 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4798 #define connect innocuous_connect
4799
4800 /* System header to define __stub macros and hopefully few prototypes,
4801     which can conflict with char connect (); below.
4802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803     <limits.h> exists even on freestanding compilers.  */
4804
4805 #ifdef __STDC__
4806 # include <limits.h>
4807 #else
4808 # include <assert.h>
4809 #endif
4810
4811 #undef connect
4812
4813 /* Override any GCC internal prototype to avoid an error.
4814    Use char because int might match the return type of a GCC
4815    builtin and then its argument prototype would still apply.  */
4816 #ifdef __cplusplus
4817 extern "C"
4818 #endif
4819 char connect ();
4820 /* The GNU C library defines this for functions which it implements
4821     to always fail with ENOSYS.  Some functions are actually named
4822     something starting with __ and the normal name is an alias.  */
4823 #if defined __stub_connect || defined __stub___connect
4824 choke me
4825 #endif
4826
4827 int
4828 main ()
4829 {
4830 return connect ();
4831   ;
4832   return 0;
4833 }
4834 _ACEOF
4835 rm -f conftest.$ac_objext conftest$ac_exeext
4836 if { (ac_try="$ac_link"
4837 case "(($ac_try" in
4838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839   *) ac_try_echo=$ac_try;;
4840 esac
4841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842   (eval "$ac_link") 2>conftest.er1
4843   ac_status=$?
4844   grep -v '^ *+' conftest.er1 >conftest.err
4845   rm -f conftest.er1
4846   cat conftest.err >&5
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); } &&
4849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4859          { ac_try='test -s conftest$ac_exeext'
4860   { (case "(($ac_try" in
4861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862   *) ac_try_echo=$ac_try;;
4863 esac
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865   (eval "$ac_try") 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; }; then
4869   ac_cv_func_connect=yes
4870 else
4871   echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874         ac_cv_func_connect=no
4875 fi
4876
4877 rm -f core conftest.err conftest.$ac_objext \
4878       conftest$ac_exeext conftest.$ac_ext
4879 fi
4880 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4881 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4882
4883     if test $ac_cv_func_connect = no; then
4884       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4885 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4886 if test "${ac_cv_lib_socket_connect+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   ac_check_lib_save_LIBS=$LIBS
4890 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h.  */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h.  */
4897
4898 /* Override any GCC internal prototype to avoid an error.
4899    Use char because int might match the return type of a GCC
4900    builtin and then its argument prototype would still apply.  */
4901 #ifdef __cplusplus
4902 extern "C"
4903 #endif
4904 char connect ();
4905 int
4906 main ()
4907 {
4908 return connect ();
4909   ;
4910   return 0;
4911 }
4912 _ACEOF
4913 rm -f conftest.$ac_objext conftest$ac_exeext
4914 if { (ac_try="$ac_link"
4915 case "(($ac_try" in
4916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917   *) ac_try_echo=$ac_try;;
4918 esac
4919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920   (eval "$ac_link") 2>conftest.er1
4921   ac_status=$?
4922   grep -v '^ *+' conftest.er1 >conftest.err
4923   rm -f conftest.er1
4924   cat conftest.err >&5
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } &&
4927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4937          { ac_try='test -s conftest$ac_exeext'
4938   { (case "(($ac_try" in
4939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940   *) ac_try_echo=$ac_try;;
4941 esac
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943   (eval "$ac_try") 2>&5
4944   ac_status=$?
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); }; }; then
4947   ac_cv_lib_socket_connect=yes
4948 else
4949   echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952         ac_cv_lib_socket_connect=no
4953 fi
4954
4955 rm -f core conftest.err conftest.$ac_objext \
4956       conftest$ac_exeext conftest.$ac_ext
4957 LIBS=$ac_check_lib_save_LIBS
4958 fi
4959 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4960 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4961 if test $ac_cv_lib_socket_connect = yes; then
4962   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4963 fi
4964
4965     fi
4966
4967     # Guillermo Gomez says -lposix is necessary on A/UX.
4968     { echo "$as_me:$LINENO: checking for remove" >&5
4969 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4970 if test "${ac_cv_func_remove+set}" = set; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973   cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4981 #define remove innocuous_remove
4982
4983 /* System header to define __stub macros and hopefully few prototypes,
4984     which can conflict with char remove (); below.
4985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986     <limits.h> exists even on freestanding compilers.  */
4987
4988 #ifdef __STDC__
4989 # include <limits.h>
4990 #else
4991 # include <assert.h>
4992 #endif
4993
4994 #undef remove
4995
4996 /* Override any GCC internal prototype to avoid an error.
4997    Use char because int might match the return type of a GCC
4998    builtin and then its argument prototype would still apply.  */
4999 #ifdef __cplusplus
5000 extern "C"
5001 #endif
5002 char remove ();
5003 /* The GNU C library defines this for functions which it implements
5004     to always fail with ENOSYS.  Some functions are actually named
5005     something starting with __ and the normal name is an alias.  */
5006 #if defined __stub_remove || defined __stub___remove
5007 choke me
5008 #endif
5009
5010 int
5011 main ()
5012 {
5013 return remove ();
5014   ;
5015   return 0;
5016 }
5017 _ACEOF
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (ac_try="$ac_link"
5020 case "(($ac_try" in
5021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022   *) ac_try_echo=$ac_try;;
5023 esac
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025   (eval "$ac_link") 2>conftest.er1
5026   ac_status=$?
5027   grep -v '^ *+' conftest.er1 >conftest.err
5028   rm -f conftest.er1
5029   cat conftest.err >&5
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); } &&
5032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5042          { ac_try='test -s conftest$ac_exeext'
5043   { (case "(($ac_try" in
5044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045   *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048   (eval "$ac_try") 2>&5
5049   ac_status=$?
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); }; }; then
5052   ac_cv_func_remove=yes
5053 else
5054   echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057         ac_cv_func_remove=no
5058 fi
5059
5060 rm -f core conftest.err conftest.$ac_objext \
5061       conftest$ac_exeext conftest.$ac_ext
5062 fi
5063 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5064 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5065
5066     if test $ac_cv_func_remove = no; then
5067       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5068 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5069 if test "${ac_cv_lib_posix_remove+set}" = set; then
5070   echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072   ac_check_lib_save_LIBS=$LIBS
5073 LIBS="-lposix  $LIBS"
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h.  */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h.  */
5080
5081 /* Override any GCC internal prototype to avoid an error.
5082    Use char because int might match the return type of a GCC
5083    builtin and then its argument prototype would still apply.  */
5084 #ifdef __cplusplus
5085 extern "C"
5086 #endif
5087 char remove ();
5088 int
5089 main ()
5090 {
5091 return remove ();
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (ac_try="$ac_link"
5098 case "(($ac_try" in
5099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100   *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103   (eval "$ac_link") 2>conftest.er1
5104   ac_status=$?
5105   grep -v '^ *+' conftest.er1 >conftest.err
5106   rm -f conftest.er1
5107   cat conftest.err >&5
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } &&
5110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5120          { ac_try='test -s conftest$ac_exeext'
5121   { (case "(($ac_try" in
5122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123   *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126   (eval "$ac_try") 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); }; }; then
5130   ac_cv_lib_posix_remove=yes
5131 else
5132   echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135         ac_cv_lib_posix_remove=no
5136 fi
5137
5138 rm -f core conftest.err conftest.$ac_objext \
5139       conftest$ac_exeext conftest.$ac_ext
5140 LIBS=$ac_check_lib_save_LIBS
5141 fi
5142 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5143 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5144 if test $ac_cv_lib_posix_remove = yes; then
5145   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5146 fi
5147
5148     fi
5149
5150     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5151     { echo "$as_me:$LINENO: checking for shmat" >&5
5152 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5153 if test "${ac_cv_func_shmat+set}" = set; then
5154   echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156   cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h.  */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h.  */
5162 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5164 #define shmat innocuous_shmat
5165
5166 /* System header to define __stub macros and hopefully few prototypes,
5167     which can conflict with char shmat (); below.
5168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169     <limits.h> exists even on freestanding compilers.  */
5170
5171 #ifdef __STDC__
5172 # include <limits.h>
5173 #else
5174 # include <assert.h>
5175 #endif
5176
5177 #undef shmat
5178
5179 /* Override any GCC internal prototype to avoid an error.
5180    Use char because int might match the return type of a GCC
5181    builtin and then its argument prototype would still apply.  */
5182 #ifdef __cplusplus
5183 extern "C"
5184 #endif
5185 char shmat ();
5186 /* The GNU C library defines this for functions which it implements
5187     to always fail with ENOSYS.  Some functions are actually named
5188     something starting with __ and the normal name is an alias.  */
5189 #if defined __stub_shmat || defined __stub___shmat
5190 choke me
5191 #endif
5192
5193 int
5194 main ()
5195 {
5196 return shmat ();
5197   ;
5198   return 0;
5199 }
5200 _ACEOF
5201 rm -f conftest.$ac_objext conftest$ac_exeext
5202 if { (ac_try="$ac_link"
5203 case "(($ac_try" in
5204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205   *) ac_try_echo=$ac_try;;
5206 esac
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208   (eval "$ac_link") 2>conftest.er1
5209   ac_status=$?
5210   grep -v '^ *+' conftest.er1 >conftest.err
5211   rm -f conftest.er1
5212   cat conftest.err >&5
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); } &&
5215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5225          { ac_try='test -s conftest$ac_exeext'
5226   { (case "(($ac_try" in
5227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228   *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231   (eval "$ac_try") 2>&5
5232   ac_status=$?
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); }; }; then
5235   ac_cv_func_shmat=yes
5236 else
5237   echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240         ac_cv_func_shmat=no
5241 fi
5242
5243 rm -f core conftest.err conftest.$ac_objext \
5244       conftest$ac_exeext conftest.$ac_ext
5245 fi
5246 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5247 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5248
5249     if test $ac_cv_func_shmat = no; then
5250       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5251 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5252 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5253   echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255   ac_check_lib_save_LIBS=$LIBS
5256 LIBS="-lipc  $LIBS"
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h.  */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h.  */
5263
5264 /* Override any GCC internal prototype to avoid an error.
5265    Use char because int might match the return type of a GCC
5266    builtin and then its argument prototype would still apply.  */
5267 #ifdef __cplusplus
5268 extern "C"
5269 #endif
5270 char shmat ();
5271 int
5272 main ()
5273 {
5274 return shmat ();
5275   ;
5276   return 0;
5277 }
5278 _ACEOF
5279 rm -f conftest.$ac_objext conftest$ac_exeext
5280 if { (ac_try="$ac_link"
5281 case "(($ac_try" in
5282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283   *) ac_try_echo=$ac_try;;
5284 esac
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286   (eval "$ac_link") 2>conftest.er1
5287   ac_status=$?
5288   grep -v '^ *+' conftest.er1 >conftest.err
5289   rm -f conftest.er1
5290   cat conftest.err >&5
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } &&
5293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5303          { ac_try='test -s conftest$ac_exeext'
5304   { (case "(($ac_try" in
5305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306   *) ac_try_echo=$ac_try;;
5307 esac
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309   (eval "$ac_try") 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); }; }; then
5313   ac_cv_lib_ipc_shmat=yes
5314 else
5315   echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5317
5318         ac_cv_lib_ipc_shmat=no
5319 fi
5320
5321 rm -f core conftest.err conftest.$ac_objext \
5322       conftest$ac_exeext conftest.$ac_ext
5323 LIBS=$ac_check_lib_save_LIBS
5324 fi
5325 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5326 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5327 if test $ac_cv_lib_ipc_shmat = yes; then
5328   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5329 fi
5330
5331     fi
5332   fi
5333
5334   # Check for libraries that X11R6 Xt/Xaw programs need.
5335   ac_save_LDFLAGS=$LDFLAGS
5336   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5337   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5338   # check for ICE first), but we must link in the order -lSM -lICE or
5339   # we get undefined symbols.  So assume we have SM if we have ICE.
5340   # These have to be linked with before -lX11, unlike the other
5341   # libraries we check for below, so use a different variable.
5342   # John Interrante, Karl Berry
5343   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5344 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5345 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   ac_check_lib_save_LIBS=$LIBS
5349 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h.  */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h.  */
5356
5357 /* Override any GCC internal prototype to avoid an error.
5358    Use char because int might match the return type of a GCC
5359    builtin and then its argument prototype would still apply.  */
5360 #ifdef __cplusplus
5361 extern "C"
5362 #endif
5363 char IceConnectionNumber ();
5364 int
5365 main ()
5366 {
5367 return IceConnectionNumber ();
5368   ;
5369   return 0;
5370 }
5371 _ACEOF
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (ac_try="$ac_link"
5374 case "(($ac_try" in
5375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376   *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379   (eval "$ac_link") 2>conftest.er1
5380   ac_status=$?
5381   grep -v '^ *+' conftest.er1 >conftest.err
5382   rm -f conftest.er1
5383   cat conftest.err >&5
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); } &&
5386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5396          { ac_try='test -s conftest$ac_exeext'
5397   { (case "(($ac_try" in
5398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399   *) ac_try_echo=$ac_try;;
5400 esac
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402   (eval "$ac_try") 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; }; then
5406   ac_cv_lib_ICE_IceConnectionNumber=yes
5407 else
5408   echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411         ac_cv_lib_ICE_IceConnectionNumber=no
5412 fi
5413
5414 rm -f core conftest.err conftest.$ac_objext \
5415       conftest$ac_exeext conftest.$ac_ext
5416 LIBS=$ac_check_lib_save_LIBS
5417 fi
5418 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5419 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5420 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5421   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5422 fi
5423
5424   LDFLAGS=$ac_save_LDFLAGS
5425
5426 fi
5427
5428 for ac_prog in flex lex
5429 do
5430   # Extract the first word of "$ac_prog", so it can be a program name with args.
5431 set dummy $ac_prog; ac_word=$2
5432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5434 if test "${ac_cv_prog_LEX+set}" = set; then
5435   echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437   if test -n "$LEX"; then
5438   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443   IFS=$as_save_IFS
5444   test -z "$as_dir" && as_dir=.
5445   for ac_exec_ext in '' $ac_executable_extensions; do
5446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5447     ac_cv_prog_LEX="$ac_prog"
5448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449     break 2
5450   fi
5451 done
5452 done
5453 IFS=$as_save_IFS
5454
5455 fi
5456 fi
5457 LEX=$ac_cv_prog_LEX
5458 if test -n "$LEX"; then
5459   { echo "$as_me:$LINENO: result: $LEX" >&5
5460 echo "${ECHO_T}$LEX" >&6; }
5461 else
5462   { echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6; }
5464 fi
5465
5466
5467   test -n "$LEX" && break
5468 done
5469 test -n "$LEX" || LEX=":"
5470
5471 if test -z "$LEXLIB"
5472 then
5473   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5474 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
5475 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5476   echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478   ac_check_lib_save_LIBS=$LIBS
5479 LIBS="-lfl  $LIBS"
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h.  */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h.  */
5486
5487 /* Override any GCC internal prototype to avoid an error.
5488    Use char because int might match the return type of a GCC
5489    builtin and then its argument prototype would still apply.  */
5490 #ifdef __cplusplus
5491 extern "C"
5492 #endif
5493 char yywrap ();
5494 int
5495 main ()
5496 {
5497 return yywrap ();
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext conftest$ac_exeext
5503 if { (ac_try="$ac_link"
5504 case "(($ac_try" in
5505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506   *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509   (eval "$ac_link") 2>conftest.er1
5510   ac_status=$?
5511   grep -v '^ *+' conftest.er1 >conftest.err
5512   rm -f conftest.er1
5513   cat conftest.err >&5
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); } &&
5516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5526          { ac_try='test -s conftest$ac_exeext'
5527   { (case "(($ac_try" in
5528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529   *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532   (eval "$ac_try") 2>&5
5533   ac_status=$?
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); }; }; then
5536   ac_cv_lib_fl_yywrap=yes
5537 else
5538   echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541         ac_cv_lib_fl_yywrap=no
5542 fi
5543
5544 rm -f core conftest.err conftest.$ac_objext \
5545       conftest$ac_exeext conftest.$ac_ext
5546 LIBS=$ac_check_lib_save_LIBS
5547 fi
5548 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5549 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
5550 if test $ac_cv_lib_fl_yywrap = yes; then
5551   LEXLIB="-lfl"
5552 else
5553   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5554 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
5555 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5556   echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558   ac_check_lib_save_LIBS=$LIBS
5559 LIBS="-ll  $LIBS"
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h.  */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h.  */
5566
5567 /* Override any GCC internal prototype to avoid an error.
5568    Use char because int might match the return type of a GCC
5569    builtin and then its argument prototype would still apply.  */
5570 #ifdef __cplusplus
5571 extern "C"
5572 #endif
5573 char yywrap ();
5574 int
5575 main ()
5576 {
5577 return yywrap ();
5578   ;
5579   return 0;
5580 }
5581 _ACEOF
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (ac_try="$ac_link"
5584 case "(($ac_try" in
5585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586   *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589   (eval "$ac_link") 2>conftest.er1
5590   ac_status=$?
5591   grep -v '^ *+' conftest.er1 >conftest.err
5592   rm -f conftest.er1
5593   cat conftest.err >&5
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); } &&
5596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5606          { ac_try='test -s conftest$ac_exeext'
5607   { (case "(($ac_try" in
5608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609   *) ac_try_echo=$ac_try;;
5610 esac
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612   (eval "$ac_try") 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; }; then
5616   ac_cv_lib_l_yywrap=yes
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621         ac_cv_lib_l_yywrap=no
5622 fi
5623
5624 rm -f core conftest.err conftest.$ac_objext \
5625       conftest$ac_exeext conftest.$ac_ext
5626 LIBS=$ac_check_lib_save_LIBS
5627 fi
5628 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5629 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
5630 if test $ac_cv_lib_l_yywrap = yes; then
5631   LEXLIB="-ll"
5632 fi
5633
5634 fi
5635
5636 fi
5637
5638 if test "x$LEX" != "x:"; then
5639   { echo "$as_me:$LINENO: checking lex output file root" >&5
5640 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5641 if test "${ac_cv_prog_lex_root+set}" = set; then
5642   echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644   # The minimal lex program is just a single line: %%.  But some broken lexes
5645 # (Solaris, I think it was) want two %% lines, so accommodate them.
5646 cat >conftest.l <<_ACEOF
5647 %%
5648 %%
5649 _ACEOF
5650 { (ac_try="$LEX conftest.l"
5651 case "(($ac_try" in
5652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653   *) ac_try_echo=$ac_try;;
5654 esac
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656   (eval "$LEX conftest.l") 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); }
5660 if test -f lex.yy.c; then
5661   ac_cv_prog_lex_root=lex.yy
5662 elif test -f lexyy.c; then
5663   ac_cv_prog_lex_root=lexyy
5664 else
5665   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5666 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5667    { (exit 1); exit 1; }; }
5668 fi
5669 fi
5670 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5671 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5672 rm -f conftest.l
5673 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5674
5675 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5676 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5677 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5678   echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680   # POSIX says lex can declare yytext either as a pointer or an array; the
5681 # default is implementation-dependent. Figure out which it is, since
5682 # not all implementations provide the %pointer and %array declarations.
5683 ac_cv_prog_lex_yytext_pointer=no
5684 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5685 ac_save_LIBS=$LIBS
5686 LIBS="$LIBS $LEXLIB"
5687 cat >conftest.$ac_ext <<_ACEOF
5688 `cat $LEX_OUTPUT_ROOT.c`
5689 _ACEOF
5690 rm -f conftest.$ac_objext conftest$ac_exeext
5691 if { (ac_try="$ac_link"
5692 case "(($ac_try" in
5693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694   *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697   (eval "$ac_link") 2>conftest.er1
5698   ac_status=$?
5699   grep -v '^ *+' conftest.er1 >conftest.err
5700   rm -f conftest.er1
5701   cat conftest.err >&5
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); } &&
5704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5714          { ac_try='test -s conftest$ac_exeext'
5715   { (case "(($ac_try" in
5716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717   *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720   (eval "$ac_try") 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); }; }; then
5724   ac_cv_prog_lex_yytext_pointer=yes
5725 else
5726   echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5728
5729
5730 fi
5731
5732 rm -f core conftest.err conftest.$ac_objext \
5733       conftest$ac_exeext conftest.$ac_ext
5734 LIBS=$ac_save_LIBS
5735 rm -f "${LEX_OUTPUT_ROOT}.c"
5736
5737 fi
5738 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5739 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5740 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5741
5742 cat >>confdefs.h <<\_ACEOF
5743 #define YYTEXT_POINTER 1
5744 _ACEOF
5745
5746 fi
5747
5748 fi
5749
5750 for ac_prog in $LEX flex lex
5751 do
5752   # Extract the first word of "$ac_prog", so it can be a program name with args.
5753 set dummy $ac_prog; ac_word=$2
5754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756 if test "${ac_cv_prog_XLEX+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   if test -n "$XLEX"; then
5760   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   test -z "$as_dir" && as_dir=.
5767   for ac_exec_ext in '' $ac_executable_extensions; do
5768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5769     ac_cv_prog_XLEX="$ac_prog"
5770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772   fi
5773 done
5774 done
5775 IFS=$as_save_IFS
5776
5777 fi
5778 fi
5779 XLEX=$ac_cv_prog_XLEX
5780 if test -n "$XLEX"; then
5781   { echo "$as_me:$LINENO: result: $XLEX" >&5
5782 echo "${ECHO_T}$XLEX" >&6; }
5783 else
5784   { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5786 fi
5787
5788
5789   test -n "$XLEX" && break
5790 done
5791 test -n "$XLEX" || XLEX="none"
5792
5793 if test "$XLEX" = "none"
5794 then
5795   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5796 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5797    { (exit 1); exit 1; }; }
5798 fi
5799
5800 for ac_prog in bison
5801 do
5802   # Extract the first word of "$ac_prog", so it can be a program name with args.
5803 set dummy $ac_prog; ac_word=$2
5804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5806 if test "${ac_cv_prog_BISON+set}" = set; then
5807   echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809   if test -n "$BISON"; then
5810   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817   for ac_exec_ext in '' $ac_executable_extensions; do
5818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5819     ac_cv_prog_BISON="$ac_prog"
5820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824 done
5825 IFS=$as_save_IFS
5826
5827 fi
5828 fi
5829 BISON=$ac_cv_prog_BISON
5830 if test -n "$BISON"; then
5831   { echo "$as_me:$LINENO: result: $BISON" >&5
5832 echo "${ECHO_T}$BISON" >&6; }
5833 else
5834   { echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6; }
5836 fi
5837
5838
5839   test -n "$BISON" && break
5840 done
5841 test -n "$BISON" || BISON="none"
5842
5843 if test "$BISON" = "none"
5844 then
5845   { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5846 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5847    { (exit 1); exit 1; }; }
5848 fi
5849
5850 if test -n "$ac_tool_prefix"; then
5851   for ac_prog in gas as
5852   do
5853     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5857 if test "${ac_cv_prog_AS+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   if test -n "$AS"; then
5861   ac_cv_prog_AS="$AS" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866   IFS=$as_save_IFS
5867   test -z "$as_dir" && as_dir=.
5868   for ac_exec_ext in '' $ac_executable_extensions; do
5869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5870     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872     break 2
5873   fi
5874 done
5875 done
5876 IFS=$as_save_IFS
5877
5878 fi
5879 fi
5880 AS=$ac_cv_prog_AS
5881 if test -n "$AS"; then
5882   { echo "$as_me:$LINENO: result: $AS" >&5
5883 echo "${ECHO_T}$AS" >&6; }
5884 else
5885   { echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6; }
5887 fi
5888
5889
5890     test -n "$AS" && break
5891   done
5892 fi
5893 if test -z "$AS"; then
5894   ac_ct_AS=$AS
5895   for ac_prog in gas as
5896 do
5897   # Extract the first word of "$ac_prog", so it can be a program name with args.
5898 set dummy $ac_prog; ac_word=$2
5899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5901 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5902   echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904   if test -n "$ac_ct_AS"; then
5905   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910   IFS=$as_save_IFS
5911   test -z "$as_dir" && as_dir=.
5912   for ac_exec_ext in '' $ac_executable_extensions; do
5913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5914     ac_cv_prog_ac_ct_AS="$ac_prog"
5915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916     break 2
5917   fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5925 if test -n "$ac_ct_AS"; then
5926   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5927 echo "${ECHO_T}$ac_ct_AS" >&6; }
5928 else
5929   { echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6; }
5931 fi
5932
5933
5934   test -n "$ac_ct_AS" && break
5935 done
5936
5937   if test "x$ac_ct_AS" = x; then
5938     AS="as"
5939   else
5940     case $cross_compiling:$ac_tool_warned in
5941 yes:)
5942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5943 whose name does not start with the host triplet.  If you think this
5944 configuration is useful to you, please write to autoconf@gnu.org." >&5
5945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5946 whose name does not start with the host triplet.  If you think this
5947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5948 ac_tool_warned=yes ;;
5949 esac
5950     AS=$ac_ct_AS
5951   fi
5952 fi
5953
5954 if test -n "$ac_tool_prefix"; then
5955   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}ld; ac_word=$2
5957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5959 if test "${ac_cv_prog_LD+set}" = set; then
5960   echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962   if test -n "$LD"; then
5963   ac_cv_prog_LD="$LD" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970   for ac_exec_ext in '' $ac_executable_extensions; do
5971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5972     ac_cv_prog_LD="${ac_tool_prefix}ld"
5973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 LD=$ac_cv_prog_LD
5983 if test -n "$LD"; then
5984   { echo "$as_me:$LINENO: result: $LD" >&5
5985 echo "${ECHO_T}$LD" >&6; }
5986 else
5987   { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5989 fi
5990
5991
5992 fi
5993 if test -z "$ac_cv_prog_LD"; then
5994   ac_ct_LD=$LD
5995   # Extract the first word of "ld", so it can be a program name with args.
5996 set dummy ld; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   if test -n "$ac_ct_LD"; then
6003   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010   for ac_exec_ext in '' $ac_executable_extensions; do
6011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6012     ac_cv_prog_ac_ct_LD="ld"
6013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017 done
6018 IFS=$as_save_IFS
6019
6020 fi
6021 fi
6022 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6023 if test -n "$ac_ct_LD"; then
6024   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6025 echo "${ECHO_T}$ac_ct_LD" >&6; }
6026 else
6027   { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6029 fi
6030
6031   if test "x$ac_ct_LD" = x; then
6032     LD="ld"
6033   else
6034     case $cross_compiling:$ac_tool_warned in
6035 yes:)
6036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6037 whose name does not start with the host triplet.  If you think this
6038 configuration is useful to you, please write to autoconf@gnu.org." >&5
6039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6040 whose name does not start with the host triplet.  If you think this
6041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6042 ac_tool_warned=yes ;;
6043 esac
6044     LD=$ac_ct_LD
6045   fi
6046 else
6047   LD="$ac_cv_prog_LD"
6048 fi
6049
6050 if test -n "$ac_tool_prefix"; then
6051   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6052 set dummy ${ac_tool_prefix}ar; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_AR+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   if test -n "$AR"; then
6059   ac_cv_prog_AR="$AR" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066   for ac_exec_ext in '' $ac_executable_extensions; do
6067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6068     ac_cv_prog_AR="${ac_tool_prefix}ar"
6069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070     break 2
6071   fi
6072 done
6073 done
6074 IFS=$as_save_IFS
6075
6076 fi
6077 fi
6078 AR=$ac_cv_prog_AR
6079 if test -n "$AR"; then
6080   { echo "$as_me:$LINENO: result: $AR" >&5
6081 echo "${ECHO_T}$AR" >&6; }
6082 else
6083   { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6085 fi
6086
6087
6088 fi
6089 if test -z "$ac_cv_prog_AR"; then
6090   ac_ct_AR=$AR
6091   # Extract the first word of "ar", so it can be a program name with args.
6092 set dummy ar; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098   if test -n "$ac_ct_AR"; then
6099   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106   for ac_exec_ext in '' $ac_executable_extensions; do
6107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6108     ac_cv_prog_ac_ct_AR="ar"
6109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110     break 2
6111   fi
6112 done
6113 done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6119 if test -n "$ac_ct_AR"; then
6120   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6121 echo "${ECHO_T}$ac_ct_AR" >&6; }
6122 else
6123   { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6125 fi
6126
6127   if test "x$ac_ct_AR" = x; then
6128     AR="ar"
6129   else
6130     case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133 whose name does not start with the host triplet.  If you think this
6134 configuration is useful to you, please write to autoconf@gnu.org." >&5
6135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet.  If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6138 ac_tool_warned=yes ;;
6139 esac
6140     AR=$ac_ct_AR
6141   fi
6142 else
6143   AR="$ac_cv_prog_AR"
6144 fi
6145
6146 if test -n "$ac_tool_prefix"; then
6147   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_RANLIB+set}" = set; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154   if test -n "$RANLIB"; then
6155   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162   for ac_exec_ext in '' $ac_executable_extensions; do
6163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 RANLIB=$ac_cv_prog_RANLIB
6175 if test -n "$RANLIB"; then
6176   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6177 echo "${ECHO_T}$RANLIB" >&6; }
6178 else
6179   { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6181 fi
6182
6183
6184 fi
6185 if test -z "$ac_cv_prog_RANLIB"; then
6186   ac_ct_RANLIB=$RANLIB
6187   # Extract the first word of "ranlib", so it can be a program name with args.
6188 set dummy ranlib; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   if test -n "$ac_ct_RANLIB"; then
6195   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202   for ac_exec_ext in '' $ac_executable_extensions; do
6203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204     ac_cv_prog_ac_ct_RANLIB="ranlib"
6205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215 if test -n "$ac_ct_RANLIB"; then
6216   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6217 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6218 else
6219   { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6221 fi
6222
6223   if test "x$ac_ct_RANLIB" = x; then
6224     RANLIB=":"
6225   else
6226     case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229 whose name does not start with the host triplet.  If you think this
6230 configuration is useful to you, please write to autoconf@gnu.org." >&5
6231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet.  If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236     RANLIB=$ac_ct_RANLIB
6237   fi
6238 else
6239   RANLIB="$ac_cv_prog_RANLIB"
6240 fi
6241
6242 if test -n "$ac_tool_prefix"; then
6243   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}strip; ac_word=$2
6245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247 if test "${ac_cv_prog_STRIP+set}" = set; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   if test -n "$STRIP"; then
6251   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256   IFS=$as_save_IFS
6257   test -z "$as_dir" && as_dir=.
6258   for ac_exec_ext in '' $ac_executable_extensions; do
6259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6260     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262     break 2
6263   fi
6264 done
6265 done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 STRIP=$ac_cv_prog_STRIP
6271 if test -n "$STRIP"; then
6272   { echo "$as_me:$LINENO: result: $STRIP" >&5
6273 echo "${ECHO_T}$STRIP" >&6; }
6274 else
6275   { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6277 fi
6278
6279
6280 fi
6281 if test -z "$ac_cv_prog_STRIP"; then
6282   ac_ct_STRIP=$STRIP
6283   # Extract the first word of "strip", so it can be a program name with args.
6284 set dummy strip; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6288   echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290   if test -n "$ac_ct_STRIP"; then
6291   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298   for ac_exec_ext in '' $ac_executable_extensions; do
6299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6300     ac_cv_prog_ac_ct_STRIP="strip"
6301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302     break 2
6303   fi
6304 done
6305 done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6311 if test -n "$ac_ct_STRIP"; then
6312   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6313 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6314 else
6315   { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6317 fi
6318
6319   if test "x$ac_ct_STRIP" = x; then
6320     STRIP="strip"
6321   else
6322     case $cross_compiling:$ac_tool_warned in
6323 yes:)
6324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet.  If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&5
6327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6328 whose name does not start with the host triplet.  If you think this
6329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6330 ac_tool_warned=yes ;;
6331 esac
6332     STRIP=$ac_ct_STRIP
6333   fi
6334 else
6335   STRIP="$ac_cv_prog_STRIP"
6336 fi
6337
6338 if test -n "$ac_tool_prefix"; then
6339   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6340 set dummy ${ac_tool_prefix}windres; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_prog_WINDRES+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   if test -n "$WINDRES"; then
6347   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352   IFS=$as_save_IFS
6353   test -z "$as_dir" && as_dir=.
6354   for ac_exec_ext in '' $ac_executable_extensions; do
6355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6356     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358     break 2
6359   fi
6360 done
6361 done
6362 IFS=$as_save_IFS
6363
6364 fi
6365 fi
6366 WINDRES=$ac_cv_prog_WINDRES
6367 if test -n "$WINDRES"; then
6368   { echo "$as_me:$LINENO: result: $WINDRES" >&5
6369 echo "${ECHO_T}$WINDRES" >&6; }
6370 else
6371   { echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6; }
6373 fi
6374
6375
6376 fi
6377 if test -z "$ac_cv_prog_WINDRES"; then
6378   ac_ct_WINDRES=$WINDRES
6379   # Extract the first word of "windres", so it can be a program name with args.
6380 set dummy windres; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   if test -n "$ac_ct_WINDRES"; then
6387   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394   for ac_exec_ext in '' $ac_executable_extensions; do
6395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396     ac_cv_prog_ac_ct_WINDRES="windres"
6397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401 done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6407 if test -n "$ac_ct_WINDRES"; then
6408   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6409 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6410 else
6411   { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6413 fi
6414
6415   if test "x$ac_ct_WINDRES" = x; then
6416     WINDRES="false"
6417   else
6418     case $cross_compiling:$ac_tool_warned in
6419 yes:)
6420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6421 whose name does not start with the host triplet.  If you think this
6422 configuration is useful to you, please write to autoconf@gnu.org." >&5
6423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6424 whose name does not start with the host triplet.  If you think this
6425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6426 ac_tool_warned=yes ;;
6427 esac
6428     WINDRES=$ac_ct_WINDRES
6429   fi
6430 else
6431   WINDRES="$ac_cv_prog_WINDRES"
6432 fi
6433
6434 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6435 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6436 LN_S=$as_ln_s
6437 if test "$LN_S" = "ln -s"; then
6438   { echo "$as_me:$LINENO: result: yes" >&5
6439 echo "${ECHO_T}yes" >&6; }
6440 else
6441   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6442 echo "${ECHO_T}no, using $LN_S" >&6; }
6443 fi
6444
6445 { echo "$as_me:$LINENO: checking whether ln works" >&5
6446 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
6447 rm -f conf$$ conf$$.file
6448 echo >conf$$.file
6449 if ln conf$$.file conf$$ 2>/dev/null; then
6450   LN=ln
6451
6452   { echo "$as_me:$LINENO: result: yes" >&5
6453 echo "${ECHO_T}yes" >&6; }
6454 else
6455   LN="cp -p"
6456
6457   { echo "$as_me:$LINENO: result: no, using $LN" >&5
6458 echo "${ECHO_T}no, using $LN" >&6; }
6459 fi
6460 rm -f conf$$ conf$$.file
6461 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6462 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6463 if test "${ac_cv_path_GREP+set}" = set; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   # Extract the first word of "grep ggrep" to use in msg output
6467 if test -z "$GREP"; then
6468 set dummy grep ggrep; ac_prog_name=$2
6469 if test "${ac_cv_path_GREP+set}" = set; then
6470   echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472   ac_path_GREP_found=false
6473 # Loop through the user's path and test for each of PROGNAME-LIST
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6476 do
6477   IFS=$as_save_IFS
6478   test -z "$as_dir" && as_dir=.
6479   for ac_prog in grep ggrep; do
6480   for ac_exec_ext in '' $ac_executable_extensions; do
6481     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6482     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6483     # Check for GNU ac_path_GREP and select it if it is found.
6484   # Check for GNU $ac_path_GREP
6485 case `"$ac_path_GREP" --version 2>&1` in
6486 *GNU*)
6487   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6488 *)
6489   ac_count=0
6490   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6491   while :
6492   do
6493     cat "conftest.in" "conftest.in" >"conftest.tmp"
6494     mv "conftest.tmp" "conftest.in"
6495     cp "conftest.in" "conftest.nl"
6496     echo 'GREP' >> "conftest.nl"
6497     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6498     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6499     ac_count=`expr $ac_count + 1`
6500     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6501       # Best one so far, save it but keep looking for a better one
6502       ac_cv_path_GREP="$ac_path_GREP"
6503       ac_path_GREP_max=$ac_count
6504     fi
6505     # 10*(2^10) chars as input seems more than enough
6506     test $ac_count -gt 10 && break
6507   done
6508   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6509 esac
6510
6511
6512     $ac_path_GREP_found && break 3
6513   done
6514 done
6515
6516 done
6517 IFS=$as_save_IFS
6518
6519
6520 fi
6521
6522 GREP="$ac_cv_path_GREP"
6523 if test -z "$GREP"; then
6524   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6525 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6526    { (exit 1); exit 1; }; }
6527 fi
6528
6529 else
6530   ac_cv_path_GREP=$GREP
6531 fi
6532
6533
6534 fi
6535 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6536 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6537  GREP="$ac_cv_path_GREP"
6538
6539
6540 { echo "$as_me:$LINENO: checking for egrep" >&5
6541 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_EGREP+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6546    then ac_cv_path_EGREP="$GREP -E"
6547    else
6548      # Extract the first word of "egrep" to use in msg output
6549 if test -z "$EGREP"; then
6550 set dummy egrep; ac_prog_name=$2
6551 if test "${ac_cv_path_EGREP+set}" = set; then
6552   echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554   ac_path_EGREP_found=false
6555 # Loop through the user's path and test for each of PROGNAME-LIST
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6558 do
6559   IFS=$as_save_IFS
6560   test -z "$as_dir" && as_dir=.
6561   for ac_prog in egrep; do
6562   for ac_exec_ext in '' $ac_executable_extensions; do
6563     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6564     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6565     # Check for GNU ac_path_EGREP and select it if it is found.
6566   # Check for GNU $ac_path_EGREP
6567 case `"$ac_path_EGREP" --version 2>&1` in
6568 *GNU*)
6569   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6570 *)
6571   ac_count=0
6572   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6573   while :
6574   do
6575     cat "conftest.in" "conftest.in" >"conftest.tmp"
6576     mv "conftest.tmp" "conftest.in"
6577     cp "conftest.in" "conftest.nl"
6578     echo 'EGREP' >> "conftest.nl"
6579     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6580     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6581     ac_count=`expr $ac_count + 1`
6582     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6583       # Best one so far, save it but keep looking for a better one
6584       ac_cv_path_EGREP="$ac_path_EGREP"
6585       ac_path_EGREP_max=$ac_count
6586     fi
6587     # 10*(2^10) chars as input seems more than enough
6588     test $ac_count -gt 10 && break
6589   done
6590   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6591 esac
6592
6593
6594     $ac_path_EGREP_found && break 3
6595   done
6596 done
6597
6598 done
6599 IFS=$as_save_IFS
6600
6601
6602 fi
6603
6604 EGREP="$ac_cv_path_EGREP"
6605 if test -z "$EGREP"; then
6606   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6608    { (exit 1); exit 1; }; }
6609 fi
6610
6611 else
6612   ac_cv_path_EGREP=$EGREP
6613 fi
6614
6615
6616    fi
6617 fi
6618 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6619 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6620  EGREP="$ac_cv_path_EGREP"
6621
6622
6623 # Extract the first word of "ldconfig", so it can be a program name with args.
6624 set dummy ldconfig; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   case $LDCONFIG in
6631   [\\/]* | ?:[\\/]*)
6632   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6633   ;;
6634   *)
6635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in /sbin /usr/sbin $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640   for ac_exec_ext in '' $ac_executable_extensions; do
6641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6651   ;;
6652 esac
6653 fi
6654 LDCONFIG=$ac_cv_path_LDCONFIG
6655 if test -n "$LDCONFIG"; then
6656   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6657 echo "${ECHO_T}$LDCONFIG" >&6; }
6658 else
6659   { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6661 fi
6662
6663
6664 # Find a good install program.  We prefer a C program (faster),
6665 # so one script is as good as another.  But avoid the broken or
6666 # incompatible versions:
6667 # SysV /etc/install, /usr/sbin/install
6668 # SunOS /usr/etc/install
6669 # IRIX /sbin/install
6670 # AIX /bin/install
6671 # AmigaOS /C/install, which installs bootblocks on floppy discs
6672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6675 # OS/2's system install, which has a completely different semantic
6676 # ./install, which can be erroneously created by make from ./install.sh.
6677 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6678 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6679 if test -z "$INSTALL"; then
6680 if test "${ac_cv_path_install+set}" = set; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688   # Account for people who put trailing slashes in PATH elements.
6689 case $as_dir/ in
6690   ./ | .// | /cC/* | \
6691   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6692   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6693   /usr/ucb/* ) ;;
6694   *)
6695     # OSF1 and SCO ODT 3.0 have their own names for install.
6696     # Don't use installbsd from OSF since it installs stuff as root
6697     # by default.
6698     for ac_prog in ginstall scoinst install; do
6699       for ac_exec_ext in '' $ac_executable_extensions; do
6700         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6701           if test $ac_prog = install &&
6702             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6703             # AIX install.  It has an incompatible calling convention.
6704             :
6705           elif test $ac_prog = install &&
6706             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6707             # program-specific install script used by HP pwplus--don't use.
6708             :
6709           else
6710             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6711             break 3
6712           fi
6713         fi
6714       done
6715     done
6716     ;;
6717 esac
6718 done
6719 IFS=$as_save_IFS
6720
6721
6722 fi
6723   if test "${ac_cv_path_install+set}" = set; then
6724     INSTALL=$ac_cv_path_install
6725   else
6726     # As a last resort, use the slow shell script.  Don't cache a
6727     # value for INSTALL within a source directory, because that will
6728     # break other packages using the cache if that directory is
6729     # removed, or if the value is a relative name.
6730     INSTALL=$ac_install_sh
6731   fi
6732 fi
6733 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6734 echo "${ECHO_T}$INSTALL" >&6; }
6735
6736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6737 # It thinks the first close brace ends the variable substitution.
6738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6739
6740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6741
6742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6743
6744 case "$INSTALL" in
6745   [\\/$]* | ?:[\\/]* ) ;;
6746   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6747 esac
6748
6749 for ac_prog in lclint lint
6750 do
6751   # Extract the first word of "$ac_prog", so it can be a program name with args.
6752 set dummy $ac_prog; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_prog_LINT+set}" = set; then
6756   echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758   if test -n "$LINT"; then
6759   ac_cv_prog_LINT="$LINT" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764   IFS=$as_save_IFS
6765   test -z "$as_dir" && as_dir=.
6766   for ac_exec_ext in '' $ac_executable_extensions; do
6767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6768     ac_cv_prog_LINT="$ac_prog"
6769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770     break 2
6771   fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776 fi
6777 fi
6778 LINT=$ac_cv_prog_LINT
6779 if test -n "$LINT"; then
6780   { echo "$as_me:$LINENO: result: $LINT" >&5
6781 echo "${ECHO_T}$LINT" >&6; }
6782 else
6783   { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6785 fi
6786
6787
6788   test -n "$LINT" && break
6789 done
6790
6791 if test "$LINT" = "lint"
6792 then
6793   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6794   fi
6795
6796
6797
6798 for ac_prog in fontforge
6799 do
6800   # Extract the first word of "$ac_prog", so it can be a program name with args.
6801 set dummy $ac_prog; ac_word=$2
6802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6805   echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807   if test -n "$FONTFORGE"; then
6808   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815   for ac_exec_ext in '' $ac_executable_extensions; do
6816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817     ac_cv_prog_FONTFORGE="$ac_prog"
6818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 FONTFORGE=$ac_cv_prog_FONTFORGE
6828 if test -n "$FONTFORGE"; then
6829   { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6830 echo "${ECHO_T}$FONTFORGE" >&6; }
6831 else
6832   { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6834 fi
6835
6836
6837   test -n "$FONTFORGE" && break
6838 done
6839 test -n "$FONTFORGE" || FONTFORGE="false"
6840
6841 for ac_prog in pkg-config
6842 do
6843   # Extract the first word of "$ac_prog", so it can be a program name with args.
6844 set dummy $ac_prog; ac_word=$2
6845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6847 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6848   echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850   if test -n "$PKG_CONFIG"; then
6851   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856   IFS=$as_save_IFS
6857   test -z "$as_dir" && as_dir=.
6858   for ac_exec_ext in '' $ac_executable_extensions; do
6859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860     ac_cv_prog_PKG_CONFIG="$ac_prog"
6861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862     break 2
6863   fi
6864 done
6865 done
6866 IFS=$as_save_IFS
6867
6868 fi
6869 fi
6870 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6871 if test -n "$PKG_CONFIG"; then
6872   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6873 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6874 else
6875   { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6877 fi
6878
6879
6880   test -n "$PKG_CONFIG" && break
6881 done
6882 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6883
6884
6885 case $host_cpu in
6886   *i[3456789]86*)
6887     # Extract the first word of "prelink", so it can be a program name with args.
6888 set dummy prelink; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_path_PRELINK+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   case $PRELINK in
6895   [\\/]* | ?:[\\/]*)
6896   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6897   ;;
6898   *)
6899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in /sbin /usr/sbin $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904   for ac_exec_ext in '' $ac_executable_extensions; do
6905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6915   ;;
6916 esac
6917 fi
6918 PRELINK=$ac_cv_path_PRELINK
6919 if test -n "$PRELINK"; then
6920   { echo "$as_me:$LINENO: result: $PRELINK" >&5
6921 echo "${ECHO_T}$PRELINK" >&6; }
6922 else
6923   { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6925 fi
6926
6927
6928     ;;
6929 esac
6930
6931
6932
6933 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6934 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6935 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6936   echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938   ac_check_lib_save_LIBS=$LIBS
6939 LIBS="-li386  $LIBS"
6940 cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h.  */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h.  */
6946
6947 /* Override any GCC internal prototype to avoid an error.
6948    Use char because int might match the return type of a GCC
6949    builtin and then its argument prototype would still apply.  */
6950 #ifdef __cplusplus
6951 extern "C"
6952 #endif
6953 char i386_set_ldt ();
6954 int
6955 main ()
6956 {
6957 return i386_set_ldt ();
6958   ;
6959   return 0;
6960 }
6961 _ACEOF
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (ac_try="$ac_link"
6964 case "(($ac_try" in
6965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966   *) ac_try_echo=$ac_try;;
6967 esac
6968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969   (eval "$ac_link") 2>conftest.er1
6970   ac_status=$?
6971   grep -v '^ *+' conftest.er1 >conftest.err
6972   rm -f conftest.er1
6973   cat conftest.err >&5
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); } &&
6976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6986          { ac_try='test -s conftest$ac_exeext'
6987   { (case "(($ac_try" in
6988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989   *) ac_try_echo=$ac_try;;
6990 esac
6991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6992   (eval "$ac_try") 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); }; }; then
6996   ac_cv_lib_i386_i386_set_ldt=yes
6997 else
6998   echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001         ac_cv_lib_i386_i386_set_ldt=no
7002 fi
7003
7004 rm -f core conftest.err conftest.$ac_objext \
7005       conftest$ac_exeext conftest.$ac_ext
7006 LIBS=$ac_check_lib_save_LIBS
7007 fi
7008 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
7009 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
7010 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
7011   cat >>confdefs.h <<_ACEOF
7012 #define HAVE_LIBI386 1
7013 _ACEOF
7014
7015   LIBS="-li386 $LIBS"
7016
7017 fi
7018
7019
7020 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7021 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
7022 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7023   echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025   ac_check_lib_save_LIBS=$LIBS
7026 LIBS="-lossaudio  $LIBS"
7027 cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h.  */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h.  */
7033
7034 /* Override any GCC internal prototype to avoid an error.
7035    Use char because int might match the return type of a GCC
7036    builtin and then its argument prototype would still apply.  */
7037 #ifdef __cplusplus
7038 extern "C"
7039 #endif
7040 char _oss_ioctl ();
7041 int
7042 main ()
7043 {
7044 return _oss_ioctl ();
7045   ;
7046   return 0;
7047 }
7048 _ACEOF
7049 rm -f conftest.$ac_objext conftest$ac_exeext
7050 if { (ac_try="$ac_link"
7051 case "(($ac_try" in
7052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053   *) ac_try_echo=$ac_try;;
7054 esac
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056   (eval "$ac_link") 2>conftest.er1
7057   ac_status=$?
7058   grep -v '^ *+' conftest.er1 >conftest.err
7059   rm -f conftest.er1
7060   cat conftest.err >&5
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); } &&
7063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7073          { ac_try='test -s conftest$ac_exeext'
7074   { (case "(($ac_try" in
7075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076   *) ac_try_echo=$ac_try;;
7077 esac
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079   (eval "$ac_try") 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }; }; then
7083   ac_cv_lib_ossaudio__oss_ioctl=yes
7084 else
7085   echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7087
7088         ac_cv_lib_ossaudio__oss_ioctl=no
7089 fi
7090
7091 rm -f core conftest.err conftest.$ac_objext \
7092       conftest$ac_exeext conftest.$ac_ext
7093 LIBS=$ac_check_lib_save_LIBS
7094 fi
7095 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7096 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7097 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
7098   cat >>confdefs.h <<_ACEOF
7099 #define HAVE_LIBOSSAUDIO 1
7100 _ACEOF
7101
7102   LIBS="-lossaudio $LIBS"
7103
7104 fi
7105
7106
7107 for ac_func in gethostbyname
7108 do
7109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7113   echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115   cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h.  */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h.  */
7121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7123 #define $ac_func innocuous_$ac_func
7124
7125 /* System header to define __stub macros and hopefully few prototypes,
7126     which can conflict with char $ac_func (); below.
7127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7128     <limits.h> exists even on freestanding compilers.  */
7129
7130 #ifdef __STDC__
7131 # include <limits.h>
7132 #else
7133 # include <assert.h>
7134 #endif
7135
7136 #undef $ac_func
7137
7138 /* Override any GCC internal prototype to avoid an error.
7139    Use char because int might match the return type of a GCC
7140    builtin and then its argument prototype would still apply.  */
7141 #ifdef __cplusplus
7142 extern "C"
7143 #endif
7144 char $ac_func ();
7145 /* The GNU C library defines this for functions which it implements
7146     to always fail with ENOSYS.  Some functions are actually named
7147     something starting with __ and the normal name is an alias.  */
7148 #if defined __stub_$ac_func || defined __stub___$ac_func
7149 choke me
7150 #endif
7151
7152 int
7153 main ()
7154 {
7155 return $ac_func ();
7156   ;
7157   return 0;
7158 }
7159 _ACEOF
7160 rm -f conftest.$ac_objext conftest$ac_exeext
7161 if { (ac_try="$ac_link"
7162 case "(($ac_try" in
7163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7164   *) ac_try_echo=$ac_try;;
7165 esac
7166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7167   (eval "$ac_link") 2>conftest.er1
7168   ac_status=$?
7169   grep -v '^ *+' conftest.er1 >conftest.err
7170   rm -f conftest.er1
7171   cat conftest.err >&5
7172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173   (exit $ac_status); } &&
7174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7184          { ac_try='test -s conftest$ac_exeext'
7185   { (case "(($ac_try" in
7186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187   *) ac_try_echo=$ac_try;;
7188 esac
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190   (eval "$ac_try") 2>&5
7191   ac_status=$?
7192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193   (exit $ac_status); }; }; then
7194   eval "$as_ac_var=yes"
7195 else
7196   echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7198
7199         eval "$as_ac_var=no"
7200 fi
7201
7202 rm -f core conftest.err conftest.$ac_objext \
7203       conftest$ac_exeext conftest.$ac_ext
7204 fi
7205 ac_res=`eval echo '${'$as_ac_var'}'`
7206                { echo "$as_me:$LINENO: result: $ac_res" >&5
7207 echo "${ECHO_T}$ac_res" >&6; }
7208 if test `eval echo '${'$as_ac_var'}'` = yes; then
7209   cat >>confdefs.h <<_ACEOF
7210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7211 _ACEOF
7212
7213 else
7214
7215 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7216 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
7217 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   ac_check_lib_save_LIBS=$LIBS
7221 LIBS="-lnsl  $LIBS"
7222 cat >conftest.$ac_ext <<_ACEOF
7223 /* confdefs.h.  */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h.  */
7228
7229 /* Override any GCC internal prototype to avoid an error.
7230    Use char because int might match the return type of a GCC
7231    builtin and then its argument prototype would still apply.  */
7232 #ifdef __cplusplus
7233 extern "C"
7234 #endif
7235 char gethostbyname ();
7236 int
7237 main ()
7238 {
7239 return gethostbyname ();
7240   ;
7241   return 0;
7242 }
7243 _ACEOF
7244 rm -f conftest.$ac_objext conftest$ac_exeext
7245 if { (ac_try="$ac_link"
7246 case "(($ac_try" in
7247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248   *) ac_try_echo=$ac_try;;
7249 esac
7250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251   (eval "$ac_link") 2>conftest.er1
7252   ac_status=$?
7253   grep -v '^ *+' conftest.er1 >conftest.err
7254   rm -f conftest.er1
7255   cat conftest.err >&5
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); } &&
7258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7268          { ac_try='test -s conftest$ac_exeext'
7269   { (case "(($ac_try" in
7270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271   *) ac_try_echo=$ac_try;;
7272 esac
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274   (eval "$ac_try") 2>&5
7275   ac_status=$?
7276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277   (exit $ac_status); }; }; then
7278   ac_cv_lib_nsl_gethostbyname=yes
7279 else
7280   echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7282
7283         ac_cv_lib_nsl_gethostbyname=no
7284 fi
7285
7286 rm -f core conftest.err conftest.$ac_objext \
7287       conftest$ac_exeext conftest.$ac_ext
7288 LIBS=$ac_check_lib_save_LIBS
7289 fi
7290 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7291 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
7292 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7293   cat >>confdefs.h <<_ACEOF
7294 #define HAVE_LIBNSL 1
7295 _ACEOF
7296
7297   LIBS="-lnsl $LIBS"
7298
7299 fi
7300
7301 fi
7302 done
7303
7304
7305 for ac_func in connect
7306 do
7307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313   cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h.  */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h.  */
7319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7321 #define $ac_func innocuous_$ac_func
7322
7323 /* System header to define __stub macros and hopefully few prototypes,
7324     which can conflict with char $ac_func (); below.
7325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7326     <limits.h> exists even on freestanding compilers.  */
7327
7328 #ifdef __STDC__
7329 # include <limits.h>
7330 #else
7331 # include <assert.h>
7332 #endif
7333
7334 #undef $ac_func
7335
7336 /* Override any GCC internal prototype to avoid an error.
7337    Use char because int might match the return type of a GCC
7338    builtin and then its argument prototype would still apply.  */
7339 #ifdef __cplusplus
7340 extern "C"
7341 #endif
7342 char $ac_func ();
7343 /* The GNU C library defines this for functions which it implements
7344     to always fail with ENOSYS.  Some functions are actually named
7345     something starting with __ and the normal name is an alias.  */
7346 #if defined __stub_$ac_func || defined __stub___$ac_func
7347 choke me
7348 #endif
7349
7350 int
7351 main ()
7352 {
7353 return $ac_func ();
7354   ;
7355   return 0;
7356 }
7357 _ACEOF
7358 rm -f conftest.$ac_objext conftest$ac_exeext
7359 if { (ac_try="$ac_link"
7360 case "(($ac_try" in
7361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362   *) ac_try_echo=$ac_try;;
7363 esac
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365   (eval "$ac_link") 2>conftest.er1
7366   ac_status=$?
7367   grep -v '^ *+' conftest.er1 >conftest.err
7368   rm -f conftest.er1
7369   cat conftest.err >&5
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); } &&
7372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7382          { ac_try='test -s conftest$ac_exeext'
7383   { (case "(($ac_try" in
7384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385   *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388   (eval "$ac_try") 2>&5
7389   ac_status=$?
7390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); }; }; then
7392   eval "$as_ac_var=yes"
7393 else
7394   echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7396
7397         eval "$as_ac_var=no"
7398 fi
7399
7400 rm -f core conftest.err conftest.$ac_objext \
7401       conftest$ac_exeext conftest.$ac_ext
7402 fi
7403 ac_res=`eval echo '${'$as_ac_var'}'`
7404                { echo "$as_me:$LINENO: result: $ac_res" >&5
7405 echo "${ECHO_T}$ac_res" >&6; }
7406 if test `eval echo '${'$as_ac_var'}'` = yes; then
7407   cat >>confdefs.h <<_ACEOF
7408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7409 _ACEOF
7410
7411 else
7412
7413 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7414 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7415 if test "${ac_cv_lib_socket_connect+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   ac_check_lib_save_LIBS=$LIBS
7419 LIBS="-lsocket  $LIBS"
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426
7427 /* Override any GCC internal prototype to avoid an error.
7428    Use char because int might match the return type of a GCC
7429    builtin and then its argument prototype would still apply.  */
7430 #ifdef __cplusplus
7431 extern "C"
7432 #endif
7433 char connect ();
7434 int
7435 main ()
7436 {
7437 return connect ();
7438   ;
7439   return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (ac_try="$ac_link"
7444 case "(($ac_try" in
7445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446   *) ac_try_echo=$ac_try;;
7447 esac
7448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449   (eval "$ac_link") 2>conftest.er1
7450   ac_status=$?
7451   grep -v '^ *+' conftest.er1 >conftest.err
7452   rm -f conftest.er1
7453   cat conftest.err >&5
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); } &&
7456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7466          { ac_try='test -s conftest$ac_exeext'
7467   { (case "(($ac_try" in
7468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469   *) ac_try_echo=$ac_try;;
7470 esac
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472   (eval "$ac_try") 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); }; }; then
7476   ac_cv_lib_socket_connect=yes
7477 else
7478   echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481         ac_cv_lib_socket_connect=no
7482 fi
7483
7484 rm -f core conftest.err conftest.$ac_objext \
7485       conftest$ac_exeext conftest.$ac_ext
7486 LIBS=$ac_check_lib_save_LIBS
7487 fi
7488 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7489 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7490 if test $ac_cv_lib_socket_connect = yes; then
7491   cat >>confdefs.h <<_ACEOF
7492 #define HAVE_LIBSOCKET 1
7493 _ACEOF
7494
7495   LIBS="-lsocket $LIBS"
7496
7497 fi
7498
7499 fi
7500 done
7501
7502
7503 for ac_func in inet_aton
7504 do
7505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7506 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h.  */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h.  */
7517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7519 #define $ac_func innocuous_$ac_func
7520
7521 /* System header to define __stub macros and hopefully few prototypes,
7522     which can conflict with char $ac_func (); below.
7523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7524     <limits.h> exists even on freestanding compilers.  */
7525
7526 #ifdef __STDC__
7527 # include <limits.h>
7528 #else
7529 # include <assert.h>
7530 #endif
7531
7532 #undef $ac_func
7533
7534 /* Override any GCC internal prototype to avoid an error.
7535    Use char because int might match the return type of a GCC
7536    builtin and then its argument prototype would still apply.  */
7537 #ifdef __cplusplus
7538 extern "C"
7539 #endif
7540 char $ac_func ();
7541 /* The GNU C library defines this for functions which it implements
7542     to always fail with ENOSYS.  Some functions are actually named
7543     something starting with __ and the normal name is an alias.  */
7544 #if defined __stub_$ac_func || defined __stub___$ac_func
7545 choke me
7546 #endif
7547
7548 int
7549 main ()
7550 {
7551 return $ac_func ();
7552   ;
7553   return 0;
7554 }
7555 _ACEOF
7556 rm -f conftest.$ac_objext conftest$ac_exeext
7557 if { (ac_try="$ac_link"
7558 case "(($ac_try" in
7559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560   *) ac_try_echo=$ac_try;;
7561 esac
7562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563   (eval "$ac_link") 2>conftest.er1
7564   ac_status=$?
7565   grep -v '^ *+' conftest.er1 >conftest.err
7566   rm -f conftest.er1
7567   cat conftest.err >&5
7568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); } &&
7570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7580          { ac_try='test -s conftest$ac_exeext'
7581   { (case "(($ac_try" in
7582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7583   *) ac_try_echo=$ac_try;;
7584 esac
7585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586   (eval "$ac_try") 2>&5
7587   ac_status=$?
7588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589   (exit $ac_status); }; }; then
7590   eval "$as_ac_var=yes"
7591 else
7592   echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7594
7595         eval "$as_ac_var=no"
7596 fi
7597
7598 rm -f core conftest.err conftest.$ac_objext \
7599       conftest$ac_exeext conftest.$ac_ext
7600 fi
7601 ac_res=`eval echo '${'$as_ac_var'}'`
7602                { echo "$as_me:$LINENO: result: $ac_res" >&5
7603 echo "${ECHO_T}$ac_res" >&6; }
7604 if test `eval echo '${'$as_ac_var'}'` = yes; then
7605   cat >>confdefs.h <<_ACEOF
7606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7607 _ACEOF
7608
7609 else
7610
7611 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
7612 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
7613 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   ac_check_lib_save_LIBS=$LIBS
7617 LIBS="-lresolv  $LIBS"
7618 cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h.  */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h.  */
7624
7625 /* Override any GCC internal prototype to avoid an error.
7626    Use char because int might match the return type of a GCC
7627    builtin and then its argument prototype would still apply.  */
7628 #ifdef __cplusplus
7629 extern "C"
7630 #endif
7631 char inet_aton ();
7632 int
7633 main ()
7634 {
7635 return inet_aton ();
7636   ;
7637   return 0;
7638 }
7639 _ACEOF
7640 rm -f conftest.$ac_objext conftest$ac_exeext
7641 if { (ac_try="$ac_link"
7642 case "(($ac_try" in
7643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644   *) ac_try_echo=$ac_try;;
7645 esac
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647   (eval "$ac_link") 2>conftest.er1
7648   ac_status=$?
7649   grep -v '^ *+' conftest.er1 >conftest.err
7650   rm -f conftest.er1
7651   cat conftest.err >&5
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); } &&
7654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7664          { ac_try='test -s conftest$ac_exeext'
7665   { (case "(($ac_try" in
7666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667   *) ac_try_echo=$ac_try;;
7668 esac
7669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7670   (eval "$ac_try") 2>&5
7671   ac_status=$?
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); }; }; then
7674   ac_cv_lib_resolv_inet_aton=yes
7675 else
7676   echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7678
7679         ac_cv_lib_resolv_inet_aton=no
7680 fi
7681
7682 rm -f core conftest.err conftest.$ac_objext \
7683       conftest$ac_exeext conftest.$ac_ext
7684 LIBS=$ac_check_lib_save_LIBS
7685 fi
7686 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
7687 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
7688 if test $ac_cv_lib_resolv_inet_aton = yes; then
7689   cat >>confdefs.h <<_ACEOF
7690 #define HAVE_LIBRESOLV 1
7691 _ACEOF
7692
7693   LIBS="-lresolv $LIBS"
7694
7695 fi
7696
7697 fi
7698 done
7699
7700
7701 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7702 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
7703 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   ac_check_lib_save_LIBS=$LIBS
7707 LIBS="-lxpg4  $LIBS"
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h.  */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h.  */
7714
7715 /* Override any GCC internal prototype to avoid an error.
7716    Use char because int might match the return type of a GCC
7717    builtin and then its argument prototype would still apply.  */
7718 #ifdef __cplusplus
7719 extern "C"
7720 #endif
7721 char _xpg4_setrunelocale ();
7722 int
7723 main ()
7724 {
7725 return _xpg4_setrunelocale ();
7726   ;
7727   return 0;
7728 }
7729 _ACEOF
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (ac_try="$ac_link"
7732 case "(($ac_try" in
7733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734   *) ac_try_echo=$ac_try;;
7735 esac
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737   (eval "$ac_link") 2>conftest.er1
7738   ac_status=$?
7739   grep -v '^ *+' conftest.er1 >conftest.err
7740   rm -f conftest.er1
7741   cat conftest.err >&5
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } &&
7744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7754          { ac_try='test -s conftest$ac_exeext'
7755   { (case "(($ac_try" in
7756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757   *) ac_try_echo=$ac_try;;
7758 esac
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760   (eval "$ac_try") 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); }; }; then
7764   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
7765 else
7766   echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7768
7769         ac_cv_lib_xpg4__xpg4_setrunelocale=no
7770 fi
7771
7772 rm -f core conftest.err conftest.$ac_objext \
7773       conftest$ac_exeext conftest.$ac_ext
7774 LIBS=$ac_check_lib_save_LIBS
7775 fi
7776 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7777 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
7778 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
7779   cat >>confdefs.h <<_ACEOF
7780 #define HAVE_LIBXPG4 1
7781 _ACEOF
7782
7783   LIBS="-lxpg4 $LIBS"
7784
7785 fi
7786
7787
7788 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
7789 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
7790 if test "${ac_cv_lib_poll_poll+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793   ac_check_lib_save_LIBS=$LIBS
7794 LIBS="-lpoll  $LIBS"
7795 cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h.  */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h.  */
7801
7802 /* Override any GCC internal prototype to avoid an error.
7803    Use char because int might match the return type of a GCC
7804    builtin and then its argument prototype would still apply.  */
7805 #ifdef __cplusplus
7806 extern "C"
7807 #endif
7808 char poll ();
7809 int
7810 main ()
7811 {
7812 return poll ();
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 rm -f conftest.$ac_objext conftest$ac_exeext
7818 if { (ac_try="$ac_link"
7819 case "(($ac_try" in
7820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821   *) ac_try_echo=$ac_try;;
7822 esac
7823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824   (eval "$ac_link") 2>conftest.er1
7825   ac_status=$?
7826   grep -v '^ *+' conftest.er1 >conftest.err
7827   rm -f conftest.er1
7828   cat conftest.err >&5
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } &&
7831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7841          { ac_try='test -s conftest$ac_exeext'
7842   { (case "(($ac_try" in
7843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844   *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847   (eval "$ac_try") 2>&5
7848   ac_status=$?
7849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850   (exit $ac_status); }; }; then
7851   ac_cv_lib_poll_poll=yes
7852 else
7853   echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7855
7856         ac_cv_lib_poll_poll=no
7857 fi
7858
7859 rm -f core conftest.err conftest.$ac_objext \
7860       conftest$ac_exeext conftest.$ac_ext
7861 LIBS=$ac_check_lib_save_LIBS
7862 fi
7863 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
7864 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
7865 if test $ac_cv_lib_poll_poll = yes; then
7866   cat >>confdefs.h <<_ACEOF
7867 #define HAVE_LIBPOLL 1
7868 _ACEOF
7869
7870   LIBS="-lpoll $LIBS"
7871
7872 fi
7873
7874
7875 { echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
7876 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6; }
7877 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   ac_check_lib_save_LIBS=$LIBS
7881 LIBS="-lresolv  $LIBS"
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h.  */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h.  */
7888
7889 /* Override any GCC internal prototype to avoid an error.
7890    Use char because int might match the return type of a GCC
7891    builtin and then its argument prototype would still apply.  */
7892 #ifdef __cplusplus
7893 extern "C"
7894 #endif
7895 char res_9_init ();
7896 int
7897 main ()
7898 {
7899 return res_9_init ();
7900   ;
7901   return 0;
7902 }
7903 _ACEOF
7904 rm -f conftest.$ac_objext conftest$ac_exeext
7905 if { (ac_try="$ac_link"
7906 case "(($ac_try" in
7907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908   *) ac_try_echo=$ac_try;;
7909 esac
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911   (eval "$ac_link") 2>conftest.er1
7912   ac_status=$?
7913   grep -v '^ *+' conftest.er1 >conftest.err
7914   rm -f conftest.er1
7915   cat conftest.err >&5
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); } &&
7918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7919   { (case "(($ac_try" in
7920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921   *) ac_try_echo=$ac_try;;
7922 esac
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924   (eval "$ac_try") 2>&5
7925   ac_status=$?
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); }; } &&
7928          { ac_try='test -s conftest$ac_exeext'
7929   { (case "(($ac_try" in
7930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931   *) ac_try_echo=$ac_try;;
7932 esac
7933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934   (eval "$ac_try") 2>&5
7935   ac_status=$?
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); }; }; then
7938   ac_cv_lib_resolv_res_9_init=yes
7939 else
7940   echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7942
7943         ac_cv_lib_resolv_res_9_init=no
7944 fi
7945
7946 rm -f core conftest.err conftest.$ac_objext \
7947       conftest$ac_exeext conftest.$ac_ext
7948 LIBS=$ac_check_lib_save_LIBS
7949 fi
7950 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
7951 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6; }
7952 if test $ac_cv_lib_resolv_res_9_init = yes; then
7953   cat >>confdefs.h <<_ACEOF
7954 #define HAVE_LIBRESOLV 1
7955 _ACEOF
7956
7957   LIBS="-lresolv $LIBS"
7958
7959 fi
7960
7961 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7962 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
7963 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
7964   echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966   ac_check_lib_save_LIBS=$LIBS
7967 LIBS="-lpthread  $LIBS"
7968 cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7974
7975 /* Override any GCC internal prototype to avoid an error.
7976    Use char because int might match the return type of a GCC
7977    builtin and then its argument prototype would still apply.  */
7978 #ifdef __cplusplus
7979 extern "C"
7980 #endif
7981 char pthread_create ();
7982 int
7983 main ()
7984 {
7985 return pthread_create ();
7986   ;
7987   return 0;
7988 }
7989 _ACEOF
7990 rm -f conftest.$ac_objext conftest$ac_exeext
7991 if { (ac_try="$ac_link"
7992 case "(($ac_try" in
7993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994   *) ac_try_echo=$ac_try;;
7995 esac
7996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997   (eval "$ac_link") 2>conftest.er1
7998   ac_status=$?
7999   grep -v '^ *+' conftest.er1 >conftest.err
8000   rm -f conftest.er1
8001   cat conftest.err >&5
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); } &&
8004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8005   { (case "(($ac_try" in
8006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007   *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010   (eval "$ac_try") 2>&5
8011   ac_status=$?
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); }; } &&
8014          { ac_try='test -s conftest$ac_exeext'
8015   { (case "(($ac_try" in
8016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017   *) ac_try_echo=$ac_try;;
8018 esac
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020   (eval "$ac_try") 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); }; }; then
8024   ac_cv_lib_pthread_pthread_create=yes
8025 else
8026   echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8028
8029         ac_cv_lib_pthread_pthread_create=no
8030 fi
8031
8032 rm -f core conftest.err conftest.$ac_objext \
8033       conftest$ac_exeext conftest.$ac_ext
8034 LIBS=$ac_check_lib_save_LIBS
8035 fi
8036 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
8037 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
8038 if test $ac_cv_lib_pthread_pthread_create = yes; then
8039   LIBPTHREAD="-lpthread"
8040
8041 fi
8042
8043
8044 XLIB=""
8045
8046 XFILES=""
8047
8048 OPENGLFILES=""
8049
8050 GLU32FILES=""
8051
8052 OPENGL_LIBS=""
8053
8054
8055
8056 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8058 if test "${ac_cv_header_stdc+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061   cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h.  */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h.  */
8067 #include <stdlib.h>
8068 #include <stdarg.h>
8069 #include <string.h>
8070 #include <float.h>
8071
8072 int
8073 main ()
8074 {
8075
8076   ;
8077   return 0;
8078 }
8079 _ACEOF
8080 rm -f conftest.$ac_objext
8081 if { (ac_try="$ac_compile"
8082 case "(($ac_try" in
8083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084   *) ac_try_echo=$ac_try;;
8085 esac
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087   (eval "$ac_compile") 2>conftest.er1
8088   ac_status=$?
8089   grep -v '^ *+' conftest.er1 >conftest.err
8090   rm -f conftest.er1
8091   cat conftest.err >&5
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); } &&
8094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8095   { (case "(($ac_try" in
8096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097   *) ac_try_echo=$ac_try;;
8098 esac
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100   (eval "$ac_try") 2>&5
8101   ac_status=$?
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); }; } &&
8104          { ac_try='test -s conftest.$ac_objext'
8105   { (case "(($ac_try" in
8106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107   *) ac_try_echo=$ac_try;;
8108 esac
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110   (eval "$ac_try") 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); }; }; then
8114   ac_cv_header_stdc=yes
8115 else
8116   echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119         ac_cv_header_stdc=no
8120 fi
8121
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123
8124 if test $ac_cv_header_stdc = yes; then
8125   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8126   cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h.  */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h.  */
8132 #include <string.h>
8133
8134 _ACEOF
8135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8136   $EGREP "memchr" >/dev/null 2>&1; then
8137   :
8138 else
8139   ac_cv_header_stdc=no
8140 fi
8141 rm -f conftest*
8142
8143 fi
8144
8145 if test $ac_cv_header_stdc = yes; then
8146   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8147   cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h.  */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h.  */
8153 #include <stdlib.h>
8154
8155 _ACEOF
8156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8157   $EGREP "free" >/dev/null 2>&1; then
8158   :
8159 else
8160   ac_cv_header_stdc=no
8161 fi
8162 rm -f conftest*
8163
8164 fi
8165
8166 if test $ac_cv_header_stdc = yes; then
8167   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8168   if test "$cross_compiling" = yes; then
8169   :
8170 else
8171   cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177 #include <ctype.h>
8178 #include <stdlib.h>
8179 #if ((' ' & 0x0FF) == 0x020)
8180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8182 #else
8183 # define ISLOWER(c) \
8184                    (('a' <= (c) && (c) <= 'i') \
8185                      || ('j' <= (c) && (c) <= 'r') \
8186                      || ('s' <= (c) && (c) <= 'z'))
8187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8188 #endif
8189
8190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8191 int
8192 main ()
8193 {
8194   int i;
8195   for (i = 0; i < 256; i++)
8196     if (XOR (islower (i), ISLOWER (i))
8197         || toupper (i) != TOUPPER (i))
8198       return 2;
8199   return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest$ac_exeext
8203 if { (ac_try="$ac_link"
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_link") 2>&5
8210   ac_status=$?
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8213   { (case "(($ac_try" in
8214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215   *) ac_try_echo=$ac_try;;
8216 esac
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218   (eval "$ac_try") 2>&5
8219   ac_status=$?
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); }; }; then
8222   :
8223 else
8224   echo "$as_me: program exited with status $ac_status" >&5
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 ( exit $ac_status )
8229 ac_cv_header_stdc=no
8230 fi
8231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8232 fi
8233
8234
8235 fi
8236 fi
8237 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8238 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8239 if test $ac_cv_header_stdc = yes; then
8240
8241 cat >>confdefs.h <<\_ACEOF
8242 #define STDC_HEADERS 1
8243 _ACEOF
8244
8245 fi
8246
8247 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8258                   inttypes.h stdint.h unistd.h
8259 do
8260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h.  */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h.  */
8272 $ac_includes_default
8273
8274 #include <$ac_header>
8275 _ACEOF
8276 rm -f conftest.$ac_objext
8277 if { (ac_try="$ac_compile"
8278 case "(($ac_try" in
8279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280   *) ac_try_echo=$ac_try;;
8281 esac
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283   (eval "$ac_compile") 2>conftest.er1
8284   ac_status=$?
8285   grep -v '^ *+' conftest.er1 >conftest.err
8286   rm -f conftest.er1
8287   cat conftest.err >&5
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); } &&
8290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8291   { (case "(($ac_try" in
8292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293   *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296   (eval "$ac_try") 2>&5
8297   ac_status=$?
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); }; } &&
8300          { ac_try='test -s conftest.$ac_objext'
8301   { (case "(($ac_try" in
8302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303   *) ac_try_echo=$ac_try;;
8304 esac
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306   (eval "$ac_try") 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; }; then
8310   eval "$as_ac_Header=yes"
8311 else
8312   echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315         eval "$as_ac_Header=no"
8316 fi
8317
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 fi
8320 ac_res=`eval echo '${'$as_ac_Header'}'`
8321                { echo "$as_me:$LINENO: result: $ac_res" >&5
8322 echo "${ECHO_T}$ac_res" >&6; }
8323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8324   cat >>confdefs.h <<_ACEOF
8325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8326 _ACEOF
8327
8328 fi
8329
8330 done
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439 for ac_header in \
8440         AudioUnit/AudioUnit.h \
8441         CoreAudio/CoreAudio.h \
8442         IOKit/IOKitLib.h \
8443         alsa/asoundlib.h \
8444         arpa/inet.h \
8445         arpa/nameser.h \
8446         asm/types.h \
8447         capi20.h \
8448         cups/cups.h \
8449         curses.h \
8450         direct.h \
8451         dlfcn.h \
8452         elf.h \
8453         float.h \
8454         fontconfig/fontconfig.h \
8455         getopt.h \
8456         gif_lib.h \
8457         ieeefp.h \
8458         io.h \
8459         jack/jack.h \
8460         jpeglib.h \
8461         lber.h \
8462         lcms.h \
8463         lcms/lcms.h \
8464         ldap.h \
8465         libaudioio.h \
8466         link.h \
8467         linux/cdrom.h \
8468         linux/compiler.h \
8469         linux/hdreg.h \
8470         linux/input.h \
8471         linux/ioctl.h \
8472         linux/joystick.h \
8473         linux/major.h \
8474         linux/param.h \
8475         linux/serial.h \
8476         linux/ucdrom.h \
8477         mach/machine.h \
8478         machine/cpu.h \
8479         machine/limits.h \
8480         machine/soundcard.h \
8481         mntent.h \
8482         ncurses.h \
8483         netdb.h \
8484         netinet/in.h \
8485         netinet/in_systm.h \
8486         netinet/tcp.h \
8487         netinet/tcp_fsm.h \
8488         openssl/err.h \
8489         openssl/ssl.h \
8490         poll.h \
8491         process.h \
8492         pthread.h \
8493         pwd.h \
8494         regex.h \
8495         sched.h \
8496         scsi/scsi.h \
8497         scsi/scsi_ioctl.h \
8498         scsi/sg.h \
8499         soundcard.h \
8500         stdint.h \
8501         strings.h \
8502         sys/asoundlib.h \
8503         sys/cdio.h \
8504         sys/elf32.h \
8505         sys/epoll.h \
8506         sys/errno.h \
8507         sys/exec_elf.h \
8508         sys/filio.h \
8509         sys/ioctl.h \
8510         sys/ipc.h \
8511         sys/limits.h \
8512         sys/link.h \
8513         sys/lwp.h \
8514         sys/mman.h \
8515         sys/modem.h \
8516         sys/msg.h \
8517         sys/mtio.h \
8518         sys/param.h \
8519         sys/poll.h \
8520         sys/prctl.h \
8521         sys/ptrace.h \
8522         sys/reg.h \
8523         sys/resource.h \
8524         sys/scsiio.h \
8525         sys/shm.h \
8526         sys/signal.h \
8527         sys/socket.h \
8528         sys/sockio.h \
8529         sys/soundcard.h \
8530         sys/statvfs.h \
8531         sys/strtio.h \
8532         sys/syscall.h \
8533         sys/sysctl.h \
8534         sys/time.h \
8535         sys/times.h \
8536         sys/uio.h \
8537         sys/un.h \
8538         sys/vm86.h \
8539         sys/wait.h \
8540         syscall.h \
8541         termios.h \
8542         unicode/ubidi.h \
8543         unistd.h \
8544         utime.h \
8545         valgrind/memcheck.h
8546
8547 do
8548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8550   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553   echo $ECHO_N "(cached) $ECHO_C" >&6
8554 fi
8555 ac_res=`eval echo '${'$as_ac_Header'}'`
8556                { echo "$as_me:$LINENO: result: $ac_res" >&5
8557 echo "${ECHO_T}$ac_res" >&6; }
8558 else
8559   # Is the header compilable?
8560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h.  */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h.  */
8568 $ac_includes_default
8569 #include <$ac_header>
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8573 case "(($ac_try" in
8574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575   *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578   (eval "$ac_compile") 2>conftest.er1
8579   ac_status=$?
8580   grep -v '^ *+' conftest.er1 >conftest.err
8581   rm -f conftest.er1
8582   cat conftest.err >&5
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); } &&
8585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586   { (case "(($ac_try" in
8587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588   *) ac_try_echo=$ac_try;;
8589 esac
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591   (eval "$ac_try") 2>&5
8592   ac_status=$?
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); }; } &&
8595          { ac_try='test -s conftest.$ac_objext'
8596   { (case "(($ac_try" in
8597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598   *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601   (eval "$ac_try") 2>&5
8602   ac_status=$?
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); }; }; then
8605   ac_header_compiler=yes
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610         ac_header_compiler=no
8611 fi
8612
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8615 echo "${ECHO_T}$ac_header_compiler" >&6; }
8616
8617 # Is the header present?
8618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h.  */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h.  */
8626 #include <$ac_header>
8627 _ACEOF
8628 if { (ac_try="$ac_cpp conftest.$ac_ext"
8629 case "(($ac_try" in
8630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631   *) ac_try_echo=$ac_try;;
8632 esac
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8635   ac_status=$?
8636   grep -v '^ *+' conftest.er1 >conftest.err
8637   rm -f conftest.er1
8638   cat conftest.err >&5
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); } >/dev/null; then
8641   if test -s conftest.err; then
8642     ac_cpp_err=$ac_c_preproc_warn_flag
8643     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8644   else
8645     ac_cpp_err=
8646   fi
8647 else
8648   ac_cpp_err=yes
8649 fi
8650 if test -z "$ac_cpp_err"; then
8651   ac_header_preproc=yes
8652 else
8653   echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8655
8656   ac_header_preproc=no
8657 fi
8658
8659 rm -f conftest.err conftest.$ac_ext
8660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8661 echo "${ECHO_T}$ac_header_preproc" >&6; }
8662
8663 # So?  What about this header?
8664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8665   yes:no: )
8666     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8670     ac_header_preproc=yes
8671     ;;
8672   no:yes:* )
8673     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8675     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8676 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8677     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8679     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8680 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8683     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8685     ( cat <<\_ASBOX
8686 ## ------------------------------------ ##
8687 ## Report this to wine-devel@winehq.org ##
8688 ## ------------------------------------ ##
8689 _ASBOX
8690      ) | sed "s/^/$as_me: WARNING:     /" >&2
8691     ;;
8692 esac
8693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698   eval "$as_ac_Header=\$ac_header_preproc"
8699 fi
8700 ac_res=`eval echo '${'$as_ac_Header'}'`
8701                { echo "$as_me:$LINENO: result: $ac_res" >&5
8702 echo "${ECHO_T}$ac_res" >&6; }
8703
8704 fi
8705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8706   cat >>confdefs.h <<_ACEOF
8707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8708 _ACEOF
8709
8710 fi
8711
8712 done
8713
8714 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8715 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
8716 if test "${ac_cv_header_stat_broken+set}" = set; then
8717   echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719   cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h.  */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h.  */
8725 #include <sys/types.h>
8726 #include <sys/stat.h>
8727
8728 #if defined S_ISBLK && defined S_IFDIR
8729 # if S_ISBLK (S_IFDIR)
8730 You lose.
8731 # endif
8732 #endif
8733
8734 #if defined S_ISBLK && defined S_IFCHR
8735 # if S_ISBLK (S_IFCHR)
8736 You lose.
8737 # endif
8738 #endif
8739
8740 #if defined S_ISLNK && defined S_IFREG
8741 # if S_ISLNK (S_IFREG)
8742 You lose.
8743 # endif
8744 #endif
8745
8746 #if defined S_ISSOCK && defined S_IFREG
8747 # if S_ISSOCK (S_IFREG)
8748 You lose.
8749 # endif
8750 #endif
8751
8752 _ACEOF
8753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8754   $EGREP "You lose" >/dev/null 2>&1; then
8755   ac_cv_header_stat_broken=yes
8756 else
8757   ac_cv_header_stat_broken=no
8758 fi
8759 rm -f conftest*
8760
8761 fi
8762 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8763 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
8764 if test $ac_cv_header_stat_broken = yes; then
8765
8766 cat >>confdefs.h <<\_ACEOF
8767 #define STAT_MACROS_BROKEN 1
8768 _ACEOF
8769
8770 fi
8771
8772
8773
8774
8775
8776
8777
8778 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8779 do
8780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8784   echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786   cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h.  */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h.  */
8792 #include <sys/types.h>
8793      #if HAVE_SYS_PARAM_H
8794      # include <sys/param.h>
8795      #endif
8796
8797 #include <$ac_header>
8798 _ACEOF
8799 rm -f conftest.$ac_objext
8800 if { (ac_try="$ac_compile"
8801 case "(($ac_try" in
8802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803   *) ac_try_echo=$ac_try;;
8804 esac
8805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806   (eval "$ac_compile") 2>conftest.er1
8807   ac_status=$?
8808   grep -v '^ *+' conftest.er1 >conftest.err
8809   rm -f conftest.er1
8810   cat conftest.err >&5
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); } &&
8813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8814   { (case "(($ac_try" in
8815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816   *) ac_try_echo=$ac_try;;
8817 esac
8818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819   (eval "$ac_try") 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); }; } &&
8823          { ac_try='test -s conftest.$ac_objext'
8824   { (case "(($ac_try" in
8825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826   *) ac_try_echo=$ac_try;;
8827 esac
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829   (eval "$ac_try") 2>&5
8830   ac_status=$?
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); }; }; then
8833   eval "$as_ac_Header=yes"
8834 else
8835   echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8837
8838         eval "$as_ac_Header=no"
8839 fi
8840
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 fi
8843 ac_res=`eval echo '${'$as_ac_Header'}'`
8844                { echo "$as_me:$LINENO: result: $ac_res" >&5
8845 echo "${ECHO_T}$ac_res" >&6; }
8846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8847   cat >>confdefs.h <<_ACEOF
8848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8849 _ACEOF
8850
8851 fi
8852
8853 done
8854
8855
8856
8857
8858
8859
8860
8861
8862 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
8863 do
8864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8868   echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870   cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h.  */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h.  */
8876 #include <sys/types.h>
8877      #if HAVE_SYS_SOCKET_H
8878      # include <sys/socket.h>
8879      #endif
8880
8881 #include <$ac_header>
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (ac_try="$ac_compile"
8885 case "(($ac_try" in
8886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887   *) ac_try_echo=$ac_try;;
8888 esac
8889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8890   (eval "$ac_compile") 2>conftest.er1
8891   ac_status=$?
8892   grep -v '^ *+' conftest.er1 >conftest.err
8893   rm -f conftest.er1
8894   cat conftest.err >&5
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); } &&
8897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8907          { ac_try='test -s conftest.$ac_objext'
8908   { (case "(($ac_try" in
8909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910   *) ac_try_echo=$ac_try;;
8911 esac
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913   (eval "$ac_try") 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); }; }; then
8917   eval "$as_ac_Header=yes"
8918 else
8919   echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8921
8922         eval "$as_ac_Header=no"
8923 fi
8924
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 fi
8927 ac_res=`eval echo '${'$as_ac_Header'}'`
8928                { echo "$as_me:$LINENO: result: $ac_res" >&5
8929 echo "${ECHO_T}$ac_res" >&6; }
8930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8931   cat >>confdefs.h <<_ACEOF
8932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8933 _ACEOF
8934
8935 fi
8936
8937 done
8938
8939
8940
8941 for ac_header in resolv.h
8942 do
8943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8947   echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949   cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h.  */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h.  */
8955 #include <sys/types.h>
8956      #if HAVE_SYS_SOCKET_H
8957      # include <sys/socket.h>
8958      #endif
8959      #if HAVE_NETINET_IN_H
8960      # include <netinet/in.h>
8961      #endif
8962      #if HAVE_ARPA_NAMESER_H
8963      # include <arpa/nameser.h>
8964      #endif
8965
8966 #include <$ac_header>
8967 _ACEOF
8968 rm -f conftest.$ac_objext
8969 if { (ac_try="$ac_compile"
8970 case "(($ac_try" in
8971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972   *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975   (eval "$ac_compile") 2>conftest.er1
8976   ac_status=$?
8977   grep -v '^ *+' conftest.er1 >conftest.err
8978   rm -f conftest.er1
8979   cat conftest.err >&5
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); } &&
8982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8983   { (case "(($ac_try" in
8984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985   *) ac_try_echo=$ac_try;;
8986 esac
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988   (eval "$ac_try") 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; } &&
8992          { ac_try='test -s conftest.$ac_objext'
8993   { (case "(($ac_try" in
8994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995   *) ac_try_echo=$ac_try;;
8996 esac
8997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998   (eval "$ac_try") 2>&5
8999   ac_status=$?
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); }; }; then
9002   eval "$as_ac_Header=yes"
9003 else
9004   echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9006
9007         eval "$as_ac_Header=no"
9008 fi
9009
9010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9011 fi
9012 ac_res=`eval echo '${'$as_ac_Header'}'`
9013                { echo "$as_me:$LINENO: result: $ac_res" >&5
9014 echo "${ECHO_T}$ac_res" >&6; }
9015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9016   cat >>confdefs.h <<_ACEOF
9017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9018 _ACEOF
9019
9020 fi
9021
9022 done
9023
9024
9025
9026 for ac_header in ucontext.h
9027 do
9028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9032   echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034   cat >conftest.$ac_ext <<_ACEOF
9035 /* confdefs.h.  */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h.  */
9040 #include <signal.h>
9041
9042 #include <$ac_header>
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (ac_try="$ac_compile"
9046 case "(($ac_try" in
9047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048   *) ac_try_echo=$ac_try;;
9049 esac
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051   (eval "$ac_compile") 2>conftest.er1
9052   ac_status=$?
9053   grep -v '^ *+' conftest.er1 >conftest.err
9054   rm -f conftest.er1
9055   cat conftest.err >&5
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } &&
9058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9059   { (case "(($ac_try" in
9060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061   *) ac_try_echo=$ac_try;;
9062 esac
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064   (eval "$ac_try") 2>&5
9065   ac_status=$?
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); }; } &&
9068          { ac_try='test -s conftest.$ac_objext'
9069   { (case "(($ac_try" in
9070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071   *) ac_try_echo=$ac_try;;
9072 esac
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074   (eval "$ac_try") 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; }; then
9078   eval "$as_ac_Header=yes"
9079 else
9080   echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9082
9083         eval "$as_ac_Header=no"
9084 fi
9085
9086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9087 fi
9088 ac_res=`eval echo '${'$as_ac_Header'}'`
9089                { echo "$as_me:$LINENO: result: $ac_res" >&5
9090 echo "${ECHO_T}$ac_res" >&6; }
9091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9092   cat >>confdefs.h <<_ACEOF
9093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9094 _ACEOF
9095
9096 fi
9097
9098 done
9099
9100
9101
9102
9103 for ac_header in linux/ipx.h linux/videodev.h
9104 do
9105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9109   echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111   cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h.  */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h.  */
9117 #ifdef HAVE_SYS_TIME_H
9118 #include <sys/time.h>
9119 #endif
9120 #include <sys/types.h>
9121 #ifdef HAVE_ASM_TYPES_H
9122 #include <asm/types.h>
9123 #endif
9124
9125 #include <$ac_header>
9126 _ACEOF
9127 rm -f conftest.$ac_objext
9128 if { (ac_try="$ac_compile"
9129 case "(($ac_try" in
9130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131   *) ac_try_echo=$ac_try;;
9132 esac
9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134   (eval "$ac_compile") 2>conftest.er1
9135   ac_status=$?
9136   grep -v '^ *+' conftest.er1 >conftest.err
9137   rm -f conftest.er1
9138   cat conftest.err >&5
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); } &&
9141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9142   { (case "(($ac_try" in
9143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144   *) ac_try_echo=$ac_try;;
9145 esac
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147   (eval "$ac_try") 2>&5
9148   ac_status=$?
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); }; } &&
9151          { ac_try='test -s conftest.$ac_objext'
9152   { (case "(($ac_try" in
9153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154   *) ac_try_echo=$ac_try;;
9155 esac
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157   (eval "$ac_try") 2>&5
9158   ac_status=$?
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); }; }; then
9161   eval "$as_ac_Header=yes"
9162 else
9163   echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9165
9166         eval "$as_ac_Header=no"
9167 fi
9168
9169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170 fi
9171 ac_res=`eval echo '${'$as_ac_Header'}'`
9172                { echo "$as_me:$LINENO: result: $ac_res" >&5
9173 echo "${ECHO_T}$ac_res" >&6; }
9174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9175   cat >>confdefs.h <<_ACEOF
9176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9177 _ACEOF
9178
9179 fi
9180
9181 done
9182
9183
9184
9185 for ac_header in linux/capi.h
9186 do
9187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9191   echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193   cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h.  */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h.  */
9199 #define __user
9200
9201 #include <$ac_header>
9202 _ACEOF
9203 rm -f conftest.$ac_objext
9204 if { (ac_try="$ac_compile"
9205 case "(($ac_try" in
9206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207   *) ac_try_echo=$ac_try;;
9208 esac
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210   (eval "$ac_compile") 2>conftest.er1
9211   ac_status=$?
9212   grep -v '^ *+' conftest.er1 >conftest.err
9213   rm -f conftest.er1
9214   cat conftest.err >&5
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } &&
9217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9218   { (case "(($ac_try" in
9219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220   *) ac_try_echo=$ac_try;;
9221 esac
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223   (eval "$ac_try") 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); }; } &&
9227          { ac_try='test -s conftest.$ac_objext'
9228   { (case "(($ac_try" in
9229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230   *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233   (eval "$ac_try") 2>&5
9234   ac_status=$?
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); }; }; then
9237   eval "$as_ac_Header=yes"
9238 else
9239   echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242         eval "$as_ac_Header=no"
9243 fi
9244
9245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246 fi
9247 ac_res=`eval echo '${'$as_ac_Header'}'`
9248                { echo "$as_me:$LINENO: result: $ac_res" >&5
9249 echo "${ECHO_T}$ac_res" >&6; }
9250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9251   cat >>confdefs.h <<_ACEOF
9252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9253 _ACEOF
9254
9255 fi
9256
9257 done
9258
9259
9260
9261 if test "$have_x" = "yes"
9262 then
9263     XLIB="-lXext -lX11"
9264     ac_save_CPPFLAGS="$CPPFLAGS"
9265     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277 for ac_header in X11/Xlib.h \
9278                       X11/XKBlib.h \
9279                       X11/Xutil.h \
9280                       X11/extensions/shape.h \
9281                       X11/extensions/XInput.h \
9282                       X11/extensions/XShm.h \
9283                       X11/extensions/Xrandr.h \
9284                       X11/extensions/Xrender.h \
9285                       X11/extensions/xf86dga.h \
9286                       X11/extensions/xf86vmode.h
9287 do
9288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9292   echo $ECHO_N "(cached) $ECHO_C" >&6
9293 else
9294   cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h.  */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h.  */
9300 #ifdef HAVE_X11_XLIB_H
9301 # include <X11/Xlib.h>
9302 #endif
9303 #ifdef HAVE_X11_XUTIL_H
9304 # include <X11/Xutil.h>
9305 #endif
9306
9307 #include <$ac_header>
9308 _ACEOF
9309 rm -f conftest.$ac_objext
9310 if { (ac_try="$ac_compile"
9311 case "(($ac_try" in
9312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313   *) ac_try_echo=$ac_try;;
9314 esac
9315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316   (eval "$ac_compile") 2>conftest.er1
9317   ac_status=$?
9318   grep -v '^ *+' conftest.er1 >conftest.err
9319   rm -f conftest.er1
9320   cat conftest.err >&5
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); } &&
9323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9324   { (case "(($ac_try" in
9325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326   *) ac_try_echo=$ac_try;;
9327 esac
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329   (eval "$ac_try") 2>&5
9330   ac_status=$?
9331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   (exit $ac_status); }; } &&
9333          { ac_try='test -s conftest.$ac_objext'
9334   { (case "(($ac_try" in
9335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336   *) ac_try_echo=$ac_try;;
9337 esac
9338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339   (eval "$ac_try") 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); }; }; then
9343   eval "$as_ac_Header=yes"
9344 else
9345   echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9347
9348         eval "$as_ac_Header=no"
9349 fi
9350
9351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9352 fi
9353 ac_res=`eval echo '${'$as_ac_Header'}'`
9354                { echo "$as_me:$LINENO: result: $ac_res" >&5
9355 echo "${ECHO_T}$ac_res" >&6; }
9356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9357   cat >>confdefs.h <<_ACEOF
9358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9359 _ACEOF
9360
9361 fi
9362
9363 done
9364
9365
9366                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9367         then
9368               { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9369 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
9370 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9371   echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9373   ac_check_lib_save_LIBS=$LIBS
9374 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381
9382 /* Override any GCC internal prototype to avoid an error.
9383    Use char because int might match the return type of a GCC
9384    builtin and then its argument prototype would still apply.  */
9385 #ifdef __cplusplus
9386 extern "C"
9387 #endif
9388 char XkbQueryExtension ();
9389 int
9390 main ()
9391 {
9392 return XkbQueryExtension ();
9393   ;
9394   return 0;
9395 }
9396 _ACEOF
9397 rm -f conftest.$ac_objext conftest$ac_exeext
9398 if { (ac_try="$ac_link"
9399 case "(($ac_try" in
9400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401   *) ac_try_echo=$ac_try;;
9402 esac
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404   (eval "$ac_link") 2>conftest.er1
9405   ac_status=$?
9406   grep -v '^ *+' conftest.er1 >conftest.err
9407   rm -f conftest.er1
9408   cat conftest.err >&5
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); } &&
9411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9412   { (case "(($ac_try" in
9413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9414   *) ac_try_echo=$ac_try;;
9415 esac
9416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9417   (eval "$ac_try") 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; } &&
9421          { ac_try='test -s conftest$ac_exeext'
9422   { (case "(($ac_try" in
9423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424   *) ac_try_echo=$ac_try;;
9425 esac
9426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427   (eval "$ac_try") 2>&5
9428   ac_status=$?
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); }; }; then
9431   ac_cv_lib_X11_XkbQueryExtension=yes
9432 else
9433   echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9435
9436         ac_cv_lib_X11_XkbQueryExtension=no
9437 fi
9438
9439 rm -f core conftest.err conftest.$ac_objext \
9440       conftest$ac_exeext conftest.$ac_ext
9441 LIBS=$ac_check_lib_save_LIBS
9442 fi
9443 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9444 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9445 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
9446
9447 cat >>confdefs.h <<\_ACEOF
9448 #define HAVE_XKB 1
9449 _ACEOF
9450
9451 fi
9452
9453         fi
9454
9455                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9456         then
9457               { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9458 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
9459 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9460   echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462   ac_check_lib_save_LIBS=$LIBS
9463 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h.  */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h.  */
9470
9471 /* Override any GCC internal prototype to avoid an error.
9472    Use char because int might match the return type of a GCC
9473    builtin and then its argument prototype would still apply.  */
9474 #ifdef __cplusplus
9475 extern "C"
9476 #endif
9477 char XShmQueryExtension ();
9478 int
9479 main ()
9480 {
9481 return XShmQueryExtension ();
9482   ;
9483   return 0;
9484 }
9485 _ACEOF
9486 rm -f conftest.$ac_objext conftest$ac_exeext
9487 if { (ac_try="$ac_link"
9488 case "(($ac_try" in
9489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490   *) ac_try_echo=$ac_try;;
9491 esac
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493   (eval "$ac_link") 2>conftest.er1
9494   ac_status=$?
9495   grep -v '^ *+' conftest.er1 >conftest.err
9496   rm -f conftest.er1
9497   cat conftest.err >&5
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } &&
9500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9501   { (case "(($ac_try" in
9502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503   *) ac_try_echo=$ac_try;;
9504 esac
9505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9506   (eval "$ac_try") 2>&5
9507   ac_status=$?
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); }; } &&
9510          { ac_try='test -s conftest$ac_exeext'
9511   { (case "(($ac_try" in
9512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513   *) ac_try_echo=$ac_try;;
9514 esac
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516   (eval "$ac_try") 2>&5
9517   ac_status=$?
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); }; }; then
9520   ac_cv_lib_Xext_XShmQueryExtension=yes
9521 else
9522   echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9524
9525         ac_cv_lib_Xext_XShmQueryExtension=no
9526 fi
9527
9528 rm -f core conftest.err conftest.$ac_objext \
9529       conftest$ac_exeext conftest.$ac_ext
9530 LIBS=$ac_check_lib_save_LIBS
9531 fi
9532 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9533 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9534 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
9535
9536 cat >>confdefs.h <<\_ACEOF
9537 #define HAVE_LIBXXSHM 1
9538 _ACEOF
9539
9540 fi
9541
9542         fi
9543
9544                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9545         then
9546               { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9547 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9548 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9549   echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551   ac_check_lib_save_LIBS=$LIBS
9552 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h.  */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h.  */
9559
9560 /* Override any GCC internal prototype to avoid an error.
9561    Use char because int might match the return type of a GCC
9562    builtin and then its argument prototype would still apply.  */
9563 #ifdef __cplusplus
9564 extern "C"
9565 #endif
9566 char XShapeQueryExtension ();
9567 int
9568 main ()
9569 {
9570 return XShapeQueryExtension ();
9571   ;
9572   return 0;
9573 }
9574 _ACEOF
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (ac_try="$ac_link"
9577 case "(($ac_try" in
9578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579   *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582   (eval "$ac_link") 2>conftest.er1
9583   ac_status=$?
9584   grep -v '^ *+' conftest.er1 >conftest.err
9585   rm -f conftest.er1
9586   cat conftest.err >&5
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); } &&
9589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9590   { (case "(($ac_try" in
9591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592   *) ac_try_echo=$ac_try;;
9593 esac
9594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595   (eval "$ac_try") 2>&5
9596   ac_status=$?
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); }; } &&
9599          { ac_try='test -s conftest$ac_exeext'
9600   { (case "(($ac_try" in
9601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602   *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605   (eval "$ac_try") 2>&5
9606   ac_status=$?
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); }; }; then
9609   ac_cv_lib_Xext_XShapeQueryExtension=yes
9610 else
9611   echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9613
9614         ac_cv_lib_Xext_XShapeQueryExtension=no
9615 fi
9616
9617 rm -f core conftest.err conftest.$ac_objext \
9618       conftest$ac_exeext conftest.$ac_ext
9619 LIBS=$ac_check_lib_save_LIBS
9620 fi
9621 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9622 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9623 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9624
9625 cat >>confdefs.h <<\_ACEOF
9626 #define HAVE_LIBXSHAPE 1
9627 _ACEOF
9628
9629 fi
9630
9631         fi
9632
9633                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
9634         then
9635               { echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
9636 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6; }
9637 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
9638   echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640   ac_check_lib_save_LIBS=$LIBS
9641 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9642 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h.  */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h.  */
9648
9649 /* Override any GCC internal prototype to avoid an error.
9650    Use char because int might match the return type of a GCC
9651    builtin and then its argument prototype would still apply.  */
9652 #ifdef __cplusplus
9653 extern "C"
9654 #endif
9655 char XDGAQueryExtension ();
9656 int
9657 main ()
9658 {
9659 return XDGAQueryExtension ();
9660   ;
9661   return 0;
9662 }
9663 _ACEOF
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (ac_try="$ac_link"
9666 case "(($ac_try" in
9667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668   *) ac_try_echo=$ac_try;;
9669 esac
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671   (eval "$ac_link") 2>conftest.er1
9672   ac_status=$?
9673   grep -v '^ *+' conftest.er1 >conftest.err
9674   rm -f conftest.er1
9675   cat conftest.err >&5
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); } &&
9678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9679   { (case "(($ac_try" in
9680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681   *) ac_try_echo=$ac_try;;
9682 esac
9683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684   (eval "$ac_try") 2>&5
9685   ac_status=$?
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); }; } &&
9688          { ac_try='test -s conftest$ac_exeext'
9689   { (case "(($ac_try" in
9690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691   *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694   (eval "$ac_try") 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; }; then
9698   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
9699 else
9700   echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9702
9703         ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
9704 fi
9705
9706 rm -f core conftest.err conftest.$ac_objext \
9707       conftest$ac_exeext conftest.$ac_ext
9708 LIBS=$ac_check_lib_save_LIBS
9709 fi
9710 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
9711 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6; }
9712 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
9713
9714 cat >>confdefs.h <<\_ACEOF
9715 #define HAVE_LIBXXF86DGA2 1
9716 _ACEOF
9717
9718                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
9719
9720 fi
9721
9722         fi
9723
9724                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9725         then
9726                 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9727 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9728 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9729   echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731   ac_check_lib_save_LIBS=$LIBS
9732 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9733 cat >conftest.$ac_ext <<_ACEOF
9734 /* confdefs.h.  */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h.  */
9739
9740 /* Override any GCC internal prototype to avoid an error.
9741    Use char because int might match the return type of a GCC
9742    builtin and then its argument prototype would still apply.  */
9743 #ifdef __cplusplus
9744 extern "C"
9745 #endif
9746 char XF86VidModeQueryExtension ();
9747 int
9748 main ()
9749 {
9750 return XF86VidModeQueryExtension ();
9751   ;
9752   return 0;
9753 }
9754 _ACEOF
9755 rm -f conftest.$ac_objext conftest$ac_exeext
9756 if { (ac_try="$ac_link"
9757 case "(($ac_try" in
9758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759   *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762   (eval "$ac_link") 2>conftest.er1
9763   ac_status=$?
9764   grep -v '^ *+' conftest.er1 >conftest.err
9765   rm -f conftest.er1
9766   cat conftest.err >&5
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); } &&
9769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9770   { (case "(($ac_try" in
9771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772   *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775   (eval "$ac_try") 2>&5
9776   ac_status=$?
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); }; } &&
9779          { ac_try='test -s conftest$ac_exeext'
9780   { (case "(($ac_try" in
9781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782   *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785   (eval "$ac_try") 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; }; then
9789   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9790 else
9791   echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9793
9794         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9795 fi
9796
9797 rm -f core conftest.err conftest.$ac_objext \
9798       conftest$ac_exeext conftest.$ac_ext
9799 LIBS=$ac_check_lib_save_LIBS
9800 fi
9801 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9802 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9803 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9804
9805 cat >>confdefs.h <<\_ACEOF
9806 #define HAVE_LIBXXF86VM 1
9807 _ACEOF
9808
9809                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
9810
9811 fi
9812
9813         fi
9814
9815                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9816         then
9817                 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h.  */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h.  */
9823 #include <X11/Xlib.h>
9824 #include <X11/extensions/Xrandr.h>
9825 int
9826 main ()
9827 {
9828 static typeof(XRRSetScreenConfigAndRate) * func;
9829   ;
9830   return 0;
9831 }
9832 _ACEOF
9833 rm -f conftest.$ac_objext
9834 if { (ac_try="$ac_compile"
9835 case "(($ac_try" in
9836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837   *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840   (eval "$ac_compile") 2>conftest.er1
9841   ac_status=$?
9842   grep -v '^ *+' conftest.er1 >conftest.err
9843   rm -f conftest.er1
9844   cat conftest.err >&5
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); } &&
9847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9848   { (case "(($ac_try" in
9849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850   *) ac_try_echo=$ac_try;;
9851 esac
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853   (eval "$ac_try") 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); }; } &&
9857          { ac_try='test -s conftest.$ac_objext'
9858   { (case "(($ac_try" in
9859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860   *) ac_try_echo=$ac_try;;
9861 esac
9862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863   (eval "$ac_try") 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; }; then
9867
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_LIBXRANDR 1
9870 _ACEOF
9871
9872 else
9873   echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9875
9876
9877 fi
9878
9879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9880         fi
9881
9882                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9883         then
9884               { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9885 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9886 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889   ac_check_lib_save_LIBS=$LIBS
9890 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h.  */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h.  */
9897
9898 /* Override any GCC internal prototype to avoid an error.
9899    Use char because int might match the return type of a GCC
9900    builtin and then its argument prototype would still apply.  */
9901 #ifdef __cplusplus
9902 extern "C"
9903 #endif
9904 char XRenderSetPictureTransform ();
9905 int
9906 main ()
9907 {
9908 return XRenderSetPictureTransform ();
9909   ;
9910   return 0;
9911 }
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (ac_try="$ac_link"
9915 case "(($ac_try" in
9916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917   *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920   (eval "$ac_link") 2>conftest.er1
9921   ac_status=$?
9922   grep -v '^ *+' conftest.er1 >conftest.err
9923   rm -f conftest.er1
9924   cat conftest.err >&5
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } &&
9927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9928   { (case "(($ac_try" in
9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930   *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933   (eval "$ac_try") 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; } &&
9937          { ac_try='test -s conftest$ac_exeext'
9938   { (case "(($ac_try" in
9939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940   *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943   (eval "$ac_try") 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); }; }; then
9947   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9948 else
9949   echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9951
9952         ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9953 fi
9954
9955 rm -f core conftest.err conftest.$ac_objext \
9956       conftest$ac_exeext conftest.$ac_ext
9957 LIBS=$ac_check_lib_save_LIBS
9958 fi
9959 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9960 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9961 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9962
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9965 _ACEOF
9966
9967 fi
9968
9969         fi
9970
9971         if test "x$with_opengl" != "xno"
9972     then
9973
9974
9975
9976
9977 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
9978 do
9979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9983   echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985   cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h.  */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h.  */
9991 #ifdef HAVE_GL_GLX_H
9992 # include <GL/glx.h>
9993 #endif
9994
9995 #include <$ac_header>
9996 _ACEOF
9997 rm -f conftest.$ac_objext
9998 if { (ac_try="$ac_compile"
9999 case "(($ac_try" in
10000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001   *) ac_try_echo=$ac_try;;
10002 esac
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004   (eval "$ac_compile") 2>conftest.er1
10005   ac_status=$?
10006   grep -v '^ *+' conftest.er1 >conftest.err
10007   rm -f conftest.er1
10008   cat conftest.err >&5
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); } &&
10011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10012   { (case "(($ac_try" in
10013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014   *) ac_try_echo=$ac_try;;
10015 esac
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017   (eval "$ac_try") 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; } &&
10021          { ac_try='test -s conftest.$ac_objext'
10022   { (case "(($ac_try" in
10023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024   *) ac_try_echo=$ac_try;;
10025 esac
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027   (eval "$ac_try") 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); }; }; then
10031   eval "$as_ac_Header=yes"
10032 else
10033   echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036         eval "$as_ac_Header=no"
10037 fi
10038
10039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040 fi
10041 ac_res=`eval echo '${'$as_ac_Header'}'`
10042                { echo "$as_me:$LINENO: result: $ac_res" >&5
10043 echo "${ECHO_T}$ac_res" >&6; }
10044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10045   cat >>confdefs.h <<_ACEOF
10046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10047 _ACEOF
10048
10049 fi
10050
10051 done
10052
10053         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
10054         then
10055                     { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
10056 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
10057 if test "${wine_cv_opengl_version_OK+set}" = set; then
10058   echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060   cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h.  */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h.  */
10066 #include <GL/gl.h>
10067 int
10068 main ()
10069 {
10070 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 rm -f conftest.$ac_objext
10076 if { (ac_try="$ac_compile"
10077 case "(($ac_try" in
10078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079   *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082   (eval "$ac_compile") 2>conftest.er1
10083   ac_status=$?
10084   grep -v '^ *+' conftest.er1 >conftest.err
10085   rm -f conftest.er1
10086   cat conftest.err >&5
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } &&
10089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090   { (case "(($ac_try" in
10091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092   *) ac_try_echo=$ac_try;;
10093 esac
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095   (eval "$ac_try") 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; } &&
10099          { ac_try='test -s conftest.$ac_objext'
10100   { (case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_try") 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   wine_cv_opengl_version_OK="yes"
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114         wine_cv_opengl_version_OK="no"
10115
10116 fi
10117
10118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10119
10120 fi
10121 { echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
10122 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; }
10123
10124             if test "$wine_cv_opengl_version_OK" = "yes"
10125             then
10126                                 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
10127 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
10128 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
10129   echo $ECHO_N "(cached) $ECHO_C" >&6
10130 else
10131   ac_check_lib_save_LIBS=$LIBS
10132 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $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 glXCreateContext ();
10147 int
10148 main ()
10149 {
10150 return glXCreateContext ();
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_GL_glXCreateContext=yes
10190 else
10191   echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194         ac_cv_lib_GL_glXCreateContext=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_GL_glXCreateContext" >&5
10202 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
10203 if test $ac_cv_lib_GL_glXCreateContext = yes; then
10204   OPENGL_LIBS="-lGL"
10205
10206 fi
10207
10208
10209                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
10210                 then
10211                         OPENGLFILES='$(OPENGLFILES)'
10212
10213 cat >>confdefs.h <<\_ACEOF
10214 #define HAVE_OPENGL 1
10215 _ACEOF
10216
10217                 else
10218                     if test -f /usr/X11R6/lib/libGL.a
10219                     then
10220                        { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
10221 This prevents linking to OpenGL. Delete the file and restart configure." >&5
10222 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
10223 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
10224    { (exit 1); exit 1; }; }
10225                     fi
10226                 fi
10227
10228                                 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10229 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
10230 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233   ac_check_lib_save_LIBS=$LIBS
10234 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
10235                  $LIBS"
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242
10243 /* Override any GCC internal prototype to avoid an error.
10244    Use char because int might match the return type of a GCC
10245    builtin and then its argument prototype would still apply.  */
10246 #ifdef __cplusplus
10247 extern "C"
10248 #endif
10249 char gluLookAt ();
10250 int
10251 main ()
10252 {
10253 return gluLookAt ();
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262   *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265   (eval "$ac_link") 2>conftest.er1
10266   ac_status=$?
10267   grep -v '^ *+' conftest.er1 >conftest.err
10268   rm -f conftest.er1
10269   cat conftest.err >&5
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); } &&
10272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10273   { (case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_try") 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; } &&
10282          { ac_try='test -s conftest$ac_exeext'
10283   { (case "(($ac_try" in
10284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285   *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288   (eval "$ac_try") 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; }; then
10292   ac_cv_lib_GLU_gluLookAt=yes
10293 else
10294   echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297         ac_cv_lib_GLU_gluLookAt=no
10298 fi
10299
10300 rm -f core conftest.err conftest.$ac_objext \
10301       conftest$ac_exeext conftest.$ac_ext
10302 LIBS=$ac_check_lib_save_LIBS
10303 fi
10304 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10305 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
10306 if test $ac_cv_lib_GLU_gluLookAt = yes; then
10307   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
10308                              GLU32FILES='$(GLU32FILES)'
10309
10310 fi
10311
10312              fi
10313
10314                           { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
10315 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
10316 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   ac_check_lib_save_LIBS=$LIBS
10320 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
10321 cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h.  */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h.  */
10327
10328 /* Override any GCC internal prototype to avoid an error.
10329    Use char because int might match the return type of a GCC
10330    builtin and then its argument prototype would still apply.  */
10331 #ifdef __cplusplus
10332 extern "C"
10333 #endif
10334 char glutMainLoop ();
10335 int
10336 main ()
10337 {
10338 return glutMainLoop ();
10339   ;
10340   return 0;
10341 }
10342 _ACEOF
10343 rm -f conftest.$ac_objext conftest$ac_exeext
10344 if { (ac_try="$ac_link"
10345 case "(($ac_try" in
10346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347   *) ac_try_echo=$ac_try;;
10348 esac
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350   (eval "$ac_link") 2>conftest.er1
10351   ac_status=$?
10352   grep -v '^ *+' conftest.er1 >conftest.err
10353   rm -f conftest.er1
10354   cat conftest.err >&5
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); } &&
10357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10358   { (case "(($ac_try" in
10359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360   *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363   (eval "$ac_try") 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; } &&
10367          { ac_try='test -s conftest$ac_exeext'
10368   { (case "(($ac_try" in
10369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370   *) ac_try_echo=$ac_try;;
10371 esac
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373   (eval "$ac_try") 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; }; then
10377   ac_cv_lib_glut_glutMainLoop=yes
10378 else
10379   echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10381
10382         ac_cv_lib_glut_glutMainLoop=no
10383 fi
10384
10385 rm -f core conftest.err conftest.$ac_objext \
10386       conftest$ac_exeext conftest.$ac_ext
10387 LIBS=$ac_check_lib_save_LIBS
10388 fi
10389 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
10390 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
10391 if test $ac_cv_lib_glut_glutMainLoop = yes; then
10392   GLUT_LIBS="-lglut -lXmu -lXi"
10393
10394                         GLUT32FILES='$(GLUT32FILES)'
10395
10396 fi
10397
10398          fi
10399     fi
10400
10401         NASLIBS=""
10402
10403
10404 for ac_header in audio/audiolib.h
10405 do
10406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10408   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10411   echo $ECHO_N "(cached) $ECHO_C" >&6
10412 fi
10413 ac_res=`eval echo '${'$as_ac_Header'}'`
10414                { echo "$as_me:$LINENO: result: $ac_res" >&5
10415 echo "${ECHO_T}$ac_res" >&6; }
10416 else
10417   # Is the header compilable?
10418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h.  */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h.  */
10426 $ac_includes_default
10427 #include <$ac_header>
10428 _ACEOF
10429 rm -f conftest.$ac_objext
10430 if { (ac_try="$ac_compile"
10431 case "(($ac_try" in
10432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433   *) ac_try_echo=$ac_try;;
10434 esac
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436   (eval "$ac_compile") 2>conftest.er1
10437   ac_status=$?
10438   grep -v '^ *+' conftest.er1 >conftest.err
10439   rm -f conftest.er1
10440   cat conftest.err >&5
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); } &&
10443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10444   { (case "(($ac_try" in
10445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446   *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449   (eval "$ac_try") 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); }; } &&
10453          { ac_try='test -s conftest.$ac_objext'
10454   { (case "(($ac_try" in
10455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456   *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459   (eval "$ac_try") 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; }; then
10463   ac_header_compiler=yes
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468         ac_header_compiler=no
10469 fi
10470
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10473 echo "${ECHO_T}$ac_header_compiler" >&6; }
10474
10475 # Is the header present?
10476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h.  */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h.  */
10484 #include <$ac_header>
10485 _ACEOF
10486 if { (ac_try="$ac_cpp conftest.$ac_ext"
10487 case "(($ac_try" in
10488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489   *) ac_try_echo=$ac_try;;
10490 esac
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10493   ac_status=$?
10494   grep -v '^ *+' conftest.er1 >conftest.err
10495   rm -f conftest.er1
10496   cat conftest.err >&5
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); } >/dev/null; then
10499   if test -s conftest.err; then
10500     ac_cpp_err=$ac_c_preproc_warn_flag
10501     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10502   else
10503     ac_cpp_err=
10504   fi
10505 else
10506   ac_cpp_err=yes
10507 fi
10508 if test -z "$ac_cpp_err"; then
10509   ac_header_preproc=yes
10510 else
10511   echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10513
10514   ac_header_preproc=no
10515 fi
10516
10517 rm -f conftest.err conftest.$ac_ext
10518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10519 echo "${ECHO_T}$ac_header_preproc" >&6; }
10520
10521 # So?  What about this header?
10522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10523   yes:no: )
10524     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10528     ac_header_preproc=yes
10529     ;;
10530   no:yes:* )
10531     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10533     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10534 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10535     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10537     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10538 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10541     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10543     ( cat <<\_ASBOX
10544 ## ------------------------------------ ##
10545 ## Report this to wine-devel@winehq.org ##
10546 ## ------------------------------------ ##
10547 _ASBOX
10548      ) | sed "s/^/$as_me: WARNING:     /" >&2
10549     ;;
10550 esac
10551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556   eval "$as_ac_Header=\$ac_header_preproc"
10557 fi
10558 ac_res=`eval echo '${'$as_ac_Header'}'`
10559                { echo "$as_me:$LINENO: result: $ac_res" >&5
10560 echo "${ECHO_T}$ac_res" >&6; }
10561
10562 fi
10563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10564   cat >>confdefs.h <<_ACEOF
10565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10566 _ACEOF
10567
10568 for ac_header in audio/soundlib.h
10569 do
10570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10574   echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576   cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582 #include <audio/audiolib.h>
10583
10584 #include <$ac_header>
10585 _ACEOF
10586 rm -f conftest.$ac_objext
10587 if { (ac_try="$ac_compile"
10588 case "(($ac_try" in
10589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590   *) ac_try_echo=$ac_try;;
10591 esac
10592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10593   (eval "$ac_compile") 2>conftest.er1
10594   ac_status=$?
10595   grep -v '^ *+' conftest.er1 >conftest.err
10596   rm -f conftest.er1
10597   cat conftest.err >&5
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); } &&
10600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10601   { (case "(($ac_try" in
10602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603   *) ac_try_echo=$ac_try;;
10604 esac
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606   (eval "$ac_try") 2>&5
10607   ac_status=$?
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); }; } &&
10610          { ac_try='test -s conftest.$ac_objext'
10611   { (case "(($ac_try" in
10612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613   *) ac_try_echo=$ac_try;;
10614 esac
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616   (eval "$ac_try") 2>&5
10617   ac_status=$?
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); }; }; then
10620   eval "$as_ac_Header=yes"
10621 else
10622   echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625         eval "$as_ac_Header=no"
10626 fi
10627
10628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10629 fi
10630 ac_res=`eval echo '${'$as_ac_Header'}'`
10631                { echo "$as_me:$LINENO: result: $ac_res" >&5
10632 echo "${ECHO_T}$ac_res" >&6; }
10633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10634   cat >>confdefs.h <<_ACEOF
10635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10636 _ACEOF
10637
10638 fi
10639
10640 done
10641
10642           { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10643 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
10644 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10645   echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647   ac_check_lib_save_LIBS=$LIBS
10648 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h.  */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h.  */
10655
10656 /* Override any GCC internal prototype to avoid an error.
10657    Use char because int might match the return type of a GCC
10658    builtin and then its argument prototype would still apply.  */
10659 #ifdef __cplusplus
10660 extern "C"
10661 #endif
10662 char AuCreateFlow ();
10663 int
10664 main ()
10665 {
10666 return AuCreateFlow ();
10667   ;
10668   return 0;
10669 }
10670 _ACEOF
10671 rm -f conftest.$ac_objext conftest$ac_exeext
10672 if { (ac_try="$ac_link"
10673 case "(($ac_try" in
10674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675   *) ac_try_echo=$ac_try;;
10676 esac
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678   (eval "$ac_link") 2>conftest.er1
10679   ac_status=$?
10680   grep -v '^ *+' conftest.er1 >conftest.err
10681   rm -f conftest.er1
10682   cat conftest.err >&5
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } &&
10685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10686   { (case "(($ac_try" in
10687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688   *) ac_try_echo=$ac_try;;
10689 esac
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691   (eval "$ac_try") 2>&5
10692   ac_status=$?
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); }; } &&
10695          { ac_try='test -s conftest$ac_exeext'
10696   { (case "(($ac_try" in
10697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698   *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701   (eval "$ac_try") 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); }; }; then
10705   ac_cv_lib_audio_AuCreateFlow=yes
10706 else
10707   echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10709
10710         ac_cv_lib_audio_AuCreateFlow=no
10711 fi
10712
10713 rm -f core conftest.err conftest.$ac_objext \
10714       conftest$ac_exeext conftest.$ac_ext
10715 LIBS=$ac_check_lib_save_LIBS
10716 fi
10717 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10718 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10719 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10720
10721 cat >>confdefs.h <<\_ACEOF
10722 #define HAVE_NAS 1
10723 _ACEOF
10724
10725                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10726 fi
10727
10728 fi
10729
10730 done
10731
10732
10733     CPPFLAGS="$ac_save_CPPFLAGS"
10734     XFILES='$(XFILES)'
10735 else
10736     XLIB=""
10737     X_CFLAGS=""
10738     X_LIBS=""
10739 fi
10740
10741
10742 XML2LIBS=""
10743
10744 XML2INCL=""
10745
10746 XSLTLIBS=""
10747
10748 XSLTINCL=""
10749
10750 if test "$PKG_CONFIG" != "false"
10751 then
10752     ac_save_CPPFLAGS="$CPPFLAGS"
10753     ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10754     ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
10755     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10756
10757 for ac_header in libxml/parser.h
10758 do
10759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10761   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10764   echo $ECHO_N "(cached) $ECHO_C" >&6
10765 fi
10766 ac_res=`eval echo '${'$as_ac_Header'}'`
10767                { echo "$as_me:$LINENO: result: $ac_res" >&5
10768 echo "${ECHO_T}$ac_res" >&6; }
10769 else
10770   # Is the header compilable?
10771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h.  */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h.  */
10779 $ac_includes_default
10780 #include <$ac_header>
10781 _ACEOF
10782 rm -f conftest.$ac_objext
10783 if { (ac_try="$ac_compile"
10784 case "(($ac_try" in
10785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786   *) ac_try_echo=$ac_try;;
10787 esac
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789   (eval "$ac_compile") 2>conftest.er1
10790   ac_status=$?
10791   grep -v '^ *+' conftest.er1 >conftest.err
10792   rm -f conftest.er1
10793   cat conftest.err >&5
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); } &&
10796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10797   { (case "(($ac_try" in
10798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799   *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802   (eval "$ac_try") 2>&5
10803   ac_status=$?
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); }; } &&
10806          { ac_try='test -s conftest.$ac_objext'
10807   { (case "(($ac_try" in
10808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809   *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812   (eval "$ac_try") 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); }; }; then
10816   ac_header_compiler=yes
10817 else
10818   echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10820
10821         ac_header_compiler=no
10822 fi
10823
10824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10826 echo "${ECHO_T}$ac_header_compiler" >&6; }
10827
10828 # Is the header present?
10829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h.  */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h.  */
10837 #include <$ac_header>
10838 _ACEOF
10839 if { (ac_try="$ac_cpp conftest.$ac_ext"
10840 case "(($ac_try" in
10841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842   *) ac_try_echo=$ac_try;;
10843 esac
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10846   ac_status=$?
10847   grep -v '^ *+' conftest.er1 >conftest.err
10848   rm -f conftest.er1
10849   cat conftest.err >&5
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); } >/dev/null; then
10852   if test -s conftest.err; then
10853     ac_cpp_err=$ac_c_preproc_warn_flag
10854     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10855   else
10856     ac_cpp_err=
10857   fi
10858 else
10859   ac_cpp_err=yes
10860 fi
10861 if test -z "$ac_cpp_err"; then
10862   ac_header_preproc=yes
10863 else
10864   echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10866
10867   ac_header_preproc=no
10868 fi
10869
10870 rm -f conftest.err conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10872 echo "${ECHO_T}$ac_header_preproc" >&6; }
10873
10874 # So?  What about this header?
10875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10876   yes:no: )
10877     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10881     ac_header_preproc=yes
10882     ;;
10883   no:yes:* )
10884     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10886     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10887 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10888     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10890     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10891 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10894     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10896     ( cat <<\_ASBOX
10897 ## ------------------------------------ ##
10898 ## Report this to wine-devel@winehq.org ##
10899 ## ------------------------------------ ##
10900 _ASBOX
10901      ) | sed "s/^/$as_me: WARNING:     /" >&2
10902     ;;
10903 esac
10904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10907   echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909   eval "$as_ac_Header=\$ac_header_preproc"
10910 fi
10911 ac_res=`eval echo '${'$as_ac_Header'}'`
10912                { echo "$as_me:$LINENO: result: $ac_res" >&5
10913 echo "${ECHO_T}$ac_res" >&6; }
10914
10915 fi
10916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10917   cat >>confdefs.h <<_ACEOF
10918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10919 _ACEOF
10920  { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10921 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
10922 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
10923   echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925   ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-lxml2 $ac_xml_libs $LIBS"
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h.  */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h.  */
10933
10934 /* Override any GCC internal prototype to avoid an error.
10935    Use char because int might match the return type of a GCC
10936    builtin and then its argument prototype would still apply.  */
10937 #ifdef __cplusplus
10938 extern "C"
10939 #endif
10940 char xmlParseMemory ();
10941 int
10942 main ()
10943 {
10944 return xmlParseMemory ();
10945   ;
10946   return 0;
10947 }
10948 _ACEOF
10949 rm -f conftest.$ac_objext conftest$ac_exeext
10950 if { (ac_try="$ac_link"
10951 case "(($ac_try" in
10952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953   *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956   (eval "$ac_link") 2>conftest.er1
10957   ac_status=$?
10958   grep -v '^ *+' conftest.er1 >conftest.err
10959   rm -f conftest.er1
10960   cat conftest.err >&5
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); } &&
10963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10964   { (case "(($ac_try" in
10965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966   *) ac_try_echo=$ac_try;;
10967 esac
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969   (eval "$ac_try") 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); }; } &&
10973          { ac_try='test -s conftest$ac_exeext'
10974   { (case "(($ac_try" in
10975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976   *) ac_try_echo=$ac_try;;
10977 esac
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979   (eval "$ac_try") 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); }; }; then
10983   ac_cv_lib_xml2_xmlParseMemory=yes
10984 else
10985   echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10987
10988         ac_cv_lib_xml2_xmlParseMemory=no
10989 fi
10990
10991 rm -f core conftest.err conftest.$ac_objext \
10992       conftest$ac_exeext conftest.$ac_ext
10993 LIBS=$ac_check_lib_save_LIBS
10994 fi
10995 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10996 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10997 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
10998
10999 cat >>confdefs.h <<\_ACEOF
11000 #define HAVE_LIBXML2 1
11001 _ACEOF
11002
11003              XML2LIBS="$ac_xml_libs"
11004              XML2INCL="$ac_xml_cflags"
11005 fi
11006
11007          { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
11008 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
11009 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
11010   echo $ECHO_N "(cached) $ECHO_C" >&6
11011 else
11012   ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-lxml2 $ac_xml_libs $LIBS"
11014 cat >conftest.$ac_ext <<_ACEOF
11015 /* confdefs.h.  */
11016 _ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h.  */
11020
11021 /* Override any GCC internal prototype to avoid an error.
11022    Use char because int might match the return type of a GCC
11023    builtin and then its argument prototype would still apply.  */
11024 #ifdef __cplusplus
11025 extern "C"
11026 #endif
11027 char xmlReadMemory ();
11028 int
11029 main ()
11030 {
11031 return xmlReadMemory ();
11032   ;
11033   return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043   (eval "$ac_link") 2>conftest.er1
11044   ac_status=$?
11045   grep -v '^ *+' conftest.er1 >conftest.err
11046   rm -f conftest.er1
11047   cat conftest.err >&5
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } &&
11050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051   { (case "(($ac_try" in
11052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053   *) ac_try_echo=$ac_try;;
11054 esac
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056   (eval "$ac_try") 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; } &&
11060          { ac_try='test -s conftest$ac_exeext'
11061   { (case "(($ac_try" in
11062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063   *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066   (eval "$ac_try") 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; }; then
11070   ac_cv_lib_xml2_xmlReadMemory=yes
11071 else
11072   echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075         ac_cv_lib_xml2_xmlReadMemory=no
11076 fi
11077
11078 rm -f core conftest.err conftest.$ac_objext \
11079       conftest$ac_exeext conftest.$ac_ext
11080 LIBS=$ac_check_lib_save_LIBS
11081 fi
11082 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
11083 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
11084 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
11085
11086 cat >>confdefs.h <<\_ACEOF
11087 #define HAVE_XMLREADMEMORY 1
11088 _ACEOF
11089
11090 fi
11091
11092
11093 fi
11094
11095 done
11096
11097     CPPFLAGS="$ac_save_CPPFLAGS"
11098     ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
11099     ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
11100     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
11101
11102
11103 for ac_header in libxslt/pattern.h libxslt/transform.h
11104 do
11105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109   echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111   cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h.  */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h.  */
11117 #ifdef HAVE_LIBXSLT_PATTERN_H
11118 # include <libxslt/pattern.h>
11119 #endif
11120
11121 #include <$ac_header>
11122 _ACEOF
11123 rm -f conftest.$ac_objext
11124 if { (ac_try="$ac_compile"
11125 case "(($ac_try" in
11126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127   *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130   (eval "$ac_compile") 2>conftest.er1
11131   ac_status=$?
11132   grep -v '^ *+' conftest.er1 >conftest.err
11133   rm -f conftest.er1
11134   cat conftest.err >&5
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } &&
11137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11138   { (case "(($ac_try" in
11139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140   *) ac_try_echo=$ac_try;;
11141 esac
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143   (eval "$ac_try") 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); }; } &&
11147          { ac_try='test -s conftest.$ac_objext'
11148   { (case "(($ac_try" in
11149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150   *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153   (eval "$ac_try") 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); }; }; then
11157   eval "$as_ac_Header=yes"
11158 else
11159   echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11161
11162         eval "$as_ac_Header=no"
11163 fi
11164
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166 fi
11167 ac_res=`eval echo '${'$as_ac_Header'}'`
11168                { echo "$as_me:$LINENO: result: $ac_res" >&5
11169 echo "${ECHO_T}$ac_res" >&6; }
11170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11171   cat >>confdefs.h <<_ACEOF
11172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11173 _ACEOF
11174  { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
11175 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
11176 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179   ac_check_lib_save_LIBS=$LIBS
11180 LIBS="-lxslt $ac_xslt_libs $LIBS"
11181 cat >conftest.$ac_ext <<_ACEOF
11182 /* confdefs.h.  */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h.  */
11187
11188 /* Override any GCC internal prototype to avoid an error.
11189    Use char because int might match the return type of a GCC
11190    builtin and then its argument prototype would still apply.  */
11191 #ifdef __cplusplus
11192 extern "C"
11193 #endif
11194 char xsltCompilePattern ();
11195 int
11196 main ()
11197 {
11198 return xsltCompilePattern ();
11199   ;
11200   return 0;
11201 }
11202 _ACEOF
11203 rm -f conftest.$ac_objext conftest$ac_exeext
11204 if { (ac_try="$ac_link"
11205 case "(($ac_try" in
11206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207   *) ac_try_echo=$ac_try;;
11208 esac
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210   (eval "$ac_link") 2>conftest.er1
11211   ac_status=$?
11212   grep -v '^ *+' conftest.er1 >conftest.err
11213   rm -f conftest.er1
11214   cat conftest.err >&5
11215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216   (exit $ac_status); } &&
11217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11218   { (case "(($ac_try" in
11219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220   *) ac_try_echo=$ac_try;;
11221 esac
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223   (eval "$ac_try") 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); }; } &&
11227          { ac_try='test -s conftest$ac_exeext'
11228   { (case "(($ac_try" in
11229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230   *) ac_try_echo=$ac_try;;
11231 esac
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233   (eval "$ac_try") 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; }; then
11237   ac_cv_lib_xslt_xsltCompilePattern=yes
11238 else
11239   echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11241
11242         ac_cv_lib_xslt_xsltCompilePattern=no
11243 fi
11244
11245 rm -f core conftest.err conftest.$ac_objext \
11246       conftest$ac_exeext conftest.$ac_ext
11247 LIBS=$ac_check_lib_save_LIBS
11248 fi
11249 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11250 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
11251 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11252
11253 cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_LIBXSLT 1
11255 _ACEOF
11256
11257              XSLTLIBS="$ac_xslt_libs"
11258              XSLTINCL="$ac_xslt_cflags"
11259 fi
11260
11261
11262 fi
11263
11264 done
11265
11266     CPPFLAGS="$ac_save_CPPFLAGS"
11267 fi
11268
11269 HALINCL=""
11270
11271 if test "$PKG_CONFIG" != "false"
11272 then
11273     ac_save_CPPFLAGS="$CPPFLAGS"
11274     ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11275     ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
11276     CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11277
11278
11279 for ac_header in dbus/dbus.h hal/libhal.h
11280 do
11281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11286   echo $ECHO_N "(cached) $ECHO_C" >&6
11287 fi
11288 ac_res=`eval echo '${'$as_ac_Header'}'`
11289                { echo "$as_me:$LINENO: result: $ac_res" >&5
11290 echo "${ECHO_T}$ac_res" >&6; }
11291 else
11292   # Is the header compilable?
11293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301 $ac_includes_default
11302 #include <$ac_header>
11303 _ACEOF
11304 rm -f conftest.$ac_objext
11305 if { (ac_try="$ac_compile"
11306 case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_compile") 2>conftest.er1
11312   ac_status=$?
11313   grep -v '^ *+' conftest.er1 >conftest.err
11314   rm -f conftest.er1
11315   cat conftest.err >&5
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); } &&
11318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11319   { (case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_try") 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; } &&
11328          { ac_try='test -s conftest.$ac_objext'
11329   { (case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_try") 2>&5
11335   ac_status=$?
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); }; }; then
11338   ac_header_compiler=yes
11339 else
11340   echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343         ac_header_compiler=no
11344 fi
11345
11346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11348 echo "${ECHO_T}$ac_header_compiler" >&6; }
11349
11350 # Is the header present?
11351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h.  */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h.  */
11359 #include <$ac_header>
11360 _ACEOF
11361 if { (ac_try="$ac_cpp conftest.$ac_ext"
11362 case "(($ac_try" in
11363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364   *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11368   ac_status=$?
11369   grep -v '^ *+' conftest.er1 >conftest.err
11370   rm -f conftest.er1
11371   cat conftest.err >&5
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); } >/dev/null; then
11374   if test -s conftest.err; then
11375     ac_cpp_err=$ac_c_preproc_warn_flag
11376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11377   else
11378     ac_cpp_err=
11379   fi
11380 else
11381   ac_cpp_err=yes
11382 fi
11383 if test -z "$ac_cpp_err"; then
11384   ac_header_preproc=yes
11385 else
11386   echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389   ac_header_preproc=no
11390 fi
11391
11392 rm -f conftest.err conftest.$ac_ext
11393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6; }
11395
11396 # So?  What about this header?
11397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11398   yes:no: )
11399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403     ac_header_preproc=yes
11404     ;;
11405   no:yes:* )
11406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11418     ( cat <<\_ASBOX
11419 ## ------------------------------------ ##
11420 ## Report this to wine-devel@winehq.org ##
11421 ## ------------------------------------ ##
11422 _ASBOX
11423      ) | sed "s/^/$as_me: WARNING:     /" >&2
11424     ;;
11425 esac
11426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429   echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431   eval "$as_ac_Header=\$ac_header_preproc"
11432 fi
11433 ac_res=`eval echo '${'$as_ac_Header'}'`
11434                { echo "$as_me:$LINENO: result: $ac_res" >&5
11435 echo "${ECHO_T}$ac_res" >&6; }
11436
11437 fi
11438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11439   cat >>confdefs.h <<_ACEOF
11440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11441 _ACEOF
11442
11443 fi
11444
11445 done
11446
11447     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11448     then
11449         { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
11450 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
11451 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
11452   echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454   ac_check_lib_save_LIBS=$LIBS
11455 LIBS="-lhal  $LIBS"
11456 cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h.  */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h.  */
11462
11463 /* Override any GCC internal prototype to avoid an error.
11464    Use char because int might match the return type of a GCC
11465    builtin and then its argument prototype would still apply.  */
11466 #ifdef __cplusplus
11467 extern "C"
11468 #endif
11469 char libhal_ctx_new ();
11470 int
11471 main ()
11472 {
11473 return libhal_ctx_new ();
11474   ;
11475   return 0;
11476 }
11477 _ACEOF
11478 rm -f conftest.$ac_objext conftest$ac_exeext
11479 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11486   ac_status=$?
11487   grep -v '^ *+' conftest.er1 >conftest.err
11488   rm -f conftest.er1
11489   cat conftest.err >&5
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); } &&
11492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11493   { (case "(($ac_try" in
11494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495   *) ac_try_echo=$ac_try;;
11496 esac
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498   (eval "$ac_try") 2>&5
11499   ac_status=$?
11500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501   (exit $ac_status); }; } &&
11502          { ac_try='test -s conftest$ac_exeext'
11503   { (case "(($ac_try" in
11504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505   *) ac_try_echo=$ac_try;;
11506 esac
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508   (eval "$ac_try") 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; }; then
11512   ac_cv_lib_hal_libhal_ctx_new=yes
11513 else
11514   echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517         ac_cv_lib_hal_libhal_ctx_new=no
11518 fi
11519
11520 rm -f core conftest.err conftest.$ac_objext \
11521       conftest$ac_exeext conftest.$ac_ext
11522 LIBS=$ac_check_lib_save_LIBS
11523 fi
11524 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
11525 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
11526 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
11527   { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11528 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
11529 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
11530   echo $ECHO_N "(cached) $ECHO_C" >&6
11531 else
11532   ac_check_lib_save_LIBS=$LIBS
11533 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
11534 cat >conftest.$ac_ext <<_ACEOF
11535 /* confdefs.h.  */
11536 _ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h.  */
11540
11541 /* Override any GCC internal prototype to avoid an error.
11542    Use char because int might match the return type of a GCC
11543    builtin and then its argument prototype would still apply.  */
11544 #ifdef __cplusplus
11545 extern "C"
11546 #endif
11547 char dbus_connection_close ();
11548 int
11549 main ()
11550 {
11551 return dbus_connection_close ();
11552   ;
11553   return 0;
11554 }
11555 _ACEOF
11556 rm -f conftest.$ac_objext conftest$ac_exeext
11557 if { (ac_try="$ac_link"
11558 case "(($ac_try" in
11559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560   *) ac_try_echo=$ac_try;;
11561 esac
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563   (eval "$ac_link") 2>conftest.er1
11564   ac_status=$?
11565   grep -v '^ *+' conftest.er1 >conftest.err
11566   rm -f conftest.er1
11567   cat conftest.err >&5
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); } &&
11570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11571   { (case "(($ac_try" in
11572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573   *) ac_try_echo=$ac_try;;
11574 esac
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576   (eval "$ac_try") 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; } &&
11580          { ac_try='test -s conftest$ac_exeext'
11581   { (case "(($ac_try" in
11582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583   *) ac_try_echo=$ac_try;;
11584 esac
11585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586   (eval "$ac_try") 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); }; }; then
11590   ac_cv_lib_dbus_1_dbus_connection_close=yes
11591 else
11592   echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11594
11595         ac_cv_lib_dbus_1_dbus_connection_close=no
11596 fi
11597
11598 rm -f core conftest.err conftest.$ac_objext \
11599       conftest$ac_exeext conftest.$ac_ext
11600 LIBS=$ac_check_lib_save_LIBS
11601 fi
11602 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11603 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
11604 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
11605
11606 cat >>confdefs.h <<\_ACEOF
11607 #define HAVE_LIBHAL 1
11608 _ACEOF
11609
11610              HALINCL="$ac_hal_cflags"
11611 fi
11612
11613 fi
11614
11615     fi
11616     CPPFLAGS="$ac_save_CPPFLAGS"
11617 fi
11618
11619 CURSESLIBS=""
11620 if test "x$with_curses" != "xno"
11621 then
11622     if test "$ac_cv_header_ncurses_h" = "yes"
11623     then
11624         { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
11625 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
11626 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
11627   echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629   ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-lncurses  $LIBS"
11631 cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h.  */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h.  */
11637
11638 /* Override any GCC internal prototype to avoid an error.
11639    Use char because int might match the return type of a GCC
11640    builtin and then its argument prototype would still apply.  */
11641 #ifdef __cplusplus
11642 extern "C"
11643 #endif
11644 char waddch ();
11645 int
11646 main ()
11647 {
11648 return waddch ();
11649   ;
11650   return 0;
11651 }
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (ac_try="$ac_link"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_link") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } &&
11667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668   { (case "(($ac_try" in
11669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670   *) ac_try_echo=$ac_try;;
11671 esac
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673   (eval "$ac_try") 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; } &&
11677          { ac_try='test -s conftest$ac_exeext'
11678   { (case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_try") 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; }; then
11687   ac_cv_lib_ncurses_waddch=yes
11688 else
11689   echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692         ac_cv_lib_ncurses_waddch=no
11693 fi
11694
11695 rm -f core conftest.err conftest.$ac_objext \
11696       conftest$ac_exeext conftest.$ac_ext
11697 LIBS=$ac_check_lib_save_LIBS
11698 fi
11699 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
11700 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
11701 if test $ac_cv_lib_ncurses_waddch = yes; then
11702
11703 cat >>confdefs.h <<\_ACEOF
11704 #define HAVE_LIBNCURSES 1
11705 _ACEOF
11706
11707              CURSESLIBS="-lncurses"
11708 fi
11709
11710     elif test "$ac_cv_header_curses_h" = "yes"
11711     then
11712         { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11713 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
11714 if test "${ac_cv_lib_curses_waddch+set}" = set; then
11715   echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717   ac_check_lib_save_LIBS=$LIBS
11718 LIBS="-lcurses  $LIBS"
11719 cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h.  */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h.  */
11725
11726 /* Override any GCC internal prototype to avoid an error.
11727    Use char because int might match the return type of a GCC
11728    builtin and then its argument prototype would still apply.  */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 char waddch ();
11733 int
11734 main ()
11735 {
11736 return waddch ();
11737   ;
11738   return 0;
11739 }
11740 _ACEOF
11741 rm -f conftest.$ac_objext conftest$ac_exeext
11742 if { (ac_try="$ac_link"
11743 case "(($ac_try" in
11744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745   *) ac_try_echo=$ac_try;;
11746 esac
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748   (eval "$ac_link") 2>conftest.er1
11749   ac_status=$?
11750   grep -v '^ *+' conftest.er1 >conftest.err
11751   rm -f conftest.er1
11752   cat conftest.err >&5
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); } &&
11755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11756   { (case "(($ac_try" in
11757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758   *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761   (eval "$ac_try") 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); }; } &&
11765          { ac_try='test -s conftest$ac_exeext'
11766   { (case "(($ac_try" in
11767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768   *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771   (eval "$ac_try") 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; }; then
11775   ac_cv_lib_curses_waddch=yes
11776 else
11777   echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11779
11780         ac_cv_lib_curses_waddch=no
11781 fi
11782
11783 rm -f core conftest.err conftest.$ac_objext \
11784       conftest$ac_exeext conftest.$ac_ext
11785 LIBS=$ac_check_lib_save_LIBS
11786 fi
11787 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11788 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
11789 if test $ac_cv_lib_curses_waddch = yes; then
11790
11791 cat >>confdefs.h <<\_ACEOF
11792 #define HAVE_LIBCURSES 1
11793 _ACEOF
11794
11795              CURSESLIBS="-lcurses"
11796 fi
11797
11798     fi
11799     ac_save_LIBS="$LIBS"
11800     LIBS="$LIBS $CURSESLIBS"
11801
11802 for ac_func in mousemask
11803 do
11804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11808   echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810   cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11818 #define $ac_func innocuous_$ac_func
11819
11820 /* System header to define __stub macros and hopefully few prototypes,
11821     which can conflict with char $ac_func (); below.
11822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823     <limits.h> exists even on freestanding compilers.  */
11824
11825 #ifdef __STDC__
11826 # include <limits.h>
11827 #else
11828 # include <assert.h>
11829 #endif
11830
11831 #undef $ac_func
11832
11833 /* Override any GCC internal prototype to avoid an error.
11834    Use char because int might match the return type of a GCC
11835    builtin and then its argument prototype would still apply.  */
11836 #ifdef __cplusplus
11837 extern "C"
11838 #endif
11839 char $ac_func ();
11840 /* The GNU C library defines this for functions which it implements
11841     to always fail with ENOSYS.  Some functions are actually named
11842     something starting with __ and the normal name is an alias.  */
11843 #if defined __stub_$ac_func || defined __stub___$ac_func
11844 choke me
11845 #endif
11846
11847 int
11848 main ()
11849 {
11850 return $ac_func ();
11851   ;
11852   return 0;
11853 }
11854 _ACEOF
11855 rm -f conftest.$ac_objext conftest$ac_exeext
11856 if { (ac_try="$ac_link"
11857 case "(($ac_try" in
11858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859   *) ac_try_echo=$ac_try;;
11860 esac
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862   (eval "$ac_link") 2>conftest.er1
11863   ac_status=$?
11864   grep -v '^ *+' conftest.er1 >conftest.err
11865   rm -f conftest.er1
11866   cat conftest.err >&5
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); } &&
11869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11870   { (case "(($ac_try" in
11871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872   *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875   (eval "$ac_try") 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; } &&
11879          { ac_try='test -s conftest$ac_exeext'
11880   { (case "(($ac_try" in
11881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882   *) ac_try_echo=$ac_try;;
11883 esac
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885   (eval "$ac_try") 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); }; }; then
11889   eval "$as_ac_var=yes"
11890 else
11891   echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11893
11894         eval "$as_ac_var=no"
11895 fi
11896
11897 rm -f core conftest.err conftest.$ac_objext \
11898       conftest$ac_exeext conftest.$ac_ext
11899 fi
11900 ac_res=`eval echo '${'$as_ac_var'}'`
11901                { echo "$as_me:$LINENO: result: $ac_res" >&5
11902 echo "${ECHO_T}$ac_res" >&6; }
11903 if test `eval echo '${'$as_ac_var'}'` = yes; then
11904   cat >>confdefs.h <<_ACEOF
11905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11906 _ACEOF
11907
11908 fi
11909 done
11910
11911     LIBS="$ac_save_LIBS"
11912 fi
11913
11914
11915 # Extract the first word of "sane-config", so it can be a program name with args.
11916 set dummy sane-config; ac_word=$2
11917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11919 if test "${ac_cv_prog_sane_devel+set}" = set; then
11920   echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922   if test -n "$sane_devel"; then
11923   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11924 else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11927 do
11928   IFS=$as_save_IFS
11929   test -z "$as_dir" && as_dir=.
11930   for ac_exec_ext in '' $ac_executable_extensions; do
11931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11932     ac_cv_prog_sane_devel="sane-config"
11933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11934     break 2
11935   fi
11936 done
11937 done
11938 IFS=$as_save_IFS
11939
11940   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11941 fi
11942 fi
11943 sane_devel=$ac_cv_prog_sane_devel
11944 if test -n "$sane_devel"; then
11945   { echo "$as_me:$LINENO: result: $sane_devel" >&5
11946 echo "${ECHO_T}$sane_devel" >&6; }
11947 else
11948   { echo "$as_me:$LINENO: result: no" >&5
11949 echo "${ECHO_T}no" >&6; }
11950 fi
11951
11952
11953 SANELIBS=""
11954
11955 SANEINCL=""
11956
11957 if test "$sane_devel" != "no"
11958 then
11959     SANELIBS="`$sane_devel --libs`"
11960     SANEINCL="`$sane_devel --cflags`"
11961     ac_save_CPPFLAGS="$CPPFLAGS"
11962     ac_save_LIBS="$LIBS"
11963     CPPFLAGS="$CPPFLAGS $SANEINCL"
11964     LIBS="$LIBS $SANELIBS"
11965     if test "${ac_cv_header_sane_sane_h+set}" = set; then
11966   { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11967 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11968 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 fi
11971 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11972 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
11973 else
11974   # Is the header compilable?
11975 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11976 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
11977 cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h.  */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h.  */
11983 $ac_includes_default
11984 #include <sane/sane.h>
11985 _ACEOF
11986 rm -f conftest.$ac_objext
11987 if { (ac_try="$ac_compile"
11988 case "(($ac_try" in
11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990   *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993   (eval "$ac_compile") 2>conftest.er1
11994   ac_status=$?
11995   grep -v '^ *+' conftest.er1 >conftest.err
11996   rm -f conftest.er1
11997   cat conftest.err >&5
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); } &&
12000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12001   { (case "(($ac_try" in
12002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003   *) ac_try_echo=$ac_try;;
12004 esac
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006   (eval "$ac_try") 2>&5
12007   ac_status=$?
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); }; } &&
12010          { ac_try='test -s conftest.$ac_objext'
12011   { (case "(($ac_try" in
12012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013   *) ac_try_echo=$ac_try;;
12014 esac
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016   (eval "$ac_try") 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; }; then
12020   ac_header_compiler=yes
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12024
12025         ac_header_compiler=no
12026 fi
12027
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12030 echo "${ECHO_T}$ac_header_compiler" >&6; }
12031
12032 # Is the header present?
12033 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
12034 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 #include <sane/sane.h>
12042 _ACEOF
12043 if { (ac_try="$ac_cpp conftest.$ac_ext"
12044 case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12050   ac_status=$?
12051   grep -v '^ *+' conftest.er1 >conftest.err
12052   rm -f conftest.er1
12053   cat conftest.err >&5
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } >/dev/null; then
12056   if test -s conftest.err; then
12057     ac_cpp_err=$ac_c_preproc_warn_flag
12058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12059   else
12060     ac_cpp_err=
12061   fi
12062 else
12063   ac_cpp_err=yes
12064 fi
12065 if test -z "$ac_cpp_err"; then
12066   ac_header_preproc=yes
12067 else
12068   echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071   ac_header_preproc=no
12072 fi
12073
12074 rm -f conftest.err conftest.$ac_ext
12075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12076 echo "${ECHO_T}$ac_header_preproc" >&6; }
12077
12078 # So?  What about this header?
12079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12080   yes:no: )
12081     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
12082 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12083     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
12084 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
12085     ac_header_preproc=yes
12086     ;;
12087   no:yes:* )
12088     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
12089 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
12090     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
12091 echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
12092     { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
12093 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
12094     { echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
12095 echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12096     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
12097 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
12098     { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
12099 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
12100     ( cat <<\_ASBOX
12101 ## ------------------------------------ ##
12102 ## Report this to wine-devel@winehq.org ##
12103 ## ------------------------------------ ##
12104 _ASBOX
12105      ) | sed "s/^/$as_me: WARNING:     /" >&2
12106     ;;
12107 esac
12108 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
12109 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
12110 if test "${ac_cv_header_sane_sane_h+set}" = set; then
12111   echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113   ac_cv_header_sane_sane_h=$ac_header_preproc
12114 fi
12115 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
12116 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
12117
12118 fi
12119 if test $ac_cv_header_sane_sane_h = yes; then
12120   { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
12121 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
12122 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125   ac_check_lib_save_LIBS=$LIBS
12126 LIBS="-lsane  $LIBS"
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h.  */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h.  */
12133
12134 /* Override any GCC internal prototype to avoid an error.
12135    Use char because int might match the return type of a GCC
12136    builtin and then its argument prototype would still apply.  */
12137 #ifdef __cplusplus
12138 extern "C"
12139 #endif
12140 char sane_open ();
12141 int
12142 main ()
12143 {
12144 return sane_open ();
12145   ;
12146   return 0;
12147 }
12148 _ACEOF
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (ac_try="$ac_link"
12151 case "(($ac_try" in
12152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153   *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156   (eval "$ac_link") 2>conftest.er1
12157   ac_status=$?
12158   grep -v '^ *+' conftest.er1 >conftest.err
12159   rm -f conftest.er1
12160   cat conftest.err >&5
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); } &&
12163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164   { (case "(($ac_try" in
12165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166   *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169   (eval "$ac_try") 2>&5
12170   ac_status=$?
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); }; } &&
12173          { ac_try='test -s conftest$ac_exeext'
12174   { (case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_try") 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; }; then
12183   ac_cv_lib_sane_sane_open=yes
12184 else
12185   echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188         ac_cv_lib_sane_sane_open=no
12189 fi
12190
12191 rm -f core conftest.err conftest.$ac_objext \
12192       conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12194 fi
12195 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
12196 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
12197 if test $ac_cv_lib_sane_sane_open = yes; then
12198
12199 cat >>confdefs.h <<\_ACEOF
12200 #define HAVE_SANE 1
12201 _ACEOF
12202
12203 else
12204   SANELIBS=""
12205                                   SANEINCL=""
12206 fi
12207
12208 else
12209   SANELIBS=""
12210                     SANEINCL=""
12211 fi
12212
12213
12214     LIBS="$ac_save_LIBS"
12215     CPPFLAGS="$ac_save_CPPFLAGS"
12216 fi
12217
12218 # Extract the first word of "gphoto2-config", so it can be a program name with args.
12219 set dummy gphoto2-config; ac_word=$2
12220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12222 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12223   echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225   if test -n "$gphoto2_devel"; then
12226   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12227 else
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12230 do
12231   IFS=$as_save_IFS
12232   test -z "$as_dir" && as_dir=.
12233   for ac_exec_ext in '' $ac_executable_extensions; do
12234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12235     ac_cv_prog_gphoto2_devel="gphoto2-config"
12236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12237     break 2
12238   fi
12239 done
12240 done
12241 IFS=$as_save_IFS
12242
12243   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12244 fi
12245 fi
12246 gphoto2_devel=$ac_cv_prog_gphoto2_devel
12247 if test -n "$gphoto2_devel"; then
12248   { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12249 echo "${ECHO_T}$gphoto2_devel" >&6; }
12250 else
12251   { echo "$as_me:$LINENO: result: no" >&5
12252 echo "${ECHO_T}no" >&6; }
12253 fi
12254
12255
12256 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12257 set dummy gphoto2-port-config; ac_word=$2
12258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12260 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12261   echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263   if test -n "$gphoto2port_devel"; then
12264   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12265 else
12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH
12268 do
12269   IFS=$as_save_IFS
12270   test -z "$as_dir" && as_dir=.
12271   for ac_exec_ext in '' $ac_executable_extensions; do
12272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12273     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12275     break 2
12276   fi
12277 done
12278 done
12279 IFS=$as_save_IFS
12280
12281   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
12282 fi
12283 fi
12284 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12285 if test -n "$gphoto2port_devel"; then
12286   { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12287 echo "${ECHO_T}$gphoto2port_devel" >&6; }
12288 else
12289   { echo "$as_me:$LINENO: result: no" >&5
12290 echo "${ECHO_T}no" >&6; }
12291 fi
12292
12293
12294 GPHOTO2LIBS=""
12295
12296 GPHOTO2INCL=""
12297
12298 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12299 then
12300     GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12301     GPHOTO2LIBS=""
12302     for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12303     do
12304       case "$i" in
12305         -L/usr/lib|-L/usr/lib64) ;;
12306         -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
12307       esac
12308     done
12309     ac_save_CPPFLAGS="$CPPFLAGS"
12310     ac_save_LIBS="$LIBS"
12311     CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
12312     LIBS="$LIBS $GPHOTO2LIBS"
12313     if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12314   { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12315 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12316 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12317   echo $ECHO_N "(cached) $ECHO_C" >&6
12318 fi
12319 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12320 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12321 else
12322   # Is the header compilable?
12323 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12324 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h.  */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h.  */
12331 $ac_includes_default
12332 #include <gphoto2-camera.h>
12333 _ACEOF
12334 rm -f conftest.$ac_objext
12335 if { (ac_try="$ac_compile"
12336 case "(($ac_try" in
12337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338   *) ac_try_echo=$ac_try;;
12339 esac
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341   (eval "$ac_compile") 2>conftest.er1
12342   ac_status=$?
12343   grep -v '^ *+' conftest.er1 >conftest.err
12344   rm -f conftest.er1
12345   cat conftest.err >&5
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); } &&
12348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12349   { (case "(($ac_try" in
12350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351   *) ac_try_echo=$ac_try;;
12352 esac
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354   (eval "$ac_try") 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }; } &&
12358          { ac_try='test -s conftest.$ac_objext'
12359   { (case "(($ac_try" in
12360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361   *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364   (eval "$ac_try") 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }; }; then
12368   ac_header_compiler=yes
12369 else
12370   echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12372
12373         ac_header_compiler=no
12374 fi
12375
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12378 echo "${ECHO_T}$ac_header_compiler" >&6; }
12379
12380 # Is the header present?
12381 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12382 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
12383 cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h.  */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h.  */
12389 #include <gphoto2-camera.h>
12390 _ACEOF
12391 if { (ac_try="$ac_cpp conftest.$ac_ext"
12392 case "(($ac_try" in
12393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394   *) ac_try_echo=$ac_try;;
12395 esac
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12398   ac_status=$?
12399   grep -v '^ *+' conftest.er1 >conftest.err
12400   rm -f conftest.er1
12401   cat conftest.err >&5
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); } >/dev/null; then
12404   if test -s conftest.err; then
12405     ac_cpp_err=$ac_c_preproc_warn_flag
12406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12407   else
12408     ac_cpp_err=
12409   fi
12410 else
12411   ac_cpp_err=yes
12412 fi
12413 if test -z "$ac_cpp_err"; then
12414   ac_header_preproc=yes
12415 else
12416   echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419   ac_header_preproc=no
12420 fi
12421
12422 rm -f conftest.err conftest.$ac_ext
12423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12424 echo "${ECHO_T}$ac_header_preproc" >&6; }
12425
12426 # So?  What about this header?
12427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12428   yes:no: )
12429     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12430 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12431     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12432 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12433     ac_header_preproc=yes
12434     ;;
12435   no:yes:* )
12436     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12437 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12438     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&5
12439 echo "$as_me: WARNING: gphoto2-camera.h:     check for missing prerequisite headers?" >&2;}
12440     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12441 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12442     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&5
12443 echo "$as_me: WARNING: gphoto2-camera.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12444     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12445 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12446     { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12447 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
12448     ( cat <<\_ASBOX
12449 ## ------------------------------------ ##
12450 ## Report this to wine-devel@winehq.org ##
12451 ## ------------------------------------ ##
12452 _ASBOX
12453      ) | sed "s/^/$as_me: WARNING:     /" >&2
12454     ;;
12455 esac
12456 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12457 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12458 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12459   echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461   ac_cv_header_gphoto2_camera_h=$ac_header_preproc
12462 fi
12463 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12464 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
12465
12466 fi
12467 if test $ac_cv_header_gphoto2_camera_h = yes; then
12468   { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12469 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
12470 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
12471   echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473   ac_check_lib_save_LIBS=$LIBS
12474 LIBS="-lgphoto2  $LIBS"
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h.  */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h.  */
12481
12482 /* Override any GCC internal prototype to avoid an error.
12483    Use char because int might match the return type of a GCC
12484    builtin and then its argument prototype would still apply.  */
12485 #ifdef __cplusplus
12486 extern "C"
12487 #endif
12488 char gp_camera_new ();
12489 int
12490 main ()
12491 {
12492 return gp_camera_new ();
12493   ;
12494   return 0;
12495 }
12496 _ACEOF
12497 rm -f conftest.$ac_objext conftest$ac_exeext
12498 if { (ac_try="$ac_link"
12499 case "(($ac_try" in
12500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501   *) ac_try_echo=$ac_try;;
12502 esac
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504   (eval "$ac_link") 2>conftest.er1
12505   ac_status=$?
12506   grep -v '^ *+' conftest.er1 >conftest.err
12507   rm -f conftest.er1
12508   cat conftest.err >&5
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); } &&
12511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12512   { (case "(($ac_try" in
12513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514   *) ac_try_echo=$ac_try;;
12515 esac
12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517   (eval "$ac_try") 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; } &&
12521          { ac_try='test -s conftest$ac_exeext'
12522   { (case "(($ac_try" in
12523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524   *) ac_try_echo=$ac_try;;
12525 esac
12526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12527   (eval "$ac_try") 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); }; }; then
12531   ac_cv_lib_gphoto2_gp_camera_new=yes
12532 else
12533   echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536         ac_cv_lib_gphoto2_gp_camera_new=no
12537 fi
12538
12539 rm -f core conftest.err conftest.$ac_objext \
12540       conftest$ac_exeext conftest.$ac_ext
12541 LIBS=$ac_check_lib_save_LIBS
12542 fi
12543 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12544 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
12545 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
12546
12547 cat >>confdefs.h <<\_ACEOF
12548 #define HAVE_GPHOTO2 1
12549 _ACEOF
12550
12551 else
12552   GPHOTO2LIBS=""
12553                                   GPHOTO2INCL=""
12554 fi
12555
12556 else
12557   GPHOTO2LIBS=""
12558                     GPHOTO2INCL=""
12559 fi
12560
12561
12562     LIBS="$ac_save_LIBS"
12563     CPPFLAGS="$ac_save_CPPFLAGS"
12564 fi
12565
12566 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
12567 then
12568     saved_libs="$LIBS"
12569     for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
12570     do
12571         TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
12572         TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
12573         { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
12574 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
12575         LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12576         cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h.  */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h.  */
12582 #include <unicode/ubidi.h>
12583 int
12584 main ()
12585 {
12586 ubidi_open()
12587   ;
12588   return 0;
12589 }
12590 _ACEOF
12591 rm -f conftest.$ac_objext conftest$ac_exeext
12592 if { (ac_try="$ac_link"
12593 case "(($ac_try" in
12594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12595   *) ac_try_echo=$ac_try;;
12596 esac
12597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12598   (eval "$ac_link") 2>conftest.er1
12599   ac_status=$?
12600   grep -v '^ *+' conftest.er1 >conftest.err
12601   rm -f conftest.er1
12602   cat conftest.err >&5
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); } &&
12605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12606   { (case "(($ac_try" in
12607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608   *) ac_try_echo=$ac_try;;
12609 esac
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611   (eval "$ac_try") 2>&5
12612   ac_status=$?
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); }; } &&
12615          { ac_try='test -s conftest$ac_exeext'
12616   { (case "(($ac_try" in
12617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618   *) ac_try_echo=$ac_try;;
12619 esac
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621   (eval "$ac_try") 2>&5
12622   ac_status=$?
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); }; }; then
12625
12626 cat >>confdefs.h <<\_ACEOF
12627 #define HAVE_ICU 1
12628 _ACEOF
12629
12630                      ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12631
12632                      { echo "$as_me:$LINENO: result: yes" >&5
12633 echo "${ECHO_T}yes" >&6; }
12634 else
12635   echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12637
12638         { echo "$as_me:$LINENO: result: no" >&5
12639 echo "${ECHO_T}no" >&6; }
12640 fi
12641
12642 rm -f core conftest.err conftest.$ac_objext \
12643       conftest$ac_exeext conftest.$ac_ext
12644     done
12645     LIBS="$saved_libs"
12646 fi
12647
12648 RESOLVLIBS=""
12649
12650 if test "$ac_cv_header_resolv_h" = "yes"
12651 then
12652     { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12653 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
12654 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
12655   echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657   ac_check_lib_save_LIBS=$LIBS
12658 LIBS="-lresolv  $LIBS"
12659 cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h.  */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h.  */
12665
12666 /* Override any GCC internal prototype to avoid an error.
12667    Use char because int might match the return type of a GCC
12668    builtin and then its argument prototype would still apply.  */
12669 #ifdef __cplusplus
12670 extern "C"
12671 #endif
12672 char res_query ();
12673 int
12674 main ()
12675 {
12676 return res_query ();
12677   ;
12678   return 0;
12679 }
12680 _ACEOF
12681 rm -f conftest.$ac_objext conftest$ac_exeext
12682 if { (ac_try="$ac_link"
12683 case "(($ac_try" in
12684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685   *) ac_try_echo=$ac_try;;
12686 esac
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688   (eval "$ac_link") 2>conftest.er1
12689   ac_status=$?
12690   grep -v '^ *+' conftest.er1 >conftest.err
12691   rm -f conftest.er1
12692   cat conftest.err >&5
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); } &&
12695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12696   { (case "(($ac_try" in
12697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698   *) ac_try_echo=$ac_try;;
12699 esac
12700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701   (eval "$ac_try") 2>&5
12702   ac_status=$?
12703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704   (exit $ac_status); }; } &&
12705          { ac_try='test -s conftest$ac_exeext'
12706   { (case "(($ac_try" in
12707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708   *) ac_try_echo=$ac_try;;
12709 esac
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711   (eval "$ac_try") 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); }; }; then
12715   ac_cv_lib_resolv_res_query=yes
12716 else
12717   echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720         ac_cv_lib_resolv_res_query=no
12721 fi
12722
12723 rm -f core conftest.err conftest.$ac_objext \
12724       conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12726 fi
12727 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12728 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12729 if test $ac_cv_lib_resolv_res_query = yes; then
12730
12731 cat >>confdefs.h <<\_ACEOF
12732 #define HAVE_RESOLV 1
12733 _ACEOF
12734
12735          RESOLVLIBS="-lresolv"
12736 fi
12737
12738 fi
12739
12740 LCMSLIBS=""
12741
12742 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12743 then
12744     { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12745 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12746 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12747   echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749   ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-llcms  $LIBS"
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h.  */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h.  */
12757
12758 /* Override any GCC internal prototype to avoid an error.
12759    Use char because int might match the return type of a GCC
12760    builtin and then its argument prototype would still apply.  */
12761 #ifdef __cplusplus
12762 extern "C"
12763 #endif
12764 char cmsOpenProfileFromFile ();
12765 int
12766 main ()
12767 {
12768 return cmsOpenProfileFromFile ();
12769   ;
12770   return 0;
12771 }
12772 _ACEOF
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (ac_try="$ac_link"
12775 case "(($ac_try" in
12776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777   *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780   (eval "$ac_link") 2>conftest.er1
12781   ac_status=$?
12782   grep -v '^ *+' conftest.er1 >conftest.err
12783   rm -f conftest.er1
12784   cat conftest.err >&5
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); } &&
12787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12788   { (case "(($ac_try" in
12789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790   *) ac_try_echo=$ac_try;;
12791 esac
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793   (eval "$ac_try") 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); }; } &&
12797          { ac_try='test -s conftest$ac_exeext'
12798   { (case "(($ac_try" in
12799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800   *) ac_try_echo=$ac_try;;
12801 esac
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803   (eval "$ac_try") 2>&5
12804   ac_status=$?
12805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); }; }; then
12807   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12808 else
12809   echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812         ac_cv_lib_lcms_cmsOpenProfileFromFile=no
12813 fi
12814
12815 rm -f core conftest.err conftest.$ac_objext \
12816       conftest$ac_exeext conftest.$ac_ext
12817 LIBS=$ac_check_lib_save_LIBS
12818 fi
12819 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12820 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12821 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12822
12823 cat >>confdefs.h <<\_ACEOF
12824 #define HAVE_LCMS 1
12825 _ACEOF
12826
12827          LCMSLIBS="-llcms"
12828 fi
12829
12830 fi
12831
12832 LDAPLIBS=""
12833
12834 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12835 then
12836     { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12837 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12838 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
12839   echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841   ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h.  */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h.  */
12849
12850 /* Override any GCC internal prototype to avoid an error.
12851    Use char because int might match the return type of a GCC
12852    builtin and then its argument prototype would still apply.  */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 char ldap_initialize ();
12857 int
12858 main ()
12859 {
12860 return ldap_initialize ();
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 rm -f conftest.$ac_objext conftest$ac_exeext
12866 if { (ac_try="$ac_link"
12867 case "(($ac_try" in
12868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869   *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872   (eval "$ac_link") 2>conftest.er1
12873   ac_status=$?
12874   grep -v '^ *+' conftest.er1 >conftest.err
12875   rm -f conftest.er1
12876   cat conftest.err >&5
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); } &&
12879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12880   { (case "(($ac_try" in
12881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882   *) ac_try_echo=$ac_try;;
12883 esac
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885   (eval "$ac_try") 2>&5
12886   ac_status=$?
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); }; } &&
12889          { ac_try='test -s conftest$ac_exeext'
12890   { (case "(($ac_try" in
12891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892   *) ac_try_echo=$ac_try;;
12893 esac
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895   (eval "$ac_try") 2>&5
12896   ac_status=$?
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); }; }; then
12899   ac_cv_lib_ldap_r_ldap_initialize=yes
12900 else
12901   echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12903
12904         ac_cv_lib_ldap_r_ldap_initialize=no
12905 fi
12906
12907 rm -f core conftest.err conftest.$ac_objext \
12908       conftest$ac_exeext conftest.$ac_ext
12909 LIBS=$ac_check_lib_save_LIBS
12910 fi
12911 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12912 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12913 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12914   { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12915 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12916 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919   ac_check_lib_save_LIBS=$LIBS
12920 LIBS="-llber $LIBPTHREAD $LIBS"
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h.  */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h.  */
12927
12928 /* Override any GCC internal prototype to avoid an error.
12929    Use char because int might match the return type of a GCC
12930    builtin and then its argument prototype would still apply.  */
12931 #ifdef __cplusplus
12932 extern "C"
12933 #endif
12934 char ber_init ();
12935 int
12936 main ()
12937 {
12938 return ber_init ();
12939   ;
12940   return 0;
12941 }
12942 _ACEOF
12943 rm -f conftest.$ac_objext conftest$ac_exeext
12944 if { (ac_try="$ac_link"
12945 case "(($ac_try" in
12946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947   *) ac_try_echo=$ac_try;;
12948 esac
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950   (eval "$ac_link") 2>conftest.er1
12951   ac_status=$?
12952   grep -v '^ *+' conftest.er1 >conftest.err
12953   rm -f conftest.er1
12954   cat conftest.err >&5
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } &&
12957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12958   { (case "(($ac_try" in
12959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960   *) ac_try_echo=$ac_try;;
12961 esac
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963   (eval "$ac_try") 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; } &&
12967          { ac_try='test -s conftest$ac_exeext'
12968   { (case "(($ac_try" in
12969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970   *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973   (eval "$ac_try") 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); }; }; then
12977   ac_cv_lib_lber_ber_init=yes
12978 else
12979   echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12981
12982         ac_cv_lib_lber_ber_init=no
12983 fi
12984
12985 rm -f core conftest.err conftest.$ac_objext \
12986       conftest$ac_exeext conftest.$ac_ext
12987 LIBS=$ac_check_lib_save_LIBS
12988 fi
12989 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12990 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12991 if test $ac_cv_lib_lber_ber_init = yes; then
12992
12993 cat >>confdefs.h <<\_ACEOF
12994 #define HAVE_LDAP 1
12995 _ACEOF
12996
12997              LDAPLIBS="-lldap_r -llber"
12998 fi
12999
13000 fi
13001
13002     ac_wine_check_funcs_save_LIBS="$LIBS"
13003 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13004
13005
13006
13007
13008 for ac_func in \
13009         ldap_count_references \
13010         ldap_first_reference \
13011         ldap_next_reference \
13012         ldap_parse_reference
13013 do
13014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13018   echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020   cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h.  */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h.  */
13026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13028 #define $ac_func innocuous_$ac_func
13029
13030 /* System header to define __stub macros and hopefully few prototypes,
13031     which can conflict with char $ac_func (); below.
13032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13033     <limits.h> exists even on freestanding compilers.  */
13034
13035 #ifdef __STDC__
13036 # include <limits.h>
13037 #else
13038 # include <assert.h>
13039 #endif
13040
13041 #undef $ac_func
13042
13043 /* Override any GCC internal prototype to avoid an error.
13044    Use char because int might match the return type of a GCC
13045    builtin and then its argument prototype would still apply.  */
13046 #ifdef __cplusplus
13047 extern "C"
13048 #endif
13049 char $ac_func ();
13050 /* The GNU C library defines this for functions which it implements
13051     to always fail with ENOSYS.  Some functions are actually named
13052     something starting with __ and the normal name is an alias.  */
13053 #if defined __stub_$ac_func || defined __stub___$ac_func
13054 choke me
13055 #endif
13056
13057 int
13058 main ()
13059 {
13060 return $ac_func ();
13061   ;
13062   return 0;
13063 }
13064 _ACEOF
13065 rm -f conftest.$ac_objext conftest$ac_exeext
13066 if { (ac_try="$ac_link"
13067 case "(($ac_try" in
13068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069   *) ac_try_echo=$ac_try;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072   (eval "$ac_link") 2>conftest.er1
13073   ac_status=$?
13074   grep -v '^ *+' conftest.er1 >conftest.err
13075   rm -f conftest.er1
13076   cat conftest.err >&5
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); } &&
13079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13080   { (case "(($ac_try" in
13081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082   *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085   (eval "$ac_try") 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); }; } &&
13089          { ac_try='test -s conftest$ac_exeext'
13090   { (case "(($ac_try" in
13091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092   *) ac_try_echo=$ac_try;;
13093 esac
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095   (eval "$ac_try") 2>&5
13096   ac_status=$?
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); }; }; then
13099   eval "$as_ac_var=yes"
13100 else
13101   echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13103
13104         eval "$as_ac_var=no"
13105 fi
13106
13107 rm -f core conftest.err conftest.$ac_objext \
13108       conftest$ac_exeext conftest.$ac_ext
13109 fi
13110 ac_res=`eval echo '${'$as_ac_var'}'`
13111                { echo "$as_me:$LINENO: result: $ac_res" >&5
13112 echo "${ECHO_T}$ac_res" >&6; }
13113 if test `eval echo '${'$as_ac_var'}'` = yes; then
13114   cat >>confdefs.h <<_ACEOF
13115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13116 _ACEOF
13117
13118 fi
13119 done
13120
13121 LIBS="$ac_wine_check_funcs_save_LIBS"
13122 fi
13123
13124 FREETYPELIBS=""
13125
13126 FREETYPEINCL=""
13127
13128 # Extract the first word of "freetype-config", so it can be a program name with args.
13129 set dummy freetype-config; ac_word=$2
13130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13132 if test "${ac_cv_prog_ft_devel+set}" = set; then
13133   echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135   if test -n "$ft_devel"; then
13136   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
13137 else
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13140 do
13141   IFS=$as_save_IFS
13142   test -z "$as_dir" && as_dir=.
13143   for ac_exec_ext in '' $ac_executable_extensions; do
13144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13145     ac_cv_prog_ft_devel="freetype-config"
13146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13147     break 2
13148   fi
13149 done
13150 done
13151 IFS=$as_save_IFS
13152
13153   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
13154 fi
13155 fi
13156 ft_devel=$ac_cv_prog_ft_devel
13157 if test -n "$ft_devel"; then
13158   { echo "$as_me:$LINENO: result: $ft_devel" >&5
13159 echo "${ECHO_T}$ft_devel" >&6; }
13160 else
13161   { echo "$as_me:$LINENO: result: no" >&5
13162 echo "${ECHO_T}no" >&6; }
13163 fi
13164
13165
13166 if test "$ft_devel" = "no"
13167 then
13168     # Extract the first word of "freetype2-config", so it can be a program name with args.
13169 set dummy freetype2-config; ac_word=$2
13170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13172 if test "${ac_cv_prog_ft_devel2+set}" = set; then
13173   echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175   if test -n "$ft_devel2"; then
13176   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
13177 else
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13180 do
13181   IFS=$as_save_IFS
13182   test -z "$as_dir" && as_dir=.
13183   for ac_exec_ext in '' $ac_executable_extensions; do
13184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13185     ac_cv_prog_ft_devel2="freetype2-config"
13186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13187     break 2
13188   fi
13189 done
13190 done
13191 IFS=$as_save_IFS
13192
13193   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
13194 fi
13195 fi
13196 ft_devel2=$ac_cv_prog_ft_devel2
13197 if test -n "$ft_devel2"; then
13198   { echo "$as_me:$LINENO: result: $ft_devel2" >&5
13199 echo "${ECHO_T}$ft_devel2" >&6; }
13200 else
13201   { echo "$as_me:$LINENO: result: no" >&5
13202 echo "${ECHO_T}no" >&6; }
13203 fi
13204
13205
13206     if test "$ft_devel2" = "freetype2-config"
13207     then
13208         ft_devel=$ft_devel2
13209     fi
13210 fi
13211
13212 if test "$ft_devel" = "no"
13213 then
13214     wine_cv_msg_freetype=yes
13215 else
13216     FREETYPELIBS=`$ft_devel --libs`
13217     FREETYPEINCL=`$ft_devel --cflags`
13218     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
13219 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
13220 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
13221   echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223   ac_check_lib_save_LIBS=$LIBS
13224 LIBS="-lfreetype $FREETYPELIBS $LIBS"
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h.  */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h.  */
13231
13232 /* Override any GCC internal prototype to avoid an error.
13233    Use char because int might match the return type of a GCC
13234    builtin and then its argument prototype would still apply.  */
13235 #ifdef __cplusplus
13236 extern "C"
13237 #endif
13238 char FT_Init_FreeType ();
13239 int
13240 main ()
13241 {
13242 return FT_Init_FreeType ();
13243   ;
13244   return 0;
13245 }
13246 _ACEOF
13247 rm -f conftest.$ac_objext conftest$ac_exeext
13248 if { (ac_try="$ac_link"
13249 case "(($ac_try" in
13250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251   *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254   (eval "$ac_link") 2>conftest.er1
13255   ac_status=$?
13256   grep -v '^ *+' conftest.er1 >conftest.err
13257   rm -f conftest.er1
13258   cat conftest.err >&5
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); } &&
13261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13262   { (case "(($ac_try" in
13263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264   *) ac_try_echo=$ac_try;;
13265 esac
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267   (eval "$ac_try") 2>&5
13268   ac_status=$?
13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); }; } &&
13271          { ac_try='test -s conftest$ac_exeext'
13272   { (case "(($ac_try" in
13273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274   *) ac_try_echo=$ac_try;;
13275 esac
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277   (eval "$ac_try") 2>&5
13278   ac_status=$?
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); }; }; then
13281   ac_cv_lib_freetype_FT_Init_FreeType=yes
13282 else
13283   echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13285
13286         ac_cv_lib_freetype_FT_Init_FreeType=no
13287 fi
13288
13289 rm -f core conftest.err conftest.$ac_objext \
13290       conftest$ac_exeext conftest.$ac_ext
13291 LIBS=$ac_check_lib_save_LIBS
13292 fi
13293 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
13294 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
13295 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
13296   ft_lib=yes
13297 else
13298   ft_lib=no
13299 fi
13300
13301     if test "$ft_lib" = "no"
13302     then
13303         wine_cv_msg_freetype=yes
13304         FREETYPELIBS=""
13305         FREETYPEINCL=""
13306     else
13307         ac_save_CPPFLAGS="$CPPFLAGS"
13308         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320 for ac_header in ft2build.h \
13321                          freetype/freetype.h \
13322                          freetype/ftglyph.h \
13323                          freetype/tttables.h \
13324                          freetype/ftnames.h \
13325                          freetype/ftsnames.h \
13326                          freetype/ttnameid.h \
13327                          freetype/ftoutln.h \
13328                          freetype/ftwinfnt.h \
13329                          freetype/ftmodapi.h \
13330                          freetype/internal/sfnt.h
13331 do
13332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13336   echo $ECHO_N "(cached) $ECHO_C" >&6
13337 else
13338   cat >conftest.$ac_ext <<_ACEOF
13339 /* confdefs.h.  */
13340 _ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h.  */
13344 #if HAVE_FT2BUILD_H
13345                           #include <ft2build.h>
13346                           #endif
13347
13348 #include <$ac_header>
13349 _ACEOF
13350 rm -f conftest.$ac_objext
13351 if { (ac_try="$ac_compile"
13352 case "(($ac_try" in
13353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354   *) ac_try_echo=$ac_try;;
13355 esac
13356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357   (eval "$ac_compile") 2>conftest.er1
13358   ac_status=$?
13359   grep -v '^ *+' conftest.er1 >conftest.err
13360   rm -f conftest.er1
13361   cat conftest.err >&5
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); } &&
13364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13365   { (case "(($ac_try" in
13366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367   *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370   (eval "$ac_try") 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; } &&
13374          { ac_try='test -s conftest.$ac_objext'
13375   { (case "(($ac_try" in
13376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377   *) ac_try_echo=$ac_try;;
13378 esac
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380   (eval "$ac_try") 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); }; }; then
13384   eval "$as_ac_Header=yes"
13385 else
13386   echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13388
13389         eval "$as_ac_Header=no"
13390 fi
13391
13392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393 fi
13394 ac_res=`eval echo '${'$as_ac_Header'}'`
13395                { echo "$as_me:$LINENO: result: $ac_res" >&5
13396 echo "${ECHO_T}$ac_res" >&6; }
13397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13398   cat >>confdefs.h <<_ACEOF
13399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13400 _ACEOF
13401
13402 fi
13403
13404 done
13405
13406         cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412 #include <ft2build.h>
13413                     #include <freetype/fttrigon.h>
13414 _ACEOF
13415 if { (ac_try="$ac_cpp conftest.$ac_ext"
13416 case "(($ac_try" in
13417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418   *) ac_try_echo=$ac_try;;
13419 esac
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13422   ac_status=$?
13423   grep -v '^ *+' conftest.er1 >conftest.err
13424   rm -f conftest.er1
13425   cat conftest.err >&5
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); } >/dev/null; then
13428   if test -s conftest.err; then
13429     ac_cpp_err=$ac_c_preproc_warn_flag
13430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13431   else
13432     ac_cpp_err=
13433   fi
13434 else
13435   ac_cpp_err=yes
13436 fi
13437 if test -z "$ac_cpp_err"; then
13438
13439 cat >>confdefs.h <<\_ACEOF
13440 #define HAVE_FREETYPE_FTTRIGON_H 1
13441 _ACEOF
13442
13443                     wine_cv_fttrigon=yes
13444 else
13445   echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448   wine_cv_fttrigon=no
13449 fi
13450
13451 rm -f conftest.err conftest.$ac_ext
13452         { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13453 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
13454 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
13455   echo $ECHO_N "(cached) $ECHO_C" >&6
13456 else
13457   cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h.  */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h.  */
13463 #include <freetype/ftmodapi.h>
13464
13465 typedef FT_TrueTypeEngineType ac__type_new_;
13466 int
13467 main ()
13468 {
13469 if ((ac__type_new_ *) 0)
13470   return 0;
13471 if (sizeof (ac__type_new_))
13472   return 0;
13473   ;
13474   return 0;
13475 }
13476 _ACEOF
13477 rm -f conftest.$ac_objext
13478 if { (ac_try="$ac_compile"
13479 case "(($ac_try" in
13480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481   *) ac_try_echo=$ac_try;;
13482 esac
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484   (eval "$ac_compile") 2>conftest.er1
13485   ac_status=$?
13486   grep -v '^ *+' conftest.er1 >conftest.err
13487   rm -f conftest.er1
13488   cat conftest.err >&5
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); } &&
13491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13492   { (case "(($ac_try" in
13493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494   *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497   (eval "$ac_try") 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); }; } &&
13501          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
13508   ac_status=$?
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); }; }; then
13511   ac_cv_type_FT_TrueTypeEngineType=yes
13512 else
13513   echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13515
13516         ac_cv_type_FT_TrueTypeEngineType=no
13517 fi
13518
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 fi
13521 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13522 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
13523 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13524
13525 cat >>confdefs.h <<_ACEOF
13526 #define HAVE_FT_TRUETYPEENGINETYPE 1
13527 _ACEOF
13528
13529
13530 fi
13531
13532         ac_save_CFLAGS="$CFLAGS"
13533         CFLAGS="$CFLAGS $FREETYPELIBS"
13534
13535 for ac_func in FT_Load_Sfnt_Table
13536 do
13537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13541   echo $ECHO_N "(cached) $ECHO_C" >&6
13542 else
13543   cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h.  */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h.  */
13549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13551 #define $ac_func innocuous_$ac_func
13552
13553 /* System header to define __stub macros and hopefully few prototypes,
13554     which can conflict with char $ac_func (); below.
13555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13556     <limits.h> exists even on freestanding compilers.  */
13557
13558 #ifdef __STDC__
13559 # include <limits.h>
13560 #else
13561 # include <assert.h>
13562 #endif
13563
13564 #undef $ac_func
13565
13566 /* Override any GCC internal prototype to avoid an error.
13567    Use char because int might match the return type of a GCC
13568    builtin and then its argument prototype would still apply.  */
13569 #ifdef __cplusplus
13570 extern "C"
13571 #endif
13572 char $ac_func ();
13573 /* The GNU C library defines this for functions which it implements
13574     to always fail with ENOSYS.  Some functions are actually named
13575     something starting with __ and the normal name is an alias.  */
13576 #if defined __stub_$ac_func || defined __stub___$ac_func
13577 choke me
13578 #endif
13579
13580 int
13581 main ()
13582 {
13583 return $ac_func ();
13584   ;
13585   return 0;
13586 }
13587 _ACEOF
13588 rm -f conftest.$ac_objext conftest$ac_exeext
13589 if { (ac_try="$ac_link"
13590 case "(($ac_try" in
13591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592   *) ac_try_echo=$ac_try;;
13593 esac
13594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13595   (eval "$ac_link") 2>conftest.er1
13596   ac_status=$?
13597   grep -v '^ *+' conftest.er1 >conftest.err
13598   rm -f conftest.er1
13599   cat conftest.err >&5
13600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601   (exit $ac_status); } &&
13602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13612          { ac_try='test -s conftest$ac_exeext'
13613   { (case "(($ac_try" in
13614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615   *) ac_try_echo=$ac_try;;
13616 esac
13617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618   (eval "$ac_try") 2>&5
13619   ac_status=$?
13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621   (exit $ac_status); }; }; then
13622   eval "$as_ac_var=yes"
13623 else
13624   echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13626
13627         eval "$as_ac_var=no"
13628 fi
13629
13630 rm -f core conftest.err conftest.$ac_objext \
13631       conftest$ac_exeext conftest.$ac_ext
13632 fi
13633 ac_res=`eval echo '${'$as_ac_var'}'`
13634                { echo "$as_me:$LINENO: result: $ac_res" >&5
13635 echo "${ECHO_T}$ac_res" >&6; }
13636 if test `eval echo '${'$as_ac_var'}'` = yes; then
13637   cat >>confdefs.h <<_ACEOF
13638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13639 _ACEOF
13640
13641 fi
13642 done
13643
13644         CFLAGS="$ac_save_CFLAGS"
13645         CPPFLAGS="$ac_save_CPPFLAGS"
13646                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
13647         then
13648
13649 cat >>confdefs.h <<\_ACEOF
13650 #define HAVE_FREETYPE 1
13651 _ACEOF
13652
13653             wine_cv_msg_freetype=no
13654         else
13655             FREETYPELIBS=""
13656             FREETYPEINCL=""
13657             wine_cv_msg_freetype=yes
13658         fi
13659     fi
13660 fi
13661
13662 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
13663 then
13664   FONTSSUBDIRS="fonts"
13665
13666 fi
13667
13668 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13669 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
13670 if test "${ac_cv_c_ppdev+set}" = set; then
13671   echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673   cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h.  */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h.  */
13679 #include <linux/ppdev.h>
13680 int
13681 main ()
13682 {
13683 ioctl (1,PPCLAIM,0)
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext
13689 if { (ac_try="$ac_compile"
13690 case "(($ac_try" in
13691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692   *) ac_try_echo=$ac_try;;
13693 esac
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695   (eval "$ac_compile") 2>conftest.er1
13696   ac_status=$?
13697   grep -v '^ *+' conftest.er1 >conftest.err
13698   rm -f conftest.er1
13699   cat conftest.err >&5
13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701   (exit $ac_status); } &&
13702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13703   { (case "(($ac_try" in
13704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705   *) ac_try_echo=$ac_try;;
13706 esac
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708   (eval "$ac_try") 2>&5
13709   ac_status=$?
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); }; } &&
13712          { ac_try='test -s conftest.$ac_objext'
13713   { (case "(($ac_try" in
13714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715   *) ac_try_echo=$ac_try;;
13716 esac
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718   (eval "$ac_try") 2>&5
13719   ac_status=$?
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); }; }; then
13722   ac_cv_c_ppdev="yes"
13723 else
13724   echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13726
13727         ac_cv_c_ppdev="no"
13728 fi
13729
13730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13731
13732 fi
13733 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13734 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13735 if test "$ac_cv_c_ppdev" = "yes"
13736 then
13737
13738 cat >>confdefs.h <<\_ACEOF
13739 #define HAVE_PPDEV 1
13740 _ACEOF
13741
13742 fi
13743
13744 { echo "$as_me:$LINENO: checking for va_copy" >&5
13745 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13746 if test "${ac_cv_c_va_copy+set}" = set; then
13747   echo $ECHO_N "(cached) $ECHO_C" >&6
13748 else
13749   cat >conftest.$ac_ext <<_ACEOF
13750 /* confdefs.h.  */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h.  */
13755 #include <stdarg.h>
13756 int
13757 main ()
13758 {
13759 va_list ap1, ap2;
13760     va_copy(ap1,ap2);
13761
13762   ;
13763   return 0;
13764 }
13765 _ACEOF
13766 rm -f conftest.$ac_objext conftest$ac_exeext
13767 if { (ac_try="$ac_link"
13768 case "(($ac_try" in
13769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770   *) ac_try_echo=$ac_try;;
13771 esac
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773   (eval "$ac_link") 2>conftest.er1
13774   ac_status=$?
13775   grep -v '^ *+' conftest.er1 >conftest.err
13776   rm -f conftest.er1
13777   cat conftest.err >&5
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); } &&
13780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13781   { (case "(($ac_try" in
13782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783   *) ac_try_echo=$ac_try;;
13784 esac
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786   (eval "$ac_try") 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; } &&
13790          { ac_try='test -s conftest$ac_exeext'
13791   { (case "(($ac_try" in
13792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793   *) ac_try_echo=$ac_try;;
13794 esac
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796   (eval "$ac_try") 2>&5
13797   ac_status=$?
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); }; }; then
13800   ac_cv_c_va_copy="yes"
13801 else
13802   echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13804
13805         ac_cv_c_va_copy="no"
13806 fi
13807
13808 rm -f core conftest.err conftest.$ac_objext \
13809       conftest$ac_exeext conftest.$ac_ext
13810
13811 fi
13812 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13813 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13814 if test "$ac_cv_c_va_copy" = "yes"
13815 then
13816
13817 cat >>confdefs.h <<\_ACEOF
13818 #define HAVE_VA_COPY 1
13819 _ACEOF
13820
13821 fi
13822 { echo "$as_me:$LINENO: checking for __va_copy" >&5
13823 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13824 if test "${ac_cv_c___va_copy+set}" = set; then
13825   echo $ECHO_N "(cached) $ECHO_C" >&6
13826 else
13827   cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h.  */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h.  */
13833 #include <stdarg.h>
13834 int
13835 main ()
13836 {
13837 va_list ap1, ap2;
13838     __va_copy(ap1,ap2);
13839
13840   ;
13841   return 0;
13842 }
13843 _ACEOF
13844 rm -f conftest.$ac_objext conftest$ac_exeext
13845 if { (ac_try="$ac_link"
13846 case "(($ac_try" in
13847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848   *) ac_try_echo=$ac_try;;
13849 esac
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851   (eval "$ac_link") 2>conftest.er1
13852   ac_status=$?
13853   grep -v '^ *+' conftest.er1 >conftest.err
13854   rm -f conftest.er1
13855   cat conftest.err >&5
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); } &&
13858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13859   { (case "(($ac_try" in
13860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861   *) ac_try_echo=$ac_try;;
13862 esac
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864   (eval "$ac_try") 2>&5
13865   ac_status=$?
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); }; } &&
13868          { ac_try='test -s conftest$ac_exeext'
13869   { (case "(($ac_try" in
13870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871   *) ac_try_echo=$ac_try;;
13872 esac
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874   (eval "$ac_try") 2>&5
13875   ac_status=$?
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); }; }; then
13878   ac_cv_c___va_copy="yes"
13879 else
13880   echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13882
13883         ac_cv_c___va_copy="no"
13884 fi
13885
13886 rm -f core conftest.err conftest.$ac_objext \
13887       conftest$ac_exeext conftest.$ac_ext
13888
13889 fi
13890 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13891 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13892 if test "$ac_cv_c___va_copy" = "yes"
13893 then
13894
13895 cat >>confdefs.h <<\_ACEOF
13896 #define HAVE___VA_COPY 1
13897 _ACEOF
13898
13899 fi
13900
13901 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13902 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13903 if test "${ac_cv_c_sigsetjmp+set}" = set; then
13904   echo $ECHO_N "(cached) $ECHO_C" >&6
13905 else
13906   cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912 #include <setjmp.h>
13913 int
13914 main ()
13915 {
13916 sigjmp_buf buf;
13917     sigsetjmp( buf, 1 );
13918     siglongjmp( buf, 1 );
13919   ;
13920   return 0;
13921 }
13922 _ACEOF
13923 rm -f conftest.$ac_objext conftest$ac_exeext
13924 if { (ac_try="$ac_link"
13925 case "(($ac_try" in
13926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927   *) ac_try_echo=$ac_try;;
13928 esac
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930   (eval "$ac_link") 2>conftest.er1
13931   ac_status=$?
13932   grep -v '^ *+' conftest.er1 >conftest.err
13933   rm -f conftest.er1
13934   cat conftest.err >&5
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } &&
13937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13938   { (case "(($ac_try" in
13939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940   *) ac_try_echo=$ac_try;;
13941 esac
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943   (eval "$ac_try") 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; } &&
13947          { ac_try='test -s conftest$ac_exeext'
13948   { (case "(($ac_try" in
13949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950   *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953   (eval "$ac_try") 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }; }; then
13957   ac_cv_c_sigsetjmp="yes"
13958 else
13959   echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13961
13962         ac_cv_c_sigsetjmp="no"
13963 fi
13964
13965 rm -f core conftest.err conftest.$ac_objext \
13966       conftest$ac_exeext conftest.$ac_ext
13967
13968 fi
13969 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13970 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13971 if test "$ac_cv_c_sigsetjmp" = "yes"
13972 then
13973
13974 cat >>confdefs.h <<\_ACEOF
13975 #define HAVE_SIGSETJMP 1
13976 _ACEOF
13977
13978 fi
13979
13980 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13981 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13982 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13983   echo $ECHO_N "(cached) $ECHO_C" >&6
13984 else
13985   cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h.  */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h.  */
13991 #define _GNU_SOURCE
13992 #include <pthread.h>
13993
13994 typedef pthread_rwlock_t ac__type_new_;
13995 int
13996 main ()
13997 {
13998 if ((ac__type_new_ *) 0)
13999   return 0;
14000 if (sizeof (ac__type_new_))
14001   return 0;
14002   ;
14003   return 0;
14004 }
14005 _ACEOF
14006 rm -f conftest.$ac_objext
14007 if { (ac_try="$ac_compile"
14008 case "(($ac_try" in
14009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010   *) ac_try_echo=$ac_try;;
14011 esac
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013   (eval "$ac_compile") 2>conftest.er1
14014   ac_status=$?
14015   grep -v '^ *+' conftest.er1 >conftest.err
14016   rm -f conftest.er1
14017   cat conftest.err >&5
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); } &&
14020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14021   { (case "(($ac_try" in
14022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023   *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026   (eval "$ac_try") 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; } &&
14030          { ac_try='test -s conftest.$ac_objext'
14031   { (case "(($ac_try" in
14032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033   *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036   (eval "$ac_try") 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }; then
14040   ac_cv_type_pthread_rwlock_t=yes
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045         ac_cv_type_pthread_rwlock_t=no
14046 fi
14047
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 fi
14050 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
14051 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
14052 if test $ac_cv_type_pthread_rwlock_t = yes; then
14053
14054 cat >>confdefs.h <<_ACEOF
14055 #define HAVE_PTHREAD_RWLOCK_T 1
14056 _ACEOF
14057
14058
14059 fi
14060 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
14061 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
14062 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
14063   echo $ECHO_N "(cached) $ECHO_C" >&6
14064 else
14065   cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h.  */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h.  */
14071 #define _GNU_SOURCE
14072 #include <pthread.h>
14073
14074 typedef pthread_rwlockattr_t ac__type_new_;
14075 int
14076 main ()
14077 {
14078 if ((ac__type_new_ *) 0)
14079   return 0;
14080 if (sizeof (ac__type_new_))
14081   return 0;
14082   ;
14083   return 0;
14084 }
14085 _ACEOF
14086 rm -f conftest.$ac_objext
14087 if { (ac_try="$ac_compile"
14088 case "(($ac_try" in
14089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090   *) ac_try_echo=$ac_try;;
14091 esac
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093   (eval "$ac_compile") 2>conftest.er1
14094   ac_status=$?
14095   grep -v '^ *+' conftest.er1 >conftest.err
14096   rm -f conftest.er1
14097   cat conftest.err >&5
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); } &&
14100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14101   { (case "(($ac_try" in
14102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103   *) ac_try_echo=$ac_try;;
14104 esac
14105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106   (eval "$ac_try") 2>&5
14107   ac_status=$?
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); }; } &&
14110          { ac_try='test -s conftest.$ac_objext'
14111   { (case "(($ac_try" in
14112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113   *) ac_try_echo=$ac_try;;
14114 esac
14115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116   (eval "$ac_try") 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); }; }; then
14120   ac_cv_type_pthread_rwlockattr_t=yes
14121 else
14122   echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14124
14125         ac_cv_type_pthread_rwlockattr_t=no
14126 fi
14127
14128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14129 fi
14130 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
14131 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
14132 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
14133
14134 cat >>confdefs.h <<_ACEOF
14135 #define HAVE_PTHREAD_RWLOCKATTR_T 1
14136 _ACEOF
14137
14138
14139 fi
14140
14141
14142 ac_wine_check_funcs_save_LIBS="$LIBS"
14143 LIBS="$LIBS $LIBPTHREAD"
14144
14145
14146
14147 for ac_func in \
14148         pthread_getattr_np \
14149         pthread_get_stackaddr_np \
14150         pthread_get_stacksize_np
14151 do
14152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14156   echo $ECHO_N "(cached) $ECHO_C" >&6
14157 else
14158   cat >conftest.$ac_ext <<_ACEOF
14159 /* confdefs.h.  */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h.  */
14164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14166 #define $ac_func innocuous_$ac_func
14167
14168 /* System header to define __stub macros and hopefully few prototypes,
14169     which can conflict with char $ac_func (); below.
14170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14171     <limits.h> exists even on freestanding compilers.  */
14172
14173 #ifdef __STDC__
14174 # include <limits.h>
14175 #else
14176 # include <assert.h>
14177 #endif
14178
14179 #undef $ac_func
14180
14181 /* Override any GCC internal prototype to avoid an error.
14182    Use char because int might match the return type of a GCC
14183    builtin and then its argument prototype would still apply.  */
14184 #ifdef __cplusplus
14185 extern "C"
14186 #endif
14187 char $ac_func ();
14188 /* The GNU C library defines this for functions which it implements
14189     to always fail with ENOSYS.  Some functions are actually named
14190     something starting with __ and the normal name is an alias.  */
14191 #if defined __stub_$ac_func || defined __stub___$ac_func
14192 choke me
14193 #endif
14194
14195 int
14196 main ()
14197 {
14198 return $ac_func ();
14199   ;
14200   return 0;
14201 }
14202 _ACEOF
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (ac_try="$ac_link"
14205 case "(($ac_try" in
14206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207   *) ac_try_echo=$ac_try;;
14208 esac
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210   (eval "$ac_link") 2>conftest.er1
14211   ac_status=$?
14212   grep -v '^ *+' conftest.er1 >conftest.err
14213   rm -f conftest.er1
14214   cat conftest.err >&5
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); } &&
14217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14218   { (case "(($ac_try" in
14219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220   *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223   (eval "$ac_try") 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; } &&
14227          { ac_try='test -s conftest$ac_exeext'
14228   { (case "(($ac_try" in
14229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230   *) ac_try_echo=$ac_try;;
14231 esac
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233   (eval "$ac_try") 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   eval "$as_ac_var=yes"
14238 else
14239   echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14241
14242         eval "$as_ac_var=no"
14243 fi
14244
14245 rm -f core conftest.err conftest.$ac_objext \
14246       conftest$ac_exeext conftest.$ac_ext
14247 fi
14248 ac_res=`eval echo '${'$as_ac_var'}'`
14249                { echo "$as_me:$LINENO: result: $ac_res" >&5
14250 echo "${ECHO_T}$ac_res" >&6; }
14251 if test `eval echo '${'$as_ac_var'}'` = yes; then
14252   cat >>confdefs.h <<_ACEOF
14253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14254 _ACEOF
14255
14256 fi
14257 done
14258
14259 LIBS="$ac_wine_check_funcs_save_LIBS"
14260
14261 # Extract the first word of "artsc-config", so it can be a program name with args.
14262 set dummy artsc-config; ac_word=$2
14263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14265 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
14266   echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268   case $ARTSCCONFIG in
14269   [\\/]* | ?:[\\/]*)
14270   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
14271   ;;
14272   *)
14273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274 for as_dir in $PATH
14275 do
14276   IFS=$as_save_IFS
14277   test -z "$as_dir" && as_dir=.
14278   for ac_exec_ext in '' $ac_executable_extensions; do
14279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14280     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
14281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14282     break 2
14283   fi
14284 done
14285 done
14286 IFS=$as_save_IFS
14287
14288   ;;
14289 esac
14290 fi
14291 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
14292 if test -n "$ARTSCCONFIG"; then
14293   { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
14294 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
14295 else
14296   { echo "$as_me:$LINENO: result: no" >&5
14297 echo "${ECHO_T}no" >&6; }
14298 fi
14299
14300
14301 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
14302 then
14303     ARTSC_CFLAGS=""
14304     for i in `$ARTSCCONFIG --cflags`
14305     do
14306       case "$i" in
14307         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
14308       esac
14309     done
14310     ARTSC_LIBS=""
14311     for i in `$ARTSCCONFIG --libs`
14312     do
14313       case "$i" in
14314         -L/usr/lib|-L/usr/lib64) ;;
14315         -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
14316       esac
14317     done
14318     save_CFLAGS="$CFLAGS"
14319     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
14320     { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
14321 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
14322 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
14323   echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325   ac_check_lib_save_LIBS=$LIBS
14326 LIBS="-lartsc $ARTSC_LIBS $LIBS"
14327 cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h.  */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h.  */
14333
14334 /* Override any GCC internal prototype to avoid an error.
14335    Use char because int might match the return type of a GCC
14336    builtin and then its argument prototype would still apply.  */
14337 #ifdef __cplusplus
14338 extern "C"
14339 #endif
14340 char arts_init ();
14341 int
14342 main ()
14343 {
14344 return arts_init ();
14345   ;
14346   return 0;
14347 }
14348 _ACEOF
14349 rm -f conftest.$ac_objext conftest$ac_exeext
14350 if { (ac_try="$ac_link"
14351 case "(($ac_try" in
14352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14353   *) ac_try_echo=$ac_try;;
14354 esac
14355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14356   (eval "$ac_link") 2>conftest.er1
14357   ac_status=$?
14358   grep -v '^ *+' conftest.er1 >conftest.err
14359   rm -f conftest.er1
14360   cat conftest.err >&5
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); } &&
14363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); }; } &&
14373          { ac_try='test -s conftest$ac_exeext'
14374   { (case "(($ac_try" in
14375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376   *) ac_try_echo=$ac_try;;
14377 esac
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379   (eval "$ac_try") 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); }; }; then
14383   ac_cv_lib_artsc_arts_init=yes
14384 else
14385   echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14387
14388         ac_cv_lib_artsc_arts_init=no
14389 fi
14390
14391 rm -f core conftest.err conftest.$ac_objext \
14392       conftest$ac_exeext conftest.$ac_ext
14393 LIBS=$ac_check_lib_save_LIBS
14394 fi
14395 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
14396 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
14397 if test $ac_cv_lib_artsc_arts_init = yes; then
14398   cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h.  */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h.  */
14404 #include <artsc.h>
14405 int
14406 main ()
14407 {
14408 arts_stream_t stream;
14409   ;
14410   return 0;
14411 }
14412 _ACEOF
14413 rm -f conftest.$ac_objext
14414 if { (ac_try="$ac_compile"
14415 case "(($ac_try" in
14416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417   *) ac_try_echo=$ac_try;;
14418 esac
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420   (eval "$ac_compile") 2>conftest.er1
14421   ac_status=$?
14422   grep -v '^ *+' conftest.er1 >conftest.err
14423   rm -f conftest.er1
14424   cat conftest.err >&5
14425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); } &&
14427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14428   { (case "(($ac_try" in
14429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430   *) ac_try_echo=$ac_try;;
14431 esac
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433   (eval "$ac_try") 2>&5
14434   ac_status=$?
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); }; } &&
14437          { ac_try='test -s conftest.$ac_objext'
14438   { (case "(($ac_try" in
14439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440   *) ac_try_echo=$ac_try;;
14441 esac
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443   (eval "$ac_try") 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); }; }; then
14447   ARTSLIBS=$ARTSC_LIBS
14448
14449             ARTSINCL=$ARTSC_CFLAGS
14450
14451
14452 cat >>confdefs.h <<\_ACEOF
14453 #define HAVE_ARTS 1
14454 _ACEOF
14455
14456 else
14457   echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460
14461 fi
14462
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 fi
14465
14466     CFLAGS="$save_CFLAGS"
14467 fi
14468
14469 # Extract the first word of "esd-config", so it can be a program name with args.
14470 set dummy esd-config; ac_word=$2
14471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14473 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
14474   echo $ECHO_N "(cached) $ECHO_C" >&6
14475 else
14476   case $ESDCONFIG in
14477   [\\/]* | ?:[\\/]*)
14478   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
14479   ;;
14480   *)
14481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14482 for as_dir in $PATH
14483 do
14484   IFS=$as_save_IFS
14485   test -z "$as_dir" && as_dir=.
14486   for ac_exec_ext in '' $ac_executable_extensions; do
14487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14488     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
14489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14490     break 2
14491   fi
14492 done
14493 done
14494 IFS=$as_save_IFS
14495
14496   ;;
14497 esac
14498 fi
14499 ESDCONFIG=$ac_cv_path_ESDCONFIG
14500 if test -n "$ESDCONFIG"; then
14501   { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
14502 echo "${ECHO_T}$ESDCONFIG" >&6; }
14503 else
14504   { echo "$as_me:$LINENO: result: no" >&5
14505 echo "${ECHO_T}no" >&6; }
14506 fi
14507
14508
14509 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
14510 then
14511     ESD_CFLAGS=""
14512     for i in `$ESDCONFIG --cflags`
14513     do
14514       case "$i" in
14515         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
14516       esac
14517     done
14518     ESD_LIBS=`$ESDCONFIG --libs`
14519     save_CFLAGS="$CFLAGS"
14520     CFLAGS="$CFLAGS $ESD_CFLAGS"
14521     { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
14522 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
14523 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
14524   echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526   ac_check_lib_save_LIBS=$LIBS
14527 LIBS="-lesd  $LIBS"
14528 cat >conftest.$ac_ext <<_ACEOF
14529 /* confdefs.h.  */
14530 _ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h.  */
14534
14535 /* Override any GCC internal prototype to avoid an error.
14536    Use char because int might match the return type of a GCC
14537    builtin and then its argument prototype would still apply.  */
14538 #ifdef __cplusplus
14539 extern "C"
14540 #endif
14541 char esd_open_sound ();
14542 int
14543 main ()
14544 {
14545 return esd_open_sound ();
14546   ;
14547   return 0;
14548 }
14549 _ACEOF
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (ac_try="$ac_link"
14552 case "(($ac_try" in
14553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554   *) ac_try_echo=$ac_try;;
14555 esac
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557   (eval "$ac_link") 2>conftest.er1
14558   ac_status=$?
14559   grep -v '^ *+' conftest.er1 >conftest.err
14560   rm -f conftest.er1
14561   cat conftest.err >&5
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); } &&
14564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14565   { (case "(($ac_try" in
14566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567   *) ac_try_echo=$ac_try;;
14568 esac
14569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570   (eval "$ac_try") 2>&5
14571   ac_status=$?
14572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); }; } &&
14574          { ac_try='test -s conftest$ac_exeext'
14575   { (case "(($ac_try" in
14576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577   *) ac_try_echo=$ac_try;;
14578 esac
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580   (eval "$ac_try") 2>&5
14581   ac_status=$?
14582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); }; }; then
14584   ac_cv_lib_esd_esd_open_sound=yes
14585 else
14586   echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14588
14589         ac_cv_lib_esd_esd_open_sound=no
14590 fi
14591
14592 rm -f core conftest.err conftest.$ac_objext \
14593       conftest$ac_exeext conftest.$ac_ext
14594 LIBS=$ac_check_lib_save_LIBS
14595 fi
14596 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14597 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
14598 if test $ac_cv_lib_esd_esd_open_sound = yes; then
14599   ESDLIBS=$ESD_LIBS
14600
14601          ESDINCL=$ESD_CFLAGS
14602
14603
14604 cat >>confdefs.h <<\_ACEOF
14605 #define HAVE_ESD 1
14606 _ACEOF
14607
14608 fi
14609
14610     CFLAGS="$save_CFLAGS"
14611 fi
14612
14613 ALSALIBS=""
14614
14615 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
14616 then
14617     { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14618 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
14619 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
14620   echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14622   ac_check_lib_save_LIBS=$LIBS
14623 LIBS="-lasound  $LIBS"
14624 cat >conftest.$ac_ext <<_ACEOF
14625 /* confdefs.h.  */
14626 _ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h.  */
14630
14631 /* Override any GCC internal prototype to avoid an error.
14632    Use char because int might match the return type of a GCC
14633    builtin and then its argument prototype would still apply.  */
14634 #ifdef __cplusplus
14635 extern "C"
14636 #endif
14637 char snd_pcm_hw_params_get_access ();
14638 int
14639 main ()
14640 {
14641 return snd_pcm_hw_params_get_access ();
14642   ;
14643   return 0;
14644 }
14645 _ACEOF
14646 rm -f conftest.$ac_objext conftest$ac_exeext
14647 if { (ac_try="$ac_link"
14648 case "(($ac_try" in
14649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650   *) ac_try_echo=$ac_try;;
14651 esac
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653   (eval "$ac_link") 2>conftest.er1
14654   ac_status=$?
14655   grep -v '^ *+' conftest.er1 >conftest.err
14656   rm -f conftest.er1
14657   cat conftest.err >&5
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); } &&
14660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14661   { (case "(($ac_try" in
14662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663   *) ac_try_echo=$ac_try;;
14664 esac
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666   (eval "$ac_try") 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; } &&
14670          { ac_try='test -s conftest$ac_exeext'
14671   { (case "(($ac_try" in
14672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673   *) ac_try_echo=$ac_try;;
14674 esac
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676   (eval "$ac_try") 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }; }; then
14680   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
14681 else
14682   echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685         ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
14686 fi
14687
14688 rm -f core conftest.err conftest.$ac_objext \
14689       conftest$ac_exeext conftest.$ac_ext
14690 LIBS=$ac_check_lib_save_LIBS
14691 fi
14692 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14693 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
14694 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14695   cat >conftest.$ac_ext <<_ACEOF
14696 /* confdefs.h.  */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h.  */
14701 #ifdef HAVE_ALSA_ASOUNDLIB_H
14702 #include <alsa/asoundlib.h>
14703 #elif defined(HAVE_SYS_ASOUNDLIB_H)
14704 #include <sys/asoundlib.h>
14705 #endif
14706 int
14707 main ()
14708 {
14709 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (ac_try="$ac_compile"
14716 case "(($ac_try" in
14717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718   *) ac_try_echo=$ac_try;;
14719 esac
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721   (eval "$ac_compile") 2>conftest.er1
14722   ac_status=$?
14723   grep -v '^ *+' conftest.er1 >conftest.err
14724   rm -f conftest.er1
14725   cat conftest.err >&5
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); } &&
14728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14729   { (case "(($ac_try" in
14730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731   *) ac_try_echo=$ac_try;;
14732 esac
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734   (eval "$ac_try") 2>&5
14735   ac_status=$?
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); }; } &&
14738          { ac_try='test -s conftest.$ac_objext'
14739   { (case "(($ac_try" in
14740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741   *) ac_try_echo=$ac_try;;
14742 esac
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744   (eval "$ac_try") 2>&5
14745   ac_status=$?
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); }; }; then
14748
14749 cat >>confdefs.h <<\_ACEOF
14750 #define HAVE_ALSA 1
14751 _ACEOF
14752
14753                          ALSALIBS="-lasound"
14754 else
14755   echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758
14759 fi
14760
14761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14762 fi
14763
14764 fi
14765
14766
14767 AUDIOIOLIBS=""
14768
14769 if test "$ac_cv_header_libaudioio_h" = "yes"
14770 then
14771     { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14772 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14773 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14774   echo $ECHO_N "(cached) $ECHO_C" >&6
14775 else
14776   ac_check_lib_save_LIBS=$LIBS
14777 LIBS="-laudioio  $LIBS"
14778 cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h.  */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h.  */
14784
14785 /* Override any GCC internal prototype to avoid an error.
14786    Use char because int might match the return type of a GCC
14787    builtin and then its argument prototype would still apply.  */
14788 #ifdef __cplusplus
14789 extern "C"
14790 #endif
14791 char AudioIOGetVersion ();
14792 int
14793 main ()
14794 {
14795 return AudioIOGetVersion ();
14796   ;
14797   return 0;
14798 }
14799 _ACEOF
14800 rm -f conftest.$ac_objext conftest$ac_exeext
14801 if { (ac_try="$ac_link"
14802 case "(($ac_try" in
14803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804   *) ac_try_echo=$ac_try;;
14805 esac
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807   (eval "$ac_link") 2>conftest.er1
14808   ac_status=$?
14809   grep -v '^ *+' conftest.er1 >conftest.err
14810   rm -f conftest.er1
14811   cat conftest.err >&5
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); } &&
14814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14815   { (case "(($ac_try" in
14816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817   *) ac_try_echo=$ac_try;;
14818 esac
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820   (eval "$ac_try") 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; } &&
14824          { ac_try='test -s conftest$ac_exeext'
14825   { (case "(($ac_try" in
14826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827   *) ac_try_echo=$ac_try;;
14828 esac
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830   (eval "$ac_try") 2>&5
14831   ac_status=$?
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); }; }; then
14834   ac_cv_lib_audioio_AudioIOGetVersion=yes
14835 else
14836   echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14838
14839         ac_cv_lib_audioio_AudioIOGetVersion=no
14840 fi
14841
14842 rm -f core conftest.err conftest.$ac_objext \
14843       conftest$ac_exeext conftest.$ac_ext
14844 LIBS=$ac_check_lib_save_LIBS
14845 fi
14846 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14847 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14848 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14849   AUDIOIOLIBS="-laudioio"
14850
14851 cat >>confdefs.h <<\_ACEOF
14852 #define HAVE_LIBAUDIOIO 1
14853 _ACEOF
14854
14855 fi
14856
14857 fi
14858
14859
14860 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14861 then
14862     { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14863 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
14864 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14865   echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867   ac_check_lib_save_LIBS=$LIBS
14868 LIBS="-lcapi20  $LIBS"
14869 cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h.  */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h.  */
14875
14876 /* Override any GCC internal prototype to avoid an error.
14877    Use char because int might match the return type of a GCC
14878    builtin and then its argument prototype would still apply.  */
14879 #ifdef __cplusplus
14880 extern "C"
14881 #endif
14882 char capi20_register ();
14883 int
14884 main ()
14885 {
14886 return capi20_register ();
14887   ;
14888   return 0;
14889 }
14890 _ACEOF
14891 rm -f conftest.$ac_objext conftest$ac_exeext
14892 if { (ac_try="$ac_link"
14893 case "(($ac_try" in
14894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895   *) ac_try_echo=$ac_try;;
14896 esac
14897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898   (eval "$ac_link") 2>conftest.er1
14899   ac_status=$?
14900   grep -v '^ *+' conftest.er1 >conftest.err
14901   rm -f conftest.er1
14902   cat conftest.err >&5
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); } &&
14905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14906   { (case "(($ac_try" in
14907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14908   *) ac_try_echo=$ac_try;;
14909 esac
14910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911   (eval "$ac_try") 2>&5
14912   ac_status=$?
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); }; } &&
14915          { ac_try='test -s conftest$ac_exeext'
14916   { (case "(($ac_try" in
14917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918   *) ac_try_echo=$ac_try;;
14919 esac
14920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921   (eval "$ac_try") 2>&5
14922   ac_status=$?
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); }; }; then
14925   ac_cv_lib_capi20_capi20_register=yes
14926 else
14927   echo "$as_me: failed program was:" >&5
14928 sed 's/^/| /' conftest.$ac_ext >&5
14929
14930         ac_cv_lib_capi20_capi20_register=no
14931 fi
14932
14933 rm -f core conftest.err conftest.$ac_objext \
14934       conftest$ac_exeext conftest.$ac_ext
14935 LIBS=$ac_check_lib_save_LIBS
14936 fi
14937 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14938 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
14939 if test $ac_cv_lib_capi20_capi20_register = yes; then
14940
14941 cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_CAPI4LINUX 1
14943 _ACEOF
14944
14945 fi
14946
14947 fi
14948
14949
14950 if test "$ac_cv_header_gif_lib_h" = "yes"
14951 then
14952     cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h.  */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h.  */
14958 #include <gif_lib.h>
14959 int
14960 main ()
14961 {
14962 static typeof(DGifOpen) * func;
14963   ;
14964   return 0;
14965 }
14966 _ACEOF
14967 rm -f conftest.$ac_objext
14968 if { (ac_try="$ac_compile"
14969 case "(($ac_try" in
14970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971   *) ac_try_echo=$ac_try;;
14972 esac
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974   (eval "$ac_compile") 2>conftest.er1
14975   ac_status=$?
14976   grep -v '^ *+' conftest.er1 >conftest.err
14977   rm -f conftest.er1
14978   cat conftest.err >&5
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); } &&
14981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14982   { (case "(($ac_try" in
14983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984   *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987   (eval "$ac_try") 2>&5
14988   ac_status=$?
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); }; } &&
14991          { ac_try='test -s conftest.$ac_objext'
14992   { (case "(($ac_try" in
14993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994   *) ac_try_echo=$ac_try;;
14995 esac
14996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997   (eval "$ac_try") 2>&5
14998   ac_status=$?
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); }; }; then
15001
15002 cat >>confdefs.h <<\_ACEOF
15003 #define HAVE_GIF 1
15004 _ACEOF
15005
15006 else
15007   echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15009
15010
15011 fi
15012
15013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15014 fi
15015
15016
15017 EXTRACFLAGS=""
15018
15019 if test "x${GCC}" = "xyes"
15020 then
15021   EXTRACFLAGS="-Wall -pipe"
15022
15023     { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
15024 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
15025 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
15026   echo $ECHO_N "(cached) $ECHO_C" >&6
15027 else
15028   if test "$cross_compiling" = yes; then
15029   ac_cv_c_gcc_strength_bug="yes"
15030 else
15031   cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h.  */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h.  */
15037
15038 int     L[4] = {0,1,2,3};
15039 int main(void) {
15040   static int Array[3];
15041   unsigned int B = 3;
15042   int i;
15043   for(i=0; i<B; i++) Array[i] = i - 3;
15044   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
15045   L[i] = 4;
15046
15047   exit( Array[1] != -2 || L[2] != 3);
15048 }
15049 _ACEOF
15050 rm -f conftest$ac_exeext
15051 if { (ac_try="$ac_link"
15052 case "(($ac_try" in
15053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054   *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057   (eval "$ac_link") 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15061   { (case "(($ac_try" in
15062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063   *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066   (eval "$ac_try") 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); }; }; then
15070   ac_cv_c_gcc_strength_bug="no"
15071 else
15072   echo "$as_me: program exited with status $ac_status" >&5
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076 ( exit $ac_status )
15077 ac_cv_c_gcc_strength_bug="yes"
15078 fi
15079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15080 fi
15081
15082
15083 fi
15084 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
15085 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
15086   if test "$ac_cv_c_gcc_strength_bug" = "yes"
15087   then
15088     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
15089   fi
15090
15091     { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
15092 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; }
15093 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
15094   echo $ECHO_N "(cached) $ECHO_C" >&6
15095 else
15096   ac_wine_try_cflags_saved=$CFLAGS
15097 CFLAGS="$CFLAGS -fshort-wchar"
15098 cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h.  */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h.  */
15104
15105 int
15106 main ()
15107 {
15108
15109   ;
15110   return 0;
15111 }
15112 _ACEOF
15113 rm -f conftest.$ac_objext conftest$ac_exeext
15114 if { (ac_try="$ac_link"
15115 case "(($ac_try" in
15116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117   *) ac_try_echo=$ac_try;;
15118 esac
15119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120   (eval "$ac_link") 2>conftest.er1
15121   ac_status=$?
15122   grep -v '^ *+' conftest.er1 >conftest.err
15123   rm -f conftest.er1
15124   cat conftest.err >&5
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); } &&
15127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15128   { (case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133   (eval "$ac_try") 2>&5
15134   ac_status=$?
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); }; } &&
15137          { ac_try='test -s conftest$ac_exeext'
15138   { (case "(($ac_try" in
15139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140   *) ac_try_echo=$ac_try;;
15141 esac
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143   (eval "$ac_try") 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }; }; then
15147   ac_cv_c_gcc_fshort_wchar="yes"
15148 else
15149   echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15151
15152         ac_cv_c_gcc_fshort_wchar="no"
15153 fi
15154
15155 rm -f core conftest.err conftest.$ac_objext \
15156       conftest$ac_exeext conftest.$ac_ext
15157 CFLAGS=$ac_wine_try_cflags_saved
15158 fi
15159 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
15160 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; }
15161   if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
15162   then
15163
15164 cat >>confdefs.h <<\_ACEOF
15165 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
15166 _ACEOF
15167
15168   fi
15169
15170     { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
15171 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; }
15172 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
15173   echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175   ac_wine_try_cflags_saved=$CFLAGS
15176 CFLAGS="$CFLAGS -fno-strict-aliasing"
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183
15184 int
15185 main ()
15186 {
15187
15188   ;
15189   return 0;
15190 }
15191 _ACEOF
15192 rm -f conftest.$ac_objext conftest$ac_exeext
15193 if { (ac_try="$ac_link"
15194 case "(($ac_try" in
15195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196   *) ac_try_echo=$ac_try;;
15197 esac
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199   (eval "$ac_link") 2>conftest.er1
15200   ac_status=$?
15201   grep -v '^ *+' conftest.er1 >conftest.err
15202   rm -f conftest.er1
15203   cat conftest.err >&5
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); } &&
15206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15207   { (case "(($ac_try" in
15208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209   *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212   (eval "$ac_try") 2>&5
15213   ac_status=$?
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); }; } &&
15216          { ac_try='test -s conftest$ac_exeext'
15217   { (case "(($ac_try" in
15218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219   *) ac_try_echo=$ac_try;;
15220 esac
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222   (eval "$ac_try") 2>&5
15223   ac_status=$?
15224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225   (exit $ac_status); }; }; then
15226   ac_cv_c_gcc_no_strict_aliasing="yes"
15227 else
15228   echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15230
15231         ac_cv_c_gcc_no_strict_aliasing="no"
15232 fi
15233
15234 rm -f core conftest.err conftest.$ac_objext \
15235       conftest$ac_exeext conftest.$ac_ext
15236 CFLAGS=$ac_wine_try_cflags_saved
15237 fi
15238 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
15239 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; }
15240   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
15241   then
15242     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
15243   fi
15244
15245     { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
15246 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; }
15247 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
15248   echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250   ac_wine_try_cflags_saved=$CFLAGS
15251 CFLAGS="$CFLAGS -gstabs+"
15252 cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h.  */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h.  */
15258
15259 int
15260 main ()
15261 {
15262
15263   ;
15264   return 0;
15265 }
15266 _ACEOF
15267 rm -f conftest.$ac_objext conftest$ac_exeext
15268 if { (ac_try="$ac_link"
15269 case "(($ac_try" in
15270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271   *) ac_try_echo=$ac_try;;
15272 esac
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274   (eval "$ac_link") 2>conftest.er1
15275   ac_status=$?
15276   grep -v '^ *+' conftest.er1 >conftest.err
15277   rm -f conftest.er1
15278   cat conftest.err >&5
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); } &&
15281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15282   { (case "(($ac_try" in
15283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284   *) ac_try_echo=$ac_try;;
15285 esac
15286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15287   (eval "$ac_try") 2>&5
15288   ac_status=$?
15289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290   (exit $ac_status); }; } &&
15291          { ac_try='test -s conftest$ac_exeext'
15292   { (case "(($ac_try" in
15293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294   *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297   (eval "$ac_try") 2>&5
15298   ac_status=$?
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); }; }; then
15301   ac_cv_c_gcc_gstabs="yes"
15302 else
15303   echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15305
15306         ac_cv_c_gcc_gstabs="no"
15307 fi
15308
15309 rm -f core conftest.err conftest.$ac_objext \
15310       conftest$ac_exeext conftest.$ac_ext
15311 CFLAGS=$ac_wine_try_cflags_saved
15312 fi
15313 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
15314 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; }
15315   if test "$ac_cv_c_gcc_gstabs" = "yes"
15316   then
15317     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
15318   fi
15319
15320     { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
15321 echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; }
15322 if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325   ac_wine_try_cflags_saved=$CFLAGS
15326 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15327 cat >conftest.$ac_ext <<_ACEOF
15328 /* confdefs.h.  */
15329 _ACEOF
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h.  */
15333
15334 int
15335 main ()
15336 {
15337
15338   ;
15339   return 0;
15340 }
15341 _ACEOF
15342 rm -f conftest.$ac_objext conftest$ac_exeext
15343 if { (ac_try="$ac_link"
15344 case "(($ac_try" in
15345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346   *) ac_try_echo=$ac_try;;
15347 esac
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349   (eval "$ac_link") 2>conftest.er1
15350   ac_status=$?
15351   grep -v '^ *+' conftest.er1 >conftest.err
15352   rm -f conftest.er1
15353   cat conftest.err >&5
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); } &&
15356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15357   { (case "(($ac_try" in
15358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359   *) ac_try_echo=$ac_try;;
15360 esac
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362   (eval "$ac_try") 2>&5
15363   ac_status=$?
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); }; } &&
15366          { ac_try='test -s conftest$ac_exeext'
15367   { (case "(($ac_try" in
15368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369   *) ac_try_echo=$ac_try;;
15370 esac
15371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372   (eval "$ac_try") 2>&5
15373   ac_status=$?
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); }; }; then
15376   ac_cv_c_gcc_decl_after_statement="yes"
15377 else
15378   echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381         ac_cv_c_gcc_decl_after_statement="no"
15382 fi
15383
15384 rm -f core conftest.err conftest.$ac_objext \
15385       conftest$ac_exeext conftest.$ac_ext
15386 CFLAGS=$ac_wine_try_cflags_saved
15387 fi
15388 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
15389 echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; }
15390   if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
15391   then
15392     EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
15393   fi
15394
15395     saved_CFLAGS="$CFLAGS"
15396   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
15397   { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15398 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
15399 if test "${ac_cv_c_string_h_warnings+set}" = set; then
15400   echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15402   cat >conftest.$ac_ext <<_ACEOF
15403 /* confdefs.h.  */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h.  */
15408 #include <string.h>
15409 int
15410 main ()
15411 {
15412
15413   ;
15414   return 0;
15415 }
15416 _ACEOF
15417 rm -f conftest.$ac_objext
15418 if { (ac_try="$ac_compile"
15419 case "(($ac_try" in
15420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421   *) ac_try_echo=$ac_try;;
15422 esac
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424   (eval "$ac_compile") 2>conftest.er1
15425   ac_status=$?
15426   grep -v '^ *+' conftest.er1 >conftest.err
15427   rm -f conftest.er1
15428   cat conftest.err >&5
15429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); } &&
15431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15432   { (case "(($ac_try" in
15433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434   *) ac_try_echo=$ac_try;;
15435 esac
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437   (eval "$ac_try") 2>&5
15438   ac_status=$?
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); }; } &&
15441          { ac_try='test -s conftest.$ac_objext'
15442   { (case "(($ac_try" in
15443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444   *) ac_try_echo=$ac_try;;
15445 esac
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447   (eval "$ac_try") 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; }; then
15451   ac_cv_c_string_h_warnings=no
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456         ac_cv_c_string_h_warnings=yes
15457 fi
15458
15459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460 fi
15461 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15462 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
15463   CFLAGS="$saved_CFLAGS"
15464   if test "$ac_cv_c_string_h_warnings" = "no"
15465   then
15466     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
15467   fi
15468
15469   BUILTINFLAG=""
15470
15471   saved_CFLAGS="$CFLAGS"
15472   CFLAGS="$CFLAGS -Werror"
15473   { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15474 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
15475 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15476   echo $ECHO_N "(cached) $ECHO_C" >&6
15477 else
15478   cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484
15485 int
15486 main ()
15487 {
15488 int iswlower(unsigned short);
15489   ;
15490   return 0;
15491 }
15492 _ACEOF
15493 rm -f conftest.$ac_objext
15494 if { (ac_try="$ac_compile"
15495 case "(($ac_try" in
15496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497   *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500   (eval "$ac_compile") 2>conftest.er1
15501   ac_status=$?
15502   grep -v '^ *+' conftest.er1 >conftest.err
15503   rm -f conftest.er1
15504   cat conftest.err >&5
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); } &&
15507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15508   { (case "(($ac_try" in
15509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510   *) ac_try_echo=$ac_try;;
15511 esac
15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513   (eval "$ac_try") 2>&5
15514   ac_status=$?
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); }; } &&
15517          { ac_try='test -s conftest.$ac_objext'
15518   { (case "(($ac_try" in
15519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520   *) ac_try_echo=$ac_try;;
15521 esac
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523   (eval "$ac_try") 2>&5
15524   ac_status=$?
15525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); }; }; then
15527   ac_cv_c_builtin_wchar_ctype=no
15528 else
15529   echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15531
15532         ac_cv_c_builtin_wchar_ctype=yes
15533 fi
15534
15535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15536 fi
15537 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15538 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
15539   CFLAGS="$saved_CFLAGS"
15540   if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15541   then
15542     BUILTINFLAG="-fno-builtin"
15543   fi
15544 fi
15545
15546
15547 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15548 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
15549 if test "${ac_cv_asm_func_def+set}" = set; then
15550   echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552   cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h.  */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h.  */
15558 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"); }
15559
15560 int
15561 main ()
15562 {
15563
15564   ;
15565   return 0;
15566 }
15567 _ACEOF
15568 rm -f conftest.$ac_objext conftest$ac_exeext
15569 if { (ac_try="$ac_link"
15570 case "(($ac_try" in
15571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572   *) ac_try_echo=$ac_try;;
15573 esac
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575   (eval "$ac_link") 2>conftest.er1
15576   ac_status=$?
15577   grep -v '^ *+' conftest.er1 >conftest.err
15578   rm -f conftest.er1
15579   cat conftest.err >&5
15580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581   (exit $ac_status); } &&
15582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15583   { (case "(($ac_try" in
15584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585   *) ac_try_echo=$ac_try;;
15586 esac
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588   (eval "$ac_try") 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; } &&
15592          { ac_try='test -s conftest$ac_exeext'
15593   { (case "(($ac_try" in
15594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595   *) ac_try_echo=$ac_try;;
15596 esac
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598   (eval "$ac_try") 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }; }; then
15602   ac_cv_asm_func_def=".def"
15603 else
15604   echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15606
15607         cat >conftest.$ac_ext <<_ACEOF
15608 /* confdefs.h.  */
15609 _ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h.  */
15613 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
15614
15615 int
15616 main ()
15617 {
15618
15619   ;
15620   return 0;
15621 }
15622 _ACEOF
15623 rm -f conftest.$ac_objext conftest$ac_exeext
15624 if { (ac_try="$ac_link"
15625 case "(($ac_try" in
15626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627   *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630   (eval "$ac_link") 2>conftest.er1
15631   ac_status=$?
15632   grep -v '^ *+' conftest.er1 >conftest.err
15633   rm -f conftest.er1
15634   cat conftest.err >&5
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); } &&
15637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638   { (case "(($ac_try" in
15639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640   *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643   (eval "$ac_try") 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; } &&
15647          { ac_try='test -s conftest$ac_exeext'
15648   { (case "(($ac_try" in
15649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650   *) ac_try_echo=$ac_try;;
15651 esac
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653   (eval "$ac_try") 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; }; then
15657   ac_cv_asm_func_def=".type @function"
15658 else
15659   echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15661
15662         cat >conftest.$ac_ext <<_ACEOF
15663 /* confdefs.h.  */
15664 _ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h.  */
15668 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
15669
15670 int
15671 main ()
15672 {
15673
15674   ;
15675   return 0;
15676 }
15677 _ACEOF
15678 rm -f conftest.$ac_objext conftest$ac_exeext
15679 if { (ac_try="$ac_link"
15680 case "(($ac_try" in
15681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682   *) ac_try_echo=$ac_try;;
15683 esac
15684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15685   (eval "$ac_link") 2>conftest.er1
15686   ac_status=$?
15687   grep -v '^ *+' conftest.er1 >conftest.err
15688   rm -f conftest.er1
15689   cat conftest.err >&5
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); } &&
15692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15693   { (case "(($ac_try" in
15694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695   *) ac_try_echo=$ac_try;;
15696 esac
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698   (eval "$ac_try") 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); }; } &&
15702          { ac_try='test -s conftest$ac_exeext'
15703   { (case "(($ac_try" in
15704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705   *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708   (eval "$ac_try") 2>&5
15709   ac_status=$?
15710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711   (exit $ac_status); }; }; then
15712   ac_cv_asm_func_def=".type 2"
15713 else
15714   echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15716
15717         ac_cv_asm_func_def="unknown"
15718 fi
15719
15720 rm -f core conftest.err conftest.$ac_objext \
15721       conftest$ac_exeext conftest.$ac_ext
15722 fi
15723
15724 rm -f core conftest.err conftest.$ac_objext \
15725       conftest$ac_exeext conftest.$ac_ext
15726 fi
15727
15728 rm -f core conftest.err conftest.$ac_objext \
15729       conftest$ac_exeext conftest.$ac_ext
15730 fi
15731 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15732 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
15733
15734
15735
15736 case "$ac_cv_asm_func_def" in
15737   ".def")
15738      cat >>confdefs.h <<\_ACEOF
15739 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15740 _ACEOF
15741  ;;
15742   ".type @function")
15743      cat >>confdefs.h <<\_ACEOF
15744 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15745 _ACEOF
15746  ;;
15747   ".type 2")
15748      cat >>confdefs.h <<\_ACEOF
15749 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15750 _ACEOF
15751  ;;
15752   *)
15753      cat >>confdefs.h <<\_ACEOF
15754 #define __ASM_FUNC(name) ""
15755 _ACEOF
15756  ;;
15757 esac
15758
15759
15760 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15761 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15762 if test "${ac_cv_c_extern_prefix+set}" = set; then
15763   echo $ECHO_N "(cached) $ECHO_C" >&6
15764 else
15765   cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h.  */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h.  */
15771 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
15772 extern int ac_test;
15773 int
15774 main ()
15775 {
15776 if (ac_test) return 1
15777   ;
15778   return 0;
15779 }
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (ac_try="$ac_link"
15783 case "(($ac_try" in
15784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785   *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788   (eval "$ac_link") 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } &&
15795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15796   { (case "(($ac_try" in
15797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798   *) ac_try_echo=$ac_try;;
15799 esac
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801   (eval "$ac_try") 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; } &&
15805          { ac_try='test -s conftest$ac_exeext'
15806   { (case "(($ac_try" in
15807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808   *) ac_try_echo=$ac_try;;
15809 esac
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811   (eval "$ac_try") 2>&5
15812   ac_status=$?
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); }; }; then
15815   ac_cv_c_extern_prefix="yes"
15816 else
15817   echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820         ac_cv_c_extern_prefix="no"
15821 fi
15822
15823 rm -f core conftest.err conftest.$ac_objext \
15824       conftest$ac_exeext conftest.$ac_ext
15825 fi
15826 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15827 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
15828
15829
15830
15831 if test "$ac_cv_c_extern_prefix" = "yes"
15832 then
15833   cat >>confdefs.h <<\_ACEOF
15834 #define __ASM_NAME(name) "_" name
15835 _ACEOF
15836
15837 else
15838   cat >>confdefs.h <<\_ACEOF
15839 #define __ASM_NAME(name) name
15840 _ACEOF
15841
15842 fi
15843
15844
15845 DLLEXT=""
15846
15847 DLLFLAGS="-D_REENTRANT"
15848
15849 DLLIBS=""
15850
15851 LDSHARED=""
15852
15853 LDDLLFLAGS=""
15854
15855 LIBEXT="so"
15856
15857 IMPLIBEXT="def"
15858
15859
15860 case $host_os in
15861   cygwin*|mingw32*)
15862     if test -n "$ac_tool_prefix"; then
15863   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15864 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15867 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15868   echo $ECHO_N "(cached) $ECHO_C" >&6
15869 else
15870   if test -n "$DLLTOOL"; then
15871   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15872 else
15873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15874 for as_dir in $PATH
15875 do
15876   IFS=$as_save_IFS
15877   test -z "$as_dir" && as_dir=.
15878   for ac_exec_ext in '' $ac_executable_extensions; do
15879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15880     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15882     break 2
15883   fi
15884 done
15885 done
15886 IFS=$as_save_IFS
15887
15888 fi
15889 fi
15890 DLLTOOL=$ac_cv_prog_DLLTOOL
15891 if test -n "$DLLTOOL"; then
15892   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15893 echo "${ECHO_T}$DLLTOOL" >&6; }
15894 else
15895   { echo "$as_me:$LINENO: result: no" >&5
15896 echo "${ECHO_T}no" >&6; }
15897 fi
15898
15899
15900 fi
15901 if test -z "$ac_cv_prog_DLLTOOL"; then
15902   ac_ct_DLLTOOL=$DLLTOOL
15903   # Extract the first word of "dlltool", so it can be a program name with args.
15904 set dummy dlltool; ac_word=$2
15905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15907 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15908   echo $ECHO_N "(cached) $ECHO_C" >&6
15909 else
15910   if test -n "$ac_ct_DLLTOOL"; then
15911   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15912 else
15913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914 for as_dir in $PATH
15915 do
15916   IFS=$as_save_IFS
15917   test -z "$as_dir" && as_dir=.
15918   for ac_exec_ext in '' $ac_executable_extensions; do
15919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15920     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15922     break 2
15923   fi
15924 done
15925 done
15926 IFS=$as_save_IFS
15927
15928 fi
15929 fi
15930 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15931 if test -n "$ac_ct_DLLTOOL"; then
15932   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15933 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
15934 else
15935   { echo "$as_me:$LINENO: result: no" >&5
15936 echo "${ECHO_T}no" >&6; }
15937 fi
15938
15939   if test "x$ac_ct_DLLTOOL" = x; then
15940     DLLTOOL="false"
15941   else
15942     case $cross_compiling:$ac_tool_warned in
15943 yes:)
15944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15945 whose name does not start with the host triplet.  If you think this
15946 configuration is useful to you, please write to autoconf@gnu.org." >&5
15947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15948 whose name does not start with the host triplet.  If you think this
15949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15950 ac_tool_warned=yes ;;
15951 esac
15952     DLLTOOL=$ac_ct_DLLTOOL
15953   fi
15954 else
15955   DLLTOOL="$ac_cv_prog_DLLTOOL"
15956 fi
15957
15958     if test -n "$ac_tool_prefix"; then
15959   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15960 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
15961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15963 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15964   echo $ECHO_N "(cached) $ECHO_C" >&6
15965 else
15966   if test -n "$DLLWRAP"; then
15967   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15968 else
15969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15970 for as_dir in $PATH
15971 do
15972   IFS=$as_save_IFS
15973   test -z "$as_dir" && as_dir=.
15974   for ac_exec_ext in '' $ac_executable_extensions; do
15975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15976     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
15977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15978     break 2
15979   fi
15980 done
15981 done
15982 IFS=$as_save_IFS
15983
15984 fi
15985 fi
15986 DLLWRAP=$ac_cv_prog_DLLWRAP
15987 if test -n "$DLLWRAP"; then
15988   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15989 echo "${ECHO_T}$DLLWRAP" >&6; }
15990 else
15991   { echo "$as_me:$LINENO: result: no" >&5
15992 echo "${ECHO_T}no" >&6; }
15993 fi
15994
15995
15996 fi
15997 if test -z "$ac_cv_prog_DLLWRAP"; then
15998   ac_ct_DLLWRAP=$DLLWRAP
15999   # Extract the first word of "dllwrap", so it can be a program name with args.
16000 set dummy dllwrap; ac_word=$2
16001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16003 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
16004   echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16006   if test -n "$ac_ct_DLLWRAP"; then
16007   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
16008 else
16009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16010 for as_dir in $PATH
16011 do
16012   IFS=$as_save_IFS
16013   test -z "$as_dir" && as_dir=.
16014   for ac_exec_ext in '' $ac_executable_extensions; do
16015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16016     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
16017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16018     break 2
16019   fi
16020 done
16021 done
16022 IFS=$as_save_IFS
16023
16024 fi
16025 fi
16026 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
16027 if test -n "$ac_ct_DLLWRAP"; then
16028   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
16029 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
16030 else
16031   { echo "$as_me:$LINENO: result: no" >&5
16032 echo "${ECHO_T}no" >&6; }
16033 fi
16034
16035   if test "x$ac_ct_DLLWRAP" = x; then
16036     DLLWRAP="false"
16037   else
16038     case $cross_compiling:$ac_tool_warned in
16039 yes:)
16040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16041 whose name does not start with the host triplet.  If you think this
16042 configuration is useful to you, please write to autoconf@gnu.org." >&5
16043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16044 whose name does not start with the host triplet.  If you think this
16045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16046 ac_tool_warned=yes ;;
16047 esac
16048     DLLWRAP=$ac_ct_DLLWRAP
16049   fi
16050 else
16051   DLLWRAP="$ac_cv_prog_DLLWRAP"
16052 fi
16053
16054     if test "$DLLWRAP" = "false"; then
16055       LIBEXT="a"
16056     else
16057             LIBEXT="dll"
16058     fi
16059     IMPLIBEXT="a"
16060         WIN16_FILES=""
16061     WIN16_INSTALL=""
16062     ;;
16063   *)
16064     if test "$ac_cv_header_dlfcn_h" = "yes"
16065     then
16066
16067 for ac_func in dlopen
16068 do
16069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16073   echo $ECHO_N "(cached) $ECHO_C" >&6
16074 else
16075   cat >conftest.$ac_ext <<_ACEOF
16076 /* confdefs.h.  */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h.  */
16081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16083 #define $ac_func innocuous_$ac_func
16084
16085 /* System header to define __stub macros and hopefully few prototypes,
16086     which can conflict with char $ac_func (); below.
16087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16088     <limits.h> exists even on freestanding compilers.  */
16089
16090 #ifdef __STDC__
16091 # include <limits.h>
16092 #else
16093 # include <assert.h>
16094 #endif
16095
16096 #undef $ac_func
16097
16098 /* Override any GCC internal prototype to avoid an error.
16099    Use char because int might match the return type of a GCC
16100    builtin and then its argument prototype would still apply.  */
16101 #ifdef __cplusplus
16102 extern "C"
16103 #endif
16104 char $ac_func ();
16105 /* The GNU C library defines this for functions which it implements
16106     to always fail with ENOSYS.  Some functions are actually named
16107     something starting with __ and the normal name is an alias.  */
16108 #if defined __stub_$ac_func || defined __stub___$ac_func
16109 choke me
16110 #endif
16111
16112 int
16113 main ()
16114 {
16115 return $ac_func ();
16116   ;
16117   return 0;
16118 }
16119 _ACEOF
16120 rm -f conftest.$ac_objext conftest$ac_exeext
16121 if { (ac_try="$ac_link"
16122 case "(($ac_try" in
16123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124   *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127   (eval "$ac_link") 2>conftest.er1
16128   ac_status=$?
16129   grep -v '^ *+' conftest.er1 >conftest.err
16130   rm -f conftest.er1
16131   cat conftest.err >&5
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); } &&
16134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16141   ac_status=$?
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); }; } &&
16144          { ac_try='test -s conftest$ac_exeext'
16145   { (case "(($ac_try" in
16146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147   *) ac_try_echo=$ac_try;;
16148 esac
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150   (eval "$ac_try") 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; }; then
16154   eval "$as_ac_var=yes"
16155 else
16156   echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159         eval "$as_ac_var=no"
16160 fi
16161
16162 rm -f core conftest.err conftest.$ac_objext \
16163       conftest$ac_exeext conftest.$ac_ext
16164 fi
16165 ac_res=`eval echo '${'$as_ac_var'}'`
16166                { echo "$as_me:$LINENO: result: $ac_res" >&5
16167 echo "${ECHO_T}$ac_res" >&6; }
16168 if test `eval echo '${'$as_ac_var'}'` = yes; then
16169   cat >>confdefs.h <<_ACEOF
16170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16171 _ACEOF
16172
16173 else
16174   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16175 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16176 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16177   echo $ECHO_N "(cached) $ECHO_C" >&6
16178 else
16179   ac_check_lib_save_LIBS=$LIBS
16180 LIBS="-ldl  $LIBS"
16181 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h.  */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h.  */
16187
16188 /* Override any GCC internal prototype to avoid an error.
16189    Use char because int might match the return type of a GCC
16190    builtin and then its argument prototype would still apply.  */
16191 #ifdef __cplusplus
16192 extern "C"
16193 #endif
16194 char dlopen ();
16195 int
16196 main ()
16197 {
16198 return dlopen ();
16199   ;
16200   return 0;
16201 }
16202 _ACEOF
16203 rm -f conftest.$ac_objext conftest$ac_exeext
16204 if { (ac_try="$ac_link"
16205 case "(($ac_try" in
16206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207   *) ac_try_echo=$ac_try;;
16208 esac
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210   (eval "$ac_link") 2>conftest.er1
16211   ac_status=$?
16212   grep -v '^ *+' conftest.er1 >conftest.err
16213   rm -f conftest.er1
16214   cat conftest.err >&5
16215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216   (exit $ac_status); } &&
16217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16218   { (case "(($ac_try" in
16219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220   *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223   (eval "$ac_try") 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); }; } &&
16227          { ac_try='test -s conftest$ac_exeext'
16228   { (case "(($ac_try" in
16229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230   *) ac_try_echo=$ac_try;;
16231 esac
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233   (eval "$ac_try") 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; }; then
16237   ac_cv_lib_dl_dlopen=yes
16238 else
16239   echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16241
16242         ac_cv_lib_dl_dlopen=no
16243 fi
16244
16245 rm -f core conftest.err conftest.$ac_objext \
16246       conftest$ac_exeext conftest.$ac_ext
16247 LIBS=$ac_check_lib_save_LIBS
16248 fi
16249 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16250 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16251 if test $ac_cv_lib_dl_dlopen = yes; then
16252
16253 cat >>confdefs.h <<\_ACEOF
16254 #define HAVE_DLOPEN 1
16255 _ACEOF
16256
16257                           DLLIBS="-ldl"
16258 else
16259   LIBEXT="a"
16260 fi
16261
16262 fi
16263 done
16264
16265         ac_wine_check_funcs_save_LIBS="$LIBS"
16266 LIBS="$LIBS $DLLIBS"
16267
16268 for ac_func in dladdr
16269 do
16270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16274   echo $ECHO_N "(cached) $ECHO_C" >&6
16275 else
16276   cat >conftest.$ac_ext <<_ACEOF
16277 /* confdefs.h.  */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h.  */
16282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16284 #define $ac_func innocuous_$ac_func
16285
16286 /* System header to define __stub macros and hopefully few prototypes,
16287     which can conflict with char $ac_func (); below.
16288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16289     <limits.h> exists even on freestanding compilers.  */
16290
16291 #ifdef __STDC__
16292 # include <limits.h>
16293 #else
16294 # include <assert.h>
16295 #endif
16296
16297 #undef $ac_func
16298
16299 /* Override any GCC internal prototype to avoid an error.
16300    Use char because int might match the return type of a GCC
16301    builtin and then its argument prototype would still apply.  */
16302 #ifdef __cplusplus
16303 extern "C"
16304 #endif
16305 char $ac_func ();
16306 /* The GNU C library defines this for functions which it implements
16307     to always fail with ENOSYS.  Some functions are actually named
16308     something starting with __ and the normal name is an alias.  */
16309 #if defined __stub_$ac_func || defined __stub___$ac_func
16310 choke me
16311 #endif
16312
16313 int
16314 main ()
16315 {
16316 return $ac_func ();
16317   ;
16318   return 0;
16319 }
16320 _ACEOF
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (ac_try="$ac_link"
16323 case "(($ac_try" in
16324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325   *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328   (eval "$ac_link") 2>conftest.er1
16329   ac_status=$?
16330   grep -v '^ *+' conftest.er1 >conftest.err
16331   rm -f conftest.er1
16332   cat conftest.err >&5
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } &&
16335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16336   { (case "(($ac_try" in
16337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338   *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341   (eval "$ac_try") 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); }; } &&
16345          { ac_try='test -s conftest$ac_exeext'
16346   { (case "(($ac_try" in
16347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348   *) ac_try_echo=$ac_try;;
16349 esac
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351   (eval "$ac_try") 2>&5
16352   ac_status=$?
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); }; }; then
16355   eval "$as_ac_var=yes"
16356 else
16357   echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16359
16360         eval "$as_ac_var=no"
16361 fi
16362
16363 rm -f core conftest.err conftest.$ac_objext \
16364       conftest$ac_exeext conftest.$ac_ext
16365 fi
16366 ac_res=`eval echo '${'$as_ac_var'}'`
16367                { echo "$as_me:$LINENO: result: $ac_res" >&5
16368 echo "${ECHO_T}$ac_res" >&6; }
16369 if test `eval echo '${'$as_ac_var'}'` = yes; then
16370   cat >>confdefs.h <<_ACEOF
16371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16372 _ACEOF
16373
16374 fi
16375 done
16376
16377 LIBS="$ac_wine_check_funcs_save_LIBS"
16378     else
16379         LIBEXT="a"
16380     fi
16381
16382     if test "$LIBEXT" = "so"
16383     then
16384       DLLFLAGS="$DLLFLAGS -fPIC"
16385       DLLEXT=".so"
16386       { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
16387 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
16388 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
16389   echo $ECHO_N "(cached) $ECHO_C" >&6
16390 else
16391   ac_wine_try_cflags_saved=$CFLAGS
16392 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
16393 cat >conftest.$ac_ext <<_ACEOF
16394 void myfunc() {}
16395 _ACEOF
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (ac_try="$ac_link"
16398 case "(($ac_try" in
16399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400   *) ac_try_echo=$ac_try;;
16401 esac
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403   (eval "$ac_link") 2>conftest.er1
16404   ac_status=$?
16405   grep -v '^ *+' conftest.er1 >conftest.err
16406   rm -f conftest.er1
16407   cat conftest.err >&5
16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409   (exit $ac_status); } &&
16410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16411   { (case "(($ac_try" in
16412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413   *) ac_try_echo=$ac_try;;
16414 esac
16415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416   (eval "$ac_try") 2>&5
16417   ac_status=$?
16418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419   (exit $ac_status); }; } &&
16420          { ac_try='test -s conftest$ac_exeext'
16421   { (case "(($ac_try" in
16422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423   *) ac_try_echo=$ac_try;;
16424 esac
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426   (eval "$ac_try") 2>&5
16427   ac_status=$?
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); }; }; then
16430   ac_cv_c_dll_gnuelf="yes"
16431 else
16432   echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435         ac_cv_c_dll_gnuelf="no"
16436 fi
16437
16438 rm -f core conftest.err conftest.$ac_objext \
16439       conftest$ac_exeext conftest.$ac_ext
16440 CFLAGS=$ac_wine_try_cflags_saved
16441 fi
16442 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
16443 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
16444       if test "$ac_cv_c_dll_gnuelf" = "yes"
16445       then
16446         LDSHARED="\$(CC) -shared"
16447         LDDLLFLAGS="-shared -Wl,-Bsymbolic"
16448         { echo "$as_me:$LINENO: checking whether the linker accepts soname" >&5
16449 echo $ECHO_N "checking whether the linker accepts soname... $ECHO_C" >&6; }
16450 if test "${ac_cv_c_sonames+set}" = set; then
16451   echo $ECHO_N "(cached) $ECHO_C" >&6
16452 else
16453   ac_wine_try_cflags_saved=$CFLAGS
16454 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
16455 cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h.  */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h.  */
16461
16462 int
16463 main ()
16464 {
16465
16466   ;
16467   return 0;
16468 }
16469 _ACEOF
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474   *) ac_try_echo=$ac_try;;
16475 esac
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477   (eval "$ac_link") 2>conftest.er1
16478   ac_status=$?
16479   grep -v '^ *+' conftest.er1 >conftest.err
16480   rm -f conftest.er1
16481   cat conftest.err >&5
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); } &&
16484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16485   { (case "(($ac_try" in
16486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487   *) ac_try_echo=$ac_try;;
16488 esac
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490   (eval "$ac_try") 2>&5
16491   ac_status=$?
16492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493   (exit $ac_status); }; } &&
16494          { ac_try='test -s conftest$ac_exeext'
16495   { (case "(($ac_try" in
16496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497   *) ac_try_echo=$ac_try;;
16498 esac
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500   (eval "$ac_try") 2>&5
16501   ac_status=$?
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); }; }; then
16504   ac_cv_c_sonames="yes"
16505 else
16506   echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16508
16509         ac_cv_c_sonames="no"
16510 fi
16511
16512 rm -f core conftest.err conftest.$ac_objext \
16513       conftest$ac_exeext conftest.$ac_ext
16514 CFLAGS=$ac_wine_try_cflags_saved
16515 fi
16516 { echo "$as_me:$LINENO: result: $ac_cv_c_sonames" >&5
16517 echo "${ECHO_T}$ac_cv_c_sonames" >&6; }
16518         if test "$ac_cv_c_sonames" = "yes"
16519         then
16520           LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
16521         else
16522           { echo "$as_me:$LINENO: checking check to see if -h soname is an alternate" >&5
16523 echo $ECHO_N "checking check to see if -h soname is an alternate... $ECHO_C" >&6; }
16524 if test "${ac_cv_c_h_sonames+set}" = set; then
16525   echo $ECHO_N "(cached) $ECHO_C" >&6
16526 else
16527   ac_wine_try_cflags_saved=$CFLAGS
16528 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
16529 cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h.  */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h.  */
16535
16536 int
16537 main ()
16538 {
16539
16540   ;
16541   return 0;
16542 }
16543 _ACEOF
16544 rm -f conftest.$ac_objext conftest$ac_exeext
16545 if { (ac_try="$ac_link"
16546 case "(($ac_try" in
16547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548   *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551   (eval "$ac_link") 2>conftest.er1
16552   ac_status=$?
16553   grep -v '^ *+' conftest.er1 >conftest.err
16554   rm -f conftest.er1
16555   cat conftest.err >&5
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); } &&
16558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16559   { (case "(($ac_try" in
16560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561   *) ac_try_echo=$ac_try;;
16562 esac
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564   (eval "$ac_try") 2>&5
16565   ac_status=$?
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); }; } &&
16568          { ac_try='test -s conftest$ac_exeext'
16569   { (case "(($ac_try" in
16570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571   *) ac_try_echo=$ac_try;;
16572 esac
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574   (eval "$ac_try") 2>&5
16575   ac_status=$?
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); }; }; then
16578   ac_cv_c_h_sonames="yes"
16579 else
16580   echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583         ac_cv_c_h_sonames="no"
16584 fi
16585
16586 rm -f core conftest.err conftest.$ac_objext \
16587       conftest$ac_exeext conftest.$ac_ext
16588 CFLAGS=$ac_wine_try_cflags_saved
16589 fi
16590 { echo "$as_me:$LINENO: result: $ac_cv_c_h_sonames" >&5
16591 echo "${ECHO_T}$ac_cv_c_h_sonames" >&6; }
16592           if test "$ac_cv_c_h_sonames" = "yes"
16593           then
16594             LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
16595           fi
16596         fi
16597
16598         { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
16599 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; }
16600 if test "${ac_cv_c_dll_zdefs+set}" = set; then
16601   echo $ECHO_N "(cached) $ECHO_C" >&6
16602 else
16603   ac_wine_try_cflags_saved=$CFLAGS
16604 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
16605 cat >conftest.$ac_ext <<_ACEOF
16606 /* confdefs.h.  */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h.  */
16611
16612 int
16613 main ()
16614 {
16615
16616   ;
16617   return 0;
16618 }
16619 _ACEOF
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624   *) ac_try_echo=$ac_try;;
16625 esac
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627   (eval "$ac_link") 2>conftest.er1
16628   ac_status=$?
16629   grep -v '^ *+' conftest.er1 >conftest.err
16630   rm -f conftest.er1
16631   cat conftest.err >&5
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); } &&
16634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16635   { (case "(($ac_try" in
16636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637   *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640   (eval "$ac_try") 2>&5
16641   ac_status=$?
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); }; } &&
16644          { ac_try='test -s conftest$ac_exeext'
16645   { (case "(($ac_try" in
16646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647   *) ac_try_echo=$ac_try;;
16648 esac
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650   (eval "$ac_try") 2>&5
16651   ac_status=$?
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); }; }; then
16654   ac_cv_c_dll_zdefs="yes"
16655 else
16656   echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16658
16659         ac_cv_c_dll_zdefs="no"
16660 fi
16661
16662 rm -f core conftest.err conftest.$ac_objext \
16663       conftest$ac_exeext conftest.$ac_ext
16664 CFLAGS=$ac_wine_try_cflags_saved
16665 fi
16666 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
16667 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; }
16668         if test "$ac_cv_c_dll_zdefs" = "yes"
16669         then
16670           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
16671         fi
16672
16673         { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
16674 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; }
16675 if test "${ac_cv_c_dll_init_fini+set}" = set; then
16676   echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678   ac_wine_try_cflags_saved=$CFLAGS
16679 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16686
16687 int
16688 main ()
16689 {
16690
16691   ;
16692   return 0;
16693 }
16694 _ACEOF
16695 rm -f conftest.$ac_objext conftest$ac_exeext
16696 if { (ac_try="$ac_link"
16697 case "(($ac_try" in
16698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699   *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702   (eval "$ac_link") 2>conftest.er1
16703   ac_status=$?
16704   grep -v '^ *+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } &&
16709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710   { (case "(($ac_try" in
16711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712   *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715   (eval "$ac_try") 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; } &&
16719          { ac_try='test -s conftest$ac_exeext'
16720   { (case "(($ac_try" in
16721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722   *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725   (eval "$ac_try") 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; }; then
16729   ac_cv_c_dll_init_fini="yes"
16730 else
16731   echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734         ac_cv_c_dll_init_fini="no"
16735 fi
16736
16737 rm -f core conftest.err conftest.$ac_objext \
16738       conftest$ac_exeext conftest.$ac_ext
16739 CFLAGS=$ac_wine_try_cflags_saved
16740 fi
16741 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
16742 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; }
16743         if test "$ac_cv_c_dll_init_fini" = "yes"
16744         then
16745           LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
16746         fi
16747
16748         { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
16749 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; }
16750 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
16751   echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753   echo '{ global: *; };' >conftest.map
16754            ac_wine_try_cflags_saved=$CFLAGS
16755 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
16756 cat >conftest.$ac_ext <<_ACEOF
16757 /* confdefs.h.  */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h.  */
16762
16763 int
16764 main ()
16765 {
16766
16767   ;
16768   return 0;
16769 }
16770 _ACEOF
16771 rm -f conftest.$ac_objext conftest$ac_exeext
16772 if { (ac_try="$ac_link"
16773 case "(($ac_try" in
16774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775   *) ac_try_echo=$ac_try;;
16776 esac
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778   (eval "$ac_link") 2>conftest.er1
16779   ac_status=$?
16780   grep -v '^ *+' conftest.er1 >conftest.err
16781   rm -f conftest.er1
16782   cat conftest.err >&5
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); } &&
16785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16786   { (case "(($ac_try" in
16787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788   *) ac_try_echo=$ac_try;;
16789 esac
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791   (eval "$ac_try") 2>&5
16792   ac_status=$?
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); }; } &&
16795          { ac_try='test -s conftest$ac_exeext'
16796   { (case "(($ac_try" in
16797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798   *) ac_try_echo=$ac_try;;
16799 esac
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801   (eval "$ac_try") 2>&5
16802   ac_status=$?
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); }; }; then
16805   ac_cv_c_ld_version_scripts="yes"
16806 else
16807   echo "$as_me: failed program was:" >&5
16808 sed 's/^/| /' conftest.$ac_ext >&5
16809
16810         ac_cv_c_ld_version_scripts="no"
16811 fi
16812
16813 rm -f core conftest.err conftest.$ac_objext \
16814       conftest$ac_exeext conftest.$ac_ext
16815 CFLAGS=$ac_wine_try_cflags_saved
16816            rm -f conftest.map
16817 fi
16818 { echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
16819 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; }
16820         if test "$ac_cv_c_ld_version_scripts" = "yes"
16821         then
16822           LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
16823         fi
16824
16825         { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
16826 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; }
16827 if test "${ac_cv_c_export_dynamic+set}" = set; then
16828   echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830   ac_wine_try_cflags_saved=$CFLAGS
16831 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
16832 cat >conftest.$ac_ext <<_ACEOF
16833 /* confdefs.h.  */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h.  */
16838
16839 int
16840 main ()
16841 {
16842
16843   ;
16844   return 0;
16845 }
16846 _ACEOF
16847 rm -f conftest.$ac_objext conftest$ac_exeext
16848 if { (ac_try="$ac_link"
16849 case "(($ac_try" in
16850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851   *) ac_try_echo=$ac_try;;
16852 esac
16853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16854   (eval "$ac_link") 2>conftest.er1
16855   ac_status=$?
16856   grep -v '^ *+' conftest.er1 >conftest.err
16857   rm -f conftest.er1
16858   cat conftest.err >&5
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); } &&
16861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16862   { (case "(($ac_try" in
16863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864   *) ac_try_echo=$ac_try;;
16865 esac
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867   (eval "$ac_try") 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); }; } &&
16871          { ac_try='test -s conftest$ac_exeext'
16872   { (case "(($ac_try" in
16873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874   *) ac_try_echo=$ac_try;;
16875 esac
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877   (eval "$ac_try") 2>&5
16878   ac_status=$?
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); }; }; then
16881   ac_cv_c_export_dynamic="yes"
16882 else
16883   echo "$as_me: failed program was:" >&5
16884 sed 's/^/| /' conftest.$ac_ext >&5
16885
16886         ac_cv_c_export_dynamic="no"
16887 fi
16888
16889 rm -f core conftest.err conftest.$ac_objext \
16890       conftest$ac_exeext conftest.$ac_ext
16891 CFLAGS=$ac_wine_try_cflags_saved
16892 fi
16893 { echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
16894 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; }
16895         if test "$ac_cv_c_export_dynamic" = "yes"
16896         then
16897           LDEXECFLAGS="-Wl,--export-dynamic"
16898
16899         fi
16900
16901         { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
16902 echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; }
16903 if test "${ac_cv_ld_rpath+set}" = set; then
16904   echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906   ac_wine_try_cflags_saved=$CFLAGS
16907 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
16908 cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h.  */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h.  */
16914
16915 int
16916 main ()
16917 {
16918
16919   ;
16920   return 0;
16921 }
16922 _ACEOF
16923 rm -f conftest.$ac_objext conftest$ac_exeext
16924 if { (ac_try="$ac_link"
16925 case "(($ac_try" in
16926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927   *) ac_try_echo=$ac_try;;
16928 esac
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930   (eval "$ac_link") 2>conftest.er1
16931   ac_status=$?
16932   grep -v '^ *+' conftest.er1 >conftest.err
16933   rm -f conftest.er1
16934   cat conftest.err >&5
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); } &&
16937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16938   { (case "(($ac_try" in
16939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940   *) ac_try_echo=$ac_try;;
16941 esac
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943   (eval "$ac_try") 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); }; } &&
16947          { ac_try='test -s conftest$ac_exeext'
16948   { (case "(($ac_try" in
16949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950   *) ac_try_echo=$ac_try;;
16951 esac
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953   (eval "$ac_try") 2>&5
16954   ac_status=$?
16955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956   (exit $ac_status); }; }; then
16957   ac_cv_ld_rpath="yes"
16958 else
16959   echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16961
16962         ac_cv_ld_rpath="no"
16963 fi
16964
16965 rm -f core conftest.err conftest.$ac_objext \
16966       conftest$ac_exeext conftest.$ac_ext
16967 CFLAGS=$ac_wine_try_cflags_saved
16968 fi
16969 { echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
16970 echo "${ECHO_T}$ac_cv_ld_rpath" >&6; }
16971         if test "$ac_cv_ld_rpath" = "yes"
16972         then
16973           LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
16974
16975           LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
16976
16977         fi
16978
16979         case $host_cpu in
16980           *i[3456789]86* | x86_64)
16981             { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
16982 echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; }
16983 if test "${ac_cv_ld_reloc_exec+set}" = set; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986   ac_wine_try_cflags_saved=$CFLAGS
16987 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
16988 cat >conftest.$ac_ext <<_ACEOF
16989 /* confdefs.h.  */
16990 _ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h.  */
16994
16995 int
16996 main ()
16997 {
16998
16999   ;
17000   return 0;
17001 }
17002 _ACEOF
17003 rm -f conftest.$ac_objext conftest$ac_exeext
17004 if { (ac_try="$ac_link"
17005 case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010   (eval "$ac_link") 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } &&
17017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17018   { (case "(($ac_try" in
17019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020   *) ac_try_echo=$ac_try;;
17021 esac
17022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023   (eval "$ac_try") 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }; } &&
17027          { ac_try='test -s conftest$ac_exeext'
17028   { (case "(($ac_try" in
17029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030   *) ac_try_echo=$ac_try;;
17031 esac
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033   (eval "$ac_try") 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }; }; then
17037   ac_cv_ld_reloc_exec="yes"
17038 else
17039   echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17041
17042         ac_cv_ld_reloc_exec="no"
17043 fi
17044
17045 rm -f core conftest.err conftest.$ac_objext \
17046       conftest$ac_exeext conftest.$ac_ext
17047 CFLAGS=$ac_wine_try_cflags_saved
17048 fi
17049 { echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
17050 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; }
17051             if test "$ac_cv_ld_reloc_exec" = "yes"
17052             then
17053               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
17054             fi
17055             ;;
17056         esac
17057
17058       else
17059         { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
17060 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
17061 if test "${ac_cv_c_dll_unixware+set}" = set; then
17062   echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064   ac_wine_try_cflags_saved=$CFLAGS
17065 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
17066 cat >conftest.$ac_ext <<_ACEOF
17067 void myfunc() {}
17068 _ACEOF
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (ac_try="$ac_link"
17071 case "(($ac_try" in
17072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073   *) ac_try_echo=$ac_try;;
17074 esac
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076   (eval "$ac_link") 2>conftest.er1
17077   ac_status=$?
17078   grep -v '^ *+' conftest.er1 >conftest.err
17079   rm -f conftest.er1
17080   cat conftest.err >&5
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); } &&
17083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17084   { (case "(($ac_try" in
17085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086   *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089   (eval "$ac_try") 2>&5
17090   ac_status=$?
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); }; } &&
17093          { ac_try='test -s conftest$ac_exeext'
17094   { (case "(($ac_try" in
17095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096   *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099   (eval "$ac_try") 2>&5
17100   ac_status=$?
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); }; }; then
17103   ac_cv_c_dll_unixware="yes"
17104 else
17105   echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17107
17108         ac_cv_c_dll_unixware="no"
17109 fi
17110
17111 rm -f core conftest.err conftest.$ac_objext \
17112       conftest$ac_exeext conftest.$ac_ext
17113 CFLAGS=$ac_wine_try_cflags_saved
17114 fi
17115 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
17116 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
17117         if test "$ac_cv_c_dll_unixware" = "yes"
17118         then
17119           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
17120           LDDLLFLAGS="-Wl,-G,-B,symbolic"
17121
17122         else
17123           { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
17124 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; }
17125 if test "${ac_cv_c_dll_macho+set}" = set; then
17126   echo $ECHO_N "(cached) $ECHO_C" >&6
17127 else
17128   ac_wine_try_cflags_saved=$CFLAGS
17129 CFLAGS="$CFLAGS -bundle"
17130 cat >conftest.$ac_ext <<_ACEOF
17131 void myfunc() {}
17132 _ACEOF
17133 rm -f conftest.$ac_objext conftest$ac_exeext
17134 if { (ac_try="$ac_link"
17135 case "(($ac_try" in
17136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137   *) ac_try_echo=$ac_try;;
17138 esac
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140   (eval "$ac_link") 2>conftest.er1
17141   ac_status=$?
17142   grep -v '^ *+' conftest.er1 >conftest.err
17143   rm -f conftest.er1
17144   cat conftest.err >&5
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); } &&
17147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17148   { (case "(($ac_try" in
17149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150   *) ac_try_echo=$ac_try;;
17151 esac
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153   (eval "$ac_try") 2>&5
17154   ac_status=$?
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); }; } &&
17157          { ac_try='test -s conftest$ac_exeext'
17158   { (case "(($ac_try" in
17159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160   *) ac_try_echo=$ac_try;;
17161 esac
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163   (eval "$ac_try") 2>&5
17164   ac_status=$?
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); }; }; then
17167   ac_cv_c_dll_macho="yes"
17168 else
17169   echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172         ac_cv_c_dll_macho="no"
17173 fi
17174
17175 rm -f core conftest.err conftest.$ac_objext \
17176       conftest$ac_exeext conftest.$ac_ext
17177 CFLAGS=$ac_wine_try_cflags_saved
17178 fi
17179 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
17180 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; }
17181           if test "$ac_cv_c_dll_macho" = "yes"
17182           then
17183             LIBEXT="dylib"
17184             LDDLLFLAGS="-bundle"
17185             LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)"
17186             STRIP="$STRIP -u -r"
17187                         COREFOUNDATIONLIB="-framework CoreFoundation"
17188
17189             IOKITLIB="-framework IOKit -framework CoreFoundation"
17190
17191             LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
17192
17193             if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
17194             then
17195                                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
17196
17197             fi
17198             case $host_cpu in
17199               *powerpc*)
17200                 CFLAGS="$CFLAGS -ffixed-r13"
17201                 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
17202                 ;;
17203             esac
17204
17205           else
17206             { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
17207 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
17208 if test "${ac_cv_c_dll_hpux+set}" = set; then
17209   echo $ECHO_N "(cached) $ECHO_C" >&6
17210 else
17211   ac_wine_try_cflags_saved=$CFLAGS
17212 CFLAGS="$CFLAGS -shared"
17213 cat >conftest.$ac_ext <<_ACEOF
17214 void myfunc() {}
17215 _ACEOF
17216 rm -f conftest.$ac_objext conftest$ac_exeext
17217 if { (ac_try="$ac_link"
17218 case "(($ac_try" in
17219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220   *) ac_try_echo=$ac_try;;
17221 esac
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223   (eval "$ac_link") 2>conftest.er1
17224   ac_status=$?
17225   grep -v '^ *+' conftest.er1 >conftest.err
17226   rm -f conftest.er1
17227   cat conftest.err >&5
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); } &&
17230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17231   { (case "(($ac_try" in
17232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233   *) ac_try_echo=$ac_try;;
17234 esac
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236   (eval "$ac_try") 2>&5
17237   ac_status=$?
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); }; } &&
17240          { ac_try='test -s conftest$ac_exeext'
17241   { (case "(($ac_try" in
17242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243   *) ac_try_echo=$ac_try;;
17244 esac
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246   (eval "$ac_try") 2>&5
17247   ac_status=$?
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); }; }; then
17250   ac_cv_c_dll_hpux="yes"
17251 else
17252   echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17254
17255         ac_cv_c_dll_hpux="no"
17256 fi
17257
17258 rm -f core conftest.err conftest.$ac_objext \
17259       conftest$ac_exeext conftest.$ac_ext
17260 CFLAGS=$ac_wine_try_cflags_saved
17261 fi
17262 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
17263 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
17264             if test "$ac_cv_c_dll_hpux" = "yes"
17265             then
17266               LIBEXT="sl"
17267               DLLEXT=".sl"
17268               LDDLLFLAGS="-shared -fPIC"
17269               LDSHARED="\$(CC) -shared"
17270             fi
17271           fi
17272         fi
17273       fi
17274     fi
17275
17276         CROSSTEST=""
17277
17278     if test "$cross_compiling" = "no"
17279     then
17280       for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
17281 do
17282   # Extract the first word of "$ac_prog", so it can be a program name with args.
17283 set dummy $ac_prog; ac_word=$2
17284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17286 if test "${ac_cv_prog_CROSSCC+set}" = set; then
17287   echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289   if test -n "$CROSSCC"; then
17290   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
17291 else
17292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17293 for as_dir in $PATH
17294 do
17295   IFS=$as_save_IFS
17296   test -z "$as_dir" && as_dir=.
17297   for ac_exec_ext in '' $ac_executable_extensions; do
17298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17299     ac_cv_prog_CROSSCC="$ac_prog"
17300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17301     break 2
17302   fi
17303 done
17304 done
17305 IFS=$as_save_IFS
17306
17307 fi
17308 fi
17309 CROSSCC=$ac_cv_prog_CROSSCC
17310 if test -n "$CROSSCC"; then
17311   { echo "$as_me:$LINENO: result: $CROSSCC" >&5
17312 echo "${ECHO_T}$CROSSCC" >&6; }
17313 else
17314   { echo "$as_me:$LINENO: result: no" >&5
17315 echo "${ECHO_T}no" >&6; }
17316 fi
17317
17318
17319   test -n "$CROSSCC" && break
17320 done
17321 test -n "$CROSSCC" || CROSSCC="false"
17322
17323       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
17324 do
17325   # Extract the first word of "$ac_prog", so it can be a program name with args.
17326 set dummy $ac_prog; ac_word=$2
17327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17329 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17330   echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332   if test -n "$DLLTOOL"; then
17333   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17334 else
17335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17336 for as_dir in $PATH
17337 do
17338   IFS=$as_save_IFS
17339   test -z "$as_dir" && as_dir=.
17340   for ac_exec_ext in '' $ac_executable_extensions; do
17341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17342     ac_cv_prog_DLLTOOL="$ac_prog"
17343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17344     break 2
17345   fi
17346 done
17347 done
17348 IFS=$as_save_IFS
17349
17350 fi
17351 fi
17352 DLLTOOL=$ac_cv_prog_DLLTOOL
17353 if test -n "$DLLTOOL"; then
17354   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17355 echo "${ECHO_T}$DLLTOOL" >&6; }
17356 else
17357   { echo "$as_me:$LINENO: result: no" >&5
17358 echo "${ECHO_T}no" >&6; }
17359 fi
17360
17361
17362   test -n "$DLLTOOL" && break
17363 done
17364 test -n "$DLLTOOL" || DLLTOOL="false"
17365
17366       for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
17367 do
17368   # Extract the first word of "$ac_prog", so it can be a program name with args.
17369 set dummy $ac_prog; ac_word=$2
17370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17372 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
17373   echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375   if test -n "$CROSSWINDRES"; then
17376   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
17377 else
17378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17379 for as_dir in $PATH
17380 do
17381   IFS=$as_save_IFS
17382   test -z "$as_dir" && as_dir=.
17383   for ac_exec_ext in '' $ac_executable_extensions; do
17384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17385     ac_cv_prog_CROSSWINDRES="$ac_prog"
17386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17387     break 2
17388   fi
17389 done
17390 done
17391 IFS=$as_save_IFS
17392
17393 fi
17394 fi
17395 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
17396 if test -n "$CROSSWINDRES"; then
17397   { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
17398 echo "${ECHO_T}$CROSSWINDRES" >&6; }
17399 else
17400   { echo "$as_me:$LINENO: result: no" >&5
17401 echo "${ECHO_T}no" >&6; }
17402 fi
17403
17404
17405   test -n "$CROSSWINDRES" && break
17406 done
17407 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
17408
17409       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
17410     fi
17411     ;;
17412 esac
17413
17414 if test "$LIBEXT" = "a"; then
17415   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
17416 It is currently not possible to build Wine without shared library
17417 (.so) support to allow transparent switch between .so and .dll files.
17418 If you are using Linux, you will need a newer binutils.
17419 " >&5
17420 echo "$as_me: error: could not find a way to build shared libraries.
17421 It is currently not possible to build Wine without shared library
17422 (.so) support to allow transparent switch between .so and .dll files.
17423 If you are using Linux, you will need a newer binutils.
17424 " >&2;}
17425    { (exit 1); exit 1; }; }
17426 fi
17427
17428 case $build_os in
17429   cygwin*|mingw32*)
17430     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
17431  ;;
17432   darwin*|macosx*)
17433     LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
17434  ;;
17435   *)
17436     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
17437  ;;
17438 esac
17439
17440 case $host_os in
17441   mingw32*)
17442     CRTLIBS="-lmsvcrt"
17443
17444     SOCKETLIBS="-lws2_32"
17445
17446     ;;
17447 esac
17448
17449 MAIN_BINARY="wine-pthread"
17450   case $host_cpu in
17451   *i[3456789]86*)
17452     case $host_os in
17453       linux* | k*bsd*-gnu)
17454         MAIN_BINARY="wine-glibc"
17455
17456         EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
17457  ;;
17458     esac
17459     ;;
17460 esac
17461
17462
17463 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
17464 then
17465   # Extract the first word of "ldd", so it can be a program name with args.
17466 set dummy ldd; ac_word=$2
17467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17469 if test "${ac_cv_path_LDD+set}" = set; then
17470   echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472   case $LDD in
17473   [\\/]* | ?:[\\/]*)
17474   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17475   ;;
17476   *)
17477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17478 as_dummy="/sbin:/usr/sbin:$PATH"
17479 for as_dir in $as_dummy
17480 do
17481   IFS=$as_save_IFS
17482   test -z "$as_dir" && as_dir=.
17483   for ac_exec_ext in '' $ac_executable_extensions; do
17484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17485     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17487     break 2
17488   fi
17489 done
17490 done
17491 IFS=$as_save_IFS
17492
17493   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
17494   ;;
17495 esac
17496 fi
17497 LDD=$ac_cv_path_LDD
17498 if test -n "$LDD"; then
17499   { echo "$as_me:$LINENO: result: $LDD" >&5
17500 echo "${ECHO_T}$LDD" >&6; }
17501 else
17502   { echo "$as_me:$LINENO: result: no" >&5
17503 echo "${ECHO_T}no" >&6; }
17504 fi
17505
17506
17507 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
17508 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
17509 if test "${ac_cv_lib_soname_X11+set}" = set; then
17510   echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512   ac_get_soname_save_LIBS=$LIBS
17513 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
17514   cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h.  */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h.  */
17520
17521 /* Override any GCC internal prototype to avoid an error.
17522    Use char because int might match the return type of a GCC
17523    builtin and then its argument prototype would still apply.  */
17524 #ifdef __cplusplus
17525 extern "C"
17526 #endif
17527 char XCreateWindow ();
17528 int
17529 main ()
17530 {
17531 return XCreateWindow ();
17532   ;
17533   return 0;
17534 }
17535 _ACEOF
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (ac_try="$ac_link"
17538 case "(($ac_try" in
17539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540   *) ac_try_echo=$ac_try;;
17541 esac
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543   (eval "$ac_link") 2>conftest.er1
17544   ac_status=$?
17545   grep -v '^ *+' conftest.er1 >conftest.err
17546   rm -f conftest.er1
17547   cat conftest.err >&5
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); } &&
17550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17560          { ac_try='test -s conftest$ac_exeext'
17561   { (case "(($ac_try" in
17562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563   *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566   (eval "$ac_try") 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; }; then
17570   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
17571   if test "x$ac_cv_lib_soname_X11" = "x"
17572   then
17573      ac_cv_lib_soname_X11="libX11.$LIBEXT"
17574   fi
17575 else
17576   echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17578
17579         ac_cv_lib_soname_X11="libX11.$LIBEXT"
17580 fi
17581
17582 rm -f core conftest.err conftest.$ac_objext \
17583       conftest$ac_exeext conftest.$ac_ext
17584   LIBS=$ac_get_soname_save_LIBS
17585 fi
17586 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
17587 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
17588 if test "${ac_cv_lib_soname_X11+set}" = set; then
17589
17590 cat >>confdefs.h <<_ACEOF
17591 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
17592 _ACEOF
17593
17594 fi
17595
17596   { echo "$as_me:$LINENO: checking for -lXext soname" >&5
17597 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
17598 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17599   echo $ECHO_N "(cached) $ECHO_C" >&6
17600 else
17601   ac_get_soname_save_LIBS=$LIBS
17602 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
17603   cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h.  */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h.  */
17609
17610 /* Override any GCC internal prototype to avoid an error.
17611    Use char because int might match the return type of a GCC
17612    builtin and then its argument prototype would still apply.  */
17613 #ifdef __cplusplus
17614 extern "C"
17615 #endif
17616 char XextCreateExtension ();
17617 int
17618 main ()
17619 {
17620 return XextCreateExtension ();
17621   ;
17622   return 0;
17623 }
17624 _ACEOF
17625 rm -f conftest.$ac_objext conftest$ac_exeext
17626 if { (ac_try="$ac_link"
17627 case "(($ac_try" in
17628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629   *) ac_try_echo=$ac_try;;
17630 esac
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632   (eval "$ac_link") 2>conftest.er1
17633   ac_status=$?
17634   grep -v '^ *+' conftest.er1 >conftest.err
17635   rm -f conftest.er1
17636   cat conftest.err >&5
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); } &&
17639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17649          { ac_try='test -s conftest$ac_exeext'
17650   { (case "(($ac_try" in
17651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652   *) ac_try_echo=$ac_try;;
17653 esac
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655   (eval "$ac_try") 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); }; }; then
17659   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
17660   if test "x$ac_cv_lib_soname_Xext" = "x"
17661   then
17662      ac_cv_lib_soname_Xext="libXext.$LIBEXT"
17663   fi
17664 else
17665   echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668         ac_cv_lib_soname_Xext="libXext.$LIBEXT"
17669 fi
17670
17671 rm -f core conftest.err conftest.$ac_objext \
17672       conftest$ac_exeext conftest.$ac_ext
17673   LIBS=$ac_get_soname_save_LIBS
17674 fi
17675 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
17676 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
17677 if test "${ac_cv_lib_soname_Xext+set}" = set; then
17678
17679 cat >>confdefs.h <<_ACEOF
17680 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
17681 _ACEOF
17682
17683 fi
17684
17685   { echo "$as_me:$LINENO: checking for -lXi soname" >&5
17686 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
17687 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17688   echo $ECHO_N "(cached) $ECHO_C" >&6
17689 else
17690   ac_get_soname_save_LIBS=$LIBS
17691 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17692   cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h.  */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h.  */
17698
17699 /* Override any GCC internal prototype to avoid an error.
17700    Use char because int might match the return type of a GCC
17701    builtin and then its argument prototype would still apply.  */
17702 #ifdef __cplusplus
17703 extern "C"
17704 #endif
17705 char XOpenDevice ();
17706 int
17707 main ()
17708 {
17709 return XOpenDevice ();
17710   ;
17711   return 0;
17712 }
17713 _ACEOF
17714 rm -f conftest.$ac_objext conftest$ac_exeext
17715 if { (ac_try="$ac_link"
17716 case "(($ac_try" in
17717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718   *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721   (eval "$ac_link") 2>conftest.er1
17722   ac_status=$?
17723   grep -v '^ *+' conftest.er1 >conftest.err
17724   rm -f conftest.er1
17725   cat conftest.err >&5
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); } &&
17728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17738          { ac_try='test -s conftest$ac_exeext'
17739   { (case "(($ac_try" in
17740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741   *) ac_try_echo=$ac_try;;
17742 esac
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744   (eval "$ac_try") 2>&5
17745   ac_status=$?
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); }; }; then
17748   ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'`
17749   if test "x$ac_cv_lib_soname_Xi" = "x"
17750   then
17751      ac_cv_lib_soname_Xi="libXi.$LIBEXT"
17752   fi
17753 else
17754   echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757         ac_cv_lib_soname_Xi="libXi.$LIBEXT"
17758 fi
17759
17760 rm -f core conftest.err conftest.$ac_objext \
17761       conftest$ac_exeext conftest.$ac_ext
17762   LIBS=$ac_get_soname_save_LIBS
17763 fi
17764 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
17765 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
17766 if test "${ac_cv_lib_soname_Xi+set}" = set; then
17767
17768 cat >>confdefs.h <<_ACEOF
17769 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
17770 _ACEOF
17771
17772 fi
17773
17774   { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
17775 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
17776 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17777   echo $ECHO_N "(cached) $ECHO_C" >&6
17778 else
17779   ac_get_soname_save_LIBS=$LIBS
17780 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17781   cat >conftest.$ac_ext <<_ACEOF
17782 /* confdefs.h.  */
17783 _ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h.  */
17787
17788 /* Override any GCC internal prototype to avoid an error.
17789    Use char because int might match the return type of a GCC
17790    builtin and then its argument prototype would still apply.  */
17791 #ifdef __cplusplus
17792 extern "C"
17793 #endif
17794 char XRenderQueryExtension ();
17795 int
17796 main ()
17797 {
17798 return XRenderQueryExtension ();
17799   ;
17800   return 0;
17801 }
17802 _ACEOF
17803 rm -f conftest.$ac_objext conftest$ac_exeext
17804 if { (ac_try="$ac_link"
17805 case "(($ac_try" in
17806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807   *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810   (eval "$ac_link") 2>conftest.er1
17811   ac_status=$?
17812   grep -v '^ *+' conftest.er1 >conftest.err
17813   rm -f conftest.er1
17814   cat conftest.err >&5
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); } &&
17817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17827          { ac_try='test -s conftest$ac_exeext'
17828   { (case "(($ac_try" in
17829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830   *) ac_try_echo=$ac_try;;
17831 esac
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833   (eval "$ac_try") 2>&5
17834   ac_status=$?
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); }; }; then
17837   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
17838   if test "x$ac_cv_lib_soname_Xrender" = "x"
17839   then
17840      ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
17841   fi
17842 else
17843   echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846         ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
17847 fi
17848
17849 rm -f core conftest.err conftest.$ac_objext \
17850       conftest$ac_exeext conftest.$ac_ext
17851   LIBS=$ac_get_soname_save_LIBS
17852 fi
17853 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
17854 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
17855 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17856
17857 cat >>confdefs.h <<_ACEOF
17858 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
17859 _ACEOF
17860
17861 fi
17862
17863   { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
17864 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
17865 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17866   echo $ECHO_N "(cached) $ECHO_C" >&6
17867 else
17868   ac_get_soname_save_LIBS=$LIBS
17869 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17870   cat >conftest.$ac_ext <<_ACEOF
17871 /* confdefs.h.  */
17872 _ACEOF
17873 cat confdefs.h >>conftest.$ac_ext
17874 cat >>conftest.$ac_ext <<_ACEOF
17875 /* end confdefs.h.  */
17876
17877 /* Override any GCC internal prototype to avoid an error.
17878    Use char because int might match the return type of a GCC
17879    builtin and then its argument prototype would still apply.  */
17880 #ifdef __cplusplus
17881 extern "C"
17882 #endif
17883 char XRRQueryExtension ();
17884 int
17885 main ()
17886 {
17887 return XRRQueryExtension ();
17888   ;
17889   return 0;
17890 }
17891 _ACEOF
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (ac_try="$ac_link"
17894 case "(($ac_try" in
17895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896   *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899   (eval "$ac_link") 2>conftest.er1
17900   ac_status=$?
17901   grep -v '^ *+' conftest.er1 >conftest.err
17902   rm -f conftest.er1
17903   cat conftest.err >&5
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); } &&
17906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17916          { ac_try='test -s conftest$ac_exeext'
17917   { (case "(($ac_try" in
17918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919   *) ac_try_echo=$ac_try;;
17920 esac
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922   (eval "$ac_try") 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; }; then
17926   ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
17927   if test "x$ac_cv_lib_soname_Xrandr" = "x"
17928   then
17929      ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
17930   fi
17931 else
17932   echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17934
17935         ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
17936 fi
17937
17938 rm -f core conftest.err conftest.$ac_objext \
17939       conftest$ac_exeext conftest.$ac_ext
17940   LIBS=$ac_get_soname_save_LIBS
17941 fi
17942 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
17943 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
17944 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17945
17946 cat >>confdefs.h <<_ACEOF
17947 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
17948 _ACEOF
17949
17950 fi
17951
17952   { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
17953 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
17954 if test "${ac_cv_lib_soname_freetype+set}" = set; then
17955   echo $ECHO_N "(cached) $ECHO_C" >&6
17956 else
17957   ac_get_soname_save_LIBS=$LIBS
17958 LIBS="-lfreetype $X_LIBS $LIBS"
17959   cat >conftest.$ac_ext <<_ACEOF
17960 /* confdefs.h.  */
17961 _ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h.  */
17965
17966 /* Override any GCC internal prototype to avoid an error.
17967    Use char because int might match the return type of a GCC
17968    builtin and then its argument prototype would still apply.  */
17969 #ifdef __cplusplus
17970 extern "C"
17971 #endif
17972 char FT_Init_FreeType ();
17973 int
17974 main ()
17975 {
17976 return FT_Init_FreeType ();
17977   ;
17978   return 0;
17979 }
17980 _ACEOF
17981 rm -f conftest.$ac_objext conftest$ac_exeext
17982 if { (ac_try="$ac_link"
17983 case "(($ac_try" in
17984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17985   *) ac_try_echo=$ac_try;;
17986 esac
17987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17988   (eval "$ac_link") 2>conftest.er1
17989   ac_status=$?
17990   grep -v '^ *+' conftest.er1 >conftest.err
17991   rm -f conftest.er1
17992   cat conftest.err >&5
17993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994   (exit $ac_status); } &&
17995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18005          { ac_try='test -s conftest$ac_exeext'
18006   { (case "(($ac_try" in
18007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008   *) ac_try_echo=$ac_try;;
18009 esac
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011   (eval "$ac_try") 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; }; then
18015   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
18016   if test "x$ac_cv_lib_soname_freetype" = "x"
18017   then
18018      ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
18019   fi
18020 else
18021   echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024         ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
18025 fi
18026
18027 rm -f core conftest.err conftest.$ac_objext \
18028       conftest$ac_exeext conftest.$ac_ext
18029   LIBS=$ac_get_soname_save_LIBS
18030 fi
18031 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
18032 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
18033 if test "${ac_cv_lib_soname_freetype+set}" = set; then
18034
18035 cat >>confdefs.h <<_ACEOF
18036 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
18037 _ACEOF
18038
18039 fi
18040
18041   { echo "$as_me:$LINENO: checking for -lGL soname" >&5
18042 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
18043 if test "${ac_cv_lib_soname_GL+set}" = set; then
18044   echo $ECHO_N "(cached) $ECHO_C" >&6
18045 else
18046   ac_get_soname_save_LIBS=$LIBS
18047 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
18048   cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h.  */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h.  */
18054
18055 /* Override any GCC internal prototype to avoid an error.
18056    Use char because int might match the return type of a GCC
18057    builtin and then its argument prototype would still apply.  */
18058 #ifdef __cplusplus
18059 extern "C"
18060 #endif
18061 char glXQueryExtension ();
18062 int
18063 main ()
18064 {
18065 return glXQueryExtension ();
18066   ;
18067   return 0;
18068 }
18069 _ACEOF
18070 rm -f conftest.$ac_objext conftest$ac_exeext
18071 if { (ac_try="$ac_link"
18072 case "(($ac_try" in
18073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074   *) ac_try_echo=$ac_try;;
18075 esac
18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077   (eval "$ac_link") 2>conftest.er1
18078   ac_status=$?
18079   grep -v '^ *+' conftest.er1 >conftest.err
18080   rm -f conftest.er1
18081   cat conftest.err >&5
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); } &&
18084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18094          { ac_try='test -s conftest$ac_exeext'
18095   { (case "(($ac_try" in
18096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097   *) ac_try_echo=$ac_try;;
18098 esac
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100   (eval "$ac_try") 2>&5
18101   ac_status=$?
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); }; }; then
18104   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'`
18105   if test "x$ac_cv_lib_soname_GL" = "x"
18106   then
18107      ac_cv_lib_soname_GL="libGL.$LIBEXT"
18108   fi
18109 else
18110   echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18112
18113         ac_cv_lib_soname_GL="libGL.$LIBEXT"
18114 fi
18115
18116 rm -f core conftest.err conftest.$ac_objext \
18117       conftest$ac_exeext conftest.$ac_ext
18118   LIBS=$ac_get_soname_save_LIBS
18119 fi
18120 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
18121 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
18122 if test "${ac_cv_lib_soname_GL+set}" = set; then
18123
18124 cat >>confdefs.h <<_ACEOF
18125 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
18126 _ACEOF
18127
18128 fi
18129
18130   { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
18131 echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
18132 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18133   echo $ECHO_N "(cached) $ECHO_C" >&6
18134 else
18135   ac_get_soname_save_LIBS=$LIBS
18136 LIBS="-ldbus-1  $LIBS"
18137   cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h.  */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h.  */
18143
18144 /* Override any GCC internal prototype to avoid an error.
18145    Use char because int might match the return type of a GCC
18146    builtin and then its argument prototype would still apply.  */
18147 #ifdef __cplusplus
18148 extern "C"
18149 #endif
18150 char dbus_error_init ();
18151 int
18152 main ()
18153 {
18154 return dbus_error_init ();
18155   ;
18156   return 0;
18157 }
18158 _ACEOF
18159 rm -f conftest.$ac_objext conftest$ac_exeext
18160 if { (ac_try="$ac_link"
18161 case "(($ac_try" in
18162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163   *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166   (eval "$ac_link") 2>conftest.er1
18167   ac_status=$?
18168   grep -v '^ *+' conftest.er1 >conftest.err
18169   rm -f conftest.er1
18170   cat conftest.err >&5
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); } &&
18173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18183          { ac_try='test -s conftest$ac_exeext'
18184   { (case "(($ac_try" in
18185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186   *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189   (eval "$ac_try") 2>&5
18190   ac_status=$?
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); }; }; then
18193   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'`
18194   if test "x$ac_cv_lib_soname_dbus_1" = "x"
18195   then
18196      ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18197   fi
18198 else
18199   echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18201
18202         ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18203 fi
18204
18205 rm -f core conftest.err conftest.$ac_objext \
18206       conftest$ac_exeext conftest.$ac_ext
18207   LIBS=$ac_get_soname_save_LIBS
18208 fi
18209 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
18210 echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
18211 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18212
18213 cat >>confdefs.h <<_ACEOF
18214 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
18215 _ACEOF
18216
18217 fi
18218
18219   { echo "$as_me:$LINENO: checking for -lhal soname" >&5
18220 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
18221 if test "${ac_cv_lib_soname_hal+set}" = set; then
18222   echo $ECHO_N "(cached) $ECHO_C" >&6
18223 else
18224   ac_get_soname_save_LIBS=$LIBS
18225 LIBS="-lhal  $LIBS"
18226   cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h.  */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h.  */
18232
18233 /* Override any GCC internal prototype to avoid an error.
18234    Use char because int might match the return type of a GCC
18235    builtin and then its argument prototype would still apply.  */
18236 #ifdef __cplusplus
18237 extern "C"
18238 #endif
18239 char libhal_ctx_new ();
18240 int
18241 main ()
18242 {
18243 return libhal_ctx_new ();
18244   ;
18245   return 0;
18246 }
18247 _ACEOF
18248 rm -f conftest.$ac_objext conftest$ac_exeext
18249 if { (ac_try="$ac_link"
18250 case "(($ac_try" in
18251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252   *) ac_try_echo=$ac_try;;
18253 esac
18254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255   (eval "$ac_link") 2>conftest.er1
18256   ac_status=$?
18257   grep -v '^ *+' conftest.er1 >conftest.err
18258   rm -f conftest.er1
18259   cat conftest.err >&5
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); } &&
18262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18272          { ac_try='test -s conftest$ac_exeext'
18273   { (case "(($ac_try" in
18274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275   *) ac_try_echo=$ac_try;;
18276 esac
18277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18278   (eval "$ac_try") 2>&5
18279   ac_status=$?
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); }; }; then
18282   ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
18283   if test "x$ac_cv_lib_soname_hal" = "x"
18284   then
18285      ac_cv_lib_soname_hal="libhal.$LIBEXT"
18286   fi
18287 else
18288   echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18290
18291         ac_cv_lib_soname_hal="libhal.$LIBEXT"
18292 fi
18293
18294 rm -f core conftest.err conftest.$ac_objext \
18295       conftest$ac_exeext conftest.$ac_ext
18296   LIBS=$ac_get_soname_save_LIBS
18297 fi
18298 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
18299 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
18300 if test "${ac_cv_lib_soname_hal+set}" = set; then
18301
18302 cat >>confdefs.h <<_ACEOF
18303 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
18304 _ACEOF
18305
18306 fi
18307
18308   { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
18309 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
18310 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18311   echo $ECHO_N "(cached) $ECHO_C" >&6
18312 else
18313   ac_get_soname_save_LIBS=$LIBS
18314 LIBS="-ltxc_dxtn  $LIBS"
18315   cat >conftest.$ac_ext <<_ACEOF
18316 /* confdefs.h.  */
18317 _ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h.  */
18321
18322 /* Override any GCC internal prototype to avoid an error.
18323    Use char because int might match the return type of a GCC
18324    builtin and then its argument prototype would still apply.  */
18325 #ifdef __cplusplus
18326 extern "C"
18327 #endif
18328 char fetch_2d_texel_rgba_dxt1 ();
18329 int
18330 main ()
18331 {
18332 return fetch_2d_texel_rgba_dxt1 ();
18333   ;
18334   return 0;
18335 }
18336 _ACEOF
18337 rm -f conftest.$ac_objext conftest$ac_exeext
18338 if { (ac_try="$ac_link"
18339 case "(($ac_try" in
18340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341   *) ac_try_echo=$ac_try;;
18342 esac
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344   (eval "$ac_link") 2>conftest.er1
18345   ac_status=$?
18346   grep -v '^ *+' conftest.er1 >conftest.err
18347   rm -f conftest.er1
18348   cat conftest.err >&5
18349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350   (exit $ac_status); } &&
18351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18361          { ac_try='test -s conftest$ac_exeext'
18362   { (case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_try") 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); }; }; then
18371   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'`
18372   if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
18373   then
18374      ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18375   fi
18376 else
18377   echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18379
18380         ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18381 fi
18382
18383 rm -f core conftest.err conftest.$ac_objext \
18384       conftest$ac_exeext conftest.$ac_ext
18385   LIBS=$ac_get_soname_save_LIBS
18386 fi
18387 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
18388 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
18389 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18390
18391 cat >>confdefs.h <<_ACEOF
18392 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
18393 _ACEOF
18394
18395 fi
18396
18397   { echo "$as_me:$LINENO: checking for -lcups soname" >&5
18398 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
18399 if test "${ac_cv_lib_soname_cups+set}" = set; then
18400   echo $ECHO_N "(cached) $ECHO_C" >&6
18401 else
18402   ac_get_soname_save_LIBS=$LIBS
18403 LIBS="-lcups  $LIBS"
18404   cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h.  */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h.  */
18410
18411 /* Override any GCC internal prototype to avoid an error.
18412    Use char because int might match the return type of a GCC
18413    builtin and then its argument prototype would still apply.  */
18414 #ifdef __cplusplus
18415 extern "C"
18416 #endif
18417 char cupsGetDefault ();
18418 int
18419 main ()
18420 {
18421 return cupsGetDefault ();
18422   ;
18423   return 0;
18424 }
18425 _ACEOF
18426 rm -f conftest.$ac_objext conftest$ac_exeext
18427 if { (ac_try="$ac_link"
18428 case "(($ac_try" in
18429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430   *) ac_try_echo=$ac_try;;
18431 esac
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433   (eval "$ac_link") 2>conftest.er1
18434   ac_status=$?
18435   grep -v '^ *+' conftest.er1 >conftest.err
18436   rm -f conftest.er1
18437   cat conftest.err >&5
18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439   (exit $ac_status); } &&
18440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18450          { ac_try='test -s conftest$ac_exeext'
18451   { (case "(($ac_try" in
18452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453   *) ac_try_echo=$ac_try;;
18454 esac
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456   (eval "$ac_try") 2>&5
18457   ac_status=$?
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); }; }; then
18460   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
18461   if test "x$ac_cv_lib_soname_cups" = "x"
18462   then
18463      ac_cv_lib_soname_cups="libcups.$LIBEXT"
18464   fi
18465 else
18466   echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18468
18469         ac_cv_lib_soname_cups="libcups.$LIBEXT"
18470 fi
18471
18472 rm -f core conftest.err conftest.$ac_objext \
18473       conftest$ac_exeext conftest.$ac_ext
18474   LIBS=$ac_get_soname_save_LIBS
18475 fi
18476 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
18477 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
18478 if test "${ac_cv_lib_soname_cups+set}" = set; then
18479
18480 cat >>confdefs.h <<_ACEOF
18481 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
18482 _ACEOF
18483
18484 fi
18485
18486   { echo "$as_me:$LINENO: checking for -ljack soname" >&5
18487 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
18488 if test "${ac_cv_lib_soname_jack+set}" = set; then
18489   echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18491   ac_get_soname_save_LIBS=$LIBS
18492 LIBS="-ljack  $LIBS"
18493   cat >conftest.$ac_ext <<_ACEOF
18494 /* confdefs.h.  */
18495 _ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h.  */
18499
18500 /* Override any GCC internal prototype to avoid an error.
18501    Use char because int might match the return type of a GCC
18502    builtin and then its argument prototype would still apply.  */
18503 #ifdef __cplusplus
18504 extern "C"
18505 #endif
18506 char jack_client_new ();
18507 int
18508 main ()
18509 {
18510 return jack_client_new ();
18511   ;
18512   return 0;
18513 }
18514 _ACEOF
18515 rm -f conftest.$ac_objext conftest$ac_exeext
18516 if { (ac_try="$ac_link"
18517 case "(($ac_try" in
18518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519   *) ac_try_echo=$ac_try;;
18520 esac
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522   (eval "$ac_link") 2>conftest.er1
18523   ac_status=$?
18524   grep -v '^ *+' conftest.er1 >conftest.err
18525   rm -f conftest.er1
18526   cat conftest.err >&5
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); } &&
18529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18539          { ac_try='test -s conftest$ac_exeext'
18540   { (case "(($ac_try" in
18541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542   *) ac_try_echo=$ac_try;;
18543 esac
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545   (eval "$ac_try") 2>&5
18546   ac_status=$?
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); }; }; then
18549   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
18550   if test "x$ac_cv_lib_soname_jack" = "x"
18551   then
18552      ac_cv_lib_soname_jack="libjack.$LIBEXT"
18553   fi
18554 else
18555   echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18557
18558         ac_cv_lib_soname_jack="libjack.$LIBEXT"
18559 fi
18560
18561 rm -f core conftest.err conftest.$ac_objext \
18562       conftest$ac_exeext conftest.$ac_ext
18563   LIBS=$ac_get_soname_save_LIBS
18564 fi
18565 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
18566 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
18567 if test "${ac_cv_lib_soname_jack+set}" = set; then
18568
18569 cat >>confdefs.h <<_ACEOF
18570 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
18571 _ACEOF
18572
18573 fi
18574
18575   { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
18576 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
18577 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18578   echo $ECHO_N "(cached) $ECHO_C" >&6
18579 else
18580   ac_get_soname_save_LIBS=$LIBS
18581 LIBS="-lfontconfig  $LIBS"
18582   cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h.  */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h.  */
18588
18589 /* Override any GCC internal prototype to avoid an error.
18590    Use char because int might match the return type of a GCC
18591    builtin and then its argument prototype would still apply.  */
18592 #ifdef __cplusplus
18593 extern "C"
18594 #endif
18595 char FcInit ();
18596 int
18597 main ()
18598 {
18599 return FcInit ();
18600   ;
18601   return 0;
18602 }
18603 _ACEOF
18604 rm -f conftest.$ac_objext conftest$ac_exeext
18605 if { (ac_try="$ac_link"
18606 case "(($ac_try" in
18607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608   *) ac_try_echo=$ac_try;;
18609 esac
18610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18611   (eval "$ac_link") 2>conftest.er1
18612   ac_status=$?
18613   grep -v '^ *+' conftest.er1 >conftest.err
18614   rm -f conftest.er1
18615   cat conftest.err >&5
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); } &&
18618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18628          { ac_try='test -s conftest$ac_exeext'
18629   { (case "(($ac_try" in
18630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631   *) ac_try_echo=$ac_try;;
18632 esac
18633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18634   (eval "$ac_try") 2>&5
18635   ac_status=$?
18636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637   (exit $ac_status); }; }; then
18638   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^       ]*\).*$/\1/"';2,$d'`
18639   if test "x$ac_cv_lib_soname_fontconfig" = "x"
18640   then
18641      ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18642   fi
18643 else
18644   echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18646
18647         ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
18648 fi
18649
18650 rm -f core conftest.err conftest.$ac_objext \
18651       conftest$ac_exeext conftest.$ac_ext
18652   LIBS=$ac_get_soname_save_LIBS
18653 fi
18654 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
18655 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
18656 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18657
18658 cat >>confdefs.h <<_ACEOF
18659 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
18660 _ACEOF
18661
18662 fi
18663
18664   { echo "$as_me:$LINENO: checking for -lssl soname" >&5
18665 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
18666 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18667   echo $ECHO_N "(cached) $ECHO_C" >&6
18668 else
18669   ac_get_soname_save_LIBS=$LIBS
18670 LIBS="-lssl  $LIBS"
18671   cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h.  */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h.  */
18677
18678 /* Override any GCC internal prototype to avoid an error.
18679    Use char because int might match the return type of a GCC
18680    builtin and then its argument prototype would still apply.  */
18681 #ifdef __cplusplus
18682 extern "C"
18683 #endif
18684 char SSL_library_init ();
18685 int
18686 main ()
18687 {
18688 return SSL_library_init ();
18689   ;
18690   return 0;
18691 }
18692 _ACEOF
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
18695 case "(($ac_try" in
18696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697   *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700   (eval "$ac_link") 2>conftest.er1
18701   ac_status=$?
18702   grep -v '^ *+' conftest.er1 >conftest.err
18703   rm -f conftest.er1
18704   cat conftest.err >&5
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); } &&
18707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18717          { ac_try='test -s conftest$ac_exeext'
18718   { (case "(($ac_try" in
18719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720   *) ac_try_echo=$ac_try;;
18721 esac
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723   (eval "$ac_try") 2>&5
18724   ac_status=$?
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); }; }; then
18727   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
18728   if test "x$ac_cv_lib_soname_ssl" = "x"
18729   then
18730      ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18731   fi
18732 else
18733   echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18735
18736         ac_cv_lib_soname_ssl="libssl.$LIBEXT"
18737 fi
18738
18739 rm -f core conftest.err conftest.$ac_objext \
18740       conftest$ac_exeext conftest.$ac_ext
18741   LIBS=$ac_get_soname_save_LIBS
18742 fi
18743 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
18744 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
18745 if test "${ac_cv_lib_soname_ssl+set}" = set; then
18746
18747 cat >>confdefs.h <<_ACEOF
18748 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
18749 _ACEOF
18750
18751 fi
18752
18753   { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
18754 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
18755 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18756   echo $ECHO_N "(cached) $ECHO_C" >&6
18757 else
18758   ac_get_soname_save_LIBS=$LIBS
18759 LIBS="-lcrypto  $LIBS"
18760   cat >conftest.$ac_ext <<_ACEOF
18761 /* confdefs.h.  */
18762 _ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h.  */
18766
18767 /* Override any GCC internal prototype to avoid an error.
18768    Use char because int might match the return type of a GCC
18769    builtin and then its argument prototype would still apply.  */
18770 #ifdef __cplusplus
18771 extern "C"
18772 #endif
18773 char BIO_new_socket ();
18774 int
18775 main ()
18776 {
18777 return BIO_new_socket ();
18778   ;
18779   return 0;
18780 }
18781 _ACEOF
18782 rm -f conftest.$ac_objext conftest$ac_exeext
18783 if { (ac_try="$ac_link"
18784 case "(($ac_try" in
18785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786   *) ac_try_echo=$ac_try;;
18787 esac
18788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789   (eval "$ac_link") 2>conftest.er1
18790   ac_status=$?
18791   grep -v '^ *+' conftest.er1 >conftest.err
18792   rm -f conftest.er1
18793   cat conftest.err >&5
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); } &&
18796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18806          { ac_try='test -s conftest$ac_exeext'
18807   { (case "(($ac_try" in
18808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809   *) ac_try_echo=$ac_try;;
18810 esac
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812   (eval "$ac_try") 2>&5
18813   ac_status=$?
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); }; }; then
18816   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
18817   if test "x$ac_cv_lib_soname_crypto" = "x"
18818   then
18819      ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18820   fi
18821 else
18822   echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18824
18825         ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
18826 fi
18827
18828 rm -f core conftest.err conftest.$ac_objext \
18829       conftest$ac_exeext conftest.$ac_ext
18830   LIBS=$ac_get_soname_save_LIBS
18831 fi
18832 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
18833 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
18834 if test "${ac_cv_lib_soname_crypto+set}" = set; then
18835
18836 cat >>confdefs.h <<_ACEOF
18837 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
18838 _ACEOF
18839
18840 fi
18841
18842   { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
18843 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
18844 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18845   echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847   ac_get_soname_save_LIBS=$LIBS
18848 LIBS="-lncurses  $LIBS"
18849   cat >conftest.$ac_ext <<_ACEOF
18850 /* confdefs.h.  */
18851 _ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h.  */
18855
18856 /* Override any GCC internal prototype to avoid an error.
18857    Use char because int might match the return type of a GCC
18858    builtin and then its argument prototype would still apply.  */
18859 #ifdef __cplusplus
18860 extern "C"
18861 #endif
18862 char waddch ();
18863 int
18864 main ()
18865 {
18866 return waddch ();
18867   ;
18868   return 0;
18869 }
18870 _ACEOF
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875   *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878   (eval "$ac_link") 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } &&
18885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18895          { ac_try='test -s conftest$ac_exeext'
18896   { (case "(($ac_try" in
18897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898   *) ac_try_echo=$ac_try;;
18899 esac
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901   (eval "$ac_try") 2>&5
18902   ac_status=$?
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); }; }; then
18905   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
18906   if test "x$ac_cv_lib_soname_ncurses" = "x"
18907   then
18908      ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18909   fi
18910 else
18911   echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18913
18914         ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
18915 fi
18916
18917 rm -f core conftest.err conftest.$ac_objext \
18918       conftest$ac_exeext conftest.$ac_ext
18919   LIBS=$ac_get_soname_save_LIBS
18920 fi
18921 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
18922 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
18923 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18924
18925 cat >>confdefs.h <<_ACEOF
18926 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
18927 _ACEOF
18928
18929 fi
18930
18931   { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
18932 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
18933 if test "${ac_cv_lib_soname_curses+set}" = set; then
18934   echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936   ac_get_soname_save_LIBS=$LIBS
18937 LIBS="-lcurses  $LIBS"
18938   cat >conftest.$ac_ext <<_ACEOF
18939 /* confdefs.h.  */
18940 _ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h.  */
18944
18945 /* Override any GCC internal prototype to avoid an error.
18946    Use char because int might match the return type of a GCC
18947    builtin and then its argument prototype would still apply.  */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
18951 char waddch ();
18952 int
18953 main ()
18954 {
18955 return waddch ();
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_link") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } &&
18974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18984          { ac_try='test -s conftest$ac_exeext'
18985   { (case "(($ac_try" in
18986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987   *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990   (eval "$ac_try") 2>&5
18991   ac_status=$?
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); }; }; then
18994   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
18995   if test "x$ac_cv_lib_soname_curses" = "x"
18996   then
18997      ac_cv_lib_soname_curses="libcurses.$LIBEXT"
18998   fi
18999 else
19000   echo "$as_me: failed program was:" >&5
19001 sed 's/^/| /' conftest.$ac_ext >&5
19002
19003         ac_cv_lib_soname_curses="libcurses.$LIBEXT"
19004 fi
19005
19006 rm -f core conftest.err conftest.$ac_objext \
19007       conftest$ac_exeext conftest.$ac_ext
19008   LIBS=$ac_get_soname_save_LIBS
19009 fi
19010 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
19011 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
19012 if test "${ac_cv_lib_soname_curses+set}" = set; then
19013
19014 cat >>confdefs.h <<_ACEOF
19015 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
19016 _ACEOF
19017
19018 fi
19019
19020   { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
19021 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
19022 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
19023   echo $ECHO_N "(cached) $ECHO_C" >&6
19024 else
19025   ac_get_soname_save_LIBS=$LIBS
19026 LIBS="-ljpeg  $LIBS"
19027   cat >conftest.$ac_ext <<_ACEOF
19028 /* confdefs.h.  */
19029 _ACEOF
19030 cat confdefs.h >>conftest.$ac_ext
19031 cat >>conftest.$ac_ext <<_ACEOF
19032 /* end confdefs.h.  */
19033
19034 /* Override any GCC internal prototype to avoid an error.
19035    Use char because int might match the return type of a GCC
19036    builtin and then its argument prototype would still apply.  */
19037 #ifdef __cplusplus
19038 extern "C"
19039 #endif
19040 char jpeg_start_decompress ();
19041 int
19042 main ()
19043 {
19044 return jpeg_start_decompress ();
19045   ;
19046   return 0;
19047 }
19048 _ACEOF
19049 rm -f conftest.$ac_objext conftest$ac_exeext
19050 if { (ac_try="$ac_link"
19051 case "(($ac_try" in
19052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053   *) ac_try_echo=$ac_try;;
19054 esac
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056   (eval "$ac_link") 2>conftest.er1
19057   ac_status=$?
19058   grep -v '^ *+' conftest.er1 >conftest.err
19059   rm -f conftest.er1
19060   cat conftest.err >&5
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } &&
19063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19073          { ac_try='test -s conftest$ac_exeext'
19074   { (case "(($ac_try" in
19075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076   *) ac_try_echo=$ac_try;;
19077 esac
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079   (eval "$ac_try") 2>&5
19080   ac_status=$?
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); }; }; then
19083   ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
19084   if test "x$ac_cv_lib_soname_jpeg" = "x"
19085   then
19086      ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
19087   fi
19088 else
19089   echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19091
19092         ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
19093 fi
19094
19095 rm -f core conftest.err conftest.$ac_objext \
19096       conftest$ac_exeext conftest.$ac_ext
19097   LIBS=$ac_get_soname_save_LIBS
19098 fi
19099 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
19100 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
19101 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
19102
19103 cat >>confdefs.h <<_ACEOF
19104 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
19105 _ACEOF
19106
19107 fi
19108
19109   { echo "$as_me:$LINENO: checking for -lungif soname" >&5
19110 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
19111 if test "${ac_cv_lib_soname_ungif+set}" = set; then
19112   echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114   ac_get_soname_save_LIBS=$LIBS
19115 LIBS="-lungif  $LIBS"
19116   cat >conftest.$ac_ext <<_ACEOF
19117 /* confdefs.h.  */
19118 _ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h.  */
19122
19123 /* Override any GCC internal prototype to avoid an error.
19124    Use char because int might match the return type of a GCC
19125    builtin and then its argument prototype would still apply.  */
19126 #ifdef __cplusplus
19127 extern "C"
19128 #endif
19129 char DGifOpen ();
19130 int
19131 main ()
19132 {
19133 return DGifOpen ();
19134   ;
19135   return 0;
19136 }
19137 _ACEOF
19138 rm -f conftest.$ac_objext conftest$ac_exeext
19139 if { (ac_try="$ac_link"
19140 case "(($ac_try" in
19141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142   *) ac_try_echo=$ac_try;;
19143 esac
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145   (eval "$ac_link") 2>conftest.er1
19146   ac_status=$?
19147   grep -v '^ *+' conftest.er1 >conftest.err
19148   rm -f conftest.er1
19149   cat conftest.err >&5
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); } &&
19152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19162          { ac_try='test -s conftest$ac_exeext'
19163   { (case "(($ac_try" in
19164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165   *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168   (eval "$ac_try") 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }; }; then
19172   ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'`
19173   if test "x$ac_cv_lib_soname_ungif" = "x"
19174   then
19175      ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19176   fi
19177 else
19178   echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19180
19181         ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19182 fi
19183
19184 rm -f core conftest.err conftest.$ac_objext \
19185       conftest$ac_exeext conftest.$ac_ext
19186   LIBS=$ac_get_soname_save_LIBS
19187 fi
19188 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
19189 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
19190 if test "${ac_cv_lib_soname_ungif+set}" = set; then
19191
19192 cat >>confdefs.h <<_ACEOF
19193 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
19194 _ACEOF
19195
19196 fi
19197
19198   { echo "$as_me:$LINENO: checking for -lgif soname" >&5
19199 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
19200 if test "${ac_cv_lib_soname_gif+set}" = set; then
19201   echo $ECHO_N "(cached) $ECHO_C" >&6
19202 else
19203   ac_get_soname_save_LIBS=$LIBS
19204 LIBS="-lgif  $LIBS"
19205   cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h.  */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h.  */
19211
19212 /* Override any GCC internal prototype to avoid an error.
19213    Use char because int might match the return type of a GCC
19214    builtin and then its argument prototype would still apply.  */
19215 #ifdef __cplusplus
19216 extern "C"
19217 #endif
19218 char DGifOpen ();
19219 int
19220 main ()
19221 {
19222 return DGifOpen ();
19223   ;
19224   return 0;
19225 }
19226 _ACEOF
19227 rm -f conftest.$ac_objext conftest$ac_exeext
19228 if { (ac_try="$ac_link"
19229 case "(($ac_try" in
19230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231   *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234   (eval "$ac_link") 2>conftest.er1
19235   ac_status=$?
19236   grep -v '^ *+' conftest.er1 >conftest.err
19237   rm -f conftest.er1
19238   cat conftest.err >&5
19239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240   (exit $ac_status); } &&
19241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19242   { (case "(($ac_try" in
19243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244   *) ac_try_echo=$ac_try;;
19245 esac
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247   (eval "$ac_try") 2>&5
19248   ac_status=$?
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); }; } &&
19251          { ac_try='test -s conftest$ac_exeext'
19252   { (case "(($ac_try" in
19253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254   *) ac_try_echo=$ac_try;;
19255 esac
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257   (eval "$ac_try") 2>&5
19258   ac_status=$?
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); }; }; then
19261   ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
19262   if test "x$ac_cv_lib_soname_gif" = "x"
19263   then
19264      ac_cv_lib_soname_gif="libgif.$LIBEXT"
19265   fi
19266 else
19267   echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19269
19270         ac_cv_lib_soname_gif="libgif.$LIBEXT"
19271 fi
19272
19273 rm -f core conftest.err conftest.$ac_objext \
19274       conftest$ac_exeext conftest.$ac_ext
19275   LIBS=$ac_get_soname_save_LIBS
19276 fi
19277 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
19278 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
19279 if test "${ac_cv_lib_soname_gif+set}" = set; then
19280
19281 cat >>confdefs.h <<_ACEOF
19282 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
19283 _ACEOF
19284
19285 fi
19286
19287   { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
19288 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
19289 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19290   echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292   ac_get_soname_save_LIBS=$LIBS
19293 LIBS="-lcapi20  $LIBS"
19294   cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h.  */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h.  */
19300
19301 /* Override any GCC internal prototype to avoid an error.
19302    Use char because int might match the return type of a GCC
19303    builtin and then its argument prototype would still apply.  */
19304 #ifdef __cplusplus
19305 extern "C"
19306 #endif
19307 char capi20_isinstalled ();
19308 int
19309 main ()
19310 {
19311 return capi20_isinstalled ();
19312   ;
19313   return 0;
19314 }
19315 _ACEOF
19316 rm -f conftest.$ac_objext conftest$ac_exeext
19317 if { (ac_try="$ac_link"
19318 case "(($ac_try" in
19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320   *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323   (eval "$ac_link") 2>conftest.er1
19324   ac_status=$?
19325   grep -v '^ *+' conftest.er1 >conftest.err
19326   rm -f conftest.er1
19327   cat conftest.err >&5
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); } &&
19330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19331   { (case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336   (eval "$ac_try") 2>&5
19337   ac_status=$?
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); }; } &&
19340          { ac_try='test -s conftest$ac_exeext'
19341   { (case "(($ac_try" in
19342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343   *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346   (eval "$ac_try") 2>&5
19347   ac_status=$?
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); }; }; then
19350   ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^   ]*\).*$/\1/"';2,$d'`
19351   if test "x$ac_cv_lib_soname_capi20" = "x"
19352   then
19353      ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19354   fi
19355 else
19356   echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19358
19359         ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19360 fi
19361
19362 rm -f core conftest.err conftest.$ac_objext \
19363       conftest$ac_exeext conftest.$ac_ext
19364   LIBS=$ac_get_soname_save_LIBS
19365 fi
19366 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
19367 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
19368 if test "${ac_cv_lib_soname_capi20+set}" = set; then
19369
19370 cat >>confdefs.h <<_ACEOF
19371 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
19372 _ACEOF
19373
19374 fi
19375
19376 fi
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445 for ac_func in \
19446         _lwp_create \
19447         _lwp_self \
19448         _pclose \
19449         _popen \
19450         _snprintf \
19451         _spawnvp \
19452         _stricmp \
19453         _strnicmp \
19454         _vsnprintf \
19455         asctime_r \
19456         chsize \
19457         clone \
19458         epoll_create \
19459         ffs \
19460         finite \
19461         fork \
19462         fpclass \
19463         fstatfs \
19464         fstatvfs \
19465         ftruncate \
19466         futimes \
19467         futimesat \
19468         getaddrinfo \
19469         getnameinfo \
19470         getnetbyname \
19471         getopt_long \
19472         getpagesize \
19473         getprotobyname \
19474         getprotobynumber \
19475         getpwuid \
19476         getservbyport \
19477         gettid \
19478         gettimeofday \
19479         getuid \
19480         inet_network \
19481         lstat \
19482         memmove \
19483         mmap \
19484         pclose \
19485         popen \
19486         prctl \
19487         pread \
19488         pwrite \
19489         readlink \
19490         rfork \
19491         sched_yield \
19492         select \
19493         sendmsg \
19494         setrlimit \
19495         settimeofday \
19496         sigaltstack \
19497         sigprocmask \
19498         snprintf \
19499         spawnvp \
19500         statfs \
19501         statvfs \
19502         strcasecmp \
19503         strerror \
19504         strncasecmp \
19505         tcgetattr \
19506         timegm \
19507         usleep \
19508         vsnprintf \
19509         wait4 \
19510         waitpid \
19511
19512 do
19513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19514 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19516 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19517   echo $ECHO_N "(cached) $ECHO_C" >&6
19518 else
19519   cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h.  */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h.  */
19525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19527 #define $ac_func innocuous_$ac_func
19528
19529 /* System header to define __stub macros and hopefully few prototypes,
19530     which can conflict with char $ac_func (); below.
19531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19532     <limits.h> exists even on freestanding compilers.  */
19533
19534 #ifdef __STDC__
19535 # include <limits.h>
19536 #else
19537 # include <assert.h>
19538 #endif
19539
19540 #undef $ac_func
19541
19542 /* Override any GCC internal prototype to avoid an error.
19543    Use char because int might match the return type of a GCC
19544    builtin and then its argument prototype would still apply.  */
19545 #ifdef __cplusplus
19546 extern "C"
19547 #endif
19548 char $ac_func ();
19549 /* The GNU C library defines this for functions which it implements
19550     to always fail with ENOSYS.  Some functions are actually named
19551     something starting with __ and the normal name is an alias.  */
19552 #if defined __stub_$ac_func || defined __stub___$ac_func
19553 choke me
19554 #endif
19555
19556 int
19557 main ()
19558 {
19559 return $ac_func ();
19560   ;
19561   return 0;
19562 }
19563 _ACEOF
19564 rm -f conftest.$ac_objext conftest$ac_exeext
19565 if { (ac_try="$ac_link"
19566 case "(($ac_try" in
19567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568   *) ac_try_echo=$ac_try;;
19569 esac
19570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571   (eval "$ac_link") 2>conftest.er1
19572   ac_status=$?
19573   grep -v '^ *+' conftest.er1 >conftest.err
19574   rm -f conftest.er1
19575   cat conftest.err >&5
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); } &&
19578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19579   { (case "(($ac_try" in
19580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581   *) ac_try_echo=$ac_try;;
19582 esac
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584   (eval "$ac_try") 2>&5
19585   ac_status=$?
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); }; } &&
19588          { ac_try='test -s conftest$ac_exeext'
19589   { (case "(($ac_try" in
19590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591   *) ac_try_echo=$ac_try;;
19592 esac
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594   (eval "$ac_try") 2>&5
19595   ac_status=$?
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); }; }; then
19598   eval "$as_ac_var=yes"
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603         eval "$as_ac_var=no"
19604 fi
19605
19606 rm -f core conftest.err conftest.$ac_objext \
19607       conftest$ac_exeext conftest.$ac_ext
19608 fi
19609 ac_res=`eval echo '${'$as_ac_var'}'`
19610                { echo "$as_me:$LINENO: result: $ac_res" >&5
19611 echo "${ECHO_T}$ac_res" >&6; }
19612 if test `eval echo '${'$as_ac_var'}'` = yes; then
19613   cat >>confdefs.h <<_ACEOF
19614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19615 _ACEOF
19616
19617 fi
19618 done
19619
19620
19621
19622
19623 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19624 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19625 if test "${ac_cv_c_const+set}" = set; then
19626   echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628   cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634
19635 int
19636 main ()
19637 {
19638 /* FIXME: Include the comments suggested by Paul. */
19639 #ifndef __cplusplus
19640   /* Ultrix mips cc rejects this.  */
19641   typedef int charset[2];
19642   const charset x;
19643   /* SunOS 4.1.1 cc rejects this.  */
19644   char const *const *ccp;
19645   char **p;
19646   /* NEC SVR4.0.2 mips cc rejects this.  */
19647   struct point {int x, y;};
19648   static struct point const zero = {0,0};
19649   /* AIX XL C 1.02.0.0 rejects this.
19650      It does not let you subtract one const X* pointer from another in
19651      an arm of an if-expression whose if-part is not a constant
19652      expression */
19653   const char *g = "string";
19654   ccp = &g + (g ? g-g : 0);
19655   /* HPUX 7.0 cc rejects these. */
19656   ++ccp;
19657   p = (char**) ccp;
19658   ccp = (char const *const *) p;
19659   { /* SCO 3.2v4 cc rejects this.  */
19660     char *t;
19661     char const *s = 0 ? (char *) 0 : (char const *) 0;
19662
19663     *t++ = 0;
19664     if (s) return 0;
19665   }
19666   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19667     int x[] = {25, 17};
19668     const int *foo = &x[0];
19669     ++foo;
19670   }
19671   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19672     typedef const int *iptr;
19673     iptr p = 0;
19674     ++p;
19675   }
19676   { /* AIX XL C 1.02.0.0 rejects this saying
19677        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19678     struct s { int j; const int *ap[3]; };
19679     struct s *b; b->j = 5;
19680   }
19681   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19682     const int foo = 10;
19683     if (!foo) return 0;
19684   }
19685   return !x[0] && !zero.x;
19686 #endif
19687
19688   ;
19689   return 0;
19690 }
19691 _ACEOF
19692 rm -f conftest.$ac_objext
19693 if { (ac_try="$ac_compile"
19694 case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_compile") 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } &&
19706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19707   { (case "(($ac_try" in
19708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709   *) ac_try_echo=$ac_try;;
19710 esac
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712   (eval "$ac_try") 2>&5
19713   ac_status=$?
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); }; } &&
19716          { ac_try='test -s conftest.$ac_objext'
19717   { (case "(($ac_try" in
19718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719   *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722   (eval "$ac_try") 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; }; then
19726   ac_cv_c_const=yes
19727 else
19728   echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19730
19731         ac_cv_c_const=no
19732 fi
19733
19734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19735 fi
19736 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19737 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19738 if test $ac_cv_c_const = no; then
19739
19740 cat >>confdefs.h <<\_ACEOF
19741 #define const
19742 _ACEOF
19743
19744 fi
19745
19746 { echo "$as_me:$LINENO: checking for inline" >&5
19747 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19748 if test "${ac_cv_c_inline+set}" = set; then
19749   echo $ECHO_N "(cached) $ECHO_C" >&6
19750 else
19751   ac_cv_c_inline=no
19752 for ac_kw in inline __inline__ __inline; do
19753   cat >conftest.$ac_ext <<_ACEOF
19754 /* confdefs.h.  */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h.  */
19759 #ifndef __cplusplus
19760 typedef int foo_t;
19761 static $ac_kw foo_t static_foo () {return 0; }
19762 $ac_kw foo_t foo () {return 0; }
19763 #endif
19764
19765 _ACEOF
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_compile") 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } &&
19780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19781   { (case "(($ac_try" in
19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783   *) ac_try_echo=$ac_try;;
19784 esac
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786   (eval "$ac_try") 2>&5
19787   ac_status=$?
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); }; } &&
19790          { ac_try='test -s conftest.$ac_objext'
19791   { (case "(($ac_try" in
19792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793   *) ac_try_echo=$ac_try;;
19794 esac
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796   (eval "$ac_try") 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); }; }; then
19800   ac_cv_c_inline=$ac_kw
19801 else
19802   echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19804
19805
19806 fi
19807
19808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19809   test "$ac_cv_c_inline" != no && break
19810 done
19811
19812 fi
19813 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19814 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19815
19816
19817 case $ac_cv_c_inline in
19818   inline | yes) ;;
19819   *)
19820     case $ac_cv_c_inline in
19821       no) ac_val=;;
19822       *) ac_val=$ac_cv_c_inline;;
19823     esac
19824     cat >>confdefs.h <<_ACEOF
19825 #ifndef __cplusplus
19826 #define inline $ac_val
19827 #endif
19828 _ACEOF
19829     ;;
19830 esac
19831
19832 { echo "$as_me:$LINENO: checking for mode_t" >&5
19833 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
19834 if test "${ac_cv_type_mode_t+set}" = set; then
19835   echo $ECHO_N "(cached) $ECHO_C" >&6
19836 else
19837   cat >conftest.$ac_ext <<_ACEOF
19838 /* confdefs.h.  */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h.  */
19843 $ac_includes_default
19844 typedef mode_t ac__type_new_;
19845 int
19846 main ()
19847 {
19848 if ((ac__type_new_ *) 0)
19849   return 0;
19850 if (sizeof (ac__type_new_))
19851   return 0;
19852   ;
19853   return 0;
19854 }
19855 _ACEOF
19856 rm -f conftest.$ac_objext
19857 if { (ac_try="$ac_compile"
19858 case "(($ac_try" in
19859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860   *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863   (eval "$ac_compile") 2>conftest.er1
19864   ac_status=$?
19865   grep -v '^ *+' conftest.er1 >conftest.err
19866   rm -f conftest.er1
19867   cat conftest.err >&5
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); } &&
19870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19871   { (case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876   (eval "$ac_try") 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); }; } &&
19880          { ac_try='test -s conftest.$ac_objext'
19881   { (case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886   (eval "$ac_try") 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; }; then
19890   ac_cv_type_mode_t=yes
19891 else
19892   echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19894
19895         ac_cv_type_mode_t=no
19896 fi
19897
19898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19899 fi
19900 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19901 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
19902 if test $ac_cv_type_mode_t = yes; then
19903
19904 cat >>confdefs.h <<_ACEOF
19905 #define HAVE_MODE_T 1
19906 _ACEOF
19907
19908
19909 fi
19910 { echo "$as_me:$LINENO: checking for off_t" >&5
19911 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
19912 if test "${ac_cv_type_off_t+set}" = set; then
19913   echo $ECHO_N "(cached) $ECHO_C" >&6
19914 else
19915   cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h.  */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h.  */
19921 $ac_includes_default
19922 typedef off_t ac__type_new_;
19923 int
19924 main ()
19925 {
19926 if ((ac__type_new_ *) 0)
19927   return 0;
19928 if (sizeof (ac__type_new_))
19929   return 0;
19930   ;
19931   return 0;
19932 }
19933 _ACEOF
19934 rm -f conftest.$ac_objext
19935 if { (ac_try="$ac_compile"
19936 case "(($ac_try" in
19937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938   *) ac_try_echo=$ac_try;;
19939 esac
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941   (eval "$ac_compile") 2>conftest.er1
19942   ac_status=$?
19943   grep -v '^ *+' conftest.er1 >conftest.err
19944   rm -f conftest.er1
19945   cat conftest.err >&5
19946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); } &&
19948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19949   { (case "(($ac_try" in
19950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951   *) ac_try_echo=$ac_try;;
19952 esac
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954   (eval "$ac_try") 2>&5
19955   ac_status=$?
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); }; } &&
19958          { ac_try='test -s conftest.$ac_objext'
19959   { (case "(($ac_try" in
19960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961   *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964   (eval "$ac_try") 2>&5
19965   ac_status=$?
19966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); }; }; then
19968   ac_cv_type_off_t=yes
19969 else
19970   echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19972
19973         ac_cv_type_off_t=no
19974 fi
19975
19976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977 fi
19978 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19979 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
19980 if test $ac_cv_type_off_t = yes; then
19981
19982 cat >>confdefs.h <<_ACEOF
19983 #define HAVE_OFF_T 1
19984 _ACEOF
19985
19986
19987 fi
19988 { echo "$as_me:$LINENO: checking for pid_t" >&5
19989 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
19990 if test "${ac_cv_type_pid_t+set}" = set; then
19991   echo $ECHO_N "(cached) $ECHO_C" >&6
19992 else
19993   cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h.  */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h.  */
19999 $ac_includes_default
20000 typedef pid_t ac__type_new_;
20001 int
20002 main ()
20003 {
20004 if ((ac__type_new_ *) 0)
20005   return 0;
20006 if (sizeof (ac__type_new_))
20007   return 0;
20008   ;
20009   return 0;
20010 }
20011 _ACEOF
20012 rm -f conftest.$ac_objext
20013 if { (ac_try="$ac_compile"
20014 case "(($ac_try" in
20015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016   *) ac_try_echo=$ac_try;;
20017 esac
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019   (eval "$ac_compile") 2>conftest.er1
20020   ac_status=$?
20021   grep -v '^ *+' conftest.er1 >conftest.err
20022   rm -f conftest.er1
20023   cat conftest.err >&5
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); } &&
20026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20027   { (case "(($ac_try" in
20028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029   *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032   (eval "$ac_try") 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; } &&
20036          { ac_try='test -s conftest.$ac_objext'
20037   { (case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042   (eval "$ac_try") 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); }; }; then
20046   ac_cv_type_pid_t=yes
20047 else
20048   echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051         ac_cv_type_pid_t=no
20052 fi
20053
20054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20055 fi
20056 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20057 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20058 if test $ac_cv_type_pid_t = yes; then
20059
20060 cat >>confdefs.h <<_ACEOF
20061 #define HAVE_PID_T 1
20062 _ACEOF
20063
20064
20065 fi
20066 { echo "$as_me:$LINENO: checking for size_t" >&5
20067 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20068 if test "${ac_cv_type_size_t+set}" = set; then
20069   echo $ECHO_N "(cached) $ECHO_C" >&6
20070 else
20071   cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h.  */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h.  */
20077 $ac_includes_default
20078 typedef size_t ac__type_new_;
20079 int
20080 main ()
20081 {
20082 if ((ac__type_new_ *) 0)
20083   return 0;
20084 if (sizeof (ac__type_new_))
20085   return 0;
20086   ;
20087   return 0;
20088 }
20089 _ACEOF
20090 rm -f conftest.$ac_objext
20091 if { (ac_try="$ac_compile"
20092 case "(($ac_try" in
20093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094   *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097   (eval "$ac_compile") 2>conftest.er1
20098   ac_status=$?
20099   grep -v '^ *+' conftest.er1 >conftest.err
20100   rm -f conftest.er1
20101   cat conftest.err >&5
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } &&
20104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20105   { (case "(($ac_try" in
20106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107   *) ac_try_echo=$ac_try;;
20108 esac
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110   (eval "$ac_try") 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); }; } &&
20114          { ac_try='test -s conftest.$ac_objext'
20115   { (case "(($ac_try" in
20116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117   *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120   (eval "$ac_try") 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; }; then
20124   ac_cv_type_size_t=yes
20125 else
20126   echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20128
20129         ac_cv_type_size_t=no
20130 fi
20131
20132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20133 fi
20134 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20135 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20136 if test $ac_cv_type_size_t = yes; then
20137
20138 cat >>confdefs.h <<_ACEOF
20139 #define HAVE_SIZE_T 1
20140 _ACEOF
20141
20142
20143 fi
20144 { echo "$as_me:$LINENO: checking for ssize_t" >&5
20145 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
20146 if test "${ac_cv_type_ssize_t+set}" = set; then
20147   echo $ECHO_N "(cached) $ECHO_C" >&6
20148 else
20149   cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h.  */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h.  */
20155 $ac_includes_default
20156 typedef ssize_t ac__type_new_;
20157 int
20158 main ()
20159 {
20160 if ((ac__type_new_ *) 0)
20161   return 0;
20162 if (sizeof (ac__type_new_))
20163   return 0;
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext
20169 if { (ac_try="$ac_compile"
20170 case "(($ac_try" in
20171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172   *) ac_try_echo=$ac_try;;
20173 esac
20174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175   (eval "$ac_compile") 2>conftest.er1
20176   ac_status=$?
20177   grep -v '^ *+' conftest.er1 >conftest.err
20178   rm -f conftest.er1
20179   cat conftest.err >&5
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); } &&
20182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20183   { (case "(($ac_try" in
20184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185   *) ac_try_echo=$ac_try;;
20186 esac
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188   (eval "$ac_try") 2>&5
20189   ac_status=$?
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); }; } &&
20192          { ac_try='test -s conftest.$ac_objext'
20193   { (case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_try") 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; }; then
20202   ac_cv_type_ssize_t=yes
20203 else
20204   echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207         ac_cv_type_ssize_t=no
20208 fi
20209
20210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211 fi
20212 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20213 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
20214 if test $ac_cv_type_ssize_t = yes; then
20215
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_SSIZE_T 1
20218 _ACEOF
20219
20220
20221 fi
20222 { echo "$as_me:$LINENO: checking for long long" >&5
20223 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20224 if test "${ac_cv_type_long_long+set}" = set; then
20225   echo $ECHO_N "(cached) $ECHO_C" >&6
20226 else
20227   cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233 $ac_includes_default
20234 typedef long long ac__type_new_;
20235 int
20236 main ()
20237 {
20238 if ((ac__type_new_ *) 0)
20239   return 0;
20240 if (sizeof (ac__type_new_))
20241   return 0;
20242   ;
20243   return 0;
20244 }
20245 _ACEOF
20246 rm -f conftest.$ac_objext
20247 if { (ac_try="$ac_compile"
20248 case "(($ac_try" in
20249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250   *) ac_try_echo=$ac_try;;
20251 esac
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253   (eval "$ac_compile") 2>conftest.er1
20254   ac_status=$?
20255   grep -v '^ *+' conftest.er1 >conftest.err
20256   rm -f conftest.er1
20257   cat conftest.err >&5
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); } &&
20260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20261   { (case "(($ac_try" in
20262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263   *) ac_try_echo=$ac_try;;
20264 esac
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266   (eval "$ac_try") 2>&5
20267   ac_status=$?
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); }; } &&
20270          { ac_try='test -s conftest.$ac_objext'
20271   { (case "(($ac_try" in
20272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273   *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276   (eval "$ac_try") 2>&5
20277   ac_status=$?
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); }; }; then
20280   ac_cv_type_long_long=yes
20281 else
20282   echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20284
20285         ac_cv_type_long_long=no
20286 fi
20287
20288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20289 fi
20290 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20291 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20292 if test $ac_cv_type_long_long = yes; then
20293
20294 cat >>confdefs.h <<_ACEOF
20295 #define HAVE_LONG_LONG 1
20296 _ACEOF
20297
20298
20299 fi
20300 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
20301 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
20302 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
20303   echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305   cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h.  */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h.  */
20311 $ac_includes_default
20312 typedef fsblkcnt_t ac__type_new_;
20313 int
20314 main ()
20315 {
20316 if ((ac__type_new_ *) 0)
20317   return 0;
20318 if (sizeof (ac__type_new_))
20319   return 0;
20320   ;
20321   return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest.$ac_objext
20325 if { (ac_try="$ac_compile"
20326 case "(($ac_try" in
20327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328   *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331   (eval "$ac_compile") 2>conftest.er1
20332   ac_status=$?
20333   grep -v '^ *+' conftest.er1 >conftest.err
20334   rm -f conftest.er1
20335   cat conftest.err >&5
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); } &&
20338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20339   { (case "(($ac_try" in
20340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341   *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344   (eval "$ac_try") 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); }; } &&
20348          { ac_try='test -s conftest.$ac_objext'
20349   { (case "(($ac_try" in
20350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351   *) ac_try_echo=$ac_try;;
20352 esac
20353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20354   (eval "$ac_try") 2>&5
20355   ac_status=$?
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); }; }; then
20358   ac_cv_type_fsblkcnt_t=yes
20359 else
20360   echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20362
20363         ac_cv_type_fsblkcnt_t=no
20364 fi
20365
20366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20367 fi
20368 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
20369 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
20370 if test $ac_cv_type_fsblkcnt_t = yes; then
20371
20372 cat >>confdefs.h <<_ACEOF
20373 #define HAVE_FSBLKCNT_T 1
20374 _ACEOF
20375
20376
20377 fi
20378 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
20379 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
20380 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
20381   echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20383   cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h.  */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h.  */
20389 $ac_includes_default
20390 typedef fsfilcnt_t ac__type_new_;
20391 int
20392 main ()
20393 {
20394 if ((ac__type_new_ *) 0)
20395   return 0;
20396 if (sizeof (ac__type_new_))
20397   return 0;
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext
20403 if { (ac_try="$ac_compile"
20404 case "(($ac_try" in
20405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406   *) ac_try_echo=$ac_try;;
20407 esac
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409   (eval "$ac_compile") 2>conftest.er1
20410   ac_status=$?
20411   grep -v '^ *+' conftest.er1 >conftest.err
20412   rm -f conftest.er1
20413   cat conftest.err >&5
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); } &&
20416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20417   { (case "(($ac_try" in
20418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419   *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422   (eval "$ac_try") 2>&5
20423   ac_status=$?
20424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425   (exit $ac_status); }; } &&
20426          { ac_try='test -s conftest.$ac_objext'
20427   { (case "(($ac_try" in
20428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429   *) ac_try_echo=$ac_try;;
20430 esac
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432   (eval "$ac_try") 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); }; }; then
20436   ac_cv_type_fsfilcnt_t=yes
20437 else
20438   echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441         ac_cv_type_fsfilcnt_t=no
20442 fi
20443
20444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445 fi
20446 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
20447 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
20448 if test $ac_cv_type_fsfilcnt_t = yes; then
20449
20450 cat >>confdefs.h <<_ACEOF
20451 #define HAVE_FSFILCNT_T 1
20452 _ACEOF
20453
20454
20455 fi
20456
20457 { echo "$as_me:$LINENO: checking for sigset_t" >&5
20458 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
20459 if test "${ac_cv_type_sigset_t+set}" = set; then
20460   echo $ECHO_N "(cached) $ECHO_C" >&6
20461 else
20462   cat >conftest.$ac_ext <<_ACEOF
20463 /* confdefs.h.  */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h.  */
20468 #include <signal.h>
20469
20470 typedef sigset_t ac__type_new_;
20471 int
20472 main ()
20473 {
20474 if ((ac__type_new_ *) 0)
20475   return 0;
20476 if (sizeof (ac__type_new_))
20477   return 0;
20478   ;
20479   return 0;
20480 }
20481 _ACEOF
20482 rm -f conftest.$ac_objext
20483 if { (ac_try="$ac_compile"
20484 case "(($ac_try" in
20485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486   *) ac_try_echo=$ac_try;;
20487 esac
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489   (eval "$ac_compile") 2>conftest.er1
20490   ac_status=$?
20491   grep -v '^ *+' conftest.er1 >conftest.err
20492   rm -f conftest.er1
20493   cat conftest.err >&5
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); } &&
20496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20497   { (case "(($ac_try" in
20498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499   *) ac_try_echo=$ac_try;;
20500 esac
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502   (eval "$ac_try") 2>&5
20503   ac_status=$?
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); }; } &&
20506          { ac_try='test -s conftest.$ac_objext'
20507   { (case "(($ac_try" in
20508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509   *) ac_try_echo=$ac_try;;
20510 esac
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512   (eval "$ac_try") 2>&5
20513   ac_status=$?
20514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515   (exit $ac_status); }; }; then
20516   ac_cv_type_sigset_t=yes
20517 else
20518   echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20520
20521         ac_cv_type_sigset_t=no
20522 fi
20523
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525 fi
20526 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
20527 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
20528 if test $ac_cv_type_sigset_t = yes; then
20529
20530 cat >>confdefs.h <<_ACEOF
20531 #define HAVE_SIGSET_T 1
20532 _ACEOF
20533
20534
20535 fi
20536
20537 { echo "$as_me:$LINENO: checking for request_sense" >&5
20538 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
20539 if test "${ac_cv_type_request_sense+set}" = set; then
20540   echo $ECHO_N "(cached) $ECHO_C" >&6
20541 else
20542   cat >conftest.$ac_ext <<_ACEOF
20543 /* confdefs.h.  */
20544 _ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h.  */
20548 #include <linux/cdrom.h>
20549
20550 typedef request_sense ac__type_new_;
20551 int
20552 main ()
20553 {
20554 if ((ac__type_new_ *) 0)
20555   return 0;
20556 if (sizeof (ac__type_new_))
20557   return 0;
20558   ;
20559   return 0;
20560 }
20561 _ACEOF
20562 rm -f conftest.$ac_objext
20563 if { (ac_try="$ac_compile"
20564 case "(($ac_try" in
20565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566   *) ac_try_echo=$ac_try;;
20567 esac
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569   (eval "$ac_compile") 2>conftest.er1
20570   ac_status=$?
20571   grep -v '^ *+' conftest.er1 >conftest.err
20572   rm -f conftest.er1
20573   cat conftest.err >&5
20574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575   (exit $ac_status); } &&
20576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20577   { (case "(($ac_try" in
20578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579   *) ac_try_echo=$ac_try;;
20580 esac
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582   (eval "$ac_try") 2>&5
20583   ac_status=$?
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); }; } &&
20586          { ac_try='test -s conftest.$ac_objext'
20587   { (case "(($ac_try" in
20588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589   *) ac_try_echo=$ac_try;;
20590 esac
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592   (eval "$ac_try") 2>&5
20593   ac_status=$?
20594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595   (exit $ac_status); }; }; then
20596   ac_cv_type_request_sense=yes
20597 else
20598   echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20600
20601         ac_cv_type_request_sense=no
20602 fi
20603
20604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20605 fi
20606 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
20607 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
20608 if test $ac_cv_type_request_sense = yes; then
20609
20610 cat >>confdefs.h <<_ACEOF
20611 #define HAVE_REQUEST_SENSE 1
20612 _ACEOF
20613
20614
20615 fi
20616
20617
20618 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
20619 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
20620 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
20621   echo $ECHO_N "(cached) $ECHO_C" >&6
20622 else
20623   cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h.  */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h.  */
20629 #ifdef HAVE_LINUX_INPUT_H
20630 #include <linux/input.h>
20631 #endif
20632
20633 int
20634 main ()
20635 {
20636 static struct ff_effect ac_aggr;
20637 if (ac_aggr.direction)
20638 return 0;
20639   ;
20640   return 0;
20641 }
20642 _ACEOF
20643 rm -f conftest.$ac_objext
20644 if { (ac_try="$ac_compile"
20645 case "(($ac_try" in
20646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647   *) ac_try_echo=$ac_try;;
20648 esac
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650   (eval "$ac_compile") 2>conftest.er1
20651   ac_status=$?
20652   grep -v '^ *+' conftest.er1 >conftest.err
20653   rm -f conftest.er1
20654   cat conftest.err >&5
20655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656   (exit $ac_status); } &&
20657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20658   { (case "(($ac_try" in
20659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660   *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663   (eval "$ac_try") 2>&5
20664   ac_status=$?
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); }; } &&
20667          { ac_try='test -s conftest.$ac_objext'
20668   { (case "(($ac_try" in
20669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670   *) ac_try_echo=$ac_try;;
20671 esac
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673   (eval "$ac_try") 2>&5
20674   ac_status=$?
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); }; }; then
20677   ac_cv_member_struct_ff_effect_direction=yes
20678 else
20679   echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682         cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h.  */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h.  */
20688 #ifdef HAVE_LINUX_INPUT_H
20689 #include <linux/input.h>
20690 #endif
20691
20692 int
20693 main ()
20694 {
20695 static struct ff_effect ac_aggr;
20696 if (sizeof ac_aggr.direction)
20697 return 0;
20698   ;
20699   return 0;
20700 }
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (ac_try="$ac_compile"
20704 case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709   (eval "$ac_compile") 2>conftest.er1
20710   ac_status=$?
20711   grep -v '^ *+' conftest.er1 >conftest.err
20712   rm -f conftest.er1
20713   cat conftest.err >&5
20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); } &&
20716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20717   { (case "(($ac_try" in
20718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719   *) ac_try_echo=$ac_try;;
20720 esac
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722   (eval "$ac_try") 2>&5
20723   ac_status=$?
20724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725   (exit $ac_status); }; } &&
20726          { ac_try='test -s conftest.$ac_objext'
20727   { (case "(($ac_try" in
20728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729   *) ac_try_echo=$ac_try;;
20730 esac
20731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20732   (eval "$ac_try") 2>&5
20733   ac_status=$?
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); }; }; then
20736   ac_cv_member_struct_ff_effect_direction=yes
20737 else
20738   echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20740
20741         ac_cv_member_struct_ff_effect_direction=no
20742 fi
20743
20744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20745 fi
20746
20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20748 fi
20749 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20750 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
20751 if test $ac_cv_member_struct_ff_effect_direction = yes; then
20752
20753 cat >>confdefs.h <<_ACEOF
20754 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20755 _ACEOF
20756
20757
20758 fi
20759
20760
20761 { echo "$as_me:$LINENO: checking for sigaddset" >&5
20762 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
20763 if test "${wine_cv_have_sigaddset+set}" = set; then
20764   echo $ECHO_N "(cached) $ECHO_C" >&6
20765 else
20766   cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h.  */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h.  */
20772 #include <signal.h>
20773 int
20774 main ()
20775 {
20776 sigset_t set; sigaddset(&set,SIGTERM);
20777   ;
20778   return 0;
20779 }
20780 _ACEOF
20781 rm -f conftest.$ac_objext conftest$ac_exeext
20782 if { (ac_try="$ac_link"
20783 case "(($ac_try" in
20784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785   *) ac_try_echo=$ac_try;;
20786 esac
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788   (eval "$ac_link") 2>conftest.er1
20789   ac_status=$?
20790   grep -v '^ *+' conftest.er1 >conftest.err
20791   rm -f conftest.er1
20792   cat conftest.err >&5
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); } &&
20795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20796   { (case "(($ac_try" in
20797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798   *) ac_try_echo=$ac_try;;
20799 esac
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801   (eval "$ac_try") 2>&5
20802   ac_status=$?
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); }; } &&
20805          { ac_try='test -s conftest$ac_exeext'
20806   { (case "(($ac_try" in
20807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808   *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811   (eval "$ac_try") 2>&5
20812   ac_status=$?
20813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); }; }; then
20815   wine_cv_have_sigaddset=yes
20816 else
20817   echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20819
20820         wine_cv_have_sigaddset=no
20821 fi
20822
20823 rm -f core conftest.err conftest.$ac_objext \
20824       conftest$ac_exeext conftest.$ac_ext
20825 fi
20826 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20827 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
20828 if test "$wine_cv_have_sigaddset" = "yes"
20829 then
20830
20831 cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_SIGADDSET 1
20833 _ACEOF
20834
20835 fi
20836
20837
20838 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20839 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
20840 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20841   echo $ECHO_N "(cached) $ECHO_C" >&6
20842 else
20843   cat >conftest.$ac_ext <<_ACEOF
20844 /* confdefs.h.  */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h.  */
20849
20850 #include <netdb.h>
20851
20852 int
20853 main ()
20854 {
20855
20856     char *name=NULL;
20857     struct hostent he;
20858     struct hostent *result;
20859     char *buf=NULL;
20860     int bufsize=0;
20861     int res,errnr;
20862     char *addr=NULL;
20863     int addrlen=0;
20864     int addrtype=0;
20865     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20866     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
20867
20868   ;
20869   return 0;
20870 }
20871 _ACEOF
20872 rm -f conftest.$ac_objext conftest$ac_exeext
20873 if { (ac_try="$ac_link"
20874 case "(($ac_try" in
20875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876   *) ac_try_echo=$ac_try;;
20877 esac
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879   (eval "$ac_link") 2>conftest.er1
20880   ac_status=$?
20881   grep -v '^ *+' conftest.er1 >conftest.err
20882   rm -f conftest.er1
20883   cat conftest.err >&5
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } &&
20886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20887   { (case "(($ac_try" in
20888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889   *) ac_try_echo=$ac_try;;
20890 esac
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892   (eval "$ac_try") 2>&5
20893   ac_status=$?
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); }; } &&
20896          { ac_try='test -s conftest$ac_exeext'
20897   { (case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_try") 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   wine_cv_linux_gethostbyname_r_6=yes
20907 else
20908   echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911         wine_cv_linux_gethostbyname_r_6=no
20912
20913 fi
20914
20915 rm -f core conftest.err conftest.$ac_objext \
20916       conftest$ac_exeext conftest.$ac_ext
20917
20918 fi
20919 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20920 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
20921    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20922    then
20923
20924 cat >>confdefs.h <<\_ACEOF
20925 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
20926 _ACEOF
20927
20928    fi
20929
20930 if test "$ac_cv_header_linux_joystick_h" = "yes"
20931 then
20932    { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20933 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
20934 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20935   echo $ECHO_N "(cached) $ECHO_C" >&6
20936 else
20937   cat >conftest.$ac_ext <<_ACEOF
20938 /* confdefs.h.  */
20939 _ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h.  */
20943
20944         #include <sys/ioctl.h>
20945         #include <linux/joystick.h>
20946
20947         struct js_event blub;
20948         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20949         #error "no 2.2 header"
20950         #endif
20951
20952 int
20953 main ()
20954 {
20955 /*empty*/
20956   ;
20957   return 0;
20958 }
20959 _ACEOF
20960 rm -f conftest.$ac_objext
20961 if { (ac_try="$ac_compile"
20962 case "(($ac_try" in
20963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964   *) ac_try_echo=$ac_try;;
20965 esac
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967   (eval "$ac_compile") 2>conftest.er1
20968   ac_status=$?
20969   grep -v '^ *+' conftest.er1 >conftest.err
20970   rm -f conftest.er1
20971   cat conftest.err >&5
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); } &&
20974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20975   { (case "(($ac_try" in
20976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977   *) ac_try_echo=$ac_try;;
20978 esac
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980   (eval "$ac_try") 2>&5
20981   ac_status=$?
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); }; } &&
20984          { ac_try='test -s conftest.$ac_objext'
20985   { (case "(($ac_try" in
20986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987   *) ac_try_echo=$ac_try;;
20988 esac
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990   (eval "$ac_try") 2>&5
20991   ac_status=$?
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); }; }; then
20994   wine_cv_linux_joystick_22_api=yes
20995 else
20996   echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999         wine_cv_linux_joystick_22_api=no
21000 fi
21001
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003
21004 fi
21005 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
21006 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
21007    if test "$wine_cv_linux_joystick_22_api" = "yes"
21008    then
21009
21010 cat >>confdefs.h <<\_ACEOF
21011 #define HAVE_LINUX_22_JOYSTICK_API 1
21012 _ACEOF
21013
21014    fi
21015 fi
21016
21017
21018 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
21019 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
21020 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
21021   echo $ECHO_N "(cached) $ECHO_C" >&6
21022 else
21023   cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h.  */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h.  */
21029 #include <sys/types.h>
21030 #ifdef HAVE_SYS_PARAM_H
21031 # include <sys/param.h>
21032 #endif
21033 #ifdef HAVE_SYS_MOUNT_H
21034 # include <sys/mount.h>
21035 #endif
21036 #ifdef HAVE_SYS_VFS_H
21037 # include <sys/vfs.h>
21038 #endif
21039 #ifdef HAVE_SYS_STATFS_H
21040 # include <sys/statfs.h>
21041 #endif
21042
21043 int
21044 main ()
21045 {
21046 static struct statfs ac_aggr;
21047 if (ac_aggr.f_bfree)
21048 return 0;
21049   ;
21050   return 0;
21051 }
21052 _ACEOF
21053 rm -f conftest.$ac_objext
21054 if { (ac_try="$ac_compile"
21055 case "(($ac_try" in
21056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057   *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060   (eval "$ac_compile") 2>conftest.er1
21061   ac_status=$?
21062   grep -v '^ *+' conftest.er1 >conftest.err
21063   rm -f conftest.er1
21064   cat conftest.err >&5
21065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066   (exit $ac_status); } &&
21067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21068   { (case "(($ac_try" in
21069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070   *) ac_try_echo=$ac_try;;
21071 esac
21072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073   (eval "$ac_try") 2>&5
21074   ac_status=$?
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); }; } &&
21077          { ac_try='test -s conftest.$ac_objext'
21078   { (case "(($ac_try" in
21079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080   *) ac_try_echo=$ac_try;;
21081 esac
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083   (eval "$ac_try") 2>&5
21084   ac_status=$?
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); }; }; then
21087   ac_cv_member_struct_statfs_f_bfree=yes
21088 else
21089   echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21091
21092         cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21098 #include <sys/types.h>
21099 #ifdef HAVE_SYS_PARAM_H
21100 # include <sys/param.h>
21101 #endif
21102 #ifdef HAVE_SYS_MOUNT_H
21103 # include <sys/mount.h>
21104 #endif
21105 #ifdef HAVE_SYS_VFS_H
21106 # include <sys/vfs.h>
21107 #endif
21108 #ifdef HAVE_SYS_STATFS_H
21109 # include <sys/statfs.h>
21110 #endif
21111
21112 int
21113 main ()
21114 {
21115 static struct statfs ac_aggr;
21116 if (sizeof ac_aggr.f_bfree)
21117 return 0;
21118   ;
21119   return 0;
21120 }
21121 _ACEOF
21122 rm -f conftest.$ac_objext
21123 if { (ac_try="$ac_compile"
21124 case "(($ac_try" in
21125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126   *) ac_try_echo=$ac_try;;
21127 esac
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129   (eval "$ac_compile") 2>conftest.er1
21130   ac_status=$?
21131   grep -v '^ *+' conftest.er1 >conftest.err
21132   rm -f conftest.er1
21133   cat conftest.err >&5
21134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135   (exit $ac_status); } &&
21136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21137   { (case "(($ac_try" in
21138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139   *) ac_try_echo=$ac_try;;
21140 esac
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142   (eval "$ac_try") 2>&5
21143   ac_status=$?
21144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145   (exit $ac_status); }; } &&
21146          { ac_try='test -s conftest.$ac_objext'
21147   { (case "(($ac_try" in
21148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149   *) ac_try_echo=$ac_try;;
21150 esac
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152   (eval "$ac_try") 2>&5
21153   ac_status=$?
21154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); }; }; then
21156   ac_cv_member_struct_statfs_f_bfree=yes
21157 else
21158   echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161         ac_cv_member_struct_statfs_f_bfree=no
21162 fi
21163
21164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21165 fi
21166
21167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21168 fi
21169 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
21170 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
21171 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
21172
21173 cat >>confdefs.h <<_ACEOF
21174 #define HAVE_STRUCT_STATFS_F_BFREE 1
21175 _ACEOF
21176
21177
21178 fi
21179 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
21180 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
21181 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
21182   echo $ECHO_N "(cached) $ECHO_C" >&6
21183 else
21184   cat >conftest.$ac_ext <<_ACEOF
21185 /* confdefs.h.  */
21186 _ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h.  */
21190 #include <sys/types.h>
21191 #ifdef HAVE_SYS_PARAM_H
21192 # include <sys/param.h>
21193 #endif
21194 #ifdef HAVE_SYS_MOUNT_H
21195 # include <sys/mount.h>
21196 #endif
21197 #ifdef HAVE_SYS_VFS_H
21198 # include <sys/vfs.h>
21199 #endif
21200 #ifdef HAVE_SYS_STATFS_H
21201 # include <sys/statfs.h>
21202 #endif
21203
21204 int
21205 main ()
21206 {
21207 static struct statfs ac_aggr;
21208 if (ac_aggr.f_bavail)
21209 return 0;
21210   ;
21211   return 0;
21212 }
21213 _ACEOF
21214 rm -f conftest.$ac_objext
21215 if { (ac_try="$ac_compile"
21216 case "(($ac_try" in
21217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218   *) ac_try_echo=$ac_try;;
21219 esac
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221   (eval "$ac_compile") 2>conftest.er1
21222   ac_status=$?
21223   grep -v '^ *+' conftest.er1 >conftest.err
21224   rm -f conftest.er1
21225   cat conftest.err >&5
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); } &&
21228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21229   { (case "(($ac_try" in
21230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231   *) ac_try_echo=$ac_try;;
21232 esac
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234   (eval "$ac_try") 2>&5
21235   ac_status=$?
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); }; } &&
21238          { ac_try='test -s conftest.$ac_objext'
21239   { (case "(($ac_try" in
21240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241   *) ac_try_echo=$ac_try;;
21242 esac
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244   (eval "$ac_try") 2>&5
21245   ac_status=$?
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); }; }; then
21248   ac_cv_member_struct_statfs_f_bavail=yes
21249 else
21250   echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253         cat >conftest.$ac_ext <<_ACEOF
21254 /* confdefs.h.  */
21255 _ACEOF
21256 cat confdefs.h >>conftest.$ac_ext
21257 cat >>conftest.$ac_ext <<_ACEOF
21258 /* end confdefs.h.  */
21259 #include <sys/types.h>
21260 #ifdef HAVE_SYS_PARAM_H
21261 # include <sys/param.h>
21262 #endif
21263 #ifdef HAVE_SYS_MOUNT_H
21264 # include <sys/mount.h>
21265 #endif
21266 #ifdef HAVE_SYS_VFS_H
21267 # include <sys/vfs.h>
21268 #endif
21269 #ifdef HAVE_SYS_STATFS_H
21270 # include <sys/statfs.h>
21271 #endif
21272
21273 int
21274 main ()
21275 {
21276 static struct statfs ac_aggr;
21277 if (sizeof ac_aggr.f_bavail)
21278 return 0;
21279   ;
21280   return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest.$ac_objext
21284 if { (ac_try="$ac_compile"
21285 case "(($ac_try" in
21286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287   *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290   (eval "$ac_compile") 2>conftest.er1
21291   ac_status=$?
21292   grep -v '^ *+' conftest.er1 >conftest.err
21293   rm -f conftest.er1
21294   cat conftest.err >&5
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); } &&
21297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21298   { (case "(($ac_try" in
21299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300   *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303   (eval "$ac_try") 2>&5
21304   ac_status=$?
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); }; } &&
21307          { ac_try='test -s conftest.$ac_objext'
21308   { (case "(($ac_try" in
21309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310   *) ac_try_echo=$ac_try;;
21311 esac
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313   (eval "$ac_try") 2>&5
21314   ac_status=$?
21315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316   (exit $ac_status); }; }; then
21317   ac_cv_member_struct_statfs_f_bavail=yes
21318 else
21319   echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21321
21322         ac_cv_member_struct_statfs_f_bavail=no
21323 fi
21324
21325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326 fi
21327
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329 fi
21330 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
21331 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
21332 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
21333
21334 cat >>confdefs.h <<_ACEOF
21335 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
21336 _ACEOF
21337
21338
21339 fi
21340 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
21341 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
21342 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
21343   echo $ECHO_N "(cached) $ECHO_C" >&6
21344 else
21345   cat >conftest.$ac_ext <<_ACEOF
21346 /* confdefs.h.  */
21347 _ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h.  */
21351 #include <sys/types.h>
21352 #ifdef HAVE_SYS_PARAM_H
21353 # include <sys/param.h>
21354 #endif
21355 #ifdef HAVE_SYS_MOUNT_H
21356 # include <sys/mount.h>
21357 #endif
21358 #ifdef HAVE_SYS_VFS_H
21359 # include <sys/vfs.h>
21360 #endif
21361 #ifdef HAVE_SYS_STATFS_H
21362 # include <sys/statfs.h>
21363 #endif
21364
21365 int
21366 main ()
21367 {
21368 static struct statfs ac_aggr;
21369 if (ac_aggr.f_frsize)
21370 return 0;
21371   ;
21372   return 0;
21373 }
21374 _ACEOF
21375 rm -f conftest.$ac_objext
21376 if { (ac_try="$ac_compile"
21377 case "(($ac_try" in
21378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379   *) ac_try_echo=$ac_try;;
21380 esac
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382   (eval "$ac_compile") 2>conftest.er1
21383   ac_status=$?
21384   grep -v '^ *+' conftest.er1 >conftest.err
21385   rm -f conftest.er1
21386   cat conftest.err >&5
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); } &&
21389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21390   { (case "(($ac_try" in
21391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392   *) ac_try_echo=$ac_try;;
21393 esac
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395   (eval "$ac_try") 2>&5
21396   ac_status=$?
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); }; } &&
21399          { ac_try='test -s conftest.$ac_objext'
21400   { (case "(($ac_try" in
21401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402   *) ac_try_echo=$ac_try;;
21403 esac
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405   (eval "$ac_try") 2>&5
21406   ac_status=$?
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); }; }; then
21409   ac_cv_member_struct_statfs_f_frsize=yes
21410 else
21411   echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21413
21414         cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h.  */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h.  */
21420 #include <sys/types.h>
21421 #ifdef HAVE_SYS_PARAM_H
21422 # include <sys/param.h>
21423 #endif
21424 #ifdef HAVE_SYS_MOUNT_H
21425 # include <sys/mount.h>
21426 #endif
21427 #ifdef HAVE_SYS_VFS_H
21428 # include <sys/vfs.h>
21429 #endif
21430 #ifdef HAVE_SYS_STATFS_H
21431 # include <sys/statfs.h>
21432 #endif
21433
21434 int
21435 main ()
21436 {
21437 static struct statfs ac_aggr;
21438 if (sizeof ac_aggr.f_frsize)
21439 return 0;
21440   ;
21441   return 0;
21442 }
21443 _ACEOF
21444 rm -f conftest.$ac_objext
21445 if { (ac_try="$ac_compile"
21446 case "(($ac_try" in
21447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448   *) ac_try_echo=$ac_try;;
21449 esac
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451   (eval "$ac_compile") 2>conftest.er1
21452   ac_status=$?
21453   grep -v '^ *+' conftest.er1 >conftest.err
21454   rm -f conftest.er1
21455   cat conftest.err >&5
21456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); } &&
21458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21459   { (case "(($ac_try" in
21460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21461   *) ac_try_echo=$ac_try;;
21462 esac
21463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21464   (eval "$ac_try") 2>&5
21465   ac_status=$?
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); }; } &&
21468          { ac_try='test -s conftest.$ac_objext'
21469   { (case "(($ac_try" in
21470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471   *) ac_try_echo=$ac_try;;
21472 esac
21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474   (eval "$ac_try") 2>&5
21475   ac_status=$?
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); }; }; then
21478   ac_cv_member_struct_statfs_f_frsize=yes
21479 else
21480   echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21482
21483         ac_cv_member_struct_statfs_f_frsize=no
21484 fi
21485
21486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21487 fi
21488
21489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21490 fi
21491 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
21492 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
21493 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
21494
21495 cat >>confdefs.h <<_ACEOF
21496 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
21497 _ACEOF
21498
21499
21500 fi
21501 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
21502 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
21503 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
21504   echo $ECHO_N "(cached) $ECHO_C" >&6
21505 else
21506   cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 #include <sys/types.h>
21513 #ifdef HAVE_SYS_PARAM_H
21514 # include <sys/param.h>
21515 #endif
21516 #ifdef HAVE_SYS_MOUNT_H
21517 # include <sys/mount.h>
21518 #endif
21519 #ifdef HAVE_SYS_VFS_H
21520 # include <sys/vfs.h>
21521 #endif
21522 #ifdef HAVE_SYS_STATFS_H
21523 # include <sys/statfs.h>
21524 #endif
21525
21526 int
21527 main ()
21528 {
21529 static struct statfs ac_aggr;
21530 if (ac_aggr.f_ffree)
21531 return 0;
21532   ;
21533   return 0;
21534 }
21535 _ACEOF
21536 rm -f conftest.$ac_objext
21537 if { (ac_try="$ac_compile"
21538 case "(($ac_try" in
21539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540   *) ac_try_echo=$ac_try;;
21541 esac
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543   (eval "$ac_compile") 2>conftest.er1
21544   ac_status=$?
21545   grep -v '^ *+' conftest.er1 >conftest.err
21546   rm -f conftest.er1
21547   cat conftest.err >&5
21548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549   (exit $ac_status); } &&
21550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21551   { (case "(($ac_try" in
21552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21553   *) ac_try_echo=$ac_try;;
21554 esac
21555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21556   (eval "$ac_try") 2>&5
21557   ac_status=$?
21558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559   (exit $ac_status); }; } &&
21560          { ac_try='test -s conftest.$ac_objext'
21561   { (case "(($ac_try" in
21562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563   *) ac_try_echo=$ac_try;;
21564 esac
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566   (eval "$ac_try") 2>&5
21567   ac_status=$?
21568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569   (exit $ac_status); }; }; then
21570   ac_cv_member_struct_statfs_f_ffree=yes
21571 else
21572   echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21574
21575         cat >conftest.$ac_ext <<_ACEOF
21576 /* confdefs.h.  */
21577 _ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h.  */
21581 #include <sys/types.h>
21582 #ifdef HAVE_SYS_PARAM_H
21583 # include <sys/param.h>
21584 #endif
21585 #ifdef HAVE_SYS_MOUNT_H
21586 # include <sys/mount.h>
21587 #endif
21588 #ifdef HAVE_SYS_VFS_H
21589 # include <sys/vfs.h>
21590 #endif
21591 #ifdef HAVE_SYS_STATFS_H
21592 # include <sys/statfs.h>
21593 #endif
21594
21595 int
21596 main ()
21597 {
21598 static struct statfs ac_aggr;
21599 if (sizeof ac_aggr.f_ffree)
21600 return 0;
21601   ;
21602   return 0;
21603 }
21604 _ACEOF
21605 rm -f conftest.$ac_objext
21606 if { (ac_try="$ac_compile"
21607 case "(($ac_try" in
21608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609   *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612   (eval "$ac_compile") 2>conftest.er1
21613   ac_status=$?
21614   grep -v '^ *+' conftest.er1 >conftest.err
21615   rm -f conftest.er1
21616   cat conftest.err >&5
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); } &&
21619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21620   { (case "(($ac_try" in
21621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622   *) ac_try_echo=$ac_try;;
21623 esac
21624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21625   (eval "$ac_try") 2>&5
21626   ac_status=$?
21627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628   (exit $ac_status); }; } &&
21629          { ac_try='test -s conftest.$ac_objext'
21630   { (case "(($ac_try" in
21631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632   *) ac_try_echo=$ac_try;;
21633 esac
21634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635   (eval "$ac_try") 2>&5
21636   ac_status=$?
21637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638   (exit $ac_status); }; }; then
21639   ac_cv_member_struct_statfs_f_ffree=yes
21640 else
21641   echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21643
21644         ac_cv_member_struct_statfs_f_ffree=no
21645 fi
21646
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 fi
21649
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651 fi
21652 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21653 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
21654 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21655
21656 cat >>confdefs.h <<_ACEOF
21657 #define HAVE_STRUCT_STATFS_F_FFREE 1
21658 _ACEOF
21659
21660
21661 fi
21662 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21663 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
21664 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21665   echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667   cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h.  */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h.  */
21673 #include <sys/types.h>
21674 #ifdef HAVE_SYS_PARAM_H
21675 # include <sys/param.h>
21676 #endif
21677 #ifdef HAVE_SYS_MOUNT_H
21678 # include <sys/mount.h>
21679 #endif
21680 #ifdef HAVE_SYS_VFS_H
21681 # include <sys/vfs.h>
21682 #endif
21683 #ifdef HAVE_SYS_STATFS_H
21684 # include <sys/statfs.h>
21685 #endif
21686
21687 int
21688 main ()
21689 {
21690 static struct statfs ac_aggr;
21691 if (ac_aggr.f_favail)
21692 return 0;
21693   ;
21694   return 0;
21695 }
21696 _ACEOF
21697 rm -f conftest.$ac_objext
21698 if { (ac_try="$ac_compile"
21699 case "(($ac_try" in
21700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701   *) ac_try_echo=$ac_try;;
21702 esac
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704   (eval "$ac_compile") 2>conftest.er1
21705   ac_status=$?
21706   grep -v '^ *+' conftest.er1 >conftest.err
21707   rm -f conftest.er1
21708   cat conftest.err >&5
21709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710   (exit $ac_status); } &&
21711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21712   { (case "(($ac_try" in
21713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714   *) ac_try_echo=$ac_try;;
21715 esac
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717   (eval "$ac_try") 2>&5
21718   ac_status=$?
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); }; } &&
21721          { ac_try='test -s conftest.$ac_objext'
21722   { (case "(($ac_try" in
21723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21724   *) ac_try_echo=$ac_try;;
21725 esac
21726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21727   (eval "$ac_try") 2>&5
21728   ac_status=$?
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); }; }; then
21731   ac_cv_member_struct_statfs_f_favail=yes
21732 else
21733   echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736         cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h.  */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h.  */
21742 #include <sys/types.h>
21743 #ifdef HAVE_SYS_PARAM_H
21744 # include <sys/param.h>
21745 #endif
21746 #ifdef HAVE_SYS_MOUNT_H
21747 # include <sys/mount.h>
21748 #endif
21749 #ifdef HAVE_SYS_VFS_H
21750 # include <sys/vfs.h>
21751 #endif
21752 #ifdef HAVE_SYS_STATFS_H
21753 # include <sys/statfs.h>
21754 #endif
21755
21756 int
21757 main ()
21758 {
21759 static struct statfs ac_aggr;
21760 if (sizeof ac_aggr.f_favail)
21761 return 0;
21762   ;
21763   return 0;
21764 }
21765 _ACEOF
21766 rm -f conftest.$ac_objext
21767 if { (ac_try="$ac_compile"
21768 case "(($ac_try" in
21769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770   *) ac_try_echo=$ac_try;;
21771 esac
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773   (eval "$ac_compile") 2>conftest.er1
21774   ac_status=$?
21775   grep -v '^ *+' conftest.er1 >conftest.err
21776   rm -f conftest.er1
21777   cat conftest.err >&5
21778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779   (exit $ac_status); } &&
21780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21781   { (case "(($ac_try" in
21782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783   *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786   (eval "$ac_try") 2>&5
21787   ac_status=$?
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); }; } &&
21790          { ac_try='test -s conftest.$ac_objext'
21791   { (case "(($ac_try" in
21792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793   *) ac_try_echo=$ac_try;;
21794 esac
21795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796   (eval "$ac_try") 2>&5
21797   ac_status=$?
21798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); }; }; then
21800   ac_cv_member_struct_statfs_f_favail=yes
21801 else
21802   echo "$as_me: failed program was:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21804
21805         ac_cv_member_struct_statfs_f_favail=no
21806 fi
21807
21808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21809 fi
21810
21811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21812 fi
21813 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21814 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
21815 if test $ac_cv_member_struct_statfs_f_favail = yes; then
21816
21817 cat >>confdefs.h <<_ACEOF
21818 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
21819 _ACEOF
21820
21821
21822 fi
21823 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21824 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
21825 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21826   echo $ECHO_N "(cached) $ECHO_C" >&6
21827 else
21828   cat >conftest.$ac_ext <<_ACEOF
21829 /* confdefs.h.  */
21830 _ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h.  */
21834 #include <sys/types.h>
21835 #ifdef HAVE_SYS_PARAM_H
21836 # include <sys/param.h>
21837 #endif
21838 #ifdef HAVE_SYS_MOUNT_H
21839 # include <sys/mount.h>
21840 #endif
21841 #ifdef HAVE_SYS_VFS_H
21842 # include <sys/vfs.h>
21843 #endif
21844 #ifdef HAVE_SYS_STATFS_H
21845 # include <sys/statfs.h>
21846 #endif
21847
21848 int
21849 main ()
21850 {
21851 static struct statfs ac_aggr;
21852 if (ac_aggr.f_namelen)
21853 return 0;
21854   ;
21855   return 0;
21856 }
21857 _ACEOF
21858 rm -f conftest.$ac_objext
21859 if { (ac_try="$ac_compile"
21860 case "(($ac_try" in
21861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862   *) ac_try_echo=$ac_try;;
21863 esac
21864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21865   (eval "$ac_compile") 2>conftest.er1
21866   ac_status=$?
21867   grep -v '^ *+' conftest.er1 >conftest.err
21868   rm -f conftest.er1
21869   cat conftest.err >&5
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); } &&
21872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21873   { (case "(($ac_try" in
21874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875   *) ac_try_echo=$ac_try;;
21876 esac
21877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21878   (eval "$ac_try") 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; } &&
21882          { ac_try='test -s conftest.$ac_objext'
21883   { (case "(($ac_try" in
21884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885   *) ac_try_echo=$ac_try;;
21886 esac
21887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21888   (eval "$ac_try") 2>&5
21889   ac_status=$?
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); }; }; then
21892   ac_cv_member_struct_statfs_f_namelen=yes
21893 else
21894   echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21896
21897         cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h.  */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h.  */
21903 #include <sys/types.h>
21904 #ifdef HAVE_SYS_PARAM_H
21905 # include <sys/param.h>
21906 #endif
21907 #ifdef HAVE_SYS_MOUNT_H
21908 # include <sys/mount.h>
21909 #endif
21910 #ifdef HAVE_SYS_VFS_H
21911 # include <sys/vfs.h>
21912 #endif
21913 #ifdef HAVE_SYS_STATFS_H
21914 # include <sys/statfs.h>
21915 #endif
21916
21917 int
21918 main ()
21919 {
21920 static struct statfs ac_aggr;
21921 if (sizeof ac_aggr.f_namelen)
21922 return 0;
21923   ;
21924   return 0;
21925 }
21926 _ACEOF
21927 rm -f conftest.$ac_objext
21928 if { (ac_try="$ac_compile"
21929 case "(($ac_try" in
21930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931   *) ac_try_echo=$ac_try;;
21932 esac
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934   (eval "$ac_compile") 2>conftest.er1
21935   ac_status=$?
21936   grep -v '^ *+' conftest.er1 >conftest.err
21937   rm -f conftest.er1
21938   cat conftest.err >&5
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); } &&
21941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21942   { (case "(($ac_try" in
21943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944   *) ac_try_echo=$ac_try;;
21945 esac
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947   (eval "$ac_try") 2>&5
21948   ac_status=$?
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); }; } &&
21951          { ac_try='test -s conftest.$ac_objext'
21952   { (case "(($ac_try" in
21953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954   *) ac_try_echo=$ac_try;;
21955 esac
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957   (eval "$ac_try") 2>&5
21958   ac_status=$?
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); }; }; then
21961   ac_cv_member_struct_statfs_f_namelen=yes
21962 else
21963   echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21965
21966         ac_cv_member_struct_statfs_f_namelen=no
21967 fi
21968
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970 fi
21971
21972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973 fi
21974 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21975 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
21976 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21977
21978 cat >>confdefs.h <<_ACEOF
21979 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
21980 _ACEOF
21981
21982
21983 fi
21984
21985
21986 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21987 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
21988 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21989   echo $ECHO_N "(cached) $ECHO_C" >&6
21990 else
21991   cat >conftest.$ac_ext <<_ACEOF
21992 /* confdefs.h.  */
21993 _ACEOF
21994 cat confdefs.h >>conftest.$ac_ext
21995 cat >>conftest.$ac_ext <<_ACEOF
21996 /* end confdefs.h.  */
21997 #ifdef HAVE_SYS_STATVFS_H
21998 #include <sys/statvfs.h>
21999 #endif
22000
22001 int
22002 main ()
22003 {
22004 static struct statvfs ac_aggr;
22005 if (ac_aggr.f_blocks)
22006 return 0;
22007   ;
22008   return 0;
22009 }
22010 _ACEOF
22011 rm -f conftest.$ac_objext
22012 if { (ac_try="$ac_compile"
22013 case "(($ac_try" in
22014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015   *) ac_try_echo=$ac_try;;
22016 esac
22017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018   (eval "$ac_compile") 2>conftest.er1
22019   ac_status=$?
22020   grep -v '^ *+' conftest.er1 >conftest.err
22021   rm -f conftest.er1
22022   cat conftest.err >&5
22023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024   (exit $ac_status); } &&
22025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22026   { (case "(($ac_try" in
22027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028   *) ac_try_echo=$ac_try;;
22029 esac
22030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031   (eval "$ac_try") 2>&5
22032   ac_status=$?
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); }; } &&
22035          { ac_try='test -s conftest.$ac_objext'
22036   { (case "(($ac_try" in
22037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038   *) ac_try_echo=$ac_try;;
22039 esac
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041   (eval "$ac_try") 2>&5
22042   ac_status=$?
22043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044   (exit $ac_status); }; }; then
22045   ac_cv_member_struct_statvfs_f_blocks=yes
22046 else
22047   echo "$as_me: failed program was:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22049
22050         cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h.  */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h.  */
22056 #ifdef HAVE_SYS_STATVFS_H
22057 #include <sys/statvfs.h>
22058 #endif
22059
22060 int
22061 main ()
22062 {
22063 static struct statvfs ac_aggr;
22064 if (sizeof ac_aggr.f_blocks)
22065 return 0;
22066   ;
22067   return 0;
22068 }
22069 _ACEOF
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074   *) ac_try_echo=$ac_try;;
22075 esac
22076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22077   (eval "$ac_compile") 2>conftest.er1
22078   ac_status=$?
22079   grep -v '^ *+' conftest.er1 >conftest.err
22080   rm -f conftest.er1
22081   cat conftest.err >&5
22082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083   (exit $ac_status); } &&
22084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22085   { (case "(($ac_try" in
22086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087   *) ac_try_echo=$ac_try;;
22088 esac
22089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22090   (eval "$ac_try") 2>&5
22091   ac_status=$?
22092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093   (exit $ac_status); }; } &&
22094          { ac_try='test -s conftest.$ac_objext'
22095   { (case "(($ac_try" in
22096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097   *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100   (eval "$ac_try") 2>&5
22101   ac_status=$?
22102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103   (exit $ac_status); }; }; then
22104   ac_cv_member_struct_statvfs_f_blocks=yes
22105 else
22106   echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22108
22109         ac_cv_member_struct_statvfs_f_blocks=no
22110 fi
22111
22112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22113 fi
22114
22115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116 fi
22117 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
22118 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
22119 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
22120
22121 cat >>confdefs.h <<_ACEOF
22122 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
22123 _ACEOF
22124
22125
22126 fi
22127
22128
22129 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
22130 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
22131 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
22132   echo $ECHO_N "(cached) $ECHO_C" >&6
22133 else
22134   cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h.  */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h.  */
22140 #include <sys/types.h>
22141 #ifdef HAVE_SYS_SOCKET_H
22142 # include <sys/socket.h>
22143 #endif
22144 #ifdef HAVE_SYS_UN_H
22145 # include <sys/un.h>
22146 #endif
22147
22148 int
22149 main ()
22150 {
22151 static struct msghdr ac_aggr;
22152 if (ac_aggr.msg_accrights)
22153 return 0;
22154   ;
22155   return 0;
22156 }
22157 _ACEOF
22158 rm -f conftest.$ac_objext
22159 if { (ac_try="$ac_compile"
22160 case "(($ac_try" in
22161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162   *) ac_try_echo=$ac_try;;
22163 esac
22164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22165   (eval "$ac_compile") 2>conftest.er1
22166   ac_status=$?
22167   grep -v '^ *+' conftest.er1 >conftest.err
22168   rm -f conftest.er1
22169   cat conftest.err >&5
22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); } &&
22172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22173   { (case "(($ac_try" in
22174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175   *) ac_try_echo=$ac_try;;
22176 esac
22177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178   (eval "$ac_try") 2>&5
22179   ac_status=$?
22180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181   (exit $ac_status); }; } &&
22182          { ac_try='test -s conftest.$ac_objext'
22183   { (case "(($ac_try" in
22184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185   *) ac_try_echo=$ac_try;;
22186 esac
22187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22188   (eval "$ac_try") 2>&5
22189   ac_status=$?
22190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191   (exit $ac_status); }; }; then
22192   ac_cv_member_struct_msghdr_msg_accrights=yes
22193 else
22194   echo "$as_me: failed program was:" >&5
22195 sed 's/^/| /' conftest.$ac_ext >&5
22196
22197         cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h.  */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h.  */
22203 #include <sys/types.h>
22204 #ifdef HAVE_SYS_SOCKET_H
22205 # include <sys/socket.h>
22206 #endif
22207 #ifdef HAVE_SYS_UN_H
22208 # include <sys/un.h>
22209 #endif
22210
22211 int
22212 main ()
22213 {
22214 static struct msghdr ac_aggr;
22215 if (sizeof ac_aggr.msg_accrights)
22216 return 0;
22217   ;
22218   return 0;
22219 }
22220 _ACEOF
22221 rm -f conftest.$ac_objext
22222 if { (ac_try="$ac_compile"
22223 case "(($ac_try" in
22224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22225   *) ac_try_echo=$ac_try;;
22226 esac
22227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22228   (eval "$ac_compile") 2>conftest.er1
22229   ac_status=$?
22230   grep -v '^ *+' conftest.er1 >conftest.err
22231   rm -f conftest.er1
22232   cat conftest.err >&5
22233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234   (exit $ac_status); } &&
22235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22236   { (case "(($ac_try" in
22237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238   *) ac_try_echo=$ac_try;;
22239 esac
22240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241   (eval "$ac_try") 2>&5
22242   ac_status=$?
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); }; } &&
22245          { ac_try='test -s conftest.$ac_objext'
22246   { (case "(($ac_try" in
22247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248   *) ac_try_echo=$ac_try;;
22249 esac
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251   (eval "$ac_try") 2>&5
22252   ac_status=$?
22253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254   (exit $ac_status); }; }; then
22255   ac_cv_member_struct_msghdr_msg_accrights=yes
22256 else
22257   echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22259
22260         ac_cv_member_struct_msghdr_msg_accrights=no
22261 fi
22262
22263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 fi
22265
22266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22267 fi
22268 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
22269 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
22270 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
22271
22272 cat >>confdefs.h <<_ACEOF
22273 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
22274 _ACEOF
22275
22276
22277 fi
22278 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22279 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
22280 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22281   echo $ECHO_N "(cached) $ECHO_C" >&6
22282 else
22283   cat >conftest.$ac_ext <<_ACEOF
22284 /* confdefs.h.  */
22285 _ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h.  */
22289 #include <sys/types.h>
22290 #ifdef HAVE_SYS_SOCKET_H
22291 # include <sys/socket.h>
22292 #endif
22293 #ifdef HAVE_SYS_UN_H
22294 # include <sys/un.h>
22295 #endif
22296
22297 int
22298 main ()
22299 {
22300 static struct sockaddr ac_aggr;
22301 if (ac_aggr.sa_len)
22302 return 0;
22303   ;
22304   return 0;
22305 }
22306 _ACEOF
22307 rm -f conftest.$ac_objext
22308 if { (ac_try="$ac_compile"
22309 case "(($ac_try" in
22310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311   *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314   (eval "$ac_compile") 2>conftest.er1
22315   ac_status=$?
22316   grep -v '^ *+' conftest.er1 >conftest.err
22317   rm -f conftest.er1
22318   cat conftest.err >&5
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); } &&
22321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22322   { (case "(($ac_try" in
22323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324   *) ac_try_echo=$ac_try;;
22325 esac
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327   (eval "$ac_try") 2>&5
22328   ac_status=$?
22329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330   (exit $ac_status); }; } &&
22331          { ac_try='test -s conftest.$ac_objext'
22332   { (case "(($ac_try" in
22333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334   *) ac_try_echo=$ac_try;;
22335 esac
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337   (eval "$ac_try") 2>&5
22338   ac_status=$?
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); }; }; then
22341   ac_cv_member_struct_sockaddr_sa_len=yes
22342 else
22343   echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22345
22346         cat >conftest.$ac_ext <<_ACEOF
22347 /* confdefs.h.  */
22348 _ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h.  */
22352 #include <sys/types.h>
22353 #ifdef HAVE_SYS_SOCKET_H
22354 # include <sys/socket.h>
22355 #endif
22356 #ifdef HAVE_SYS_UN_H
22357 # include <sys/un.h>
22358 #endif
22359
22360 int
22361 main ()
22362 {
22363 static struct sockaddr ac_aggr;
22364 if (sizeof ac_aggr.sa_len)
22365 return 0;
22366   ;
22367   return 0;
22368 }
22369 _ACEOF
22370 rm -f conftest.$ac_objext
22371 if { (ac_try="$ac_compile"
22372 case "(($ac_try" in
22373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374   *) ac_try_echo=$ac_try;;
22375 esac
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377   (eval "$ac_compile") 2>conftest.er1
22378   ac_status=$?
22379   grep -v '^ *+' conftest.er1 >conftest.err
22380   rm -f conftest.er1
22381   cat conftest.err >&5
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); } &&
22384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22385   { (case "(($ac_try" in
22386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22387   *) ac_try_echo=$ac_try;;
22388 esac
22389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22390   (eval "$ac_try") 2>&5
22391   ac_status=$?
22392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); }; } &&
22394          { ac_try='test -s conftest.$ac_objext'
22395   { (case "(($ac_try" in
22396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397   *) ac_try_echo=$ac_try;;
22398 esac
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400   (eval "$ac_try") 2>&5
22401   ac_status=$?
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); }; }; then
22404   ac_cv_member_struct_sockaddr_sa_len=yes
22405 else
22406   echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22408
22409         ac_cv_member_struct_sockaddr_sa_len=no
22410 fi
22411
22412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 fi
22414
22415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22416 fi
22417 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22418 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22419 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22420
22421 cat >>confdefs.h <<_ACEOF
22422 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22423 _ACEOF
22424
22425
22426 fi
22427 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
22428 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
22429 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
22430   echo $ECHO_N "(cached) $ECHO_C" >&6
22431 else
22432   cat >conftest.$ac_ext <<_ACEOF
22433 /* confdefs.h.  */
22434 _ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h.  */
22438 #include <sys/types.h>
22439 #ifdef HAVE_SYS_SOCKET_H
22440 # include <sys/socket.h>
22441 #endif
22442 #ifdef HAVE_SYS_UN_H
22443 # include <sys/un.h>
22444 #endif
22445
22446 int
22447 main ()
22448 {
22449 static struct sockaddr_un ac_aggr;
22450 if (ac_aggr.sun_len)
22451 return 0;
22452   ;
22453   return 0;
22454 }
22455 _ACEOF
22456 rm -f conftest.$ac_objext
22457 if { (ac_try="$ac_compile"
22458 case "(($ac_try" in
22459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460   *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463   (eval "$ac_compile") 2>conftest.er1
22464   ac_status=$?
22465   grep -v '^ *+' conftest.er1 >conftest.err
22466   rm -f conftest.er1
22467   cat conftest.err >&5
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); } &&
22470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22471   { (case "(($ac_try" in
22472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473   *) ac_try_echo=$ac_try;;
22474 esac
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476   (eval "$ac_try") 2>&5
22477   ac_status=$?
22478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479   (exit $ac_status); }; } &&
22480          { ac_try='test -s conftest.$ac_objext'
22481   { (case "(($ac_try" in
22482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483   *) ac_try_echo=$ac_try;;
22484 esac
22485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22486   (eval "$ac_try") 2>&5
22487   ac_status=$?
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); }; }; then
22490   ac_cv_member_struct_sockaddr_un_sun_len=yes
22491 else
22492   echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22494
22495         cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h.  */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h.  */
22501 #include <sys/types.h>
22502 #ifdef HAVE_SYS_SOCKET_H
22503 # include <sys/socket.h>
22504 #endif
22505 #ifdef HAVE_SYS_UN_H
22506 # include <sys/un.h>
22507 #endif
22508
22509 int
22510 main ()
22511 {
22512 static struct sockaddr_un ac_aggr;
22513 if (sizeof ac_aggr.sun_len)
22514 return 0;
22515   ;
22516   return 0;
22517 }
22518 _ACEOF
22519 rm -f conftest.$ac_objext
22520 if { (ac_try="$ac_compile"
22521 case "(($ac_try" in
22522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523   *) ac_try_echo=$ac_try;;
22524 esac
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526   (eval "$ac_compile") 2>conftest.er1
22527   ac_status=$?
22528   grep -v '^ *+' conftest.er1 >conftest.err
22529   rm -f conftest.er1
22530   cat conftest.err >&5
22531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532   (exit $ac_status); } &&
22533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22534   { (case "(($ac_try" in
22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536   *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539   (eval "$ac_try") 2>&5
22540   ac_status=$?
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); }; } &&
22543          { ac_try='test -s conftest.$ac_objext'
22544   { (case "(($ac_try" in
22545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546   *) ac_try_echo=$ac_try;;
22547 esac
22548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22549   (eval "$ac_try") 2>&5
22550   ac_status=$?
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); }; }; then
22553   ac_cv_member_struct_sockaddr_un_sun_len=yes
22554 else
22555   echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22557
22558         ac_cv_member_struct_sockaddr_un_sun_len=no
22559 fi
22560
22561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22562 fi
22563
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 fi
22566 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
22567 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
22568 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
22569
22570 cat >>confdefs.h <<_ACEOF
22571 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22572 _ACEOF
22573
22574
22575 fi
22576
22577
22578 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
22579 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
22580 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
22581   echo $ECHO_N "(cached) $ECHO_C" >&6
22582 else
22583   cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589 #include <sys/types.h>
22590 #ifdef HAVE_SCSI_SG_H
22591 #include <scsi/sg.h>
22592 #endif
22593
22594 int
22595 main ()
22596 {
22597 static scsireq_t ac_aggr;
22598 if (ac_aggr.cmd)
22599 return 0;
22600   ;
22601   return 0;
22602 }
22603 _ACEOF
22604 rm -f conftest.$ac_objext
22605 if { (ac_try="$ac_compile"
22606 case "(($ac_try" in
22607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22608   *) ac_try_echo=$ac_try;;
22609 esac
22610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22611   (eval "$ac_compile") 2>conftest.er1
22612   ac_status=$?
22613   grep -v '^ *+' conftest.er1 >conftest.err
22614   rm -f conftest.er1
22615   cat conftest.err >&5
22616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617   (exit $ac_status); } &&
22618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22619   { (case "(($ac_try" in
22620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621   *) ac_try_echo=$ac_try;;
22622 esac
22623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624   (eval "$ac_try") 2>&5
22625   ac_status=$?
22626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627   (exit $ac_status); }; } &&
22628          { ac_try='test -s conftest.$ac_objext'
22629   { (case "(($ac_try" in
22630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631   *) ac_try_echo=$ac_try;;
22632 esac
22633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634   (eval "$ac_try") 2>&5
22635   ac_status=$?
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); }; }; then
22638   ac_cv_member_scsireq_t_cmd=yes
22639 else
22640   echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22642
22643         cat >conftest.$ac_ext <<_ACEOF
22644 /* confdefs.h.  */
22645 _ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h.  */
22649 #include <sys/types.h>
22650 #ifdef HAVE_SCSI_SG_H
22651 #include <scsi/sg.h>
22652 #endif
22653
22654 int
22655 main ()
22656 {
22657 static scsireq_t ac_aggr;
22658 if (sizeof ac_aggr.cmd)
22659 return 0;
22660   ;
22661   return 0;
22662 }
22663 _ACEOF
22664 rm -f conftest.$ac_objext
22665 if { (ac_try="$ac_compile"
22666 case "(($ac_try" in
22667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668   *) ac_try_echo=$ac_try;;
22669 esac
22670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22671   (eval "$ac_compile") 2>conftest.er1
22672   ac_status=$?
22673   grep -v '^ *+' conftest.er1 >conftest.err
22674   rm -f conftest.er1
22675   cat conftest.err >&5
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); } &&
22678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22679   { (case "(($ac_try" in
22680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681   *) ac_try_echo=$ac_try;;
22682 esac
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684   (eval "$ac_try") 2>&5
22685   ac_status=$?
22686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687   (exit $ac_status); }; } &&
22688          { ac_try='test -s conftest.$ac_objext'
22689   { (case "(($ac_try" in
22690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22691   *) ac_try_echo=$ac_try;;
22692 esac
22693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22694   (eval "$ac_try") 2>&5
22695   ac_status=$?
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); }; }; then
22698   ac_cv_member_scsireq_t_cmd=yes
22699 else
22700   echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22702
22703         ac_cv_member_scsireq_t_cmd=no
22704 fi
22705
22706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22707 fi
22708
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 fi
22711 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22712 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
22713 if test $ac_cv_member_scsireq_t_cmd = yes; then
22714
22715 cat >>confdefs.h <<_ACEOF
22716 #define HAVE_SCSIREQ_T_CMD 1
22717 _ACEOF
22718
22719
22720 fi
22721 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22722 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
22723 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22724   echo $ECHO_N "(cached) $ECHO_C" >&6
22725 else
22726   cat >conftest.$ac_ext <<_ACEOF
22727 /* confdefs.h.  */
22728 _ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h.  */
22732 #include <sys/types.h>
22733 #ifdef HAVE_SCSI_SG_H
22734 #include <scsi/sg.h>
22735 #endif
22736
22737 int
22738 main ()
22739 {
22740 static sg_io_hdr_t ac_aggr;
22741 if (ac_aggr.interface_id)
22742 return 0;
22743   ;
22744   return 0;
22745 }
22746 _ACEOF
22747 rm -f conftest.$ac_objext
22748 if { (ac_try="$ac_compile"
22749 case "(($ac_try" in
22750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751   *) ac_try_echo=$ac_try;;
22752 esac
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754   (eval "$ac_compile") 2>conftest.er1
22755   ac_status=$?
22756   grep -v '^ *+' conftest.er1 >conftest.err
22757   rm -f conftest.er1
22758   cat conftest.err >&5
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); } &&
22761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
22768   ac_status=$?
22769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770   (exit $ac_status); }; } &&
22771          { ac_try='test -s conftest.$ac_objext'
22772   { (case "(($ac_try" in
22773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774   *) ac_try_echo=$ac_try;;
22775 esac
22776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22777   (eval "$ac_try") 2>&5
22778   ac_status=$?
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); }; }; then
22781   ac_cv_member_sg_io_hdr_t_interface_id=yes
22782 else
22783   echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22785
22786         cat >conftest.$ac_ext <<_ACEOF
22787 /* confdefs.h.  */
22788 _ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h.  */
22792 #include <sys/types.h>
22793 #ifdef HAVE_SCSI_SG_H
22794 #include <scsi/sg.h>
22795 #endif
22796
22797 int
22798 main ()
22799 {
22800 static sg_io_hdr_t ac_aggr;
22801 if (sizeof ac_aggr.interface_id)
22802 return 0;
22803   ;
22804   return 0;
22805 }
22806 _ACEOF
22807 rm -f conftest.$ac_objext
22808 if { (ac_try="$ac_compile"
22809 case "(($ac_try" in
22810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811   *) ac_try_echo=$ac_try;;
22812 esac
22813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22814   (eval "$ac_compile") 2>conftest.er1
22815   ac_status=$?
22816   grep -v '^ *+' conftest.er1 >conftest.err
22817   rm -f conftest.er1
22818   cat conftest.err >&5
22819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820   (exit $ac_status); } &&
22821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22822   { (case "(($ac_try" in
22823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824   *) ac_try_echo=$ac_try;;
22825 esac
22826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22827   (eval "$ac_try") 2>&5
22828   ac_status=$?
22829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830   (exit $ac_status); }; } &&
22831          { ac_try='test -s conftest.$ac_objext'
22832   { (case "(($ac_try" in
22833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834   *) ac_try_echo=$ac_try;;
22835 esac
22836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22837   (eval "$ac_try") 2>&5
22838   ac_status=$?
22839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840   (exit $ac_status); }; }; then
22841   ac_cv_member_sg_io_hdr_t_interface_id=yes
22842 else
22843   echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22845
22846         ac_cv_member_sg_io_hdr_t_interface_id=no
22847 fi
22848
22849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22850 fi
22851
22852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22853 fi
22854 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22855 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
22856 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22857
22858 cat >>confdefs.h <<_ACEOF
22859 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22860 _ACEOF
22861
22862
22863 fi
22864
22865
22866 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22867 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
22868 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22869   echo $ECHO_N "(cached) $ECHO_C" >&6
22870 else
22871   cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h.  */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h.  */
22877 #include <signal.h>
22878
22879 int
22880 main ()
22881 {
22882 static siginfo_t ac_aggr;
22883 if (ac_aggr.si_fd)
22884 return 0;
22885   ;
22886   return 0;
22887 }
22888 _ACEOF
22889 rm -f conftest.$ac_objext
22890 if { (ac_try="$ac_compile"
22891 case "(($ac_try" in
22892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893   *) ac_try_echo=$ac_try;;
22894 esac
22895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22896   (eval "$ac_compile") 2>conftest.er1
22897   ac_status=$?
22898   grep -v '^ *+' conftest.er1 >conftest.err
22899   rm -f conftest.er1
22900   cat conftest.err >&5
22901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902   (exit $ac_status); } &&
22903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22904   { (case "(($ac_try" in
22905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906   *) ac_try_echo=$ac_try;;
22907 esac
22908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22909   (eval "$ac_try") 2>&5
22910   ac_status=$?
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); }; } &&
22913          { ac_try='test -s conftest.$ac_objext'
22914   { (case "(($ac_try" in
22915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916   *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919   (eval "$ac_try") 2>&5
22920   ac_status=$?
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); }; }; then
22923   ac_cv_member_siginfo_t_si_fd=yes
22924 else
22925   echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22927
22928         cat >conftest.$ac_ext <<_ACEOF
22929 /* confdefs.h.  */
22930 _ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h.  */
22934 #include <signal.h>
22935
22936 int
22937 main ()
22938 {
22939 static siginfo_t ac_aggr;
22940 if (sizeof ac_aggr.si_fd)
22941 return 0;
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext
22947 if { (ac_try="$ac_compile"
22948 case "(($ac_try" in
22949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950   *) ac_try_echo=$ac_try;;
22951 esac
22952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953   (eval "$ac_compile") 2>conftest.er1
22954   ac_status=$?
22955   grep -v '^ *+' conftest.er1 >conftest.err
22956   rm -f conftest.er1
22957   cat conftest.err >&5
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); } &&
22960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22961   { (case "(($ac_try" in
22962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22963   *) ac_try_echo=$ac_try;;
22964 esac
22965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22966   (eval "$ac_try") 2>&5
22967   ac_status=$?
22968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969   (exit $ac_status); }; } &&
22970          { ac_try='test -s conftest.$ac_objext'
22971   { (case "(($ac_try" in
22972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973   *) ac_try_echo=$ac_try;;
22974 esac
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976   (eval "$ac_try") 2>&5
22977   ac_status=$?
22978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979   (exit $ac_status); }; }; then
22980   ac_cv_member_siginfo_t_si_fd=yes
22981 else
22982   echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22984
22985         ac_cv_member_siginfo_t_si_fd=no
22986 fi
22987
22988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22989 fi
22990
22991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22992 fi
22993 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22994 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
22995 if test $ac_cv_member_siginfo_t_si_fd = yes; then
22996
22997 cat >>confdefs.h <<_ACEOF
22998 #define HAVE_SIGINFO_T_SI_FD 1
22999 _ACEOF
23000
23001
23002 fi
23003
23004
23005 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
23006 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
23007 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
23008   echo $ECHO_N "(cached) $ECHO_C" >&6
23009 else
23010   cat >conftest.$ac_ext <<_ACEOF
23011 /* confdefs.h.  */
23012 _ACEOF
23013 cat confdefs.h >>conftest.$ac_ext
23014 cat >>conftest.$ac_ext <<_ACEOF
23015 /* end confdefs.h.  */
23016 #include <sys/types.h>
23017 #ifdef HAVE_SYS_MTIO_H
23018 #include <sys/mtio.h>
23019 #endif
23020
23021 int
23022 main ()
23023 {
23024 static struct mtget ac_aggr;
23025 if (ac_aggr.mt_blksiz)
23026 return 0;
23027   ;
23028   return 0;
23029 }
23030 _ACEOF
23031 rm -f conftest.$ac_objext
23032 if { (ac_try="$ac_compile"
23033 case "(($ac_try" in
23034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035   *) ac_try_echo=$ac_try;;
23036 esac
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038   (eval "$ac_compile") 2>conftest.er1
23039   ac_status=$?
23040   grep -v '^ *+' conftest.er1 >conftest.err
23041   rm -f conftest.er1
23042   cat conftest.err >&5
23043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044   (exit $ac_status); } &&
23045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23046   { (case "(($ac_try" in
23047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048   *) ac_try_echo=$ac_try;;
23049 esac
23050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051   (eval "$ac_try") 2>&5
23052   ac_status=$?
23053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); }; } &&
23055          { ac_try='test -s conftest.$ac_objext'
23056   { (case "(($ac_try" in
23057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058   *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061   (eval "$ac_try") 2>&5
23062   ac_status=$?
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); }; }; then
23065   ac_cv_member_struct_mtget_mt_blksiz=yes
23066 else
23067   echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23069
23070         cat >conftest.$ac_ext <<_ACEOF
23071 /* confdefs.h.  */
23072 _ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h.  */
23076 #include <sys/types.h>
23077 #ifdef HAVE_SYS_MTIO_H
23078 #include <sys/mtio.h>
23079 #endif
23080
23081 int
23082 main ()
23083 {
23084 static struct mtget ac_aggr;
23085 if (sizeof ac_aggr.mt_blksiz)
23086 return 0;
23087   ;
23088   return 0;
23089 }
23090 _ACEOF
23091 rm -f conftest.$ac_objext
23092 if { (ac_try="$ac_compile"
23093 case "(($ac_try" in
23094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095   *) ac_try_echo=$ac_try;;
23096 esac
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098   (eval "$ac_compile") 2>conftest.er1
23099   ac_status=$?
23100   grep -v '^ *+' conftest.er1 >conftest.err
23101   rm -f conftest.er1
23102   cat conftest.err >&5
23103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104   (exit $ac_status); } &&
23105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23106   { (case "(($ac_try" in
23107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108   *) ac_try_echo=$ac_try;;
23109 esac
23110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23111   (eval "$ac_try") 2>&5
23112   ac_status=$?
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); }; } &&
23115          { ac_try='test -s conftest.$ac_objext'
23116   { (case "(($ac_try" in
23117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23118   *) ac_try_echo=$ac_try;;
23119 esac
23120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23121   (eval "$ac_try") 2>&5
23122   ac_status=$?
23123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124   (exit $ac_status); }; }; then
23125   ac_cv_member_struct_mtget_mt_blksiz=yes
23126 else
23127   echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23129
23130         ac_cv_member_struct_mtget_mt_blksiz=no
23131 fi
23132
23133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134 fi
23135
23136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23137 fi
23138 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
23139 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
23140 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
23141
23142 cat >>confdefs.h <<_ACEOF
23143 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
23144 _ACEOF
23145
23146
23147 fi
23148 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
23149 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
23150 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
23151   echo $ECHO_N "(cached) $ECHO_C" >&6
23152 else
23153   cat >conftest.$ac_ext <<_ACEOF
23154 /* confdefs.h.  */
23155 _ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h.  */
23159 #include <sys/types.h>
23160 #ifdef HAVE_SYS_MTIO_H
23161 #include <sys/mtio.h>
23162 #endif
23163
23164 int
23165 main ()
23166 {
23167 static struct mtget ac_aggr;
23168 if (ac_aggr.mt_gstat)
23169 return 0;
23170   ;
23171   return 0;
23172 }
23173 _ACEOF
23174 rm -f conftest.$ac_objext
23175 if { (ac_try="$ac_compile"
23176 case "(($ac_try" in
23177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178   *) ac_try_echo=$ac_try;;
23179 esac
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181   (eval "$ac_compile") 2>conftest.er1
23182   ac_status=$?
23183   grep -v '^ *+' conftest.er1 >conftest.err
23184   rm -f conftest.er1
23185   cat conftest.err >&5
23186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187   (exit $ac_status); } &&
23188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23189   { (case "(($ac_try" in
23190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191   *) ac_try_echo=$ac_try;;
23192 esac
23193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194   (eval "$ac_try") 2>&5
23195   ac_status=$?
23196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197   (exit $ac_status); }; } &&
23198          { ac_try='test -s conftest.$ac_objext'
23199   { (case "(($ac_try" in
23200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201   *) ac_try_echo=$ac_try;;
23202 esac
23203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204   (eval "$ac_try") 2>&5
23205   ac_status=$?
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); }; }; then
23208   ac_cv_member_struct_mtget_mt_gstat=yes
23209 else
23210   echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23212
23213         cat >conftest.$ac_ext <<_ACEOF
23214 /* confdefs.h.  */
23215 _ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h.  */
23219 #include <sys/types.h>
23220 #ifdef HAVE_SYS_MTIO_H
23221 #include <sys/mtio.h>
23222 #endif
23223
23224 int
23225 main ()
23226 {
23227 static struct mtget ac_aggr;
23228 if (sizeof ac_aggr.mt_gstat)
23229 return 0;
23230   ;
23231   return 0;
23232 }
23233 _ACEOF
23234 rm -f conftest.$ac_objext
23235 if { (ac_try="$ac_compile"
23236 case "(($ac_try" in
23237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238   *) ac_try_echo=$ac_try;;
23239 esac
23240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23241   (eval "$ac_compile") 2>conftest.er1
23242   ac_status=$?
23243   grep -v '^ *+' conftest.er1 >conftest.err
23244   rm -f conftest.er1
23245   cat conftest.err >&5
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); } &&
23248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23249   { (case "(($ac_try" in
23250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251   *) ac_try_echo=$ac_try;;
23252 esac
23253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23254   (eval "$ac_try") 2>&5
23255   ac_status=$?
23256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257   (exit $ac_status); }; } &&
23258          { ac_try='test -s conftest.$ac_objext'
23259   { (case "(($ac_try" in
23260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261   *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264   (eval "$ac_try") 2>&5
23265   ac_status=$?
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); }; }; then
23268   ac_cv_member_struct_mtget_mt_gstat=yes
23269 else
23270   echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23272
23273         ac_cv_member_struct_mtget_mt_gstat=no
23274 fi
23275
23276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23277 fi
23278
23279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23280 fi
23281 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
23282 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
23283 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
23284
23285 cat >>confdefs.h <<_ACEOF
23286 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
23287 _ACEOF
23288
23289
23290 fi
23291 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
23292 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
23293 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
23294   echo $ECHO_N "(cached) $ECHO_C" >&6
23295 else
23296   cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h.  */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h.  */
23302 #include <sys/types.h>
23303 #ifdef HAVE_SYS_MTIO_H
23304 #include <sys/mtio.h>
23305 #endif
23306
23307 int
23308 main ()
23309 {
23310 static struct mtget ac_aggr;
23311 if (ac_aggr.mt_blkno)
23312 return 0;
23313   ;
23314   return 0;
23315 }
23316 _ACEOF
23317 rm -f conftest.$ac_objext
23318 if { (ac_try="$ac_compile"
23319 case "(($ac_try" in
23320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23321   *) ac_try_echo=$ac_try;;
23322 esac
23323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23324   (eval "$ac_compile") 2>conftest.er1
23325   ac_status=$?
23326   grep -v '^ *+' conftest.er1 >conftest.err
23327   rm -f conftest.er1
23328   cat conftest.err >&5
23329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330   (exit $ac_status); } &&
23331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23332   { (case "(($ac_try" in
23333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334   *) ac_try_echo=$ac_try;;
23335 esac
23336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23337   (eval "$ac_try") 2>&5
23338   ac_status=$?
23339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340   (exit $ac_status); }; } &&
23341          { ac_try='test -s conftest.$ac_objext'
23342   { (case "(($ac_try" in
23343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344   *) ac_try_echo=$ac_try;;
23345 esac
23346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23347   (eval "$ac_try") 2>&5
23348   ac_status=$?
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); }; }; then
23351   ac_cv_member_struct_mtget_mt_blkno=yes
23352 else
23353   echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23355
23356         cat >conftest.$ac_ext <<_ACEOF
23357 /* confdefs.h.  */
23358 _ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h.  */
23362 #include <sys/types.h>
23363 #ifdef HAVE_SYS_MTIO_H
23364 #include <sys/mtio.h>
23365 #endif
23366
23367 int
23368 main ()
23369 {
23370 static struct mtget ac_aggr;
23371 if (sizeof ac_aggr.mt_blkno)
23372 return 0;
23373   ;
23374   return 0;
23375 }
23376 _ACEOF
23377 rm -f conftest.$ac_objext
23378 if { (ac_try="$ac_compile"
23379 case "(($ac_try" in
23380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381   *) ac_try_echo=$ac_try;;
23382 esac
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384   (eval "$ac_compile") 2>conftest.er1
23385   ac_status=$?
23386   grep -v '^ *+' conftest.er1 >conftest.err
23387   rm -f conftest.er1
23388   cat conftest.err >&5
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); } &&
23391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23392   { (case "(($ac_try" in
23393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23394   *) ac_try_echo=$ac_try;;
23395 esac
23396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23397   (eval "$ac_try") 2>&5
23398   ac_status=$?
23399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); }; } &&
23401          { ac_try='test -s conftest.$ac_objext'
23402   { (case "(($ac_try" in
23403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404   *) ac_try_echo=$ac_try;;
23405 esac
23406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23407   (eval "$ac_try") 2>&5
23408   ac_status=$?
23409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410   (exit $ac_status); }; }; then
23411   ac_cv_member_struct_mtget_mt_blkno=yes
23412 else
23413   echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23415
23416         ac_cv_member_struct_mtget_mt_blkno=no
23417 fi
23418
23419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23420 fi
23421
23422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23423 fi
23424 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
23425 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
23426 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
23427
23428 cat >>confdefs.h <<_ACEOF
23429 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
23430 _ACEOF
23431
23432
23433 fi
23434
23435
23436 { echo "$as_me:$LINENO: checking for struct option.name" >&5
23437 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
23438 if test "${ac_cv_member_struct_option_name+set}" = set; then
23439   echo $ECHO_N "(cached) $ECHO_C" >&6
23440 else
23441   cat >conftest.$ac_ext <<_ACEOF
23442 /* confdefs.h.  */
23443 _ACEOF
23444 cat confdefs.h >>conftest.$ac_ext
23445 cat >>conftest.$ac_ext <<_ACEOF
23446 /* end confdefs.h.  */
23447 #ifdef HAVE_GETOPT_H
23448 #include <getopt.h>
23449 #endif
23450
23451 int
23452 main ()
23453 {
23454 static struct option ac_aggr;
23455 if (ac_aggr.name)
23456 return 0;
23457   ;
23458   return 0;
23459 }
23460 _ACEOF
23461 rm -f conftest.$ac_objext
23462 if { (ac_try="$ac_compile"
23463 case "(($ac_try" in
23464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465   *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468   (eval "$ac_compile") 2>conftest.er1
23469   ac_status=$?
23470   grep -v '^ *+' conftest.er1 >conftest.err
23471   rm -f conftest.er1
23472   cat conftest.err >&5
23473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474   (exit $ac_status); } &&
23475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23476   { (case "(($ac_try" in
23477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23478   *) ac_try_echo=$ac_try;;
23479 esac
23480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23481   (eval "$ac_try") 2>&5
23482   ac_status=$?
23483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484   (exit $ac_status); }; } &&
23485          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23495   ac_cv_member_struct_option_name=yes
23496 else
23497   echo "$as_me: failed program was:" >&5
23498 sed 's/^/| /' conftest.$ac_ext >&5
23499
23500         cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h.  */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h.  */
23506 #ifdef HAVE_GETOPT_H
23507 #include <getopt.h>
23508 #endif
23509
23510 int
23511 main ()
23512 {
23513 static struct option ac_aggr;
23514 if (sizeof ac_aggr.name)
23515 return 0;
23516   ;
23517   return 0;
23518 }
23519 _ACEOF
23520 rm -f conftest.$ac_objext
23521 if { (ac_try="$ac_compile"
23522 case "(($ac_try" in
23523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524   *) ac_try_echo=$ac_try;;
23525 esac
23526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23527   (eval "$ac_compile") 2>conftest.er1
23528   ac_status=$?
23529   grep -v '^ *+' conftest.er1 >conftest.err
23530   rm -f conftest.er1
23531   cat conftest.err >&5
23532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533   (exit $ac_status); } &&
23534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23535   { (case "(($ac_try" in
23536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23537   *) ac_try_echo=$ac_try;;
23538 esac
23539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23540   (eval "$ac_try") 2>&5
23541   ac_status=$?
23542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); }; } &&
23544          { ac_try='test -s conftest.$ac_objext'
23545   { (case "(($ac_try" in
23546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547   *) ac_try_echo=$ac_try;;
23548 esac
23549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23550   (eval "$ac_try") 2>&5
23551   ac_status=$?
23552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553   (exit $ac_status); }; }; then
23554   ac_cv_member_struct_option_name=yes
23555 else
23556   echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23558
23559         ac_cv_member_struct_option_name=no
23560 fi
23561
23562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563 fi
23564
23565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23566 fi
23567 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
23568 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
23569 if test $ac_cv_member_struct_option_name = yes; then
23570
23571 cat >>confdefs.h <<_ACEOF
23572 #define HAVE_STRUCT_OPTION_NAME 1
23573 _ACEOF
23574
23575
23576 fi
23577
23578
23579 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23580 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23581 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23582   echo $ECHO_N "(cached) $ECHO_C" >&6
23583 else
23584   cat >conftest.$ac_ext <<_ACEOF
23585 /* confdefs.h.  */
23586 _ACEOF
23587 cat confdefs.h >>conftest.$ac_ext
23588 cat >>conftest.$ac_ext <<_ACEOF
23589 /* end confdefs.h.  */
23590 $ac_includes_default
23591 int
23592 main ()
23593 {
23594 static struct stat ac_aggr;
23595 if (ac_aggr.st_blocks)
23596 return 0;
23597   ;
23598   return 0;
23599 }
23600 _ACEOF
23601 rm -f conftest.$ac_objext
23602 if { (ac_try="$ac_compile"
23603 case "(($ac_try" in
23604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605   *) ac_try_echo=$ac_try;;
23606 esac
23607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23608   (eval "$ac_compile") 2>conftest.er1
23609   ac_status=$?
23610   grep -v '^ *+' conftest.er1 >conftest.err
23611   rm -f conftest.er1
23612   cat conftest.err >&5
23613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614   (exit $ac_status); } &&
23615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23616   { (case "(($ac_try" in
23617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618   *) ac_try_echo=$ac_try;;
23619 esac
23620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23621   (eval "$ac_try") 2>&5
23622   ac_status=$?
23623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624   (exit $ac_status); }; } &&
23625          { ac_try='test -s conftest.$ac_objext'
23626   { (case "(($ac_try" in
23627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628   *) ac_try_echo=$ac_try;;
23629 esac
23630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23631   (eval "$ac_try") 2>&5
23632   ac_status=$?
23633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634   (exit $ac_status); }; }; then
23635   ac_cv_member_struct_stat_st_blocks=yes
23636 else
23637   echo "$as_me: failed program was:" >&5
23638 sed 's/^/| /' conftest.$ac_ext >&5
23639
23640         cat >conftest.$ac_ext <<_ACEOF
23641 /* confdefs.h.  */
23642 _ACEOF
23643 cat confdefs.h >>conftest.$ac_ext
23644 cat >>conftest.$ac_ext <<_ACEOF
23645 /* end confdefs.h.  */
23646 $ac_includes_default
23647 int
23648 main ()
23649 {
23650 static struct stat ac_aggr;
23651 if (sizeof ac_aggr.st_blocks)
23652 return 0;
23653   ;
23654   return 0;
23655 }
23656 _ACEOF
23657 rm -f conftest.$ac_objext
23658 if { (ac_try="$ac_compile"
23659 case "(($ac_try" in
23660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23661   *) ac_try_echo=$ac_try;;
23662 esac
23663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23664   (eval "$ac_compile") 2>conftest.er1
23665   ac_status=$?
23666   grep -v '^ *+' conftest.er1 >conftest.err
23667   rm -f conftest.er1
23668   cat conftest.err >&5
23669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23670   (exit $ac_status); } &&
23671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23672   { (case "(($ac_try" in
23673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23674   *) ac_try_echo=$ac_try;;
23675 esac
23676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23677   (eval "$ac_try") 2>&5
23678   ac_status=$?
23679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); }; } &&
23681          { ac_try='test -s conftest.$ac_objext'
23682   { (case "(($ac_try" in
23683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23684   *) ac_try_echo=$ac_try;;
23685 esac
23686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23687   (eval "$ac_try") 2>&5
23688   ac_status=$?
23689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690   (exit $ac_status); }; }; then
23691   ac_cv_member_struct_stat_st_blocks=yes
23692 else
23693   echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23695
23696         ac_cv_member_struct_stat_st_blocks=no
23697 fi
23698
23699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23700 fi
23701
23702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23703 fi
23704 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23705 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23706 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23707
23708 cat >>confdefs.h <<_ACEOF
23709 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23710 _ACEOF
23711
23712
23713 fi
23714
23715
23716 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23717 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
23718 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23719   echo $ECHO_N "(cached) $ECHO_C" >&6
23720 else
23721   cat >conftest.$ac_ext <<_ACEOF
23722 /* confdefs.h.  */
23723 _ACEOF
23724 cat confdefs.h >>conftest.$ac_ext
23725 cat >>conftest.$ac_ext <<_ACEOF
23726 /* end confdefs.h.  */
23727 #ifdef HAVE_SYS_TYPES_H
23728 #include <sys/types.h>
23729 #endif
23730 #ifdef HAVE_NETINET_IN_H
23731 #include <netinet/in.h>
23732 #endif
23733
23734 int
23735 main ()
23736 {
23737 static struct sockaddr_in6 ac_aggr;
23738 if (ac_aggr.sin6_scope_id)
23739 return 0;
23740   ;
23741   return 0;
23742 }
23743 _ACEOF
23744 rm -f conftest.$ac_objext
23745 if { (ac_try="$ac_compile"
23746 case "(($ac_try" in
23747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23748   *) ac_try_echo=$ac_try;;
23749 esac
23750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23751   (eval "$ac_compile") 2>conftest.er1
23752   ac_status=$?
23753   grep -v '^ *+' conftest.er1 >conftest.err
23754   rm -f conftest.er1
23755   cat conftest.err >&5
23756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757   (exit $ac_status); } &&
23758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23759   { (case "(($ac_try" in
23760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761   *) ac_try_echo=$ac_try;;
23762 esac
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764   (eval "$ac_try") 2>&5
23765   ac_status=$?
23766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767   (exit $ac_status); }; } &&
23768          { ac_try='test -s conftest.$ac_objext'
23769   { (case "(($ac_try" in
23770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23771   *) ac_try_echo=$ac_try;;
23772 esac
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774   (eval "$ac_try") 2>&5
23775   ac_status=$?
23776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777   (exit $ac_status); }; }; then
23778   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23779 else
23780   echo "$as_me: failed program was:" >&5
23781 sed 's/^/| /' conftest.$ac_ext >&5
23782
23783         cat >conftest.$ac_ext <<_ACEOF
23784 /* confdefs.h.  */
23785 _ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h.  */
23789 #ifdef HAVE_SYS_TYPES_H
23790 #include <sys/types.h>
23791 #endif
23792 #ifdef HAVE_NETINET_IN_H
23793 #include <netinet/in.h>
23794 #endif
23795
23796 int
23797 main ()
23798 {
23799 static struct sockaddr_in6 ac_aggr;
23800 if (sizeof ac_aggr.sin6_scope_id)
23801 return 0;
23802   ;
23803   return 0;
23804 }
23805 _ACEOF
23806 rm -f conftest.$ac_objext
23807 if { (ac_try="$ac_compile"
23808 case "(($ac_try" in
23809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23810   *) ac_try_echo=$ac_try;;
23811 esac
23812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23813   (eval "$ac_compile") 2>conftest.er1
23814   ac_status=$?
23815   grep -v '^ *+' conftest.er1 >conftest.err
23816   rm -f conftest.er1
23817   cat conftest.err >&5
23818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819   (exit $ac_status); } &&
23820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23821   { (case "(($ac_try" in
23822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823   *) ac_try_echo=$ac_try;;
23824 esac
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826   (eval "$ac_try") 2>&5
23827   ac_status=$?
23828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829   (exit $ac_status); }; } &&
23830          { ac_try='test -s conftest.$ac_objext'
23831   { (case "(($ac_try" in
23832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833   *) ac_try_echo=$ac_try;;
23834 esac
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836   (eval "$ac_try") 2>&5
23837   ac_status=$?
23838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839   (exit $ac_status); }; }; then
23840   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23841 else
23842   echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23844
23845         ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23846 fi
23847
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23849 fi
23850
23851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23852 fi
23853 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23854 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23855 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23856
23857 cat >>confdefs.h <<_ACEOF
23858 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23859 _ACEOF
23860
23861
23862 fi
23863
23864
23865 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23866 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23867 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23868   echo $ECHO_N "(cached) $ECHO_C" >&6
23869 else
23870   cat >conftest.$ac_ext <<_ACEOF
23871 /* confdefs.h.  */
23872 _ACEOF
23873 cat confdefs.h >>conftest.$ac_ext
23874 cat >>conftest.$ac_ext <<_ACEOF
23875 /* end confdefs.h.  */
23876 #ifdef HAVE_SYS_TYPES_H
23877 #include <sys/types.h>
23878 #endif
23879 #ifdef HAVE_NETINET_IN_H
23880 # include <netinet/in.h>
23881 #endif
23882 #ifdef HAVE_ARPA_NAMESER_H
23883 # include <arpa/nameser.h>
23884 #endif
23885
23886 int
23887 main ()
23888 {
23889 static ns_msg ac_aggr;
23890 if (ac_aggr._msg_ptr)
23891 return 0;
23892   ;
23893   return 0;
23894 }
23895 _ACEOF
23896 rm -f conftest.$ac_objext
23897 if { (ac_try="$ac_compile"
23898 case "(($ac_try" in
23899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23900   *) ac_try_echo=$ac_try;;
23901 esac
23902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23903   (eval "$ac_compile") 2>conftest.er1
23904   ac_status=$?
23905   grep -v '^ *+' conftest.er1 >conftest.err
23906   rm -f conftest.er1
23907   cat conftest.err >&5
23908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909   (exit $ac_status); } &&
23910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23911   { (case "(($ac_try" in
23912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23913   *) ac_try_echo=$ac_try;;
23914 esac
23915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23916   (eval "$ac_try") 2>&5
23917   ac_status=$?
23918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919   (exit $ac_status); }; } &&
23920          { ac_try='test -s conftest.$ac_objext'
23921   { (case "(($ac_try" in
23922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923   *) ac_try_echo=$ac_try;;
23924 esac
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926   (eval "$ac_try") 2>&5
23927   ac_status=$?
23928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929   (exit $ac_status); }; }; then
23930   ac_cv_member_ns_msg__msg_ptr=yes
23931 else
23932   echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23934
23935         cat >conftest.$ac_ext <<_ACEOF
23936 /* confdefs.h.  */
23937 _ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h.  */
23941 #ifdef HAVE_SYS_TYPES_H
23942 #include <sys/types.h>
23943 #endif
23944 #ifdef HAVE_NETINET_IN_H
23945 # include <netinet/in.h>
23946 #endif
23947 #ifdef HAVE_ARPA_NAMESER_H
23948 # include <arpa/nameser.h>
23949 #endif
23950
23951 int
23952 main ()
23953 {
23954 static ns_msg ac_aggr;
23955 if (sizeof ac_aggr._msg_ptr)
23956 return 0;
23957   ;
23958   return 0;
23959 }
23960 _ACEOF
23961 rm -f conftest.$ac_objext
23962 if { (ac_try="$ac_compile"
23963 case "(($ac_try" in
23964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965   *) ac_try_echo=$ac_try;;
23966 esac
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968   (eval "$ac_compile") 2>conftest.er1
23969   ac_status=$?
23970   grep -v '^ *+' conftest.er1 >conftest.err
23971   rm -f conftest.er1
23972   cat conftest.err >&5
23973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974   (exit $ac_status); } &&
23975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23976   { (case "(($ac_try" in
23977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978   *) ac_try_echo=$ac_try;;
23979 esac
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981   (eval "$ac_try") 2>&5
23982   ac_status=$?
23983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984   (exit $ac_status); }; } &&
23985          { ac_try='test -s conftest.$ac_objext'
23986   { (case "(($ac_try" in
23987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23988   *) ac_try_echo=$ac_try;;
23989 esac
23990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23991   (eval "$ac_try") 2>&5
23992   ac_status=$?
23993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994   (exit $ac_status); }; }; then
23995   ac_cv_member_ns_msg__msg_ptr=yes
23996 else
23997   echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
23999
24000         ac_cv_member_ns_msg__msg_ptr=no
24001 fi
24002
24003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004 fi
24005
24006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24007 fi
24008 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
24009 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
24010 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
24011
24012 cat >>confdefs.h <<_ACEOF
24013 #define HAVE_NS_MSG__MSG_PTR 1
24014 _ACEOF
24015
24016
24017 fi
24018
24019
24020 { echo "$as_me:$LINENO: checking for timezone variable" >&5
24021 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
24022 if test "${ac_cv_have_timezone+set}" = set; then
24023   echo $ECHO_N "(cached) $ECHO_C" >&6
24024 else
24025   cat >conftest.$ac_ext <<_ACEOF
24026 /* confdefs.h.  */
24027 _ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h.  */
24031 #include <time.h>
24032 int
24033 main ()
24034 {
24035 timezone;
24036   ;
24037   return 0;
24038 }
24039 _ACEOF
24040 rm -f conftest.$ac_objext conftest$ac_exeext
24041 if { (ac_try="$ac_link"
24042 case "(($ac_try" in
24043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044   *) ac_try_echo=$ac_try;;
24045 esac
24046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24047   (eval "$ac_link") 2>conftest.er1
24048   ac_status=$?
24049   grep -v '^ *+' conftest.er1 >conftest.err
24050   rm -f conftest.er1
24051   cat conftest.err >&5
24052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); } &&
24054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24055   { (case "(($ac_try" in
24056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057   *) ac_try_echo=$ac_try;;
24058 esac
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060   (eval "$ac_try") 2>&5
24061   ac_status=$?
24062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063   (exit $ac_status); }; } &&
24064          { ac_try='test -s conftest$ac_exeext'
24065   { (case "(($ac_try" in
24066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24067   *) ac_try_echo=$ac_try;;
24068 esac
24069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24070   (eval "$ac_try") 2>&5
24071   ac_status=$?
24072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073   (exit $ac_status); }; }; then
24074   ac_cv_have_timezone="yes"
24075 else
24076   echo "$as_me: failed program was:" >&5
24077 sed 's/^/| /' conftest.$ac_ext >&5
24078
24079         ac_cv_have_timezone="no"
24080 fi
24081
24082 rm -f core conftest.err conftest.$ac_objext \
24083       conftest$ac_exeext conftest.$ac_ext
24084 fi
24085 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
24086 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
24087 if test "$ac_cv_have_timezone" = "yes"
24088 then
24089
24090 cat >>confdefs.h <<\_ACEOF
24091 #define HAVE_TIMEZONE 1
24092 _ACEOF
24093
24094 fi
24095 { echo "$as_me:$LINENO: checking for daylight variable" >&5
24096 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
24097 if test "${ac_cv_have_daylight+set}" = set; then
24098   echo $ECHO_N "(cached) $ECHO_C" >&6
24099 else
24100   cat >conftest.$ac_ext <<_ACEOF
24101 /* confdefs.h.  */
24102 _ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h.  */
24106 #include <time.h>
24107 int
24108 main ()
24109 {
24110 daylight;
24111   ;
24112   return 0;
24113 }
24114 _ACEOF
24115 rm -f conftest.$ac_objext conftest$ac_exeext
24116 if { (ac_try="$ac_link"
24117 case "(($ac_try" in
24118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119   *) ac_try_echo=$ac_try;;
24120 esac
24121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24122   (eval "$ac_link") 2>conftest.er1
24123   ac_status=$?
24124   grep -v '^ *+' conftest.er1 >conftest.err
24125   rm -f conftest.er1
24126   cat conftest.err >&5
24127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128   (exit $ac_status); } &&
24129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24130   { (case "(($ac_try" in
24131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24132   *) ac_try_echo=$ac_try;;
24133 esac
24134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24135   (eval "$ac_try") 2>&5
24136   ac_status=$?
24137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138   (exit $ac_status); }; } &&
24139          { ac_try='test -s conftest$ac_exeext'
24140   { (case "(($ac_try" in
24141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142   *) ac_try_echo=$ac_try;;
24143 esac
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145   (eval "$ac_try") 2>&5
24146   ac_status=$?
24147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148   (exit $ac_status); }; }; then
24149   ac_cv_have_daylight="yes"
24150 else
24151   echo "$as_me: failed program was:" >&5
24152 sed 's/^/| /' conftest.$ac_ext >&5
24153
24154         ac_cv_have_daylight="no"
24155 fi
24156
24157 rm -f core conftest.err conftest.$ac_objext \
24158       conftest$ac_exeext conftest.$ac_ext
24159 fi
24160 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
24161 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
24162 if test "$ac_cv_have_daylight" = "yes"
24163 then
24164
24165 cat >>confdefs.h <<\_ACEOF
24166 #define HAVE_DAYLIGHT 1
24167 _ACEOF
24168
24169 fi
24170
24171
24172 case $host_cpu in
24173   *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
24174 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
24175 if test "${ac_cv_cpp_def___i386__+set}" = set; then
24176   echo $ECHO_N "(cached) $ECHO_C" >&6
24177 else
24178   cat >conftest.$ac_ext <<_ACEOF
24179 /* confdefs.h.  */
24180 _ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h.  */
24184 #ifndef __i386__
24185 yes
24186 #endif
24187 _ACEOF
24188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24189   $EGREP "yes" >/dev/null 2>&1; then
24190   ac_cv_cpp_def___i386__=yes
24191 else
24192   ac_cv_cpp_def___i386__=no
24193 fi
24194 rm -f conftest*
24195
24196 fi
24197 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
24198 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
24199 if test $ac_cv_cpp_def___i386__ = yes; then
24200   CFLAGS="$CFLAGS -D__i386__"
24201   LINTFLAGS="$LINTFLAGS -D__i386__"
24202 fi
24203  ;;
24204   *x86_64*)         { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
24205 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
24206 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
24207   echo $ECHO_N "(cached) $ECHO_C" >&6
24208 else
24209   cat >conftest.$ac_ext <<_ACEOF
24210 /* confdefs.h.  */
24211 _ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h.  */
24215 #ifndef __x86_64__
24216 yes
24217 #endif
24218 _ACEOF
24219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24220   $EGREP "yes" >/dev/null 2>&1; then
24221   ac_cv_cpp_def___x86_64__=yes
24222 else
24223   ac_cv_cpp_def___x86_64__=no
24224 fi
24225 rm -f conftest*
24226
24227 fi
24228 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
24229 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
24230 if test $ac_cv_cpp_def___x86_64__ = yes; then
24231   CFLAGS="$CFLAGS -D__x86_64__"
24232   LINTFLAGS="$LINTFLAGS -D__x86_64__"
24233 fi
24234
24235                     { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
24236 echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
24237 if test "${ac_cv_cpp_def__WIN64+set}" = set; then
24238   echo $ECHO_N "(cached) $ECHO_C" >&6
24239 else
24240   cat >conftest.$ac_ext <<_ACEOF
24241 /* confdefs.h.  */
24242 _ACEOF
24243 cat confdefs.h >>conftest.$ac_ext
24244 cat >>conftest.$ac_ext <<_ACEOF
24245 /* end confdefs.h.  */
24246 #ifndef _WIN64
24247 yes
24248 #endif
24249 _ACEOF
24250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24251   $EGREP "yes" >/dev/null 2>&1; then
24252   ac_cv_cpp_def__WIN64=yes
24253 else
24254   ac_cv_cpp_def__WIN64=no
24255 fi
24256 rm -f conftest*
24257
24258 fi
24259 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
24260 echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
24261 if test $ac_cv_cpp_def__WIN64 = yes; then
24262   CFLAGS="$CFLAGS -D_WIN64"
24263   LINTFLAGS="$LINTFLAGS -D_WIN64"
24264 fi
24265  ;;
24266   *alpha*)          { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
24267 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
24268 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
24269   echo $ECHO_N "(cached) $ECHO_C" >&6
24270 else
24271   cat >conftest.$ac_ext <<_ACEOF
24272 /* confdefs.h.  */
24273 _ACEOF
24274 cat confdefs.h >>conftest.$ac_ext
24275 cat >>conftest.$ac_ext <<_ACEOF
24276 /* end confdefs.h.  */
24277 #ifndef __ALPHA__
24278 yes
24279 #endif
24280 _ACEOF
24281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24282   $EGREP "yes" >/dev/null 2>&1; then
24283   ac_cv_cpp_def___ALPHA__=yes
24284 else
24285   ac_cv_cpp_def___ALPHA__=no
24286 fi
24287 rm -f conftest*
24288
24289 fi
24290 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
24291 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
24292 if test $ac_cv_cpp_def___ALPHA__ = yes; then
24293   CFLAGS="$CFLAGS -D__ALPHA__"
24294   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
24295 fi
24296  ;;
24297   *sparc*)          { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
24298 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
24299 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
24300   echo $ECHO_N "(cached) $ECHO_C" >&6
24301 else
24302   cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h.  */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h.  */
24308 #ifndef __sparc__
24309 yes
24310 #endif
24311 _ACEOF
24312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24313   $EGREP "yes" >/dev/null 2>&1; then
24314   ac_cv_cpp_def___sparc__=yes
24315 else
24316   ac_cv_cpp_def___sparc__=no
24317 fi
24318 rm -f conftest*
24319
24320 fi
24321 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
24322 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
24323 if test $ac_cv_cpp_def___sparc__ = yes; then
24324   CFLAGS="$CFLAGS -D__sparc__"
24325   LINTFLAGS="$LINTFLAGS -D__sparc__"
24326 fi
24327  ;;
24328   *powerpc*)        { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
24329 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
24330 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
24331   echo $ECHO_N "(cached) $ECHO_C" >&6
24332 else
24333   cat >conftest.$ac_ext <<_ACEOF
24334 /* confdefs.h.  */
24335 _ACEOF
24336 cat confdefs.h >>conftest.$ac_ext
24337 cat >>conftest.$ac_ext <<_ACEOF
24338 /* end confdefs.h.  */
24339 #ifndef __powerpc__
24340 yes
24341 #endif
24342 _ACEOF
24343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24344   $EGREP "yes" >/dev/null 2>&1; then
24345   ac_cv_cpp_def___powerpc__=yes
24346 else
24347   ac_cv_cpp_def___powerpc__=no
24348 fi
24349 rm -f conftest*
24350
24351 fi
24352 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
24353 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
24354 if test $ac_cv_cpp_def___powerpc__ = yes; then
24355   CFLAGS="$CFLAGS -D__powerpc__"
24356   LINTFLAGS="$LINTFLAGS -D__powerpc__"
24357 fi
24358  ;;
24359 esac
24360
24361 case $host_vendor in
24362   *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
24363 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
24364 if test "${ac_cv_cpp_def___sun__+set}" = set; then
24365   echo $ECHO_N "(cached) $ECHO_C" >&6
24366 else
24367   cat >conftest.$ac_ext <<_ACEOF
24368 /* confdefs.h.  */
24369 _ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h.  */
24373 #ifndef __sun__
24374 yes
24375 #endif
24376 _ACEOF
24377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24378   $EGREP "yes" >/dev/null 2>&1; then
24379   ac_cv_cpp_def___sun__=yes
24380 else
24381   ac_cv_cpp_def___sun__=no
24382 fi
24383 rm -f conftest*
24384
24385 fi
24386 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
24387 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
24388 if test $ac_cv_cpp_def___sun__ = yes; then
24389   CFLAGS="$CFLAGS -D__sun__"
24390   LINTFLAGS="$LINTFLAGS -D__sun__"
24391 fi
24392  ;;
24393 esac
24394
24395
24396
24397
24398
24399 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
24400
24401 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
24402
24403 ac_config_commands="$ac_config_commands dlls/kernel/messages"
24404
24405 ac_config_commands="$ac_config_commands dlls/user/resources"
24406
24407 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
24408
24409 ac_config_commands="$ac_config_commands include/wine"
24410
24411
24412 MAKE_RULES=Make.rules
24413
24414
24415 MAKE_DLL_RULES=dlls/Makedll.rules
24416
24417
24418 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
24419
24420
24421 MAKE_TEST_RULES=dlls/Maketest.rules
24422
24423
24424 MAKE_LIB_RULES=libs/Makelib.rules
24425
24426
24427 MAKE_PROG_RULES=programs/Makeprog.rules
24428
24429
24430 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/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"
24431
24432
24433 cat >confcache <<\_ACEOF
24434 # This file is a shell script that caches the results of configure
24435 # tests run on this system so they can be shared between configure
24436 # scripts and configure runs, see configure's option --config-cache.
24437 # It is not useful on other systems.  If it contains results you don't
24438 # want to keep, you may remove or edit it.
24439 #
24440 # config.status only pays attention to the cache file if you give it
24441 # the --recheck option to rerun configure.
24442 #
24443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24445 # following values.
24446
24447 _ACEOF
24448
24449 # The following way of writing the cache mishandles newlines in values,
24450 # but we know of no workaround that is simple, portable, and efficient.
24451 # So, we kill variables containing newlines.
24452 # Ultrix sh set writes to stderr and can't be redirected directly,
24453 # and sets the high bit in the cache file unless we assign to the vars.
24454 (
24455   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24456     eval ac_val=\$$ac_var
24457     case $ac_val in #(
24458     *${as_nl}*)
24459       case $ac_var in #(
24460       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24461 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24462       esac
24463       case $ac_var in #(
24464       _ | IFS | as_nl) ;; #(
24465       *) $as_unset $ac_var ;;
24466       esac ;;
24467     esac
24468   done
24469
24470   (set) 2>&1 |
24471     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24472     *${as_nl}ac_space=\ *)
24473       # `set' does not quote correctly, so add quotes (double-quote
24474       # substitution turns \\\\ into \\, and sed turns \\ into \).
24475       sed -n \
24476         "s/'/'\\\\''/g;
24477           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24478       ;; #(
24479     *)
24480       # `set' quotes correctly as required by POSIX, so do not add quotes.
24481       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24482       ;;
24483     esac |
24484     sort
24485 ) |
24486   sed '
24487      /^ac_cv_env_/b end
24488      t clear
24489      :clear
24490      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24491      t end
24492      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24493      :end' >>confcache
24494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24495   if test -w "$cache_file"; then
24496     test "x$cache_file" != "x/dev/null" &&
24497       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24498 echo "$as_me: updating cache $cache_file" >&6;}
24499     cat confcache >$cache_file
24500   else
24501     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24502 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24503   fi
24504 fi
24505 rm -f confcache
24506
24507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24508 # Let make expand exec_prefix.
24509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24510
24511 DEFS=-DHAVE_CONFIG_H
24512
24513 ac_libobjs=
24514 ac_ltlibobjs=
24515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24516   # 1. Remove the extension, and $U if already installed.
24517   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24518   ac_i=`echo "$ac_i" | sed "$ac_script"`
24519   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24520   #    will be set to the directory where LIBOBJS objects are built.
24521   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24522   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24523 done
24524 LIBOBJS=$ac_libobjs
24525
24526 LTLIBOBJS=$ac_ltlibobjs
24527
24528
24529
24530 : ${CONFIG_STATUS=./config.status}
24531 ac_clean_files_save=$ac_clean_files
24532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24533 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24534 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24535 cat >$CONFIG_STATUS <<_ACEOF
24536 #! $SHELL
24537 # Generated by $as_me.
24538 # Run this file to recreate the current configuration.
24539 # Compiler output produced by configure, useful for debugging
24540 # configure, is in config.log if it exists.
24541
24542 debug=false
24543 ac_cs_recheck=false
24544 ac_cs_silent=false
24545 SHELL=\${CONFIG_SHELL-$SHELL}
24546 _ACEOF
24547
24548 cat >>$CONFIG_STATUS <<\_ACEOF
24549 ## --------------------- ##
24550 ## M4sh Initialization.  ##
24551 ## --------------------- ##
24552
24553 # Be Bourne compatible
24554 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24555   emulate sh
24556   NULLCMD=:
24557   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24558   # is contrary to our usage.  Disable this feature.
24559   alias -g '${1+"$@"}'='"$@"'
24560   setopt NO_GLOB_SUBST
24561 else
24562   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24563 fi
24564 BIN_SH=xpg4; export BIN_SH # for Tru64
24565 DUALCASE=1; export DUALCASE # for MKS sh
24566
24567
24568 # PATH needs CR
24569 # Avoid depending upon Character Ranges.
24570 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24571 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24572 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24573 as_cr_digits='0123456789'
24574 as_cr_alnum=$as_cr_Letters$as_cr_digits
24575
24576 # The user is always right.
24577 if test "${PATH_SEPARATOR+set}" != set; then
24578   echo "#! /bin/sh" >conf$$.sh
24579   echo  "exit 0"   >>conf$$.sh
24580   chmod +x conf$$.sh
24581   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24582     PATH_SEPARATOR=';'
24583   else
24584     PATH_SEPARATOR=:
24585   fi
24586   rm -f conf$$.sh
24587 fi
24588
24589 # Support unset when possible.
24590 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24591   as_unset=unset
24592 else
24593   as_unset=false
24594 fi
24595
24596
24597 # IFS
24598 # We need space, tab and new line, in precisely that order.  Quoting is
24599 # there to prevent editors from complaining about space-tab.
24600 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24601 # splitting by setting IFS to empty value.)
24602 as_nl='
24603 '
24604 IFS=" ""        $as_nl"
24605
24606 # Find who we are.  Look in the path if we contain no directory separator.
24607 case $0 in
24608   *[\\/]* ) as_myself=$0 ;;
24609   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24610 for as_dir in $PATH
24611 do
24612   IFS=$as_save_IFS
24613   test -z "$as_dir" && as_dir=.
24614   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24615 done
24616 IFS=$as_save_IFS
24617
24618      ;;
24619 esac
24620 # We did not find ourselves, most probably we were run as `sh COMMAND'
24621 # in which case we are not to be found in the path.
24622 if test "x$as_myself" = x; then
24623   as_myself=$0
24624 fi
24625 if test ! -f "$as_myself"; then
24626   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24627   { (exit 1); exit 1; }
24628 fi
24629
24630 # Work around bugs in pre-3.0 UWIN ksh.
24631 for as_var in ENV MAIL MAILPATH
24632 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24633 done
24634 PS1='$ '
24635 PS2='> '
24636 PS4='+ '
24637
24638 # NLS nuisances.
24639 for as_var in \
24640   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24641   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24642   LC_TELEPHONE LC_TIME
24643 do
24644   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24645     eval $as_var=C; export $as_var
24646   else
24647     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24648   fi
24649 done
24650
24651 # Required to use basename.
24652 if expr a : '\(a\)' >/dev/null 2>&1 &&
24653    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24654   as_expr=expr
24655 else
24656   as_expr=false
24657 fi
24658
24659 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24660   as_basename=basename
24661 else
24662   as_basename=false
24663 fi
24664
24665
24666 # Name of the executable.
24667 as_me=`$as_basename -- "$0" ||
24668 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24669          X"$0" : 'X\(//\)$' \| \
24670          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24671 echo X/"$0" |
24672     sed '/^.*\/\([^/][^/]*\)\/*$/{
24673             s//\1/
24674             q
24675           }
24676           /^X\/\(\/\/\)$/{
24677             s//\1/
24678             q
24679           }
24680           /^X\/\(\/\).*/{
24681             s//\1/
24682             q
24683           }
24684           s/.*/./; q'`
24685
24686 # CDPATH.
24687 $as_unset CDPATH
24688
24689
24690
24691   as_lineno_1=$LINENO
24692   as_lineno_2=$LINENO
24693   test "x$as_lineno_1" != "x$as_lineno_2" &&
24694   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24695
24696   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24697   # uniformly replaced by the line number.  The first 'sed' inserts a
24698   # line-number line after each line using $LINENO; the second 'sed'
24699   # does the real work.  The second script uses 'N' to pair each
24700   # line-number line with the line containing $LINENO, and appends
24701   # trailing '-' during substitution so that $LINENO is not a special
24702   # case at line end.
24703   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24704   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24705   # E. McMahon (1931-1989) for sed's syntax.  :-)
24706   sed -n '
24707     p
24708     /[$]LINENO/=
24709   ' <$as_myself |
24710     sed '
24711       s/[$]LINENO.*/&-/
24712       t lineno
24713       b
24714       :lineno
24715       N
24716       :loop
24717       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24718       t loop
24719       s/-\n.*//
24720     ' >$as_me.lineno &&
24721   chmod +x "$as_me.lineno" ||
24722     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24723    { (exit 1); exit 1; }; }
24724
24725   # Don't try to exec as it changes $[0], causing all sort of problems
24726   # (the dirname of $[0] is not the place where we might find the
24727   # original and so on.  Autoconf is especially sensitive to this).
24728   . "./$as_me.lineno"
24729   # Exit status is that of the last command.
24730   exit
24731 }
24732
24733
24734 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24735   as_dirname=dirname
24736 else
24737   as_dirname=false
24738 fi
24739
24740 ECHO_C= ECHO_N= ECHO_T=
24741 case `echo -n x` in
24742 -n*)
24743   case `echo 'x\c'` in
24744   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24745   *)   ECHO_C='\c';;
24746   esac;;
24747 *)
24748   ECHO_N='-n';;
24749 esac
24750
24751 if expr a : '\(a\)' >/dev/null 2>&1 &&
24752    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24753   as_expr=expr
24754 else
24755   as_expr=false
24756 fi
24757
24758 rm -f conf$$ conf$$.exe conf$$.file
24759 if test -d conf$$.dir; then
24760   rm -f conf$$.dir/conf$$.file
24761 else
24762   rm -f conf$$.dir
24763   mkdir conf$$.dir
24764 fi
24765 echo >conf$$.file
24766 if ln -s conf$$.file conf$$ 2>/dev/null; then
24767   as_ln_s='ln -s'
24768   # ... but there are two gotchas:
24769   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24770   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24771   # In both cases, we have to default to `cp -p'.
24772   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24773     as_ln_s='cp -p'
24774 elif ln conf$$.file conf$$ 2>/dev/null; then
24775   as_ln_s=ln
24776 else
24777   as_ln_s='cp -p'
24778 fi
24779 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24780 rmdir conf$$.dir 2>/dev/null
24781
24782 if mkdir -p . 2>/dev/null; then
24783   as_mkdir_p=:
24784 else
24785   test -d ./-p && rmdir ./-p
24786   as_mkdir_p=false
24787 fi
24788
24789 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
24790 # systems may use methods other than mode bits to determine executability.
24791 cat >conf$$.file <<_ASEOF
24792 #! /bin/sh
24793 exit 0
24794 _ASEOF
24795 chmod +x conf$$.file
24796 if test -x conf$$.file >/dev/null 2>&1; then
24797   as_executable_p="test -x"
24798 else
24799   as_executable_p=:
24800 fi
24801 rm -f conf$$.file
24802
24803 # Sed expression to map a string onto a valid CPP name.
24804 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24805
24806 # Sed expression to map a string onto a valid variable name.
24807 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24808
24809
24810 exec 6>&1
24811
24812 # Save the log message, to keep $[0] and so on meaningful, and to
24813 # report actual input values of CONFIG_FILES etc. instead of their
24814 # values after options handling.
24815 ac_log="
24816 This file was extended by Wine $as_me 0.9.18, which was
24817 generated by GNU Autoconf 2.60a.  Invocation command line was
24818
24819   CONFIG_FILES    = $CONFIG_FILES
24820   CONFIG_HEADERS  = $CONFIG_HEADERS
24821   CONFIG_LINKS    = $CONFIG_LINKS
24822   CONFIG_COMMANDS = $CONFIG_COMMANDS
24823   $ $0 $@
24824
24825 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24826 "
24827
24828 _ACEOF
24829
24830 cat >>$CONFIG_STATUS <<_ACEOF
24831 # Files that config.status was made for.
24832 config_files="$ac_config_files"
24833 config_headers="$ac_config_headers"
24834 config_commands="$ac_config_commands"
24835
24836 _ACEOF
24837
24838 cat >>$CONFIG_STATUS <<\_ACEOF
24839 ac_cs_usage="\
24840 \`$as_me' instantiates files from templates according to the
24841 current configuration.
24842
24843 Usage: $0 [OPTIONS] [FILE]...
24844
24845   -h, --help       print this help, then exit
24846   -V, --version    print version number, then exit
24847   -q, --quiet      do not print progress messages
24848   -d, --debug      don't remove temporary files
24849       --recheck    update $as_me by reconfiguring in the same conditions
24850   --file=FILE[:TEMPLATE]
24851                    instantiate the configuration file FILE
24852   --header=FILE[:TEMPLATE]
24853                    instantiate the configuration header FILE
24854
24855 Configuration files:
24856 $config_files
24857
24858 Configuration headers:
24859 $config_headers
24860
24861 Configuration commands:
24862 $config_commands
24863
24864 Report bugs to <bug-autoconf@gnu.org>."
24865
24866 _ACEOF
24867 cat >>$CONFIG_STATUS <<_ACEOF
24868 ac_cs_version="\\
24869 Wine config.status 0.9.18
24870 configured by $0, generated by GNU Autoconf 2.60a,
24871   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24872
24873 Copyright (C) 2006 Free Software Foundation, Inc.
24874 This config.status script is free software; the Free Software Foundation
24875 gives unlimited permission to copy, distribute and modify it."
24876
24877 ac_pwd='$ac_pwd'
24878 srcdir='$srcdir'
24879 INSTALL='$INSTALL'
24880 _ACEOF
24881
24882 cat >>$CONFIG_STATUS <<\_ACEOF
24883 # If no file are specified by the user, then we need to provide default
24884 # value.  By we need to know if files were specified by the user.
24885 ac_need_defaults=:
24886 while test $# != 0
24887 do
24888   case $1 in
24889   --*=*)
24890     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24891     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24892     ac_shift=:
24893     ;;
24894   *)
24895     ac_option=$1
24896     ac_optarg=$2
24897     ac_shift=shift
24898     ;;
24899   esac
24900
24901   case $ac_option in
24902   # Handling of the options.
24903   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24904     ac_cs_recheck=: ;;
24905   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24906     echo "$ac_cs_version"; exit ;;
24907   --debug | --debu | --deb | --de | --d | -d )
24908     debug=: ;;
24909   --file | --fil | --fi | --f )
24910     $ac_shift
24911     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24912     ac_need_defaults=false;;
24913   --header | --heade | --head | --hea )
24914     $ac_shift
24915     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24916     ac_need_defaults=false;;
24917   --he | --h)
24918     # Conflict between --help and --header
24919     { echo "$as_me: error: ambiguous option: $1
24920 Try \`$0 --help' for more information." >&2
24921    { (exit 1); exit 1; }; };;
24922   --help | --hel | -h )
24923     echo "$ac_cs_usage"; exit ;;
24924   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24925   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24926     ac_cs_silent=: ;;
24927
24928   # This is an error.
24929   -*) { echo "$as_me: error: unrecognized option: $1
24930 Try \`$0 --help' for more information." >&2
24931    { (exit 1); exit 1; }; } ;;
24932
24933   *) ac_config_targets="$ac_config_targets $1"
24934      ac_need_defaults=false ;;
24935
24936   esac
24937   shift
24938 done
24939
24940 ac_configure_extra_args=
24941
24942 if $ac_cs_silent; then
24943   exec 6>/dev/null
24944   ac_configure_extra_args="$ac_configure_extra_args --silent"
24945 fi
24946
24947 _ACEOF
24948 cat >>$CONFIG_STATUS <<_ACEOF
24949 if \$ac_cs_recheck; then
24950   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24951   CONFIG_SHELL=$SHELL
24952   export CONFIG_SHELL
24953   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24954 fi
24955
24956 _ACEOF
24957 cat >>$CONFIG_STATUS <<\_ACEOF
24958 exec 5>>config.log
24959 {
24960   echo
24961   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24962 ## Running $as_me. ##
24963 _ASBOX
24964   echo "$ac_log"
24965 } >&5
24966
24967 _ACEOF
24968 cat >>$CONFIG_STATUS <<_ACEOF
24969 _ACEOF
24970
24971 cat >>$CONFIG_STATUS <<\_ACEOF
24972
24973 # Handling of arguments.
24974 for ac_config_target in $ac_config_targets
24975 do
24976   case $ac_config_target in
24977     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24978     "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24979     "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24980     "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
24981     "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24982     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24983     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24984     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24985     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24986     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24987     "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
24988     "libs/Makelib.rules") CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
24989     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24990     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24991     "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24992     "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24993     "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24994     "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24995     "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24996     "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24997     "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24998     "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24999     "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
25000     "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
25001     "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
25002     "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
25003     "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
25004     "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
25005     "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
25006     "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
25007     "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
25008     "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
25009     "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
25010     "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
25011     "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
25012     "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
25013     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
25014     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
25015     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
25016     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
25017     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
25018     "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
25019     "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
25020     "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
25021     "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
25022     "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
25023     "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
25024     "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
25025     "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
25026     "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
25027     "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
25028     "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
25029     "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
25030     "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
25031     "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
25032     "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
25033     "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
25034     "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
25035     "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
25036     "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
25037     "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
25038     "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
25039     "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
25040     "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
25041     "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
25042     "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
25043     "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
25044     "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
25045     "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
25046     "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
25047     "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
25048     "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
25049     "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
25050     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
25051     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
25052     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
25053     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
25054     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
25055     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
25056     "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
25057     "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
25058     "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
25059     "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
25060     "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
25061     "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
25062     "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
25063     "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
25064     "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
25065     "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
25066     "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
25067     "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
25068     "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
25069     "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
25070     "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
25071     "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
25072     "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
25073     "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
25074     "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
25075     "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
25076     "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
25077     "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
25078     "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
25079     "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
25080     "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
25081     "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
25082     "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
25083     "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
25084     "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
25085     "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
25086     "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
25087     "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
25088     "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
25089     "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
25090     "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
25091     "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
25092     "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
25093     "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
25094     "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
25095     "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
25096     "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
25097     "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
25098     "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
25099     "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
25100     "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
25101     "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
25102     "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
25103     "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
25104     "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
25105     "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
25106     "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
25107     "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
25108     "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
25109     "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
25110     "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
25111     "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
25112     "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
25113     "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
25114     "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
25115     "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
25116     "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
25117     "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
25118     "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
25119     "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
25120     "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
25121     "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
25122     "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
25123     "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
25124     "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
25125     "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
25126     "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
25127     "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
25128     "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
25129     "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
25130     "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
25131     "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
25132     "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
25133     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
25134     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
25135     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
25136     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
25137     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
25138     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
25139     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
25140     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
25141     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
25142     "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
25143     "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
25144     "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
25145     "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
25146     "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
25147     "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
25148     "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
25149     "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
25150     "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
25151     "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
25152     "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
25153     "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
25154     "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
25155     "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
25156     "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
25157     "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
25158     "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
25159     "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
25160     "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
25161     "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
25162     "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
25163     "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
25164     "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
25165     "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
25166     "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
25167     "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
25168     "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
25169     "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
25170     "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
25171     "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
25172     "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
25173     "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
25174     "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
25175     "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
25176     "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
25177     "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
25178     "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
25179     "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
25180     "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
25181     "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
25182     "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
25183     "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
25184     "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
25185     "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
25186     "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
25187     "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
25188     "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
25189     "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
25190     "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
25191     "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
25192     "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
25193     "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
25194     "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
25195     "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
25196     "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
25197     "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
25198     "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
25199     "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
25200     "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
25201     "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
25202     "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
25203     "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
25204     "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
25205     "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
25206     "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
25207     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
25208     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
25209     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
25210     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
25211     "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
25212     "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
25213     "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
25214     "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
25215     "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
25216     "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
25217     "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
25218     "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
25219     "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
25220     "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
25221     "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
25222     "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
25223     "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
25224     "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
25225     "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
25226     "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
25227     "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
25228     "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
25229     "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
25230     "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
25231     "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
25232     "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
25233     "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
25234     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
25235     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25236     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
25237     "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
25238     "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
25239     "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
25240     "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
25241     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
25242     "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
25243     "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
25244     "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
25245     "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
25246     "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
25247     "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
25248     "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
25249     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
25250     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
25251     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
25252     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
25253     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
25254     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
25255     "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
25256     "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
25257     "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
25258     "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
25259     "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
25260     "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
25261     "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
25262     "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
25263     "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
25264     "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
25265     "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
25266     "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
25267     "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
25268     "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
25269     "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
25270     "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
25271     "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
25272     "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
25273     "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
25274     "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
25275     "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
25276     "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
25277     "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
25278     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
25279     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25280     "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
25281     "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
25282     "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
25283     "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
25284     "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
25285     "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
25286     "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
25287
25288   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25289 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25290    { (exit 1); exit 1; }; };;
25291   esac
25292 done
25293
25294
25295 # If the user did not use the arguments to specify the items to instantiate,
25296 # then the envvar interface is used.  Set only those that are not.
25297 # We use the long form for the default assignment because of an extremely
25298 # bizarre bug on SunOS 4.1.3.
25299 if $ac_need_defaults; then
25300   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25301   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25302   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25303 fi
25304
25305 # Have a temporary directory for convenience.  Make it in the build tree
25306 # simply because there is no reason against having it here, and in addition,
25307 # creating and moving files from /tmp can sometimes cause problems.
25308 # Hook for its removal unless debugging.
25309 # Note that there is a small window in which the directory will not be cleaned:
25310 # after its creation but before its name has been assigned to `$tmp'.
25311 $debug ||
25312 {
25313   tmp=
25314   trap 'exit_status=$?
25315   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25316 ' 0
25317   trap '{ (exit 1); exit 1; }' 1 2 13 15
25318 }
25319 # Create a (secure) tmp directory for tmp files.
25320
25321 {
25322   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25323   test -n "$tmp" && test -d "$tmp"
25324 }  ||
25325 {
25326   tmp=./conf$$-$RANDOM
25327   (umask 077 && mkdir "$tmp")
25328 } ||
25329 {
25330    echo "$me: cannot create a temporary directory in ." >&2
25331    { (exit 1); exit 1; }
25332 }
25333
25334 #
25335 # Set up the sed scripts for CONFIG_FILES section.
25336 #
25337
25338 # No need to generate the scripts if there are no CONFIG_FILES.
25339 # This happens for instance when ./config.status config.h
25340 if test -n "$CONFIG_FILES"; then
25341
25342 _ACEOF
25343
25344 # Create sed commands to just substitute file output variables.
25345
25346 # Remaining file output variables are in a fragment that also has non-file
25347 # output varibles.
25348
25349
25350
25351 ac_delim='%!_!# '
25352 for ac_last_try in false false false false false :; do
25353   cat >conf$$subs.sed <<_ACEOF
25354 SHELL!$SHELL$ac_delim
25355 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25356 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25357 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25358 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25359 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25360 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25361 exec_prefix!$exec_prefix$ac_delim
25362 prefix!$prefix$ac_delim
25363 program_transform_name!$program_transform_name$ac_delim
25364 bindir!$bindir$ac_delim
25365 sbindir!$sbindir$ac_delim
25366 libexecdir!$libexecdir$ac_delim
25367 datarootdir!$datarootdir$ac_delim
25368 datadir!$datadir$ac_delim
25369 sysconfdir!$sysconfdir$ac_delim
25370 sharedstatedir!$sharedstatedir$ac_delim
25371 localstatedir!$localstatedir$ac_delim
25372 includedir!$includedir$ac_delim
25373 oldincludedir!$oldincludedir$ac_delim
25374 docdir!$docdir$ac_delim
25375 infodir!$infodir$ac_delim
25376 htmldir!$htmldir$ac_delim
25377 dvidir!$dvidir$ac_delim
25378 pdfdir!$pdfdir$ac_delim
25379 psdir!$psdir$ac_delim
25380 libdir!$libdir$ac_delim
25381 localedir!$localedir$ac_delim
25382 mandir!$mandir$ac_delim
25383 DEFS!$DEFS$ac_delim
25384 ECHO_C!$ECHO_C$ac_delim
25385 ECHO_N!$ECHO_N$ac_delim
25386 ECHO_T!$ECHO_T$ac_delim
25387 LIBS!$LIBS$ac_delim
25388 build_alias!$build_alias$ac_delim
25389 host_alias!$host_alias$ac_delim
25390 target_alias!$target_alias$ac_delim
25391 build!$build$ac_delim
25392 build_cpu!$build_cpu$ac_delim
25393 build_vendor!$build_vendor$ac_delim
25394 build_os!$build_os$ac_delim
25395 host!$host$ac_delim
25396 host_cpu!$host_cpu$ac_delim
25397 host_vendor!$host_vendor$ac_delim
25398 host_os!$host_os$ac_delim
25399 WIN16_FILES!$WIN16_FILES$ac_delim
25400 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
25401 SET_MAKE!$SET_MAKE$ac_delim
25402 CC!$CC$ac_delim
25403 CFLAGS!$CFLAGS$ac_delim
25404 LDFLAGS!$LDFLAGS$ac_delim
25405 CPPFLAGS!$CPPFLAGS$ac_delim
25406 ac_ct_CC!$ac_ct_CC$ac_delim
25407 EXEEXT!$EXEEXT$ac_delim
25408 OBJEXT!$OBJEXT$ac_delim
25409 CXX!$CXX$ac_delim
25410 CXXFLAGS!$CXXFLAGS$ac_delim
25411 ac_ct_CXX!$ac_ct_CXX$ac_delim
25412 CPPBIN!$CPPBIN$ac_delim
25413 TOOLSDIR!$TOOLSDIR$ac_delim
25414 XMKMF!$XMKMF$ac_delim
25415 CPP!$CPP$ac_delim
25416 X_CFLAGS!$X_CFLAGS$ac_delim
25417 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25418 X_LIBS!$X_LIBS$ac_delim
25419 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25420 LEX!$LEX$ac_delim
25421 LEXLIB!$LEXLIB$ac_delim
25422 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
25423 XLEX!$XLEX$ac_delim
25424 BISON!$BISON$ac_delim
25425 AS!$AS$ac_delim
25426 ac_ct_AS!$ac_ct_AS$ac_delim
25427 LD!$LD$ac_delim
25428 AR!$AR$ac_delim
25429 RANLIB!$RANLIB$ac_delim
25430 STRIP!$STRIP$ac_delim
25431 WINDRES!$WINDRES$ac_delim
25432 LN_S!$LN_S$ac_delim
25433 _ACEOF
25434
25435   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
25436     break
25437   elif $ac_last_try; then
25438     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25439 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25440    { (exit 1); exit 1; }; }
25441   else
25442     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25443   fi
25444 done
25445
25446 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25447 if test -n "$ac_eof"; then
25448   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25449   ac_eof=`expr $ac_eof + 1`
25450 fi
25451
25452 cat >>$CONFIG_STATUS <<_ACEOF
25453 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25454 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25455 /^[      ]*@MAKE_RULES@[         ]*$/{
25456 r $MAKE_RULES
25457 d
25458 }
25459 /^[      ]*@MAKE_DLL_RULES@[     ]*$/{
25460 r $MAKE_DLL_RULES
25461 d
25462 }
25463 /^[      ]*@MAKE_IMPLIB_RULES@[  ]*$/{
25464 r $MAKE_IMPLIB_RULES
25465 d
25466 }
25467 /^[      ]*@MAKE_TEST_RULES@[    ]*$/{
25468 r $MAKE_TEST_RULES
25469 d
25470 }
25471 /^[      ]*@MAKE_LIB_RULES@[     ]*$/{
25472 r $MAKE_LIB_RULES
25473 d
25474 }
25475 /^[      ]*@MAKE_PROG_RULES@[    ]*$/{
25476 r $MAKE_PROG_RULES
25477 d
25478 }
25479 _ACEOF
25480 sed '
25481 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25482 s/^/s,@/; s/!/@,|#_!!_#|/
25483 :n
25484 t n
25485 s/'"$ac_delim"'$/,g/; t
25486 s/$/\\/; p
25487 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25488 ' >>$CONFIG_STATUS <conf$$subs.sed
25489 rm -f conf$$subs.sed
25490 cat >>$CONFIG_STATUS <<_ACEOF
25491 CEOF$ac_eof
25492 _ACEOF
25493
25494
25495 ac_delim='%!_!# '
25496 for ac_last_try in false false false false false :; do
25497   cat >conf$$subs.sed <<_ACEOF
25498 LN!$LN$ac_delim
25499 GREP!$GREP$ac_delim
25500 EGREP!$EGREP$ac_delim
25501 LDCONFIG!$LDCONFIG$ac_delim
25502 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25503 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25504 INSTALL_DATA!$INSTALL_DATA$ac_delim
25505 LINT!$LINT$ac_delim
25506 LINTFLAGS!$LINTFLAGS$ac_delim
25507 FONTFORGE!$FONTFORGE$ac_delim
25508 PKG_CONFIG!$PKG_CONFIG$ac_delim
25509 PRELINK!$PRELINK$ac_delim
25510 LIBPTHREAD!$LIBPTHREAD$ac_delim
25511 XLIB!$XLIB$ac_delim
25512 XFILES!$XFILES$ac_delim
25513 OPENGLFILES!$OPENGLFILES$ac_delim
25514 GLU32FILES!$GLU32FILES$ac_delim
25515 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
25516 GLUT_LIBS!$GLUT_LIBS$ac_delim
25517 GLUT32FILES!$GLUT32FILES$ac_delim
25518 NASLIBS!$NASLIBS$ac_delim
25519 XML2LIBS!$XML2LIBS$ac_delim
25520 XML2INCL!$XML2INCL$ac_delim
25521 XSLTLIBS!$XSLTLIBS$ac_delim
25522 XSLTINCL!$XSLTINCL$ac_delim
25523 HALINCL!$HALINCL$ac_delim
25524 CURSESLIBS!$CURSESLIBS$ac_delim
25525 sane_devel!$sane_devel$ac_delim
25526 SANELIBS!$SANELIBS$ac_delim
25527 SANEINCL!$SANEINCL$ac_delim
25528 gphoto2_devel!$gphoto2_devel$ac_delim
25529 gphoto2port_devel!$gphoto2port_devel$ac_delim
25530 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
25531 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
25532 ICULIBS!$ICULIBS$ac_delim
25533 RESOLVLIBS!$RESOLVLIBS$ac_delim
25534 LCMSLIBS!$LCMSLIBS$ac_delim
25535 LDAPLIBS!$LDAPLIBS$ac_delim
25536 FREETYPELIBS!$FREETYPELIBS$ac_delim
25537 FREETYPEINCL!$FREETYPEINCL$ac_delim
25538 ft_devel!$ft_devel$ac_delim
25539 ft_devel2!$ft_devel2$ac_delim
25540 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
25541 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
25542 ARTSLIBS!$ARTSLIBS$ac_delim
25543 ARTSINCL!$ARTSINCL$ac_delim
25544 ESDCONFIG!$ESDCONFIG$ac_delim
25545 ESDLIBS!$ESDLIBS$ac_delim
25546 ESDINCL!$ESDINCL$ac_delim
25547 ALSALIBS!$ALSALIBS$ac_delim
25548 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
25549 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
25550 BUILTINFLAG!$BUILTINFLAG$ac_delim
25551 DLLEXT!$DLLEXT$ac_delim
25552 DLLFLAGS!$DLLFLAGS$ac_delim
25553 DLLIBS!$DLLIBS$ac_delim
25554 LDSHARED!$LDSHARED$ac_delim
25555 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
25556 LIBEXT!$LIBEXT$ac_delim
25557 IMPLIBEXT!$IMPLIBEXT$ac_delim
25558 DLLTOOL!$DLLTOOL$ac_delim
25559 DLLWRAP!$DLLWRAP$ac_delim
25560 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
25561 LDEXERPATH!$LDEXERPATH$ac_delim
25562 LDDLLRPATH!$LDDLLRPATH$ac_delim
25563 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
25564 IOKITLIB!$IOKITLIB$ac_delim
25565 COREAUDIO!$COREAUDIO$ac_delim
25566 CROSSTEST!$CROSSTEST$ac_delim
25567 CROSSCC!$CROSSCC$ac_delim
25568 CROSSWINDRES!$CROSSWINDRES$ac_delim
25569 LDPATH!$LDPATH$ac_delim
25570 CRTLIBS!$CRTLIBS$ac_delim
25571 SOCKETLIBS!$SOCKETLIBS$ac_delim
25572 MAIN_BINARY!$MAIN_BINARY$ac_delim
25573 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
25574 LDD!$LDD$ac_delim
25575 LIBOBJS!$LIBOBJS$ac_delim
25576 LTLIBOBJS!$LTLIBOBJS$ac_delim
25577 _ACEOF
25578
25579   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
25580     break
25581   elif $ac_last_try; then
25582     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25583 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25584    { (exit 1); exit 1; }; }
25585   else
25586     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25587   fi
25588 done
25589
25590 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25591 if test -n "$ac_eof"; then
25592   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25593   ac_eof=`expr $ac_eof + 1`
25594 fi
25595
25596 cat >>$CONFIG_STATUS <<_ACEOF
25597 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25598 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25599 _ACEOF
25600 sed '
25601 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25602 s/^/s,@/; s/!/@,|#_!!_#|/
25603 :n
25604 t n
25605 s/'"$ac_delim"'$/,g/; t
25606 s/$/\\/; p
25607 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25608 ' >>$CONFIG_STATUS <conf$$subs.sed
25609 rm -f conf$$subs.sed
25610 cat >>$CONFIG_STATUS <<_ACEOF
25611 :end
25612 s/|#_!!_#|//g
25613 CEOF$ac_eof
25614 _ACEOF
25615
25616
25617 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25618 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25619 # trailing colons and then remove the whole line if VPATH becomes empty
25620 # (actually we leave an empty line to preserve line numbers).
25621 if test "x$srcdir" = x.; then
25622   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25623 s/:*\$(srcdir):*/:/
25624 s/:*\${srcdir}:*/:/
25625 s/:*@srcdir@:*/:/
25626 s/^\([^=]*=[     ]*\):*/\1/
25627 s/:*$//
25628 s/^[^=]*=[       ]*$//
25629 }'
25630 fi
25631
25632 cat >>$CONFIG_STATUS <<\_ACEOF
25633 fi # test -n "$CONFIG_FILES"
25634
25635
25636 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25637 do
25638   case $ac_tag in
25639   :[FHLC]) ac_mode=$ac_tag; continue;;
25640   esac
25641   case $ac_mode$ac_tag in
25642   :[FHL]*:*);;
25643   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25644 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25645    { (exit 1); exit 1; }; };;
25646   :[FH]-) ac_tag=-:-;;
25647   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25648   esac
25649   ac_save_IFS=$IFS
25650   IFS=:
25651   set x $ac_tag
25652   IFS=$ac_save_IFS
25653   shift
25654   ac_file=$1
25655   shift
25656
25657   case $ac_mode in
25658   :L) ac_source=$1;;
25659   :[FH])
25660     ac_file_inputs=
25661     for ac_f
25662     do
25663       case $ac_f in
25664       -) ac_f="$tmp/stdin";;
25665       *) # Look for the file first in the build tree, then in the source tree
25666          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25667          # because $ac_f cannot contain `:'.
25668          test -f "$ac_f" ||
25669            case $ac_f in
25670            [\\/$]*) false;;
25671            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25672            esac ||
25673            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25674 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25675    { (exit 1); exit 1; }; };;
25676       esac
25677       ac_file_inputs="$ac_file_inputs $ac_f"
25678     done
25679
25680     # Let's still pretend it is `configure' which instantiates (i.e., don't
25681     # use $as_me), people would be surprised to read:
25682     #    /* config.h.  Generated by config.status.  */
25683     configure_input="Generated from "`IFS=:
25684           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25685     if test x"$ac_file" != x-; then
25686       configure_input="$ac_file.  $configure_input"
25687       { echo "$as_me:$LINENO: creating $ac_file" >&5
25688 echo "$as_me: creating $ac_file" >&6;}
25689     fi
25690
25691     case $ac_tag in
25692     *:-:* | *:-) cat >"$tmp/stdin";;
25693     esac
25694     ;;
25695   esac
25696
25697   ac_dir=`$as_dirname -- "$ac_file" ||
25698 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25699          X"$ac_file" : 'X\(//\)[^/]' \| \
25700          X"$ac_file" : 'X\(//\)$' \| \
25701          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25702 echo X"$ac_file" |
25703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25704             s//\1/
25705             q
25706           }
25707           /^X\(\/\/\)[^/].*/{
25708             s//\1/
25709             q
25710           }
25711           /^X\(\/\/\)$/{
25712             s//\1/
25713             q
25714           }
25715           /^X\(\/\).*/{
25716             s//\1/
25717             q
25718           }
25719           s/.*/./; q'`
25720   { as_dir="$ac_dir"
25721   case $as_dir in #(
25722   -*) as_dir=./$as_dir;;
25723   esac
25724   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25725     as_dirs=
25726     while :; do
25727       case $as_dir in #(
25728       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25729       *) as_qdir=$as_dir;;
25730       esac
25731       as_dirs="'$as_qdir' $as_dirs"
25732       as_dir=`$as_dirname -- "$as_dir" ||
25733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25734          X"$as_dir" : 'X\(//\)[^/]' \| \
25735          X"$as_dir" : 'X\(//\)$' \| \
25736          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25737 echo X"$as_dir" |
25738     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25739             s//\1/
25740             q
25741           }
25742           /^X\(\/\/\)[^/].*/{
25743             s//\1/
25744             q
25745           }
25746           /^X\(\/\/\)$/{
25747             s//\1/
25748             q
25749           }
25750           /^X\(\/\).*/{
25751             s//\1/
25752             q
25753           }
25754           s/.*/./; q'`
25755       test -d "$as_dir" && break
25756     done
25757     test -z "$as_dirs" || eval "mkdir $as_dirs"
25758   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25759 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25760    { (exit 1); exit 1; }; }; }
25761   ac_builddir=.
25762
25763 case "$ac_dir" in
25764 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25765 *)
25766   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25767   # A ".." for each directory in $ac_dir_suffix.
25768   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25769   case $ac_top_builddir_sub in
25770   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25771   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25772   esac ;;
25773 esac
25774 ac_abs_top_builddir=$ac_pwd
25775 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25776 # for backward compatibility:
25777 ac_top_builddir=$ac_top_build_prefix
25778
25779 case $srcdir in
25780   .)  # We are building in place.
25781     ac_srcdir=.
25782     ac_top_srcdir=$ac_top_builddir_sub
25783     ac_abs_top_srcdir=$ac_pwd ;;
25784   [\\/]* | ?:[\\/]* )  # Absolute name.
25785     ac_srcdir=$srcdir$ac_dir_suffix;
25786     ac_top_srcdir=$srcdir
25787     ac_abs_top_srcdir=$srcdir ;;
25788   *) # Relative name.
25789     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25790     ac_top_srcdir=$ac_top_build_prefix$srcdir
25791     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25792 esac
25793 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25794
25795
25796   case $ac_mode in
25797   :F)
25798   #
25799   # CONFIG_FILE
25800   #
25801
25802   case $INSTALL in
25803   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25804   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25805   esac
25806 _ACEOF
25807
25808 cat >>$CONFIG_STATUS <<\_ACEOF
25809 # If the template does not know about datarootdir, expand it.
25810 # FIXME: This hack should be removed a few years after 2.60.
25811 ac_datarootdir_hack=; ac_datarootdir_seen=
25812
25813 case `sed -n '/datarootdir/ {
25814   p
25815   q
25816 }
25817 /@datadir@/p
25818 /@docdir@/p
25819 /@infodir@/p
25820 /@localedir@/p
25821 /@mandir@/p
25822 ' $ac_file_inputs` in
25823 *datarootdir*) ac_datarootdir_seen=yes;;
25824 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25825   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25826 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25827 _ACEOF
25828 cat >>$CONFIG_STATUS <<_ACEOF
25829   ac_datarootdir_hack='
25830   s&@datadir@&$datadir&g
25831   s&@docdir@&$docdir&g
25832   s&@infodir@&$infodir&g
25833   s&@localedir@&$localedir&g
25834   s&@mandir@&$mandir&g
25835     s&\\\${datarootdir}&$datarootdir&g' ;;
25836 esac
25837 _ACEOF
25838
25839 # Neutralize VPATH when `$srcdir' = `.'.
25840 # Shell code in configure.ac might set extrasub.
25841 # FIXME: do we really want to maintain this feature?
25842 cat >>$CONFIG_STATUS <<_ACEOF
25843   sed "$ac_vpsub
25844 $extrasub
25845 _ACEOF
25846 cat >>$CONFIG_STATUS <<\_ACEOF
25847 :t
25848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25849 s&@configure_input@&$configure_input&;t t
25850 s&@top_builddir@&$ac_top_builddir_sub&;t t
25851 s&@srcdir@&$ac_srcdir&;t t
25852 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25853 s&@top_srcdir@&$ac_top_srcdir&;t t
25854 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25855 s&@builddir@&$ac_builddir&;t t
25856 s&@abs_builddir@&$ac_abs_builddir&;t t
25857 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25858 s&@INSTALL@&$ac_INSTALL&;t t
25859 $ac_datarootdir_hack
25860 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25861
25862 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25863   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25864   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25865   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25866 which seems to be undefined.  Please make sure it is defined." >&5
25867 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25868 which seems to be undefined.  Please make sure it is defined." >&2;}
25869
25870   rm -f "$tmp/stdin"
25871   case $ac_file in
25872   -) cat "$tmp/out"; rm -f "$tmp/out";;
25873   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25874   esac
25875  ;;
25876   :H)
25877   #
25878   # CONFIG_HEADER
25879   #
25880 _ACEOF
25881
25882 # Transform confdefs.h into a sed script `conftest.defines', that
25883 # substitutes the proper values into config.h.in to produce config.h.
25884 rm -f conftest.defines conftest.tail
25885 # First, append a space to every undef/define line, to ease matching.
25886 echo 's/$/ /' >conftest.defines
25887 # Then, protect against being on the right side of a sed subst, or in
25888 # an unquoted here document, in config.status.  If some macros were
25889 # called several times there might be several #defines for the same
25890 # symbol, which is useless.  But do not sort them, since the last
25891 # AC_DEFINE must be honored.
25892 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25893 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25894 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25895 # PARAMS is the parameter list in the macro definition--in most cases, it's
25896 # just an empty string.
25897 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25898 ac_dB='\\)[      (].*,\\1define\\2'
25899 ac_dC=' '
25900 ac_dD=' ,'
25901
25902 uniq confdefs.h |
25903   sed -n '
25904         t rset
25905         :rset
25906         s/^[     ]*#[    ]*define[       ][      ]*//
25907         t ok
25908         d
25909         :ok
25910         s/[\\&,]/\\&/g
25911         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25912         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25913   ' >>conftest.defines
25914
25915 # Remove the space that was appended to ease matching.
25916 # Then replace #undef with comments.  This is necessary, for
25917 # example, in the case of _POSIX_SOURCE, which is predefined and required
25918 # on some systems where configure will not decide to define it.
25919 # (The regexp can be short, since the line contains either #define or #undef.)
25920 echo 's/ $//
25921 s,^[     #]*u.*,/* & */,' >>conftest.defines
25922
25923 # Break up conftest.defines:
25924 ac_max_sed_lines=50
25925
25926 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25927 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25928 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25929 # et cetera.
25930 ac_in='$ac_file_inputs'
25931 ac_out='"$tmp/out1"'
25932 ac_nxt='"$tmp/out2"'
25933
25934 while :
25935 do
25936   # Write a here document:
25937     cat >>$CONFIG_STATUS <<_ACEOF
25938     # First, check the format of the line:
25939     cat >"\$tmp/defines.sed" <<\\CEOF
25940 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25941 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25942 b
25943 :def
25944 _ACEOF
25945   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25946   echo 'CEOF
25947     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25948   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25949   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25950   grep . conftest.tail >/dev/null || break
25951   rm -f conftest.defines
25952   mv conftest.tail conftest.defines
25953 done
25954 rm -f conftest.defines conftest.tail
25955
25956 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25957 cat >>$CONFIG_STATUS <<\_ACEOF
25958   if test x"$ac_file" != x-; then
25959     echo "/* $configure_input  */" >"$tmp/config.h"
25960     cat "$ac_result" >>"$tmp/config.h"
25961     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25962       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25963 echo "$as_me: $ac_file is unchanged" >&6;}
25964     else
25965       rm -f $ac_file
25966       mv "$tmp/config.h" $ac_file
25967     fi
25968   else
25969     echo "/* $configure_input  */"
25970     cat "$ac_result"
25971   fi
25972   rm -f "$tmp/out12"
25973  ;;
25974
25975   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25976 echo "$as_me: executing $ac_file commands" >&6;}
25977  ;;
25978   esac
25979
25980
25981   case $ac_file$ac_mode in
25982     "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25983 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25984     "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25985 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25986     "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
25987 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
25988     "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25989 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25990     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25991 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25992     "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25993 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25994
25995   esac
25996 done # for ac_tag
25997
25998
25999 { (exit 0); exit 0; }
26000 _ACEOF
26001 chmod +x $CONFIG_STATUS
26002 ac_clean_files=$ac_clean_files_save
26003
26004
26005 # configure is writing to config.log, and then calls config.status.
26006 # config.status does its own redirection, appending to config.log.
26007 # Unfortunately, on DOS this fails, as config.log is still kept open
26008 # by configure, so config.status won't be able to write to it; its
26009 # output is simply discarded.  So we exec the FD to /dev/null,
26010 # effectively closing config.log, so it can be properly (re)opened and
26011 # appended to by config.status.  When coming back to configure, we
26012 # need to make the FD available again.
26013 if test "$no_create" != yes; then
26014   ac_cs_success=:
26015   ac_config_status_args=
26016   test "$silent" = yes &&
26017     ac_config_status_args="$ac_config_status_args --quiet"
26018   exec 5>/dev/null
26019   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26020   exec 5>>config.log
26021   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26022   # would make configure fail if this is the last instruction.
26023   $ac_cs_success || { (exit 1); exit 1; }
26024 fi
26025
26026
26027 if test "$have_x" = "no"
26028 then
26029   echo >&2
26030   { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
26031 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
26032   { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
26033 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
26034   { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
26035 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
26036   { echo "$as_me:$LINENO: WARNING:  packages of Xlib/Xfree86 at the very least." >&5
26037 echo "$as_me: WARNING:  packages of Xlib/Xfree86 at the very least." >&2;}
26038 fi
26039
26040 if test "$wine_cv_opengl_version_OK" = "no"
26041 then
26042   echo >&2
26043   { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5
26044 echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;}
26045   { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
26046 echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
26047 fi
26048
26049 if test "$wine_cv_msg_freetype" = "yes"
26050 then
26051   echo >&2
26052   { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
26053 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
26054   { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
26055 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
26056   { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
26057 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
26058   { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
26059 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
26060 fi
26061
26062 if test -z "$FONTSSUBDIRS"
26063 then
26064   echo >&2
26065   if test "$FONTFORGE" = "false"
26066   then
26067     { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
26068 echo "$as_me: WARNING: FontForge is missing." >&2;}
26069   else
26070     { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
26071 echo "$as_me: WARNING: FreeType is missing." >&2;}
26072   fi
26073   { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
26074 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
26075 fi
26076
26077 if test -z "$ALSALIBS" -a \
26078         -z "$ARTSC_LIBS" -a \
26079         -z "$AUDIOIOLIBS" -a \
26080         -z "$NASLIBS" -a \
26081         -z "$ESD_LIBS" -a \
26082         -z "$ac_cv_lib_soname_jack" -a \
26083         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
26084         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
26085         "$ac_cv_header_soundcard_h" != "yes"
26086 then
26087   echo >&2
26088   { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
26089 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
26090   { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
26091 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
26092   { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
26093 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
26094 fi
26095
26096 echo
26097 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
26098 echo
26099