configure: Fix OpenCL includes on systems with only CL/cl.h.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Wine 1.3.10.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.3.10'
556 PACKAGE_STRING='Wine 1.3.10'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
559
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 ALL_TEST_BINARIES
600 ALL_WINETEST_DEPENDS
601 LDAPLIBS
602 LIBPOLL
603 LIBDL
604 EXTRA_BINARIES
605 MAIN_BINARY
606 SOCKETLIBS
607 CRTLIBS
608 TOOLSEXT
609 LDPATH
610 UNWINDFLAGS
611 BUILTINFLAG
612 EXTRACFLAGS
613 LIBKSTAT
614 LIBOPENAL
615 LIBMPG123
616 PNGINCL
617 FONTCONFIGINCL
618 CUPSINCL
619 ALSALIBS
620 GSTREAMER_INCL
621 GSTREAMER_LIBS
622 ESDLIBS
623 ESDINCL
624 ESDCONFIG
625 ZLIB
626 FREETYPEINCL
627 FREETYPELIBS
628 ft_devel
629 LCMSLIBS
630 RESOLVLIBS
631 GPHOTO2INCL
632 GPHOTO2LIBS
633 gphoto2port_devel
634 gphoto2_devel
635 SANEINCL
636 sane_devel
637 GNUTLSINCL
638 HALINCL
639 XSLTINCL
640 XML2INCL
641 XML2LIBS
642 NASLIBS
643 X_EXTRA_LIBS
644 X_LIBS
645 X_PRE_LIBS
646 X_CFLAGS
647 XMKMF
648 LIBPTHREAD
649 CROSSTARGET
650 CROSSCC
651 CROSSTEST_DISABLE
652 PRELINK
653 CARBONLIB
654 LIBOPENCL
655 FRAMEWORK_OPENAL
656 COREAUDIO
657 DISKARBITRATIONLIB
658 LDEXECFLAGS
659 QUICKTIMELIB
660 IOKITLIB
661 COREFOUNDATIONLIB
662 SECURITYLIB
663 DLLWRAP
664 DLLTOOL
665 LDD
666 LDRPATH_LOCAL
667 LDRPATH_INSTALL
668 IMPLIBEXT
669 LIBEXT
670 LDDLLFLAGS
671 LDSHARED
672 DLLFLAGS
673 DLLEXT
674 CPP
675 OPENGL_LIBS
676 XLIB
677 MAINTAINER_MODE
678 ICOTOOL
679 CONVERT
680 RSVG
681 PKG_CONFIG
682 FONTFORGE
683 LINTFLAGS
684 LINT
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 LDCONFIG
689 EGREP
690 GREP
691 LN_S
692 STRIP
693 RANLIB
694 ARFLAGS
695 ac_ct_AR
696 AR
697 BISON
698 FLEX
699 TOOLSDIR
700 WOW64_DISABLE
701 TARGETFLAGS
702 CPPBIN
703 ac_ct_CXX
704 CXXFLAGS
705 CXX
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
712 CC
713 SET_MAKE
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files='MAKE_RULES
761 MAKE_TEST_RULES
762 MAKE_DLL_RULES
763 MAKE_IMPLIB_RULES
764 MAKE_PROG_RULES'
765 ac_user_opts='
766 enable_option_checking
767 enable_win16
768 enable_win64
769 enable_tests
770 enable_maintainer_mode
771 with_alsa
772 with_capi
773 with_cms
774 with_coreaudio
775 with_cups
776 with_curses
777 with_esd
778 with_fontconfig
779 with_freetype
780 with_gphoto
781 with_glu
782 with_gnutls
783 with_gsm
784 with_gstreamer
785 with_hal
786 with_icns
787 with_jack
788 with_jpeg
789 with_ldap
790 with_mpg123
791 with_nas
792 with_openal
793 with_opencl
794 with_opengl
795 with_openssl
796 with_oss
797 with_png
798 with_pthread
799 with_sane
800 with_tiff
801 with_v4l
802 with_xcomposite
803 with_xcursor
804 with_xinerama
805 with_xinput
806 with_xml
807 with_xrandr
808 with_xrender
809 with_xshape
810 with_xshm
811 with_xslt
812 with_xxf86vm
813 with_wine_tools
814 with_wine64
815 enable_largefile
816 with_x
817 '
818       ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 LIBS
825 CPPFLAGS
826 CXX
827 CXXFLAGS
828 CCC
829 CPP
830 XMKMF'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885   # If the previous option needs an argument, assign it.
886   if test -n "$ac_prev"; then
887     eval $ac_prev=\$ac_option
888     ac_prev=
889     continue
890   fi
891
892   case $ac_option in
893   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894   *=)   ac_optarg= ;;
895   *)    ac_optarg=yes ;;
896   esac
897
898   # Accept the important Cygnus configure options, so we can diagnose typos.
899
900   case $ac_dashdash$ac_option in
901   --)
902     ac_dashdash=yes ;;
903
904   -bindir | --bindir | --bindi | --bind | --bin | --bi)
905     ac_prev=bindir ;;
906   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907     bindir=$ac_optarg ;;
908
909   -build | --build | --buil | --bui | --bu)
910     ac_prev=build_alias ;;
911   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912     build_alias=$ac_optarg ;;
913
914   -cache-file | --cache-file | --cache-fil | --cache-fi \
915   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916     ac_prev=cache_file ;;
917   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919     cache_file=$ac_optarg ;;
920
921   --config-cache | -C)
922     cache_file=config.cache ;;
923
924   -datadir | --datadir | --datadi | --datad)
925     ac_prev=datadir ;;
926   -datadir=* | --datadir=* | --datadi=* | --datad=*)
927     datadir=$ac_optarg ;;
928
929   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930   | --dataroo | --dataro | --datar)
931     ac_prev=datarootdir ;;
932   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934     datarootdir=$ac_optarg ;;
935
936   -disable-* | --disable-*)
937     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940       as_fn_error $? "invalid feature name: $ac_useropt"
941     ac_useropt_orig=$ac_useropt
942     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943     case $ac_user_opts in
944       *"
945 "enable_$ac_useropt"
946 "*) ;;
947       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948          ac_unrecognized_sep=', ';;
949     esac
950     eval enable_$ac_useropt=no ;;
951
952   -docdir | --docdir | --docdi | --doc | --do)
953     ac_prev=docdir ;;
954   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955     docdir=$ac_optarg ;;
956
957   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958     ac_prev=dvidir ;;
959   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960     dvidir=$ac_optarg ;;
961
962   -enable-* | --enable-*)
963     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964     # Reject names that are not valid shell variable names.
965     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966       as_fn_error $? "invalid feature name: $ac_useropt"
967     ac_useropt_orig=$ac_useropt
968     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969     case $ac_user_opts in
970       *"
971 "enable_$ac_useropt"
972 "*) ;;
973       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974          ac_unrecognized_sep=', ';;
975     esac
976     eval enable_$ac_useropt=\$ac_optarg ;;
977
978   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980   | --exec | --exe | --ex)
981     ac_prev=exec_prefix ;;
982   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984   | --exec=* | --exe=* | --ex=*)
985     exec_prefix=$ac_optarg ;;
986
987   -gas | --gas | --ga | --g)
988     # Obsolete; use --with-gas.
989     with_gas=yes ;;
990
991   -help | --help | --hel | --he | -h)
992     ac_init_help=long ;;
993   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994     ac_init_help=recursive ;;
995   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996     ac_init_help=short ;;
997
998   -host | --host | --hos | --ho)
999     ac_prev=host_alias ;;
1000   -host=* | --host=* | --hos=* | --ho=*)
1001     host_alias=$ac_optarg ;;
1002
1003   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004     ac_prev=htmldir ;;
1005   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006   | --ht=*)
1007     htmldir=$ac_optarg ;;
1008
1009   -includedir | --includedir | --includedi | --included | --include \
1010   | --includ | --inclu | --incl | --inc)
1011     ac_prev=includedir ;;
1012   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013   | --includ=* | --inclu=* | --incl=* | --inc=*)
1014     includedir=$ac_optarg ;;
1015
1016   -infodir | --infodir | --infodi | --infod | --info | --inf)
1017     ac_prev=infodir ;;
1018   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019     infodir=$ac_optarg ;;
1020
1021   -libdir | --libdir | --libdi | --libd)
1022     ac_prev=libdir ;;
1023   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024     libdir=$ac_optarg ;;
1025
1026   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027   | --libexe | --libex | --libe)
1028     ac_prev=libexecdir ;;
1029   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030   | --libexe=* | --libex=* | --libe=*)
1031     libexecdir=$ac_optarg ;;
1032
1033   -localedir | --localedir | --localedi | --localed | --locale)
1034     ac_prev=localedir ;;
1035   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036     localedir=$ac_optarg ;;
1037
1038   -localstatedir | --localstatedir | --localstatedi | --localstated \
1039   | --localstate | --localstat | --localsta | --localst | --locals)
1040     ac_prev=localstatedir ;;
1041   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043     localstatedir=$ac_optarg ;;
1044
1045   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046     ac_prev=mandir ;;
1047   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048     mandir=$ac_optarg ;;
1049
1050   -nfp | --nfp | --nf)
1051     # Obsolete; use --without-fp.
1052     with_fp=no ;;
1053
1054   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055   | --no-cr | --no-c | -n)
1056     no_create=yes ;;
1057
1058   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060     no_recursion=yes ;;
1061
1062   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064   | --oldin | --oldi | --old | --ol | --o)
1065     ac_prev=oldincludedir ;;
1066   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069     oldincludedir=$ac_optarg ;;
1070
1071   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072     ac_prev=prefix ;;
1073   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074     prefix=$ac_optarg ;;
1075
1076   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077   | --program-pre | --program-pr | --program-p)
1078     ac_prev=program_prefix ;;
1079   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081     program_prefix=$ac_optarg ;;
1082
1083   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084   | --program-suf | --program-su | --program-s)
1085     ac_prev=program_suffix ;;
1086   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088     program_suffix=$ac_optarg ;;
1089
1090   -program-transform-name | --program-transform-name \
1091   | --program-transform-nam | --program-transform-na \
1092   | --program-transform-n | --program-transform- \
1093   | --program-transform | --program-transfor \
1094   | --program-transfo | --program-transf \
1095   | --program-trans | --program-tran \
1096   | --progr-tra | --program-tr | --program-t)
1097     ac_prev=program_transform_name ;;
1098   -program-transform-name=* | --program-transform-name=* \
1099   | --program-transform-nam=* | --program-transform-na=* \
1100   | --program-transform-n=* | --program-transform-=* \
1101   | --program-transform=* | --program-transfor=* \
1102   | --program-transfo=* | --program-transf=* \
1103   | --program-trans=* | --program-tran=* \
1104   | --progr-tra=* | --program-tr=* | --program-t=*)
1105     program_transform_name=$ac_optarg ;;
1106
1107   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108     ac_prev=pdfdir ;;
1109   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110     pdfdir=$ac_optarg ;;
1111
1112   -psdir | --psdir | --psdi | --psd | --ps)
1113     ac_prev=psdir ;;
1114   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115     psdir=$ac_optarg ;;
1116
1117   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118   | -silent | --silent | --silen | --sile | --sil)
1119     silent=yes ;;
1120
1121   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122     ac_prev=sbindir ;;
1123   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124   | --sbi=* | --sb=*)
1125     sbindir=$ac_optarg ;;
1126
1127   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129   | --sharedst | --shareds | --shared | --share | --shar \
1130   | --sha | --sh)
1131     ac_prev=sharedstatedir ;;
1132   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135   | --sha=* | --sh=*)
1136     sharedstatedir=$ac_optarg ;;
1137
1138   -site | --site | --sit)
1139     ac_prev=site ;;
1140   -site=* | --site=* | --sit=*)
1141     site=$ac_optarg ;;
1142
1143   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144     ac_prev=srcdir ;;
1145   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146     srcdir=$ac_optarg ;;
1147
1148   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149   | --syscon | --sysco | --sysc | --sys | --sy)
1150     ac_prev=sysconfdir ;;
1151   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153     sysconfdir=$ac_optarg ;;
1154
1155   -target | --target | --targe | --targ | --tar | --ta | --t)
1156     ac_prev=target_alias ;;
1157   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158     target_alias=$ac_optarg ;;
1159
1160   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161     verbose=yes ;;
1162
1163   -version | --version | --versio | --versi | --vers | -V)
1164     ac_init_version=: ;;
1165
1166   -with-* | --with-*)
1167     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168     # Reject names that are not valid shell variable names.
1169     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170       as_fn_error $? "invalid package name: $ac_useropt"
1171     ac_useropt_orig=$ac_useropt
1172     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173     case $ac_user_opts in
1174       *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178          ac_unrecognized_sep=', ';;
1179     esac
1180     eval with_$ac_useropt=\$ac_optarg ;;
1181
1182   -without-* | --without-*)
1183     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186       as_fn_error $? "invalid package name: $ac_useropt"
1187     ac_useropt_orig=$ac_useropt
1188     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189     case $ac_user_opts in
1190       *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194          ac_unrecognized_sep=', ';;
1195     esac
1196     eval with_$ac_useropt=no ;;
1197
1198   --x)
1199     # Obsolete; use --with-x.
1200     with_x=yes ;;
1201
1202   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203   | --x-incl | --x-inc | --x-in | --x-i)
1204     ac_prev=x_includes ;;
1205   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207     x_includes=$ac_optarg ;;
1208
1209   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211     ac_prev=x_libraries ;;
1212   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214     x_libraries=$ac_optarg ;;
1215
1216   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1218     ;;
1219
1220   *=*)
1221     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222     # Reject names that are not valid shell variable names.
1223     case $ac_envvar in #(
1224       '' | [0-9]* | *[!_$as_cr_alnum]* )
1225       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226     esac
1227     eval $ac_envvar=\$ac_optarg
1228     export $ac_envvar ;;
1229
1230   *)
1231     # FIXME: should be removed in autoconf 3.0.
1232     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1236     ;;
1237
1238   esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243   as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247   case $enable_option_checking in
1248     no) ;;
1249     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251   esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256                 datadir sysconfdir sharedstatedir localstatedir includedir \
1257                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258                 libdir localedir mandir
1259 do
1260   eval ac_val=\$$ac_var
1261   # Remove trailing slashes.
1262   case $ac_val in
1263     */ )
1264       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265       eval $ac_var=\$ac_val;;
1266   esac
1267   # Be sure to have absolute directory names.
1268   case $ac_val in
1269     [\\/$]* | ?:[\\/]* )  continue;;
1270     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271   esac
1272   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284   if test "x$build_alias" = x; then
1285     cross_compiling=maybe
1286     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1287     If a cross compiler is detected then cross compile mode will be used" >&2
1288   elif test "x$build_alias" != "x$host_alias"; then
1289     cross_compiling=yes
1290   fi
1291 fi
1292
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296 test "$silent" = yes && exec 6>/dev/null
1297
1298
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302   as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304   as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309   ac_srcdir_defaulted=yes
1310   # Try the directory containing this script, then the parent directory.
1311   ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313          X"$as_myself" : 'X\(//\)[^/]' \| \
1314          X"$as_myself" : 'X\(//\)$' \| \
1315          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\/\)[^/].*/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\/\)$/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\).*/{
1330             s//\1/
1331             q
1332           }
1333           s/.*/./; q'`
1334   srcdir=$ac_confdir
1335   if test ! -r "$srcdir/$ac_unique_file"; then
1336     srcdir=..
1337   fi
1338 else
1339   ac_srcdir_defaulted=no
1340 fi
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344 fi
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348         pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351   srcdir=.
1352 fi
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361   eval ac_env_${ac_var}_value=\$${ac_var}
1362   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370   # Omit some internal or obsolete options to make the list less imposing.
1371   # This message is too long to be a string in the A/UX 3.1 sh.
1372   cat <<_ACEOF
1373 \`configure' configures Wine 1.3.10 to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE.  See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383   -h, --help              display this help and exit
1384       --help=short        display options specific to this package
1385       --help=recursive    display the short help of all the included packages
1386   -V, --version           display version information and exit
1387   -q, --quiet, --silent   do not print \`checking ...' messages
1388       --cache-file=FILE   cache test results in FILE [disabled]
1389   -C, --config-cache      alias for \`--cache-file=config.cache'
1390   -n, --no-create         do not create output files
1391       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1392
1393 Installation directories:
1394   --prefix=PREFIX         install architecture-independent files in PREFIX
1395                           [$ac_default_prefix]
1396   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1397                           [PREFIX]
1398
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407   --bindir=DIR            user executables [EPREFIX/bin]
1408   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1409   --libexecdir=DIR        program executables [EPREFIX/libexec]
1410   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1411   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1412   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1413   --libdir=DIR            object code libraries [EPREFIX/lib]
1414   --includedir=DIR        C header files [PREFIX/include]
1415   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1416   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1417   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1418   --infodir=DIR           info documentation [DATAROOTDIR/info]
1419   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1420   --mandir=DIR            man documentation [DATAROOTDIR/man]
1421   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1422   --htmldir=DIR           html documentation [DOCDIR]
1423   --dvidir=DIR            dvi documentation [DOCDIR]
1424   --pdfdir=DIR            pdf documentation [DOCDIR]
1425   --psdir=DIR             ps documentation [DOCDIR]
1426 _ACEOF
1427
1428   cat <<\_ACEOF
1429
1430 X features:
1431   --x-includes=DIR    X include files are in DIR
1432   --x-libraries=DIR   X library files are in DIR
1433
1434 System types:
1435   --build=BUILD     configure for building on BUILD [guessed]
1436   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441   case $ac_init_help in
1442      short | recursive ) echo "Configuration of Wine 1.3.10:";;
1443    esac
1444   cat <<\_ACEOF
1445
1446 Optional Features:
1447   --disable-option-checking  ignore unrecognized --enable/--with options
1448   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1449   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1450   --disable-win16         do not include Win16 support
1451   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1452                           binaries)
1453   --disable-tests         do not build the regression tests
1454   --enable-maintainer-mode
1455                           enable maintainer-specific build rules
1456   --disable-largefile     omit support for large files
1457
1458 Optional Packages:
1459   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461   --without-alsa          do not use the Alsa sound support
1462   --without-capi          do not use CAPI (ISDN support)
1463   --without-cms           do not use CMS (color management support)
1464   --without-coreaudio     do not use the CoreAudio sound support
1465   --without-cups          do not use CUPS
1466   --without-curses        do not use (n)curses
1467   --without-esd           do not use the EsounD sound support
1468   --without-fontconfig    do not use fontconfig
1469   --without-freetype      do not use the FreeType library
1470   --without-gphoto        do not use gphoto (Digital Camera support)
1471   --without-glu           do not use the GLU library
1472   --without-gnutls        do not use GnuTLS (schannel support)
1473   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1474   --without-gstreamer     do not use GStreamer (codecs support)
1475   --without-hal           do not use HAL (dynamic device support)
1476   --without-icns          do not use ICNS icon support
1477   --without-jack          do not use the Jack sound support
1478   --without-jpeg          do not use JPEG
1479   --without-ldap          do not use LDAP
1480   --without-mpg123        do not use the mpg123 library
1481   --without-nas           do not use the NAS sound support
1482   --without-openal        do not use OpenAL
1483   --without-opencl        do not use OpenCL
1484   --without-opengl        do not use OpenGL
1485   --without-openssl       do not use OpenSSL
1486   --without-oss           do not use the OSS sound support
1487   --without-png           do not use PNG
1488   --without-pthread       do not use the pthread library
1489   --without-sane          do not use SANE (scanner support)
1490   --without-tiff          do not use TIFF
1491   --without-v4l           do not use v4l1 (v4l support)
1492   --without-xcomposite    do not use the Xcomposite extension
1493   --without-xcursor       do not use the Xcursor extension
1494   --without-xinerama      do not use Xinerama (multi-monitor support)
1495   --without-xinput        do not use the Xinput extension
1496   --without-xml           do not use XML
1497   --without-xrandr        do not use Xrandr (resolution changes)
1498   --without-xrender       do not use the Xrender extension
1499   --without-xshape        do not use the Xshape extension
1500   --without-xshm          do not use XShm (shared memory extension)
1501   --without-xslt          do not use XSLT
1502   --without-xxf86vm       do not use XFree video mode extension
1503   --with-wine-tools=DIR   use Wine tools from directory DIR
1504   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1505   --with-x                use the X Window System
1506
1507 Some influential environment variables:
1508   CC          C compiler command
1509   CFLAGS      C compiler flags
1510   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1511               nonstandard directory <lib dir>
1512   LIBS        libraries to pass to the linker, e.g. -l<library>
1513   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1514               you have headers in a nonstandard directory <include dir>
1515   CXX         C++ compiler command
1516   CXXFLAGS    C++ compiler flags
1517   CPP         C preprocessor
1518   XMKMF       Path to xmkmf, Makefile generator for X Window System
1519
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1522
1523 Report bugs to <wine-devel@winehq.org>.
1524 Wine home page: <http://www.winehq.org>.
1525 _ACEOF
1526 ac_status=$?
1527 fi
1528
1529 if test "$ac_init_help" = "recursive"; then
1530   # If there are subdirs, report their specific --help.
1531   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532     test -d "$ac_dir" ||
1533       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534       continue
1535     ac_builddir=.
1536
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *)
1540   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1541   # A ".." for each directory in $ac_dir_suffix.
1542   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543   case $ac_top_builddir_sub in
1544   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546   esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1552
1553 case $srcdir in
1554   .)  # We are building in place.
1555     ac_srcdir=.
1556     ac_top_srcdir=$ac_top_builddir_sub
1557     ac_abs_top_srcdir=$ac_pwd ;;
1558   [\\/]* | ?:[\\/]* )  # Absolute name.
1559     ac_srcdir=$srcdir$ac_dir_suffix;
1560     ac_top_srcdir=$srcdir
1561     ac_abs_top_srcdir=$srcdir ;;
1562   *) # Relative name.
1563     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564     ac_top_srcdir=$ac_top_build_prefix$srcdir
1565     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569     cd "$ac_dir" || { ac_status=$?; continue; }
1570     # Check for guested configure.
1571     if test -f "$ac_srcdir/configure.gnu"; then
1572       echo &&
1573       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574     elif test -f "$ac_srcdir/configure"; then
1575       echo &&
1576       $SHELL "$ac_srcdir/configure" --help=recursive
1577     else
1578       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579     fi || ac_status=$?
1580     cd "$ac_pwd" || { ac_status=$?; break; }
1581   done
1582 fi
1583
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1586   cat <<\_ACEOF
1587 Wine configure 1.3.10
1588 generated by GNU Autoconf 2.67
1589
1590 Copyright (C) 2010 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593 _ACEOF
1594   exit
1595 fi
1596
1597 ## ------------------------ ##
1598 ## Autoconf initialization. ##
1599 ## ------------------------ ##
1600
1601 # ac_fn_c_try_compile LINENO
1602 # --------------------------
1603 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_compile ()
1605 {
1606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607   rm -f conftest.$ac_objext
1608   if { { ac_try="$ac_compile"
1609 case "(($ac_try" in
1610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611   *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615   (eval "$ac_compile") 2>conftest.err
1616   ac_status=$?
1617   if test -s conftest.err; then
1618     grep -v '^ *+' conftest.err >conftest.er1
1619     cat conftest.er1 >&5
1620     mv -f conftest.er1 conftest.err
1621   fi
1622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623   test $ac_status = 0; } && {
1624          test -z "$ac_c_werror_flag" ||
1625          test ! -s conftest.err
1626        } && test -s conftest.$ac_objext; then :
1627   ac_retval=0
1628 else
1629   $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632         ac_retval=1
1633 fi
1634   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635   as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_compile
1638
1639 # ac_fn_cxx_try_compile LINENO
1640 # ----------------------------
1641 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_cxx_try_compile ()
1643 {
1644   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645   rm -f conftest.$ac_objext
1646   if { { ac_try="$ac_compile"
1647 case "(($ac_try" in
1648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649   *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653   (eval "$ac_compile") 2>conftest.err
1654   ac_status=$?
1655   if test -s conftest.err; then
1656     grep -v '^ *+' conftest.err >conftest.er1
1657     cat conftest.er1 >&5
1658     mv -f conftest.er1 conftest.err
1659   fi
1660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661   test $ac_status = 0; } && {
1662          test -z "$ac_cxx_werror_flag" ||
1663          test ! -s conftest.err
1664        } && test -s conftest.$ac_objext; then :
1665   ac_retval=0
1666 else
1667   $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670         ac_retval=1
1671 fi
1672   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673   as_fn_set_status $ac_retval
1674
1675 } # ac_fn_cxx_try_compile
1676
1677 # ac_fn_c_try_link LINENO
1678 # -----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_link ()
1681 {
1682   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683   rm -f conftest.$ac_objext conftest$ac_exeext
1684   if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687   *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691   (eval "$ac_link") 2>conftest.err
1692   ac_status=$?
1693   if test -s conftest.err; then
1694     grep -v '^ *+' conftest.err >conftest.er1
1695     cat conftest.er1 >&5
1696     mv -f conftest.er1 conftest.err
1697   fi
1698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699   test $ac_status = 0; } && {
1700          test -z "$ac_c_werror_flag" ||
1701          test ! -s conftest.err
1702        } && test -s conftest$ac_exeext && {
1703          test "$cross_compiling" = yes ||
1704          $as_test_x conftest$ac_exeext
1705        }; then :
1706   ac_retval=0
1707 else
1708   $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711         ac_retval=1
1712 fi
1713   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715   # interfere with the next link command; also delete a directory that is
1716   # left behind by Apple's compiler.  We do this before executing the actions.
1717   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719   as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_link
1722
1723 # ac_fn_c_try_cpp LINENO
1724 # ----------------------
1725 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_cpp ()
1727 {
1728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729   if { { ac_try="$ac_cpp conftest.$ac_ext"
1730 case "(($ac_try" in
1731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732   *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1737   ac_status=$?
1738   if test -s conftest.err; then
1739     grep -v '^ *+' conftest.err >conftest.er1
1740     cat conftest.er1 >&5
1741     mv -f conftest.er1 conftest.err
1742   fi
1743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744   test $ac_status = 0; } > conftest.i && {
1745          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1746          test ! -s conftest.err
1747        }; then :
1748   ac_retval=0
1749 else
1750   $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753     ac_retval=1
1754 fi
1755   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756   as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_cpp
1759
1760 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763 # the include files in INCLUDES and setting the cache variable VAR
1764 # accordingly.
1765 ac_fn_c_check_header_mongrel ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   if eval "test \"\${$3+set}\"" = set; then :
1769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval "test \"\${$3+set}\"" = set; then :
1772   $as_echo_n "(cached) " >&6
1773 fi
1774 eval ac_res=\$$3
1775                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 else
1778   # Is the header compilable?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780 $as_echo_n "checking $2 usability... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h.  */
1783 $4
1784 #include <$2>
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787   ac_header_compiler=yes
1788 else
1789   ac_header_compiler=no
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793 $as_echo "$ac_header_compiler" >&6; }
1794
1795 # Is the header present?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797 $as_echo_n "checking $2 presence... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h.  */
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_cpp "$LINENO"; then :
1803   ac_header_preproc=yes
1804 else
1805   ac_header_preproc=no
1806 fi
1807 rm -f conftest.err conftest.i conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809 $as_echo "$ac_header_preproc" >&6; }
1810
1811 # So?  What about this header?
1812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1813   yes:no: )
1814     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818     ;;
1819   no:yes:* )
1820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1823 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1827 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 ( $as_echo "## ------------------------------------ ##
1831 ## Report this to wine-devel@winehq.org ##
1832 ## ------------------------------------ ##"
1833      ) | sed "s/^/$as_me: WARNING:     /" >&2
1834     ;;
1835 esac
1836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval "test \"\${$3+set}\"" = set; then :
1839   $as_echo_n "(cached) " >&6
1840 else
1841   eval "$3=\$ac_header_compiler"
1842 fi
1843 eval ac_res=\$$3
1844                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 fi
1847   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848
1849 } # ac_fn_c_check_header_mongrel
1850
1851 # ac_fn_c_try_run LINENO
1852 # ----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1855 ac_fn_c_try_run ()
1856 {
1857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858   if { { ac_try="$ac_link"
1859 case "(($ac_try" in
1860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861   *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865   (eval "$ac_link") 2>&5
1866   ac_status=$?
1867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869   { { case "(($ac_try" in
1870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871   *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875   (eval "$ac_try") 2>&5
1876   ac_status=$?
1877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878   test $ac_status = 0; }; }; then :
1879   ac_retval=0
1880 else
1881   $as_echo "$as_me: program exited with status $ac_status" >&5
1882        $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885        ac_retval=$ac_status
1886 fi
1887   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889   as_fn_set_status $ac_retval
1890
1891 } # ac_fn_c_try_run
1892
1893 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists and can be compiled using the include files in
1896 # INCLUDES, setting the cache variable VAR accordingly.
1897 ac_fn_c_check_header_compile ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval "test \"\${$3+set}\"" = set; then :
1903   $as_echo_n "(cached) " >&6
1904 else
1905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h.  */
1907 $4
1908 #include <$2>
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"; then :
1911   eval "$3=yes"
1912 else
1913   eval "$3=no"
1914 fi
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 fi
1917 eval ac_res=\$$3
1918                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921
1922 } # ac_fn_c_check_header_compile
1923
1924 # ac_fn_c_check_func LINENO FUNC VAR
1925 # ----------------------------------
1926 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1927 ac_fn_c_check_func ()
1928 {
1929   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval "test \"\${$3+set}\"" = set; then :
1933   $as_echo_n "(cached) " >&6
1934 else
1935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h.  */
1937 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1939 #define $2 innocuous_$2
1940
1941 /* System header to define __stub macros and hopefully few prototypes,
1942     which can conflict with char $2 (); below.
1943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1944     <limits.h> exists even on freestanding compilers.  */
1945
1946 #ifdef __STDC__
1947 # include <limits.h>
1948 #else
1949 # include <assert.h>
1950 #endif
1951
1952 #undef $2
1953
1954 /* Override any GCC internal prototype to avoid an error.
1955    Use char because int might match the return type of a GCC
1956    builtin and then its argument prototype would still apply.  */
1957 #ifdef __cplusplus
1958 extern "C"
1959 #endif
1960 char $2 ();
1961 /* The GNU C library defines this for functions which it implements
1962     to always fail with ENOSYS.  Some functions are actually named
1963     something starting with __ and the normal name is an alias.  */
1964 #if defined __stub_$2 || defined __stub___$2
1965 choke me
1966 #endif
1967
1968 int
1969 main ()
1970 {
1971 return $2 ();
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_link "$LINENO"; then :
1977   eval "$3=yes"
1978 else
1979   eval "$3=no"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext \
1982     conftest$ac_exeext conftest.$ac_ext
1983 fi
1984 eval ac_res=\$$3
1985                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988
1989 } # ac_fn_c_check_func
1990
1991 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1992 # ----------------------------------------------------
1993 # Tries to find if the field MEMBER exists in type AGGR, after including
1994 # INCLUDES, setting cache variable VAR accordingly.
1995 ac_fn_c_check_member ()
1996 {
1997   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1999 $as_echo_n "checking for $2.$3... " >&6; }
2000 if eval "test \"\${$4+set}\"" = set; then :
2001   $as_echo_n "(cached) " >&6
2002 else
2003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h.  */
2005 $5
2006 int
2007 main ()
2008 {
2009 static $2 ac_aggr;
2010 if (ac_aggr.$3)
2011 return 0;
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017   eval "$4=yes"
2018 else
2019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h.  */
2021 $5
2022 int
2023 main ()
2024 {
2025 static $2 ac_aggr;
2026 if (sizeof ac_aggr.$3)
2027 return 0;
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   eval "$4=yes"
2034 else
2035   eval "$4=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 fi
2041 eval ac_res=\$$4
2042                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045
2046 } # ac_fn_c_check_member
2047
2048 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2049 # -------------------------------------------
2050 # Tests whether TYPE exists after having included INCLUDES, setting cache
2051 # variable VAR accordingly.
2052 ac_fn_c_check_type ()
2053 {
2054   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval "test \"\${$3+set}\"" = set; then :
2058   $as_echo_n "(cached) " >&6
2059 else
2060   eval "$3=no"
2061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 $4
2064 int
2065 main ()
2066 {
2067 if (sizeof ($2))
2068          return 0;
2069   ;
2070   return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h.  */
2076 $4
2077 int
2078 main ()
2079 {
2080 if (sizeof (($2)))
2081             return 0;
2082   ;
2083   return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087
2088 else
2089   eval "$3=yes"
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 fi
2095 eval ac_res=\$$3
2096                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2099
2100 } # ac_fn_c_check_type
2101 cat >config.log <<_ACEOF
2102 This file contains any messages produced by compilers while
2103 running configure, to aid debugging if configure makes a mistake.
2104
2105 It was created by Wine $as_me 1.3.10, which was
2106 generated by GNU Autoconf 2.67.  Invocation command line was
2107
2108   $ $0 $@
2109
2110 _ACEOF
2111 exec 5>>config.log
2112 {
2113 cat <<_ASUNAME
2114 ## --------- ##
2115 ## Platform. ##
2116 ## --------- ##
2117
2118 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2119 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2120 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2121 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2122 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2123
2124 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2125 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2126
2127 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2128 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2129 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2130 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2131 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2132 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2133 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2134
2135 _ASUNAME
2136
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140   IFS=$as_save_IFS
2141   test -z "$as_dir" && as_dir=.
2142     $as_echo "PATH: $as_dir"
2143   done
2144 IFS=$as_save_IFS
2145
2146 } >&5
2147
2148 cat >&5 <<_ACEOF
2149
2150
2151 ## ----------- ##
2152 ## Core tests. ##
2153 ## ----------- ##
2154
2155 _ACEOF
2156
2157
2158 # Keep a trace of the command line.
2159 # Strip out --no-create and --no-recursion so they do not pile up.
2160 # Strip out --silent because we don't want to record it for future runs.
2161 # Also quote any args containing shell meta-characters.
2162 # Make two passes to allow for proper duplicate-argument suppression.
2163 ac_configure_args=
2164 ac_configure_args0=
2165 ac_configure_args1=
2166 ac_must_keep_next=false
2167 for ac_pass in 1 2
2168 do
2169   for ac_arg
2170   do
2171     case $ac_arg in
2172     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2173     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2174     | -silent | --silent | --silen | --sile | --sil)
2175       continue ;;
2176     *\'*)
2177       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2178     esac
2179     case $ac_pass in
2180     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2181     2)
2182       as_fn_append ac_configure_args1 " '$ac_arg'"
2183       if test $ac_must_keep_next = true; then
2184         ac_must_keep_next=false # Got value, back to normal.
2185       else
2186         case $ac_arg in
2187           *=* | --config-cache | -C | -disable-* | --disable-* \
2188           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2189           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2190           | -with-* | --with-* | -without-* | --without-* | --x)
2191             case "$ac_configure_args0 " in
2192               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2193             esac
2194             ;;
2195           -* ) ac_must_keep_next=true ;;
2196         esac
2197       fi
2198       as_fn_append ac_configure_args " '$ac_arg'"
2199       ;;
2200     esac
2201   done
2202 done
2203 { ac_configure_args0=; unset ac_configure_args0;}
2204 { ac_configure_args1=; unset ac_configure_args1;}
2205
2206 # When interrupted or exit'd, cleanup temporary files, and complete
2207 # config.log.  We remove comments because anyway the quotes in there
2208 # would cause problems or look ugly.
2209 # WARNING: Use '\'' to represent an apostrophe within the trap.
2210 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2211 trap 'exit_status=$?
2212   # Save into config.log some information that might help in debugging.
2213   {
2214     echo
2215
2216     $as_echo "## ---------------- ##
2217 ## Cache variables. ##
2218 ## ---------------- ##"
2219     echo
2220     # The following way of writing the cache mishandles newlines in values,
2221 (
2222   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2223     eval ac_val=\$$ac_var
2224     case $ac_val in #(
2225     *${as_nl}*)
2226       case $ac_var in #(
2227       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229       esac
2230       case $ac_var in #(
2231       _ | IFS | as_nl) ;; #(
2232       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2233       *) { eval $ac_var=; unset $ac_var;} ;;
2234       esac ;;
2235     esac
2236   done
2237   (set) 2>&1 |
2238     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2239     *${as_nl}ac_space=\ *)
2240       sed -n \
2241         "s/'\''/'\''\\\\'\'''\''/g;
2242           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243       ;; #(
2244     *)
2245       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246       ;;
2247     esac |
2248     sort
2249 )
2250     echo
2251
2252     $as_echo "## ----------------- ##
2253 ## Output variables. ##
2254 ## ----------------- ##"
2255     echo
2256     for ac_var in $ac_subst_vars
2257     do
2258       eval ac_val=\$$ac_var
2259       case $ac_val in
2260       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261       esac
2262       $as_echo "$ac_var='\''$ac_val'\''"
2263     done | sort
2264     echo
2265
2266     if test -n "$ac_subst_files"; then
2267       $as_echo "## ------------------- ##
2268 ## File substitutions. ##
2269 ## ------------------- ##"
2270       echo
2271       for ac_var in $ac_subst_files
2272       do
2273         eval ac_val=\$$ac_var
2274         case $ac_val in
2275         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276         esac
2277         $as_echo "$ac_var='\''$ac_val'\''"
2278       done | sort
2279       echo
2280     fi
2281
2282     if test -s confdefs.h; then
2283       $as_echo "## ----------- ##
2284 ## confdefs.h. ##
2285 ## ----------- ##"
2286       echo
2287       cat confdefs.h
2288       echo
2289     fi
2290     test "$ac_signal" != 0 &&
2291       $as_echo "$as_me: caught signal $ac_signal"
2292     $as_echo "$as_me: exit $exit_status"
2293   } >&5
2294   rm -f core *.core core.conftest.* &&
2295     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2296     exit $exit_status
2297 ' 0
2298 for ac_signal in 1 2 13 15; do
2299   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 done
2301 ac_signal=0
2302
2303 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2304 rm -f -r conftest* confdefs.h
2305
2306 $as_echo "/* confdefs.h */" > confdefs.h
2307
2308 # Predefined preprocessor variables.
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_NAME "$PACKAGE_NAME"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_STRING "$PACKAGE_STRING"
2324 _ACEOF
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_URL "$PACKAGE_URL"
2332 _ACEOF
2333
2334
2335 # Let the site file select an alternate cache file if it wants to.
2336 # Prefer an explicitly selected file to automatically selected ones.
2337 ac_site_file1=NONE
2338 ac_site_file2=NONE
2339 if test -n "$CONFIG_SITE"; then
2340   # We do not want a PATH search for config.site.
2341   case $CONFIG_SITE in #((
2342     -*)  ac_site_file1=./$CONFIG_SITE;;
2343     */*) ac_site_file1=$CONFIG_SITE;;
2344     *)   ac_site_file1=./$CONFIG_SITE;;
2345   esac
2346 elif test "x$prefix" != xNONE; then
2347   ac_site_file1=$prefix/share/config.site
2348   ac_site_file2=$prefix/etc/config.site
2349 else
2350   ac_site_file1=$ac_default_prefix/share/config.site
2351   ac_site_file2=$ac_default_prefix/etc/config.site
2352 fi
2353 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2354 do
2355   test "x$ac_site_file" = xNONE && continue
2356   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2357     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2358 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2359     sed 's/^/| /' "$ac_site_file" >&5
2360     . "$ac_site_file" \
2361       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 as_fn_error $? "failed to load site script $ac_site_file
2364 See \`config.log' for more details" "$LINENO" 5 ; }
2365   fi
2366 done
2367
2368 if test -r "$cache_file"; then
2369   # Some versions of bash will fail to source /dev/null (special files
2370   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2371   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2372     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2373 $as_echo "$as_me: loading cache $cache_file" >&6;}
2374     case $cache_file in
2375       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2376       *)                      . "./$cache_file";;
2377     esac
2378   fi
2379 else
2380   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2381 $as_echo "$as_me: creating cache $cache_file" >&6;}
2382   >$cache_file
2383 fi
2384
2385 # Check that the precious variables saved in the cache have kept the same
2386 # value.
2387 ac_cache_corrupted=false
2388 for ac_var in $ac_precious_vars; do
2389   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2390   eval ac_new_set=\$ac_env_${ac_var}_set
2391   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2392   eval ac_new_val=\$ac_env_${ac_var}_value
2393   case $ac_old_set,$ac_new_set in
2394     set,)
2395       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2396 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2397       ac_cache_corrupted=: ;;
2398     ,set)
2399       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2401       ac_cache_corrupted=: ;;
2402     ,);;
2403     *)
2404       if test "x$ac_old_val" != "x$ac_new_val"; then
2405         # differences in whitespace do not lead to failure.
2406         ac_old_val_w=`echo x $ac_old_val`
2407         ac_new_val_w=`echo x $ac_new_val`
2408         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2409           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2410 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2411           ac_cache_corrupted=:
2412         else
2413           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2414 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2415           eval $ac_var=\$ac_old_val
2416         fi
2417         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2418 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2419         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2420 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2421       fi;;
2422   esac
2423   # Pass precious variables to config.status.
2424   if test "$ac_new_set" = set; then
2425     case $ac_new_val in
2426     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2427     *) ac_arg=$ac_var=$ac_new_val ;;
2428     esac
2429     case " $ac_configure_args " in
2430       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2431       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2432     esac
2433   fi
2434 done
2435 if $ac_cache_corrupted; then
2436   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2439 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2440   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2441 fi
2442 ## -------------------- ##
2443 ## Main body of script. ##
2444 ## -------------------- ##
2445
2446 ac_ext=c
2447 ac_cpp='$CPP $CPPFLAGS'
2448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451
2452
2453
2454 ac_config_headers="$ac_config_headers include/config.h"
2455
2456 ac_aux_dir=
2457 for ac_dir in tools "$srcdir"/tools; do
2458   if test -f "$ac_dir/install-sh"; then
2459     ac_aux_dir=$ac_dir
2460     ac_install_sh="$ac_aux_dir/install-sh -c"
2461     break
2462   elif test -f "$ac_dir/install.sh"; then
2463     ac_aux_dir=$ac_dir
2464     ac_install_sh="$ac_aux_dir/install.sh -c"
2465     break
2466   elif test -f "$ac_dir/shtool"; then
2467     ac_aux_dir=$ac_dir
2468     ac_install_sh="$ac_aux_dir/shtool install -c"
2469     break
2470   fi
2471 done
2472 if test -z "$ac_aux_dir"; then
2473   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2474 fi
2475
2476 # These three variables are undocumented and unsupported,
2477 # and are intended to be withdrawn in a future Autoconf release.
2478 # They can cause serious problems if a builder's source tree is in a directory
2479 # whose full name contains unusual characters.
2480 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2481 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2482 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2483
2484
2485
2486
2487
2488 # Check whether --enable-win16 was given.
2489 if test "${enable_win16+set}" = set; then :
2490   enableval=$enable_win16;
2491 fi
2492
2493 # Check whether --enable-win64 was given.
2494 if test "${enable_win64+set}" = set; then :
2495   enableval=$enable_win64;
2496 fi
2497
2498 # Check whether --enable-tests was given.
2499 if test "${enable_tests+set}" = set; then :
2500   enableval=$enable_tests;
2501 fi
2502
2503 # Check whether --enable-maintainer-mode was given.
2504 if test "${enable_maintainer_mode+set}" = set; then :
2505   enableval=$enable_maintainer_mode;
2506 fi
2507
2508
2509
2510 # Check whether --with-alsa was given.
2511 if test "${with_alsa+set}" = set; then :
2512   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2513 fi
2514
2515
2516 # Check whether --with-capi was given.
2517 if test "${with_capi+set}" = set; then :
2518   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2519 fi
2520
2521
2522 # Check whether --with-cms was given.
2523 if test "${with_cms+set}" = set; then :
2524   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2525 fi
2526
2527
2528 # Check whether --with-coreaudio was given.
2529 if test "${with_coreaudio+set}" = set; then :
2530   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2531 fi
2532
2533
2534 # Check whether --with-cups was given.
2535 if test "${with_cups+set}" = set; then :
2536   withval=$with_cups;
2537 fi
2538
2539
2540 # Check whether --with-curses was given.
2541 if test "${with_curses+set}" = set; then :
2542   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2543 fi
2544
2545
2546 # Check whether --with-esd was given.
2547 if test "${with_esd+set}" = set; then :
2548   withval=$with_esd;
2549 fi
2550
2551
2552 # Check whether --with-fontconfig was given.
2553 if test "${with_fontconfig+set}" = set; then :
2554   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2555 fi
2556
2557
2558 # Check whether --with-freetype was given.
2559 if test "${with_freetype+set}" = set; then :
2560   withval=$with_freetype;
2561 fi
2562
2563
2564 # Check whether --with-gphoto was given.
2565 if test "${with_gphoto+set}" = set; then :
2566   withval=$with_gphoto;
2567 fi
2568
2569
2570 # Check whether --with-glu was given.
2571 if test "${with_glu+set}" = set; then :
2572   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2573 fi
2574
2575
2576 # Check whether --with-gnutls was given.
2577 if test "${with_gnutls+set}" = set; then :
2578   withval=$with_gnutls;
2579 fi
2580
2581
2582 # Check whether --with-gsm was given.
2583 if test "${with_gsm+set}" = set; then :
2584   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2585 fi
2586
2587
2588 # Check whether --with-gstreamer was given.
2589 if test "${with_gstreamer+set}" = set; then :
2590   withval=$with_gstreamer;
2591 fi
2592
2593
2594 # Check whether --with-hal was given.
2595 if test "${with_hal+set}" = set; then :
2596   withval=$with_hal;
2597 fi
2598
2599
2600 # Check whether --with-icns was given.
2601 if test "${with_icns+set}" = set; then :
2602   withval=$with_icns; if test "x$withval" = "xno"; then ac_cv_header_icns_h=no; fi
2603 fi
2604
2605
2606 # Check whether --with-jack was given.
2607 if test "${with_jack+set}" = set; then :
2608   withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2609 fi
2610
2611
2612 # Check whether --with-jpeg was given.
2613 if test "${with_jpeg+set}" = set; then :
2614   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2615 fi
2616
2617
2618 # Check whether --with-ldap was given.
2619 if test "${with_ldap+set}" = set; then :
2620   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2621 fi
2622
2623
2624 # Check whether --with-mpg123 was given.
2625 if test "${with_mpg123+set}" = set; then :
2626   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2627 fi
2628
2629
2630 # Check whether --with-nas was given.
2631 if test "${with_nas+set}" = set; then :
2632   withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2633 fi
2634
2635
2636 # Check whether --with-openal was given.
2637 if test "${with_openal+set}" = set; then :
2638   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2639 fi
2640
2641
2642 # Check whether --with-opencl was given.
2643 if test "${with_opencl+set}" = set; then :
2644   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2645 fi
2646
2647
2648 # Check whether --with-opengl was given.
2649 if test "${with_opengl+set}" = set; then :
2650   withval=$with_opengl;
2651 fi
2652
2653
2654 # Check whether --with-openssl was given.
2655 if test "${with_openssl+set}" = set; then :
2656   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2657 fi
2658
2659
2660 # Check whether --with-oss was given.
2661 if test "${with_oss+set}" = set; then :
2662   withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2663 fi
2664
2665
2666 # Check whether --with-png was given.
2667 if test "${with_png+set}" = set; then :
2668   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2669 fi
2670
2671
2672 # Check whether --with-pthread was given.
2673 if test "${with_pthread+set}" = set; then :
2674   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2675 fi
2676
2677
2678 # Check whether --with-sane was given.
2679 if test "${with_sane+set}" = set; then :
2680   withval=$with_sane;
2681 fi
2682
2683
2684 # Check whether --with-tiff was given.
2685 if test "${with_tiff+set}" = set; then :
2686   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2687 fi
2688
2689
2690 # Check whether --with-v4l was given.
2691 if test "${with_v4l+set}" = set; then :
2692   withval=$with_v4l;
2693 fi
2694
2695
2696 # Check whether --with-xcomposite was given.
2697 if test "${with_xcomposite+set}" = set; then :
2698   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2699 fi
2700
2701
2702 # Check whether --with-xcursor was given.
2703 if test "${with_xcursor+set}" = set; then :
2704   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2705 fi
2706
2707
2708 # Check whether --with-xinerama was given.
2709 if test "${with_xinerama+set}" = set; then :
2710   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2711 fi
2712
2713
2714 # Check whether --with-xinput was given.
2715 if test "${with_xinput+set}" = set; then :
2716   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2717 fi
2718
2719
2720 # Check whether --with-xml was given.
2721 if test "${with_xml+set}" = set; then :
2722   withval=$with_xml;
2723 fi
2724
2725
2726 # Check whether --with-xrandr was given.
2727 if test "${with_xrandr+set}" = set; then :
2728   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2729 fi
2730
2731
2732 # Check whether --with-xrender was given.
2733 if test "${with_xrender+set}" = set; then :
2734   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2735 fi
2736
2737
2738 # Check whether --with-xshape was given.
2739 if test "${with_xshape+set}" = set; then :
2740   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2741 fi
2742
2743
2744 # Check whether --with-xshm was given.
2745 if test "${with_xshm+set}" = set; then :
2746   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2747 fi
2748
2749
2750 # Check whether --with-xslt was given.
2751 if test "${with_xslt+set}" = set; then :
2752   withval=$with_xslt;
2753 fi
2754
2755
2756 # Check whether --with-xxf86vm was given.
2757 if test "${with_xxf86vm+set}" = set; then :
2758   withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi
2759 fi
2760
2761
2762
2763 # Check whether --with-wine-tools was given.
2764 if test "${with_wine_tools+set}" = set; then :
2765   withval=$with_wine_tools;
2766 fi
2767
2768
2769 # Check whether --with-wine64 was given.
2770 if test "${with_wine64+set}" = set; then :
2771   withval=$with_wine64;
2772 fi
2773
2774
2775 # Make sure we can run config.sub.
2776 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2777   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2778
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2780 $as_echo_n "checking build system type... " >&6; }
2781 if test "${ac_cv_build+set}" = set; then :
2782   $as_echo_n "(cached) " >&6
2783 else
2784   ac_build_alias=$build_alias
2785 test "x$ac_build_alias" = x &&
2786   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2787 test "x$ac_build_alias" = x &&
2788   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2789 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2790   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2791
2792 fi
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2794 $as_echo "$ac_cv_build" >&6; }
2795 case $ac_cv_build in
2796 *-*-*) ;;
2797 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2798 esac
2799 build=$ac_cv_build
2800 ac_save_IFS=$IFS; IFS='-'
2801 set x $ac_cv_build
2802 shift
2803 build_cpu=$1
2804 build_vendor=$2
2805 shift; shift
2806 # Remember, the first character of IFS is used to create $*,
2807 # except with old shells:
2808 build_os=$*
2809 IFS=$ac_save_IFS
2810 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2811
2812
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2814 $as_echo_n "checking host system type... " >&6; }
2815 if test "${ac_cv_host+set}" = set; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if test "x$host_alias" = x; then
2819   ac_cv_host=$ac_cv_build
2820 else
2821   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2822     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2823 fi
2824
2825 fi
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2827 $as_echo "$ac_cv_host" >&6; }
2828 case $ac_cv_host in
2829 *-*-*) ;;
2830 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2831 esac
2832 host=$ac_cv_host
2833 ac_save_IFS=$IFS; IFS='-'
2834 set x $ac_cv_host
2835 shift
2836 host_cpu=$1
2837 host_vendor=$2
2838 shift; shift
2839 # Remember, the first character of IFS is used to create $*,
2840 # except with old shells:
2841 host_os=$*
2842 IFS=$ac_save_IFS
2843 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2844
2845
2846
2847 case "$srcdir" in
2848  .) ;;
2849  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2850       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2851 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2852     fi ;;
2853 esac
2854
2855
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2857 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2858 set x ${MAKE-make}
2859 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2860 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2861   $as_echo_n "(cached) " >&6
2862 else
2863   cat >conftest.make <<\_ACEOF
2864 SHELL = /bin/sh
2865 all:
2866         @echo '@@@%%%=$(MAKE)=@@@%%%'
2867 _ACEOF
2868 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2869 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2870   *@@@%%%=?*=@@@%%%*)
2871     eval ac_cv_prog_make_${ac_make}_set=yes;;
2872   *)
2873     eval ac_cv_prog_make_${ac_make}_set=no;;
2874 esac
2875 rm -f conftest.make
2876 fi
2877 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2879 $as_echo "yes" >&6; }
2880   SET_MAKE=
2881 else
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884   SET_MAKE="MAKE=${MAKE-make}"
2885 fi
2886
2887 ac_ext=c
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892 if test -n "$ac_tool_prefix"; then
2893   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if test "${ac_cv_prog_CC+set}" = set; then :
2898   $as_echo_n "(cached) " >&6
2899 else
2900   if test -n "$CC"; then
2901   ac_cv_prog_CC="$CC" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906   IFS=$as_save_IFS
2907   test -z "$as_dir" && as_dir=.
2908     for ac_exec_ext in '' $ac_executable_extensions; do
2909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912     break 2
2913   fi
2914 done
2915   done
2916 IFS=$as_save_IFS
2917
2918 fi
2919 fi
2920 CC=$ac_cv_prog_CC
2921 if test -n "$CC"; then
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923 $as_echo "$CC" >&6; }
2924 else
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927 fi
2928
2929
2930 fi
2931 if test -z "$ac_cv_prog_CC"; then
2932   ac_ct_CC=$CC
2933   # Extract the first word of "gcc", so it can be a program name with args.
2934 set dummy gcc; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2938   $as_echo_n "(cached) " >&6
2939 else
2940   if test -n "$ac_ct_CC"; then
2941   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948     for ac_exec_ext in '' $ac_executable_extensions; do
2949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950     ac_cv_prog_ac_ct_CC="gcc"
2951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952     break 2
2953   fi
2954 done
2955   done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961 if test -n "$ac_ct_CC"; then
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2963 $as_echo "$ac_ct_CC" >&6; }
2964 else
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969   if test "x$ac_ct_CC" = x; then
2970     CC=""
2971   else
2972     case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2977 esac
2978     CC=$ac_ct_CC
2979   fi
2980 else
2981   CC="$ac_cv_prog_CC"
2982 fi
2983
2984 if test -z "$CC"; then
2985           if test -n "$ac_tool_prefix"; then
2986     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2987 set dummy ${ac_tool_prefix}cc; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if test "${ac_cv_prog_CC+set}" = set; then :
2991   $as_echo_n "(cached) " >&6
2992 else
2993   if test -n "$CC"; then
2994   ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999   IFS=$as_save_IFS
3000   test -z "$as_dir" && as_dir=.
3001     for ac_exec_ext in '' $ac_executable_extensions; do
3002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003     ac_cv_prog_CC="${ac_tool_prefix}cc"
3004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005     break 2
3006   fi
3007 done
3008   done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3017 else
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023   fi
3024 fi
3025 if test -z "$CC"; then
3026   # Extract the first word of "cc", so it can be a program name with args.
3027 set dummy cc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if test "${ac_cv_prog_CC+set}" = set; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   if test -n "$CC"; then
3034   ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036   ac_prog_rejected=no
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040   IFS=$as_save_IFS
3041   test -z "$as_dir" && as_dir=.
3042     for ac_exec_ext in '' $ac_executable_extensions; do
3043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3045        ac_prog_rejected=yes
3046        continue
3047      fi
3048     ac_cv_prog_CC="cc"
3049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050     break 2
3051   fi
3052 done
3053   done
3054 IFS=$as_save_IFS
3055
3056 if test $ac_prog_rejected = yes; then
3057   # We found a bogon in the path, so make sure we never use it.
3058   set dummy $ac_cv_prog_CC
3059   shift
3060   if test $# != 0; then
3061     # We chose a different compiler from the bogus one.
3062     # However, it has the same basename, so the bogon will be chosen
3063     # first if we set CC to just the basename; use the full file name.
3064     shift
3065     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3066   fi
3067 fi
3068 fi
3069 fi
3070 CC=$ac_cv_prog_CC
3071 if test -n "$CC"; then
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073 $as_echo "$CC" >&6; }
3074 else
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 fi
3078
3079
3080 fi
3081 if test -z "$CC"; then
3082   if test -n "$ac_tool_prefix"; then
3083   for ac_prog in cl.exe
3084   do
3085     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_CC+set}" = set; then :
3090   $as_echo_n "(cached) " >&6
3091 else
3092   if test -n "$CC"; then
3093   ac_cv_prog_CC="$CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098   IFS=$as_save_IFS
3099   test -z "$as_dir" && as_dir=.
3100     for ac_exec_ext in '' $ac_executable_extensions; do
3101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104     break 2
3105   fi
3106 done
3107   done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 CC=$ac_cv_prog_CC
3113 if test -n "$CC"; then
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115 $as_echo "$CC" >&6; }
3116 else
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121
3122     test -n "$CC" && break
3123   done
3124 fi
3125 if test -z "$CC"; then
3126   ac_ct_CC=$CC
3127   for ac_prog in cl.exe
3128 do
3129   # Extract the first word of "$ac_prog", so it can be a program name with args.
3130 set dummy $ac_prog; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3134   $as_echo_n "(cached) " >&6
3135 else
3136   if test -n "$ac_ct_CC"; then
3137   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142   IFS=$as_save_IFS
3143   test -z "$as_dir" && as_dir=.
3144     for ac_exec_ext in '' $ac_executable_extensions; do
3145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146     ac_cv_prog_ac_ct_CC="$ac_prog"
3147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148     break 2
3149   fi
3150 done
3151   done
3152 IFS=$as_save_IFS
3153
3154 fi
3155 fi
3156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3157 if test -n "$ac_ct_CC"; then
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3159 $as_echo "$ac_ct_CC" >&6; }
3160 else
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3164
3165
3166   test -n "$ac_ct_CC" && break
3167 done
3168
3169   if test "x$ac_ct_CC" = x; then
3170     CC=""
3171   else
3172     case $cross_compiling:$ac_tool_warned in
3173 yes:)
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3177 esac
3178     CC=$ac_ct_CC
3179   fi
3180 fi
3181
3182 fi
3183
3184
3185 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error $? "no acceptable C compiler found in \$PATH
3188 See \`config.log' for more details" "$LINENO" 5 ; }
3189
3190 # Provide some information about the compiler.
3191 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3192 set X $ac_compile
3193 ac_compiler=$2
3194 for ac_option in --version -v -V -qversion; do
3195   { { ac_try="$ac_compiler $ac_option >&5"
3196 case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3203   ac_status=$?
3204   if test -s conftest.err; then
3205     sed '10a\
3206 ... rest of stderr output deleted ...
3207          10q' conftest.err >conftest.er1
3208     cat conftest.er1 >&5
3209   fi
3210   rm -f conftest.er1 conftest.err
3211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212   test $ac_status = 0; }
3213 done
3214
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h.  */
3217
3218 int
3219 main ()
3220 {
3221
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 ac_clean_files_save=$ac_clean_files
3227 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3228 # Try to create an executable without -o first, disregard a.out.
3229 # It will help us diagnose broken compilers, and finding out an intuition
3230 # of exeext.
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3232 $as_echo_n "checking whether the C compiler works... " >&6; }
3233 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3234
3235 # The possible output files:
3236 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3237
3238 ac_rmfiles=
3239 for ac_file in $ac_files
3240 do
3241   case $ac_file in
3242     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3243     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3244   esac
3245 done
3246 rm -f $ac_rmfiles
3247
3248 if { { ac_try="$ac_link_default"
3249 case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255   (eval "$ac_link_default") 2>&5
3256   ac_status=$?
3257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258   test $ac_status = 0; }; then :
3259   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3260 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3261 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3262 # so that the user can short-circuit this test for compilers unknown to
3263 # Autoconf.
3264 for ac_file in $ac_files ''
3265 do
3266   test -f "$ac_file" || continue
3267   case $ac_file in
3268     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3269         ;;
3270     [ab].out )
3271         # We found the default executable, but exeext='' is most
3272         # certainly right.
3273         break;;
3274     *.* )
3275         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3276         then :; else
3277            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3278         fi
3279         # We set ac_cv_exeext here because the later test for it is not
3280         # safe: cross compilers may not add the suffix if given an `-o'
3281         # argument, so we may need to know it at that point already.
3282         # Even if this section looks crufty: it has the advantage of
3283         # actually working.
3284         break;;
3285     * )
3286         break;;
3287   esac
3288 done
3289 test "$ac_cv_exeext" = no && ac_cv_exeext=
3290
3291 else
3292   ac_file=''
3293 fi
3294 if test -z "$ac_file"; then :
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error 77 "C compiler cannot create executables
3303 See \`config.log' for more details" "$LINENO" 5 ; }
3304 else
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306 $as_echo "yes" >&6; }
3307 fi
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3309 $as_echo_n "checking for C compiler default output file name... " >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3311 $as_echo "$ac_file" >&6; }
3312 ac_exeext=$ac_cv_exeext
3313
3314 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3315 ac_clean_files=$ac_clean_files_save
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3317 $as_echo_n "checking for suffix of executables... " >&6; }
3318 if { { ac_try="$ac_link"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325   (eval "$ac_link") 2>&5
3326   ac_status=$?
3327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328   test $ac_status = 0; }; then :
3329   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3330 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3331 # work properly (i.e., refer to `conftest.exe'), while it won't with
3332 # `rm'.
3333 for ac_file in conftest.exe conftest conftest.*; do
3334   test -f "$ac_file" || continue
3335   case $ac_file in
3336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3337     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338           break;;
3339     * ) break;;
3340   esac
3341 done
3342 else
3343   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3346 See \`config.log' for more details" "$LINENO" 5 ; }
3347 fi
3348 rm -f conftest conftest$ac_cv_exeext
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3350 $as_echo "$ac_cv_exeext" >&6; }
3351
3352 rm -f conftest.$ac_ext
3353 EXEEXT=$ac_cv_exeext
3354 ac_exeext=$EXEEXT
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h.  */
3357 #include <stdio.h>
3358 int
3359 main ()
3360 {
3361 FILE *f = fopen ("conftest.out", "w");
3362  return ferror (f) || fclose (f) != 0;
3363
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 ac_clean_files="$ac_clean_files conftest.out"
3369 # Check that the compiler produces executables we can run.  If not, either
3370 # the compiler is broken, or we cross compile.
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3372 $as_echo_n "checking whether we are cross compiling... " >&6; }
3373 if test "$cross_compiling" != yes; then
3374   { { ac_try="$ac_link"
3375 case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381   (eval "$ac_link") 2>&5
3382   ac_status=$?
3383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384   test $ac_status = 0; }
3385   if { ac_try='./conftest$ac_cv_exeext'
3386   { { case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392   (eval "$ac_try") 2>&5
3393   ac_status=$?
3394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395   test $ac_status = 0; }; }; then
3396     cross_compiling=no
3397   else
3398     if test "$cross_compiling" = maybe; then
3399         cross_compiling=yes
3400     else
3401         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error $? "cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details" "$LINENO" 5 ; }
3406     fi
3407   fi
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3410 $as_echo "$cross_compiling" >&6; }
3411
3412 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3413 ac_clean_files=$ac_clean_files_save
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3415 $as_echo_n "checking for suffix of object files... " >&6; }
3416 if test "${ac_cv_objext+set}" = set; then :
3417   $as_echo_n "(cached) " >&6
3418 else
3419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h.  */
3421
3422 int
3423 main ()
3424 {
3425
3426   ;
3427   return 0;
3428 }
3429 _ACEOF
3430 rm -f conftest.o conftest.obj
3431 if { { ac_try="$ac_compile"
3432 case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438   (eval "$ac_compile") 2>&5
3439   ac_status=$?
3440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441   test $ac_status = 0; }; then :
3442   for ac_file in conftest.o conftest.obj conftest.*; do
3443   test -f "$ac_file" || continue;
3444   case $ac_file in
3445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3446     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3447        break;;
3448   esac
3449 done
3450 else
3451   $as_echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3453
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error $? "cannot compute suffix of object files: cannot compile
3457 See \`config.log' for more details" "$LINENO" 5 ; }
3458 fi
3459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3462 $as_echo "$ac_cv_objext" >&6; }
3463 OBJEXT=$ac_cv_objext
3464 ac_objext=$OBJEXT
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3466 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3467 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h.  */
3472
3473 int
3474 main ()
3475 {
3476 #ifndef __GNUC__
3477        choke me
3478 #endif
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485   ac_compiler_gnu=yes
3486 else
3487   ac_compiler_gnu=no
3488 fi
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3491
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3494 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3495 if test $ac_compiler_gnu = yes; then
3496   GCC=yes
3497 else
3498   GCC=
3499 fi
3500 ac_test_CFLAGS=${CFLAGS+set}
3501 ac_save_CFLAGS=$CFLAGS
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3503 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3504 if test "${ac_cv_prog_cc_g+set}" = set; then :
3505   $as_echo_n "(cached) " >&6
3506 else
3507   ac_save_c_werror_flag=$ac_c_werror_flag
3508    ac_c_werror_flag=yes
3509    ac_cv_prog_cc_g=no
3510    CFLAGS="-g"
3511    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h.  */
3513
3514 int
3515 main ()
3516 {
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 if ac_fn_c_try_compile "$LINENO"; then :
3523   ac_cv_prog_cc_g=yes
3524 else
3525   CFLAGS=""
3526       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h.  */
3528
3529 int
3530 main ()
3531 {
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 if ac_fn_c_try_compile "$LINENO"; then :
3538
3539 else
3540   ac_c_werror_flag=$ac_save_c_werror_flag
3541          CFLAGS="-g"
3542          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h.  */
3544
3545 int
3546 main ()
3547 {
3548
3549   ;
3550   return 0;
3551 }
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554   ac_cv_prog_cc_g=yes
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 fi
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 fi
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561    ac_c_werror_flag=$ac_save_c_werror_flag
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3564 $as_echo "$ac_cv_prog_cc_g" >&6; }
3565 if test "$ac_test_CFLAGS" = set; then
3566   CFLAGS=$ac_save_CFLAGS
3567 elif test $ac_cv_prog_cc_g = yes; then
3568   if test "$GCC" = yes; then
3569     CFLAGS="-g -O2"
3570   else
3571     CFLAGS="-g"
3572   fi
3573 else
3574   if test "$GCC" = yes; then
3575     CFLAGS="-O2"
3576   else
3577     CFLAGS=
3578   fi
3579 fi
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3581 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3582 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3583   $as_echo_n "(cached) " >&6
3584 else
3585   ac_cv_prog_cc_c89=no
3586 ac_save_CC=$CC
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h.  */
3589 #include <stdarg.h>
3590 #include <stdio.h>
3591 #include <sys/types.h>
3592 #include <sys/stat.h>
3593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3594 struct buf { int x; };
3595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3596 static char *e (p, i)
3597      char **p;
3598      int i;
3599 {
3600   return p[i];
3601 }
3602 static char *f (char * (*g) (char **, int), char **p, ...)
3603 {
3604   char *s;
3605   va_list v;
3606   va_start (v,p);
3607   s = g (p, va_arg (v,int));
3608   va_end (v);
3609   return s;
3610 }
3611
3612 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3613    function prototypes and stuff, but not '\xHH' hex character constants.
3614    These don't provoke an error unfortunately, instead are silently treated
3615    as 'x'.  The following induces an error, until -std is added to get
3616    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3617    array size at least.  It's necessary to write '\x00'==0 to get something
3618    that's true only with -std.  */
3619 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3620
3621 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3622    inside strings and character constants.  */
3623 #define FOO(x) 'x'
3624 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3625
3626 int test (int i, double x);
3627 struct s1 {int (*f) (int a);};
3628 struct s2 {int (*f) (double a);};
3629 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3630 int argc;
3631 char **argv;
3632 int
3633 main ()
3634 {
3635 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3641         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3642 do
3643   CC="$ac_save_CC $ac_arg"
3644   if ac_fn_c_try_compile "$LINENO"; then :
3645   ac_cv_prog_cc_c89=$ac_arg
3646 fi
3647 rm -f core conftest.err conftest.$ac_objext
3648   test "x$ac_cv_prog_cc_c89" != "xno" && break
3649 done
3650 rm -f conftest.$ac_ext
3651 CC=$ac_save_CC
3652
3653 fi
3654 # AC_CACHE_VAL
3655 case "x$ac_cv_prog_cc_c89" in
3656   x)
3657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3658 $as_echo "none needed" >&6; } ;;
3659   xno)
3660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3661 $as_echo "unsupported" >&6; } ;;
3662   *)
3663     CC="$CC $ac_cv_prog_cc_c89"
3664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3665 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3666 esac
3667 if test "x$ac_cv_prog_cc_c89" != xno; then :
3668
3669 fi
3670
3671 ac_ext=c
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676
3677 ac_ext=cpp
3678 ac_cpp='$CXXCPP $CPPFLAGS'
3679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3682 if test -z "$CXX"; then
3683   if test -n "$CCC"; then
3684     CXX=$CCC
3685   else
3686     if test -n "$ac_tool_prefix"; then
3687   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3688   do
3689     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_CXX+set}" = set; then :
3694   $as_echo_n "(cached) " >&6
3695 else
3696   if test -n "$CXX"; then
3697   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702   IFS=$as_save_IFS
3703   test -z "$as_dir" && as_dir=.
3704     for ac_exec_ext in '' $ac_executable_extensions; do
3705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708     break 2
3709   fi
3710 done
3711   done
3712 IFS=$as_save_IFS
3713
3714 fi
3715 fi
3716 CXX=$ac_cv_prog_CXX
3717 if test -n "$CXX"; then
3718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3719 $as_echo "$CXX" >&6; }
3720 else
3721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724
3725
3726     test -n "$CXX" && break
3727   done
3728 fi
3729 if test -z "$CXX"; then
3730   ac_ct_CXX=$CXX
3731   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3732 do
3733   # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   if test -n "$ac_ct_CXX"; then
3741   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746   IFS=$as_save_IFS
3747   test -z "$as_dir" && as_dir=.
3748     for ac_exec_ext in '' $ac_executable_extensions; do
3749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750     ac_cv_prog_ac_ct_CXX="$ac_prog"
3751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752     break 2
3753   fi
3754 done
3755   done
3756 IFS=$as_save_IFS
3757
3758 fi
3759 fi
3760 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3761 if test -n "$ac_ct_CXX"; then
3762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3763 $as_echo "$ac_ct_CXX" >&6; }
3764 else
3765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3767 fi
3768
3769
3770   test -n "$ac_ct_CXX" && break
3771 done
3772
3773   if test "x$ac_ct_CXX" = x; then
3774     CXX="g++"
3775   else
3776     case $cross_compiling:$ac_tool_warned in
3777 yes:)
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned=yes ;;
3781 esac
3782     CXX=$ac_ct_CXX
3783   fi
3784 fi
3785
3786   fi
3787 fi
3788 # Provide some information about the compiler.
3789 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3790 set X $ac_compile
3791 ac_compiler=$2
3792 for ac_option in --version -v -V -qversion; do
3793   { { ac_try="$ac_compiler $ac_option >&5"
3794 case "(($ac_try" in
3795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796   *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801   ac_status=$?
3802   if test -s conftest.err; then
3803     sed '10a\
3804 ... rest of stderr output deleted ...
3805          10q' conftest.err >conftest.er1
3806     cat conftest.er1 >&5
3807   fi
3808   rm -f conftest.er1 conftest.err
3809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810   test $ac_status = 0; }
3811 done
3812
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3814 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3815 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3816   $as_echo_n "(cached) " >&6
3817 else
3818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h.  */
3820
3821 int
3822 main ()
3823 {
3824 #ifndef __GNUC__
3825        choke me
3826 #endif
3827
3828   ;
3829   return 0;
3830 }
3831 _ACEOF
3832 if ac_fn_cxx_try_compile "$LINENO"; then :
3833   ac_compiler_gnu=yes
3834 else
3835   ac_compiler_gnu=no
3836 fi
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3839
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3842 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3843 if test $ac_compiler_gnu = yes; then
3844   GXX=yes
3845 else
3846   GXX=
3847 fi
3848 ac_test_CXXFLAGS=${CXXFLAGS+set}
3849 ac_save_CXXFLAGS=$CXXFLAGS
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3851 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3852 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3853   $as_echo_n "(cached) " >&6
3854 else
3855   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3856    ac_cxx_werror_flag=yes
3857    ac_cv_prog_cxx_g=no
3858    CXXFLAGS="-g"
3859    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h.  */
3861
3862 int
3863 main ()
3864 {
3865
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 if ac_fn_cxx_try_compile "$LINENO"; then :
3871   ac_cv_prog_cxx_g=yes
3872 else
3873   CXXFLAGS=""
3874       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h.  */
3876
3877 int
3878 main ()
3879 {
3880
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 if ac_fn_cxx_try_compile "$LINENO"; then :
3886
3887 else
3888   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3889          CXXFLAGS="-g"
3890          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h.  */
3892
3893 int
3894 main ()
3895 {
3896
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 if ac_fn_cxx_try_compile "$LINENO"; then :
3902   ac_cv_prog_cxx_g=yes
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 fi
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 fi
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3912 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3913 if test "$ac_test_CXXFLAGS" = set; then
3914   CXXFLAGS=$ac_save_CXXFLAGS
3915 elif test $ac_cv_prog_cxx_g = yes; then
3916   if test "$GXX" = yes; then
3917     CXXFLAGS="-g -O2"
3918   else
3919     CXXFLAGS="-g"
3920   fi
3921 else
3922   if test "$GXX" = yes; then
3923     CXXFLAGS="-O2"
3924   else
3925     CXXFLAGS=
3926   fi
3927 fi
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933
3934 if test -n "$ac_tool_prefix"; then
3935   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3936 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3940   $as_echo_n "(cached) " >&6
3941 else
3942   if test -n "$CPPBIN"; then
3943   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948   IFS=$as_save_IFS
3949   test -z "$as_dir" && as_dir=.
3950     for ac_exec_ext in '' $ac_executable_extensions; do
3951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954     break 2
3955   fi
3956 done
3957   done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 CPPBIN=$ac_cv_prog_CPPBIN
3963 if test -n "$CPPBIN"; then
3964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3965 $as_echo "$CPPBIN" >&6; }
3966 else
3967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971
3972 fi
3973 if test -z "$ac_cv_prog_CPPBIN"; then
3974   ac_ct_CPPBIN=$CPPBIN
3975   # Extract the first word of "cpp", so it can be a program name with args.
3976 set dummy cpp; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3980   $as_echo_n "(cached) " >&6
3981 else
3982   if test -n "$ac_ct_CPPBIN"; then
3983   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990     for ac_exec_ext in '' $ac_executable_extensions; do
3991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992     ac_cv_prog_ac_ct_CPPBIN="cpp"
3993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994     break 2
3995   fi
3996 done
3997   done
3998 IFS=$as_save_IFS
3999
4000 fi
4001 fi
4002 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4003 if test -n "$ac_ct_CPPBIN"; then
4004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4005 $as_echo "$ac_ct_CPPBIN" >&6; }
4006 else
4007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4009 fi
4010
4011   if test "x$ac_ct_CPPBIN" = x; then
4012     CPPBIN="cpp"
4013   else
4014     case $cross_compiling:$ac_tool_warned in
4015 yes:)
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4018 ac_tool_warned=yes ;;
4019 esac
4020     CPPBIN=$ac_ct_CPPBIN
4021   fi
4022 else
4023   CPPBIN="$ac_cv_prog_CPPBIN"
4024 fi
4025
4026
4027 cat >>confdefs.h <<_ACEOF
4028 #define EXEEXT "$ac_exeext"
4029 _ACEOF
4030
4031
4032 case $host in
4033   *-darwin*)
4034     if test "x$enable_win64" = "xyes"
4035     then
4036       CC="$CC -m64"
4037       CXX="$CXX -m64"
4038       LD="${LD:-ld} -arch x86_64"
4039       AS="${AS:-as} -arch x86_64"
4040       host_cpu="x86_64"
4041       notice_platform="64-bit "
4042       TARGETFLAGS="-m64"
4043
4044     else
4045       CC="$CC -m32"
4046       CXX="$CXX -m32"
4047       LD="${LD:-ld} -arch i386"
4048       AS="${AS:-as} -arch i386"
4049       host_cpu="i386"
4050       notice_platform="32-bit "
4051       TARGETFLAGS="-m32"
4052
4053       enable_win16=${enable_win16:-yes}
4054     fi
4055     ;;
4056   x86_64*)
4057     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4058     then
4059       CC="$CC -m32"
4060       CXX="$CXX -m32"
4061       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4062 $as_echo_n "checking whether $CC works... " >&6; }
4063
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h.  */
4066
4067 int
4068 main ()
4069 {
4070
4071   ;
4072   return 0;
4073 }
4074 _ACEOF
4075 if ac_fn_c_try_link "$LINENO"; then :
4076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 $as_echo "yes" >&6; }
4078 else
4079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4081                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4082 fi
4083 rm -f core conftest.err conftest.$ac_objext \
4084     conftest$ac_exeext conftest.$ac_ext
4085       LD="${LD:-ld} -m elf_i386"
4086       AS="${AS:-as} --32"
4087       host_cpu="i386"
4088       notice_platform="32-bit "
4089       TARGETFLAGS="-m32"
4090
4091       enable_win16=${enable_win16:-yes}
4092     else
4093       if test "x${GCC}" = "xyes"
4094       then
4095         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4096 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4097         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h.  */
4099 #include <stdarg.h>
4100 int
4101 main ()
4102 {
4103 void func(__builtin_ms_va_list *args);
4104   ;
4105   return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_c_try_compile "$LINENO"; then :
4109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4110 $as_echo "yes" >&6; }
4111 else
4112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4114                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4115 fi
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117       fi
4118       TARGETFLAGS="-m64"
4119
4120     fi
4121     ;;
4122   *-mingw32*|*-cygwin*)
4123     enable_win16=${enable_win16:-no}
4124     CFLAGS="$CFLAGS -D_WIN32"
4125     ;;
4126   i[3456789]86*)
4127     enable_win16=${enable_win16:-yes}
4128     ;;
4129 esac
4130
4131 enable_win16=${enable_win16:-no}
4132
4133 enable_winetest=${enable_winetest:-$enable_tests}
4134
4135 if test -n "$with_wine64"
4136 then
4137     if test "x$enable_win64" = "xyes"
4138     then
4139         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4140 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4141     fi
4142     WOW64_DISABLE=\#
4143
4144     enable_fonts=${enable_fonts:-no}
4145     enable_server=${enable_server:-no}
4146     enable_tools=${enable_tools:-no}
4147 elif test "x$enable_win64" = "xyes"
4148 then
4149     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4150 fi
4151
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4153 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4154 if test "${wine_cv_toolsdir+set}" = set; then :
4155   $as_echo_n "(cached) " >&6
4156 else
4157   wine_cv_toolsdir="$with_wine_tools"
4158    if test -z "$with_wine_tools"; then
4159      if test "$cross_compiling" = "yes"; then
4160        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4161      elif test -n "$with_wine64"; then
4162        wine_cv_toolsdir="$with_wine64"
4163      fi
4164    fi
4165    if test -z "$wine_cv_toolsdir"; then
4166      wine_cv_toolsdir="\$(top_builddir)"
4167    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4168      case "$wine_cv_toolsdir" in
4169        /*) ;;
4170        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4171      esac
4172    else
4173      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4174    fi
4175 fi
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4177 $as_echo "$wine_cv_toolsdir" >&6; }
4178 TOOLSDIR=$wine_cv_toolsdir
4179
4180 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4181 then
4182     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4183
4184 fi
4185
4186 for ac_prog in flex
4187 do
4188   # Extract the first word of "$ac_prog", so it can be a program name with args.
4189 set dummy $ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if test "${ac_cv_prog_FLEX+set}" = set; then :
4193   $as_echo_n "(cached) " >&6
4194 else
4195   if test -n "$FLEX"; then
4196   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4200 do
4201   IFS=$as_save_IFS
4202   test -z "$as_dir" && as_dir=.
4203     for ac_exec_ext in '' $ac_executable_extensions; do
4204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205     ac_cv_prog_FLEX="$ac_prog"
4206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207     break 2
4208   fi
4209 done
4210   done
4211 IFS=$as_save_IFS
4212
4213 fi
4214 fi
4215 FLEX=$ac_cv_prog_FLEX
4216 if test -n "$FLEX"; then
4217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4218 $as_echo "$FLEX" >&6; }
4219 else
4220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4222 fi
4223
4224
4225   test -n "$FLEX" && break
4226 done
4227 test -n "$FLEX" || FLEX="none"
4228
4229 if test "$FLEX" = "none"
4230 then
4231   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4234 $as_echo_n "checking whether flex is recent enough... " >&6; }
4235 cat >conftest.l <<EOF
4236 %top{
4237 #include "prediluvian.h"
4238 }
4239 %%
4240 EOF
4241 if $FLEX -t conftest.l >/dev/null 2>&5
4242 then
4243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4244 $as_echo "yes" >&6; }
4245 else
4246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4248   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4249 fi
4250
4251 for ac_prog in bison
4252 do
4253   # Extract the first word of "$ac_prog", so it can be a program name with args.
4254 set dummy $ac_prog; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if test "${ac_cv_prog_BISON+set}" = set; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260   if test -n "$BISON"; then
4261   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266   IFS=$as_save_IFS
4267   test -z "$as_dir" && as_dir=.
4268     for ac_exec_ext in '' $ac_executable_extensions; do
4269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4270     ac_cv_prog_BISON="$ac_prog"
4271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272     break 2
4273   fi
4274 done
4275   done
4276 IFS=$as_save_IFS
4277
4278 fi
4279 fi
4280 BISON=$ac_cv_prog_BISON
4281 if test -n "$BISON"; then
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4283 $as_echo "$BISON" >&6; }
4284 else
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4287 fi
4288
4289
4290   test -n "$BISON" && break
4291 done
4292 test -n "$BISON" || BISON="none"
4293
4294 if test "$BISON" = "none"
4295 then
4296   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4297 fi
4298
4299 if test -n "$ac_tool_prefix"; then
4300   for ac_prog in ar gar
4301   do
4302     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if test "${ac_cv_prog_AR+set}" = set; then :
4307   $as_echo_n "(cached) " >&6
4308 else
4309   if test -n "$AR"; then
4310   ac_cv_prog_AR="$AR" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4314 do
4315   IFS=$as_save_IFS
4316   test -z "$as_dir" && as_dir=.
4317     for ac_exec_ext in '' $ac_executable_extensions; do
4318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321     break 2
4322   fi
4323 done
4324   done
4325 IFS=$as_save_IFS
4326
4327 fi
4328 fi
4329 AR=$ac_cv_prog_AR
4330 if test -n "$AR"; then
4331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4332 $as_echo "$AR" >&6; }
4333 else
4334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4336 fi
4337
4338
4339     test -n "$AR" && break
4340   done
4341 fi
4342 if test -z "$AR"; then
4343   ac_ct_AR=$AR
4344   for ac_prog in ar gar
4345 do
4346   # Extract the first word of "$ac_prog", so it can be a program name with args.
4347 set dummy $ac_prog; ac_word=$2
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349 $as_echo_n "checking for $ac_word... " >&6; }
4350 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4351   $as_echo_n "(cached) " >&6
4352 else
4353   if test -n "$ac_ct_AR"; then
4354   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4358 do
4359   IFS=$as_save_IFS
4360   test -z "$as_dir" && as_dir=.
4361     for ac_exec_ext in '' $ac_executable_extensions; do
4362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363     ac_cv_prog_ac_ct_AR="$ac_prog"
4364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365     break 2
4366   fi
4367 done
4368   done
4369 IFS=$as_save_IFS
4370
4371 fi
4372 fi
4373 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4374 if test -n "$ac_ct_AR"; then
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4376 $as_echo "$ac_ct_AR" >&6; }
4377 else
4378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 $as_echo "no" >&6; }
4380 fi
4381
4382
4383   test -n "$ac_ct_AR" && break
4384 done
4385
4386   if test "x$ac_ct_AR" = x; then
4387     AR="ar"
4388   else
4389     case $cross_compiling:$ac_tool_warned in
4390 yes:)
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4393 ac_tool_warned=yes ;;
4394 esac
4395     AR=$ac_ct_AR
4396   fi
4397 fi
4398
4399 ARFLAGS=rc
4400
4401 if test -n "$ac_tool_prefix"; then
4402   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4403 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   if test -n "$RANLIB"; then
4410   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421     break 2
4422   fi
4423 done
4424   done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 RANLIB=$ac_cv_prog_RANLIB
4430 if test -n "$RANLIB"; then
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4432 $as_echo "$RANLIB" >&6; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439 fi
4440 if test -z "$ac_cv_prog_RANLIB"; then
4441   ac_ct_RANLIB=$RANLIB
4442   # Extract the first word of "ranlib", so it can be a program name with args.
4443 set dummy ranlib; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4447   $as_echo_n "(cached) " >&6
4448 else
4449   if test -n "$ac_ct_RANLIB"; then
4450   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455   IFS=$as_save_IFS
4456   test -z "$as_dir" && as_dir=.
4457     for ac_exec_ext in '' $ac_executable_extensions; do
4458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459     ac_cv_prog_ac_ct_RANLIB="ranlib"
4460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461     break 2
4462   fi
4463 done
4464   done
4465 IFS=$as_save_IFS
4466
4467 fi
4468 fi
4469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4470 if test -n "$ac_ct_RANLIB"; then
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4472 $as_echo "$ac_ct_RANLIB" >&6; }
4473 else
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476 fi
4477
4478   if test "x$ac_ct_RANLIB" = x; then
4479     RANLIB=":"
4480   else
4481     case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487     RANLIB=$ac_ct_RANLIB
4488   fi
4489 else
4490   RANLIB="$ac_cv_prog_RANLIB"
4491 fi
4492
4493 if test -n "$ac_tool_prefix"; then
4494   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4495 set dummy ${ac_tool_prefix}strip; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if test "${ac_cv_prog_STRIP+set}" = set; then :
4499   $as_echo_n "(cached) " >&6
4500 else
4501   if test -n "$STRIP"; then
4502   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507   IFS=$as_save_IFS
4508   test -z "$as_dir" && as_dir=.
4509     for ac_exec_ext in '' $ac_executable_extensions; do
4510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513     break 2
4514   fi
4515 done
4516   done
4517 IFS=$as_save_IFS
4518
4519 fi
4520 fi
4521 STRIP=$ac_cv_prog_STRIP
4522 if test -n "$STRIP"; then
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4524 $as_echo "$STRIP" >&6; }
4525 else
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4528 fi
4529
4530
4531 fi
4532 if test -z "$ac_cv_prog_STRIP"; then
4533   ac_ct_STRIP=$STRIP
4534   # Extract the first word of "strip", so it can be a program name with args.
4535 set dummy strip; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4539   $as_echo_n "(cached) " >&6
4540 else
4541   if test -n "$ac_ct_STRIP"; then
4542   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549     for ac_exec_ext in '' $ac_executable_extensions; do
4550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551     ac_cv_prog_ac_ct_STRIP="strip"
4552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556   done
4557 IFS=$as_save_IFS
4558
4559 fi
4560 fi
4561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4562 if test -n "$ac_ct_STRIP"; then
4563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4564 $as_echo "$ac_ct_STRIP" >&6; }
4565 else
4566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4568 fi
4569
4570   if test "x$ac_ct_STRIP" = x; then
4571     STRIP="strip"
4572   else
4573     case $cross_compiling:$ac_tool_warned in
4574 yes:)
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4577 ac_tool_warned=yes ;;
4578 esac
4579     STRIP=$ac_ct_STRIP
4580   fi
4581 else
4582   STRIP="$ac_cv_prog_STRIP"
4583 fi
4584
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4586 $as_echo_n "checking whether ln -s works... " >&6; }
4587 LN_S=$as_ln_s
4588 if test "$LN_S" = "ln -s"; then
4589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4590 $as_echo "yes" >&6; }
4591 else
4592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4593 $as_echo "no, using $LN_S" >&6; }
4594 fi
4595
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4597 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4598 if test "${ac_cv_path_GREP+set}" = set; then :
4599   $as_echo_n "(cached) " >&6
4600 else
4601   if test -z "$GREP"; then
4602   ac_path_GREP_found=false
4603   # Loop through the user's path and test for each of PROGNAME-LIST
4604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609     for ac_prog in grep ggrep; do
4610     for ac_exec_ext in '' $ac_executable_extensions; do
4611       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4612       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4613 # Check for GNU ac_path_GREP and select it if it is found.
4614   # Check for GNU $ac_path_GREP
4615 case `"$ac_path_GREP" --version 2>&1` in
4616 *GNU*)
4617   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4618 *)
4619   ac_count=0
4620   $as_echo_n 0123456789 >"conftest.in"
4621   while :
4622   do
4623     cat "conftest.in" "conftest.in" >"conftest.tmp"
4624     mv "conftest.tmp" "conftest.in"
4625     cp "conftest.in" "conftest.nl"
4626     $as_echo 'GREP' >> "conftest.nl"
4627     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629     as_fn_arith $ac_count + 1 && ac_count=$as_val
4630     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4631       # Best one so far, save it but keep looking for a better one
4632       ac_cv_path_GREP="$ac_path_GREP"
4633       ac_path_GREP_max=$ac_count
4634     fi
4635     # 10*(2^10) chars as input seems more than enough
4636     test $ac_count -gt 10 && break
4637   done
4638   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639 esac
4640
4641       $ac_path_GREP_found && break 3
4642     done
4643   done
4644   done
4645 IFS=$as_save_IFS
4646   if test -z "$ac_cv_path_GREP"; then
4647     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4648   fi
4649 else
4650   ac_cv_path_GREP=$GREP
4651 fi
4652
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4655 $as_echo "$ac_cv_path_GREP" >&6; }
4656  GREP="$ac_cv_path_GREP"
4657
4658
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4660 $as_echo_n "checking for egrep... " >&6; }
4661 if test "${ac_cv_path_EGREP+set}" = set; then :
4662   $as_echo_n "(cached) " >&6
4663 else
4664   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4665    then ac_cv_path_EGREP="$GREP -E"
4666    else
4667      if test -z "$EGREP"; then
4668   ac_path_EGREP_found=false
4669   # Loop through the user's path and test for each of PROGNAME-LIST
4670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4672 do
4673   IFS=$as_save_IFS
4674   test -z "$as_dir" && as_dir=.
4675     for ac_prog in egrep; do
4676     for ac_exec_ext in '' $ac_executable_extensions; do
4677       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4678       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4679 # Check for GNU ac_path_EGREP and select it if it is found.
4680   # Check for GNU $ac_path_EGREP
4681 case `"$ac_path_EGREP" --version 2>&1` in
4682 *GNU*)
4683   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4684 *)
4685   ac_count=0
4686   $as_echo_n 0123456789 >"conftest.in"
4687   while :
4688   do
4689     cat "conftest.in" "conftest.in" >"conftest.tmp"
4690     mv "conftest.tmp" "conftest.in"
4691     cp "conftest.in" "conftest.nl"
4692     $as_echo 'EGREP' >> "conftest.nl"
4693     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4694     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4695     as_fn_arith $ac_count + 1 && ac_count=$as_val
4696     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4697       # Best one so far, save it but keep looking for a better one
4698       ac_cv_path_EGREP="$ac_path_EGREP"
4699       ac_path_EGREP_max=$ac_count
4700     fi
4701     # 10*(2^10) chars as input seems more than enough
4702     test $ac_count -gt 10 && break
4703   done
4704   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4705 esac
4706
4707       $ac_path_EGREP_found && break 3
4708     done
4709   done
4710   done
4711 IFS=$as_save_IFS
4712   if test -z "$ac_cv_path_EGREP"; then
4713     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4714   fi
4715 else
4716   ac_cv_path_EGREP=$EGREP
4717 fi
4718
4719    fi
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4722 $as_echo "$ac_cv_path_EGREP" >&6; }
4723  EGREP="$ac_cv_path_EGREP"
4724
4725
4726 # Extract the first word of "ldconfig", so it can be a program name with args.
4727 set dummy ldconfig; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733   case $LDCONFIG in
4734   [\\/]* | ?:[\\/]*)
4735   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4736   ;;
4737   *)
4738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in /sbin /usr/sbin $PATH
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743     for ac_exec_ext in '' $ac_executable_extensions; do
4744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747     break 2
4748   fi
4749 done
4750   done
4751 IFS=$as_save_IFS
4752
4753   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4754   ;;
4755 esac
4756 fi
4757 LDCONFIG=$ac_cv_path_LDCONFIG
4758 if test -n "$LDCONFIG"; then
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4760 $as_echo "$LDCONFIG" >&6; }
4761 else
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4764 fi
4765
4766
4767 # Find a good install program.  We prefer a C program (faster),
4768 # so one script is as good as another.  But avoid the broken or
4769 # incompatible versions:
4770 # SysV /etc/install, /usr/sbin/install
4771 # SunOS /usr/etc/install
4772 # IRIX /sbin/install
4773 # AIX /bin/install
4774 # AmigaOS /C/install, which installs bootblocks on floppy discs
4775 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4778 # OS/2's system install, which has a completely different semantic
4779 # ./install, which can be erroneously created by make from ./install.sh.
4780 # Reject install programs that cannot install multiple files.
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4782 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4783 if test -z "$INSTALL"; then
4784 if test "${ac_cv_path_install+set}" = set; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792     # Account for people who put trailing slashes in PATH elements.
4793 case $as_dir/ in #((
4794   ./ | .// | /[cC]/* | \
4795   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4796   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4797   /usr/ucb/* ) ;;
4798   *)
4799     # OSF1 and SCO ODT 3.0 have their own names for install.
4800     # Don't use installbsd from OSF since it installs stuff as root
4801     # by default.
4802     for ac_prog in ginstall scoinst install; do
4803       for ac_exec_ext in '' $ac_executable_extensions; do
4804         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4805           if test $ac_prog = install &&
4806             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4807             # AIX install.  It has an incompatible calling convention.
4808             :
4809           elif test $ac_prog = install &&
4810             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4811             # program-specific install script used by HP pwplus--don't use.
4812             :
4813           else
4814             rm -rf conftest.one conftest.two conftest.dir
4815             echo one > conftest.one
4816             echo two > conftest.two
4817             mkdir conftest.dir
4818             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4819               test -s conftest.one && test -s conftest.two &&
4820               test -s conftest.dir/conftest.one &&
4821               test -s conftest.dir/conftest.two
4822             then
4823               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4824               break 3
4825             fi
4826           fi
4827         fi
4828       done
4829     done
4830     ;;
4831 esac
4832
4833   done
4834 IFS=$as_save_IFS
4835
4836 rm -rf conftest.one conftest.two conftest.dir
4837
4838 fi
4839   if test "${ac_cv_path_install+set}" = set; then
4840     INSTALL=$ac_cv_path_install
4841   else
4842     # As a last resort, use the slow shell script.  Don't cache a
4843     # value for INSTALL within a source directory, because that will
4844     # break other packages using the cache if that directory is
4845     # removed, or if the value is a relative name.
4846     INSTALL=$ac_install_sh
4847   fi
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4850 $as_echo "$INSTALL" >&6; }
4851
4852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4853 # It thinks the first close brace ends the variable substitution.
4854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4855
4856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4857
4858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4859
4860 case "$INSTALL" in
4861   [\\/$]* | ?:[\\/]* ) ;;
4862   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4863 esac
4864
4865 for ac_prog in lclint lint
4866 do
4867   # Extract the first word of "$ac_prog", so it can be a program name with args.
4868 set dummy $ac_prog; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_LINT+set}" = set; then :
4872   $as_echo_n "(cached) " >&6
4873 else
4874   if test -n "$LINT"; then
4875   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882     for ac_exec_ext in '' $ac_executable_extensions; do
4883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884     ac_cv_prog_LINT="$ac_prog"
4885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886     break 2
4887   fi
4888 done
4889   done
4890 IFS=$as_save_IFS
4891
4892 fi
4893 fi
4894 LINT=$ac_cv_prog_LINT
4895 if test -n "$LINT"; then
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4897 $as_echo "$LINT" >&6; }
4898 else
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4901 fi
4902
4903
4904   test -n "$LINT" && break
4905 done
4906
4907 if test "$LINT" = "lint"
4908 then
4909   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4910   fi
4911
4912
4913
4914 for ac_prog in fontforge
4915 do
4916   # Extract the first word of "$ac_prog", so it can be a program name with args.
4917 set dummy $ac_prog; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4921   $as_echo_n "(cached) " >&6
4922 else
4923   if test -n "$FONTFORGE"; then
4924   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931     for ac_exec_ext in '' $ac_executable_extensions; do
4932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933     ac_cv_prog_FONTFORGE="$ac_prog"
4934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938   done
4939 IFS=$as_save_IFS
4940
4941 fi
4942 fi
4943 FONTFORGE=$ac_cv_prog_FONTFORGE
4944 if test -n "$FONTFORGE"; then
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4946 $as_echo "$FONTFORGE" >&6; }
4947 else
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4950 fi
4951
4952
4953   test -n "$FONTFORGE" && break
4954 done
4955 test -n "$FONTFORGE" || FONTFORGE="false"
4956
4957 for ac_prog in pkg-config
4958 do
4959   # Extract the first word of "$ac_prog", so it can be a program name with args.
4960 set dummy $ac_prog; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4964   $as_echo_n "(cached) " >&6
4965 else
4966   if test -n "$PKG_CONFIG"; then
4967   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972   IFS=$as_save_IFS
4973   test -z "$as_dir" && as_dir=.
4974     for ac_exec_ext in '' $ac_executable_extensions; do
4975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976     ac_cv_prog_PKG_CONFIG="$ac_prog"
4977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978     break 2
4979   fi
4980 done
4981   done
4982 IFS=$as_save_IFS
4983
4984 fi
4985 fi
4986 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4987 if test -n "$PKG_CONFIG"; then
4988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4989 $as_echo "$PKG_CONFIG" >&6; }
4990 else
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4993 fi
4994
4995
4996   test -n "$PKG_CONFIG" && break
4997 done
4998 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4999
5000 for ac_prog in rsvg
5001 do
5002   # Extract the first word of "$ac_prog", so it can be a program name with args.
5003 set dummy $ac_prog; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_RSVG+set}" = set; then :
5007   $as_echo_n "(cached) " >&6
5008 else
5009   if test -n "$RSVG"; then
5010   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017     for ac_exec_ext in '' $ac_executable_extensions; do
5018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019     ac_cv_prog_RSVG="$ac_prog"
5020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024   done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 RSVG=$ac_cv_prog_RSVG
5030 if test -n "$RSVG"; then
5031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5032 $as_echo "$RSVG" >&6; }
5033 else
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038
5039   test -n "$RSVG" && break
5040 done
5041 test -n "$RSVG" || RSVG="false"
5042
5043 for ac_prog in convert
5044 do
5045   # Extract the first word of "$ac_prog", so it can be a program name with args.
5046 set dummy $ac_prog; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5050   $as_echo_n "(cached) " >&6
5051 else
5052   if test -n "$CONVERT"; then
5053   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060     for ac_exec_ext in '' $ac_executable_extensions; do
5061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062     ac_cv_prog_CONVERT="$ac_prog"
5063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064     break 2
5065   fi
5066 done
5067   done
5068 IFS=$as_save_IFS
5069
5070 fi
5071 fi
5072 CONVERT=$ac_cv_prog_CONVERT
5073 if test -n "$CONVERT"; then
5074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5075 $as_echo "$CONVERT" >&6; }
5076 else
5077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5079 fi
5080
5081
5082   test -n "$CONVERT" && break
5083 done
5084 test -n "$CONVERT" || CONVERT="false"
5085
5086 for ac_prog in icotool
5087 do
5088   # Extract the first word of "$ac_prog", so it can be a program name with args.
5089 set dummy $ac_prog; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5093   $as_echo_n "(cached) " >&6
5094 else
5095   if test -n "$ICOTOOL"; then
5096   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101   IFS=$as_save_IFS
5102   test -z "$as_dir" && as_dir=.
5103     for ac_exec_ext in '' $ac_executable_extensions; do
5104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105     ac_cv_prog_ICOTOOL="$ac_prog"
5106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107     break 2
5108   fi
5109 done
5110   done
5111 IFS=$as_save_IFS
5112
5113 fi
5114 fi
5115 ICOTOOL=$ac_cv_prog_ICOTOOL
5116 if test -n "$ICOTOOL"; then
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5118 $as_echo "$ICOTOOL" >&6; }
5119 else
5120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5122 fi
5123
5124
5125   test -n "$ICOTOOL" && break
5126 done
5127 test -n "$ICOTOOL" || ICOTOOL="false"
5128
5129
5130 if test "x$enable_maintainer_mode" != "xyes"
5131 then
5132   MAINTAINER_MODE=\#
5133
5134 else
5135   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5136   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi
5137
5138     if test "$CONVERT" = false
5139   then
5140     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5141   else
5142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5143 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5144     convert_version=`convert --version | head -n1`
5145     if test "x$convert_version" != "x"
5146     then
5147       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5148       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5149       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5150       then
5151         CONVERT=false
5152       fi
5153     fi
5154     if test "$CONVERT" = false
5155     then
5156       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5157 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5158       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5159     else
5160       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5161 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5162     fi
5163   fi
5164
5165     if test "$ICOTOOL" = false
5166   then
5167     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5168   else
5169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5170 $as_echo_n "checking for recent enough icotool... " >&6; }
5171     icotool_version=`icotool --version | head -n1`
5172     if test "x$icotool_version" != "x"
5173     then
5174       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5175       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5176       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5177       then
5178         ICOTOOL=false
5179         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5180       fi
5181     fi
5182     if test "$ICOTOOL" = false
5183     then
5184       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5185 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5186       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5187     else
5188       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5189 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5190     fi
5191   fi
5192
5193 fi
5194
5195
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5197 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5198 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5199   $as_echo_n "(cached) " >&6
5200 else
5201   ac_check_lib_save_LIBS=$LIBS
5202 LIBS="-li386  $LIBS"
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h.  */
5205
5206 /* Override any GCC internal prototype to avoid an error.
5207    Use char because int might match the return type of a GCC
5208    builtin and then its argument prototype would still apply.  */
5209 #ifdef __cplusplus
5210 extern "C"
5211 #endif
5212 char i386_set_ldt ();
5213 int
5214 main ()
5215 {
5216 return i386_set_ldt ();
5217   ;
5218   return 0;
5219 }
5220 _ACEOF
5221 if ac_fn_c_try_link "$LINENO"; then :
5222   ac_cv_lib_i386_i386_set_ldt=yes
5223 else
5224   ac_cv_lib_i386_i386_set_ldt=no
5225 fi
5226 rm -f core conftest.err conftest.$ac_objext \
5227     conftest$ac_exeext conftest.$ac_ext
5228 LIBS=$ac_check_lib_save_LIBS
5229 fi
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5231 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5232 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5233   cat >>confdefs.h <<_ACEOF
5234 #define HAVE_LIBI386 1
5235 _ACEOF
5236
5237   LIBS="-li386 $LIBS"
5238
5239 fi
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5242 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5243 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5244   $as_echo_n "(cached) " >&6
5245 else
5246   ac_check_lib_save_LIBS=$LIBS
5247 LIBS="-lossaudio  $LIBS"
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h.  */
5250
5251 /* Override any GCC internal prototype to avoid an error.
5252    Use char because int might match the return type of a GCC
5253    builtin and then its argument prototype would still apply.  */
5254 #ifdef __cplusplus
5255 extern "C"
5256 #endif
5257 char _oss_ioctl ();
5258 int
5259 main ()
5260 {
5261 return _oss_ioctl ();
5262   ;
5263   return 0;
5264 }
5265 _ACEOF
5266 if ac_fn_c_try_link "$LINENO"; then :
5267   ac_cv_lib_ossaudio__oss_ioctl=yes
5268 else
5269   ac_cv_lib_ossaudio__oss_ioctl=no
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext \
5272     conftest$ac_exeext conftest.$ac_ext
5273 LIBS=$ac_check_lib_save_LIBS
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5276 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5277 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5278   cat >>confdefs.h <<_ACEOF
5279 #define HAVE_LIBOSSAUDIO 1
5280 _ACEOF
5281
5282   LIBS="-lossaudio $LIBS"
5283
5284 fi
5285
5286
5287 XLIB=""
5288
5289 OPENGL_LIBS=""
5290
5291
5292
5293 # Check whether --enable-largefile was given.
5294 if test "${enable_largefile+set}" = set; then :
5295   enableval=$enable_largefile;
5296 fi
5297
5298 if test "$enable_largefile" != no; then
5299
5300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5301 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5302 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   ac_cv_sys_largefile_CC=no
5306      if test "$GCC" != yes; then
5307        ac_save_CC=$CC
5308        while :; do
5309          # IRIX 6.2 and later do not support large files by default,
5310          # so use the C compiler's -n32 option if that helps.
5311          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h.  */
5313 #include <sys/types.h>
5314  /* Check that off_t can represent 2**63 - 1 correctly.
5315     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5316     since some C++ compilers masquerading as C compilers
5317     incorrectly reject 9223372036854775807.  */
5318 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5319   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5320                        && LARGE_OFF_T % 2147483647 == 1)
5321                       ? 1 : -1];
5322 int
5323 main ()
5324 {
5325
5326   ;
5327   return 0;
5328 }
5329 _ACEOF
5330          if ac_fn_c_try_compile "$LINENO"; then :
5331   break
5332 fi
5333 rm -f core conftest.err conftest.$ac_objext
5334          CC="$CC -n32"
5335          if ac_fn_c_try_compile "$LINENO"; then :
5336   ac_cv_sys_largefile_CC=' -n32'; break
5337 fi
5338 rm -f core conftest.err conftest.$ac_objext
5339          break
5340        done
5341        CC=$ac_save_CC
5342        rm -f conftest.$ac_ext
5343     fi
5344 fi
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5346 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5347   if test "$ac_cv_sys_largefile_CC" != no; then
5348     CC=$CC$ac_cv_sys_largefile_CC
5349   fi
5350
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5352 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5353 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356   while :; do
5357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h.  */
5359 #include <sys/types.h>
5360  /* Check that off_t can represent 2**63 - 1 correctly.
5361     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5362     since some C++ compilers masquerading as C compilers
5363     incorrectly reject 9223372036854775807.  */
5364 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5365   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5366                        && LARGE_OFF_T % 2147483647 == 1)
5367                       ? 1 : -1];
5368 int
5369 main ()
5370 {
5371
5372   ;
5373   return 0;
5374 }
5375 _ACEOF
5376 if ac_fn_c_try_compile "$LINENO"; then :
5377   ac_cv_sys_file_offset_bits=no; break
5378 fi
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h.  */
5382 #define _FILE_OFFSET_BITS 64
5383 #include <sys/types.h>
5384  /* Check that off_t can represent 2**63 - 1 correctly.
5385     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5386     since some C++ compilers masquerading as C compilers
5387     incorrectly reject 9223372036854775807.  */
5388 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5389   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5390                        && LARGE_OFF_T % 2147483647 == 1)
5391                       ? 1 : -1];
5392 int
5393 main ()
5394 {
5395
5396   ;
5397   return 0;
5398 }
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401   ac_cv_sys_file_offset_bits=64; break
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404   ac_cv_sys_file_offset_bits=unknown
5405   break
5406 done
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5409 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5410 case $ac_cv_sys_file_offset_bits in #(
5411   no | unknown) ;;
5412   *)
5413 cat >>confdefs.h <<_ACEOF
5414 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5415 _ACEOF
5416 ;;
5417 esac
5418 rm -rf conftest*
5419   if test $ac_cv_sys_file_offset_bits = unknown; then
5420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5421 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5422 if test "${ac_cv_sys_large_files+set}" = set; then :
5423   $as_echo_n "(cached) " >&6
5424 else
5425   while :; do
5426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h.  */
5428 #include <sys/types.h>
5429  /* Check that off_t can represent 2**63 - 1 correctly.
5430     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5431     since some C++ compilers masquerading as C compilers
5432     incorrectly reject 9223372036854775807.  */
5433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5434   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5435                        && LARGE_OFF_T % 2147483647 == 1)
5436                       ? 1 : -1];
5437 int
5438 main ()
5439 {
5440
5441   ;
5442   return 0;
5443 }
5444 _ACEOF
5445 if ac_fn_c_try_compile "$LINENO"; then :
5446   ac_cv_sys_large_files=no; break
5447 fi
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h.  */
5451 #define _LARGE_FILES 1
5452 #include <sys/types.h>
5453  /* Check that off_t can represent 2**63 - 1 correctly.
5454     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5455     since some C++ compilers masquerading as C compilers
5456     incorrectly reject 9223372036854775807.  */
5457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5458   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5459                        && LARGE_OFF_T % 2147483647 == 1)
5460                       ? 1 : -1];
5461 int
5462 main ()
5463 {
5464
5465   ;
5466   return 0;
5467 }
5468 _ACEOF
5469 if ac_fn_c_try_compile "$LINENO"; then :
5470   ac_cv_sys_large_files=1; break
5471 fi
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473   ac_cv_sys_large_files=unknown
5474   break
5475 done
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5478 $as_echo "$ac_cv_sys_large_files" >&6; }
5479 case $ac_cv_sys_large_files in #(
5480   no | unknown) ;;
5481   *)
5482 cat >>confdefs.h <<_ACEOF
5483 #define _LARGE_FILES $ac_cv_sys_large_files
5484 _ACEOF
5485 ;;
5486 esac
5487 rm -rf conftest*
5488   fi
5489 fi
5490
5491
5492 ac_ext=c
5493 ac_cpp='$CPP $CPPFLAGS'
5494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5498 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5499 # On Suns, sometimes $CPP names a directory.
5500 if test -n "$CPP" && test -d "$CPP"; then
5501   CPP=
5502 fi
5503 if test -z "$CPP"; then
5504   if test "${ac_cv_prog_CPP+set}" = set; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507       # Double quotes because CPP needs to be expanded
5508     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5509     do
5510       ac_preproc_ok=false
5511 for ac_c_preproc_warn_flag in '' yes
5512 do
5513   # Use a header file that comes with gcc, so configuring glibc
5514   # with a fresh cross-compiler works.
5515   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516   # <limits.h> exists even on freestanding compilers.
5517   # On the NeXT, cc -E runs the code through the compiler's parser,
5518   # not just through cpp. "Syntax error" is here to catch this case.
5519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h.  */
5521 #ifdef __STDC__
5522 # include <limits.h>
5523 #else
5524 # include <assert.h>
5525 #endif
5526                      Syntax error
5527 _ACEOF
5528 if ac_fn_c_try_cpp "$LINENO"; then :
5529
5530 else
5531   # Broken: fails on valid input.
5532 continue
5533 fi
5534 rm -f conftest.err conftest.i conftest.$ac_ext
5535
5536   # OK, works on sane cases.  Now check whether nonexistent headers
5537   # can be detected and how.
5538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h.  */
5540 #include <ac_nonexistent.h>
5541 _ACEOF
5542 if ac_fn_c_try_cpp "$LINENO"; then :
5543   # Broken: success on invalid input.
5544 continue
5545 else
5546   # Passes both tests.
5547 ac_preproc_ok=:
5548 break
5549 fi
5550 rm -f conftest.err conftest.i conftest.$ac_ext
5551
5552 done
5553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5554 rm -f conftest.i conftest.err conftest.$ac_ext
5555 if $ac_preproc_ok; then :
5556   break
5557 fi
5558
5559     done
5560     ac_cv_prog_CPP=$CPP
5561
5562 fi
5563   CPP=$ac_cv_prog_CPP
5564 else
5565   ac_cv_prog_CPP=$CPP
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5568 $as_echo "$CPP" >&6; }
5569 ac_preproc_ok=false
5570 for ac_c_preproc_warn_flag in '' yes
5571 do
5572   # Use a header file that comes with gcc, so configuring glibc
5573   # with a fresh cross-compiler works.
5574   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5575   # <limits.h> exists even on freestanding compilers.
5576   # On the NeXT, cc -E runs the code through the compiler's parser,
5577   # not just through cpp. "Syntax error" is here to catch this case.
5578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h.  */
5580 #ifdef __STDC__
5581 # include <limits.h>
5582 #else
5583 # include <assert.h>
5584 #endif
5585                      Syntax error
5586 _ACEOF
5587 if ac_fn_c_try_cpp "$LINENO"; then :
5588
5589 else
5590   # Broken: fails on valid input.
5591 continue
5592 fi
5593 rm -f conftest.err conftest.i conftest.$ac_ext
5594
5595   # OK, works on sane cases.  Now check whether nonexistent headers
5596   # can be detected and how.
5597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h.  */
5599 #include <ac_nonexistent.h>
5600 _ACEOF
5601 if ac_fn_c_try_cpp "$LINENO"; then :
5602   # Broken: success on invalid input.
5603 continue
5604 else
5605   # Passes both tests.
5606 ac_preproc_ok=:
5607 break
5608 fi
5609 rm -f conftest.err conftest.i conftest.$ac_ext
5610
5611 done
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.i conftest.err conftest.$ac_ext
5614 if $ac_preproc_ok; then :
5615
5616 else
5617   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5619 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5620 See \`config.log' for more details" "$LINENO" 5 ; }
5621 fi
5622
5623 ac_ext=c
5624 ac_cpp='$CPP $CPPFLAGS'
5625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5628
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5631 $as_echo_n "checking for ANSI C header files... " >&6; }
5632 if test "${ac_cv_header_stdc+set}" = set; then :
5633   $as_echo_n "(cached) " >&6
5634 else
5635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h.  */
5637 #include <stdlib.h>
5638 #include <stdarg.h>
5639 #include <string.h>
5640 #include <float.h>
5641
5642 int
5643 main ()
5644 {
5645
5646   ;
5647   return 0;
5648 }
5649 _ACEOF
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651   ac_cv_header_stdc=yes
5652 else
5653   ac_cv_header_stdc=no
5654 fi
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656
5657 if test $ac_cv_header_stdc = yes; then
5658   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h.  */
5661 #include <string.h>
5662
5663 _ACEOF
5664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665   $EGREP "memchr" >/dev/null 2>&1; then :
5666
5667 else
5668   ac_cv_header_stdc=no
5669 fi
5670 rm -f conftest*
5671
5672 fi
5673
5674 if test $ac_cv_header_stdc = yes; then
5675   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h.  */
5678 #include <stdlib.h>
5679
5680 _ACEOF
5681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5682   $EGREP "free" >/dev/null 2>&1; then :
5683
5684 else
5685   ac_cv_header_stdc=no
5686 fi
5687 rm -f conftest*
5688
5689 fi
5690
5691 if test $ac_cv_header_stdc = yes; then
5692   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5693   if test "$cross_compiling" = yes; then :
5694   :
5695 else
5696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h.  */
5698 #include <ctype.h>
5699 #include <stdlib.h>
5700 #if ((' ' & 0x0FF) == 0x020)
5701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5703 #else
5704 # define ISLOWER(c) \
5705                    (('a' <= (c) && (c) <= 'i') \
5706                      || ('j' <= (c) && (c) <= 'r') \
5707                      || ('s' <= (c) && (c) <= 'z'))
5708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5709 #endif
5710
5711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5712 int
5713 main ()
5714 {
5715   int i;
5716   for (i = 0; i < 256; i++)
5717     if (XOR (islower (i), ISLOWER (i))
5718         || toupper (i) != TOUPPER (i))
5719       return 2;
5720   return 0;
5721 }
5722 _ACEOF
5723 if ac_fn_c_try_run "$LINENO"; then :
5724
5725 else
5726   ac_cv_header_stdc=no
5727 fi
5728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5729   conftest.$ac_objext conftest.beam conftest.$ac_ext
5730 fi
5731
5732 fi
5733 fi
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5735 $as_echo "$ac_cv_header_stdc" >&6; }
5736 if test $ac_cv_header_stdc = yes; then
5737
5738 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5739
5740 fi
5741
5742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5743 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5744                   inttypes.h stdint.h unistd.h
5745 do :
5746   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5747 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5748 "
5749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5750   cat >>confdefs.h <<_ACEOF
5751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5752 _ACEOF
5753
5754 fi
5755
5756 done
5757
5758
5759 for ac_header in \
5760         AL/al.h \
5761         AudioToolbox/AudioConverter.h \
5762         AudioUnit/AudioUnit.h \
5763         CL/cl.h \
5764         Carbon/Carbon.h \
5765         CoreAudio/CoreAudio.h \
5766         DiskArbitration/DiskArbitration.h \
5767         IOKit/IOKitLib.h \
5768         IOKit/hid/IOHIDLib.h \
5769         OpenAL/al.h \
5770         OpenCL/opencl.h \
5771         alias.h \
5772         alsa/asoundlib.h \
5773         arpa/inet.h \
5774         arpa/nameser.h \
5775         asm/types.h \
5776         capi20.h \
5777         curses.h \
5778         direct.h \
5779         dirent.h \
5780         dlfcn.h \
5781         elf.h \
5782         float.h \
5783         fnmatch.h \
5784         fontconfig/fontconfig.h \
5785         getopt.h \
5786         grp.h \
5787         gsm.h \
5788         gsm/gsm.h \
5789         icns.h \
5790         ieeefp.h \
5791         inet/mib2.h \
5792         io.h \
5793         jack/jack.h \
5794         jpeglib.h \
5795         kstat.h \
5796         lber.h \
5797         lcms.h \
5798         lcms/lcms.h \
5799         ldap.h \
5800         link.h \
5801         linux/cdrom.h \
5802         linux/compiler.h \
5803         linux/hdreg.h \
5804         linux/input.h \
5805         linux/ioctl.h \
5806         linux/joystick.h \
5807         linux/major.h \
5808         linux/param.h \
5809         linux/serial.h \
5810         linux/types.h \
5811         linux/ucdrom.h \
5812         mach-o/nlist.h \
5813         mach-o/loader.h \
5814         mach/mach.h \
5815         mach/machine.h \
5816         machine/cpu.h \
5817         machine/limits.h \
5818         machine/soundcard.h \
5819         machine/sysarch.h \
5820         mntent.h \
5821         mpg123.h \
5822         ncurses.h \
5823         netdb.h \
5824         netinet/in.h \
5825         netinet/in_systm.h \
5826         netinet/tcp.h \
5827         netinet/tcp_fsm.h \
5828         openssl/err.h \
5829         openssl/ssl.h \
5830         png.h \
5831         poll.h \
5832         port.h \
5833         process.h \
5834         pthread.h \
5835         pwd.h \
5836         regex.h \
5837         sched.h \
5838         scsi/scsi.h \
5839         scsi/scsi_ioctl.h \
5840         scsi/sg.h \
5841         soundcard.h \
5842         stdbool.h \
5843         stdint.h \
5844         strings.h \
5845         stropts.h \
5846         sys/asoundlib.h \
5847         sys/cdio.h \
5848         sys/elf32.h \
5849         sys/epoll.h \
5850         sys/errno.h \
5851         sys/event.h \
5852         sys/exec_elf.h \
5853         sys/filio.h \
5854         sys/inotify.h \
5855         sys/ioctl.h \
5856         sys/ipc.h \
5857         sys/limits.h \
5858         sys/link.h \
5859         sys/mman.h \
5860         sys/modem.h \
5861         sys/msg.h \
5862         sys/mtio.h \
5863         sys/param.h \
5864         sys/poll.h \
5865         sys/prctl.h \
5866         sys/protosw.h \
5867         sys/ptrace.h \
5868         sys/resource.h \
5869         sys/scsiio.h \
5870         sys/shm.h \
5871         sys/signal.h \
5872         sys/socket.h \
5873         sys/socketvar.h \
5874         sys/sockio.h \
5875         sys/soundcard.h \
5876         sys/statvfs.h \
5877         sys/strtio.h \
5878         sys/syscall.h \
5879         sys/tihdr.h \
5880         sys/time.h \
5881         sys/timeout.h \
5882         sys/times.h \
5883         sys/uio.h \
5884         sys/un.h \
5885         sys/utsname.h \
5886         sys/vm86.h \
5887         sys/wait.h \
5888         syscall.h \
5889         termios.h \
5890         tiffio.h \
5891         unistd.h \
5892         utime.h \
5893         valgrind/memcheck.h \
5894         valgrind/valgrind.h \
5895         zlib.h
5896
5897 do :
5898   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5899 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5900 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5901   cat >>confdefs.h <<_ACEOF
5902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5903 _ACEOF
5904
5905 fi
5906
5907 done
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5910 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5911 if test "${ac_cv_header_stat_broken+set}" = set; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h.  */
5916 #include <sys/types.h>
5917 #include <sys/stat.h>
5918
5919 #if defined S_ISBLK && defined S_IFDIR
5920 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5921 #endif
5922
5923 #if defined S_ISBLK && defined S_IFCHR
5924 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5925 #endif
5926
5927 #if defined S_ISLNK && defined S_IFREG
5928 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5929 #endif
5930
5931 #if defined S_ISSOCK && defined S_IFREG
5932 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5933 #endif
5934
5935 _ACEOF
5936 if ac_fn_c_try_compile "$LINENO"; then :
5937   ac_cv_header_stat_broken=no
5938 else
5939   ac_cv_header_stat_broken=yes
5940 fi
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5944 $as_echo "$ac_cv_header_stat_broken" >&6; }
5945 if test $ac_cv_header_stat_broken = yes; then
5946
5947 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5948
5949 fi
5950
5951
5952
5953 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5954 do :
5955   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5956 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5957      #ifdef HAVE_SYS_PARAM_H
5958      # include <sys/param.h>
5959      #endif
5960 "
5961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5962   cat >>confdefs.h <<_ACEOF
5963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5964 _ACEOF
5965
5966 fi
5967
5968 done
5969
5970
5971 for ac_header in \
5972         netinet/ip.h \
5973         net/if.h \
5974         net/if_arp.h \
5975         net/if_dl.h \
5976         net/if_types.h \
5977         net/route.h \
5978         netinet/if_ether.h \
5979         netinet/if_inarp.h \
5980         netinet/in_pcb.h \
5981         netinet/ip_icmp.h \
5982         netinet/ip_var.h \
5983         netinet/udp.h \
5984         netipx/ipx.h \
5985
5986 do :
5987   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5989      #ifdef HAVE_SYS_SOCKET_H
5990      # include <sys/socket.h>
5991      #endif
5992      #ifdef HAVE_SYS_SOCKETVAR_H
5993      # include <sys/socketvar.h>
5994      #endif
5995      #ifdef HAVE_NET_ROUTE_H
5996      # include <net/route.h>
5997      #endif
5998      #ifdef HAVE_NETINET_IN_H
5999      # include <netinet/in.h>
6000      #endif
6001      #ifdef HAVE_NETINET_IN_SYSTM_H
6002      # include <netinet/in_systm.h>
6003      #endif
6004      #ifdef HAVE_NET_IF_H
6005      # include <net/if.h>
6006      #endif
6007      #ifdef HAVE_NETINET_IP_H
6008      # include <netinet/ip.h>
6009      #endif
6010 "
6011 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6012   cat >>confdefs.h <<_ACEOF
6013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6014 _ACEOF
6015
6016 fi
6017
6018 done
6019
6020
6021 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6022 do :
6023   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6024 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6025      #ifdef HAVE_ALIAS_H
6026      # include <alias.h>
6027      #endif
6028      #ifdef HAVE_SYS_SOCKET_H
6029      # include <sys/socket.h>
6030      #endif
6031      #ifdef HAVE_SYS_SOCKETVAR_H
6032      # include <sys/socketvar.h>
6033      #endif
6034      #ifdef HAVE_SYS_TIMEOUT_H
6035      # include <sys/timeout.h>
6036      #endif
6037      #ifdef HAVE_NETINET_IN_H
6038      # include <netinet/in.h>
6039      #endif
6040      #ifdef HAVE_NETINET_IN_SYSTM_H
6041      # include <netinet/in_systm.h>
6042      #endif
6043      #ifdef HAVE_NETINET_IP_H
6044      # include <netinet/ip.h>
6045      #endif
6046      #ifdef HAVE_NETINET_IP_VAR_H
6047      # include <netinet/ip_var.h>
6048      #endif
6049      #ifdef HAVE_NETINET_IP_ICMP_H
6050      # include <netinet/ip_icmp.h>
6051      #endif
6052      #ifdef HAVE_NETINET_UDP_H
6053      # include <netinet/udp.h>
6054      #endif
6055      #ifdef HAVE_NETINET_TCP_H
6056      # include <netinet/tcp.h>
6057      #endif
6058      #ifdef HAVE_NETINET_TCP_TIMER_H
6059      #include <netinet/tcp_timer.h>
6060      #endif
6061 "
6062 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6063   cat >>confdefs.h <<_ACEOF
6064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6065 _ACEOF
6066
6067 fi
6068
6069 done
6070
6071
6072 for ac_header in linux/ipx.h linux/irda.h
6073 do :
6074   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6075 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6076      #ifdef HAVE_ASM_TYPES_H
6077      # include <asm/types.h>
6078      #endif
6079      #ifdef HAVE_SYS_SOCKET_H
6080      # include <sys/socket.h>
6081      #endif
6082      #ifdef HAVE_LINUX_TYPES_H
6083      # include <linux/types.h>
6084      #endif
6085 "
6086 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6087   cat >>confdefs.h <<_ACEOF
6088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6089 _ACEOF
6090
6091 fi
6092
6093 done
6094
6095
6096 for ac_header in mach-o/dyld_images.h
6097 do :
6098   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6099      # include <stdbool.h>
6100      #endif
6101      #ifdef HAVE_STDINT_H
6102      # include <stdint.h>
6103      #endif
6104 "
6105 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6106   cat >>confdefs.h <<_ACEOF
6107 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6108 _ACEOF
6109
6110 fi
6111
6112 done
6113
6114
6115 for ac_header in resolv.h
6116 do :
6117   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6118      #ifdef HAVE_SYS_SOCKET_H
6119      # include <sys/socket.h>
6120      #endif
6121      #ifdef HAVE_NETINET_IN_H
6122      # include <netinet/in.h>
6123      #endif
6124      #ifdef HAVE_ARPA_NAMESER_H
6125      # include <arpa/nameser.h>
6126      #endif
6127 "
6128 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6129   cat >>confdefs.h <<_ACEOF
6130 #define HAVE_RESOLV_H 1
6131 _ACEOF
6132
6133 fi
6134
6135 done
6136
6137
6138 for ac_header in ifaddrs.h
6139 do :
6140   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6141 "
6142 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6143   cat >>confdefs.h <<_ACEOF
6144 #define HAVE_IFADDRS_H 1
6145 _ACEOF
6146
6147 fi
6148
6149 done
6150
6151
6152 for ac_header in ucontext.h
6153 do :
6154   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6155 "
6156 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6157   cat >>confdefs.h <<_ACEOF
6158 #define HAVE_UCONTEXT_H 1
6159 _ACEOF
6160
6161 fi
6162
6163 done
6164
6165
6166 for ac_header in sys/thr.h
6167 do :
6168   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6169 #ifdef HAVE_UCONTEXT_H
6170 #include <ucontext.h>
6171 #endif
6172 "
6173 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6174   cat >>confdefs.h <<_ACEOF
6175 #define HAVE_SYS_THR_H 1
6176 _ACEOF
6177
6178 fi
6179
6180 done
6181
6182
6183 for ac_header in pthread_np.h
6184 do :
6185   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6186 #include <pthread.h>
6187 #endif
6188 "
6189 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6190   cat >>confdefs.h <<_ACEOF
6191 #define HAVE_PTHREAD_NP_H 1
6192 _ACEOF
6193
6194 fi
6195
6196 done
6197
6198
6199 for ac_header in linux/videodev.h
6200 do :
6201   ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6202 #include <sys/time.h>
6203 #endif
6204 #include <sys/types.h>
6205 #ifdef HAVE_ASM_TYPES_H
6206 #include <asm/types.h>
6207 #endif
6208 "
6209 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6210   cat >>confdefs.h <<_ACEOF
6211 #define HAVE_LINUX_VIDEODEV_H 1
6212 _ACEOF
6213
6214 fi
6215
6216 done
6217
6218
6219 for ac_header in linux/capi.h
6220 do :
6221   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6222 "
6223 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6224   cat >>confdefs.h <<_ACEOF
6225 #define HAVE_LINUX_CAPI_H 1
6226 _ACEOF
6227
6228 fi
6229
6230 done
6231
6232
6233
6234 DLLEXT=""
6235
6236 DLLFLAGS="-D_REENTRANT"
6237
6238 LDSHARED=""
6239
6240 LDDLLFLAGS=""
6241
6242 LIBEXT="so"
6243
6244 IMPLIBEXT="def"
6245
6246 LDRPATH_INSTALL=""
6247
6248 LDRPATH_LOCAL=""
6249
6250 STATIC_IMPLIBEXT="def.a"
6251 # Extract the first word of "ldd", so it can be a program name with args.
6252 set dummy ldd; ac_word=$2
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if test "${ac_cv_path_LDD+set}" = set; then :
6256   $as_echo_n "(cached) " >&6
6257 else
6258   case $LDD in
6259   [\\/]* | ?:[\\/]*)
6260   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6261   ;;
6262   *)
6263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 as_dummy="/sbin:/usr/sbin:$PATH"
6265 for as_dir in $as_dummy
6266 do
6267   IFS=$as_save_IFS
6268   test -z "$as_dir" && as_dir=.
6269     for ac_exec_ext in '' $ac_executable_extensions; do
6270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273     break 2
6274   fi
6275 done
6276   done
6277 IFS=$as_save_IFS
6278
6279   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6280   ;;
6281 esac
6282 fi
6283 LDD=$ac_cv_path_LDD
6284 if test -n "$LDD"; then
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6286 $as_echo "$LDD" >&6; }
6287 else
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6290 fi
6291
6292
6293
6294 case $host_os in
6295   cygwin*|mingw32*)
6296     if test -n "$ac_tool_prefix"; then
6297   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6298 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6302   $as_echo_n "(cached) " >&6
6303 else
6304   if test -n "$DLLTOOL"; then
6305   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312     for ac_exec_ext in '' $ac_executable_extensions; do
6313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319   done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 DLLTOOL=$ac_cv_prog_DLLTOOL
6325 if test -n "$DLLTOOL"; then
6326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6327 $as_echo "$DLLTOOL" >&6; }
6328 else
6329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333
6334 fi
6335 if test -z "$ac_cv_prog_DLLTOOL"; then
6336   ac_ct_DLLTOOL=$DLLTOOL
6337   # Extract the first word of "dlltool", so it can be a program name with args.
6338 set dummy dlltool; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6342   $as_echo_n "(cached) " >&6
6343 else
6344   if test -n "$ac_ct_DLLTOOL"; then
6345   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350   IFS=$as_save_IFS
6351   test -z "$as_dir" && as_dir=.
6352     for ac_exec_ext in '' $ac_executable_extensions; do
6353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356     break 2
6357   fi
6358 done
6359   done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6365 if test -n "$ac_ct_DLLTOOL"; then
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6367 $as_echo "$ac_ct_DLLTOOL" >&6; }
6368 else
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373   if test "x$ac_ct_DLLTOOL" = x; then
6374     DLLTOOL="false"
6375   else
6376     case $cross_compiling:$ac_tool_warned in
6377 yes:)
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380 ac_tool_warned=yes ;;
6381 esac
6382     DLLTOOL=$ac_ct_DLLTOOL
6383   fi
6384 else
6385   DLLTOOL="$ac_cv_prog_DLLTOOL"
6386 fi
6387
6388     if test -n "$ac_tool_prefix"; then
6389   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6390 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   if test -n "$DLLWRAP"; then
6397   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402   IFS=$as_save_IFS
6403   test -z "$as_dir" && as_dir=.
6404     for ac_exec_ext in '' $ac_executable_extensions; do
6405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408     break 2
6409   fi
6410 done
6411   done
6412 IFS=$as_save_IFS
6413
6414 fi
6415 fi
6416 DLLWRAP=$ac_cv_prog_DLLWRAP
6417 if test -n "$DLLWRAP"; then
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6419 $as_echo "$DLLWRAP" >&6; }
6420 else
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6423 fi
6424
6425
6426 fi
6427 if test -z "$ac_cv_prog_DLLWRAP"; then
6428   ac_ct_DLLWRAP=$DLLWRAP
6429   # Extract the first word of "dllwrap", so it can be a program name with args.
6430 set dummy dllwrap; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6434   $as_echo_n "(cached) " >&6
6435 else
6436   if test -n "$ac_ct_DLLWRAP"; then
6437   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442   IFS=$as_save_IFS
6443   test -z "$as_dir" && as_dir=.
6444     for ac_exec_ext in '' $ac_executable_extensions; do
6445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448     break 2
6449   fi
6450 done
6451   done
6452 IFS=$as_save_IFS
6453
6454 fi
6455 fi
6456 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6457 if test -n "$ac_ct_DLLWRAP"; then
6458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6459 $as_echo "$ac_ct_DLLWRAP" >&6; }
6460 else
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6463 fi
6464
6465   if test "x$ac_ct_DLLWRAP" = x; then
6466     DLLWRAP="false"
6467   else
6468     case $cross_compiling:$ac_tool_warned in
6469 yes:)
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6473 esac
6474     DLLWRAP=$ac_ct_DLLWRAP
6475   fi
6476 else
6477   DLLWRAP="$ac_cv_prog_DLLWRAP"
6478 fi
6479
6480     if test "$DLLWRAP" = "false"; then
6481       LIBEXT="a"
6482     else
6483             LIBEXT="dll"
6484     fi
6485     IMPLIBEXT="a"
6486     STATIC_IMPLIBEXT="a"
6487         enable_iphlpapi=${enable_iphlpapi:-no}
6488     enable_kernel32=${enable_kernel32:-no}
6489     enable_msvcrt=${enable_msvcrt:-no}
6490     enable_ntdll=${enable_ntdll:-no}
6491     enable_ws2_32=${enable_ws2_32:-no}
6492     enable_loader=${enable_loader:-no}
6493     enable_server=${enable_server:-no}
6494         with_x=${with_x:-no}
6495     with_pthread=${with_pthread:-no}
6496     ;;
6497   darwin*|macosx*)
6498     DLLEXT=".so"
6499     LIBEXT="dylib"
6500     DLLFLAGS="$DLLFLAGS -fPIC"
6501     LDDLLFLAGS="-bundle -multiply_defined suppress"
6502     LIBWINE_LDFLAGS="-multiply_defined suppress"
6503     LDSHARED="\$(CC) -dynamiclib"
6504     STRIP="$STRIP -x"
6505     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6506         SECURITYLIB="-framework Security -framework CoreFoundation"
6507
6508     COREFOUNDATIONLIB="-framework CoreFoundation"
6509
6510     IOKITLIB="-framework IOKit -framework CoreFoundation"
6511
6512     QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6513
6514     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6515
6516     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6517     then
6518                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6519
6520     fi
6521     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6522     then
6523                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6524
6525     fi
6526     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6527     then
6528         FRAMEWORK_OPENAL="-framework OpenAL"
6529
6530
6531 cat >>confdefs.h <<_ACEOF
6532 #define HAVE_OPENAL 1
6533 _ACEOF
6534
6535         ac_cv_lib_openal=yes
6536     fi
6537     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6538     then
6539         LIBOPENCL="-framework OpenCL"
6540
6541         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6542     fi
6543     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6544     then
6545         ac_save_LIBS="$LIBS"
6546         LIBS="$LIBS $IOKITLIB"
6547         for ac_func in IOHIDManagerCreate
6548 do :
6549   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6550 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6551   cat >>confdefs.h <<_ACEOF
6552 #define HAVE_IOHIDMANAGERCREATE 1
6553 _ACEOF
6554
6555 fi
6556 done
6557
6558         LIBS="$ac_save_LIBS"
6559     fi
6560     enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6561     case $host_cpu in
6562       *powerpc*)
6563         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6564     esac
6565         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6566     then
6567         CARBONLIB="-framework Carbon"
6568
6569         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6570     fi
6571         if test "x$enable_win16" = "xyes"
6572     then
6573         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6574 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6575         if test "$cross_compiling" = yes; then :
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6577 $as_echo "cross-compiling, assuming yes" >&6; }
6578 else
6579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h.  */
6581 asm(".text\n"
6582                                             "bad:\tnop;nop\n"
6583                                             "good:\tnop;nop\n\t"
6584                                             ".globl _testfunc\n"
6585                                             "_testfunc:\tcallw good");
6586                                         extern void testfunc();
6587 int
6588 main ()
6589 {
6590 unsigned short *p = (unsigned short *)testfunc;
6591                                         return p[0] != 0xe866 || p[1] != 0xfffa
6592   ;
6593   return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_c_try_run "$LINENO"; then :
6597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6598 $as_echo "yes" >&6; }
6599 else
6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6602                                        as_fn_error $? "Xcode 3.x cannot build 16-bit code correctly. Use --disable-win16 if you don't need 16-bit support." "$LINENO" 5
6603 fi
6604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6605   conftest.$ac_objext conftest.beam conftest.$ac_ext
6606 fi
6607
6608     fi
6609     ;;
6610   *)
6611     DLLFLAGS="$DLLFLAGS -fPIC"
6612     DLLEXT=".so"
6613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6614 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6615 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6616   $as_echo_n "(cached) " >&6
6617 else
6618   ac_wine_try_cflags_saved=$CFLAGS
6619 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h.  */
6622 void myfunc() {}
6623 _ACEOF
6624 if ac_fn_c_try_link "$LINENO"; then :
6625   ac_cv_c_dll_gnuelf="yes"
6626 else
6627   ac_cv_c_dll_gnuelf="no"
6628 fi
6629 rm -f core conftest.err conftest.$ac_objext \
6630     conftest$ac_exeext conftest.$ac_ext
6631 CFLAGS=$ac_wine_try_cflags_saved
6632 fi
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6634 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6635     if test "$ac_cv_c_dll_gnuelf" = "yes"
6636     then
6637       LDSHARED="\$(CC) -shared"
6638       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6639       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6640 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6641 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6642   $as_echo_n "(cached) " >&6
6643 else
6644   ac_wine_try_cflags_saved=$CFLAGS
6645 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h.  */
6648 int main(int argc, char **argv) { return 0; }
6649 _ACEOF
6650 if ac_fn_c_try_link "$LINENO"; then :
6651   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6652 else
6653   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext \
6656     conftest$ac_exeext conftest.$ac_ext
6657 CFLAGS=$ac_wine_try_cflags_saved
6658 fi
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6660 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6661 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6662   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6663 else
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6665 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6666 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   ac_wine_try_cflags_saved=$CFLAGS
6670 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h.  */
6673 int main(int argc, char **argv) { return 0; }
6674 _ACEOF
6675 if ac_fn_c_try_link "$LINENO"; then :
6676   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6677 else
6678   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6679 fi
6680 rm -f core conftest.err conftest.$ac_objext \
6681     conftest$ac_exeext conftest.$ac_ext
6682 CFLAGS=$ac_wine_try_cflags_saved
6683 fi
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6685 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6686 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6687   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6688 fi
6689 fi
6690
6691       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6692 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6693 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6694   $as_echo_n "(cached) " >&6
6695 else
6696   ac_wine_try_cflags_saved=$CFLAGS
6697 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h.  */
6700 int main(int argc, char **argv) { return 0; }
6701 _ACEOF
6702 if ac_fn_c_try_link "$LINENO"; then :
6703   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6704 else
6705   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext \
6708     conftest$ac_exeext conftest.$ac_ext
6709 CFLAGS=$ac_wine_try_cflags_saved
6710 fi
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6712 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6713 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6714   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6715 fi
6716
6717       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
6718 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6719 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6720   $as_echo_n "(cached) " >&6
6721 else
6722   ac_wine_try_cflags_saved=$CFLAGS
6723 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h.  */
6726 int main(int argc, char **argv) { return 0; }
6727 _ACEOF
6728 if ac_fn_c_try_link "$LINENO"; then :
6729   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6730 else
6731   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6732 fi
6733 rm -f core conftest.err conftest.$ac_objext \
6734     conftest$ac_exeext conftest.$ac_ext
6735 CFLAGS=$ac_wine_try_cflags_saved
6736 fi
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6738 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6739 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6740   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6741 fi
6742
6743       echo '{ global: *; };' >conftest.map
6744       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6746 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6747 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6748   $as_echo_n "(cached) " >&6
6749 else
6750   ac_wine_try_cflags_saved=$CFLAGS
6751 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h.  */
6754 int main(int argc, char **argv) { return 0; }
6755 _ACEOF
6756 if ac_fn_c_try_link "$LINENO"; then :
6757   eval "$as_ac_var=yes"
6758 else
6759   eval "$as_ac_var=no"
6760 fi
6761 rm -f core conftest.err conftest.$ac_objext \
6762     conftest$ac_exeext conftest.$ac_ext
6763 CFLAGS=$ac_wine_try_cflags_saved
6764 fi
6765 eval ac_res=\$$as_ac_var
6766                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6767 $as_echo "$ac_res" >&6; }
6768 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6769   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6770 fi
6771       rm -f conftest.map
6772
6773       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6774 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6775 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   ac_wine_try_cflags_saved=$CFLAGS
6779 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h.  */
6782 int main(int argc, char **argv) { return 0; }
6783 _ACEOF
6784 if ac_fn_c_try_link "$LINENO"; then :
6785   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6786 else
6787   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6788 fi
6789 rm -f core conftest.err conftest.$ac_objext \
6790     conftest$ac_exeext conftest.$ac_ext
6791 CFLAGS=$ac_wine_try_cflags_saved
6792 fi
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6794 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6795 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6796   LDEXECFLAGS="-Wl,--export-dynamic"
6797
6798 fi
6799
6800       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6802 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6803 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6804   $as_echo_n "(cached) " >&6
6805 else
6806   ac_wine_try_cflags_saved=$CFLAGS
6807 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h.  */
6810 int main(int argc, char **argv) { return 0; }
6811 _ACEOF
6812 if ac_fn_c_try_link "$LINENO"; then :
6813   eval "$as_ac_var=yes"
6814 else
6815   eval "$as_ac_var=no"
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext \
6818     conftest$ac_exeext conftest.$ac_ext
6819 CFLAGS=$ac_wine_try_cflags_saved
6820 fi
6821 eval ac_res=\$$as_ac_var
6822                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6823 $as_echo "$ac_res" >&6; }
6824 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6825   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6826                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6827 else
6828   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6830 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6831 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6832   $as_echo_n "(cached) " >&6
6833 else
6834   ac_wine_try_cflags_saved=$CFLAGS
6835 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h.  */
6838 int main(int argc, char **argv) { return 0; }
6839 _ACEOF
6840 if ac_fn_c_try_link "$LINENO"; then :
6841   eval "$as_ac_var=yes"
6842 else
6843   eval "$as_ac_var=no"
6844 fi
6845 rm -f core conftest.err conftest.$ac_objext \
6846     conftest$ac_exeext conftest.$ac_ext
6847 CFLAGS=$ac_wine_try_cflags_saved
6848 fi
6849 eval ac_res=\$$as_ac_var
6850                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6851 $as_echo "$ac_res" >&6; }
6852 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6853   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6854                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6855 fi
6856 fi
6857
6858       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6859 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6860 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6861   $as_echo_n "(cached) " >&6
6862 else
6863   ac_wine_try_cflags_saved=$CFLAGS
6864 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h.  */
6867 int main(int argc, char **argv) { return 0; }
6868 _ACEOF
6869 if ac_fn_c_try_link "$LINENO"; then :
6870   ac_cv_cflags__Wl___enable_new_dtags=yes
6871 else
6872   ac_cv_cflags__Wl___enable_new_dtags=no
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext \
6875     conftest$ac_exeext conftest.$ac_ext
6876 CFLAGS=$ac_wine_try_cflags_saved
6877 fi
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6879 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6880 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6881   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6882 fi
6883
6884       case $host_cpu in
6885         *i[3456789]86* | x86_64)
6886           as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6888 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6889 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6890   $as_echo_n "(cached) " >&6
6891 else
6892   ac_wine_try_cflags_saved=$CFLAGS
6893 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h.  */
6896 int main(int argc, char **argv) { return 0; }
6897 _ACEOF
6898 if ac_fn_c_try_link "$LINENO"; then :
6899   eval "$as_ac_var=yes"
6900 else
6901   eval "$as_ac_var=no"
6902 fi
6903 rm -f core conftest.err conftest.$ac_objext \
6904     conftest$ac_exeext conftest.$ac_ext
6905 CFLAGS=$ac_wine_try_cflags_saved
6906 fi
6907 eval ac_res=\$$as_ac_var
6908                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6909 $as_echo "$ac_res" >&6; }
6910 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6911   case $host_os in
6912                            freebsd*)  LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6913                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6914                            esac
6915
6916 fi
6917           # Extract the first word of "prelink", so it can be a program name with args.
6918 set dummy prelink; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if test "${ac_cv_path_PRELINK+set}" = set; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   case $PRELINK in
6925   [\\/]* | ?:[\\/]*)
6926   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6927   ;;
6928   *)
6929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in /sbin /usr/sbin $PATH
6931 do
6932   IFS=$as_save_IFS
6933   test -z "$as_dir" && as_dir=.
6934     for ac_exec_ext in '' $ac_executable_extensions; do
6935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938     break 2
6939   fi
6940 done
6941   done
6942 IFS=$as_save_IFS
6943
6944   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6945   ;;
6946 esac
6947 fi
6948 PRELINK=$ac_cv_path_PRELINK
6949 if test -n "$PRELINK"; then
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6951 $as_echo "$PRELINK" >&6; }
6952 else
6953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6955 fi
6956
6957
6958           if test "x$PRELINK" = xfalse
6959           then
6960               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6961           fi
6962           ;;
6963       esac
6964
6965     else
6966       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6967 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6968 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   ac_wine_try_cflags_saved=$CFLAGS
6972 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h.  */
6975 void myfunc() {}
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978   ac_cv_c_dll_unixware="yes"
6979 else
6980   ac_cv_c_dll_unixware="no"
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext \
6983     conftest$ac_exeext conftest.$ac_ext
6984 CFLAGS=$ac_wine_try_cflags_saved
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6987 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6988       if test "$ac_cv_c_dll_unixware" = "yes"
6989       then
6990         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6991         LDDLLFLAGS="-Wl,-G,-B,symbolic"
6992
6993       else
6994         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6995 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6996 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6997   $as_echo_n "(cached) " >&6
6998 else
6999   ac_wine_try_cflags_saved=$CFLAGS
7000 CFLAGS="$CFLAGS -shared"
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h.  */
7003 void myfunc() {}
7004 _ACEOF
7005 if ac_fn_c_try_link "$LINENO"; then :
7006   ac_cv_c_dll_hpux="yes"
7007 else
7008   ac_cv_c_dll_hpux="no"
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext \
7011     conftest$ac_exeext conftest.$ac_ext
7012 CFLAGS=$ac_wine_try_cflags_saved
7013 fi
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7015 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7016         if test "$ac_cv_c_dll_hpux" = "yes"
7017         then
7018           LIBEXT="sl"
7019           DLLEXT=".sl"
7020           LDDLLFLAGS="-shared -fPIC"
7021           LDSHARED="\$(CC) -shared"
7022         fi
7023       fi
7024     fi
7025     ;;
7026 esac
7027
7028 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7029 enable_winequartz_drv=${enable_winequartz_drv:-no}
7030
7031 if test "$LIBEXT" = "a"; then
7032   as_fn_error $? "could not find a way to build shared libraries.
7033 It is currently not possible to build Wine without shared library
7034 (.so) support to allow transparent switch between .so and .dll files.
7035 If you are using Linux, you will need a newer binutils.
7036 " "$LINENO" 5
7037 fi
7038
7039 CROSSTEST_DISABLE=\#
7040
7041 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7042 then
7043     case "$host_cpu" in
7044   i[3456789]86*)
7045     ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;;
7046   x86_64)
7047     ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;;
7048   *)
7049     ac_prefix_list="" ;;
7050 esac
7051 for ac_prog in $ac_prefix_list
7052 do
7053   # Extract the first word of "$ac_prog", so it can be a program name with args.
7054 set dummy $ac_prog; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7058   $as_echo_n "(cached) " >&6
7059 else
7060   if test -n "$CROSSCC"; then
7061   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7065 do
7066   IFS=$as_save_IFS
7067   test -z "$as_dir" && as_dir=.
7068     for ac_exec_ext in '' $ac_executable_extensions; do
7069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070     ac_cv_prog_CROSSCC="$ac_prog"
7071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072     break 2
7073   fi
7074 done
7075   done
7076 IFS=$as_save_IFS
7077
7078 fi
7079 fi
7080 CROSSCC=$ac_cv_prog_CROSSCC
7081 if test -n "$CROSSCC"; then
7082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7083 $as_echo "$CROSSCC" >&6; }
7084 else
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7087 fi
7088
7089
7090   test -n "$CROSSCC" && break
7091 done
7092 test -n "$CROSSCC" || CROSSCC="false"
7093
7094     if test "$CROSSCC" != "false"
7095     then
7096         ac_save_CC="$CC"
7097         CC="$CROSSCC"
7098         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7099 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7100         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h.  */
7102
7103 int
7104 main ()
7105 {
7106
7107   ;
7108   return 0;
7109 }
7110 _ACEOF
7111 if ac_fn_c_try_compile "$LINENO"; then :
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7114                            set x $CROSSCC
7115                            shift
7116                            target=""
7117                            while test $# -ge 1
7118                            do
7119                                case "$1" in
7120                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7121                                esac
7122                                shift
7123                            done
7124                            if test -n "$target"
7125                            then
7126                                CROSSTEST_DISABLE=""
7127                                CROSSTARGET="$target"
7128
7129                            fi
7130 else
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135         CC="$ac_save_CC"
7136     fi
7137 fi
7138
7139
7140 if test "$ac_cv_header_pthread_h" = "yes"
7141 then
7142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7143 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7144 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7145   $as_echo_n "(cached) " >&6
7146 else
7147   ac_check_lib_save_LIBS=$LIBS
7148 LIBS="-lpthread  $LIBS"
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h.  */
7151
7152 /* Override any GCC internal prototype to avoid an error.
7153    Use char because int might match the return type of a GCC
7154    builtin and then its argument prototype would still apply.  */
7155 #ifdef __cplusplus
7156 extern "C"
7157 #endif
7158 char pthread_create ();
7159 int
7160 main ()
7161 {
7162 return pthread_create ();
7163   ;
7164   return 0;
7165 }
7166 _ACEOF
7167 if ac_fn_c_try_link "$LINENO"; then :
7168   ac_cv_lib_pthread_pthread_create=yes
7169 else
7170   ac_cv_lib_pthread_pthread_create=no
7171 fi
7172 rm -f core conftest.err conftest.$ac_objext \
7173     conftest$ac_exeext conftest.$ac_ext
7174 LIBS=$ac_check_lib_save_LIBS
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7177 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7178 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7179   LIBPTHREAD="-lpthread"
7180
7181 fi
7182
7183 fi
7184 if test "x$LIBPTHREAD" = "x"; then :
7185   case "x$with_pthread" in
7186   xno) ;;
7187   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7188 Wine cannot support threads without libpthread.
7189 Use the --without-pthread option if you really want this." "$LINENO" 5  ;;
7190 esac
7191 fi
7192
7193
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7195 $as_echo_n "checking for X... " >&6; }
7196
7197
7198 # Check whether --with-x was given.
7199 if test "${with_x+set}" = set; then :
7200   withval=$with_x;
7201 fi
7202
7203 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7204 if test "x$with_x" = xno; then
7205   # The user explicitly disabled X.
7206   have_x=disabled
7207 else
7208   case $x_includes,$x_libraries in #(
7209     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
7210     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   # One or both of the vars are not set, and there is no cached value.
7214 ac_x_includes=no ac_x_libraries=no
7215 rm -f -r conftest.dir
7216 if mkdir conftest.dir; then
7217   cd conftest.dir
7218   cat >Imakefile <<'_ACEOF'
7219 incroot:
7220         @echo incroot='${INCROOT}'
7221 usrlibdir:
7222         @echo usrlibdir='${USRLIBDIR}'
7223 libdir:
7224         @echo libdir='${LIBDIR}'
7225 _ACEOF
7226   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7227     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7228     for ac_var in incroot usrlibdir libdir; do
7229       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7230     done
7231     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7232     for ac_extension in a so sl dylib la dll; do
7233       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7234          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7235         ac_im_usrlibdir=$ac_im_libdir; break
7236       fi
7237     done
7238     # Screen out bogus values from the imake configuration.  They are
7239     # bogus both because they are the default anyway, and because
7240     # using them would break gcc on systems where it needs fixed includes.
7241     case $ac_im_incroot in
7242         /usr/include) ac_x_includes= ;;
7243         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7244     esac
7245     case $ac_im_usrlibdir in
7246         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7247         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7248     esac
7249   fi
7250   cd ..
7251   rm -f -r conftest.dir
7252 fi
7253
7254 # Standard set of common directories for X headers.
7255 # Check X11 before X11Rn because it is often a symlink to the current release.
7256 ac_x_header_dirs='
7257 /usr/X11/include
7258 /usr/X11R7/include
7259 /usr/X11R6/include
7260 /usr/X11R5/include
7261 /usr/X11R4/include
7262
7263 /usr/include/X11
7264 /usr/include/X11R7
7265 /usr/include/X11R6
7266 /usr/include/X11R5
7267 /usr/include/X11R4
7268
7269 /usr/local/X11/include
7270 /usr/local/X11R7/include
7271 /usr/local/X11R6/include
7272 /usr/local/X11R5/include
7273 /usr/local/X11R4/include
7274
7275 /usr/local/include/X11
7276 /usr/local/include/X11R7
7277 /usr/local/include/X11R6
7278 /usr/local/include/X11R5
7279 /usr/local/include/X11R4
7280
7281 /usr/X386/include
7282 /usr/x386/include
7283 /usr/XFree86/include/X11
7284
7285 /usr/include
7286 /usr/local/include
7287 /usr/unsupported/include
7288 /usr/athena/include
7289 /usr/local/x11r5/include
7290 /usr/lpp/Xamples/include
7291
7292 /usr/openwin/include
7293 /usr/openwin/share/include'
7294
7295 if test "$ac_x_includes" = no; then
7296   # Guess where to find include files, by looking for Xlib.h.
7297   # First, try using that file with no special directory specified.
7298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h.  */
7300 #include <X11/Xlib.h>
7301 _ACEOF
7302 if ac_fn_c_try_cpp "$LINENO"; then :
7303   # We can compile using X headers with no special include directory.
7304 ac_x_includes=
7305 else
7306   for ac_dir in $ac_x_header_dirs; do
7307   if test -r "$ac_dir/X11/Xlib.h"; then
7308     ac_x_includes=$ac_dir
7309     break
7310   fi
7311 done
7312 fi
7313 rm -f conftest.err conftest.i conftest.$ac_ext
7314 fi # $ac_x_includes = no
7315
7316 if test "$ac_x_libraries" = no; then
7317   # Check for the libraries.
7318   # See if we find them without any special options.
7319   # Don't add to $LIBS permanently.
7320   ac_save_LIBS=$LIBS
7321   LIBS="-lX11 $LIBS"
7322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h.  */
7324 #include <X11/Xlib.h>
7325 int
7326 main ()
7327 {
7328 XrmInitialize ()
7329   ;
7330   return 0;
7331 }
7332 _ACEOF
7333 if ac_fn_c_try_link "$LINENO"; then :
7334   LIBS=$ac_save_LIBS
7335 # We can link X programs with no special library path.
7336 ac_x_libraries=
7337 else
7338   LIBS=$ac_save_LIBS
7339 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7340 do
7341   # Don't even attempt the hair of trying to link an X program!
7342   for ac_extension in a so sl dylib la dll; do
7343     if test -r "$ac_dir/libX11.$ac_extension"; then
7344       ac_x_libraries=$ac_dir
7345       break 2
7346     fi
7347   done
7348 done
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext \
7351     conftest$ac_exeext conftest.$ac_ext
7352 fi # $ac_x_libraries = no
7353
7354 case $ac_x_includes,$ac_x_libraries in #(
7355   no,* | *,no | *\'*)
7356     # Didn't find X, or a directory has "'" in its name.
7357     ac_cv_have_x="have_x=no";; #(
7358   *)
7359     # Record where we found X for the cache.
7360     ac_cv_have_x="have_x=yes\
7361         ac_x_includes='$ac_x_includes'\
7362         ac_x_libraries='$ac_x_libraries'"
7363 esac
7364 fi
7365 ;; #(
7366     *) have_x=yes;;
7367   esac
7368   eval "$ac_cv_have_x"
7369 fi # $with_x != no
7370
7371 if test "$have_x" != yes; then
7372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7373 $as_echo "$have_x" >&6; }
7374   no_x=yes
7375 else
7376   # If each of the values was on the command line, it overrides each guess.
7377   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7378   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7379   # Update the cache value to reflect the command line values.
7380   ac_cv_have_x="have_x=yes\
7381         ac_x_includes='$x_includes'\
7382         ac_x_libraries='$x_libraries'"
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7384 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7385 fi
7386
7387 if test "$no_x" = yes; then
7388   # Not all programs may use this symbol, but it does not hurt to define it.
7389
7390 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7391
7392   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7393 else
7394   if test -n "$x_includes"; then
7395     X_CFLAGS="$X_CFLAGS -I$x_includes"
7396   fi
7397
7398   # It would also be nice to do this for all -L options, not just this one.
7399   if test -n "$x_libraries"; then
7400     X_LIBS="$X_LIBS -L$x_libraries"
7401     # For Solaris; some versions of Sun CC require a space after -R and
7402     # others require no space.  Words are not sufficient . . . .
7403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7404 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7405     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7406     ac_xsave_c_werror_flag=$ac_c_werror_flag
7407     ac_c_werror_flag=yes
7408     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h.  */
7410
7411 int
7412 main ()
7413 {
7414
7415   ;
7416   return 0;
7417 }
7418 _ACEOF
7419 if ac_fn_c_try_link "$LINENO"; then :
7420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422        X_LIBS="$X_LIBS -R$x_libraries"
7423 else
7424   LIBS="$ac_xsave_LIBS -R $x_libraries"
7425        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h.  */
7427
7428 int
7429 main ()
7430 {
7431
7432   ;
7433   return 0;
7434 }
7435 _ACEOF
7436 if ac_fn_c_try_link "$LINENO"; then :
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7438 $as_echo "yes" >&6; }
7439           X_LIBS="$X_LIBS -R $x_libraries"
7440 else
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7442 $as_echo "neither works" >&6; }
7443 fi
7444 rm -f core conftest.err conftest.$ac_objext \
7445     conftest$ac_exeext conftest.$ac_ext
7446 fi
7447 rm -f core conftest.err conftest.$ac_objext \
7448     conftest$ac_exeext conftest.$ac_ext
7449     ac_c_werror_flag=$ac_xsave_c_werror_flag
7450     LIBS=$ac_xsave_LIBS
7451   fi
7452
7453   # Check for system-dependent libraries X programs must link with.
7454   # Do this before checking for the system-independent R6 libraries
7455   # (-lICE), since we may need -lsocket or whatever for X linking.
7456
7457   if test "$ISC" = yes; then
7458     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7459   else
7460     # Martyn Johnson says this is needed for Ultrix, if the X
7461     # libraries were built with DECnet support.  And Karl Berry says
7462     # the Alpha needs dnet_stub (dnet does not exist).
7463     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7464     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h.  */
7466
7467 /* Override any GCC internal prototype to avoid an error.
7468    Use char because int might match the return type of a GCC
7469    builtin and then its argument prototype would still apply.  */
7470 #ifdef __cplusplus
7471 extern "C"
7472 #endif
7473 char XOpenDisplay ();
7474 int
7475 main ()
7476 {
7477 return XOpenDisplay ();
7478   ;
7479   return 0;
7480 }
7481 _ACEOF
7482 if ac_fn_c_try_link "$LINENO"; then :
7483
7484 else
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7486 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7487 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7488   $as_echo_n "(cached) " >&6
7489 else
7490   ac_check_lib_save_LIBS=$LIBS
7491 LIBS="-ldnet  $LIBS"
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h.  */
7494
7495 /* Override any GCC internal prototype to avoid an error.
7496    Use char because int might match the return type of a GCC
7497    builtin and then its argument prototype would still apply.  */
7498 #ifdef __cplusplus
7499 extern "C"
7500 #endif
7501 char dnet_ntoa ();
7502 int
7503 main ()
7504 {
7505 return dnet_ntoa ();
7506   ;
7507   return 0;
7508 }
7509 _ACEOF
7510 if ac_fn_c_try_link "$LINENO"; then :
7511   ac_cv_lib_dnet_dnet_ntoa=yes
7512 else
7513   ac_cv_lib_dnet_dnet_ntoa=no
7514 fi
7515 rm -f core conftest.err conftest.$ac_objext \
7516     conftest$ac_exeext conftest.$ac_ext
7517 LIBS=$ac_check_lib_save_LIBS
7518 fi
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7520 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7521 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7522   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7523 fi
7524
7525     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7526       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7527 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7528 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7529   $as_echo_n "(cached) " >&6
7530 else
7531   ac_check_lib_save_LIBS=$LIBS
7532 LIBS="-ldnet_stub  $LIBS"
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h.  */
7535
7536 /* Override any GCC internal prototype to avoid an error.
7537    Use char because int might match the return type of a GCC
7538    builtin and then its argument prototype would still apply.  */
7539 #ifdef __cplusplus
7540 extern "C"
7541 #endif
7542 char dnet_ntoa ();
7543 int
7544 main ()
7545 {
7546 return dnet_ntoa ();
7547   ;
7548   return 0;
7549 }
7550 _ACEOF
7551 if ac_fn_c_try_link "$LINENO"; then :
7552   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7553 else
7554   ac_cv_lib_dnet_stub_dnet_ntoa=no
7555 fi
7556 rm -f core conftest.err conftest.$ac_objext \
7557     conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7561 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7562 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7563   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7564 fi
7565
7566     fi
7567 fi
7568 rm -f core conftest.err conftest.$ac_objext \
7569     conftest$ac_exeext conftest.$ac_ext
7570     LIBS="$ac_xsave_LIBS"
7571
7572     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7573     # to get the SysV transport functions.
7574     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7575     # needs -lnsl.
7576     # The nsl library prevents programs from opening the X display
7577     # on Irix 5.2, according to T.E. Dickey.
7578     # The functions gethostbyname, getservbyname, and inet_addr are
7579     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7580     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7581 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7582
7583 fi
7584
7585     if test $ac_cv_func_gethostbyname = no; then
7586       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7587 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7588 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7589   $as_echo_n "(cached) " >&6
7590 else
7591   ac_check_lib_save_LIBS=$LIBS
7592 LIBS="-lnsl  $LIBS"
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h.  */
7595
7596 /* Override any GCC internal prototype to avoid an error.
7597    Use char because int might match the return type of a GCC
7598    builtin and then its argument prototype would still apply.  */
7599 #ifdef __cplusplus
7600 extern "C"
7601 #endif
7602 char gethostbyname ();
7603 int
7604 main ()
7605 {
7606 return gethostbyname ();
7607   ;
7608   return 0;
7609 }
7610 _ACEOF
7611 if ac_fn_c_try_link "$LINENO"; then :
7612   ac_cv_lib_nsl_gethostbyname=yes
7613 else
7614   ac_cv_lib_nsl_gethostbyname=no
7615 fi
7616 rm -f core conftest.err conftest.$ac_objext \
7617     conftest$ac_exeext conftest.$ac_ext
7618 LIBS=$ac_check_lib_save_LIBS
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7621 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7622 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7623   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7624 fi
7625
7626       if test $ac_cv_lib_nsl_gethostbyname = no; then
7627         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7628 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7629 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   ac_check_lib_save_LIBS=$LIBS
7633 LIBS="-lbsd  $LIBS"
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h.  */
7636
7637 /* Override any GCC internal prototype to avoid an error.
7638    Use char because int might match the return type of a GCC
7639    builtin and then its argument prototype would still apply.  */
7640 #ifdef __cplusplus
7641 extern "C"
7642 #endif
7643 char gethostbyname ();
7644 int
7645 main ()
7646 {
7647 return gethostbyname ();
7648   ;
7649   return 0;
7650 }
7651 _ACEOF
7652 if ac_fn_c_try_link "$LINENO"; then :
7653   ac_cv_lib_bsd_gethostbyname=yes
7654 else
7655   ac_cv_lib_bsd_gethostbyname=no
7656 fi
7657 rm -f core conftest.err conftest.$ac_objext \
7658     conftest$ac_exeext conftest.$ac_ext
7659 LIBS=$ac_check_lib_save_LIBS
7660 fi
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7662 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7663 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7664   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7665 fi
7666
7667       fi
7668     fi
7669
7670     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7671     # socket/setsockopt and other routines are undefined under SCO ODT
7672     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7673     # on later versions), says Simon Leinen: it contains gethostby*
7674     # variants that don't use the name server (or something).  -lsocket
7675     # must be given before -lnsl if both are needed.  We assume that
7676     # if connect needs -lnsl, so does gethostbyname.
7677     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7678 if test "x$ac_cv_func_connect" = x""yes; then :
7679
7680 fi
7681
7682     if test $ac_cv_func_connect = no; then
7683       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7684 $as_echo_n "checking for connect in -lsocket... " >&6; }
7685 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7686   $as_echo_n "(cached) " >&6
7687 else
7688   ac_check_lib_save_LIBS=$LIBS
7689 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h.  */
7692
7693 /* Override any GCC internal prototype to avoid an error.
7694    Use char because int might match the return type of a GCC
7695    builtin and then its argument prototype would still apply.  */
7696 #ifdef __cplusplus
7697 extern "C"
7698 #endif
7699 char connect ();
7700 int
7701 main ()
7702 {
7703 return connect ();
7704   ;
7705   return 0;
7706 }
7707 _ACEOF
7708 if ac_fn_c_try_link "$LINENO"; then :
7709   ac_cv_lib_socket_connect=yes
7710 else
7711   ac_cv_lib_socket_connect=no
7712 fi
7713 rm -f core conftest.err conftest.$ac_objext \
7714     conftest$ac_exeext conftest.$ac_ext
7715 LIBS=$ac_check_lib_save_LIBS
7716 fi
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7718 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7719 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7720   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7721 fi
7722
7723     fi
7724
7725     # Guillermo Gomez says -lposix is necessary on A/UX.
7726     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7727 if test "x$ac_cv_func_remove" = x""yes; then :
7728
7729 fi
7730
7731     if test $ac_cv_func_remove = no; then
7732       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7733 $as_echo_n "checking for remove in -lposix... " >&6; }
7734 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7735   $as_echo_n "(cached) " >&6
7736 else
7737   ac_check_lib_save_LIBS=$LIBS
7738 LIBS="-lposix  $LIBS"
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h.  */
7741
7742 /* Override any GCC internal prototype to avoid an error.
7743    Use char because int might match the return type of a GCC
7744    builtin and then its argument prototype would still apply.  */
7745 #ifdef __cplusplus
7746 extern "C"
7747 #endif
7748 char remove ();
7749 int
7750 main ()
7751 {
7752 return remove ();
7753   ;
7754   return 0;
7755 }
7756 _ACEOF
7757 if ac_fn_c_try_link "$LINENO"; then :
7758   ac_cv_lib_posix_remove=yes
7759 else
7760   ac_cv_lib_posix_remove=no
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext \
7763     conftest$ac_exeext conftest.$ac_ext
7764 LIBS=$ac_check_lib_save_LIBS
7765 fi
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7767 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7768 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7769   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7770 fi
7771
7772     fi
7773
7774     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7775     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7776 if test "x$ac_cv_func_shmat" = x""yes; then :
7777
7778 fi
7779
7780     if test $ac_cv_func_shmat = no; then
7781       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7782 $as_echo_n "checking for shmat in -lipc... " >&6; }
7783 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786   ac_check_lib_save_LIBS=$LIBS
7787 LIBS="-lipc  $LIBS"
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h.  */
7790
7791 /* Override any GCC internal prototype to avoid an error.
7792    Use char because int might match the return type of a GCC
7793    builtin and then its argument prototype would still apply.  */
7794 #ifdef __cplusplus
7795 extern "C"
7796 #endif
7797 char shmat ();
7798 int
7799 main ()
7800 {
7801 return shmat ();
7802   ;
7803   return 0;
7804 }
7805 _ACEOF
7806 if ac_fn_c_try_link "$LINENO"; then :
7807   ac_cv_lib_ipc_shmat=yes
7808 else
7809   ac_cv_lib_ipc_shmat=no
7810 fi
7811 rm -f core conftest.err conftest.$ac_objext \
7812     conftest$ac_exeext conftest.$ac_ext
7813 LIBS=$ac_check_lib_save_LIBS
7814 fi
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7816 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7817 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7818   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7819 fi
7820
7821     fi
7822   fi
7823
7824   # Check for libraries that X11R6 Xt/Xaw programs need.
7825   ac_save_LDFLAGS=$LDFLAGS
7826   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7827   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7828   # check for ICE first), but we must link in the order -lSM -lICE or
7829   # we get undefined symbols.  So assume we have SM if we have ICE.
7830   # These have to be linked with before -lX11, unlike the other
7831   # libraries we check for below, so use a different variable.
7832   # John Interrante, Karl Berry
7833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7834 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7835 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7836   $as_echo_n "(cached) " >&6
7837 else
7838   ac_check_lib_save_LIBS=$LIBS
7839 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h.  */
7842
7843 /* Override any GCC internal prototype to avoid an error.
7844    Use char because int might match the return type of a GCC
7845    builtin and then its argument prototype would still apply.  */
7846 #ifdef __cplusplus
7847 extern "C"
7848 #endif
7849 char IceConnectionNumber ();
7850 int
7851 main ()
7852 {
7853 return IceConnectionNumber ();
7854   ;
7855   return 0;
7856 }
7857 _ACEOF
7858 if ac_fn_c_try_link "$LINENO"; then :
7859   ac_cv_lib_ICE_IceConnectionNumber=yes
7860 else
7861   ac_cv_lib_ICE_IceConnectionNumber=no
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext \
7864     conftest$ac_exeext conftest.$ac_ext
7865 LIBS=$ac_check_lib_save_LIBS
7866 fi
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7868 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7869 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7870   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7871 fi
7872
7873   LDFLAGS=$ac_save_LDFLAGS
7874
7875 fi
7876
7877
7878 if test "$have_x" = "yes"
7879 then
7880     XLIB="-lX11"
7881     ac_save_CPPFLAGS="$CPPFLAGS"
7882     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7883
7884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7885 $as_echo_n "checking for -lX11... " >&6; }
7886 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889   ac_check_soname_save_LIBS=$LIBS
7890 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h.  */
7893
7894 /* Override any GCC internal prototype to avoid an error.
7895    Use char because int might match the return type of a GCC
7896    builtin and then its argument prototype would still apply.  */
7897 #ifdef __cplusplus
7898 extern "C"
7899 #endif
7900 char XCreateWindow ();
7901 int
7902 main ()
7903 {
7904 return XCreateWindow ();
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"; then :
7910   case "$LIBEXT" in
7911     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7912     dylib) ac_cv_lib_soname_X11=`otool -L conftest$ac_exeext | grep "libX11\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libX11\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
7913     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7914   esac
7915 fi
7916 rm -f core conftest.err conftest.$ac_objext \
7917     conftest$ac_exeext conftest.$ac_ext
7918   LIBS=$ac_check_soname_save_LIBS
7919 fi
7920 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7922 $as_echo "not found" >&6; }
7923
7924 else
7925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7926 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7927
7928 cat >>confdefs.h <<_ACEOF
7929 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7930 _ACEOF
7931
7932
7933 fi
7934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7935 $as_echo_n "checking for -lXext... " >&6; }
7936 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7937   $as_echo_n "(cached) " >&6
7938 else
7939   ac_check_soname_save_LIBS=$LIBS
7940 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h.  */
7943
7944 /* Override any GCC internal prototype to avoid an error.
7945    Use char because int might match the return type of a GCC
7946    builtin and then its argument prototype would still apply.  */
7947 #ifdef __cplusplus
7948 extern "C"
7949 #endif
7950 char XextCreateExtension ();
7951 int
7952 main ()
7953 {
7954 return XextCreateExtension ();
7955   ;
7956   return 0;
7957 }
7958 _ACEOF
7959 if ac_fn_c_try_link "$LINENO"; then :
7960   case "$LIBEXT" in
7961     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7962     dylib) ac_cv_lib_soname_Xext=`otool -L conftest$ac_exeext | grep "libXext\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXext\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
7963     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
7964   esac
7965 fi
7966 rm -f core conftest.err conftest.$ac_objext \
7967     conftest$ac_exeext conftest.$ac_ext
7968   LIBS=$ac_check_soname_save_LIBS
7969 fi
7970 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7972 $as_echo "not found" >&6; }
7973
7974 else
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7976 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7977
7978 cat >>confdefs.h <<_ACEOF
7979 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7980 _ACEOF
7981
7982        XLIB="-lXext $XLIB"
7983 fi
7984
7985         for ac_header in X11/Xlib.h \
7986                       X11/XKBlib.h \
7987                       X11/Xutil.h \
7988                       X11/Xcursor/Xcursor.h \
7989                       X11/extensions/shape.h \
7990                       X11/extensions/XInput.h \
7991                       X11/extensions/XShm.h \
7992                       X11/extensions/Xcomposite.h \
7993                       X11/extensions/Xinerama.h \
7994                       X11/extensions/Xrandr.h \
7995                       X11/extensions/Xrender.h \
7996                       X11/extensions/xf86vmode.h \
7997                       X11/extensions/xf86vmproto.h
7998 do :
7999   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8000 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8001 # include <X11/Xlib.h>
8002 #endif
8003 #ifdef HAVE_X11_XUTIL_H
8004 # include <X11/Xutil.h>
8005 #endif
8006 "
8007 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8008   cat >>confdefs.h <<_ACEOF
8009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8010 _ACEOF
8011
8012 fi
8013
8014 done
8015
8016
8017                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8018         then
8019               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8020 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8021 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
8022   $as_echo_n "(cached) " >&6
8023 else
8024   ac_check_lib_save_LIBS=$LIBS
8025 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h.  */
8028
8029 /* Override any GCC internal prototype to avoid an error.
8030    Use char because int might match the return type of a GCC
8031    builtin and then its argument prototype would still apply.  */
8032 #ifdef __cplusplus
8033 extern "C"
8034 #endif
8035 char XkbQueryExtension ();
8036 int
8037 main ()
8038 {
8039 return XkbQueryExtension ();
8040   ;
8041   return 0;
8042 }
8043 _ACEOF
8044 if ac_fn_c_try_link "$LINENO"; then :
8045   ac_cv_lib_X11_XkbQueryExtension=yes
8046 else
8047   ac_cv_lib_X11_XkbQueryExtension=no
8048 fi
8049 rm -f core conftest.err conftest.$ac_objext \
8050     conftest$ac_exeext conftest.$ac_ext
8051 LIBS=$ac_check_lib_save_LIBS
8052 fi
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8054 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8055 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8056
8057 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8058
8059 fi
8060
8061         fi
8062
8063                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8064         then
8065             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8066 $as_echo_n "checking for -lXcursor... " >&6; }
8067 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8068   $as_echo_n "(cached) " >&6
8069 else
8070   ac_check_soname_save_LIBS=$LIBS
8071 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h.  */
8074
8075 /* Override any GCC internal prototype to avoid an error.
8076    Use char because int might match the return type of a GCC
8077    builtin and then its argument prototype would still apply.  */
8078 #ifdef __cplusplus
8079 extern "C"
8080 #endif
8081 char XcursorImageLoadCursor ();
8082 int
8083 main ()
8084 {
8085 return XcursorImageLoadCursor ();
8086   ;
8087   return 0;
8088 }
8089 _ACEOF
8090 if ac_fn_c_try_link "$LINENO"; then :
8091   case "$LIBEXT" in
8092     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8093     dylib) ac_cv_lib_soname_Xcursor=`otool -L conftest$ac_exeext | grep "libXcursor\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcursor\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8094     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8095   esac
8096 fi
8097 rm -f core conftest.err conftest.$ac_objext \
8098     conftest$ac_exeext conftest.$ac_ext
8099   LIBS=$ac_check_soname_save_LIBS
8100 fi
8101 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8103 $as_echo "not found" >&6; }
8104
8105 else
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8107 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8108
8109 cat >>confdefs.h <<_ACEOF
8110 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8111 _ACEOF
8112
8113
8114 fi
8115         fi
8116         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8117   case "x$with_xcursor" in
8118   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8119   xno) ;;
8120   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8121 This is an error since --with-xcursor was requested." "$LINENO" 5  ;;
8122 esac
8123 fi
8124
8125                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8126         then
8127             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8128 $as_echo_n "checking for -lXi... " >&6; }
8129 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132   ac_check_soname_save_LIBS=$LIBS
8133 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h.  */
8136
8137 /* Override any GCC internal prototype to avoid an error.
8138    Use char because int might match the return type of a GCC
8139    builtin and then its argument prototype would still apply.  */
8140 #ifdef __cplusplus
8141 extern "C"
8142 #endif
8143 char XOpenDevice ();
8144 int
8145 main ()
8146 {
8147 return XOpenDevice ();
8148   ;
8149   return 0;
8150 }
8151 _ACEOF
8152 if ac_fn_c_try_link "$LINENO"; then :
8153   case "$LIBEXT" in
8154     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8155     dylib) ac_cv_lib_soname_Xi=`otool -L conftest$ac_exeext | grep "libXi\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8156     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8157   esac
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext \
8160     conftest$ac_exeext conftest.$ac_ext
8161   LIBS=$ac_check_soname_save_LIBS
8162 fi
8163 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8165 $as_echo "not found" >&6; }
8166
8167 else
8168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8169 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8170
8171 cat >>confdefs.h <<_ACEOF
8172 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8173 _ACEOF
8174
8175
8176 fi
8177         fi
8178         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8179   case "x$with_xinput" in
8180   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8181   xno) ;;
8182   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8183 This is an error since --with-xinput was requested." "$LINENO" 5  ;;
8184 esac
8185 fi
8186
8187                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8188         then
8189               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8190 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8191 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8192   $as_echo_n "(cached) " >&6
8193 else
8194   ac_check_lib_save_LIBS=$LIBS
8195 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h.  */
8198
8199 /* Override any GCC internal prototype to avoid an error.
8200    Use char because int might match the return type of a GCC
8201    builtin and then its argument prototype would still apply.  */
8202 #ifdef __cplusplus
8203 extern "C"
8204 #endif
8205 char XShmQueryExtension ();
8206 int
8207 main ()
8208 {
8209 return XShmQueryExtension ();
8210   ;
8211   return 0;
8212 }
8213 _ACEOF
8214 if ac_fn_c_try_link "$LINENO"; then :
8215   ac_cv_lib_Xext_XShmQueryExtension=yes
8216 else
8217   ac_cv_lib_Xext_XShmQueryExtension=no
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext \
8220     conftest$ac_exeext conftest.$ac_ext
8221 LIBS=$ac_check_lib_save_LIBS
8222 fi
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8224 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8225 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8226
8227 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8228
8229 fi
8230
8231         fi
8232         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8233   case "x$with_xshm" in
8234   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8235   xno) ;;
8236   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8237 This is an error since --with-xshm was requested." "$LINENO" 5  ;;
8238 esac
8239 fi
8240
8241                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8242         then
8243               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8244 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8245 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   ac_check_lib_save_LIBS=$LIBS
8249 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h.  */
8252
8253 /* Override any GCC internal prototype to avoid an error.
8254    Use char because int might match the return type of a GCC
8255    builtin and then its argument prototype would still apply.  */
8256 #ifdef __cplusplus
8257 extern "C"
8258 #endif
8259 char XShapeQueryExtension ();
8260 int
8261 main ()
8262 {
8263 return XShapeQueryExtension ();
8264   ;
8265   return 0;
8266 }
8267 _ACEOF
8268 if ac_fn_c_try_link "$LINENO"; then :
8269   ac_cv_lib_Xext_XShapeQueryExtension=yes
8270 else
8271   ac_cv_lib_Xext_XShapeQueryExtension=no
8272 fi
8273 rm -f core conftest.err conftest.$ac_objext \
8274     conftest$ac_exeext conftest.$ac_ext
8275 LIBS=$ac_check_lib_save_LIBS
8276 fi
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8278 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8279 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8280
8281 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8282
8283 fi
8284
8285         fi
8286         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8287   case "x$with_xshape" in
8288   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8289   xno) ;;
8290   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8291 This is an error since --with-xshape was requested." "$LINENO" 5  ;;
8292 esac
8293 fi
8294
8295                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8296         then
8297             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8298 $as_echo_n "checking for -lXxf86vm... " >&6; }
8299 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8300   $as_echo_n "(cached) " >&6
8301 else
8302   ac_check_soname_save_LIBS=$LIBS
8303 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h.  */
8306
8307 /* Override any GCC internal prototype to avoid an error.
8308    Use char because int might match the return type of a GCC
8309    builtin and then its argument prototype would still apply.  */
8310 #ifdef __cplusplus
8311 extern "C"
8312 #endif
8313 char XF86VidModeQueryExtension ();
8314 int
8315 main ()
8316 {
8317 return XF86VidModeQueryExtension ();
8318   ;
8319   return 0;
8320 }
8321 _ACEOF
8322 if ac_fn_c_try_link "$LINENO"; then :
8323   case "$LIBEXT" in
8324     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8325     dylib) ac_cv_lib_soname_Xxf86vm=`otool -L conftest$ac_exeext | grep "libXxf86vm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXxf86vm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8326     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8327   esac
8328 fi
8329 rm -f core conftest.err conftest.$ac_objext \
8330     conftest$ac_exeext conftest.$ac_ext
8331   LIBS=$ac_check_soname_save_LIBS
8332 fi
8333 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8335 $as_echo "not found" >&6; }
8336
8337 else
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8339 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8340
8341 cat >>confdefs.h <<_ACEOF
8342 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8343 _ACEOF
8344
8345
8346 fi
8347         fi
8348         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8349   case "x$with_xxf86vm" in
8350   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8351   xno) ;;
8352   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8353 This is an error since --with-xxf86vm was requested." "$LINENO" 5  ;;
8354 esac
8355 fi
8356
8357                 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x" -a "x$ac_cv_lib_soname_Xext" != "x"
8358         then
8359             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8360 $as_echo_n "checking for -lXrender... " >&6; }
8361 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8362   $as_echo_n "(cached) " >&6
8363 else
8364   ac_check_soname_save_LIBS=$LIBS
8365 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h.  */
8368
8369 /* Override any GCC internal prototype to avoid an error.
8370    Use char because int might match the return type of a GCC
8371    builtin and then its argument prototype would still apply.  */
8372 #ifdef __cplusplus
8373 extern "C"
8374 #endif
8375 char XRenderQueryExtension ();
8376 int
8377 main ()
8378 {
8379 return XRenderQueryExtension ();
8380   ;
8381   return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385   case "$LIBEXT" in
8386     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8387     dylib) ac_cv_lib_soname_Xrender=`otool -L conftest$ac_exeext | grep "libXrender\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXrender\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8388     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8389   esac
8390 fi
8391 rm -f core conftest.err conftest.$ac_objext \
8392     conftest$ac_exeext conftest.$ac_ext
8393   LIBS=$ac_check_soname_save_LIBS
8394 fi
8395 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8397 $as_echo "not found" >&6; }
8398
8399 else
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8401 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8402
8403 cat >>confdefs.h <<_ACEOF
8404 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8405 _ACEOF
8406
8407        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8408 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8409 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8410   $as_echo_n "(cached) " >&6
8411 else
8412   ac_check_lib_save_LIBS=$LIBS
8413 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h.  */
8416
8417 /* Override any GCC internal prototype to avoid an error.
8418    Use char because int might match the return type of a GCC
8419    builtin and then its argument prototype would still apply.  */
8420 #ifdef __cplusplus
8421 extern "C"
8422 #endif
8423 char XRenderSetPictureTransform ();
8424 int
8425 main ()
8426 {
8427 return XRenderSetPictureTransform ();
8428   ;
8429   return 0;
8430 }
8431 _ACEOF
8432 if ac_fn_c_try_link "$LINENO"; then :
8433   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8434 else
8435   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext \
8438     conftest$ac_exeext conftest.$ac_ext
8439 LIBS=$ac_check_lib_save_LIBS
8440 fi
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8442 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8443 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8444
8445 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8446
8447 fi
8448
8449 fi
8450
8451         fi
8452         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8453   case "x$with_xrender" in
8454   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8455   xno) ;;
8456   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8457 This is an error since --with-xrender was requested." "$LINENO" 5  ;;
8458 esac
8459 fi
8460
8461                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8462         then
8463                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h.  */
8465 #include <X11/Xlib.h>
8466 #include <X11/extensions/Xrandr.h>
8467 int
8468 main ()
8469 {
8470 static typeof(XRRSetScreenConfigAndRate) * func;
8471   ;
8472   return 0;
8473 }
8474 _ACEOF
8475 if ac_fn_c_try_compile "$LINENO"; then :
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8477 $as_echo_n "checking for -lXrandr... " >&6; }
8478 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8479   $as_echo_n "(cached) " >&6
8480 else
8481   ac_check_soname_save_LIBS=$LIBS
8482 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h.  */
8485
8486 /* Override any GCC internal prototype to avoid an error.
8487    Use char because int might match the return type of a GCC
8488    builtin and then its argument prototype would still apply.  */
8489 #ifdef __cplusplus
8490 extern "C"
8491 #endif
8492 char XRRQueryExtension ();
8493 int
8494 main ()
8495 {
8496 return XRRQueryExtension ();
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 if ac_fn_c_try_link "$LINENO"; then :
8502   case "$LIBEXT" in
8503     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8504     dylib) ac_cv_lib_soname_Xrandr=`otool -L conftest$ac_exeext | grep "libXrandr\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXrandr\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8505     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8506   esac
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext \
8509     conftest$ac_exeext conftest.$ac_ext
8510   LIBS=$ac_check_soname_save_LIBS
8511 fi
8512 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8514 $as_echo "not found" >&6; }
8515
8516 else
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8518 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8519
8520 cat >>confdefs.h <<_ACEOF
8521 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8522 _ACEOF
8523
8524
8525 fi
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528         fi
8529         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8530   case "x$with_xrandr" in
8531   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8532   xno) ;;
8533   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8534 This is an error since --with-xrandr was requested." "$LINENO" 5  ;;
8535 esac
8536 fi
8537
8538                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8539         then
8540                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h.  */
8542 #include <X11/Xlib.h>
8543 #include <X11/extensions/Xinerama.h>
8544 int
8545 main ()
8546 {
8547 static typeof(XineramaQueryScreens) * func;
8548   ;
8549   return 0;
8550 }
8551 _ACEOF
8552 if ac_fn_c_try_compile "$LINENO"; then :
8553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8554 $as_echo_n "checking for -lXinerama... " >&6; }
8555 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8556   $as_echo_n "(cached) " >&6
8557 else
8558   ac_check_soname_save_LIBS=$LIBS
8559 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h.  */
8562
8563 /* Override any GCC internal prototype to avoid an error.
8564    Use char because int might match the return type of a GCC
8565    builtin and then its argument prototype would still apply.  */
8566 #ifdef __cplusplus
8567 extern "C"
8568 #endif
8569 char XineramaQueryScreens ();
8570 int
8571 main ()
8572 {
8573 return XineramaQueryScreens ();
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 if ac_fn_c_try_link "$LINENO"; then :
8579   case "$LIBEXT" in
8580     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8581     dylib) ac_cv_lib_soname_Xinerama=`otool -L conftest$ac_exeext | grep "libXinerama\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXinerama\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8582     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8583   esac
8584 fi
8585 rm -f core conftest.err conftest.$ac_objext \
8586     conftest$ac_exeext conftest.$ac_ext
8587   LIBS=$ac_check_soname_save_LIBS
8588 fi
8589 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8591 $as_echo "not found" >&6; }
8592
8593 else
8594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8595 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8596
8597 cat >>confdefs.h <<_ACEOF
8598 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8599 _ACEOF
8600
8601
8602 fi
8603 fi
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605         fi
8606         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8607   case "x$with_xinerama" in
8608   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8609   xno) ;;
8610   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8611 This is an error since --with-xinerama was requested." "$LINENO" 5  ;;
8612 esac
8613 fi
8614
8615                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8616         then
8617             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8618 $as_echo_n "checking for -lXcomposite... " >&6; }
8619 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8620   $as_echo_n "(cached) " >&6
8621 else
8622   ac_check_soname_save_LIBS=$LIBS
8623 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h.  */
8626
8627 /* Override any GCC internal prototype to avoid an error.
8628    Use char because int might match the return type of a GCC
8629    builtin and then its argument prototype would still apply.  */
8630 #ifdef __cplusplus
8631 extern "C"
8632 #endif
8633 char XCompositeRedirectWindow ();
8634 int
8635 main ()
8636 {
8637 return XCompositeRedirectWindow ();
8638   ;
8639   return 0;
8640 }
8641 _ACEOF
8642 if ac_fn_c_try_link "$LINENO"; then :
8643   case "$LIBEXT" in
8644     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8645     dylib) ac_cv_lib_soname_Xcomposite=`otool -L conftest$ac_exeext | grep "libXcomposite\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcomposite\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8646     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8647   esac
8648 fi
8649 rm -f core conftest.err conftest.$ac_objext \
8650     conftest$ac_exeext conftest.$ac_ext
8651   LIBS=$ac_check_soname_save_LIBS
8652 fi
8653 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8655 $as_echo "not found" >&6; }
8656
8657 else
8658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8659 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8660
8661 cat >>confdefs.h <<_ACEOF
8662 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8663 _ACEOF
8664
8665
8666 fi
8667         fi
8668         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8669   case "x$with_xcomposite" in
8670   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8671   xno) ;;
8672   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8673 This is an error since --with-xcomposite was requested." "$LINENO" 5  ;;
8674 esac
8675 fi
8676
8677                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8678 #include <X11/Xlib.h>
8679 #endif
8680 "
8681 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8682
8683 cat >>confdefs.h <<_ACEOF
8684 #define HAVE_XICCALLBACK_CALLBACK 1
8685 _ACEOF
8686
8687
8688 fi
8689
8690
8691
8692         opengl_msg=""
8693     if test "x$with_opengl" != "xno"
8694     then
8695         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8696 do :
8697   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8698 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8699 # include <GL/glx.h>
8700 #endif
8701 "
8702 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8703   cat >>confdefs.h <<_ACEOF
8704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8705 _ACEOF
8706
8707 fi
8708
8709 done
8710
8711         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8712         then
8713                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8714 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8715 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8716   $as_echo_n "(cached) " >&6
8717 else
8718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h.  */
8720 #include <GL/gl.h>
8721 int
8722 main ()
8723 {
8724 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8725   ;
8726   return 0;
8727 }
8728 _ACEOF
8729 if ac_fn_c_try_compile "$LINENO"; then :
8730   wine_cv_opengl_header_version_OK="yes"
8731 else
8732   wine_cv_opengl_header_version_OK="no"
8733 fi
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 fi
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8737 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8738
8739             if test "$wine_cv_opengl_header_version_OK" = "yes"
8740             then
8741                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8742 $as_echo_n "checking for -lGL... " >&6; }
8743 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8744   $as_echo_n "(cached) " >&6
8745 else
8746   ac_check_soname_save_LIBS=$LIBS
8747 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h.  */
8750
8751 /* Override any GCC internal prototype to avoid an error.
8752    Use char because int might match the return type of a GCC
8753    builtin and then its argument prototype would still apply.  */
8754 #ifdef __cplusplus
8755 extern "C"
8756 #endif
8757 char glXCreateContext ();
8758 int
8759 main ()
8760 {
8761 return glXCreateContext ();
8762   ;
8763   return 0;
8764 }
8765 _ACEOF
8766 if ac_fn_c_try_link "$LINENO"; then :
8767   case "$LIBEXT" in
8768     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8769     dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep "libGL\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8770     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8771   esac
8772 fi
8773 rm -f core conftest.err conftest.$ac_objext \
8774     conftest$ac_exeext conftest.$ac_ext
8775   LIBS=$ac_check_soname_save_LIBS
8776 fi
8777 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8779 $as_echo "not found" >&6; }
8780        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8781 $as_echo_n "checking for -lGL... " >&6; }
8782 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8783   $as_echo_n "(cached) " >&6
8784 else
8785   ac_check_soname_save_LIBS=$LIBS
8786 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS"
8787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h.  */
8789
8790 /* Override any GCC internal prototype to avoid an error.
8791    Use char because int might match the return type of a GCC
8792    builtin and then its argument prototype would still apply.  */
8793 #ifdef __cplusplus
8794 extern "C"
8795 #endif
8796 char glXCreateContext ();
8797 int
8798 main ()
8799 {
8800 return glXCreateContext ();
8801   ;
8802   return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"; then :
8806   case "$LIBEXT" in
8807     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8808     dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep "libGL\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8809     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8810   esac
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext \
8813     conftest$ac_exeext conftest.$ac_ext
8814   LIBS=$ac_check_soname_save_LIBS
8815 fi
8816 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8818 $as_echo "not found" >&6; }
8819        if test -f /usr/X11R6/lib/libGL.a
8820                                     then
8821                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8822 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8823                                     else
8824                                         opengl_msg="No OpenGL library found on this system."
8825                                     fi
8826 else
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8828 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8829
8830 cat >>confdefs.h <<_ACEOF
8831 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8832 _ACEOF
8833
8834        OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL"
8835
8836 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8837
8838 fi
8839 else
8840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8841 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8842
8843 cat >>confdefs.h <<_ACEOF
8844 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8845 _ACEOF
8846
8847        OPENGL_LIBS="-lGL"
8848
8849 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8850
8851 fi
8852                  if test "$ac_cv_header_GL_glu_h" = "yes"
8853                  then
8854                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8855 $as_echo_n "checking for -lGLU... " >&6; }
8856 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8857   $as_echo_n "(cached) " >&6
8858 else
8859   ac_check_soname_save_LIBS=$LIBS
8860 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h.  */
8863
8864 /* Override any GCC internal prototype to avoid an error.
8865    Use char because int might match the return type of a GCC
8866    builtin and then its argument prototype would still apply.  */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 char gluLookAt ();
8871 int
8872 main ()
8873 {
8874 return gluLookAt ();
8875   ;
8876   return 0;
8877 }
8878 _ACEOF
8879 if ac_fn_c_try_link "$LINENO"; then :
8880   case "$LIBEXT" in
8881     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8882     dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8883     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8884   esac
8885 fi
8886 rm -f core conftest.err conftest.$ac_objext \
8887     conftest$ac_exeext conftest.$ac_ext
8888   LIBS=$ac_check_soname_save_LIBS
8889 fi
8890 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8892 $as_echo "not found" >&6; }
8893
8894 else
8895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8896 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8897
8898 cat >>confdefs.h <<_ACEOF
8899 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8900 _ACEOF
8901
8902
8903 fi
8904                  fi
8905                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8906   case "x$with_glu" in
8907   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8908   xno) ;;
8909   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8910 This is an error since --with-glu was requested." "$LINENO" 5  ;;
8911 esac
8912 fi
8913              else
8914                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8915              fi
8916          else
8917              opengl_msg="OpenGL development headers not found."
8918          fi
8919          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8920          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8921     else
8922          enable_opengl32=${enable_opengl32:-no}
8923          enable_glu32=${enable_glu32:-no}
8924     fi
8925     if test -n "$opengl_msg"; then :
8926   case "x$with_opengl" in
8927   x)   as_fn_append wine_warnings "|$opengl_msg
8928 OpenGL and Direct3D won't be supported." ;;
8929   xno) ;;
8930   *)   as_fn_error $? "$opengl_msg
8931 OpenGL and Direct3D won't be supported.
8932 This is an error since --with-opengl was requested." "$LINENO" 5  ;;
8933 esac
8934 fi
8935
8936         NASLIBS=""
8937
8938     for ac_header in audio/audiolib.h
8939 do :
8940   ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8941 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8942   cat >>confdefs.h <<_ACEOF
8943 #define HAVE_AUDIO_AUDIOLIB_H 1
8944 _ACEOF
8945  for ac_header in audio/soundlib.h
8946 do :
8947   ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8948 "
8949 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8950   cat >>confdefs.h <<_ACEOF
8951 #define HAVE_AUDIO_SOUNDLIB_H 1
8952 _ACEOF
8953
8954 fi
8955
8956 done
8957
8958           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8959 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8960 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8961   $as_echo_n "(cached) " >&6
8962 else
8963   ac_check_lib_save_LIBS=$LIBS
8964 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h.  */
8967
8968 /* Override any GCC internal prototype to avoid an error.
8969    Use char because int might match the return type of a GCC
8970    builtin and then its argument prototype would still apply.  */
8971 #ifdef __cplusplus
8972 extern "C"
8973 #endif
8974 char AuCreateFlow ();
8975 int
8976 main ()
8977 {
8978 return AuCreateFlow ();
8979   ;
8980   return 0;
8981 }
8982 _ACEOF
8983 if ac_fn_c_try_link "$LINENO"; then :
8984   ac_cv_lib_audio_AuCreateFlow=yes
8985 else
8986   ac_cv_lib_audio_AuCreateFlow=no
8987 fi
8988 rm -f core conftest.err conftest.$ac_objext \
8989     conftest$ac_exeext conftest.$ac_ext
8990 LIBS=$ac_check_lib_save_LIBS
8991 fi
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8993 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8994 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
8995
8996 $as_echo "#define HAVE_NAS 1" >>confdefs.h
8997
8998                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8999 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9000 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
9001   $as_echo_n "(cached) " >&6
9002 else
9003   ac_check_lib_save_LIBS=$LIBS
9004 LIBS="-lXau $X_LIBS $LIBS"
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h.  */
9007
9008 /* Override any GCC internal prototype to avoid an error.
9009    Use char because int might match the return type of a GCC
9010    builtin and then its argument prototype would still apply.  */
9011 #ifdef __cplusplus
9012 extern "C"
9013 #endif
9014 char XauGetBestAuthByAddr ();
9015 int
9016 main ()
9017 {
9018 return XauGetBestAuthByAddr ();
9019   ;
9020   return 0;
9021 }
9022 _ACEOF
9023 if ac_fn_c_try_link "$LINENO"; then :
9024   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9025 else
9026   ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext \
9029     conftest$ac_exeext conftest.$ac_ext
9030 LIBS=$ac_check_lib_save_LIBS
9031 fi
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9033 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9034 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
9035   NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9036 else
9037   NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9038 fi
9039
9040
9041 fi
9042
9043 fi
9044
9045 done
9046
9047
9048     CPPFLAGS="$ac_save_CPPFLAGS"
9049 else
9050     XLIB=""
9051     X_CFLAGS=""
9052     X_LIBS=""
9053     enable_winex11_drv=${enable_winex11_drv:-no}
9054     enable_opengl32=${enable_opengl32:-no}
9055     enable_glu32=${enable_glu32:-no}
9056 fi
9057 if test "x$XLIB" = "x"; then :
9058   case "x$with_x" in
9059   xno) ;;
9060   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9061 without X support, which probably isn't what you want. You will need
9062 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9063 Use the --without-x option if you really want this." "$LINENO" 5  ;;
9064 esac
9065 fi
9066
9067 if test "$ac_cv_header_CL_cl_h" = "yes"
9068 then
9069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9070 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9071 if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
9072   $as_echo_n "(cached) " >&6
9073 else
9074   ac_check_lib_save_LIBS=$LIBS
9075 LIBS="-lOpenCL  $LIBS"
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h.  */
9078
9079 /* Override any GCC internal prototype to avoid an error.
9080    Use char because int might match the return type of a GCC
9081    builtin and then its argument prototype would still apply.  */
9082 #ifdef __cplusplus
9083 extern "C"
9084 #endif
9085 char clGetPlatformInfo ();
9086 int
9087 main ()
9088 {
9089 return clGetPlatformInfo ();
9090   ;
9091   return 0;
9092 }
9093 _ACEOF
9094 if ac_fn_c_try_link "$LINENO"; then :
9095   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9096 else
9097   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9098 fi
9099 rm -f core conftest.err conftest.$ac_objext \
9100     conftest$ac_exeext conftest.$ac_ext
9101 LIBS=$ac_check_lib_save_LIBS
9102 fi
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9104 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9105 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
9106   LIBOPENCL="-lOpenCL"
9107
9108 fi
9109
9110 fi
9111 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9112   case "x$with_opencl" in
9113   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9114   xno) ;;
9115   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9116 This is an error since --with-opencl was requested." "$LINENO" 5  ;;
9117 esac
9118 fi
9119 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9120
9121
9122 XML2LIBS=""
9123
9124 XML2INCL=""
9125
9126 XSLTINCL=""
9127
9128 if test "x$with_xml" != "xno"
9129 then
9130     ac_save_CPPFLAGS="$CPPFLAGS"
9131     if test "$PKG_CONFIG" != "false"
9132     then
9133         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9134         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9135     else
9136         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9137         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9138     fi
9139     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9140     for ac_header in libxml/parser.h
9141 do :
9142   ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9143 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
9144   cat >>confdefs.h <<_ACEOF
9145 #define HAVE_LIBXML_PARSER_H 1
9146 _ACEOF
9147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9148 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9149 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9150   $as_echo_n "(cached) " >&6
9151 else
9152   ac_check_lib_save_LIBS=$LIBS
9153 LIBS="-lxml2 $ac_xml_libs $LIBS"
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h.  */
9156
9157 /* Override any GCC internal prototype to avoid an error.
9158    Use char because int might match the return type of a GCC
9159    builtin and then its argument prototype would still apply.  */
9160 #ifdef __cplusplus
9161 extern "C"
9162 #endif
9163 char xmlParseMemory ();
9164 int
9165 main ()
9166 {
9167 return xmlParseMemory ();
9168   ;
9169   return 0;
9170 }
9171 _ACEOF
9172 if ac_fn_c_try_link "$LINENO"; then :
9173   ac_cv_lib_xml2_xmlParseMemory=yes
9174 else
9175   ac_cv_lib_xml2_xmlParseMemory=no
9176 fi
9177 rm -f core conftest.err conftest.$ac_objext \
9178     conftest$ac_exeext conftest.$ac_ext
9179 LIBS=$ac_check_lib_save_LIBS
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9182 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9183 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9184
9185 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9186
9187                  XML2LIBS="$ac_xml_libs"
9188                  XML2INCL="$ac_xml_cflags"
9189 fi
9190
9191              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9192 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9193 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9194   $as_echo_n "(cached) " >&6
9195 else
9196   ac_check_lib_save_LIBS=$LIBS
9197 LIBS="-lxml2 $ac_xml_libs $LIBS"
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h.  */
9200
9201 /* Override any GCC internal prototype to avoid an error.
9202    Use char because int might match the return type of a GCC
9203    builtin and then its argument prototype would still apply.  */
9204 #ifdef __cplusplus
9205 extern "C"
9206 #endif
9207 char xmlReadMemory ();
9208 int
9209 main ()
9210 {
9211 return xmlReadMemory ();
9212   ;
9213   return 0;
9214 }
9215 _ACEOF
9216 if ac_fn_c_try_link "$LINENO"; then :
9217   ac_cv_lib_xml2_xmlReadMemory=yes
9218 else
9219   ac_cv_lib_xml2_xmlReadMemory=no
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext \
9222     conftest$ac_exeext conftest.$ac_ext
9223 LIBS=$ac_check_lib_save_LIBS
9224 fi
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9226 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9227 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9228
9229 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9230
9231 fi
9232
9233              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9234 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9235 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9236   $as_echo_n "(cached) " >&6
9237 else
9238   ac_check_lib_save_LIBS=$LIBS
9239 LIBS="-lxml2 $ac_xml_libs $LIBS"
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h.  */
9242
9243 /* Override any GCC internal prototype to avoid an error.
9244    Use char because int might match the return type of a GCC
9245    builtin and then its argument prototype would still apply.  */
9246 #ifdef __cplusplus
9247 extern "C"
9248 #endif
9249 char xmlNewDocPI ();
9250 int
9251 main ()
9252 {
9253 return xmlNewDocPI ();
9254   ;
9255   return 0;
9256 }
9257 _ACEOF
9258 if ac_fn_c_try_link "$LINENO"; then :
9259   ac_cv_lib_xml2_xmlNewDocPI=yes
9260 else
9261   ac_cv_lib_xml2_xmlNewDocPI=no
9262 fi
9263 rm -f core conftest.err conftest.$ac_objext \
9264     conftest$ac_exeext conftest.$ac_ext
9265 LIBS=$ac_check_lib_save_LIBS
9266 fi
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9268 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9269 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9270
9271 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9272
9273 fi
9274
9275              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9276 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9277 if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
9278   $as_echo_n "(cached) " >&6
9279 else
9280   ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-lxml2 $ac_xml_libs $LIBS"
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h.  */
9284
9285 /* Override any GCC internal prototype to avoid an error.
9286    Use char because int might match the return type of a GCC
9287    builtin and then its argument prototype would still apply.  */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char xmlSchemaSetParserStructuredErrors ();
9292 int
9293 main ()
9294 {
9295 return xmlSchemaSetParserStructuredErrors ();
9296   ;
9297   return 0;
9298 }
9299 _ACEOF
9300 if ac_fn_c_try_link "$LINENO"; then :
9301   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9302 else
9303   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext \
9306     conftest$ac_exeext conftest.$ac_ext
9307 LIBS=$ac_check_lib_save_LIBS
9308 fi
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9310 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9311 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
9312
9313 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9314
9315 fi
9316
9317              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9318 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9319 if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
9320   $as_echo_n "(cached) " >&6
9321 else
9322   ac_check_lib_save_LIBS=$LIBS
9323 LIBS="-lxml2 $ac_xml_libs $LIBS"
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h.  */
9326
9327 /* Override any GCC internal prototype to avoid an error.
9328    Use char because int might match the return type of a GCC
9329    builtin and then its argument prototype would still apply.  */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 char xmlSchemaSetValidStructuredErrors ();
9334 int
9335 main ()
9336 {
9337 return xmlSchemaSetValidStructuredErrors ();
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 if ac_fn_c_try_link "$LINENO"; then :
9343   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9344 else
9345   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9346 fi
9347 rm -f core conftest.err conftest.$ac_objext \
9348     conftest$ac_exeext conftest.$ac_ext
9349 LIBS=$ac_check_lib_save_LIBS
9350 fi
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9352 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9353 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
9354
9355 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9356
9357 fi
9358
9359              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9360 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9361 if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
9362   $as_echo_n "(cached) " >&6
9363 else
9364   ac_check_lib_save_LIBS=$LIBS
9365 LIBS="-lxml2 $ac_xml_libs $LIBS"
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h.  */
9368
9369 /* Override any GCC internal prototype to avoid an error.
9370    Use char because int might match the return type of a GCC
9371    builtin and then its argument prototype would still apply.  */
9372 #ifdef __cplusplus
9373 extern "C"
9374 #endif
9375 char xmlFirstElementChild ();
9376 int
9377 main ()
9378 {
9379 return xmlFirstElementChild ();
9380   ;
9381   return 0;
9382 }
9383 _ACEOF
9384 if ac_fn_c_try_link "$LINENO"; then :
9385   ac_cv_lib_xml2_xmlFirstElementChild=yes
9386 else
9387   ac_cv_lib_xml2_xmlFirstElementChild=no
9388 fi
9389 rm -f core conftest.err conftest.$ac_objext \
9390     conftest$ac_exeext conftest.$ac_ext
9391 LIBS=$ac_check_lib_save_LIBS
9392 fi
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9394 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9395 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
9396
9397 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9398
9399 fi
9400
9401              ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9402 "
9403 if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
9404
9405 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9406
9407 fi
9408
9409
9410 fi
9411
9412 done
9413
9414     CPPFLAGS="$ac_save_CPPFLAGS"
9415 fi
9416 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9417   case "x$with_xml" in
9418   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9419   xno) ;;
9420   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found, XML won't be supported.
9421 This is an error since --with-xml was requested." "$LINENO" 5  ;;
9422 esac
9423 fi
9424
9425 if test "x$with_xslt" != "xno"
9426 then
9427     if test "$PKG_CONFIG" != "false"
9428     then
9429         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9430         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9431     else
9432         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9433         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9434     fi
9435     ac_save_CPPFLAGS="$CPPFLAGS"
9436     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9437     for ac_header in libxslt/pattern.h libxslt/transform.h
9438 do :
9439   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9440 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9441 # include <libxslt/pattern.h>
9442 #endif
9443 "
9444 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9445   cat >>confdefs.h <<_ACEOF
9446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9447 _ACEOF
9448
9449 fi
9450
9451 done
9452
9453     CPPFLAGS="$ac_save_CPPFLAGS"
9454     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9455     then
9456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9457 $as_echo_n "checking for -lxslt... " >&6; }
9458 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9459   $as_echo_n "(cached) " >&6
9460 else
9461   ac_check_soname_save_LIBS=$LIBS
9462 LIBS="-lxslt $ac_xslt_libs $LIBS"
9463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h.  */
9465
9466 /* Override any GCC internal prototype to avoid an error.
9467    Use char because int might match the return type of a GCC
9468    builtin and then its argument prototype would still apply.  */
9469 #ifdef __cplusplus
9470 extern "C"
9471 #endif
9472 char xsltCompilePattern ();
9473 int
9474 main ()
9475 {
9476 return xsltCompilePattern ();
9477   ;
9478   return 0;
9479 }
9480 _ACEOF
9481 if ac_fn_c_try_link "$LINENO"; then :
9482   case "$LIBEXT" in
9483     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9484     dylib) ac_cv_lib_soname_xslt=`otool -L conftest$ac_exeext | grep "libxslt\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libxslt\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9485     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9486   esac
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489     conftest$ac_exeext conftest.$ac_ext
9490   LIBS=$ac_check_soname_save_LIBS
9491 fi
9492 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9494 $as_echo "not found" >&6; }
9495
9496 else
9497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9498 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9499
9500 cat >>confdefs.h <<_ACEOF
9501 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9502 _ACEOF
9503
9504        XSLTINCL="$ac_xslt_cflags"
9505 fi
9506     fi
9507 fi
9508 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9509   case "x$with_xslt" in
9510   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9511   xno) ;;
9512   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9513 This is an error since --with-xslt was requested." "$LINENO" 5  ;;
9514 esac
9515 fi
9516
9517 HALINCL=""
9518
9519 if test "x$with_hal" != "xno"
9520 then
9521     ac_save_CPPFLAGS="$CPPFLAGS"
9522     if test "$PKG_CONFIG" != "false"
9523     then
9524         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9525         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9526         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9527     fi
9528     for ac_header in dbus/dbus.h hal/libhal.h
9529 do :
9530   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9531 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9532 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9533   cat >>confdefs.h <<_ACEOF
9534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9535 _ACEOF
9536
9537 fi
9538
9539 done
9540
9541     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9542     then
9543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9544 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9545 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9546   $as_echo_n "(cached) " >&6
9547 else
9548   ac_check_lib_save_LIBS=$LIBS
9549 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h.  */
9552
9553 /* Override any GCC internal prototype to avoid an error.
9554    Use char because int might match the return type of a GCC
9555    builtin and then its argument prototype would still apply.  */
9556 #ifdef __cplusplus
9557 extern "C"
9558 #endif
9559 char dbus_connection_close ();
9560 int
9561 main ()
9562 {
9563 return dbus_connection_close ();
9564   ;
9565   return 0;
9566 }
9567 _ACEOF
9568 if ac_fn_c_try_link "$LINENO"; then :
9569   ac_cv_lib_dbus_1_dbus_connection_close=yes
9570 else
9571   ac_cv_lib_dbus_1_dbus_connection_close=no
9572 fi
9573 rm -f core conftest.err conftest.$ac_objext \
9574     conftest$ac_exeext conftest.$ac_ext
9575 LIBS=$ac_check_lib_save_LIBS
9576 fi
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9578 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9579 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9581 $as_echo_n "checking for -lhal... " >&6; }
9582 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9583   $as_echo_n "(cached) " >&6
9584 else
9585   ac_check_soname_save_LIBS=$LIBS
9586 LIBS="-lhal $ac_hal_libs $LIBS"
9587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h.  */
9589
9590 /* Override any GCC internal prototype to avoid an error.
9591    Use char because int might match the return type of a GCC
9592    builtin and then its argument prototype would still apply.  */
9593 #ifdef __cplusplus
9594 extern "C"
9595 #endif
9596 char libhal_ctx_new ();
9597 int
9598 main ()
9599 {
9600 return libhal_ctx_new ();
9601   ;
9602   return 0;
9603 }
9604 _ACEOF
9605 if ac_fn_c_try_link "$LINENO"; then :
9606   case "$LIBEXT" in
9607     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9608     dylib) ac_cv_lib_soname_hal=`otool -L conftest$ac_exeext | grep "libhal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libhal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9609     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9610   esac
9611 fi
9612 rm -f core conftest.err conftest.$ac_objext \
9613     conftest$ac_exeext conftest.$ac_ext
9614   LIBS=$ac_check_soname_save_LIBS
9615 fi
9616 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9618 $as_echo "not found" >&6; }
9619
9620 else
9621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9622 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9623
9624 cat >>confdefs.h <<_ACEOF
9625 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9626 _ACEOF
9627
9628        HALINCL="$ac_hal_cflags"
9629 fi
9630 fi
9631
9632     fi
9633     CPPFLAGS="$ac_save_CPPFLAGS"
9634 fi
9635 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9636   case "x$with_hal" in
9637   x)   as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9638   xno) ;;
9639   *)   as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9640 This is an error since --with-hal was requested." "$LINENO" 5  ;;
9641 esac
9642 fi
9643
9644 if test "x$with_gnutls" != "xno"
9645 then
9646     ac_save_CPPFLAGS="$CPPFLAGS"
9647     if test "$PKG_CONFIG" != "false"
9648     then
9649         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9650         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9651         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9652     fi
9653     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9654 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h.  */
9657 #include <gnutls/gnutls.h>
9658 int
9659 main ()
9660 {
9661 typeof(gnutls_mac_get_key_size) *pfunc;
9662   ;
9663   return 0;
9664 }
9665 _ACEOF
9666 if ac_fn_c_try_compile "$LINENO"; then :
9667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9668 $as_echo_n "checking for -lgnutls... " >&6; }
9669 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9670   $as_echo_n "(cached) " >&6
9671 else
9672   ac_check_soname_save_LIBS=$LIBS
9673 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h.  */
9676
9677 /* Override any GCC internal prototype to avoid an error.
9678    Use char because int might match the return type of a GCC
9679    builtin and then its argument prototype would still apply.  */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 char gnutls_global_init ();
9684 int
9685 main ()
9686 {
9687 return gnutls_global_init ();
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 if ac_fn_c_try_link "$LINENO"; then :
9693   case "$LIBEXT" in
9694     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9695     dylib) ac_cv_lib_soname_gnutls=`otool -L conftest$ac_exeext | grep "libgnutls\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgnutls\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9696     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9697   esac
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext \
9700     conftest$ac_exeext conftest.$ac_ext
9701   LIBS=$ac_check_soname_save_LIBS
9702 fi
9703 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9705 $as_echo "not found" >&6; }
9706
9707 else
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9709 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9710
9711 cat >>confdefs.h <<_ACEOF
9712 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9713 _ACEOF
9714
9715        GNUTLSINCL="$ac_gnutls_cflags"
9716
9717 fi
9718 fi
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720 fi
9721
9722
9723     CPPFLAGS="$ac_save_CPPFLAGS"
9724 fi
9725 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9726   case "x$with_gnutls" in
9727   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9728   xno) ;;
9729   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9730 This is an error since --with-gnutls was requested." "$LINENO" 5  ;;
9731 esac
9732 fi
9733
9734 CURSESLIBS=""
9735 if test "$ac_cv_header_ncurses_h" = "yes"
9736 then
9737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9738 $as_echo_n "checking for -lncurses... " >&6; }
9739 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9740   $as_echo_n "(cached) " >&6
9741 else
9742   ac_check_soname_save_LIBS=$LIBS
9743 LIBS="-lncurses  $LIBS"
9744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h.  */
9746
9747 /* Override any GCC internal prototype to avoid an error.
9748    Use char because int might match the return type of a GCC
9749    builtin and then its argument prototype would still apply.  */
9750 #ifdef __cplusplus
9751 extern "C"
9752 #endif
9753 char waddch ();
9754 int
9755 main ()
9756 {
9757 return waddch ();
9758   ;
9759   return 0;
9760 }
9761 _ACEOF
9762 if ac_fn_c_try_link "$LINENO"; then :
9763   case "$LIBEXT" in
9764     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9765     dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep "libncurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9766     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9767   esac
9768 fi
9769 rm -f core conftest.err conftest.$ac_objext \
9770     conftest$ac_exeext conftest.$ac_ext
9771   LIBS=$ac_check_soname_save_LIBS
9772 fi
9773 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9775 $as_echo "not found" >&6; }
9776
9777 else
9778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9779 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9780
9781 cat >>confdefs.h <<_ACEOF
9782 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9783 _ACEOF
9784
9785        CURSESLIBS="-lncurses"
9786 fi
9787 elif test "$ac_cv_header_curses_h" = "yes"
9788 then
9789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9790 $as_echo_n "checking for -lcurses... " >&6; }
9791 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9792   $as_echo_n "(cached) " >&6
9793 else
9794   ac_check_soname_save_LIBS=$LIBS
9795 LIBS="-lcurses  $LIBS"
9796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h.  */
9798
9799 /* Override any GCC internal prototype to avoid an error.
9800    Use char because int might match the return type of a GCC
9801    builtin and then its argument prototype would still apply.  */
9802 #ifdef __cplusplus
9803 extern "C"
9804 #endif
9805 char waddch ();
9806 int
9807 main ()
9808 {
9809 return waddch ();
9810   ;
9811   return 0;
9812 }
9813 _ACEOF
9814 if ac_fn_c_try_link "$LINENO"; then :
9815   case "$LIBEXT" in
9816     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9817     dylib) ac_cv_lib_soname_curses=`otool -L conftest$ac_exeext | grep "libcurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9818     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9819   esac
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext \
9822     conftest$ac_exeext conftest.$ac_ext
9823   LIBS=$ac_check_soname_save_LIBS
9824 fi
9825 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9827 $as_echo "not found" >&6; }
9828
9829 else
9830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9831 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9832
9833 cat >>confdefs.h <<_ACEOF
9834 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9835 _ACEOF
9836
9837        CURSESLIBS="-lcurses"
9838 fi
9839 fi
9840 ac_save_LIBS="$LIBS"
9841 LIBS="$LIBS $CURSESLIBS"
9842 for ac_func in mousemask
9843 do :
9844   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9845 if test "x$ac_cv_func_mousemask" = x""yes; then :
9846   cat >>confdefs.h <<_ACEOF
9847 #define HAVE_MOUSEMASK 1
9848 _ACEOF
9849
9850 fi
9851 done
9852
9853 LIBS="$ac_save_LIBS"
9854 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9855   case "x$with_curses" in
9856   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9857   xno) ;;
9858   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9859 This is an error since --with-curses was requested." "$LINENO" 5  ;;
9860 esac
9861 fi
9862
9863 if test "x$with_sane" != "xno"
9864 then
9865     ac_save_CPPFLAGS="$CPPFLAGS"
9866     # Extract the first word of "sane-config", so it can be a program name with args.
9867 set dummy sane-config; ac_word=$2
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 $as_echo_n "checking for $ac_word... " >&6; }
9870 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9871   $as_echo_n "(cached) " >&6
9872 else
9873   if test -n "$sane_devel"; then
9874   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9875 else
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 for as_dir in $PATH
9878 do
9879   IFS=$as_save_IFS
9880   test -z "$as_dir" && as_dir=.
9881     for ac_exec_ext in '' $ac_executable_extensions; do
9882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883     ac_cv_prog_sane_devel="sane-config"
9884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885     break 2
9886   fi
9887 done
9888   done
9889 IFS=$as_save_IFS
9890
9891   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9892 fi
9893 fi
9894 sane_devel=$ac_cv_prog_sane_devel
9895 if test -n "$sane_devel"; then
9896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9897 $as_echo "$sane_devel" >&6; }
9898 else
9899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9901 fi
9902
9903
9904     if test "$sane_devel" != "no"
9905     then
9906         ac_sane_incl="`$sane_devel --cflags`"
9907         ac_sane_libs="`$sane_devel --ldflags`"
9908         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9909     fi
9910     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9911 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9913 $as_echo_n "checking for -lsane... " >&6; }
9914 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9915   $as_echo_n "(cached) " >&6
9916 else
9917   ac_check_soname_save_LIBS=$LIBS
9918 LIBS="-lsane $ac_sane_libs $LIBS"
9919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h.  */
9921
9922 /* Override any GCC internal prototype to avoid an error.
9923    Use char because int might match the return type of a GCC
9924    builtin and then its argument prototype would still apply.  */
9925 #ifdef __cplusplus
9926 extern "C"
9927 #endif
9928 char sane_init ();
9929 int
9930 main ()
9931 {
9932 return sane_init ();
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 if ac_fn_c_try_link "$LINENO"; then :
9938   case "$LIBEXT" in
9939     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9940     dylib) ac_cv_lib_soname_sane=`otool -L conftest$ac_exeext | grep "libsane\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libsane\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9941     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9942   esac
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext \
9945     conftest$ac_exeext conftest.$ac_ext
9946   LIBS=$ac_check_soname_save_LIBS
9947 fi
9948 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9950 $as_echo "not found" >&6; }
9951
9952 else
9953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9954 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9955
9956 cat >>confdefs.h <<_ACEOF
9957 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9958 _ACEOF
9959
9960        SANEINCL="$ac_sane_incl"
9961
9962 fi
9963 fi
9964
9965
9966     CPPFLAGS="$ac_save_CPPFLAGS"
9967 fi
9968 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9969   case "x$with_sane" in
9970   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9971   xno) ;;
9972   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9973 This is an error since --with-sane was requested." "$LINENO" 5  ;;
9974 esac
9975 fi
9976
9977 if test "x$with_v4l" != "xno"
9978 then
9979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9980 $as_echo_n "checking for -lv4l1... " >&6; }
9981 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9982   $as_echo_n "(cached) " >&6
9983 else
9984   ac_check_soname_save_LIBS=$LIBS
9985 LIBS="-lv4l1  $LIBS"
9986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h.  */
9988
9989 /* Override any GCC internal prototype to avoid an error.
9990    Use char because int might match the return type of a GCC
9991    builtin and then its argument prototype would still apply.  */
9992 #ifdef __cplusplus
9993 extern "C"
9994 #endif
9995 char v4l1_open ();
9996 int
9997 main ()
9998 {
9999 return v4l1_open ();
10000   ;
10001   return 0;
10002 }
10003 _ACEOF
10004 if ac_fn_c_try_link "$LINENO"; then :
10005   case "$LIBEXT" in
10006     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10007     dylib) ac_cv_lib_soname_v4l1=`otool -L conftest$ac_exeext | grep "libv4l1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libv4l1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10008     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10009   esac
10010 fi
10011 rm -f core conftest.err conftest.$ac_objext \
10012     conftest$ac_exeext conftest.$ac_ext
10013   LIBS=$ac_check_soname_save_LIBS
10014 fi
10015 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10017 $as_echo "not found" >&6; }
10018
10019 else
10020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10021 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10022
10023 cat >>confdefs.h <<_ACEOF
10024 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10025 _ACEOF
10026
10027
10028 fi
10029 fi
10030 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10031   case "x$with_v4l" in
10032   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10033   xno) ;;
10034   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10035 This is an error since --with-v4l was requested." "$LINENO" 5  ;;
10036 esac
10037 fi
10038
10039 if test "x$with_gphoto" != "xno"
10040 then
10041     ac_save_CPPFLAGS="$CPPFLAGS"
10042     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10043 set dummy gphoto2-config; ac_word=$2
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 $as_echo_n "checking for $ac_word... " >&6; }
10046 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
10047   $as_echo_n "(cached) " >&6
10048 else
10049   if test -n "$gphoto2_devel"; then
10050   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10051 else
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10054 do
10055   IFS=$as_save_IFS
10056   test -z "$as_dir" && as_dir=.
10057     for ac_exec_ext in '' $ac_executable_extensions; do
10058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10059     ac_cv_prog_gphoto2_devel="gphoto2-config"
10060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061     break 2
10062   fi
10063 done
10064   done
10065 IFS=$as_save_IFS
10066
10067   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10068 fi
10069 fi
10070 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10071 if test -n "$gphoto2_devel"; then
10072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10073 $as_echo "$gphoto2_devel" >&6; }
10074 else
10075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10077 fi
10078
10079
10080     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10081 set dummy gphoto2-port-config; ac_word=$2
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083 $as_echo_n "checking for $ac_word... " >&6; }
10084 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
10085   $as_echo_n "(cached) " >&6
10086 else
10087   if test -n "$gphoto2port_devel"; then
10088   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10089 else
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10092 do
10093   IFS=$as_save_IFS
10094   test -z "$as_dir" && as_dir=.
10095     for ac_exec_ext in '' $ac_executable_extensions; do
10096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10097     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099     break 2
10100   fi
10101 done
10102   done
10103 IFS=$as_save_IFS
10104
10105   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10106 fi
10107 fi
10108 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10109 if test -n "$gphoto2port_devel"; then
10110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10111 $as_echo "$gphoto2port_devel" >&6; }
10112 else
10113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10115 fi
10116
10117
10118     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10119     then
10120         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10121         ac_gphoto2_libs=""
10122         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10123         do
10124             case "$i" in
10125             -L/usr/lib|-L/usr/lib64) ;;
10126             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10127             esac
10128         done
10129         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10130     fi
10131     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10132     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10133 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
10134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10135 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10136 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
10137   $as_echo_n "(cached) " >&6
10138 else
10139   ac_check_lib_save_LIBS=$LIBS
10140 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h.  */
10143
10144 /* Override any GCC internal prototype to avoid an error.
10145    Use char because int might match the return type of a GCC
10146    builtin and then its argument prototype would still apply.  */
10147 #ifdef __cplusplus
10148 extern "C"
10149 #endif
10150 char gp_camera_new ();
10151 int
10152 main ()
10153 {
10154 return gp_camera_new ();
10155   ;
10156   return 0;
10157 }
10158 _ACEOF
10159 if ac_fn_c_try_link "$LINENO"; then :
10160   ac_cv_lib_gphoto2_gp_camera_new=yes
10161 else
10162   ac_cv_lib_gphoto2_gp_camera_new=no
10163 fi
10164 rm -f core conftest.err conftest.$ac_objext \
10165     conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10167 fi
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10169 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10170 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
10171
10172 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10173
10174                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10175
10176                                    GPHOTO2INCL="$ac_gphoto2_incl"
10177
10178 fi
10179
10180 fi
10181
10182
10183     CPPFLAGS="$ac_save_CPPFLAGS"
10184 fi
10185 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10186   case "x$with_gphoto" in
10187   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10188   xno) ;;
10189   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10190 This is an error since --with-gphoto was requested." "$LINENO" 5  ;;
10191 esac
10192 fi
10193
10194
10195 if test "$ac_cv_header_resolv_h" = "yes"
10196 then
10197     ac_save_LIBS="$LIBS"
10198     for lib in '' -lresolv
10199     do
10200       LIBS="$lib $ac_save_LIBS"
10201       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h.  */
10203 #ifdef HAVE_NETINET_IN_H
10204 #include <netinet/in.h>
10205 #endif
10206 #include <resolv.h>
10207 int
10208 main ()
10209 {
10210 res_query("foo",ns_c_in,0,0,0);
10211   ;
10212   return 0;
10213 }
10214 _ACEOF
10215 if ac_fn_c_try_link "$LINENO"; then :
10216
10217 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10218
10219          RESOLVLIBS="$lib"
10220
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext \
10223     conftest$ac_exeext conftest.$ac_ext
10224       if test "${RESOLVLIBS+set}" = set; then
10225         break
10226       fi
10227     done
10228     LIBS="$ac_save_LIBS"
10229 fi
10230
10231 LCMSLIBS=""
10232
10233 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10234 then
10235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10236 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10237 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10238   $as_echo_n "(cached) " >&6
10239 else
10240   ac_check_lib_save_LIBS=$LIBS
10241 LIBS="-llcms  $LIBS"
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h.  */
10244
10245 /* Override any GCC internal prototype to avoid an error.
10246    Use char because int might match the return type of a GCC
10247    builtin and then its argument prototype would still apply.  */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 char cmsOpenProfileFromFile ();
10252 int
10253 main ()
10254 {
10255 return cmsOpenProfileFromFile ();
10256   ;
10257   return 0;
10258 }
10259 _ACEOF
10260 if ac_fn_c_try_link "$LINENO"; then :
10261   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10262 else
10263   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext \
10266     conftest$ac_exeext conftest.$ac_ext
10267 LIBS=$ac_check_lib_save_LIBS
10268 fi
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10270 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10271 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10272
10273 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10274
10275          LCMSLIBS="-llcms"
10276 fi
10277
10278 fi
10279 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10280   case "x$with_cms" in
10281   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10282   xno) ;;
10283   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10284 This is an error since --with-cms was requested." "$LINENO" 5  ;;
10285 esac
10286 fi
10287
10288 if test "x$with_freetype" != "xno"
10289 then
10290     for ac_prog in freetype-config freetype2-config
10291 do
10292   # Extract the first word of "$ac_prog", so it can be a program name with args.
10293 set dummy $ac_prog; ac_word=$2
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295 $as_echo_n "checking for $ac_word... " >&6; }
10296 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10297   $as_echo_n "(cached) " >&6
10298 else
10299   if test -n "$ft_devel"; then
10300   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10301 else
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $PATH
10304 do
10305   IFS=$as_save_IFS
10306   test -z "$as_dir" && as_dir=.
10307     for ac_exec_ext in '' $ac_executable_extensions; do
10308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10309     ac_cv_prog_ft_devel="$ac_prog"
10310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10311     break 2
10312   fi
10313 done
10314   done
10315 IFS=$as_save_IFS
10316
10317 fi
10318 fi
10319 ft_devel=$ac_cv_prog_ft_devel
10320 if test -n "$ft_devel"; then
10321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10322 $as_echo "$ft_devel" >&6; }
10323 else
10324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325 $as_echo "no" >&6; }
10326 fi
10327
10328
10329   test -n "$ft_devel" && break
10330 done
10331 test -n "$ft_devel" || ft_devel="no"
10332
10333     if test "$ft_devel" != "no"
10334     then
10335         ac_freetype_incl=`$ft_devel --cflags`
10336         ac_freetype_libs=`$ft_devel --libs`
10337     fi
10338     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10340 $as_echo_n "checking for -lfreetype... " >&6; }
10341 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10342   $as_echo_n "(cached) " >&6
10343 else
10344   ac_check_soname_save_LIBS=$LIBS
10345 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h.  */
10348
10349 /* Override any GCC internal prototype to avoid an error.
10350    Use char because int might match the return type of a GCC
10351    builtin and then its argument prototype would still apply.  */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 char FT_Init_FreeType ();
10356 int
10357 main ()
10358 {
10359 return FT_Init_FreeType ();
10360   ;
10361   return 0;
10362 }
10363 _ACEOF
10364 if ac_fn_c_try_link "$LINENO"; then :
10365   case "$LIBEXT" in
10366     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10367     dylib) ac_cv_lib_soname_freetype=`otool -L conftest$ac_exeext | grep "libfreetype\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfreetype\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10368     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10369   esac
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext \
10372     conftest$ac_exeext conftest.$ac_ext
10373   LIBS=$ac_check_soname_save_LIBS
10374 fi
10375 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10377 $as_echo "not found" >&6; }
10378        ft_lib=no
10379 else
10380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10381 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10382
10383 cat >>confdefs.h <<_ACEOF
10384 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10385 _ACEOF
10386
10387        ft_lib=yes
10388 fi
10389     if test "$ft_lib" = "yes"
10390     then
10391         ac_save_CPPFLAGS="$CPPFLAGS"
10392         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10393         for ac_header in ft2build.h \
10394                          freetype/freetype.h \
10395                          freetype/ftglyph.h \
10396                          freetype/fttypes.h \
10397                          freetype/tttables.h \
10398                          freetype/ftsnames.h \
10399                          freetype/ttnameid.h \
10400                          freetype/ftoutln.h \
10401                          freetype/ftwinfnt.h \
10402                          freetype/ftmodapi.h \
10403                          freetype/ftlcdfil.h \
10404                          freetype/internal/sfnt.h
10405 do :
10406   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10407 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10408                           # include <ft2build.h>
10409                           #endif
10410 "
10411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10412   cat >>confdefs.h <<_ACEOF
10413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10414 _ACEOF
10415
10416 fi
10417
10418 done
10419
10420         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h.  */
10422 #include <ft2build.h>
10423                     #include <freetype/fttrigon.h>
10424 _ACEOF
10425 if ac_fn_c_try_cpp "$LINENO"; then :
10426
10427 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10428
10429                     wine_cv_fttrigon=yes
10430 else
10431   wine_cv_fttrigon=no
10432 fi
10433 rm -f conftest.err conftest.i conftest.$ac_ext
10434         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10435 "
10436 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10437
10438 cat >>confdefs.h <<_ACEOF
10439 #define HAVE_FT_TRUETYPEENGINETYPE 1
10440 _ACEOF
10441
10442
10443 fi
10444
10445         ac_save_CFLAGS="$CFLAGS"
10446         CFLAGS="$CFLAGS $ac_freetype_libs"
10447         for ac_func in FT_Load_Sfnt_Table
10448 do :
10449   ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10450 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10451   cat >>confdefs.h <<_ACEOF
10452 #define HAVE_FT_LOAD_SFNT_TABLE 1
10453 _ACEOF
10454
10455 fi
10456 done
10457
10458         CFLAGS="$ac_save_CFLAGS"
10459         CPPFLAGS="$ac_save_CPPFLAGS"
10460                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10461         then
10462
10463 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10464
10465             FREETYPELIBS="$ac_freetype_libs"
10466
10467             FREETYPEINCL="$ac_freetype_incl"
10468
10469         fi
10470     fi
10471 fi
10472 if test "x$FREETYPELIBS" = "x"; then :
10473   case "x$with_freetype" in
10474   xno) ;;
10475   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10476 Use the --without-freetype option if you really want this." "$LINENO" 5  ;;
10477 esac
10478 fi
10479 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10480
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10482 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10483 if test "${ac_cv_c_ppdev+set}" = set; then :
10484   $as_echo_n "(cached) " >&6
10485 else
10486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h.  */
10488 #ifdef HAVE_SYS_IOCTL_H
10489 # include <sys/ioctl.h>
10490 #endif
10491 #include <linux/ppdev.h>
10492 int
10493 main ()
10494 {
10495 ioctl (1,PPCLAIM,0)
10496   ;
10497   return 0;
10498 }
10499 _ACEOF
10500 if ac_fn_c_try_compile "$LINENO"; then :
10501   ac_cv_c_ppdev="yes"
10502 else
10503   ac_cv_c_ppdev="no"
10504 fi
10505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506 fi
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10508 $as_echo "$ac_cv_c_ppdev" >&6; }
10509 if test "$ac_cv_c_ppdev" = "yes"
10510 then
10511
10512 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10513
10514 fi
10515
10516 ac_wine_check_funcs_save_LIBS="$LIBS"
10517 LIBS="$LIBS $LIBPTHREAD"
10518 for ac_func in \
10519         pthread_attr_get_np \
10520         pthread_getattr_np \
10521         pthread_get_stackaddr_np \
10522         pthread_get_stacksize_np
10523 do :
10524   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10526 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10527   cat >>confdefs.h <<_ACEOF
10528 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10529 _ACEOF
10530
10531 fi
10532 done
10533
10534 LIBS="$ac_wine_check_funcs_save_LIBS"
10535
10536 if test "$ac_cv_header_zlib_h" = "yes"
10537 then
10538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10539 $as_echo_n "checking for inflate in -lz... " >&6; }
10540 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10541   $as_echo_n "(cached) " >&6
10542 else
10543   ac_check_lib_save_LIBS=$LIBS
10544 LIBS="-lz  $LIBS"
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h.  */
10547
10548 /* Override any GCC internal prototype to avoid an error.
10549    Use char because int might match the return type of a GCC
10550    builtin and then its argument prototype would still apply.  */
10551 #ifdef __cplusplus
10552 extern "C"
10553 #endif
10554 char inflate ();
10555 int
10556 main ()
10557 {
10558 return inflate ();
10559   ;
10560   return 0;
10561 }
10562 _ACEOF
10563 if ac_fn_c_try_link "$LINENO"; then :
10564   ac_cv_lib_z_inflate=yes
10565 else
10566   ac_cv_lib_z_inflate=no
10567 fi
10568 rm -f core conftest.err conftest.$ac_objext \
10569     conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10571 fi
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10573 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10574 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10575
10576 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10577
10578                             ZLIB="-lz"
10579
10580 fi
10581
10582 fi
10583
10584 if test "x$with_esd" != xno
10585 then
10586     save_CFLAGS="$CFLAGS"
10587     # Extract the first word of "esd-config", so it can be a program name with args.
10588 set dummy esd-config; ac_word=$2
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10590 $as_echo_n "checking for $ac_word... " >&6; }
10591 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10592   $as_echo_n "(cached) " >&6
10593 else
10594   case $ESDCONFIG in
10595   [\\/]* | ?:[\\/]*)
10596   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10597   ;;
10598   *)
10599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600 for as_dir in $PATH
10601 do
10602   IFS=$as_save_IFS
10603   test -z "$as_dir" && as_dir=.
10604     for ac_exec_ext in '' $ac_executable_extensions; do
10605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10606     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608     break 2
10609   fi
10610 done
10611   done
10612 IFS=$as_save_IFS
10613
10614   test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10615   ;;
10616 esac
10617 fi
10618 ESDCONFIG=$ac_cv_path_ESDCONFIG
10619 if test -n "$ESDCONFIG"; then
10620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10621 $as_echo "$ESDCONFIG" >&6; }
10622 else
10623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10625 fi
10626
10627
10628     if test "x$ESDCONFIG" != "xno"
10629     then
10630         ac_esd_incl=""
10631         for i in `$ESDCONFIG --cflags`
10632         do
10633             case "$i" in
10634                 -I*) ac_esd_incl="$ac_esd_incl $i";;
10635             esac
10636         done
10637         ac_esd_libs=`$ESDCONFIG --libs`
10638         CFLAGS="$CFLAGS $ac_esd_incl"
10639     fi
10640     ac_esd_libs=${ac_esd_libs:-"-lesd"}
10641     ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10642 if test "x$ac_cv_header_esd_h" = x""yes; then :
10643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10644 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10645 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648   ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-lesd $ac_esd_libs $LIBS"
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h.  */
10652
10653 /* Override any GCC internal prototype to avoid an error.
10654    Use char because int might match the return type of a GCC
10655    builtin and then its argument prototype would still apply.  */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 char esd_open_sound ();
10660 int
10661 main ()
10662 {
10663 return esd_open_sound ();
10664   ;
10665   return 0;
10666 }
10667 _ACEOF
10668 if ac_fn_c_try_link "$LINENO"; then :
10669   ac_cv_lib_esd_esd_open_sound=yes
10670 else
10671   ac_cv_lib_esd_esd_open_sound=no
10672 fi
10673 rm -f core conftest.err conftest.$ac_objext \
10674     conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10676 fi
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10678 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10679 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10680   ESDINCL="$ac_esd_incl"
10681
10682              ESDLIBS="$ac_esd_libs"
10683
10684
10685 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10686
10687 fi
10688
10689 fi
10690
10691
10692     CFLAGS="$save_CFLAGS"
10693 fi
10694
10695 if test "x$with_gstreamer" != "xno"
10696 then
10697     ac_save_CPPFLAGS="$CPPFLAGS"
10698     if test "$PKG_CONFIG" != "false"; then
10699         ac_gst_incl=""
10700         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10701         do
10702             case "$i" in
10703                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10704             esac
10705         done
10706         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10707         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10708         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10709 if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
10710   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10711 if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
10712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10713 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10714 if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
10715   $as_echo_n "(cached) " >&6
10716 else
10717   ac_check_lib_save_LIBS=$LIBS
10718 LIBS="-lgstreamer-0.10  $LIBS"
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h.  */
10721
10722 /* Override any GCC internal prototype to avoid an error.
10723    Use char because int might match the return type of a GCC
10724    builtin and then its argument prototype would still apply.  */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 char gst_pad_get_caps_reffed ();
10729 int
10730 main ()
10731 {
10732 return gst_pad_get_caps_reffed ();
10733   ;
10734   return 0;
10735 }
10736 _ACEOF
10737 if ac_fn_c_try_link "$LINENO"; then :
10738   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10739 else
10740   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10741 fi
10742 rm -f core conftest.err conftest.$ac_objext \
10743     conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10745 fi
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10747 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10748 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
10749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10750 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10751 if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10752   $as_echo_n "(cached) " >&6
10753 else
10754   ac_check_lib_save_LIBS=$LIBS
10755 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h.  */
10758
10759 /* Override any GCC internal prototype to avoid an error.
10760    Use char because int might match the return type of a GCC
10761    builtin and then its argument prototype would still apply.  */
10762 #ifdef __cplusplus
10763 extern "C"
10764 #endif
10765 char gst_app_buffer_new ();
10766 int
10767 main ()
10768 {
10769 return gst_app_buffer_new ();
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10776 else
10777   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext \
10780     conftest$ac_exeext conftest.$ac_ext
10781 LIBS=$ac_check_lib_save_LIBS
10782 fi
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10784 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10785 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10786   GSTREAMER_LIBS="$ac_gst_libs"
10787
10788                      GSTREAMER_INCL="$ac_gst_incl"
10789
10790 fi
10791
10792 fi
10793
10794 fi
10795
10796
10797 fi
10798
10799
10800     fi
10801     CPPFLAGS="$ac_save_CPPFLAGS"
10802 fi
10803 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes; then :
10804   case "x$with_gstreamer" in
10805   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10806   xno) ;;
10807   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10808 This is an error since --with-gstreamer was requested." "$LINENO" 5  ;;
10809 esac
10810 fi
10811 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10812
10813 ALSALIBS=""
10814
10815 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10816 then
10817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10818 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10819 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10820   $as_echo_n "(cached) " >&6
10821 else
10822   ac_check_lib_save_LIBS=$LIBS
10823 LIBS="-lasound  $LIBS"
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h.  */
10826
10827 /* Override any GCC internal prototype to avoid an error.
10828    Use char because int might match the return type of a GCC
10829    builtin and then its argument prototype would still apply.  */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char snd_pcm_hw_params_get_access ();
10834 int
10835 main ()
10836 {
10837 return snd_pcm_hw_params_get_access ();
10838   ;
10839   return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10844 else
10845   ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10846 fi
10847 rm -f core conftest.err conftest.$ac_objext \
10848     conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10850 fi
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10852 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10853 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h.  */
10856 #ifdef HAVE_ALSA_ASOUNDLIB_H
10857 #include <alsa/asoundlib.h>
10858 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10859 #include <sys/asoundlib.h>
10860 #endif
10861 int
10862 main ()
10863 {
10864 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10865   ;
10866   return 0;
10867 }
10868 _ACEOF
10869 if ac_fn_c_try_compile "$LINENO"; then :
10870
10871 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10872
10873                          ALSALIBS="-lasound"
10874 fi
10875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10876 fi
10877
10878 fi
10879
10880
10881 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10882 then
10883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10884 $as_echo_n "checking for -lcapi20... " >&6; }
10885 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10886   $as_echo_n "(cached) " >&6
10887 else
10888   ac_check_soname_save_LIBS=$LIBS
10889 LIBS="-lcapi20  $LIBS"
10890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h.  */
10892
10893 /* Override any GCC internal prototype to avoid an error.
10894    Use char because int might match the return type of a GCC
10895    builtin and then its argument prototype would still apply.  */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 char capi20_register ();
10900 int
10901 main ()
10902 {
10903 return capi20_register ();
10904   ;
10905   return 0;
10906 }
10907 _ACEOF
10908 if ac_fn_c_try_link "$LINENO"; then :
10909   case "$LIBEXT" in
10910     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10911     dylib) ac_cv_lib_soname_capi20=`otool -L conftest$ac_exeext | grep "libcapi20\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcapi20\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10912     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10913   esac
10914 fi
10915 rm -f core conftest.err conftest.$ac_objext \
10916     conftest$ac_exeext conftest.$ac_ext
10917   LIBS=$ac_check_soname_save_LIBS
10918 fi
10919 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10921 $as_echo "not found" >&6; }
10922
10923 else
10924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10925 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10926
10927 cat >>confdefs.h <<_ACEOF
10928 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10929 _ACEOF
10930
10931
10932 fi
10933 fi
10934 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10935   case "x$with_capi" in
10936   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10937   xno) ;;
10938   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10939 This is an error since --with-capi was requested." "$LINENO" 5  ;;
10940 esac
10941 fi
10942
10943 CUPSINCL=""
10944
10945 if test "x$with_cups" != "xno"
10946 then
10947     ac_save_CPPFLAGS="$CPPFLAGS"
10948     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10949     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10950     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10951     for ac_header in cups/cups.h
10952 do :
10953   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10954 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
10955   cat >>confdefs.h <<_ACEOF
10956 #define HAVE_CUPS_CUPS_H 1
10957 _ACEOF
10958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10959 $as_echo_n "checking for -lcups... " >&6; }
10960 if test "${ac_cv_lib_soname_cups+set}" = set; then :
10961   $as_echo_n "(cached) " >&6
10962 else
10963   ac_check_soname_save_LIBS=$LIBS
10964 LIBS="-lcups $ac_cups_libs $LIBS"
10965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h.  */
10967
10968 /* Override any GCC internal prototype to avoid an error.
10969    Use char because int might match the return type of a GCC
10970    builtin and then its argument prototype would still apply.  */
10971 #ifdef __cplusplus
10972 extern "C"
10973 #endif
10974 char cupsGetDefault ();
10975 int
10976 main ()
10977 {
10978 return cupsGetDefault ();
10979   ;
10980   return 0;
10981 }
10982 _ACEOF
10983 if ac_fn_c_try_link "$LINENO"; then :
10984   case "$LIBEXT" in
10985     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10986     dylib) ac_cv_lib_soname_cups=`otool -L conftest$ac_exeext | grep "libcups\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcups\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10987     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10988   esac
10989 fi
10990 rm -f core conftest.err conftest.$ac_objext \
10991     conftest$ac_exeext conftest.$ac_ext
10992   LIBS=$ac_check_soname_save_LIBS
10993 fi
10994 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10996 $as_echo "not found" >&6; }
10997
10998 else
10999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11000 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11001
11002 cat >>confdefs.h <<_ACEOF
11003 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11004 _ACEOF
11005
11006        CUPSINCL="$ac_cups_cflags"
11007 fi
11008 fi
11009
11010 done
11011
11012     CPPFLAGS="$ac_save_CPPFLAGS"
11013 fi
11014 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11015   case "x$with_cups" in
11016   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11017   xno) ;;
11018   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11019 This is an error since --with-cups was requested." "$LINENO" 5  ;;
11020 esac
11021 fi
11022
11023 if test "$ac_cv_header_jack_jack_h" = "yes"
11024 then
11025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11026 $as_echo_n "checking for -ljack... " >&6; }
11027 if test "${ac_cv_lib_soname_jack+set}" = set; then :
11028   $as_echo_n "(cached) " >&6
11029 else
11030   ac_check_soname_save_LIBS=$LIBS
11031 LIBS="-ljack  $LIBS"
11032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h.  */
11034
11035 /* Override any GCC internal prototype to avoid an error.
11036    Use char because int might match the return type of a GCC
11037    builtin and then its argument prototype would still apply.  */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 char jack_client_new ();
11042 int
11043 main ()
11044 {
11045 return jack_client_new ();
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 if ac_fn_c_try_link "$LINENO"; then :
11051   case "$LIBEXT" in
11052     dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11053     dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11054     *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11055   esac
11056 fi
11057 rm -f core conftest.err conftest.$ac_objext \
11058     conftest$ac_exeext conftest.$ac_ext
11059   LIBS=$ac_check_soname_save_LIBS
11060 fi
11061 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11063 $as_echo "not found" >&6; }
11064
11065 else
11066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11067 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11068
11069 cat >>confdefs.h <<_ACEOF
11070 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11071 _ACEOF
11072
11073
11074 fi
11075 fi
11076
11077 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11078 then
11079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11080 $as_echo_n "checking for -lfontconfig... " >&6; }
11081 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11082   $as_echo_n "(cached) " >&6
11083 else
11084   ac_check_soname_save_LIBS=$LIBS
11085 LIBS="-lfontconfig  $LIBS"
11086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h.  */
11088
11089 /* Override any GCC internal prototype to avoid an error.
11090    Use char because int might match the return type of a GCC
11091    builtin and then its argument prototype would still apply.  */
11092 #ifdef __cplusplus
11093 extern "C"
11094 #endif
11095 char FcInit ();
11096 int
11097 main ()
11098 {
11099 return FcInit ();
11100   ;
11101   return 0;
11102 }
11103 _ACEOF
11104 if ac_fn_c_try_link "$LINENO"; then :
11105   case "$LIBEXT" in
11106     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11107     dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep "libfontconfig\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11108     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11109   esac
11110 fi
11111 rm -f core conftest.err conftest.$ac_objext \
11112     conftest$ac_exeext conftest.$ac_ext
11113   LIBS=$ac_check_soname_save_LIBS
11114 fi
11115 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11117 $as_echo "not found" >&6; }
11118
11119 else
11120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11121 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11122
11123 cat >>confdefs.h <<_ACEOF
11124 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11125 _ACEOF
11126
11127
11128 fi
11129 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11130 then
11131         ac_save_CPPFLAGS="$CPPFLAGS"
11132     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11133     $as_unset ac_cv_header_fontconfig_fontconfig_h
11134     for ac_header in fontconfig/fontconfig.h
11135 do :
11136   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11137 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
11138   cat >>confdefs.h <<_ACEOF
11139 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11140 _ACEOF
11141
11142 fi
11143
11144 done
11145
11146     CPPFLAGS="$ac_save_CPPFLAGS"
11147     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11148     then
11149         FONTCONFIGINCL="$X_CFLAGS"
11150
11151         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11152 $as_echo_n "checking for -lfontconfig... " >&6; }
11153 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11154   $as_echo_n "(cached) " >&6
11155 else
11156   ac_check_soname_save_LIBS=$LIBS
11157 LIBS="-lfontconfig $X_LIBS $LIBS"
11158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h.  */
11160
11161 /* Override any GCC internal prototype to avoid an error.
11162    Use char because int might match the return type of a GCC
11163    builtin and then its argument prototype would still apply.  */
11164 #ifdef __cplusplus
11165 extern "C"
11166 #endif
11167 char FcInit ();
11168 int
11169 main ()
11170 {
11171 return FcInit ();
11172   ;
11173   return 0;
11174 }
11175 _ACEOF
11176 if ac_fn_c_try_link "$LINENO"; then :
11177   case "$LIBEXT" in
11178     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11179     dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep "libfontconfig\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11180     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11181   esac
11182 fi
11183 rm -f core conftest.err conftest.$ac_objext \
11184     conftest$ac_exeext conftest.$ac_ext
11185   LIBS=$ac_check_soname_save_LIBS
11186 fi
11187 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11189 $as_echo "not found" >&6; }
11190
11191 else
11192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11193 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11194
11195 cat >>confdefs.h <<_ACEOF
11196 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11197 _ACEOF
11198
11199
11200 fi
11201     fi
11202 fi
11203 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11204   case "x$with_fontconfig" in
11205   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11206   xno) ;;
11207   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11208 This is an error since --with-fontconfig was requested." "$LINENO" 5  ;;
11209 esac
11210 fi
11211
11212 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11213 then
11214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11215 $as_echo_n "checking for -lssl... " >&6; }
11216 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
11217   $as_echo_n "(cached) " >&6
11218 else
11219   ac_check_soname_save_LIBS=$LIBS
11220 LIBS="-lssl  $LIBS"
11221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h.  */
11223
11224 /* Override any GCC internal prototype to avoid an error.
11225    Use char because int might match the return type of a GCC
11226    builtin and then its argument prototype would still apply.  */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 char SSL_library_init ();
11231 int
11232 main ()
11233 {
11234 return SSL_library_init ();
11235   ;
11236   return 0;
11237 }
11238 _ACEOF
11239 if ac_fn_c_try_link "$LINENO"; then :
11240   case "$LIBEXT" in
11241     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11242     dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep "libssl\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11243     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11244   esac
11245 fi
11246 rm -f core conftest.err conftest.$ac_objext \
11247     conftest$ac_exeext conftest.$ac_ext
11248   LIBS=$ac_check_soname_save_LIBS
11249 fi
11250 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11252 $as_echo "not found" >&6; }
11253
11254 else
11255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11256 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11257
11258 cat >>confdefs.h <<_ACEOF
11259 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11260 _ACEOF
11261
11262
11263 fi
11264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11265 $as_echo_n "checking for -lcrypto... " >&6; }
11266 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11267   $as_echo_n "(cached) " >&6
11268 else
11269   ac_check_soname_save_LIBS=$LIBS
11270 LIBS="-lcrypto  $LIBS"
11271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h.  */
11273
11274 /* Override any GCC internal prototype to avoid an error.
11275    Use char because int might match the return type of a GCC
11276    builtin and then its argument prototype would still apply.  */
11277 #ifdef __cplusplus
11278 extern "C"
11279 #endif
11280 char BIO_new_socket ();
11281 int
11282 main ()
11283 {
11284 return BIO_new_socket ();
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 if ac_fn_c_try_link "$LINENO"; then :
11290   case "$LIBEXT" in
11291     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11292     dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep "libcrypto\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11293     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11294   esac
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext \
11297     conftest$ac_exeext conftest.$ac_ext
11298   LIBS=$ac_check_soname_save_LIBS
11299 fi
11300 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11302 $as_echo "not found" >&6; }
11303
11304 else
11305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11306 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11307
11308 cat >>confdefs.h <<_ACEOF
11309 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11310 _ACEOF
11311
11312
11313 fi
11314 fi
11315 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11316   case "x$with_openssl" in
11317   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11318   xno) ;;
11319   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11320 This is an error since --with-openssl was requested." "$LINENO" 5  ;;
11321 esac
11322 fi
11323
11324 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11325 then
11326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11327 $as_echo_n "checking for -lgsm... " >&6; }
11328 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11329   $as_echo_n "(cached) " >&6
11330 else
11331   ac_check_soname_save_LIBS=$LIBS
11332 LIBS="-lgsm  $LIBS"
11333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h.  */
11335
11336 /* Override any GCC internal prototype to avoid an error.
11337    Use char because int might match the return type of a GCC
11338    builtin and then its argument prototype would still apply.  */
11339 #ifdef __cplusplus
11340 extern "C"
11341 #endif
11342 char gsm_create ();
11343 int
11344 main ()
11345 {
11346 return gsm_create ();
11347   ;
11348   return 0;
11349 }
11350 _ACEOF
11351 if ac_fn_c_try_link "$LINENO"; then :
11352   case "$LIBEXT" in
11353     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11354     dylib) ac_cv_lib_soname_gsm=`otool -L conftest$ac_exeext | grep "libgsm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgsm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11355     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11356   esac
11357 fi
11358 rm -f core conftest.err conftest.$ac_objext \
11359     conftest$ac_exeext conftest.$ac_ext
11360   LIBS=$ac_check_soname_save_LIBS
11361 fi
11362 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11364 $as_echo "not found" >&6; }
11365
11366 else
11367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11368 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11369
11370 cat >>confdefs.h <<_ACEOF
11371 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11372 _ACEOF
11373
11374
11375 fi
11376 fi
11377 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11378   case "x$with_gsm" in
11379   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11380   xno) ;;
11381   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11382 This is an error since --with-gsm was requested." "$LINENO" 5  ;;
11383 esac
11384 fi
11385
11386 if test "$ac_cv_header_icns_h" = "yes"
11387 then
11388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -licns" >&5
11389 $as_echo_n "checking for -licns... " >&6; }
11390 if test "${ac_cv_lib_soname_icns+set}" = set; then :
11391   $as_echo_n "(cached) " >&6
11392 else
11393   ac_check_soname_save_LIBS=$LIBS
11394 LIBS="-licns  $LIBS"
11395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h.  */
11397
11398 /* Override any GCC internal prototype to avoid an error.
11399    Use char because int might match the return type of a GCC
11400    builtin and then its argument prototype would still apply.  */
11401 #ifdef __cplusplus
11402 extern "C"
11403 #endif
11404 char icns_write_family_to_file ();
11405 int
11406 main ()
11407 {
11408 return icns_write_family_to_file ();
11409   ;
11410   return 0;
11411 }
11412 _ACEOF
11413 if ac_fn_c_try_link "$LINENO"; then :
11414   case "$LIBEXT" in
11415     dll) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest.exe | grep "icns" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11416     dylib) ac_cv_lib_soname_icns=`otool -L conftest$ac_exeext | grep "libicns\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libicns\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11417     *) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest$ac_exeext | grep "libicns\\.$LIBEXT" | sed -e "s/^.*\(libicns\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11418   esac
11419 fi
11420 rm -f core conftest.err conftest.$ac_objext \
11421     conftest$ac_exeext conftest.$ac_ext
11422   LIBS=$ac_check_soname_save_LIBS
11423 fi
11424 if test "x$ac_cv_lib_soname_icns" = "x"; then :
11425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11426 $as_echo "not found" >&6; }
11427
11428 else
11429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_icns" >&5
11430 $as_echo "$ac_cv_lib_soname_icns" >&6; }
11431
11432 cat >>confdefs.h <<_ACEOF
11433 #define SONAME_LIBICNS "$ac_cv_lib_soname_icns"
11434 _ACEOF
11435
11436
11437 fi
11438 fi
11439 case $host_os in
11440   darwin*|macosx*)
11441     if test "x$ac_cv_lib_soname_icns" = "x"; then :
11442   case "x$with_icns" in
11443   x)   as_fn_append wine_notices "|libicns ${notice_platform}development files not found, ICNS icons won't be supported." ;;
11444   xno) ;;
11445   *)   as_fn_error $? "libicns ${notice_platform}development files not found, ICNS icons won't be supported.
11446 This is an error since --with-icns was requested." "$LINENO" 5  ;;
11447 esac
11448 fi ;;
11449 esac
11450
11451 if test "$ac_cv_header_jpeglib_h" = "yes"
11452 then
11453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11454 $as_echo_n "checking for -ljpeg... " >&6; }
11455 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11456   $as_echo_n "(cached) " >&6
11457 else
11458   ac_check_soname_save_LIBS=$LIBS
11459 LIBS="-ljpeg  $LIBS"
11460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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 jpeg_start_decompress ();
11470 int
11471 main ()
11472 {
11473 return jpeg_start_decompress ();
11474   ;
11475   return 0;
11476 }
11477 _ACEOF
11478 if ac_fn_c_try_link "$LINENO"; then :
11479   case "$LIBEXT" in
11480     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11481     dylib) ac_cv_lib_soname_jpeg=`otool -L conftest$ac_exeext | grep "libjpeg\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjpeg\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11482     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11483   esac
11484 fi
11485 rm -f core conftest.err conftest.$ac_objext \
11486     conftest$ac_exeext conftest.$ac_ext
11487   LIBS=$ac_check_soname_save_LIBS
11488 fi
11489 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11491 $as_echo "not found" >&6; }
11492
11493 else
11494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11495 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11496
11497 cat >>confdefs.h <<_ACEOF
11498 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11499 _ACEOF
11500
11501
11502 fi
11503 fi
11504 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11505   case "x$with_jpeg" in
11506   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11507   xno) ;;
11508   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11509 This is an error since --with-jpeg was requested." "$LINENO" 5  ;;
11510 esac
11511 fi
11512
11513 if test "$ac_cv_header_png_h" = "yes"
11514 then
11515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11516 $as_echo_n "checking for -lpng... " >&6; }
11517 if test "${ac_cv_lib_soname_png+set}" = set; then :
11518   $as_echo_n "(cached) " >&6
11519 else
11520   ac_check_soname_save_LIBS=$LIBS
11521 LIBS="-lpng -lm -lz $LIBS"
11522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h.  */
11524
11525 /* Override any GCC internal prototype to avoid an error.
11526    Use char because int might match the return type of a GCC
11527    builtin and then its argument prototype would still apply.  */
11528 #ifdef __cplusplus
11529 extern "C"
11530 #endif
11531 char png_create_read_struct ();
11532 int
11533 main ()
11534 {
11535 return png_create_read_struct ();
11536   ;
11537   return 0;
11538 }
11539 _ACEOF
11540 if ac_fn_c_try_link "$LINENO"; then :
11541   case "$LIBEXT" in
11542     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11543     dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11544     *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
11545   esac
11546 fi
11547 rm -f core conftest.err conftest.$ac_objext \
11548     conftest$ac_exeext conftest.$ac_ext
11549   LIBS=$ac_check_soname_save_LIBS
11550 fi
11551 if test "x$ac_cv_lib_soname_png" = "x"; then :
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11553 $as_echo "not found" >&6; }
11554
11555 else
11556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11557 $as_echo "$ac_cv_lib_soname_png" >&6; }
11558
11559 cat >>confdefs.h <<_ACEOF
11560 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11561 _ACEOF
11562
11563
11564 fi
11565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11566 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11567 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11568   $as_echo_n "(cached) " >&6
11569 else
11570   ac_check_lib_save_LIBS=$LIBS
11571 LIBS="-lpng -lm -lz $LIBS"
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h.  */
11574
11575 /* Override any GCC internal prototype to avoid an error.
11576    Use char because int might match the return type of a GCC
11577    builtin and then its argument prototype would still apply.  */
11578 #ifdef __cplusplus
11579 extern "C"
11580 #endif
11581 char png_set_expand_gray_1_2_4_to_8 ();
11582 int
11583 main ()
11584 {
11585 return png_set_expand_gray_1_2_4_to_8 ();
11586   ;
11587   return 0;
11588 }
11589 _ACEOF
11590 if ac_fn_c_try_link "$LINENO"; then :
11591   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11592 else
11593   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11594 fi
11595 rm -f core conftest.err conftest.$ac_objext \
11596     conftest$ac_exeext conftest.$ac_ext
11597 LIBS=$ac_check_lib_save_LIBS
11598 fi
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11600 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11601 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11602
11603 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11604
11605
11606 fi
11607
11608 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11609 then
11610         ac_save_CPPFLAGS="$CPPFLAGS"
11611     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11612     $as_unset ac_cv_header_png_h
11613     for ac_header in png.h
11614 do :
11615   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11616 if test "x$ac_cv_header_png_h" = x""yes; then :
11617   cat >>confdefs.h <<_ACEOF
11618 #define HAVE_PNG_H 1
11619 _ACEOF
11620
11621 fi
11622
11623 done
11624
11625     CPPFLAGS="$ac_save_CPPFLAGS"
11626     if test "$ac_cv_header_png_h" = "yes"
11627     then
11628         PNGINCL="$X_CFLAGS"
11629
11630         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11631 $as_echo_n "checking for -lpng... " >&6; }
11632 if test "${ac_cv_lib_soname_png+set}" = set; then :
11633   $as_echo_n "(cached) " >&6
11634 else
11635   ac_check_soname_save_LIBS=$LIBS
11636 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h.  */
11639
11640 /* Override any GCC internal prototype to avoid an error.
11641    Use char because int might match the return type of a GCC
11642    builtin and then its argument prototype would still apply.  */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 char png_create_read_struct ();
11647 int
11648 main ()
11649 {
11650 return png_create_read_struct ();
11651   ;
11652   return 0;
11653 }
11654 _ACEOF
11655 if ac_fn_c_try_link "$LINENO"; then :
11656   case "$LIBEXT" in
11657     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11658     dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11659     *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
11660   esac
11661 fi
11662 rm -f core conftest.err conftest.$ac_objext \
11663     conftest$ac_exeext conftest.$ac_ext
11664   LIBS=$ac_check_soname_save_LIBS
11665 fi
11666 if test "x$ac_cv_lib_soname_png" = "x"; then :
11667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11668 $as_echo "not found" >&6; }
11669
11670 else
11671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11672 $as_echo "$ac_cv_lib_soname_png" >&6; }
11673
11674 cat >>confdefs.h <<_ACEOF
11675 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11676 _ACEOF
11677
11678
11679 fi
11680         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11681 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11682 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11683   $as_echo_n "(cached) " >&6
11684 else
11685   ac_check_lib_save_LIBS=$LIBS
11686 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h.  */
11689
11690 /* Override any GCC internal prototype to avoid an error.
11691    Use char because int might match the return type of a GCC
11692    builtin and then its argument prototype would still apply.  */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char png_set_expand_gray_1_2_4_to_8 ();
11697 int
11698 main ()
11699 {
11700 return png_set_expand_gray_1_2_4_to_8 ();
11701   ;
11702   return 0;
11703 }
11704 _ACEOF
11705 if ac_fn_c_try_link "$LINENO"; then :
11706   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11707 else
11708   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11709 fi
11710 rm -f core conftest.err conftest.$ac_objext \
11711     conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11713 fi
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11715 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11716 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11717   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11718
11719 fi
11720
11721     fi
11722 fi
11723 if test "x$ac_cv_lib_soname_png" = "x"; then :
11724   case "x$with_png" in
11725   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11726   xno) ;;
11727   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11728 This is an error since --with-png was requested." "$LINENO" 5  ;;
11729 esac
11730 fi
11731
11732 if test "$ac_cv_header_tiffio_h" = "yes"
11733 then
11734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11735 $as_echo_n "checking for -ltiff... " >&6; }
11736 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11737   $as_echo_n "(cached) " >&6
11738 else
11739   ac_check_soname_save_LIBS=$LIBS
11740 LIBS="-ltiff  $LIBS"
11741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742 /* end confdefs.h.  */
11743
11744 /* Override any GCC internal prototype to avoid an error.
11745    Use char because int might match the return type of a GCC
11746    builtin and then its argument prototype would still apply.  */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 char TIFFClientOpen ();
11751 int
11752 main ()
11753 {
11754 return TIFFClientOpen ();
11755   ;
11756   return 0;
11757 }
11758 _ACEOF
11759 if ac_fn_c_try_link "$LINENO"; then :
11760   case "$LIBEXT" in
11761     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11762     dylib) ac_cv_lib_soname_tiff=`otool -L conftest$ac_exeext | grep "libtiff\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libtiff\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11763     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11764   esac
11765 fi
11766 rm -f core conftest.err conftest.$ac_objext \
11767     conftest$ac_exeext conftest.$ac_ext
11768   LIBS=$ac_check_soname_save_LIBS
11769 fi
11770 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11772 $as_echo "not found" >&6; }
11773
11774 else
11775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11776 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11777
11778 cat >>confdefs.h <<_ACEOF
11779 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11780 _ACEOF
11781
11782
11783 fi
11784 fi
11785 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11786   case "x$with_tiff" in
11787   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11788   xno) ;;
11789   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11790 This is an error since --with-tiff was requested." "$LINENO" 5  ;;
11791 esac
11792 fi
11793
11794 if test "$ac_cv_header_mpg123_h" = "yes"
11795 then
11796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11797 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11798 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11799   $as_echo_n "(cached) " >&6
11800 else
11801   ac_check_lib_save_LIBS=$LIBS
11802 LIBS="-lmpg123  $LIBS"
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h.  */
11805
11806 /* Override any GCC internal prototype to avoid an error.
11807    Use char because int might match the return type of a GCC
11808    builtin and then its argument prototype would still apply.  */
11809 #ifdef __cplusplus
11810 extern "C"
11811 #endif
11812 char mpg123_feed ();
11813 int
11814 main ()
11815 {
11816 return mpg123_feed ();
11817   ;
11818   return 0;
11819 }
11820 _ACEOF
11821 if ac_fn_c_try_link "$LINENO"; then :
11822   ac_cv_lib_mpg123_mpg123_feed=yes
11823 else
11824   ac_cv_lib_mpg123_mpg123_feed=no
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext \
11827     conftest$ac_exeext conftest.$ac_ext
11828 LIBS=$ac_check_lib_save_LIBS
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11831 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11832 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11833   LIBMPG123="-lmpg123"
11834
11835 fi
11836
11837 fi
11838 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11839   case "x$with_mpg123" in
11840   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11841   xno) ;;
11842   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11843 This is an error since --with-mpg123 was requested." "$LINENO" 5  ;;
11844 esac
11845 fi
11846 test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_header_AudioToolbox_AudioConverter_h" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
11847
11848 if test "$ac_cv_header_AL_al_h" = "yes"
11849 then
11850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11851 $as_echo_n "checking for -lopenal... " >&6; }
11852 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11853   $as_echo_n "(cached) " >&6
11854 else
11855   ac_check_soname_save_LIBS=$LIBS
11856 LIBS="-lopenal  $LIBS"
11857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h.  */
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861    Use char because int might match the return type of a GCC
11862    builtin and then its argument prototype would still apply.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char alGetSource3i ();
11867 int
11868 main ()
11869 {
11870 return alGetSource3i ();
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876   case "$LIBEXT" in
11877     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11878     dylib) ac_cv_lib_soname_openal=`otool -L conftest$ac_exeext | grep "libopenal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libopenal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11879     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11880   esac
11881 fi
11882 rm -f core conftest.err conftest.$ac_objext \
11883     conftest$ac_exeext conftest.$ac_ext
11884   LIBS=$ac_check_soname_save_LIBS
11885 fi
11886 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11888 $as_echo "not found" >&6; }
11889
11890 else
11891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11892 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11893
11894 cat >>confdefs.h <<_ACEOF
11895 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11896 _ACEOF
11897
11898        LIBOPENAL="-lopenal"
11899
11900                       ac_cv_lib_openal=yes
11901
11902 cat >>confdefs.h <<_ACEOF
11903 #define HAVE_OPENAL 1
11904 _ACEOF
11905
11906 fi
11907 fi
11908 if test "x$ac_cv_lib_openal" != xyes; then :
11909   case "x$with_openal" in
11910   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11911   xno) ;;
11912   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11913 This is an error since --with-openal was requested." "$LINENO" 5  ;;
11914 esac
11915 fi
11916 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11917
11918 if test "$ac_cv_header_kstat_h" = "yes"
11919 then
11920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11921 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11922 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11923   $as_echo_n "(cached) " >&6
11924 else
11925   ac_check_lib_save_LIBS=$LIBS
11926 LIBS="-lkstat  $LIBS"
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h.  */
11929
11930 /* Override any GCC internal prototype to avoid an error.
11931    Use char because int might match the return type of a GCC
11932    builtin and then its argument prototype would still apply.  */
11933 #ifdef __cplusplus
11934 extern "C"
11935 #endif
11936 char kstat_open ();
11937 int
11938 main ()
11939 {
11940 return kstat_open ();
11941   ;
11942   return 0;
11943 }
11944 _ACEOF
11945 if ac_fn_c_try_link "$LINENO"; then :
11946   ac_cv_lib_kstat_kstat_open=yes
11947 else
11948   ac_cv_lib_kstat_kstat_open=no
11949 fi
11950 rm -f core conftest.err conftest.$ac_objext \
11951     conftest$ac_exeext conftest.$ac_ext
11952 LIBS=$ac_check_lib_save_LIBS
11953 fi
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11955 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11956 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11957
11958 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11959
11960                   LIBKSTAT="-lkstat"
11961
11962 fi
11963
11964 fi
11965
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11967 $as_echo_n "checking for -lodbc... " >&6; }
11968 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11969   $as_echo_n "(cached) " >&6
11970 else
11971   ac_check_soname_save_LIBS=$LIBS
11972 LIBS="-lodbc  $LIBS"
11973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h.  */
11975
11976 /* Override any GCC internal prototype to avoid an error.
11977    Use char because int might match the return type of a GCC
11978    builtin and then its argument prototype would still apply.  */
11979 #ifdef __cplusplus
11980 extern "C"
11981 #endif
11982 char SQLConnect ();
11983 int
11984 main ()
11985 {
11986 return SQLConnect ();
11987   ;
11988   return 0;
11989 }
11990 _ACEOF
11991 if ac_fn_c_try_link "$LINENO"; then :
11992   case "$LIBEXT" in
11993     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11994     dylib) ac_cv_lib_soname_odbc=`otool -L conftest$ac_exeext | grep "libodbc\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libodbc\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11995     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11996   esac
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext \
11999     conftest$ac_exeext conftest.$ac_ext
12000   LIBS=$ac_check_soname_save_LIBS
12001 fi
12002 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12004 $as_echo "not found" >&6; }
12005        cat >>confdefs.h <<_ACEOF
12006 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12007 _ACEOF
12008
12009 else
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12011 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12012
12013 cat >>confdefs.h <<_ACEOF
12014 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12015 _ACEOF
12016
12017
12018 fi
12019
12020 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12021         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12022         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12023         "$ac_cv_header_soundcard_h" != "yes" -a \
12024         "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12025 then
12026     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12027 fi
12028
12029
12030 EXTRACFLAGS=""
12031
12032 if test "x${GCC}" = "xyes"
12033 then
12034   EXTRACFLAGS="-Wall -pipe"
12035
12036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12037 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12038 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
12039   $as_echo_n "(cached) " >&6
12040 else
12041   if test "$cross_compiling" = yes; then :
12042   ac_cv_c_gcc_strength_bug="yes"
12043 else
12044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h.  */
12046 int L[4] = {0,1,2,3};
12047 int
12048 main ()
12049 {
12050 static int Array[3];
12051   unsigned int B = 3;
12052   int i;
12053   for(i=0; i<B; i++) Array[i] = i - 3;
12054   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12055   L[i] = 4;
12056   return (Array[1] != -2 || L[2] != 3)
12057   ;
12058   return 0;
12059 }
12060 _ACEOF
12061 if ac_fn_c_try_run "$LINENO"; then :
12062   ac_cv_c_gcc_strength_bug="no"
12063 else
12064   ac_cv_c_gcc_strength_bug="yes"
12065 fi
12066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12067   conftest.$ac_objext conftest.beam conftest.$ac_ext
12068 fi
12069
12070 fi
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12072 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12073   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12074   then
12075     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12076   fi
12077
12078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12079 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12080 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
12081   $as_echo_n "(cached) " >&6
12082 else
12083   ac_wine_try_cflags_saved=$CFLAGS
12084 CFLAGS="$CFLAGS -fno-builtin"
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h.  */
12087 int main(int argc, char **argv) { return 0; }
12088 _ACEOF
12089 if ac_fn_c_try_link "$LINENO"; then :
12090   ac_cv_cflags__fno_builtin=yes
12091 else
12092   ac_cv_cflags__fno_builtin=no
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext \
12095     conftest$ac_exeext conftest.$ac_ext
12096 CFLAGS=$ac_wine_try_cflags_saved
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12099 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12100 if test $ac_cv_cflags__fno_builtin = yes; then :
12101   BUILTINFLAG="-fno-builtin"
12102
12103 fi
12104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12105 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12106 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
12107   $as_echo_n "(cached) " >&6
12108 else
12109   ac_wine_try_cflags_saved=$CFLAGS
12110 CFLAGS="$CFLAGS -fno-strict-aliasing"
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h.  */
12113 int main(int argc, char **argv) { return 0; }
12114 _ACEOF
12115 if ac_fn_c_try_link "$LINENO"; then :
12116   ac_cv_cflags__fno_strict_aliasing=yes
12117 else
12118   ac_cv_cflags__fno_strict_aliasing=no
12119 fi
12120 rm -f core conftest.err conftest.$ac_objext \
12121     conftest$ac_exeext conftest.$ac_ext
12122 CFLAGS=$ac_wine_try_cflags_saved
12123 fi
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12125 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12126 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12127   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12128 fi
12129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12130 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12131 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
12132   $as_echo_n "(cached) " >&6
12133 else
12134   ac_wine_try_cflags_saved=$CFLAGS
12135 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h.  */
12138 int main(int argc, char **argv) { return 0; }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141   ac_cv_cflags__Wdeclaration_after_statement=yes
12142 else
12143   ac_cv_cflags__Wdeclaration_after_statement=no
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext \
12146     conftest$ac_exeext conftest.$ac_ext
12147 CFLAGS=$ac_wine_try_cflags_saved
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12150 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12151 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12152   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12153 fi
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12155 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12156 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
12157   $as_echo_n "(cached) " >&6
12158 else
12159   ac_wine_try_cflags_saved=$CFLAGS
12160 CFLAGS="$CFLAGS -Wstrict-prototypes"
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h.  */
12163 int main(int argc, char **argv) { return 0; }
12164 _ACEOF
12165 if ac_fn_c_try_link "$LINENO"; then :
12166   ac_cv_cflags__Wstrict_prototypes=yes
12167 else
12168   ac_cv_cflags__Wstrict_prototypes=no
12169 fi
12170 rm -f core conftest.err conftest.$ac_objext \
12171     conftest$ac_exeext conftest.$ac_ext
12172 CFLAGS=$ac_wine_try_cflags_saved
12173 fi
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12175 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12176 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12177   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12178 fi
12179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12180 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12181 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
12182   $as_echo_n "(cached) " >&6
12183 else
12184   ac_wine_try_cflags_saved=$CFLAGS
12185 CFLAGS="$CFLAGS -Wtype-limits"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h.  */
12188 int main(int argc, char **argv) { return 0; }
12189 _ACEOF
12190 if ac_fn_c_try_link "$LINENO"; then :
12191   ac_cv_cflags__Wtype_limits=yes
12192 else
12193   ac_cv_cflags__Wtype_limits=no
12194 fi
12195 rm -f core conftest.err conftest.$ac_objext \
12196     conftest$ac_exeext conftest.$ac_ext
12197 CFLAGS=$ac_wine_try_cflags_saved
12198 fi
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12200 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12201 if test $ac_cv_cflags__Wtype_limits = yes; then :
12202   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12203 fi
12204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12205 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12206 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12207   $as_echo_n "(cached) " >&6
12208 else
12209   ac_wine_try_cflags_saved=$CFLAGS
12210 CFLAGS="$CFLAGS -Wwrite-strings"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h.  */
12213 int main(int argc, char **argv) { return 0; }
12214 _ACEOF
12215 if ac_fn_c_try_link "$LINENO"; then :
12216   ac_cv_cflags__Wwrite_strings=yes
12217 else
12218   ac_cv_cflags__Wwrite_strings=no
12219 fi
12220 rm -f core conftest.err conftest.$ac_objext \
12221     conftest$ac_exeext conftest.$ac_ext
12222 CFLAGS=$ac_wine_try_cflags_saved
12223 fi
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12225 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12226 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12227   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12228 fi
12229
12230     saved_CFLAGS="$CFLAGS"
12231   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12233 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12234 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
12235   $as_echo_n "(cached) " >&6
12236 else
12237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h.  */
12239 #include <string.h>
12240 int
12241 main ()
12242 {
12243
12244   ;
12245   return 0;
12246 }
12247 _ACEOF
12248 if ac_fn_c_try_compile "$LINENO"; then :
12249   ac_cv_c_string_h_warnings=no
12250 else
12251   ac_cv_c_string_h_warnings=yes
12252 fi
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12256 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12257   CFLAGS="$saved_CFLAGS"
12258   if test "$ac_cv_c_string_h_warnings" = "no"
12259   then
12260     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12261   fi
12262
12263     saved_CFLAGS="$CFLAGS"
12264   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12266 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12267 if test "${ac_cv_c_logicalop_noisy+set}" = set; then :
12268   $as_echo_n "(cached) " >&6
12269 else
12270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h.  */
12272 #include <string.h>
12273 int
12274 main ()
12275 {
12276 char*f(const char *h,char n) {return strchr(h,n);}
12277   ;
12278   return 0;
12279 }
12280 _ACEOF
12281 if ac_fn_c_try_compile "$LINENO"; then :
12282   ac_cv_c_logicalop_noisy=no
12283 else
12284   ac_cv_c_logicalop_noisy=yes
12285 fi
12286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12287 fi
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12289 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12290   CFLAGS="$saved_CFLAGS"
12291   if test "$ac_cv_c_logicalop_noisy" = "no"
12292   then
12293     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12294   fi
12295
12296     if test "x$enable_maintainer_mode" = "xyes"
12297   then
12298       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12299 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12300 if test "${ac_cv_cflags__Werror+set}" = set; then :
12301   $as_echo_n "(cached) " >&6
12302 else
12303   ac_wine_try_cflags_saved=$CFLAGS
12304 CFLAGS="$CFLAGS -Werror"
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h.  */
12307 int main(int argc, char **argv) { return 0; }
12308 _ACEOF
12309 if ac_fn_c_try_link "$LINENO"; then :
12310   ac_cv_cflags__Werror=yes
12311 else
12312   ac_cv_cflags__Werror=no
12313 fi
12314 rm -f core conftest.err conftest.$ac_objext \
12315     conftest$ac_exeext conftest.$ac_ext
12316 CFLAGS=$ac_wine_try_cflags_saved
12317 fi
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12319 $as_echo "$ac_cv_cflags__Werror" >&6; }
12320 if test $ac_cv_cflags__Werror = yes; then :
12321   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12322 fi
12323   fi
12324
12325     saved_CFLAGS="$CFLAGS"
12326   CFLAGS="$CFLAGS -Werror"
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12328 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12329 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12330   $as_echo_n "(cached) " >&6
12331 else
12332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h.  */
12334 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12335 int
12336 main ()
12337 {
12338
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 if ac_fn_c_try_compile "$LINENO"; then :
12344   ac_cv_have_ms_hook_prologue="yes"
12345 else
12346   ac_cv_have_ms_hook_prologue="no"
12347 fi
12348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349 fi
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12351 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12352   CFLAGS="$saved_CFLAGS"
12353   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12354   then
12355
12356 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12357
12358   else
12359       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12360
12361   fi
12362 fi
12363
12364
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12366 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12367 if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12368   $as_echo_n "(cached) " >&6
12369 else
12370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h.  */
12372 #include <string.h>
12373 int
12374 main ()
12375 {
12376 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12377 #error Fortify enabled
12378 #endif
12379   ;
12380   return 0;
12381 }
12382 _ACEOF
12383 if ac_fn_c_try_compile "$LINENO"; then :
12384   ac_cv_c_fortify_enabled=no
12385 else
12386   ac_cv_c_fortify_enabled=yes
12387 fi
12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 fi
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12391 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12392 if test "$ac_cv_c_fortify_enabled" = yes
12393 then
12394     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12395 fi
12396
12397
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12399 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12400 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12401   $as_echo_n "(cached) " >&6
12402 else
12403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h.  */
12405 extern int ac_test;
12406 int
12407 main ()
12408 {
12409 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12410   ;
12411   return 0;
12412 }
12413 _ACEOF
12414 if ac_fn_c_try_link "$LINENO"; then :
12415   ac_cv_c_extern_prefix="yes"
12416 else
12417   ac_cv_c_extern_prefix="no"
12418 fi
12419 rm -f core conftest.err conftest.$ac_objext \
12420     conftest$ac_exeext conftest.$ac_ext
12421 fi
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12423 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12424
12425 case $host_cpu in
12426   *i[3456789]86*)
12427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12428 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12429 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12430   $as_echo_n "(cached) " >&6
12431 else
12432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h.  */
12434 #ifndef _MSC_VER
12435 #define __stdcall __attribute__((__stdcall__))
12436 #endif
12437 int __stdcall ac_test(int i) { return i; }
12438 int
12439 main ()
12440 {
12441 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12442   ;
12443   return 0;
12444 }
12445 _ACEOF
12446 if ac_fn_c_try_link "$LINENO"; then :
12447   ac_cv_c_stdcall_suffix="yes"
12448 else
12449   ac_cv_c_stdcall_suffix="no"
12450 fi
12451 rm -f core conftest.err conftest.$ac_objext \
12452     conftest$ac_exeext conftest.$ac_ext
12453 fi
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12455 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12456   *) ac_cv_c_stdcall_suffix="no" ;;
12457 esac
12458
12459
12460 if test "$ac_cv_c_extern_prefix" = "yes"
12461 then
12462     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12463
12464     asm_name_prefix="_"
12465 else
12466     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12467
12468     asm_name_prefix=""
12469 fi
12470
12471
12472 if test "$ac_cv_c_stdcall_suffix" = "yes"
12473 then
12474     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12475
12476 else
12477     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12478
12479 fi
12480
12481
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12483 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12484 if test "${ac_cv_asm_func_def+set}" = set; then :
12485   $as_echo_n "(cached) " >&6
12486 else
12487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h.  */
12489
12490 int
12491 main ()
12492 {
12493 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12494   ;
12495   return 0;
12496 }
12497 _ACEOF
12498 if ac_fn_c_try_link "$LINENO"; then :
12499   ac_cv_asm_func_def=".def"
12500 else
12501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h.  */
12503
12504 int
12505 main ()
12506 {
12507 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12508   ;
12509   return 0;
12510 }
12511 _ACEOF
12512 if ac_fn_c_try_link "$LINENO"; then :
12513   ac_cv_asm_func_def=".type @function"
12514 else
12515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h.  */
12517
12518 int
12519 main ()
12520 {
12521 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 if ac_fn_c_try_link "$LINENO"; then :
12527   ac_cv_asm_func_def=".type 2"
12528 else
12529   ac_cv_asm_func_def="unknown"
12530 fi
12531 rm -f core conftest.err conftest.$ac_objext \
12532     conftest$ac_exeext conftest.$ac_ext
12533 fi
12534 rm -f core conftest.err conftest.$ac_objext \
12535     conftest$ac_exeext conftest.$ac_ext
12536 fi
12537 rm -f core conftest.err conftest.$ac_objext \
12538     conftest$ac_exeext conftest.$ac_ext
12539 fi
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12541 $as_echo "$ac_cv_asm_func_def" >&6; }
12542
12543
12544 case "$ac_cv_asm_func_def" in
12545   ".def")
12546      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12547
12548      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12549   ".type @function")
12550      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12551
12552      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12553   ".type 2")
12554      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12555
12556      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12557   *)
12558      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12559
12560      asm_func_header="" ;;
12561 esac
12562
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12564 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12565 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12566   $as_echo_n "(cached) " >&6
12567 else
12568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h.  */
12570 asm(".text\n\t.long 0");
12571 int
12572 main ()
12573 {
12574
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 if ac_fn_c_try_compile "$LINENO"; then :
12580   ac_cv_c_asm_outside_funcs="yes"
12581 else
12582   ac_cv_c_asm_outside_funcs="no"
12583 fi
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585 fi
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12587 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12588
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12590 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12591 if test "${ac_cv_c_dot_previous+set}" = set; then :
12592   $as_echo_n "(cached) " >&6
12593 else
12594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h.  */
12596
12597 int
12598 main ()
12599 {
12600 asm(".text\nac_test:\t.long 0\n\t.previous");
12601   ;
12602   return 0;
12603 }
12604 _ACEOF
12605 if ac_fn_c_try_link "$LINENO"; then :
12606   ac_cv_c_dot_previous="yes"
12607 else
12608   ac_cv_c_dot_previous="no"
12609 fi
12610 rm -f core conftest.err conftest.$ac_objext \
12611     conftest$ac_exeext conftest.$ac_ext
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12614 $as_echo "$ac_cv_c_dot_previous" >&6; }
12615
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12617 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12618 if test "${ac_cv_c_cfi_support+set}" = set; then :
12619   $as_echo_n "(cached) " >&6
12620 else
12621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h.  */
12623 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12624 int
12625 main ()
12626 {
12627
12628   ;
12629   return 0;
12630 }
12631 _ACEOF
12632 if ac_fn_c_try_compile "$LINENO"; then :
12633   ac_cv_c_cfi_support="yes"
12634 else
12635   ac_cv_c_cfi_support="no"
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638 fi
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12640 $as_echo "$ac_cv_c_cfi_support" >&6; }
12641
12642 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12643 asm_func_trailer=""
12644 if test "$ac_cv_c_dot_previous" = "yes"
12645 then
12646    asm_func_trailer="\\n\\t.previous"
12647 fi
12648 if test "$ac_cv_c_cfi_support" = "yes"
12649 then
12650    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12651    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12652
12653 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12654
12655    UNWINDFLAGS=-fasynchronous-unwind-tables
12656
12657 else
12658    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12659
12660 fi
12661
12662 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12663
12664
12665 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12666 then
12667     cat >>confdefs.h <<_ACEOF
12668 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12669 _ACEOF
12670
12671 else
12672     cat >>confdefs.h <<_ACEOF
12673 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12674 _ACEOF
12675
12676 fi
12677
12678 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12679
12680
12681 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12682
12683
12684
12685 LDPATH=""
12686
12687 case $build_os in
12688   cygwin*|mingw32*)
12689     TOOLSEXT=".exe"
12690
12691     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12692     ;;
12693   darwin*|macosx*)
12694     ;;
12695   *)
12696     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12697     ;;
12698 esac
12699
12700 case $host_os in
12701   mingw32*)
12702     CRTLIBS="-lmsvcrt"
12703
12704     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12705
12706     ;;
12707 esac
12708
12709 MAIN_BINARY="wine"
12710
12711 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12712
12713 case $host_os in
12714   linux*)
12715     case $host_cpu in
12716       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12717  ;;
12718       x86_64*) EXTRA_BINARIES="wine64-preloader"
12719  ;;
12720     esac
12721     ;;
12722 esac
12723
12724
12725 ac_save_CFLAGS="$CFLAGS"
12726 CFLAGS="$CFLAGS $BUILTINFLAG"
12727 for ac_func in \
12728         _pclose \
12729         _popen \
12730         _snprintf \
12731         _spawnvp \
12732         _strdup \
12733         _stricmp \
12734         _strnicmp \
12735         _strtoi64 \
12736         _strtoui64 \
12737         _vsnprintf \
12738         asctime_r \
12739         chsize \
12740         dlopen \
12741         epoll_create \
12742         ffs \
12743         finite \
12744         fnmatch \
12745         fork \
12746         fpclass \
12747         fstatfs \
12748         fstatvfs \
12749         ftruncate \
12750         futimes \
12751         futimesat \
12752         getdirentries \
12753         getopt_long \
12754         getpagesize \
12755         getpwuid \
12756         gettimeofday \
12757         getuid \
12758         kqueue \
12759         lstat \
12760         memmove \
12761         mmap \
12762         pclose \
12763         pipe2 \
12764         poll \
12765         popen \
12766         port_create \
12767         prctl \
12768         pread \
12769         pwrite \
12770         readdir \
12771         readlink \
12772         sched_setaffinity \
12773         sched_yield \
12774         select \
12775         setproctitle \
12776         setrlimit \
12777         settimeofday \
12778         sigaltstack \
12779         sigprocmask \
12780         snprintf \
12781         spawnvp \
12782         statfs \
12783         statvfs \
12784         strcasecmp \
12785         strdup \
12786         strerror \
12787         strncasecmp \
12788         strtold \
12789         strtoll \
12790         strtoull \
12791         symlink \
12792         tcgetattr \
12793         thr_kill2 \
12794         timegm \
12795         usleep \
12796         vsnprintf \
12797         wait4 \
12798         waitpid \
12799
12800 do :
12801   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12802 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12803 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12804   cat >>confdefs.h <<_ACEOF
12805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12806 _ACEOF
12807
12808 fi
12809 done
12810
12811 CFLAGS="$ac_save_CFLAGS"
12812
12813 if test "$ac_cv_func_dlopen" = no
12814 then
12815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12816 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12817 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12818   $as_echo_n "(cached) " >&6
12819 else
12820   ac_check_lib_save_LIBS=$LIBS
12821 LIBS="-ldl  $LIBS"
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h.  */
12824
12825 /* Override any GCC internal prototype to avoid an error.
12826    Use char because int might match the return type of a GCC
12827    builtin and then its argument prototype would still apply.  */
12828 #ifdef __cplusplus
12829 extern "C"
12830 #endif
12831 char dlopen ();
12832 int
12833 main ()
12834 {
12835 return dlopen ();
12836   ;
12837   return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_link "$LINENO"; then :
12841   ac_cv_lib_dl_dlopen=yes
12842 else
12843   ac_cv_lib_dl_dlopen=no
12844 fi
12845 rm -f core conftest.err conftest.$ac_objext \
12846     conftest$ac_exeext conftest.$ac_ext
12847 LIBS=$ac_check_lib_save_LIBS
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12850 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12851 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12852   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12853  LIBDL="-ldl"
12854
12855 fi
12856
12857 fi
12858 ac_wine_check_funcs_save_LIBS="$LIBS"
12859 LIBS="$LIBS $LIBDL"
12860 for ac_func in dladdr
12861 do :
12862   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12863 if test "x$ac_cv_func_dladdr" = x""yes; then :
12864   cat >>confdefs.h <<_ACEOF
12865 #define HAVE_DLADDR 1
12866 _ACEOF
12867
12868 fi
12869 done
12870
12871 LIBS="$ac_wine_check_funcs_save_LIBS"
12872
12873 if test "$ac_cv_func_poll" = no
12874 then
12875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12876 $as_echo_n "checking for poll in -lpoll... " >&6; }
12877 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12878   $as_echo_n "(cached) " >&6
12879 else
12880   ac_check_lib_save_LIBS=$LIBS
12881 LIBS="-lpoll  $LIBS"
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h.  */
12884
12885 /* Override any GCC internal prototype to avoid an error.
12886    Use char because int might match the return type of a GCC
12887    builtin and then its argument prototype would still apply.  */
12888 #ifdef __cplusplus
12889 extern "C"
12890 #endif
12891 char poll ();
12892 int
12893 main ()
12894 {
12895 return poll ();
12896   ;
12897   return 0;
12898 }
12899 _ACEOF
12900 if ac_fn_c_try_link "$LINENO"; then :
12901   ac_cv_lib_poll_poll=yes
12902 else
12903   ac_cv_lib_poll_poll=no
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext \
12906     conftest$ac_exeext conftest.$ac_ext
12907 LIBS=$ac_check_lib_save_LIBS
12908 fi
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12910 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12911 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12912   $as_echo "#define HAVE_POLL 1" >>confdefs.h
12913  LIBPOLL="-lpoll"
12914
12915 fi
12916
12917 fi
12918
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12920 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12921 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12922   $as_echo_n "(cached) " >&6
12923 else
12924   ac_func_search_save_LIBS=$LIBS
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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 gethostbyname ();
12935 int
12936 main ()
12937 {
12938 return gethostbyname ();
12939   ;
12940   return 0;
12941 }
12942 _ACEOF
12943 for ac_lib in '' nsl; do
12944   if test -z "$ac_lib"; then
12945     ac_res="none required"
12946   else
12947     ac_res=-l$ac_lib
12948     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12949   fi
12950   if ac_fn_c_try_link "$LINENO"; then :
12951   ac_cv_search_gethostbyname=$ac_res
12952 fi
12953 rm -f core conftest.err conftest.$ac_objext \
12954     conftest$ac_exeext
12955   if test "${ac_cv_search_gethostbyname+set}" = set; then :
12956   break
12957 fi
12958 done
12959 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12960
12961 else
12962   ac_cv_search_gethostbyname=no
12963 fi
12964 rm conftest.$ac_ext
12965 LIBS=$ac_func_search_save_LIBS
12966 fi
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12968 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12969 ac_res=$ac_cv_search_gethostbyname
12970 if test "$ac_res" != no; then :
12971   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12972
12973 fi
12974
12975
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12977 $as_echo_n "checking for library containing connect... " >&6; }
12978 if test "${ac_cv_search_connect+set}" = set; then :
12979   $as_echo_n "(cached) " >&6
12980 else
12981   ac_func_search_save_LIBS=$LIBS
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h.  */
12984
12985 /* Override any GCC internal prototype to avoid an error.
12986    Use char because int might match the return type of a GCC
12987    builtin and then its argument prototype would still apply.  */
12988 #ifdef __cplusplus
12989 extern "C"
12990 #endif
12991 char connect ();
12992 int
12993 main ()
12994 {
12995 return connect ();
12996   ;
12997   return 0;
12998 }
12999 _ACEOF
13000 for ac_lib in '' socket; do
13001   if test -z "$ac_lib"; then
13002     ac_res="none required"
13003   else
13004     ac_res=-l$ac_lib
13005     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13006   fi
13007   if ac_fn_c_try_link "$LINENO"; then :
13008   ac_cv_search_connect=$ac_res
13009 fi
13010 rm -f core conftest.err conftest.$ac_objext \
13011     conftest$ac_exeext
13012   if test "${ac_cv_search_connect+set}" = set; then :
13013   break
13014 fi
13015 done
13016 if test "${ac_cv_search_connect+set}" = set; then :
13017
13018 else
13019   ac_cv_search_connect=no
13020 fi
13021 rm conftest.$ac_ext
13022 LIBS=$ac_func_search_save_LIBS
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13025 $as_echo "$ac_cv_search_connect" >&6; }
13026 ac_res=$ac_cv_search_connect
13027 if test "$ac_res" != no; then :
13028   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13029
13030 fi
13031
13032
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13034 $as_echo_n "checking for library containing inet_aton... " >&6; }
13035 if test "${ac_cv_search_inet_aton+set}" = set; then :
13036   $as_echo_n "(cached) " >&6
13037 else
13038   ac_func_search_save_LIBS=$LIBS
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h.  */
13041
13042 /* Override any GCC internal prototype to avoid an error.
13043    Use char because int might match the return type of a GCC
13044    builtin and then its argument prototype would still apply.  */
13045 #ifdef __cplusplus
13046 extern "C"
13047 #endif
13048 char inet_aton ();
13049 int
13050 main ()
13051 {
13052 return inet_aton ();
13053   ;
13054   return 0;
13055 }
13056 _ACEOF
13057 for ac_lib in '' resolv; do
13058   if test -z "$ac_lib"; then
13059     ac_res="none required"
13060   else
13061     ac_res=-l$ac_lib
13062     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13063   fi
13064   if ac_fn_c_try_link "$LINENO"; then :
13065   ac_cv_search_inet_aton=$ac_res
13066 fi
13067 rm -f core conftest.err conftest.$ac_objext \
13068     conftest$ac_exeext
13069   if test "${ac_cv_search_inet_aton+set}" = set; then :
13070   break
13071 fi
13072 done
13073 if test "${ac_cv_search_inet_aton+set}" = set; then :
13074
13075 else
13076   ac_cv_search_inet_aton=no
13077 fi
13078 rm conftest.$ac_ext
13079 LIBS=$ac_func_search_save_LIBS
13080 fi
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13082 $as_echo "$ac_cv_search_inet_aton" >&6; }
13083 ac_res=$ac_cv_search_inet_aton
13084 if test "$ac_res" != no; then :
13085   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13086
13087 fi
13088
13089
13090 for ac_func in \
13091         getaddrinfo \
13092         getnameinfo \
13093         getnetbyname \
13094         getprotobyname \
13095         getprotobynumber \
13096         getservbyport \
13097         inet_network \
13098         inet_ntop \
13099         inet_pton \
13100         sendmsg \
13101         socketpair \
13102
13103 do :
13104   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13105 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13106 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13107   cat >>confdefs.h <<_ACEOF
13108 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13109 _ACEOF
13110
13111 fi
13112 done
13113
13114
13115 LDAPLIBS=""
13116
13117 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13118 then
13119     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13120 "
13121 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
13122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13123 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13124 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
13125   $as_echo_n "(cached) " >&6
13126 else
13127   ac_check_lib_save_LIBS=$LIBS
13128 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h.  */
13131
13132 /* Override any GCC internal prototype to avoid an error.
13133    Use char because int might match the return type of a GCC
13134    builtin and then its argument prototype would still apply.  */
13135 #ifdef __cplusplus
13136 extern "C"
13137 #endif
13138 char ldap_initialize ();
13139 int
13140 main ()
13141 {
13142 return ldap_initialize ();
13143   ;
13144   return 0;
13145 }
13146 _ACEOF
13147 if ac_fn_c_try_link "$LINENO"; then :
13148   ac_cv_lib_ldap_r_ldap_initialize=yes
13149 else
13150   ac_cv_lib_ldap_r_ldap_initialize=no
13151 fi
13152 rm -f core conftest.err conftest.$ac_objext \
13153     conftest$ac_exeext conftest.$ac_ext
13154 LIBS=$ac_check_lib_save_LIBS
13155 fi
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13157 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13158 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13160 $as_echo_n "checking for ber_init in -llber... " >&6; }
13161 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
13162   $as_echo_n "(cached) " >&6
13163 else
13164   ac_check_lib_save_LIBS=$LIBS
13165 LIBS="-llber $LIBPTHREAD $LIBS"
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h.  */
13168
13169 /* Override any GCC internal prototype to avoid an error.
13170    Use char because int might match the return type of a GCC
13171    builtin and then its argument prototype would still apply.  */
13172 #ifdef __cplusplus
13173 extern "C"
13174 #endif
13175 char ber_init ();
13176 int
13177 main ()
13178 {
13179 return ber_init ();
13180   ;
13181   return 0;
13182 }
13183 _ACEOF
13184 if ac_fn_c_try_link "$LINENO"; then :
13185   ac_cv_lib_lber_ber_init=yes
13186 else
13187   ac_cv_lib_lber_ber_init=no
13188 fi
13189 rm -f core conftest.err conftest.$ac_objext \
13190     conftest$ac_exeext conftest.$ac_ext
13191 LIBS=$ac_check_lib_save_LIBS
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13194 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13195 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
13196
13197 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13198
13199                  LDAPLIBS="-lldap_r -llber"
13200 fi
13201
13202 fi
13203
13204 fi
13205
13206     ac_wine_check_funcs_save_LIBS="$LIBS"
13207 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13208 for ac_func in \
13209         ldap_count_references \
13210         ldap_first_reference \
13211         ldap_next_reference \
13212         ldap_parse_reference \
13213         ldap_parse_sort_control \
13214         ldap_parse_sortresponse_control \
13215         ldap_parse_vlv_control \
13216         ldap_parse_vlvresponse_control
13217 do :
13218   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13220 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13221   cat >>confdefs.h <<_ACEOF
13222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13223 _ACEOF
13224
13225 fi
13226 done
13227
13228 LIBS="$ac_wine_check_funcs_save_LIBS"
13229 fi
13230 if test "x$LDAPLIBS" = "x"; then :
13231   case "x$with_ldap" in
13232   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13233   xno) ;;
13234   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13235 This is an error since --with-ldap was requested." "$LINENO" 5  ;;
13236 esac
13237 fi
13238
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13240 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13241 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
13242   $as_echo_n "(cached) " >&6
13243 else
13244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h.  */
13246 #include <sys/stat.h>
13247 int
13248 main ()
13249 {
13250 mkdir("foo");
13251   ;
13252   return 0;
13253 }
13254 _ACEOF
13255 if ac_fn_c_try_compile "$LINENO"; then :
13256   wine_cv_one_arg_mkdir=yes
13257 else
13258   wine_cv_one_arg_mkdir=no
13259 fi
13260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13261 fi
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13263 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13264 if test "$wine_cv_one_arg_mkdir" = "yes"
13265 then
13266
13267 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13268
13269 fi
13270
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13273 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13274 if test "${ac_cv_c_const+set}" = set; then :
13275   $as_echo_n "(cached) " >&6
13276 else
13277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h.  */
13279
13280 int
13281 main ()
13282 {
13283 /* FIXME: Include the comments suggested by Paul. */
13284 #ifndef __cplusplus
13285   /* Ultrix mips cc rejects this.  */
13286   typedef int charset[2];
13287   const charset cs;
13288   /* SunOS 4.1.1 cc rejects this.  */
13289   char const *const *pcpcc;
13290   char **ppc;
13291   /* NEC SVR4.0.2 mips cc rejects this.  */
13292   struct point {int x, y;};
13293   static struct point const zero = {0,0};
13294   /* AIX XL C 1.02.0.0 rejects this.
13295      It does not let you subtract one const X* pointer from another in
13296      an arm of an if-expression whose if-part is not a constant
13297      expression */
13298   const char *g = "string";
13299   pcpcc = &g + (g ? g-g : 0);
13300   /* HPUX 7.0 cc rejects these. */
13301   ++pcpcc;
13302   ppc = (char**) pcpcc;
13303   pcpcc = (char const *const *) ppc;
13304   { /* SCO 3.2v4 cc rejects this.  */
13305     char *t;
13306     char const *s = 0 ? (char *) 0 : (char const *) 0;
13307
13308     *t++ = 0;
13309     if (s) return 0;
13310   }
13311   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13312     int x[] = {25, 17};
13313     const int *foo = &x[0];
13314     ++foo;
13315   }
13316   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13317     typedef const int *iptr;
13318     iptr p = 0;
13319     ++p;
13320   }
13321   { /* AIX XL C 1.02.0.0 rejects this saying
13322        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13323     struct s { int j; const int *ap[3]; };
13324     struct s *b; b->j = 5;
13325   }
13326   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13327     const int foo = 10;
13328     if (!foo) return 0;
13329   }
13330   return !cs[0] && !zero.x;
13331 #endif
13332
13333   ;
13334   return 0;
13335 }
13336 _ACEOF
13337 if ac_fn_c_try_compile "$LINENO"; then :
13338   ac_cv_c_const=yes
13339 else
13340   ac_cv_c_const=no
13341 fi
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 fi
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13345 $as_echo "$ac_cv_c_const" >&6; }
13346 if test $ac_cv_c_const = no; then
13347
13348 $as_echo "#define const /**/" >>confdefs.h
13349
13350 fi
13351
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13353 $as_echo_n "checking for inline... " >&6; }
13354 if test "${ac_cv_c_inline+set}" = set; then :
13355   $as_echo_n "(cached) " >&6
13356 else
13357   ac_cv_c_inline=no
13358 for ac_kw in inline __inline__ __inline; do
13359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h.  */
13361 #ifndef __cplusplus
13362 typedef int foo_t;
13363 static $ac_kw foo_t static_foo () {return 0; }
13364 $ac_kw foo_t foo () {return 0; }
13365 #endif
13366
13367 _ACEOF
13368 if ac_fn_c_try_compile "$LINENO"; then :
13369   ac_cv_c_inline=$ac_kw
13370 fi
13371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13372   test "$ac_cv_c_inline" != no && break
13373 done
13374
13375 fi
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13377 $as_echo "$ac_cv_c_inline" >&6; }
13378
13379 case $ac_cv_c_inline in
13380   inline | yes) ;;
13381   *)
13382     case $ac_cv_c_inline in
13383       no) ac_val=;;
13384       *) ac_val=$ac_cv_c_inline;;
13385     esac
13386     cat >>confdefs.h <<_ACEOF
13387 #ifndef __cplusplus
13388 #define inline $ac_val
13389 #endif
13390 _ACEOF
13391     ;;
13392 esac
13393
13394 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13395 if test "x$ac_cv_type_mode_t" = x""yes; then :
13396
13397 cat >>confdefs.h <<_ACEOF
13398 #define HAVE_MODE_T 1
13399 _ACEOF
13400
13401
13402 fi
13403 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13404 if test "x$ac_cv_type_off_t" = x""yes; then :
13405
13406 cat >>confdefs.h <<_ACEOF
13407 #define HAVE_OFF_T 1
13408 _ACEOF
13409
13410
13411 fi
13412 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13413 if test "x$ac_cv_type_pid_t" = x""yes; then :
13414
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_PID_T 1
13417 _ACEOF
13418
13419
13420 fi
13421 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13422 if test "x$ac_cv_type_size_t" = x""yes; then :
13423
13424 cat >>confdefs.h <<_ACEOF
13425 #define HAVE_SIZE_T 1
13426 _ACEOF
13427
13428
13429 fi
13430 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13431 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13432
13433 cat >>confdefs.h <<_ACEOF
13434 #define HAVE_SSIZE_T 1
13435 _ACEOF
13436
13437
13438 fi
13439 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13440 if test "x$ac_cv_type_long_long" = x""yes; then :
13441
13442 cat >>confdefs.h <<_ACEOF
13443 #define HAVE_LONG_LONG 1
13444 _ACEOF
13445
13446
13447 fi
13448 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13449 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13450
13451 cat >>confdefs.h <<_ACEOF
13452 #define HAVE_FSBLKCNT_T 1
13453 _ACEOF
13454
13455
13456 fi
13457 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13458 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13459
13460 cat >>confdefs.h <<_ACEOF
13461 #define HAVE_FSFILCNT_T 1
13462 _ACEOF
13463
13464
13465 fi
13466
13467 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13468 #include <signal.h>
13469 "
13470 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13471
13472 cat >>confdefs.h <<_ACEOF
13473 #define HAVE_SIGSET_T 1
13474 _ACEOF
13475
13476
13477 fi
13478
13479 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13480 "
13481 if test "x$ac_cv_type_request_sense" = x""yes; then :
13482
13483 cat >>confdefs.h <<_ACEOF
13484 #define HAVE_REQUEST_SENSE 1
13485 _ACEOF
13486
13487
13488 fi
13489
13490
13491 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13492 #ifdef HAVE_SYS_SOCKET_H
13493 #include <sys/socket.h>
13494 #endif
13495 #ifdef HAVE_SYS_SOCKETVAR_H
13496 #include <sys/socketvar.h>
13497 #endif
13498 #ifdef HAVE_NET_ROUTE_H
13499 #include <net/route.h>
13500 #endif
13501 #ifdef HAVE_NETINET_IN_H
13502 #include <netinet/in.h>
13503 #endif
13504 #ifdef HAVE_NETINET_IN_SYSTM_H
13505 #include <netinet/in_systm.h>
13506 #endif
13507 #ifdef HAVE_NETINET_IP_H
13508 #include <netinet/ip.h>
13509 #endif
13510 #ifdef HAVE_NETINET_IN_PCB_H
13511 #include <netinet/in_pcb.h>
13512 #endif
13513 "
13514 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13515
13516 cat >>confdefs.h <<_ACEOF
13517 #define HAVE_STRUCT_XINPGEN 1
13518 _ACEOF
13519
13520
13521 fi
13522
13523
13524 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13525 #include <linux/input.h>
13526 #endif
13527 "
13528 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13529
13530 cat >>confdefs.h <<_ACEOF
13531 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13532 _ACEOF
13533
13534
13535 fi
13536
13537
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13539 $as_echo_n "checking for sigaddset... " >&6; }
13540 if test "${wine_cv_have_sigaddset+set}" = set; then :
13541   $as_echo_n "(cached) " >&6
13542 else
13543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h.  */
13545 #include <signal.h>
13546 int
13547 main ()
13548 {
13549 sigset_t set; sigaddset(&set,SIGTERM);
13550   ;
13551   return 0;
13552 }
13553 _ACEOF
13554 if ac_fn_c_try_link "$LINENO"; then :
13555   wine_cv_have_sigaddset=yes
13556 else
13557   wine_cv_have_sigaddset=no
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext \
13560     conftest$ac_exeext conftest.$ac_ext
13561 fi
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13563 $as_echo "$wine_cv_have_sigaddset" >&6; }
13564 if test "$wine_cv_have_sigaddset" = "yes"
13565 then
13566
13567 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13568
13569 fi
13570
13571
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13573 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13574 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13575   $as_echo_n "(cached) " >&6
13576 else
13577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h.  */
13579 #include <netdb.h>
13580 int
13581 main ()
13582 {
13583
13584     char *name=0;
13585     struct hostent he;
13586     struct hostent *result;
13587     char *buf=0;
13588     int bufsize=0;
13589     int res,errnr;
13590     char *addr=0;
13591     int addrlen=0;
13592     int addrtype=0;
13593     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13594     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13595
13596   ;
13597   return 0;
13598 }
13599 _ACEOF
13600 if ac_fn_c_try_link "$LINENO"; then :
13601   wine_cv_linux_gethostbyname_r_6=yes
13602 else
13603   wine_cv_linux_gethostbyname_r_6=no
13604
13605 fi
13606 rm -f core conftest.err conftest.$ac_objext \
13607     conftest$ac_exeext conftest.$ac_ext
13608
13609 fi
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13611 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13612    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13613    then
13614
13615 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13616
13617    fi
13618
13619 if test "$ac_cv_header_linux_joystick_h" = "yes"
13620 then
13621    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13622 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13623 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13624   $as_echo_n "(cached) " >&6
13625 else
13626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h.  */
13628
13629         #include <sys/ioctl.h>
13630         #include <sys/types.h>
13631         #include <linux/joystick.h>
13632
13633         struct js_event blub;
13634         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13635         #error "no 2.2 header"
13636         #endif
13637
13638 int
13639 main ()
13640 {
13641 /*empty*/
13642   ;
13643   return 0;
13644 }
13645 _ACEOF
13646 if ac_fn_c_try_compile "$LINENO"; then :
13647   wine_cv_linux_joystick_22_api=yes
13648 else
13649   wine_cv_linux_joystick_22_api=no
13650 fi
13651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13655 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13656    if test "$wine_cv_linux_joystick_22_api" = "yes"
13657    then
13658
13659 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13660
13661    fi
13662 fi
13663
13664
13665 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13666 #ifdef HAVE_SYS_PARAM_H
13667 # include <sys/param.h>
13668 #endif
13669 #ifdef HAVE_SYS_MOUNT_H
13670 # include <sys/mount.h>
13671 #endif
13672 #ifdef HAVE_SYS_VFS_H
13673 # include <sys/vfs.h>
13674 #endif
13675 #ifdef HAVE_SYS_STATFS_H
13676 # include <sys/statfs.h>
13677 #endif
13678 "
13679 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13680
13681 cat >>confdefs.h <<_ACEOF
13682 #define HAVE_STRUCT_STATFS_F_BFREE 1
13683 _ACEOF
13684
13685
13686 fi
13687 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13688 #ifdef HAVE_SYS_PARAM_H
13689 # include <sys/param.h>
13690 #endif
13691 #ifdef HAVE_SYS_MOUNT_H
13692 # include <sys/mount.h>
13693 #endif
13694 #ifdef HAVE_SYS_VFS_H
13695 # include <sys/vfs.h>
13696 #endif
13697 #ifdef HAVE_SYS_STATFS_H
13698 # include <sys/statfs.h>
13699 #endif
13700 "
13701 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13702
13703 cat >>confdefs.h <<_ACEOF
13704 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13705 _ACEOF
13706
13707
13708 fi
13709 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13710 #ifdef HAVE_SYS_PARAM_H
13711 # include <sys/param.h>
13712 #endif
13713 #ifdef HAVE_SYS_MOUNT_H
13714 # include <sys/mount.h>
13715 #endif
13716 #ifdef HAVE_SYS_VFS_H
13717 # include <sys/vfs.h>
13718 #endif
13719 #ifdef HAVE_SYS_STATFS_H
13720 # include <sys/statfs.h>
13721 #endif
13722 "
13723 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13724
13725 cat >>confdefs.h <<_ACEOF
13726 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13727 _ACEOF
13728
13729
13730 fi
13731 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13732 #ifdef HAVE_SYS_PARAM_H
13733 # include <sys/param.h>
13734 #endif
13735 #ifdef HAVE_SYS_MOUNT_H
13736 # include <sys/mount.h>
13737 #endif
13738 #ifdef HAVE_SYS_VFS_H
13739 # include <sys/vfs.h>
13740 #endif
13741 #ifdef HAVE_SYS_STATFS_H
13742 # include <sys/statfs.h>
13743 #endif
13744 "
13745 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13746
13747 cat >>confdefs.h <<_ACEOF
13748 #define HAVE_STRUCT_STATFS_F_FFREE 1
13749 _ACEOF
13750
13751
13752 fi
13753 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13754 #ifdef HAVE_SYS_PARAM_H
13755 # include <sys/param.h>
13756 #endif
13757 #ifdef HAVE_SYS_MOUNT_H
13758 # include <sys/mount.h>
13759 #endif
13760 #ifdef HAVE_SYS_VFS_H
13761 # include <sys/vfs.h>
13762 #endif
13763 #ifdef HAVE_SYS_STATFS_H
13764 # include <sys/statfs.h>
13765 #endif
13766 "
13767 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13768
13769 cat >>confdefs.h <<_ACEOF
13770 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13771 _ACEOF
13772
13773
13774 fi
13775 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13776 #ifdef HAVE_SYS_PARAM_H
13777 # include <sys/param.h>
13778 #endif
13779 #ifdef HAVE_SYS_MOUNT_H
13780 # include <sys/mount.h>
13781 #endif
13782 #ifdef HAVE_SYS_VFS_H
13783 # include <sys/vfs.h>
13784 #endif
13785 #ifdef HAVE_SYS_STATFS_H
13786 # include <sys/statfs.h>
13787 #endif
13788 "
13789 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13790
13791 cat >>confdefs.h <<_ACEOF
13792 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13793 _ACEOF
13794
13795
13796 fi
13797
13798
13799 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13800 #include <sys/statvfs.h>
13801 #endif
13802 "
13803 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13804
13805 cat >>confdefs.h <<_ACEOF
13806 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13807 _ACEOF
13808
13809
13810 fi
13811
13812
13813 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13814 #ifdef HAVE_SYS_SOCKET_H
13815 # include <sys/socket.h>
13816 #endif
13817 #ifdef HAVE_SYS_UN_H
13818 # include <sys/un.h>
13819 #endif
13820 "
13821 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13822
13823 cat >>confdefs.h <<_ACEOF
13824 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13825 _ACEOF
13826
13827
13828 fi
13829 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13830 #ifdef HAVE_SYS_SOCKET_H
13831 # include <sys/socket.h>
13832 #endif
13833 #ifdef HAVE_SYS_UN_H
13834 # include <sys/un.h>
13835 #endif
13836 "
13837 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13838
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13841 _ACEOF
13842
13843
13844 fi
13845 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13846 #ifdef HAVE_SYS_SOCKET_H
13847 # include <sys/socket.h>
13848 #endif
13849 #ifdef HAVE_SYS_UN_H
13850 # include <sys/un.h>
13851 #endif
13852 "
13853 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13854
13855 cat >>confdefs.h <<_ACEOF
13856 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13857 _ACEOF
13858
13859
13860 fi
13861
13862
13863 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13864 #ifdef HAVE_SCSI_SG_H
13865 #include <scsi/sg.h>
13866 #endif
13867 "
13868 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13869
13870 cat >>confdefs.h <<_ACEOF
13871 #define HAVE_SCSIREQ_T_CMD 1
13872 _ACEOF
13873
13874
13875 fi
13876 ac_fn_c_check_member "$LINENO" "sg_io_hdr_t" "interface_id" "ac_cv_member_sg_io_hdr_t_interface_id" "#include <sys/types.h>
13877 #ifdef HAVE_SCSI_SG_H
13878 #include <scsi/sg.h>
13879 #endif
13880 "
13881 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13882
13883 cat >>confdefs.h <<_ACEOF
13884 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13885 _ACEOF
13886
13887
13888 fi
13889
13890
13891 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13892 "
13893 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13894
13895 cat >>confdefs.h <<_ACEOF
13896 #define HAVE_SIGINFO_T_SI_FD 1
13897 _ACEOF
13898
13899
13900 fi
13901
13902
13903 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13904 #ifdef HAVE_SYS_MTIO_H
13905 #include <sys/mtio.h>
13906 #endif
13907 "
13908 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13909
13910 cat >>confdefs.h <<_ACEOF
13911 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13912 _ACEOF
13913
13914
13915 fi
13916 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13917 #ifdef HAVE_SYS_MTIO_H
13918 #include <sys/mtio.h>
13919 #endif
13920 "
13921 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13922
13923 cat >>confdefs.h <<_ACEOF
13924 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13925 _ACEOF
13926
13927
13928 fi
13929 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13930 #ifdef HAVE_SYS_MTIO_H
13931 #include <sys/mtio.h>
13932 #endif
13933 "
13934 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13935
13936 cat >>confdefs.h <<_ACEOF
13937 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13938 _ACEOF
13939
13940
13941 fi
13942
13943
13944 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13945 #include <getopt.h>
13946 #endif
13947 "
13948 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13949
13950 cat >>confdefs.h <<_ACEOF
13951 #define HAVE_STRUCT_OPTION_NAME 1
13952 _ACEOF
13953
13954
13955 fi
13956
13957
13958 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13959 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13960
13961 cat >>confdefs.h <<_ACEOF
13962 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13963 _ACEOF
13964
13965
13966 fi
13967 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13968 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13969
13970 cat >>confdefs.h <<_ACEOF
13971 #define HAVE_STRUCT_STAT_ST_MTIM 1
13972 _ACEOF
13973
13974
13975 fi
13976 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13977 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13978
13979 cat >>confdefs.h <<_ACEOF
13980 #define HAVE_STRUCT_STAT_ST_CTIM 1
13981 _ACEOF
13982
13983
13984 fi
13985 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13986 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
13987
13988 cat >>confdefs.h <<_ACEOF
13989 #define HAVE_STRUCT_STAT_ST_ATIM 1
13990 _ACEOF
13991
13992
13993 fi
13994
13995
13996 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#ifdef HAVE_SYS_TYPES_H
13997 #include <sys/types.h>
13998 #endif
13999 #ifdef HAVE_NETINET_IN_H
14000 #include <netinet/in.h>
14001 #endif
14002 "
14003 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
14004
14005 cat >>confdefs.h <<_ACEOF
14006 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14007 _ACEOF
14008
14009
14010 fi
14011
14012
14013 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14014 #include <sys/types.h>
14015 #endif
14016 #ifdef HAVE_NETINET_IN_H
14017 # include <netinet/in.h>
14018 #endif
14019 #ifdef HAVE_ARPA_NAMESER_H
14020 # include <arpa/nameser.h>
14021 #endif
14022 "
14023 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
14024
14025 cat >>confdefs.h <<_ACEOF
14026 #define HAVE_NS_MSG__MSG_PTR 1
14027 _ACEOF
14028
14029
14030 fi
14031
14032
14033 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14034 #include <sys/types.h>
14035 #endif
14036 #ifdef HAVE_ALIAS_H
14037 #include <alias.h>
14038 #endif
14039 #ifdef HAVE_SYS_SOCKET_H
14040 #include <sys/socket.h>
14041 #endif
14042 #ifdef HAVE_SYS_SOCKETVAR_H
14043 #include <sys/socketvar.h>
14044 #endif
14045 #ifdef HAVE_SYS_TIMEOUT_H
14046 #include <sys/timeout.h>
14047 #endif
14048 #ifdef HAVE_NETINET_IN_H
14049 #include <netinet/in.h>
14050 #endif
14051 #ifdef HAVE_NETINET_IN_SYSTM_H
14052 #include <netinet/in_systm.h>
14053 #endif
14054 #ifdef HAVE_NETINET_IP_H
14055 #include <netinet/ip.h>
14056 #endif
14057 #ifdef HAVE_NETINET_IP_VAR_H
14058 #include <netinet/ip_var.h>
14059 #endif
14060 #ifdef HAVE_NETINET_IP_ICMP_H
14061 #include <netinet/ip_icmp.h>
14062 #endif
14063 #ifdef HAVE_NETINET_ICMP_VAR
14064 #include <netinet/icmp_var.h>
14065 #endif
14066 "
14067 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
14068
14069 cat >>confdefs.h <<_ACEOF
14070 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14071 _ACEOF
14072
14073
14074 fi
14075
14076
14077 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14078 #include <sys/types.h>
14079 #endif
14080 #ifdef HAVE_NET_IF_H
14081 # include <net/if.h>
14082 #endif
14083 "
14084 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
14085
14086 cat >>confdefs.h <<_ACEOF
14087 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14088 _ACEOF
14089
14090
14091 fi
14092
14093
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14095 $as_echo_n "checking for timezone variable... " >&6; }
14096 if test "${ac_cv_have_timezone+set}" = set; then :
14097   $as_echo_n "(cached) " >&6
14098 else
14099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h.  */
14101 #include <time.h>
14102 int
14103 main ()
14104 {
14105 timezone = 1
14106   ;
14107   return 0;
14108 }
14109 _ACEOF
14110 if ac_fn_c_try_link "$LINENO"; then :
14111   ac_cv_have_timezone="yes"
14112 else
14113   ac_cv_have_timezone="no"
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext \
14116     conftest$ac_exeext conftest.$ac_ext
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14119 $as_echo "$ac_cv_have_timezone" >&6; }
14120 if test "$ac_cv_have_timezone" = "yes"
14121 then
14122
14123 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14124
14125 fi
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14127 $as_echo_n "checking for daylight variable... " >&6; }
14128 if test "${ac_cv_have_daylight+set}" = set; then :
14129   $as_echo_n "(cached) " >&6
14130 else
14131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h.  */
14133 #include <time.h>
14134 int
14135 main ()
14136 {
14137 daylight = 1
14138   ;
14139   return 0;
14140 }
14141 _ACEOF
14142 if ac_fn_c_try_link "$LINENO"; then :
14143   ac_cv_have_daylight="yes"
14144 else
14145   ac_cv_have_daylight="no"
14146 fi
14147 rm -f core conftest.err conftest.$ac_objext \
14148     conftest$ac_exeext conftest.$ac_ext
14149 fi
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14151 $as_echo "$ac_cv_have_daylight" >&6; }
14152 if test "$ac_cv_have_daylight" = "yes"
14153 then
14154
14155 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14156
14157 fi
14158
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14160 $as_echo_n "checking for isinf... " >&6; }
14161 if test "${ac_cv_have_isinf+set}" = set; then :
14162   $as_echo_n "(cached) " >&6
14163 else
14164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h.  */
14166 #include <math.h>
14167 int
14168 main ()
14169 {
14170 float f = 0.0; int i=isinf(f)
14171   ;
14172   return 0;
14173 }
14174 _ACEOF
14175 if ac_fn_c_try_link "$LINENO"; then :
14176   ac_cv_have_isinf="yes"
14177 else
14178   ac_cv_have_isinf="no"
14179 fi
14180 rm -f core conftest.err conftest.$ac_objext \
14181     conftest$ac_exeext conftest.$ac_ext
14182 fi
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14184 $as_echo "$ac_cv_have_isinf" >&6; }
14185 if test "$ac_cv_have_isinf" = "yes"
14186 then
14187
14188 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14189
14190 fi
14191
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14193 $as_echo_n "checking for isnan... " >&6; }
14194 if test "${ac_cv_have_isnan+set}" = set; then :
14195   $as_echo_n "(cached) " >&6
14196 else
14197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h.  */
14199 #include <math.h>
14200 int
14201 main ()
14202 {
14203 float f = 0.0; int i=isnan(f)
14204   ;
14205   return 0;
14206 }
14207 _ACEOF
14208 if ac_fn_c_try_link "$LINENO"; then :
14209   ac_cv_have_isnan="yes"
14210 else
14211   ac_cv_have_isnan="no"
14212 fi
14213 rm -f core conftest.err conftest.$ac_objext \
14214     conftest$ac_exeext conftest.$ac_ext
14215 fi
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14217 $as_echo "$ac_cv_have_isnan" >&6; }
14218 if test "$ac_cv_have_isnan" = "yes"
14219 then
14220
14221 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14222
14223 fi
14224
14225
14226 case $host_cpu in
14227   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14228 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14229 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
14230   $as_echo_n "(cached) " >&6
14231 else
14232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h.  */
14234 #ifndef __i386__
14235 yes
14236 #endif
14237 _ACEOF
14238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14239   $EGREP "yes" >/dev/null 2>&1; then :
14240   ac_cv_cpp_def___i386__=yes
14241 else
14242   ac_cv_cpp_def___i386__=no
14243 fi
14244 rm -f conftest*
14245
14246 fi
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14248 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14249 if test $ac_cv_cpp_def___i386__ = yes; then :
14250   CFLAGS="$CFLAGS -D__i386__"
14251   LINTFLAGS="$LINTFLAGS -D__i386__"
14252 fi ;;
14253   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14254 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14255 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
14256   $as_echo_n "(cached) " >&6
14257 else
14258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h.  */
14260 #ifndef __x86_64__
14261 yes
14262 #endif
14263 _ACEOF
14264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14265   $EGREP "yes" >/dev/null 2>&1; then :
14266   ac_cv_cpp_def___x86_64__=yes
14267 else
14268   ac_cv_cpp_def___x86_64__=no
14269 fi
14270 rm -f conftest*
14271
14272 fi
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14274 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14275 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14276   CFLAGS="$CFLAGS -D__x86_64__"
14277   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14278 fi ;;
14279   *alpha*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
14280 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
14281 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
14282   $as_echo_n "(cached) " >&6
14283 else
14284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h.  */
14286 #ifndef __ALPHA__
14287 yes
14288 #endif
14289 _ACEOF
14290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14291   $EGREP "yes" >/dev/null 2>&1; then :
14292   ac_cv_cpp_def___ALPHA__=yes
14293 else
14294   ac_cv_cpp_def___ALPHA__=no
14295 fi
14296 rm -f conftest*
14297
14298 fi
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
14300 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
14301 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
14302   CFLAGS="$CFLAGS -D__ALPHA__"
14303   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
14304 fi ;;
14305   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14306 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14307 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
14308   $as_echo_n "(cached) " >&6
14309 else
14310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h.  */
14312 #ifndef __sparc__
14313 yes
14314 #endif
14315 _ACEOF
14316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14317   $EGREP "yes" >/dev/null 2>&1; then :
14318   ac_cv_cpp_def___sparc__=yes
14319 else
14320   ac_cv_cpp_def___sparc__=no
14321 fi
14322 rm -f conftest*
14323
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14326 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14327 if test $ac_cv_cpp_def___sparc__ = yes; then :
14328   CFLAGS="$CFLAGS -D__sparc__"
14329   LINTFLAGS="$LINTFLAGS -D__sparc__"
14330 fi ;;
14331   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14332 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14333 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
14334   $as_echo_n "(cached) " >&6
14335 else
14336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h.  */
14338 #ifndef __powerpc__
14339 yes
14340 #endif
14341 _ACEOF
14342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14343   $EGREP "yes" >/dev/null 2>&1; then :
14344   ac_cv_cpp_def___powerpc__=yes
14345 else
14346   ac_cv_cpp_def___powerpc__=no
14347 fi
14348 rm -f conftest*
14349
14350 fi
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14352 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14353 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14354   CFLAGS="$CFLAGS -D__powerpc__"
14355   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14356 fi ;;
14357 esac
14358
14359 case $host_vendor in
14360   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14361 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14362 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14363   $as_echo_n "(cached) " >&6
14364 else
14365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h.  */
14367 #ifndef __sun__
14368 yes
14369 #endif
14370 _ACEOF
14371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14372   $EGREP "yes" >/dev/null 2>&1; then :
14373   ac_cv_cpp_def___sun__=yes
14374 else
14375   ac_cv_cpp_def___sun__=no
14376 fi
14377 rm -f conftest*
14378
14379 fi
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14381 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14382 if test $ac_cv_cpp_def___sun__ = yes; then :
14383   CFLAGS="$CFLAGS -D__sun__"
14384   LINTFLAGS="$LINTFLAGS -D__sun__"
14385 fi ;;
14386 esac
14387
14388
14389
14390
14391
14392 ac_config_commands="$ac_config_commands include/stamp-h"
14393
14394
14395 ALL_MAKEFILE_DEPENDS="
14396 # Rules automatically generated by configure
14397
14398 .INIT: Makefile
14399 .MAKEFILEDEPS:
14400 all: Makefile
14401 Makefile: Makefile.in Make.vars.in Make.rules config.status
14402         @./config.status Make.tmp Makefile"
14403
14404 ALL_WINETEST_DEPENDS="# Test binaries"
14405
14406 ALL_TEST_BINARIES=""
14407
14408
14409 wine_fn_append_file ()
14410 {
14411     as_fn_append $1 " \\$as_nl  $2"
14412 }
14413
14414 wine_fn_append_rule ()
14415 {
14416     as_fn_append $1 "$as_nl$2"
14417 }
14418
14419 wine_fn_has_flag ()
14420 {
14421     expr ",$2," : ".*,$1,.*" >/dev/null
14422 }
14423
14424 wine_fn_all_dir_rules ()
14425 {
14426     ac_dir=$1
14427     ac_alldeps=$2
14428     ac_makedep="\$(MAKEDEP)"
14429     ac_input=Make.vars.in:$ac_dir/Makefile.in
14430     if test $ac_dir != tools
14431     then
14432                 ac_alldeps="$2 $ac_makedep"
14433     fi
14434     case $2 in
14435       *.in) ac_input=$ac_input:$2 ;;
14436       *) ac_makedep="$2 $ac_makedep" ;;
14437     esac
14438
14439     wine_fn_append_file ALL_DIRS $ac_dir
14440     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14441 "__clean__: $ac_dir/__clean__
14442 .PHONY: $ac_dir/__clean__
14443 $ac_dir/__clean__: $ac_dir/Makefile
14444         @cd $ac_dir && \$(MAKE) clean
14445         \$(RM) $ac_dir/Makefile
14446 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14447         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14448 depend: $ac_dir/__depend__
14449 .PHONY: $ac_dir/__depend__
14450 $ac_dir/__depend__: $ac_makedep dummy
14451         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14452 }
14453
14454 wine_fn_config_makefile ()
14455 {
14456     ac_dir=$1
14457     ac_enable=$2
14458     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14459   return 0
14460 fi
14461
14462     wine_fn_all_dir_rules $ac_dir Make.rules
14463     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14464 "all: $ac_dir
14465 .PHONY: $ac_dir
14466 $ac_dir: $ac_dir/Makefile dummy
14467         @cd $ac_dir && \$(MAKE)
14468 install:: $ac_dir
14469         @cd $ac_dir && \$(MAKE) install
14470 install-lib:: $ac_dir
14471         @cd $ac_dir && \$(MAKE) install-lib
14472 install-dev:: $ac_dir
14473         @cd $ac_dir && \$(MAKE) install-dev
14474 uninstall:: $ac_dir/Makefile
14475         @cd $ac_dir && \$(MAKE) uninstall"
14476 }
14477
14478 wine_fn_config_lib ()
14479 {
14480     ac_name=$1
14481     ac_dir=dlls/$ac_name
14482     wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14483     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14484 "all __builddeps__: $ac_dir
14485 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14486         @cd $ac_dir && \$(MAKE)
14487 install install-dev:: $ac_dir
14488         @cd $ac_dir && \$(MAKE) install
14489 uninstall:: $ac_dir/Makefile
14490         @cd $ac_dir && \$(MAKE) uninstall"
14491 }
14492
14493 wine_fn_config_dll ()
14494 {
14495     ac_name=$1
14496     ac_dir=dlls/$ac_name
14497     ac_enable=$2
14498     ac_flags=$3
14499     ac_implib=$4
14500     ac_file=$ac_dir/lib$ac_implib
14501     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14502     ac_implibflags=""
14503
14504     case $ac_name in
14505       *16) ac_implibflags=" -m16" ;;
14506     esac
14507
14508     wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14509
14510     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14511                 test "$ac_enable" != enable_win16 || return 0
14512 else
14513   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14514 "all: $ac_dir
14515 .PHONY: $ac_dir
14516 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14517         @cd $ac_dir && \$(MAKE)
14518 install:: $ac_dir/Makefile __builddeps__
14519         @cd $ac_dir && \$(MAKE) install
14520 install-lib:: $ac_dir/Makefile __builddeps__
14521         @cd $ac_dir && \$(MAKE) install-lib
14522 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14523         @cd $ac_dir && \$(MAKE) \$@"
14524 fi
14525
14526     if wine_fn_has_flag staticimplib $ac_flags
14527     then
14528         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14529 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14530 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14531 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14532         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14533 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14534         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14535 install-dev:: $ac_dir/Makefile __builddeps__
14536         @cd $ac_dir && \$(MAKE) install-dev"
14537         if test "x$CROSSTEST_DISABLE" = x
14538         then
14539             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14540 "__builddeps__: $ac_file.cross.a
14541 $ac_file.cross.a: $ac_dir/Makefile dummy
14542         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14543         fi
14544
14545     elif wine_fn_has_flag implib $ac_flags
14546     then
14547         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14548 "__builddeps__: $ac_file.$IMPLIBEXT
14549 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14550         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14551 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14552         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14553 install-dev:: $ac_dir/Makefile __builddeps__
14554         @cd $ac_dir && \$(MAKE) install-dev"
14555         if test "x$CROSSTEST_DISABLE" = x
14556         then
14557             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14558 "__builddeps__: $ac_file.cross.a
14559 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14560         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14561         fi
14562
14563         if test "$ac_name" != "$ac_implib"
14564         then
14565             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14566 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14567 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14568         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14569 clean::
14570         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14571             if test "x$CROSSTEST_DISABLE" = x
14572             then
14573                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14574 "__builddeps__: dlls/lib$ac_implib.cross.a
14575 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14576         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14577             fi
14578         fi
14579     fi
14580 }
14581
14582 wine_fn_config_program ()
14583 {
14584     ac_name=$1
14585     ac_dir=programs/$ac_name
14586     ac_enable=$2
14587     ac_flags=$3
14588     wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14589
14590     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14591
14592 else
14593   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14594 "all: $ac_dir
14595 .PHONY: $ac_dir
14596 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14597         @cd $ac_dir && \$(MAKE)"
14598
14599     wine_fn_has_flag install $ac_flags || return
14600     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14601 "install install-lib:: $ac_dir/Makefile __builddeps__
14602         @cd $ac_dir && \$(MAKE) install
14603 uninstall:: $ac_dir/Makefile
14604         @cd $ac_dir && \$(MAKE) uninstall"
14605     if wine_fn_has_flag installbin $ac_flags -a -n "$DLLEXT" -a "x$enable_tools" != xno
14606     then
14607         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14608 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14609         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14610 uninstall::
14611         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14612     fi
14613 fi
14614 }
14615
14616 wine_fn_config_test ()
14617 {
14618     ac_dir=$1
14619     ac_name=$2
14620     wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14621     wine_fn_append_rule ALL_WINETEST_DEPENDS \
14622 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14623         cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14624 $ac_name.rc:
14625         echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14626 $ac_name.res: $ac_name.rc $ac_name.exe"
14627     wine_fn_all_dir_rules $ac_dir Maketest.rules
14628
14629     if test "x$enable_tests" = x""no; then :
14630
14631 else
14632   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14633 "all programs/winetest: $ac_dir
14634 .PHONY: $ac_dir
14635 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14636         @cd $ac_dir && \$(MAKE)
14637 test: $ac_dir/__test__
14638 .PHONY: $ac_dir/__test__
14639 $ac_dir/__test__: dummy
14640         @cd $ac_dir && \$(MAKE) test
14641 testclean::
14642         \$(RM) $ac_dir/*.ok"
14643
14644         if test "x$CROSSTEST_DISABLE" = x
14645         then
14646             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14647 "crosstest: $ac_dir/__crosstest__
14648 .PHONY: $ac_dir/__crosstest__
14649 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14650         @cd $ac_dir && \$(MAKE) crosstest"
14651         fi
14652 fi
14653 }
14654
14655 wine_fn_config_tool ()
14656 {
14657     ac_dir=$1
14658     wine_fn_all_dir_rules $ac_dir Make.rules
14659
14660     if test "x$enable_tools" = x""no; then :
14661
14662 else
14663   case $ac_dir in
14664             tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14665 "install:: $ac_dir
14666         @cd $ac_dir && \$(MAKE) install
14667 install-lib:: $ac_dir
14668         @cd $ac_dir && \$(MAKE) install-lib
14669 install-dev:: $ac_dir
14670         @cd $ac_dir && \$(MAKE) install-dev" ;;
14671       *)     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14672 "install install-dev:: $ac_dir
14673         @cd $ac_dir && \$(MAKE) install" ;;
14674       esac
14675       wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14676 "uninstall:: $ac_dir/Makefile
14677         @cd $ac_dir && \$(MAKE) uninstall
14678 all __tooldeps__: $ac_dir
14679 .PHONY: $ac_dir
14680 $ac_dir: $ac_dir/Makefile libs/port dummy
14681         @cd $ac_dir && \$(MAKE)"
14682       case $ac_dir in
14683         tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14684       esac
14685 fi
14686 }
14687
14688 wine_fn_config_makerules ()
14689 {
14690     ac_rules=$1
14691     ac_deps=$2
14692     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14693 "$ac_rules: $ac_rules.in $ac_deps config.status
14694         @./config.status $ac_rules
14695 distclean::
14696         \$(RM) $ac_rules"
14697 }
14698
14699 wine_fn_config_symlink ()
14700 {
14701     ac_link=$1
14702     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14703 "$ac_link:
14704         @./config.status $ac_link
14705 distclean::
14706         \$(RM) $ac_link"
14707 }
14708
14709 if test "x$CROSSTEST_DISABLE" != x
14710 then
14711     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14712 "crosstest:
14713         @echo \"crosstest is not supported (mingw not installed?)\" && false"
14714 fi
14715 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14716 wine_fn_config_symlink dlls/shell32/AUTHORS
14717 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14718 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14719 if test "x$enable_fonts" != xno; then
14720 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14721 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14722 fi
14723 if test "x$enable_fonts" != xno; then
14724 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14725 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14726 fi
14727 if test "x$enable_fonts" != xno; then
14728 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14729 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14730 fi
14731 if test "x$enable_fonts" != xno; then
14732 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14733 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14734 fi
14735 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14736 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14737 ac_config_links="$ac_config_links wine:tools/winewrapper"
14738 wine_fn_config_symlink wine
14739
14740 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14741
14742 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14743
14744 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14745
14746 ac_config_commands="$ac_config_commands dlls/user32/resources"
14747
14748 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14749
14750 ac_config_commands="$ac_config_commands include/wine"
14751
14752
14753 wine_fn_config_makerules Make.rules
14754 MAKE_RULES=Make.rules
14755 ac_config_files="$ac_config_files Make.rules"
14756
14757 wine_fn_config_makerules Maketest.rules Make.rules
14758 MAKE_TEST_RULES=Maketest.rules
14759 ac_config_files="$ac_config_files Maketest.rules"
14760
14761 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14762 MAKE_DLL_RULES=dlls/Makedll.rules
14763 ac_config_files="$ac_config_files dlls/Makedll.rules"
14764
14765 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14766 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14767 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14768
14769 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14770 MAKE_PROG_RULES=programs/Makeprog.rules
14771 ac_config_files="$ac_config_files programs/Makeprog.rules"
14772
14773
14774 wine_fn_config_dll acledit enable_acledit
14775 wine_fn_config_dll aclui enable_aclui implib aclui
14776 wine_fn_config_dll activeds enable_activeds implib activeds
14777 wine_fn_config_dll actxprxy enable_actxprxy
14778 wine_fn_config_lib adsiid
14779 wine_fn_config_dll advapi32 enable_advapi32 implib advapi32
14780 wine_fn_config_test dlls/advapi32/tests advapi32_test
14781 wine_fn_config_dll advpack enable_advpack implib advpack
14782 wine_fn_config_test dlls/advpack/tests advpack_test
14783 wine_fn_config_dll amstream enable_amstream
14784 wine_fn_config_test dlls/amstream/tests amstream_test
14785 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14786 wine_fn_config_dll atl enable_atl implib atl
14787 wine_fn_config_test dlls/atl/tests atl_test
14788 wine_fn_config_dll authz enable_authz
14789 wine_fn_config_dll avicap32 enable_avicap32 implib avicap32
14790 wine_fn_config_dll avifil32 enable_avifil32 implib avifil32
14791 wine_fn_config_test dlls/avifil32/tests avifil32_test
14792 wine_fn_config_dll avifile.dll16 enable_win16
14793 wine_fn_config_dll avrt enable_avrt implib avrt
14794 wine_fn_config_dll bcrypt enable_bcrypt
14795 wine_fn_config_dll browseui enable_browseui
14796 wine_fn_config_test dlls/browseui/tests browseui_test
14797 wine_fn_config_dll cabinet enable_cabinet implib cabinet
14798 wine_fn_config_test dlls/cabinet/tests cabinet_test
14799 wine_fn_config_dll capi2032 enable_capi2032 implib capi2032
14800 wine_fn_config_dll cards enable_cards implib cards
14801 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib cfgmgr32
14802 wine_fn_config_dll clusapi enable_clusapi implib clusapi
14803 wine_fn_config_dll comcat enable_comcat
14804 wine_fn_config_test dlls/comcat/tests comcat_test
14805 wine_fn_config_dll comctl32 enable_comctl32 implib comctl32
14806 wine_fn_config_test dlls/comctl32/tests comctl32_test
14807 wine_fn_config_dll comdlg32 enable_comdlg32 implib comdlg32
14808 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14809 wine_fn_config_dll comm.drv16 enable_win16
14810 wine_fn_config_dll commdlg.dll16 enable_win16
14811 wine_fn_config_dll compobj.dll16 enable_win16
14812 wine_fn_config_dll compstui enable_compstui implib compstui
14813 wine_fn_config_dll credui enable_credui implib credui
14814 wine_fn_config_test dlls/credui/tests credui_test
14815 wine_fn_config_dll crtdll enable_crtdll implib crtdll
14816 wine_fn_config_dll crypt32 enable_crypt32 implib crypt32
14817 wine_fn_config_test dlls/crypt32/tests crypt32_test
14818 wine_fn_config_dll cryptdlg enable_cryptdlg
14819 wine_fn_config_dll cryptdll enable_cryptdll implib cryptdll
14820 wine_fn_config_dll cryptnet enable_cryptnet implib cryptnet
14821 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14822 wine_fn_config_dll cryptui enable_cryptui implib cryptui
14823 wine_fn_config_test dlls/cryptui/tests cryptui_test
14824 wine_fn_config_dll ctapi32 enable_ctapi32
14825 wine_fn_config_dll ctl3d.dll16 enable_win16
14826 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib ctl3d32
14827 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14828 wine_fn_config_dll d3d10 enable_d3d10 implib d3d10
14829 wine_fn_config_test dlls/d3d10/tests d3d10_test
14830 wine_fn_config_dll d3d10core enable_d3d10core implib d3d10core
14831 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14832 wine_fn_config_dll d3d8 enable_d3d8 implib d3d8
14833 wine_fn_config_test dlls/d3d8/tests d3d8_test
14834 wine_fn_config_dll d3d9 enable_d3d9 implib d3d9
14835 wine_fn_config_test dlls/d3d9/tests d3d9_test
14836 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14837 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14838 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14839 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14840 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14841 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14842 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14843 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14844 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14845 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14846 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14847 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14848 wine_fn_config_dll d3dim enable_d3dim implib d3dim
14849 wine_fn_config_dll d3drm enable_d3drm implib d3drm
14850 wine_fn_config_test dlls/d3drm/tests d3drm_test
14851 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14852 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14853 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14854 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14855 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14856 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14857 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14858 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14859 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14860 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14861 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14862 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14863 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14864 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14865 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14866 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14867 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14868 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14869 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14870 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14871 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14872 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14873 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14874 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14875 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14876 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14877 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14878 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14879 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14880 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14881 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14882 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14883 wine_fn_config_dll d3dxof enable_d3dxof implib d3dxof
14884 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14885 wine_fn_config_dll dbgeng enable_dbgeng implib dbgeng
14886 wine_fn_config_dll dbghelp enable_dbghelp implib dbghelp
14887 wine_fn_config_dll dciman32 enable_dciman32 implib dciman32
14888 wine_fn_config_dll ddeml.dll16 enable_win16
14889 wine_fn_config_dll ddraw enable_ddraw implib ddraw
14890 wine_fn_config_test dlls/ddraw/tests ddraw_test
14891 wine_fn_config_dll ddrawex enable_ddrawex
14892 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14893 wine_fn_config_dll devenum enable_devenum
14894 wine_fn_config_dll dinput enable_dinput implib,staticimplib dinput
14895 wine_fn_config_test dlls/dinput/tests dinput_test
14896 wine_fn_config_dll dinput8 enable_dinput8 implib dinput8
14897 wine_fn_config_dll dispdib.dll16 enable_win16
14898 wine_fn_config_dll dispex enable_dispex
14899 wine_fn_config_test dlls/dispex/tests dispex_test
14900 wine_fn_config_dll display.drv16 enable_win16
14901 wine_fn_config_dll dmband enable_dmband
14902 wine_fn_config_dll dmcompos enable_dmcompos
14903 wine_fn_config_dll dmime enable_dmime
14904 wine_fn_config_test dlls/dmime/tests dmime_test
14905 wine_fn_config_dll dmloader enable_dmloader
14906 wine_fn_config_test dlls/dmloader/tests dmloader_test
14907 wine_fn_config_dll dmscript enable_dmscript
14908 wine_fn_config_dll dmstyle enable_dmstyle
14909 wine_fn_config_dll dmsynth enable_dmsynth
14910 wine_fn_config_dll dmusic enable_dmusic
14911 wine_fn_config_dll dmusic32 enable_dmusic32 implib dmusic32
14912 wine_fn_config_dll dnsapi enable_dnsapi implib dnsapi
14913 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14914 wine_fn_config_dll dplay enable_dplay implib dplay
14915 wine_fn_config_dll dplayx enable_dplayx implib dplayx
14916 wine_fn_config_test dlls/dplayx/tests dplayx_test
14917 wine_fn_config_dll dpnaddr enable_dpnaddr
14918 wine_fn_config_dll dpnet enable_dpnet implib dpnet
14919 wine_fn_config_dll dpnhpast enable_dpnhpast
14920 wine_fn_config_dll dpnlobby enable_dpnlobby
14921 wine_fn_config_dll dpwsockx enable_dpwsockx
14922 wine_fn_config_dll drmclien enable_drmclien
14923 wine_fn_config_dll dsound enable_dsound implib dsound
14924 wine_fn_config_test dlls/dsound/tests dsound_test
14925 wine_fn_config_dll dssenh enable_dssenh
14926 wine_fn_config_dll dswave enable_dswave
14927 wine_fn_config_dll dwmapi enable_dwmapi implib dwmapi
14928 wine_fn_config_dll dxdiagn enable_dxdiagn
14929 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14930 wine_fn_config_lib dxerr8
14931 wine_fn_config_lib dxerr9
14932 wine_fn_config_dll dxgi enable_dxgi implib dxgi
14933 wine_fn_config_test dlls/dxgi/tests dxgi_test
14934 wine_fn_config_lib dxguid
14935 wine_fn_config_dll explorerframe enable_explorerframe
14936 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
14937 wine_fn_config_dll faultrep enable_faultrep implib faultrep
14938 wine_fn_config_test dlls/faultrep/tests faultrep_test
14939 wine_fn_config_dll fltlib enable_fltlib
14940 wine_fn_config_dll fusion enable_fusion
14941 wine_fn_config_test dlls/fusion/tests fusion_test
14942 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14943 wine_fn_config_dll gameux enable_gameux
14944 wine_fn_config_test dlls/gameux/tests gameux_test
14945 wine_fn_config_dll gdi.exe16 enable_win16
14946 wine_fn_config_dll gdi32 enable_gdi32 implib gdi32
14947 wine_fn_config_test dlls/gdi32/tests gdi32_test
14948 wine_fn_config_dll gdiplus enable_gdiplus implib gdiplus
14949 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14950 wine_fn_config_dll glu32 enable_glu32 implib glu32
14951 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14952 wine_fn_config_dll gpkcsp enable_gpkcsp
14953 wine_fn_config_dll hal enable_hal
14954 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14955 wine_fn_config_dll hid enable_hid implib hid
14956 wine_fn_config_dll hlink enable_hlink implib hlink
14957 wine_fn_config_test dlls/hlink/tests hlink_test
14958 wine_fn_config_dll hnetcfg enable_hnetcfg
14959 wine_fn_config_dll httpapi enable_httpapi
14960 wine_fn_config_dll iccvid enable_iccvid
14961 wine_fn_config_dll icmp enable_icmp
14962 wine_fn_config_dll ifsmgr.vxd enable_win16
14963 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14964 wine_fn_config_dll imagehlp enable_imagehlp implib imagehlp
14965 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14966 wine_fn_config_dll imm.dll16 enable_win16
14967 wine_fn_config_dll imm32 enable_imm32 implib imm32
14968 wine_fn_config_test dlls/imm32/tests imm32_test
14969 wine_fn_config_dll inetcomm enable_inetcomm implib inetcomm
14970 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14971 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl
14972 wine_fn_config_dll inetmib1 enable_inetmib1
14973 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14974 wine_fn_config_dll infosoft enable_infosoft
14975 wine_fn_config_test dlls/infosoft/tests infosoft_test
14976 wine_fn_config_dll initpki enable_initpki
14977 wine_fn_config_dll inkobj enable_inkobj
14978 wine_fn_config_dll inseng enable_inseng
14979 wine_fn_config_dll iphlpapi enable_iphlpapi implib iphlpapi
14980 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14981 wine_fn_config_dll itircl enable_itircl
14982 wine_fn_config_dll itss enable_itss
14983 wine_fn_config_test dlls/itss/tests itss_test
14984 wine_fn_config_dll jscript enable_jscript
14985 wine_fn_config_test dlls/jscript/tests jscript_test
14986 wine_fn_config_dll kernel32 enable_kernel32 implib kernel32
14987 wine_fn_config_test dlls/kernel32/tests kernel32_test
14988 wine_fn_config_dll keyboard.drv16 enable_win16
14989 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
14990 wine_fn_config_dll ktmw32 enable_ktmw32
14991 wine_fn_config_dll loadperf enable_loadperf implib loadperf
14992 wine_fn_config_dll localspl enable_localspl
14993 wine_fn_config_test dlls/localspl/tests localspl_test
14994 wine_fn_config_dll localui enable_localui
14995 wine_fn_config_test dlls/localui/tests localui_test
14996 wine_fn_config_dll lz32 enable_lz32 implib lz32
14997 wine_fn_config_test dlls/lz32/tests lz32_test
14998 wine_fn_config_dll lzexpand.dll16 enable_win16
14999 wine_fn_config_dll mapi32 enable_mapi32 implib mapi32
15000 wine_fn_config_test dlls/mapi32/tests mapi32_test
15001 wine_fn_config_dll mapistub enable_mapistub
15002 wine_fn_config_dll mciavi32 enable_mciavi32
15003 wine_fn_config_dll mcicda enable_mcicda
15004 wine_fn_config_dll mciqtz32 enable_mciqtz32
15005 wine_fn_config_dll mciseq enable_mciseq
15006 wine_fn_config_dll mciwave enable_mciwave
15007 wine_fn_config_dll midimap enable_midimap
15008 wine_fn_config_dll mlang enable_mlang implib mlang
15009 wine_fn_config_test dlls/mlang/tests mlang_test
15010 wine_fn_config_dll mmdevapi enable_mmdevapi
15011 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15012 wine_fn_config_dll mmdevldr.vxd enable_win16
15013 wine_fn_config_dll mmsystem.dll16 enable_win16
15014 wine_fn_config_dll monodebg.vxd enable_win16
15015 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15016 wine_fn_config_dll mouse.drv16 enable_win16
15017 wine_fn_config_dll mpr enable_mpr implib mpr
15018 wine_fn_config_dll mprapi enable_mprapi implib mprapi
15019 wine_fn_config_dll msacm.dll16 enable_win16
15020 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15021 wine_fn_config_dll msacm32 enable_msacm32 implib msacm32
15022 wine_fn_config_test dlls/msacm32/tests msacm32_test
15023 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15024 wine_fn_config_dll mscat32 enable_mscat32
15025 wine_fn_config_dll mscms enable_mscms implib mscms
15026 wine_fn_config_test dlls/mscms/tests mscms_test
15027 wine_fn_config_dll mscoree enable_mscoree
15028 wine_fn_config_test dlls/mscoree/tests mscoree_test
15029 wine_fn_config_dll msctf enable_msctf
15030 wine_fn_config_test dlls/msctf/tests msctf_test
15031 wine_fn_config_dll msdaps enable_msdaps
15032 wine_fn_config_dll msdmo enable_msdmo implib msdmo
15033 wine_fn_config_dll msftedit enable_msftedit
15034 wine_fn_config_dll msg711.acm enable_msg711_acm
15035 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15036 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15037 wine_fn_config_dll mshtml enable_mshtml implib mshtml
15038 wine_fn_config_test dlls/mshtml/tests mshtml_test
15039 wine_fn_config_dll msi enable_msi implib msi
15040 wine_fn_config_test dlls/msi/tests msi_test
15041 wine_fn_config_dll msimg32 enable_msimg32 implib msimg32
15042 wine_fn_config_dll msimtf enable_msimtf
15043 wine_fn_config_dll msisip enable_msisip
15044 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15045 wine_fn_config_dll msnet32 enable_msnet32
15046 wine_fn_config_dll msrle32 enable_msrle32
15047 wine_fn_config_dll mssign32 enable_mssign32
15048 wine_fn_config_dll mssip32 enable_mssip32
15049 wine_fn_config_dll mstask enable_mstask
15050 wine_fn_config_test dlls/mstask/tests mstask_test
15051 wine_fn_config_dll msvcirt enable_msvcirt
15052 wine_fn_config_dll msvcp80 enable_msvcp80
15053 wine_fn_config_dll msvcp90 enable_msvcp90
15054 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15055 wine_fn_config_dll msvcr100 enable_msvcr100
15056 wine_fn_config_dll msvcr70 enable_msvcr70 implib msvcr70
15057 wine_fn_config_dll msvcr71 enable_msvcr71 implib msvcr71
15058 wine_fn_config_dll msvcr80 enable_msvcr80
15059 wine_fn_config_dll msvcr90 enable_msvcr90
15060 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15061 wine_fn_config_dll msvcrt enable_msvcrt implib msvcrt
15062 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15063 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib msvcrt20
15064 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib msvcrt40
15065 wine_fn_config_dll msvcrtd enable_msvcrtd implib msvcrtd
15066 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15067 wine_fn_config_dll msvfw32 enable_msvfw32 implib msvfw32
15068 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15069 wine_fn_config_dll msvidc32 enable_msvidc32
15070 wine_fn_config_dll msvideo.dll16 enable_win16
15071 wine_fn_config_dll mswsock enable_mswsock implib mswsock
15072 wine_fn_config_dll msxml enable_msxml
15073 wine_fn_config_dll msxml2 enable_msxml2
15074 wine_fn_config_dll msxml3 enable_msxml3
15075 wine_fn_config_test dlls/msxml3/tests msxml3_test
15076 wine_fn_config_dll msxml4 enable_msxml4
15077 wine_fn_config_dll msxml6 enable_msxml6
15078 wine_fn_config_dll nddeapi enable_nddeapi implib nddeapi
15079 wine_fn_config_dll netapi32 enable_netapi32 implib netapi32
15080 wine_fn_config_test dlls/netapi32/tests netapi32_test
15081 wine_fn_config_dll newdev enable_newdev implib newdev
15082 wine_fn_config_dll npmshtml enable_npmshtml
15083 wine_fn_config_dll ntdll enable_ntdll implib ntdll
15084 wine_fn_config_test dlls/ntdll/tests ntdll_test
15085 wine_fn_config_dll ntdsapi enable_ntdsapi implib ntdsapi
15086 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15087 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib ntoskrnl.exe
15088 wine_fn_config_dll ntprint enable_ntprint
15089 wine_fn_config_test dlls/ntprint/tests ntprint_test
15090 wine_fn_config_dll objsel enable_objsel
15091 wine_fn_config_dll odbc32 enable_odbc32 implib odbc32
15092 wine_fn_config_dll odbccp32 enable_odbccp32 implib odbccp32
15093 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15094 wine_fn_config_dll ole2.dll16 enable_win16
15095 wine_fn_config_dll ole2conv.dll16 enable_win16
15096 wine_fn_config_dll ole2disp.dll16 enable_win16
15097 wine_fn_config_dll ole2nls.dll16 enable_win16
15098 wine_fn_config_dll ole2prox.dll16 enable_win16
15099 wine_fn_config_dll ole2thk.dll16 enable_win16
15100 wine_fn_config_dll ole32 enable_ole32 implib ole32
15101 wine_fn_config_test dlls/ole32/tests ole32_test
15102 wine_fn_config_dll oleacc enable_oleacc implib oleacc
15103 wine_fn_config_test dlls/oleacc/tests oleacc_test
15104 wine_fn_config_dll oleaut32 enable_oleaut32 implib oleaut32
15105 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15106 wine_fn_config_dll olecli.dll16 enable_win16
15107 wine_fn_config_dll olecli32 enable_olecli32 implib olecli32
15108 wine_fn_config_dll oledb32 enable_oledb32
15109 wine_fn_config_test dlls/oledb32/tests oledb32_test
15110 wine_fn_config_dll oledlg enable_oledlg implib oledlg
15111 wine_fn_config_dll olepro32 enable_olepro32 implib olepro32
15112 wine_fn_config_dll olesvr.dll16 enable_win16
15113 wine_fn_config_dll olesvr32 enable_olesvr32 implib olesvr32
15114 wine_fn_config_dll olethk32 enable_olethk32
15115 wine_fn_config_dll openal32 enable_openal32
15116 wine_fn_config_dll opencl enable_opencl
15117 wine_fn_config_dll opengl32 enable_opengl32 implib opengl32
15118 wine_fn_config_test dlls/opengl32/tests opengl32_test
15119 wine_fn_config_dll pdh enable_pdh implib pdh
15120 wine_fn_config_test dlls/pdh/tests pdh_test
15121 wine_fn_config_dll pidgen enable_pidgen
15122 wine_fn_config_dll powrprof enable_powrprof implib powrprof
15123 wine_fn_config_dll printui enable_printui
15124 wine_fn_config_dll propsys enable_propsys implib propsys
15125 wine_fn_config_test dlls/propsys/tests propsys_test
15126 wine_fn_config_dll psapi enable_psapi implib psapi
15127 wine_fn_config_test dlls/psapi/tests psapi_test
15128 wine_fn_config_dll pstorec enable_pstorec
15129 wine_fn_config_dll qcap enable_qcap
15130 wine_fn_config_dll qedit enable_qedit
15131 wine_fn_config_test dlls/qedit/tests qedit_test
15132 wine_fn_config_dll qmgr enable_qmgr
15133 wine_fn_config_test dlls/qmgr/tests qmgr_test
15134 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15135 wine_fn_config_dll quartz enable_quartz implib quartz
15136 wine_fn_config_test dlls/quartz/tests quartz_test
15137 wine_fn_config_dll query enable_query
15138 wine_fn_config_dll rasapi16.dll16 enable_win16
15139 wine_fn_config_dll rasapi32 enable_rasapi32 implib rasapi32
15140 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15141 wine_fn_config_dll rasdlg enable_rasdlg implib rasdlg
15142 wine_fn_config_dll resutils enable_resutils implib resutils
15143 wine_fn_config_dll riched20 enable_riched20 implib riched20
15144 wine_fn_config_test dlls/riched20/tests riched20_test
15145 wine_fn_config_dll riched32 enable_riched32
15146 wine_fn_config_test dlls/riched32/tests riched32_test
15147 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib rpcrt4
15148 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15149 wine_fn_config_dll rsabase enable_rsabase
15150 wine_fn_config_dll rsaenh enable_rsaenh implib rsaenh
15151 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15152 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15153 wine_fn_config_dll rtutils enable_rtutils implib rtutils
15154 wine_fn_config_dll samlib enable_samlib
15155 wine_fn_config_dll sane.ds enable_sane_ds
15156 wine_fn_config_dll sccbase enable_sccbase
15157 wine_fn_config_dll schannel enable_schannel
15158 wine_fn_config_test dlls/schannel/tests schannel_test
15159 wine_fn_config_dll secur32 enable_secur32 implib secur32
15160 wine_fn_config_test dlls/secur32/tests secur32_test
15161 wine_fn_config_dll security enable_security
15162 wine_fn_config_dll sensapi enable_sensapi implib sensapi
15163 wine_fn_config_dll serialui enable_serialui implib serialui
15164 wine_fn_config_test dlls/serialui/tests serialui_test
15165 wine_fn_config_dll setupapi enable_setupapi implib setupapi
15166 wine_fn_config_test dlls/setupapi/tests setupapi_test
15167 wine_fn_config_dll setupx.dll16 enable_win16
15168 wine_fn_config_dll sfc enable_sfc implib sfc
15169 wine_fn_config_dll sfc_os enable_sfc_os implib sfc_os
15170 wine_fn_config_dll shdoclc enable_shdoclc
15171 wine_fn_config_dll shdocvw enable_shdocvw implib shdocvw
15172 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15173 wine_fn_config_dll shell.dll16 enable_win16
15174 wine_fn_config_dll shell32 enable_shell32 implib shell32
15175 wine_fn_config_test dlls/shell32/tests shell32_test
15176 wine_fn_config_dll shfolder enable_shfolder implib shfolder
15177 wine_fn_config_dll shlwapi enable_shlwapi implib shlwapi
15178 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15179 wine_fn_config_dll slbcsp enable_slbcsp
15180 wine_fn_config_dll slc enable_slc implib slc
15181 wine_fn_config_dll snmpapi enable_snmpapi implib snmpapi
15182 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15183 wine_fn_config_dll softpub enable_softpub
15184 wine_fn_config_dll sound.drv16 enable_win16
15185 wine_fn_config_dll spoolss enable_spoolss implib spoolss
15186 wine_fn_config_test dlls/spoolss/tests spoolss_test
15187 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15188 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15189 wine_fn_config_dll sti enable_sti implib sti
15190 wine_fn_config_test dlls/sti/tests sti_test
15191 wine_fn_config_dll storage.dll16 enable_win16
15192 wine_fn_config_dll stress.dll16 enable_win16
15193 wine_fn_config_lib strmbase
15194 wine_fn_config_lib strmiids
15195 wine_fn_config_dll svrapi enable_svrapi
15196 wine_fn_config_dll sxs enable_sxs
15197 wine_fn_config_dll system.drv16 enable_win16
15198 wine_fn_config_dll t2embed enable_t2embed
15199 wine_fn_config_dll tapi32 enable_tapi32 implib tapi32
15200 wine_fn_config_dll toolhelp.dll16 enable_win16
15201 wine_fn_config_dll traffic enable_traffic
15202 wine_fn_config_dll twain.dll16 enable_win16
15203 wine_fn_config_dll twain_32 enable_twain_32
15204 wine_fn_config_test dlls/twain_32/tests twain_32_test
15205 wine_fn_config_dll typelib.dll16 enable_win16
15206 wine_fn_config_dll unicows enable_unicows implib unicows
15207 wine_fn_config_dll updspapi enable_updspapi
15208 wine_fn_config_dll url enable_url implib url
15209 wine_fn_config_dll urlmon enable_urlmon implib urlmon
15210 wine_fn_config_test dlls/urlmon/tests urlmon_test
15211 wine_fn_config_dll usbd.sys enable_usbd_sys implib usbd.sys
15212 wine_fn_config_dll user.exe16 enable_win16
15213 wine_fn_config_dll user32 enable_user32 implib user32
15214 wine_fn_config_test dlls/user32/tests user32_test
15215 wine_fn_config_dll userenv enable_userenv implib userenv
15216 wine_fn_config_test dlls/userenv/tests userenv_test
15217 wine_fn_config_dll usp10 enable_usp10 implib usp10
15218 wine_fn_config_test dlls/usp10/tests usp10_test
15219 wine_fn_config_lib uuid
15220 wine_fn_config_dll uxtheme enable_uxtheme implib uxtheme
15221 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15222 wine_fn_config_dll vdhcp.vxd enable_win16
15223 wine_fn_config_dll vdmdbg enable_vdmdbg implib vdmdbg
15224 wine_fn_config_dll ver.dll16 enable_win16
15225 wine_fn_config_dll version enable_version implib version
15226 wine_fn_config_test dlls/version/tests version_test
15227 wine_fn_config_dll vmm.vxd enable_win16
15228 wine_fn_config_dll vnbt.vxd enable_win16
15229 wine_fn_config_dll vnetbios.vxd enable_win16
15230 wine_fn_config_dll vtdapi.vxd enable_win16
15231 wine_fn_config_dll vwin32.vxd enable_win16
15232 wine_fn_config_dll w32skrnl enable_win16
15233 wine_fn_config_dll w32sys.dll16 enable_win16
15234 wine_fn_config_dll wbemprox enable_wbemprox
15235 wine_fn_config_dll wer enable_wer implib wer
15236 wine_fn_config_test dlls/wer/tests wer_test
15237 wine_fn_config_dll wiaservc enable_wiaservc
15238 wine_fn_config_dll win32s16.dll16 enable_win16
15239 wine_fn_config_dll win87em.dll16 enable_win16
15240 wine_fn_config_dll winaspi.dll16 enable_win16
15241 wine_fn_config_dll windebug.dll16 enable_win16
15242 wine_fn_config_dll windowscodecs enable_windowscodecs implib windowscodecs
15243 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15244 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15245 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15246 wine_fn_config_lib winecrt0
15247 wine_fn_config_dll wined3d enable_wined3d implib wined3d
15248 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15249 wine_fn_config_dll winegstreamer enable_winegstreamer
15250 wine_fn_config_dll winejack.drv enable_winejack_drv
15251 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15252 wine_fn_config_dll winemapi enable_winemapi
15253 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15254 wine_fn_config_dll winenas.drv enable_winenas_drv
15255 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15256 wine_fn_config_dll wineps.drv enable_wineps_drv
15257 wine_fn_config_dll wineps16.drv16 enable_win16
15258 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15259 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15260 wine_fn_config_dll winex11.drv enable_winex11_drv
15261 wine_fn_config_dll wing.dll16 enable_win16
15262 wine_fn_config_dll wing32 enable_wing32
15263 wine_fn_config_dll winhttp enable_winhttp implib winhttp
15264 wine_fn_config_test dlls/winhttp/tests winhttp_test
15265 wine_fn_config_dll wininet enable_wininet implib wininet
15266 wine_fn_config_test dlls/wininet/tests wininet_test
15267 wine_fn_config_dll winmm enable_winmm implib winmm
15268 wine_fn_config_test dlls/winmm/tests winmm_test
15269 wine_fn_config_dll winnls.dll16 enable_win16
15270 wine_fn_config_dll winnls32 enable_winnls32 implib winnls32
15271 wine_fn_config_dll winscard enable_winscard implib winscard
15272 wine_fn_config_dll winsock.dll16 enable_win16
15273 wine_fn_config_dll winspool.drv enable_winspool_drv implib winspool
15274 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15275 wine_fn_config_dll wintab.dll16 enable_win16
15276 wine_fn_config_dll wintab32 enable_wintab32 implib wintab32
15277 wine_fn_config_test dlls/wintab32/tests wintab32_test
15278 wine_fn_config_dll wintrust enable_wintrust implib wintrust
15279 wine_fn_config_test dlls/wintrust/tests wintrust_test
15280 wine_fn_config_dll wlanapi enable_wlanapi
15281 wine_fn_config_dll wldap32 enable_wldap32 implib wldap32
15282 wine_fn_config_test dlls/wldap32/tests wldap32_test
15283 wine_fn_config_dll wmi enable_wmi
15284 wine_fn_config_dll wmiutils enable_wmiutils
15285 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib wnaspi32
15286 wine_fn_config_dll wow32 enable_win16 implib wow32
15287 wine_fn_config_dll ws2_32 enable_ws2_32 implib ws2_32
15288 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15289 wine_fn_config_dll wsock32 enable_wsock32 implib wsock32
15290 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib wtsapi32
15291 wine_fn_config_dll wuapi enable_wuapi
15292 wine_fn_config_dll wuaueng enable_wuaueng
15293 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15294 wine_fn_config_dll xinput1_1 enable_xinput1_1
15295 wine_fn_config_dll xinput1_2 enable_xinput1_2
15296 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15297 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15298 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15299 wine_fn_config_dll xmllite enable_xmllite
15300 wine_fn_config_test dlls/xmllite/tests xmllite_test
15301 wine_fn_config_makefile documentation enable_documentation
15302 wine_fn_config_makefile fonts enable_fonts
15303 wine_fn_config_makefile include enable_include
15304 wine_fn_config_makefile libs/port enable_libs_port
15305 wine_fn_config_makefile libs/wine enable_libs_wine
15306 wine_fn_config_makefile libs/wpp enable_libs_wpp
15307 wine_fn_config_makefile loader enable_loader
15308 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15309 wine_fn_config_program attrib enable_attrib install
15310 wine_fn_config_program cacls enable_cacls install
15311 wine_fn_config_program clock enable_clock install
15312 wine_fn_config_program cmd enable_cmd install
15313 wine_fn_config_test programs/cmd/tests cmd.exe_test
15314 wine_fn_config_program cmdlgtst enable_cmdlgtst
15315 wine_fn_config_program control enable_control install
15316 wine_fn_config_program dxdiag enable_dxdiag install
15317 wine_fn_config_program eject enable_eject install
15318 wine_fn_config_program expand enable_expand install
15319 wine_fn_config_program explorer enable_explorer install
15320 wine_fn_config_program extrac32 enable_extrac32 install
15321 wine_fn_config_program hh enable_hh install
15322 wine_fn_config_program icinfo enable_icinfo install
15323 wine_fn_config_program iexplore enable_iexplore install
15324 wine_fn_config_program ipconfig enable_ipconfig install
15325 wine_fn_config_program lodctr enable_lodctr install
15326 wine_fn_config_program mofcomp enable_mofcomp install
15327 wine_fn_config_program mshta enable_mshta install
15328 wine_fn_config_program msiexec enable_msiexec install,installbin
15329 wine_fn_config_program net enable_net install
15330 wine_fn_config_program netsh enable_netsh install
15331 wine_fn_config_program ngen enable_ngen install
15332 wine_fn_config_program notepad enable_notepad install,installbin
15333 wine_fn_config_program oleview enable_oleview install
15334 wine_fn_config_program ping enable_ping install
15335 wine_fn_config_program progman enable_progman install
15336 wine_fn_config_program reg enable_reg install
15337 wine_fn_config_program regedit enable_regedit install,installbin
15338 wine_fn_config_test programs/regedit/tests regedit.exe_test
15339 wine_fn_config_program regsvcs enable_regsvcs install
15340 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15341 wine_fn_config_program rpcss enable_rpcss install
15342 wine_fn_config_program rundll.exe16 enable_win16 install
15343 wine_fn_config_program rundll32 enable_rundll32 install
15344 wine_fn_config_program sc enable_sc install
15345 wine_fn_config_program secedit enable_secedit install
15346 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15347 wine_fn_config_program services enable_services install
15348 wine_fn_config_program spoolsv enable_spoolsv install
15349 wine_fn_config_program start enable_start install
15350 wine_fn_config_program svchost enable_svchost install
15351 wine_fn_config_program taskkill enable_taskkill install
15352 wine_fn_config_program taskmgr enable_taskmgr install
15353 wine_fn_config_program termsv enable_termsv install
15354 wine_fn_config_program uninstaller enable_uninstaller install
15355 wine_fn_config_program unlodctr enable_unlodctr install
15356 wine_fn_config_program view enable_view
15357 wine_fn_config_program wineboot enable_wineboot install,installbin
15358 wine_fn_config_program winebrowser enable_winebrowser install
15359 wine_fn_config_program winecfg enable_winecfg install,installbin
15360 wine_fn_config_program wineconsole enable_wineconsole install,installbin
15361 wine_fn_config_program winedbg enable_winedbg install,installbin
15362 wine_fn_config_program winedevice enable_winedevice install
15363 wine_fn_config_program winefile enable_winefile install,installbin
15364 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15365 wine_fn_config_program winemine enable_winemine install,installbin
15366 wine_fn_config_program winepath enable_winepath install,installbin
15367 wine_fn_config_program winetest enable_winetest
15368 wine_fn_config_program winevdm enable_win16 install
15369 wine_fn_config_program winhelp.exe16 enable_win16 install
15370 wine_fn_config_program winhlp32 enable_winhlp32 install
15371 wine_fn_config_program winoldap.mod16 enable_win16 install
15372 wine_fn_config_program winver enable_winver install
15373 wine_fn_config_program wmic enable_wmic install
15374 wine_fn_config_program wordpad enable_wordpad install
15375 wine_fn_config_program write enable_write install
15376 wine_fn_config_program wscript enable_wscript install
15377 wine_fn_config_program xcopy enable_xcopy install
15378 wine_fn_config_makefile server enable_server
15379 wine_fn_config_tool tools
15380 wine_fn_config_tool tools/widl
15381 wine_fn_config_tool tools/winebuild
15382 wine_fn_config_tool tools/winedump
15383 wine_fn_config_tool tools/winegcc
15384 wine_fn_config_tool tools/wmc
15385 wine_fn_config_tool tools/wrc
15386
15387 ac_config_commands="$ac_config_commands Makefile"
15388
15389
15390 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15391
15392
15393
15394 if test -n "$with_wine64"
15395 then
15396 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15397 fonts server:
15398         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15399 $with_wine64/loader/wine:
15400         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15401 $with_wine64/loader/wine-preloader:
15402         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15403 clean::
15404         \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15405 fi
15406
15407 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15408         -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15409
15410 cat >confcache <<\_ACEOF
15411 # This file is a shell script that caches the results of configure
15412 # tests run on this system so they can be shared between configure
15413 # scripts and configure runs, see configure's option --config-cache.
15414 # It is not useful on other systems.  If it contains results you don't
15415 # want to keep, you may remove or edit it.
15416 #
15417 # config.status only pays attention to the cache file if you give it
15418 # the --recheck option to rerun configure.
15419 #
15420 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15422 # following values.
15423
15424 _ACEOF
15425
15426 # The following way of writing the cache mishandles newlines in values,
15427 # but we know of no workaround that is simple, portable, and efficient.
15428 # So, we kill variables containing newlines.
15429 # Ultrix sh set writes to stderr and can't be redirected directly,
15430 # and sets the high bit in the cache file unless we assign to the vars.
15431 (
15432   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15433     eval ac_val=\$$ac_var
15434     case $ac_val in #(
15435     *${as_nl}*)
15436       case $ac_var in #(
15437       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15438 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15439       esac
15440       case $ac_var in #(
15441       _ | IFS | as_nl) ;; #(
15442       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15443       *) { eval $ac_var=; unset $ac_var;} ;;
15444       esac ;;
15445     esac
15446   done
15447
15448   (set) 2>&1 |
15449     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15450     *${as_nl}ac_space=\ *)
15451       # `set' does not quote correctly, so add quotes: double-quote
15452       # substitution turns \\\\ into \\, and sed turns \\ into \.
15453       sed -n \
15454         "s/'/'\\\\''/g;
15455           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15456       ;; #(
15457     *)
15458       # `set' quotes correctly as required by POSIX, so do not add quotes.
15459       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15460       ;;
15461     esac |
15462     sort
15463 ) |
15464   sed '
15465      /^ac_cv_env_/b end
15466      t clear
15467      :clear
15468      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15469      t end
15470      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15471      :end' >>confcache
15472 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15473   if test -w "$cache_file"; then
15474     test "x$cache_file" != "x/dev/null" &&
15475       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15476 $as_echo "$as_me: updating cache $cache_file" >&6;}
15477     cat confcache >$cache_file
15478   else
15479     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15480 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15481   fi
15482 fi
15483 rm -f confcache
15484
15485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15486 # Let make expand exec_prefix.
15487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15488
15489 DEFS=-DHAVE_CONFIG_H
15490
15491 ac_libobjs=
15492 ac_ltlibobjs=
15493 U=
15494 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15495   # 1. Remove the extension, and $U if already installed.
15496   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15497   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15498   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15499   #    will be set to the directory where LIBOBJS objects are built.
15500   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15501   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15502 done
15503 LIBOBJS=$ac_libobjs
15504
15505 LTLIBOBJS=$ac_ltlibobjs
15506
15507
15508
15509 : ${CONFIG_STATUS=./config.status}
15510 ac_write_fail=0
15511 ac_clean_files_save=$ac_clean_files
15512 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15514 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15515 as_write_fail=0
15516 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15517 #! $SHELL
15518 # Generated by $as_me.
15519 # Run this file to recreate the current configuration.
15520 # Compiler output produced by configure, useful for debugging
15521 # configure, is in config.log if it exists.
15522
15523 debug=false
15524 ac_cs_recheck=false
15525 ac_cs_silent=false
15526
15527 SHELL=\${CONFIG_SHELL-$SHELL}
15528 export SHELL
15529 _ASEOF
15530 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15531 ## -------------------- ##
15532 ## M4sh Initialization. ##
15533 ## -------------------- ##
15534
15535 # Be more Bourne compatible
15536 DUALCASE=1; export DUALCASE # for MKS sh
15537 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15538   emulate sh
15539   NULLCMD=:
15540   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15541   # is contrary to our usage.  Disable this feature.
15542   alias -g '${1+"$@"}'='"$@"'
15543   setopt NO_GLOB_SUBST
15544 else
15545   case `(set -o) 2>/dev/null` in #(
15546   *posix*) :
15547     set -o posix ;; #(
15548   *) :
15549      ;;
15550 esac
15551 fi
15552
15553
15554 as_nl='
15555 '
15556 export as_nl
15557 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15558 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15559 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15560 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15561 # Prefer a ksh shell builtin over an external printf program on Solaris,
15562 # but without wasting forks for bash or zsh.
15563 if test -z "$BASH_VERSION$ZSH_VERSION" \
15564     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15565   as_echo='print -r --'
15566   as_echo_n='print -rn --'
15567 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15568   as_echo='printf %s\n'
15569   as_echo_n='printf %s'
15570 else
15571   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15572     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15573     as_echo_n='/usr/ucb/echo -n'
15574   else
15575     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15576     as_echo_n_body='eval
15577       arg=$1;
15578       case $arg in #(
15579       *"$as_nl"*)
15580         expr "X$arg" : "X\\(.*\\)$as_nl";
15581         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15582       esac;
15583       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15584     '
15585     export as_echo_n_body
15586     as_echo_n='sh -c $as_echo_n_body as_echo'
15587   fi
15588   export as_echo_body
15589   as_echo='sh -c $as_echo_body as_echo'
15590 fi
15591
15592 # The user is always right.
15593 if test "${PATH_SEPARATOR+set}" != set; then
15594   PATH_SEPARATOR=:
15595   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15596     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15597       PATH_SEPARATOR=';'
15598   }
15599 fi
15600
15601
15602 # IFS
15603 # We need space, tab and new line, in precisely that order.  Quoting is
15604 # there to prevent editors from complaining about space-tab.
15605 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15606 # splitting by setting IFS to empty value.)
15607 IFS=" ""        $as_nl"
15608
15609 # Find who we are.  Look in the path if we contain no directory separator.
15610 case $0 in #((
15611   *[\\/]* ) as_myself=$0 ;;
15612   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15613 for as_dir in $PATH
15614 do
15615   IFS=$as_save_IFS
15616   test -z "$as_dir" && as_dir=.
15617     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15618   done
15619 IFS=$as_save_IFS
15620
15621      ;;
15622 esac
15623 # We did not find ourselves, most probably we were run as `sh COMMAND'
15624 # in which case we are not to be found in the path.
15625 if test "x$as_myself" = x; then
15626   as_myself=$0
15627 fi
15628 if test ! -f "$as_myself"; then
15629   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15630   exit 1
15631 fi
15632
15633 # Unset variables that we do not need and which cause bugs (e.g. in
15634 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15635 # suppresses any "Segmentation fault" message there.  '((' could
15636 # trigger a bug in pdksh 5.2.14.
15637 for as_var in BASH_ENV ENV MAIL MAILPATH
15638 do eval test x\${$as_var+set} = xset \
15639   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15640 done
15641 PS1='$ '
15642 PS2='> '
15643 PS4='+ '
15644
15645 # NLS nuisances.
15646 LC_ALL=C
15647 export LC_ALL
15648 LANGUAGE=C
15649 export LANGUAGE
15650
15651 # CDPATH.
15652 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15653
15654
15655 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15656 # ----------------------------------------
15657 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15658 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15659 # script with STATUS, using 1 if that was 0.
15660 as_fn_error ()
15661 {
15662   as_status=$1; test $as_status -eq 0 && as_status=1
15663   if test "$4"; then
15664     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15665     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15666   fi
15667   $as_echo "$as_me: error: $2" >&2
15668   as_fn_exit $as_status
15669 } # as_fn_error
15670
15671
15672 # as_fn_set_status STATUS
15673 # -----------------------
15674 # Set $? to STATUS, without forking.
15675 as_fn_set_status ()
15676 {
15677   return $1
15678 } # as_fn_set_status
15679
15680 # as_fn_exit STATUS
15681 # -----------------
15682 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15683 as_fn_exit ()
15684 {
15685   set +e
15686   as_fn_set_status $1
15687   exit $1
15688 } # as_fn_exit
15689
15690 # as_fn_unset VAR
15691 # ---------------
15692 # Portably unset VAR.
15693 as_fn_unset ()
15694 {
15695   { eval $1=; unset $1;}
15696 }
15697 as_unset=as_fn_unset
15698 # as_fn_append VAR VALUE
15699 # ----------------------
15700 # Append the text in VALUE to the end of the definition contained in VAR. Take
15701 # advantage of any shell optimizations that allow amortized linear growth over
15702 # repeated appends, instead of the typical quadratic growth present in naive
15703 # implementations.
15704 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15705   eval 'as_fn_append ()
15706   {
15707     eval $1+=\$2
15708   }'
15709 else
15710   as_fn_append ()
15711   {
15712     eval $1=\$$1\$2
15713   }
15714 fi # as_fn_append
15715
15716 # as_fn_arith ARG...
15717 # ------------------
15718 # Perform arithmetic evaluation on the ARGs, and store the result in the
15719 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15720 # must be portable across $(()) and expr.
15721 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15722   eval 'as_fn_arith ()
15723   {
15724     as_val=$(( $* ))
15725   }'
15726 else
15727   as_fn_arith ()
15728   {
15729     as_val=`expr "$@" || test $? -eq 1`
15730   }
15731 fi # as_fn_arith
15732
15733
15734 if expr a : '\(a\)' >/dev/null 2>&1 &&
15735    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15736   as_expr=expr
15737 else
15738   as_expr=false
15739 fi
15740
15741 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15742   as_basename=basename
15743 else
15744   as_basename=false
15745 fi
15746
15747 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15748   as_dirname=dirname
15749 else
15750   as_dirname=false
15751 fi
15752
15753 as_me=`$as_basename -- "$0" ||
15754 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15755          X"$0" : 'X\(//\)$' \| \
15756          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15757 $as_echo X/"$0" |
15758     sed '/^.*\/\([^/][^/]*\)\/*$/{
15759             s//\1/
15760             q
15761           }
15762           /^X\/\(\/\/\)$/{
15763             s//\1/
15764             q
15765           }
15766           /^X\/\(\/\).*/{
15767             s//\1/
15768             q
15769           }
15770           s/.*/./; q'`
15771
15772 # Avoid depending upon Character Ranges.
15773 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15774 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15775 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15776 as_cr_digits='0123456789'
15777 as_cr_alnum=$as_cr_Letters$as_cr_digits
15778
15779 ECHO_C= ECHO_N= ECHO_T=
15780 case `echo -n x` in #(((((
15781 -n*)
15782   case `echo 'xy\c'` in
15783   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15784   xy)  ECHO_C='\c';;
15785   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15786        ECHO_T=' ';;
15787   esac;;
15788 *)
15789   ECHO_N='-n';;
15790 esac
15791
15792 rm -f conf$$ conf$$.exe conf$$.file
15793 if test -d conf$$.dir; then
15794   rm -f conf$$.dir/conf$$.file
15795 else
15796   rm -f conf$$.dir
15797   mkdir conf$$.dir 2>/dev/null
15798 fi
15799 if (echo >conf$$.file) 2>/dev/null; then
15800   if ln -s conf$$.file conf$$ 2>/dev/null; then
15801     as_ln_s='ln -s'
15802     # ... but there are two gotchas:
15803     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15804     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15805     # In both cases, we have to default to `cp -p'.
15806     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15807       as_ln_s='cp -p'
15808   elif ln conf$$.file conf$$ 2>/dev/null; then
15809     as_ln_s=ln
15810   else
15811     as_ln_s='cp -p'
15812   fi
15813 else
15814   as_ln_s='cp -p'
15815 fi
15816 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15817 rmdir conf$$.dir 2>/dev/null
15818
15819
15820 # as_fn_mkdir_p
15821 # -------------
15822 # Create "$as_dir" as a directory, including parents if necessary.
15823 as_fn_mkdir_p ()
15824 {
15825
15826   case $as_dir in #(
15827   -*) as_dir=./$as_dir;;
15828   esac
15829   test -d "$as_dir" || eval $as_mkdir_p || {
15830     as_dirs=
15831     while :; do
15832       case $as_dir in #(
15833       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15834       *) as_qdir=$as_dir;;
15835       esac
15836       as_dirs="'$as_qdir' $as_dirs"
15837       as_dir=`$as_dirname -- "$as_dir" ||
15838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15839          X"$as_dir" : 'X\(//\)[^/]' \| \
15840          X"$as_dir" : 'X\(//\)$' \| \
15841          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15842 $as_echo X"$as_dir" |
15843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15844             s//\1/
15845             q
15846           }
15847           /^X\(\/\/\)[^/].*/{
15848             s//\1/
15849             q
15850           }
15851           /^X\(\/\/\)$/{
15852             s//\1/
15853             q
15854           }
15855           /^X\(\/\).*/{
15856             s//\1/
15857             q
15858           }
15859           s/.*/./; q'`
15860       test -d "$as_dir" && break
15861     done
15862     test -z "$as_dirs" || eval "mkdir $as_dirs"
15863   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15864
15865
15866 } # as_fn_mkdir_p
15867 if mkdir -p . 2>/dev/null; then
15868   as_mkdir_p='mkdir -p "$as_dir"'
15869 else
15870   test -d ./-p && rmdir ./-p
15871   as_mkdir_p=false
15872 fi
15873
15874 if test -x / >/dev/null 2>&1; then
15875   as_test_x='test -x'
15876 else
15877   if ls -dL / >/dev/null 2>&1; then
15878     as_ls_L_option=L
15879   else
15880     as_ls_L_option=
15881   fi
15882   as_test_x='
15883     eval sh -c '\''
15884       if test -d "$1"; then
15885         test -d "$1/.";
15886       else
15887         case $1 in #(
15888         -*)set "./$1";;
15889         esac;
15890         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15891         ???[sx]*):;;*)false;;esac;fi
15892     '\'' sh
15893   '
15894 fi
15895 as_executable_p=$as_test_x
15896
15897 # Sed expression to map a string onto a valid CPP name.
15898 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15899
15900 # Sed expression to map a string onto a valid variable name.
15901 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15902
15903
15904 exec 6>&1
15905 ## ----------------------------------- ##
15906 ## Main body of $CONFIG_STATUS script. ##
15907 ## ----------------------------------- ##
15908 _ASEOF
15909 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15910
15911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15912 # Save the log message, to keep $0 and so on meaningful, and to
15913 # report actual input values of CONFIG_FILES etc. instead of their
15914 # values after options handling.
15915 ac_log="
15916 This file was extended by Wine $as_me 1.3.10, which was
15917 generated by GNU Autoconf 2.67.  Invocation command line was
15918
15919   CONFIG_FILES    = $CONFIG_FILES
15920   CONFIG_HEADERS  = $CONFIG_HEADERS
15921   CONFIG_LINKS    = $CONFIG_LINKS
15922   CONFIG_COMMANDS = $CONFIG_COMMANDS
15923   $ $0 $@
15924
15925 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15926 "
15927
15928 _ACEOF
15929
15930 case $ac_config_files in *"
15931 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15932 esac
15933
15934 case $ac_config_headers in *"
15935 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15936 esac
15937
15938
15939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15940 # Files that config.status was made for.
15941 config_files="$ac_config_files"
15942 config_headers="$ac_config_headers"
15943 config_links="$ac_config_links"
15944 config_commands="$ac_config_commands"
15945
15946 _ACEOF
15947
15948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15949 ac_cs_usage="\
15950 \`$as_me' instantiates files and other configuration actions
15951 from templates according to the current configuration.  Unless the files
15952 and actions are specified as TAGs, all are instantiated by default.
15953
15954 Usage: $0 [OPTION]... [TAG]...
15955
15956   -h, --help       print this help, then exit
15957   -V, --version    print version number and configuration settings, then exit
15958       --config     print configuration, then exit
15959   -q, --quiet, --silent
15960                    do not print progress messages
15961   -d, --debug      don't remove temporary files
15962       --recheck    update $as_me by reconfiguring in the same conditions
15963       --file=FILE[:TEMPLATE]
15964                    instantiate the configuration file FILE
15965       --header=FILE[:TEMPLATE]
15966                    instantiate the configuration header FILE
15967
15968 Configuration files:
15969 $config_files
15970
15971 Configuration headers:
15972 $config_headers
15973
15974 Configuration links:
15975 $config_links
15976
15977 Configuration commands:
15978 $config_commands
15979
15980 Report bugs to <wine-devel@winehq.org>.
15981 Wine home page: <http://www.winehq.org>."
15982
15983 _ACEOF
15984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15985 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15986 ac_cs_version="\\
15987 Wine config.status 1.3.10
15988 configured by $0, generated by GNU Autoconf 2.67,
15989   with options \\"\$ac_cs_config\\"
15990
15991 Copyright (C) 2010 Free Software Foundation, Inc.
15992 This config.status script is free software; the Free Software Foundation
15993 gives unlimited permission to copy, distribute and modify it."
15994
15995 ac_pwd='$ac_pwd'
15996 srcdir='$srcdir'
15997 INSTALL='$INSTALL'
15998 test -n "\$AWK" || AWK=awk
15999 _ACEOF
16000
16001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16002 # The default lists apply if the user does not specify any file.
16003 ac_need_defaults=:
16004 while test $# != 0
16005 do
16006   case $1 in
16007   --*=?*)
16008     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16009     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16010     ac_shift=:
16011     ;;
16012   --*=)
16013     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16014     ac_optarg=
16015     ac_shift=:
16016     ;;
16017   *)
16018     ac_option=$1
16019     ac_optarg=$2
16020     ac_shift=shift
16021     ;;
16022   esac
16023
16024   case $ac_option in
16025   # Handling of the options.
16026   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16027     ac_cs_recheck=: ;;
16028   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16029     $as_echo "$ac_cs_version"; exit ;;
16030   --config | --confi | --conf | --con | --co | --c )
16031     $as_echo "$ac_cs_config"; exit ;;
16032   --debug | --debu | --deb | --de | --d | -d )
16033     debug=: ;;
16034   --file | --fil | --fi | --f )
16035     $ac_shift
16036     case $ac_optarg in
16037     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16038     '') as_fn_error $? "missing file argument" ;;
16039     esac
16040     as_fn_append CONFIG_FILES " '$ac_optarg'"
16041     ac_need_defaults=false;;
16042   --header | --heade | --head | --hea )
16043     $ac_shift
16044     case $ac_optarg in
16045     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16046     esac
16047     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16048     ac_need_defaults=false;;
16049   --he | --h)
16050     # Conflict between --help and --header
16051     as_fn_error $? "ambiguous option: \`$1'
16052 Try \`$0 --help' for more information.";;
16053   --help | --hel | -h )
16054     $as_echo "$ac_cs_usage"; exit ;;
16055   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16056   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16057     ac_cs_silent=: ;;
16058
16059   # This is an error.
16060   -*) as_fn_error $? "unrecognized option: \`$1'
16061 Try \`$0 --help' for more information." ;;
16062
16063   *) as_fn_append ac_config_targets " $1"
16064      ac_need_defaults=false ;;
16065
16066   esac
16067   shift
16068 done
16069
16070 ac_configure_extra_args=
16071
16072 if $ac_cs_silent; then
16073   exec 6>/dev/null
16074   ac_configure_extra_args="$ac_configure_extra_args --silent"
16075 fi
16076
16077 _ACEOF
16078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16079 if \$ac_cs_recheck; then
16080   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16081   shift
16082   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16083   CONFIG_SHELL='$SHELL'
16084   export CONFIG_SHELL
16085   exec "\$@"
16086 fi
16087
16088 _ACEOF
16089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16090 exec 5>>config.log
16091 {
16092   echo
16093   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16094 ## Running $as_me. ##
16095 _ASBOX
16096   $as_echo "$ac_log"
16097 } >&5
16098
16099 _ACEOF
16100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16101 #
16102 # INIT-COMMANDS
16103 #
16104 wine_fn_output_makefile ()
16105 {
16106     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16107 $ALL_MAKEFILE_DEPENDS
16108 _WINE_EOF
16109     as_fn_error $? "could not create Makefile" "$LINENO" 5
16110 }
16111
16112 _ACEOF
16113
16114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16115
16116 # Handling of arguments.
16117 for ac_config_target in $ac_config_targets
16118 do
16119   case $ac_config_target in
16120     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16121     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16122     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16123     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16124     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16125     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16126     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16127     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16128     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16129     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16130     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16131     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16132     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16133     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16134     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16135     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16136     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16137     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16138     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16139     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16140     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16141     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16142     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16143
16144   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16145   esac
16146 done
16147
16148
16149 # If the user did not use the arguments to specify the items to instantiate,
16150 # then the envvar interface is used.  Set only those that are not.
16151 # We use the long form for the default assignment because of an extremely
16152 # bizarre bug on SunOS 4.1.3.
16153 if $ac_need_defaults; then
16154   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16155   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16156   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16157   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16158 fi
16159
16160 # Have a temporary directory for convenience.  Make it in the build tree
16161 # simply because there is no reason against having it here, and in addition,
16162 # creating and moving files from /tmp can sometimes cause problems.
16163 # Hook for its removal unless debugging.
16164 # Note that there is a small window in which the directory will not be cleaned:
16165 # after its creation but before its name has been assigned to `$tmp'.
16166 $debug ||
16167 {
16168   tmp=
16169   trap 'exit_status=$?
16170   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16171 ' 0
16172   trap 'as_fn_exit 1' 1 2 13 15
16173 }
16174 # Create a (secure) tmp directory for tmp files.
16175
16176 {
16177   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16178   test -n "$tmp" && test -d "$tmp"
16179 }  ||
16180 {
16181   tmp=./conf$$-$RANDOM
16182   (umask 077 && mkdir "$tmp")
16183 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16184
16185 # Set up the scripts for CONFIG_FILES section.
16186 # No need to generate them if there are no CONFIG_FILES.
16187 # This happens for instance with `./config.status config.h'.
16188 if test -n "$CONFIG_FILES"; then
16189
16190 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16191   ac_cs_awk_getline=:
16192   ac_cs_awk_pipe_init=
16193   ac_cs_awk_read_file='
16194       while ((getline aline < (F[key])) > 0)
16195         print(aline)
16196       close(F[key])'
16197   ac_cs_awk_pipe_fini=
16198 else
16199   ac_cs_awk_getline=false
16200   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16201   ac_cs_awk_read_file='
16202       print "|#_!!_#|"
16203       print "cat " F[key] " &&"
16204       '$ac_cs_awk_pipe_init
16205   # The final `:' finishes the AND list.
16206   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16207 fi
16208 ac_cr=`echo X | tr X '\015'`
16209 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16210 # But we know of no other shell where ac_cr would be empty at this
16211 # point, so we can use a bashism as a fallback.
16212 if test "x$ac_cr" = x; then
16213   eval ac_cr=\$\'\\r\'
16214 fi
16215 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16216 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16217   ac_cs_awk_cr='\\r'
16218 else
16219   ac_cs_awk_cr=$ac_cr
16220 fi
16221
16222 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16223 _ACEOF
16224
16225 # Create commands to substitute file output variables.
16226 {
16227   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16228   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16229   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16230   echo "_ACAWK" &&
16231   echo "_ACEOF"
16232 } >conf$$files.sh &&
16233 . ./conf$$files.sh ||
16234   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16235 rm -f conf$$files.sh
16236
16237 {
16238   echo "cat >conf$$subs.awk <<_ACEOF" &&
16239   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16240   echo "_ACEOF"
16241 } >conf$$subs.sh ||
16242   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16243 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16244 ac_delim='%!_!# '
16245 for ac_last_try in false false false false false :; do
16246   . ./conf$$subs.sh ||
16247     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16248
16249   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16250   if test $ac_delim_n = $ac_delim_num; then
16251     break
16252   elif $ac_last_try; then
16253     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16254   else
16255     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16256   fi
16257 done
16258 rm -f conf$$subs.sh
16259
16260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16261 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16262 _ACEOF
16263 sed -n '
16264 h
16265 s/^/S["/; s/!.*/"]=/
16266 p
16267 g
16268 s/^[^!]*!//
16269 :repl
16270 t repl
16271 s/'"$ac_delim"'$//
16272 t delim
16273 :nl
16274 h
16275 s/\(.\{148\}\)..*/\1/
16276 t more1
16277 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16278 p
16279 n
16280 b repl
16281 :more1
16282 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16283 p
16284 g
16285 s/.\{148\}//
16286 t nl
16287 :delim
16288 h
16289 s/\(.\{148\}\)..*/\1/
16290 t more2
16291 s/["\\]/\\&/g; s/^/"/; s/$/"/
16292 p
16293 b
16294 :more2
16295 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16296 p
16297 g
16298 s/.\{148\}//
16299 t delim
16300 ' <conf$$subs.awk | sed '
16301 /^[^""]/{
16302   N
16303   s/\n//
16304 }
16305 ' >>$CONFIG_STATUS || ac_write_fail=1
16306 rm -f conf$$subs.awk
16307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16308 _ACAWK
16309 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16310   for (key in S) S_is_set[key] = 1
16311   FS = "\a"
16312   \$ac_cs_awk_pipe_init
16313 }
16314 {
16315   line = $ 0
16316   nfields = split(line, field, "@")
16317   substed = 0
16318   len = length(field[1])
16319   for (i = 2; i < nfields; i++) {
16320     key = field[i]
16321     keylen = length(key)
16322     if (S_is_set[key]) {
16323       value = S[key]
16324       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16325       len += length(value) + length(field[++i])
16326       substed = 1
16327     } else
16328       len += 1 + keylen
16329   }
16330   if (nfields == 3 && !substed) {
16331     key = field[2]
16332     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16333       \$ac_cs_awk_read_file
16334       next
16335     }
16336   }
16337   print line
16338 }
16339 \$ac_cs_awk_pipe_fini
16340 _ACAWK
16341 _ACEOF
16342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16343 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16344   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16345 else
16346   cat
16347 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16348   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16349 _ACEOF
16350
16351 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16352 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16353 # trailing colons and then remove the whole line if VPATH becomes empty
16354 # (actually we leave an empty line to preserve line numbers).
16355 if test "x$srcdir" = x.; then
16356   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16357 h
16358 s///
16359 s/^/:/
16360 s/[      ]*$/:/
16361 s/:\$(srcdir):/:/g
16362 s/:\${srcdir}:/:/g
16363 s/:@srcdir@:/:/g
16364 s/^:*//
16365 s/:*$//
16366 x
16367 s/\(=[   ]*\).*/\1/
16368 G
16369 s/\n//
16370 s/^[^=]*=[       ]*$//
16371 }'
16372 fi
16373
16374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16375 fi # test -n "$CONFIG_FILES"
16376
16377 # Set up the scripts for CONFIG_HEADERS section.
16378 # No need to generate them if there are no CONFIG_HEADERS.
16379 # This happens for instance with `./config.status Makefile'.
16380 if test -n "$CONFIG_HEADERS"; then
16381 cat >"$tmp/defines.awk" <<\_ACAWK ||
16382 BEGIN {
16383 _ACEOF
16384
16385 # Transform confdefs.h into an awk script `defines.awk', embedded as
16386 # here-document in config.status, that substitutes the proper values into
16387 # config.h.in to produce config.h.
16388
16389 # Create a delimiter string that does not exist in confdefs.h, to ease
16390 # handling of long lines.
16391 ac_delim='%!_!# '
16392 for ac_last_try in false false :; do
16393   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16394   if test -z "$ac_t"; then
16395     break
16396   elif $ac_last_try; then
16397     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16398   else
16399     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16400   fi
16401 done
16402
16403 # For the awk script, D is an array of macro values keyed by name,
16404 # likewise P contains macro parameters if any.  Preserve backslash
16405 # newline sequences.
16406
16407 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16408 sed -n '
16409 s/.\{148\}/&'"$ac_delim"'/g
16410 t rset
16411 :rset
16412 s/^[     ]*#[    ]*define[       ][      ]*/ /
16413 t def
16414 d
16415 :def
16416 s/\\$//
16417 t bsnl
16418 s/["\\]/\\&/g
16419 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16420 D["\1"]=" \3"/p
16421 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16422 d
16423 :bsnl
16424 s/["\\]/\\&/g
16425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16426 D["\1"]=" \3\\\\\\n"\\/p
16427 t cont
16428 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16429 t cont
16430 d
16431 :cont
16432 n
16433 s/.\{148\}/&'"$ac_delim"'/g
16434 t clear
16435 :clear
16436 s/\\$//
16437 t bsnlc
16438 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16439 d
16440 :bsnlc
16441 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16442 b cont
16443 ' <confdefs.h | sed '
16444 s/'"$ac_delim"'/"\\\
16445 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16446
16447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16448   for (key in D) D_is_set[key] = 1
16449   FS = "\a"
16450 }
16451 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16452   line = \$ 0
16453   split(line, arg, " ")
16454   if (arg[1] == "#") {
16455     defundef = arg[2]
16456     mac1 = arg[3]
16457   } else {
16458     defundef = substr(arg[1], 2)
16459     mac1 = arg[2]
16460   }
16461   split(mac1, mac2, "(") #)
16462   macro = mac2[1]
16463   prefix = substr(line, 1, index(line, defundef) - 1)
16464   if (D_is_set[macro]) {
16465     # Preserve the white space surrounding the "#".
16466     print prefix "define", macro P[macro] D[macro]
16467     next
16468   } else {
16469     # Replace #undef with comments.  This is necessary, for example,
16470     # in the case of _POSIX_SOURCE, which is predefined and required
16471     # on some systems where configure will not decide to define it.
16472     if (defundef == "undef") {
16473       print "/*", prefix defundef, macro, "*/"
16474       next
16475     }
16476   }
16477 }
16478 { print }
16479 _ACAWK
16480 _ACEOF
16481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16482   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16483 fi # test -n "$CONFIG_HEADERS"
16484
16485
16486 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16487 shift
16488 for ac_tag
16489 do
16490   case $ac_tag in
16491   :[FHLC]) ac_mode=$ac_tag; continue;;
16492   esac
16493   case $ac_mode$ac_tag in
16494   :[FHL]*:*);;
16495   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16496   :[FH]-) ac_tag=-:-;;
16497   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16498   esac
16499   ac_save_IFS=$IFS
16500   IFS=:
16501   set x $ac_tag
16502   IFS=$ac_save_IFS
16503   shift
16504   ac_file=$1
16505   shift
16506
16507   case $ac_mode in
16508   :L) ac_source=$1;;
16509   :[FH])
16510     ac_file_inputs=
16511     for ac_f
16512     do
16513       case $ac_f in
16514       -) ac_f="$tmp/stdin";;
16515       *) # Look for the file first in the build tree, then in the source tree
16516          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16517          # because $ac_f cannot contain `:'.
16518          test -f "$ac_f" ||
16519            case $ac_f in
16520            [\\/$]*) false;;
16521            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16522            esac ||
16523            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16524       esac
16525       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16526       as_fn_append ac_file_inputs " '$ac_f'"
16527     done
16528
16529     # Let's still pretend it is `configure' which instantiates (i.e., don't
16530     # use $as_me), people would be surprised to read:
16531     #    /* config.h.  Generated by config.status.  */
16532     configure_input='Generated from '`
16533           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16534         `' by configure.'
16535     if test x"$ac_file" != x-; then
16536       configure_input="$ac_file.  $configure_input"
16537       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16538 $as_echo "$as_me: creating $ac_file" >&6;}
16539     fi
16540     # Neutralize special characters interpreted by sed in replacement strings.
16541     case $configure_input in #(
16542     *\&* | *\|* | *\\* )
16543        ac_sed_conf_input=`$as_echo "$configure_input" |
16544        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16545     *) ac_sed_conf_input=$configure_input;;
16546     esac
16547
16548     case $ac_tag in
16549     *:-:* | *:-) cat >"$tmp/stdin" \
16550       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16551     esac
16552     ;;
16553   esac
16554
16555   ac_dir=`$as_dirname -- "$ac_file" ||
16556 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16557          X"$ac_file" : 'X\(//\)[^/]' \| \
16558          X"$ac_file" : 'X\(//\)$' \| \
16559          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16560 $as_echo X"$ac_file" |
16561     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16562             s//\1/
16563             q
16564           }
16565           /^X\(\/\/\)[^/].*/{
16566             s//\1/
16567             q
16568           }
16569           /^X\(\/\/\)$/{
16570             s//\1/
16571             q
16572           }
16573           /^X\(\/\).*/{
16574             s//\1/
16575             q
16576           }
16577           s/.*/./; q'`
16578   as_dir="$ac_dir"; as_fn_mkdir_p
16579   ac_builddir=.
16580
16581 case "$ac_dir" in
16582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16583 *)
16584   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16585   # A ".." for each directory in $ac_dir_suffix.
16586   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16587   case $ac_top_builddir_sub in
16588   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16589   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16590   esac ;;
16591 esac
16592 ac_abs_top_builddir=$ac_pwd
16593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16594 # for backward compatibility:
16595 ac_top_builddir=$ac_top_build_prefix
16596
16597 case $srcdir in
16598   .)  # We are building in place.
16599     ac_srcdir=.
16600     ac_top_srcdir=$ac_top_builddir_sub
16601     ac_abs_top_srcdir=$ac_pwd ;;
16602   [\\/]* | ?:[\\/]* )  # Absolute name.
16603     ac_srcdir=$srcdir$ac_dir_suffix;
16604     ac_top_srcdir=$srcdir
16605     ac_abs_top_srcdir=$srcdir ;;
16606   *) # Relative name.
16607     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16608     ac_top_srcdir=$ac_top_build_prefix$srcdir
16609     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16610 esac
16611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16612
16613
16614   case $ac_mode in
16615   :F)
16616   #
16617   # CONFIG_FILE
16618   #
16619
16620   case $INSTALL in
16621   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16622   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16623   esac
16624 _ACEOF
16625
16626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16627 # If the template does not know about datarootdir, expand it.
16628 # FIXME: This hack should be removed a few years after 2.60.
16629 ac_datarootdir_hack=; ac_datarootdir_seen=
16630 ac_sed_dataroot='
16631 /datarootdir/ {
16632   p
16633   q
16634 }
16635 /@datadir@/p
16636 /@docdir@/p
16637 /@infodir@/p
16638 /@localedir@/p
16639 /@mandir@/p'
16640 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16641 *datarootdir*) ac_datarootdir_seen=yes;;
16642 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16643   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16644 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16645 _ACEOF
16646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16647   ac_datarootdir_hack='
16648   s&@datadir@&$datadir&g
16649   s&@docdir@&$docdir&g
16650   s&@infodir@&$infodir&g
16651   s&@localedir@&$localedir&g
16652   s&@mandir@&$mandir&g
16653   s&\\\${datarootdir}&$datarootdir&g' ;;
16654 esac
16655 _ACEOF
16656
16657 # Neutralize VPATH when `$srcdir' = `.'.
16658 # Shell code in configure.ac might set extrasub.
16659 # FIXME: do we really want to maintain this feature?
16660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16661 ac_sed_extra="$ac_vpsub
16662 $extrasub
16663 _ACEOF
16664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16665 :t
16666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16667 s|@configure_input@|$ac_sed_conf_input|;t t
16668 s&@top_builddir@&$ac_top_builddir_sub&;t t
16669 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16670 s&@srcdir@&$ac_srcdir&;t t
16671 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16672 s&@top_srcdir@&$ac_top_srcdir&;t t
16673 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16674 s&@builddir@&$ac_builddir&;t t
16675 s&@abs_builddir@&$ac_abs_builddir&;t t
16676 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16677 s&@INSTALL@&$ac_INSTALL&;t t
16678 $ac_datarootdir_hack
16679 "
16680 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16681 if $ac_cs_awk_getline; then
16682   $AWK -f "$tmp/subs.awk"
16683 else
16684   $AWK -f "$tmp/subs.awk" | $SHELL
16685 fi >$tmp/out \
16686   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16687
16688 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16689   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16690   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16691   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16692 which seems to be undefined.  Please make sure it is defined" >&5
16693 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16694 which seems to be undefined.  Please make sure it is defined" >&2;}
16695
16696   rm -f "$tmp/stdin"
16697   case $ac_file in
16698   -) cat "$tmp/out" && rm -f "$tmp/out";;
16699   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16700   esac \
16701   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16702  ;;
16703   :H)
16704   #
16705   # CONFIG_HEADER
16706   #
16707   if test x"$ac_file" != x-; then
16708     {
16709       $as_echo "/* $configure_input  */" \
16710       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16711     } >"$tmp/config.h" \
16712       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16713     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16714       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16715 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16716     else
16717       rm -f "$ac_file"
16718       mv "$tmp/config.h" "$ac_file" \
16719         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16720     fi
16721   else
16722     $as_echo "/* $configure_input  */" \
16723       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16724       || as_fn_error $? "could not create -" "$LINENO" 5
16725   fi
16726  ;;
16727   :L)
16728   #
16729   # CONFIG_LINK
16730   #
16731
16732   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16733     :
16734   else
16735     # Prefer the file from the source tree if names are identical.
16736     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16737       ac_source=$srcdir/$ac_source
16738     fi
16739
16740     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16741 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16742
16743     if test ! -r "$ac_source"; then
16744       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16745     fi
16746     rm -f "$ac_file"
16747
16748     # Try a relative symlink, then a hard link, then a copy.
16749     case $ac_source in
16750     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16751         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16752     esac
16753     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16754       ln "$ac_source" "$ac_file" 2>/dev/null ||
16755       cp -p "$ac_source" "$ac_file" ||
16756       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16757   fi
16758  ;;
16759   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16760 $as_echo "$as_me: executing $ac_file commands" >&6;}
16761  ;;
16762   esac
16763
16764
16765   case $ac_file$ac_mode in
16766     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16767     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16768 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16769     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16770 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16771     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16772 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16773     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16774 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16775     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16776 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16777     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16778 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16779     "Makefile":C) wine_fn_output_makefile Makefile ;;
16780
16781   esac
16782 done # for ac_tag
16783
16784
16785 as_fn_exit 0
16786 _ACEOF
16787 ac_clean_files=$ac_clean_files_save
16788
16789 test $ac_write_fail = 0 ||
16790   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16791
16792
16793 # configure is writing to config.log, and then calls config.status.
16794 # config.status does its own redirection, appending to config.log.
16795 # Unfortunately, on DOS this fails, as config.log is still kept open
16796 # by configure, so config.status won't be able to write to it; its
16797 # output is simply discarded.  So we exec the FD to /dev/null,
16798 # effectively closing config.log, so it can be properly (re)opened and
16799 # appended to by config.status.  When coming back to configure, we
16800 # need to make the FD available again.
16801 if test "$no_create" != yes; then
16802   ac_cs_success=:
16803   ac_config_status_args=
16804   test "$silent" = yes &&
16805     ac_config_status_args="$ac_config_status_args --quiet"
16806   exec 5>/dev/null
16807   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16808   exec 5>>config.log
16809   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16810   # would make configure fail if this is the last instruction.
16811   $ac_cs_success || as_fn_exit 1
16812 fi
16813 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16814   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16815 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16816 fi
16817
16818
16819 if test "$no_create" = "yes"
16820 then
16821   exit 0
16822 fi
16823
16824 ac_save_IFS="$IFS"
16825 if test "x$wine_notices != "x; then
16826     echo >&6
16827     IFS="|"
16828     for msg in $wine_notices; do
16829         IFS="$ac_save_IFS"
16830         if test -n "$msg"; then
16831             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16832 $as_echo "$as_me: $msg" >&6;}
16833         fi
16834     done
16835 fi
16836 IFS="|"
16837 for msg in $wine_warnings; do
16838     IFS="$ac_save_IFS"
16839     if test -n "$msg"; then
16840         echo >&2
16841         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16842 $as_echo "$as_me: WARNING: $msg" >&2;}
16843     fi
16844 done
16845 IFS="$ac_save_IFS"
16846
16847 echo "
16848 $as_me: Finished.  Do '${ac_make}' to compile Wine.
16849 " >&6
16850